@gisce/react-ooui 1.0.27 → 1.0.28-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react"),require("antd"),require("@gisce/ooui"),require("@ant-design/icons"),require("react/jsx-runtime"),require("@tabler/icons"),require("react-dom"),require("styled-components"),require("react-measure"),require("@ant-design/plots"),require("use-deep-compare-effect"),require("buffer"),require("@gisce/react-formiga-table"),require("fiber-diagram"),require("react-hotkeys-hook"),require("@monaco-editor/react"),require("react-grid-layout")):typeof define=="function"&&define.amd?define(["exports","react","antd","@gisce/ooui","@ant-design/icons","react/jsx-runtime","@tabler/icons","react-dom","styled-components","react-measure","@ant-design/plots","use-deep-compare-effect","buffer","@gisce/react-formiga-table","fiber-diagram","react-hotkeys-hook","@monaco-editor/react","react-grid-layout"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["react-ooui"]={},e.React,e.antd,e.ooui,e.Icon,e.jsxRuntime,e.icons,e.ReactDOM,e.styled,e.Measure,e.plots,e.useDeepCompareEffect,e.require$$0,e.reactFormigaTable,e.fiberDiagram,e.reactHotkeysHook,e.Editor,e.reactGridLayout))})(this,function(exports,React,antd,ooui,Icon,jsxRuntime,icons,ReactDOM,styled,Measure,plots,useDeepCompareEffect,require$$0,reactFormigaTable,fiberDiagram,reactHotkeysHook,Editor,reactGridLayout){"use strict";const _interopDefaultLegacy=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function _interopNamespace(e){if(e&&e.__esModule)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const React__default=_interopDefaultLegacy(React),React__namespace=_interopNamespace(React),Icon__default=_interopDefaultLegacy(Icon),ReactDOM__default=_interopDefaultLegacy(ReactDOM),styled__default=_interopDefaultLegacy(styled),Measure__default=_interopDefaultLegacy(Measure),useDeepCompareEffect__default=_interopDefaultLegacy(useDeepCompareEffect),require$$0__default=_interopDefaultLegacy(require$$0),Editor__default=_interopDefaultLegacy(Editor),{Text:Text$3,Title:Title$4}=antd.Typography,alignClass={left:"justify-start",center:"justify-center",right:"justify-end"},Label=e=>{const{ooui:n,align:t,responsiveBehaviour:o}=e,{label:r,tooltip:a,fieldForLabel:s,labelSize:l,labelType:c}=n,d=s!==null&&r.length>1?r+" :":r,m=t||(s?o?"left":"right":"left"),p=l==="text"?Text$3:Title$4;return jsxRuntime.jsxs("div",{className:`flex flex-row items-center pb-1 pt-1 ${alignClass[m]}`,children:[a&&jsxRuntime.jsx(antd.Tooltip,{title:a,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"text-xs text-blue-400 pr-1"})}),jsxRuntime.jsx("span",{className:"pr-2",children:jsxRuntime.jsx(p,{level:l!=="text"?l:null,type:c,children:d})})]})},ca_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avan\xE7ada",search:"Buscar",parameters:"Par\xE0metres",limit:"Limit",first:"Primer",no_results:"No hi ha resultats",summary:"Mostrant resultats des de {from} fins {to} d'un total de {total} registres",welcome:"Benvingut",attachments:"Adjunts",addNewAttachment:"Afegir nou adjunt",listAllAttachments:"Veure tots els adjunts",viewAs:"Veure com",confirmRemoveItem:"Est\xE0s segur de volguer eliminar aquest item?",save:"Desar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Seg\xFCent",actions:"Accions",reports:"Informes",related:"Relacionat",new:"Nou",fillRequiredField:"Siusplau, omple aquest camp obligatori",fillRequiredFields:"Siusplau, omple tots els camps obligatoris",generatingReport:"Generant informe...",confirmation:"Confirmaci\xF3",ok:"D'acord",cancel:"Cancel\xB7lar",formHasErrors:"El formulari t\xE9 errors",unsavedChanges:"Hi ha canvis sense guardar",confirmRefreshWithoutSave:"Est\xE0s segur de volguer refrescar la p\xE0gina sense guardar els canvis?",discardAndRefresh:"Descarta els canvis i refresca",removeItems:"Elimina el registre/s",confirmRemove:"Est\xE0s segur de volguer eliminar els registre/s seleccionats?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlla\xE7a registre/s",confirmUnlink:"Est\xE0s segur de volguer desenlla\xE7ar els registre/s seleccionats?",yesConfirmUnlink:"S\xED, desenlla\xE7a",confirmCloseWithoutSave:"Est\xE0s segur de volguer tancar aquesta finestra sense guardar?",closeWithoutSaving:"Tancar sense guardar",action:"Acci\xF3",report:"Informe",selectAction:"Selecciona una acci\xF3",download:"Descarrega",clear:"Neteja",open:"Obre",uploadNewImage:"Puja una nova imatge",noCurrentEntries:"No hi ha registres",duplicate:"Duplicar",downloadingAttachment:"Descarregant adjunt...",tree:"llista",form:"formulari",favorites:"Els meus favorits",edit_favorites:"Edita els favorits",no_favorites:"No tens favorits guardats",register:"Registre",of:"de",editingDocument:"Editant document",showLogs:"Veure logs",createdBy:"Creat per l'usuari",creationDate:"Data creaci\xF3",lastUpdatedBy:"\xDAltima modificaci\xF3 per",lastUpdatedDate:"Data \xFAltima modificaci\xF3",goToResourceId:"V\xE9s al recurs amb ID",searchId:"ID de cerca:",idNotFound:"No es troba aquesta id de recurs per l'objecte",selectedRegisters:"registres seleccionats",translate:"Tradu\xEFr",enterTextBeforeTranslate:"Introdueix algun text al camp abans d'afegir traduccions",saveBeforeTranslate:"Heu de desar el registre abans d'afegir les traduccions",configDashboard:"Configurar panell",moveDashboard:"Moure items del panell",openAttachment:"Veure detall de l'adjunt",openAttachmentLink:"Obrir enlla\xE7 de l'adjunt",uninformed:"Sense informar"},en_US$5={true:"Yes",false:"No",simple_search:"Simple search",advanced_search:"Advanced search",search:"Search",parameters:"Parameters",limit:"Limit",first:"First",no_results:"No results",summary:"Showing registers from {from} to {to} of {total} registers",welcome:"Welcome",attachments:"Attachments",addNewAttachment:"Add new attachment",listAllAttachments:"View all the attachments",viewAs:"View as",confirmRemoveItem:"Are you sure to remove this item?",save:"Save",delete:"Delete",refresh:"Refresh",previous:"Previous",next:"Next",actions:"Actions",reports:"Reports",related:"Related",new:"New",fillRequiredField:"Please fill this required field",fillRequiredFields:"Please fill all the required fields",generatingReport:"Generating report...",confirmation:"Confirmation",ok:"OK",cancel:"Cancel",formHasErrors:"Form has errors",unsavedChanges:"There are unsaved changes",confirmRefreshWithoutSave:"Do you really want to refresh this window without saving?",discardAndRefresh:"Discard changes and refresh",removeItems:"Remove item/s",confirmRemove:"Are you sure you want to remove the selected item/s?",yesConfirmRemove:"Yes, remove",unlinkItems:"Unlink item/s",confirmUnlink:"Are you sure you want to unlink the selected item/s?",yesConfirmUnlink:"Yes, unlink",confirmCloseWithoutSave:"Do you really want to close this window without saving?",closeWithoutSaving:"Close without saving",action:"Action",report:"Report",selectAction:"Select an action",download:"Download",clear:"Clear",open:"Open",uploadNewImage:"Upload new image",noCurrentEntries:"No current entries",duplicate:"Duplicate",downloadingAttachment:"Downloading attachment...",tree:"list",form:"form",favorites:"My shortcuts",edit_favorites:"Edit shortcuts",no_favorites:"You don't have any shortcuts saved yet",register:"Register",of:"of",editingDocument:"Editing document",showLogs:"Show logs",createdBy:"Created by user",creationDate:"Creation date",lastUpdatedBy:"Last modified by",lastUpdatedDate:"Date of last modification",goToResourceId:"Go to resource ID",searchId:"Search ID:",idNotFound:"Resource ID does not exist for this object!",selectedRegisters:"selected registers",translate:"Translate",enterTextBeforeTranslate:"Enter some text to the related field before adding translations",saveBeforeTranslate:"You must save the record before adding translations",configDashboard:"Setup dashboard",moveDashboard:"Move dashboard items",openAttachment:"Open attachment detail",openAttachmentLink:"Open attachment link",uninformed:"Uninformed"},es_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avanzada",search:"Buscar",parameters:"Parametros",limit:"L\xEDmite",first:"Primero",no_results:"No hay resultados",summary:"Mostrando resultado desde {from} hasta {to} de un total de {total} registros",welcome:"Bienvenido",attachments:"Adjuntos",addNewAttachment:"A\xF1adir nuevo adjunto",listAllAttachments:"Ver todos los adjuntos",viewAs:"Ver c\xF3mo",confirmRemoveItem:"Est\xE1s seguro de querer eliminar \xE9ste registro?",save:"Guardar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Siguiente",actions:"Acciones",reports:"Informes",related:"Relacionado",new:"Nuevo",fillRequiredField:"Por favor, rellena \xE9ste campo obligatorio",fillRequiredFields:"Por favor, rellena todos los campos obligatorios",generatingReport:"Generando informe...",confirmation:"Confirmaci\xF3m",ok:"De acuerdo",cancel:"Cancelar",formHasErrors:"El formulario tiene errores",unsavedChanges:"Hay cambios sin guardar",confirmRefreshWithoutSave:"Est\xE1s seguro de querer refrescar la p\xE1gina sin guardar los cambios?",discardAndRefresh:"Descarta los cambios y refresca",removeItems:"Eliminar el registro/s",confirmRemove:"Est\xE1s seguro de querer eliminar los registro/s seleccionados?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlaza registro/s",confirmUnlink:"Est\xE1s seguro de querer desenlazar los registro/s seleccionados?",yesConfirmUnlink:"S\xED, desenlaza",confirmCloseWithoutSave:"Est\xE1s seguro de querer cerrar \xE9sta ventana sin cerrar?",closeWithoutSaving:"Cerrar sin guardar",action:"Acci\xF3n",report:"Informe",selectAction:"Selecciona una acci\xF3n",download:"Descarga",clear:"Limpiar",open:"Abrir",uploadNewImage:"Subir una nueva im\xE1gen",noCurrentEntries:"No hay registros",duplicate:"Duplicar",downloadingAttachment:"Descargando adjunto...",tree:"lista",form:"formulario",favorites:"Mis favoritos",edit_favorites:"Edita los favoritos",no_favorites:"No tienes favoritos guardados",register:"Registro",of:"de",editingDocument:"Editando documento",showLogs:"Ver logs",createdBy:"Creado por el usuario",creationDate:"Fecha creaci\xF3n",lastUpdatedBy:"\xDAltima modificaci\xF3n por",lastUpdatedDate:"Fecha \xFAltima modificaci\xF3n",goToResourceId:"Ir al recurso con ID",searchId:"ID de b\xFAsqueda:",idNotFound:"No se encuentra \xE9sta ID de recursos para el objeto",selectedRegisters:"registros seleccionados",translate:"Traducir",enterTextBeforeTranslate:"Introduce algun texto en el campo antes de a\xF1adir traducciones",saveBeforeTranslate:"Tienes que guardar el registro antes de a\xF1adir las traducciones",configDashboard:"Configurar panel",moveDashboard:"Mover items del panel",openAttachment:"Ver detalle del adjunto",openAttachmentLink:"Abrir enlace del adjunto",uninformed:"Sin informar"},localeStrings={ca_ES,en_US:en_US$5,es_ES},LocaleContext=React__default.default.createContext(null),LocaleContextProvider=e=>{const{children:n,lang:t}=e;function o(r){return tForLang(r,t)}return jsxRuntime.jsx(LocaleContext.Provider,{value:{lang:t,t:o},children:n})},tForLang=(e,n)=>{var o;return((o=localeStrings[n])==null?void 0:o[e])||e};function Field$1({ooui:e,children:n,layout:t="horizontal",valuePropName:o,showLabel:r=!1,alignLabel:a="left",required:s=!1,type:l,validator:c}){const{id:u,label:d,tooltip:f}=e,{t:m}=React.useContext(LocaleContext),p=s?[{required:!0,message:m("fillRequiredField"),type:l,validator:c}]:void 0,g=()=>jsxRuntime.jsx(antd.Form.Item,{className:"mb-0",name:u,valuePropName:o,rules:p,children:n});if(!r)return g();const v=jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:u+"_label",string:d,help:f,fieldForLabel:u}),align:a});return t==="horizontal"?(()=>jsxRuntime.jsxs(antd.Row,{align:"middle",className:"pb-1 pt-1",children:[jsxRuntime.jsx(antd.Col,{className:"ml-2",flex:"7rem",children:jsxRuntime.jsx("div",{className:"flex flex-col items-end",children:v})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:g()})]}))():(()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[v,g()]}))()}const{confirm:confirm$4}=antd.Modal,showDialog$9=({onOk:e,confirmMessage:n,lang:t})=>{confirm$4({title:tForLang("confirmation",t),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:n,okText:tForLang("ok",t),cancelText:tForLang("cancel",t),onOk:e})},FormContext$1=React__default.default.createContext(null),FormProvider$1=e=>{const{children:n,activeId:t,activeModel:o,setFieldValue:r,getFieldValue:a,executeButtonAction:s,getContext:l,getValues:c,getPlainValues:u,setOriginalValue:d,domain:f,submitForm:m,fetchValues:p,formHasChanges:g,elementHasLostFocus:v,getFields:C}=e;return jsxRuntime.jsx(FormContext$1.Provider,{value:{domain:f,getValues:c,getPlainValues:u,getFields:C,activeId:t,activeModel:o,setFieldValue:r,getFieldValue:a,executeButtonAction:s,getContext:l,setOriginalValue:d,submitForm:m,fetchValues:p,formHasChanges:g,elementHasLostFocus:v},children:n})},AntIcons={AccountBookFilled:Icon.AccountBookFilled,AccountBookOutlined:Icon.AccountBookOutlined,AccountBookTwoTone:Icon.AccountBookTwoTone,AimOutlined:Icon.AimOutlined,AlertFilled:Icon.AlertFilled,AlertOutlined:Icon.AlertOutlined,AlertTwoTone:Icon.AlertTwoTone,AlibabaOutlined:Icon.AlibabaOutlined,AlignCenterOutlined:Icon.AlignCenterOutlined,AlignLeftOutlined:Icon.AlignLeftOutlined,AlignRightOutlined:Icon.AlignRightOutlined,AlipayCircleFilled:Icon.AlipayCircleFilled,AlipayCircleOutlined:Icon.AlipayCircleOutlined,AlipayOutlined:Icon.AlipayOutlined,AlipaySquareFilled:Icon.AlipaySquareFilled,AliwangwangFilled:Icon.AliwangwangFilled,AliwangwangOutlined:Icon.AliwangwangOutlined,AliyunOutlined:Icon.AliyunOutlined,AmazonCircleFilled:Icon.AmazonCircleFilled,AmazonOutlined:Icon.AmazonOutlined,AmazonSquareFilled:Icon.AmazonSquareFilled,AndroidFilled:Icon.AndroidFilled,AndroidOutlined:Icon.AndroidOutlined,AntCloudOutlined:Icon.AntCloudOutlined,AntDesignOutlined:Icon.AntDesignOutlined,ApartmentOutlined:Icon.ApartmentOutlined,ApiFilled:Icon.ApiFilled,ApiOutlined:Icon.ApiOutlined,ApiTwoTone:Icon.ApiTwoTone,AppleFilled:Icon.AppleFilled,AppleOutlined:Icon.AppleOutlined,AppstoreAddOutlined:Icon.AppstoreAddOutlined,AppstoreFilled:Icon.AppstoreFilled,AppstoreOutlined:Icon.AppstoreOutlined,AppstoreTwoTone:Icon.AppstoreTwoTone,AreaChartOutlined:Icon.AreaChartOutlined,ArrowDownOutlined:Icon.ArrowDownOutlined,ArrowLeftOutlined:Icon.ArrowLeftOutlined,ArrowRightOutlined:Icon.ArrowRightOutlined,ArrowUpOutlined:Icon.ArrowUpOutlined,ArrowsAltOutlined:Icon.ArrowsAltOutlined,AudioFilled:Icon.AudioFilled,AudioMutedOutlined:Icon.AudioMutedOutlined,AudioOutlined:Icon.AudioOutlined,AudioTwoTone:Icon.AudioTwoTone,AuditOutlined:Icon.AuditOutlined,BackwardFilled:Icon.BackwardFilled,BackwardOutlined:Icon.BackwardOutlined,BankFilled:Icon.BankFilled,BankOutlined:Icon.BankOutlined,BankTwoTone:Icon.BankTwoTone,BarChartOutlined:Icon.BarChartOutlined,BarcodeOutlined:Icon.BarcodeOutlined,BarsOutlined:Icon.BarsOutlined,BehanceCircleFilled:Icon.BehanceCircleFilled,BehanceOutlined:Icon.BehanceOutlined,BehanceSquareFilled:Icon.BehanceSquareFilled,BehanceSquareOutlined:Icon.BehanceSquareOutlined,BellFilled:Icon.BellFilled,BellOutlined:Icon.BellOutlined,BellTwoTone:Icon.BellTwoTone,BgColorsOutlined:Icon.BgColorsOutlined,BlockOutlined:Icon.BlockOutlined,BoldOutlined:Icon.BoldOutlined,BookFilled:Icon.BookFilled,BookOutlined:Icon.BookOutlined,BookTwoTone:Icon.BookTwoTone,BorderBottomOutlined:Icon.BorderBottomOutlined,BorderHorizontalOutlined:Icon.BorderHorizontalOutlined,BorderInnerOutlined:Icon.BorderInnerOutlined,BorderLeftOutlined:Icon.BorderLeftOutlined,BorderOuterOutlined:Icon.BorderOuterOutlined,BorderOutlined:Icon.BorderOutlined,BorderRightOutlined:Icon.BorderRightOutlined,BorderTopOutlined:Icon.BorderTopOutlined,BorderVerticleOutlined:Icon.BorderVerticleOutlined,BorderlessTableOutlined:Icon.BorderlessTableOutlined,BoxPlotFilled:Icon.BoxPlotFilled,BoxPlotOutlined:Icon.BoxPlotOutlined,BoxPlotTwoTone:Icon.BoxPlotTwoTone,BranchesOutlined:Icon.BranchesOutlined,BugFilled:Icon.BugFilled,BugOutlined:Icon.BugOutlined,BugTwoTone:Icon.BugTwoTone,BuildFilled:Icon.BuildFilled,BuildOutlined:Icon.BuildOutlined,BuildTwoTone:Icon.BuildTwoTone,BulbFilled:Icon.BulbFilled,BulbOutlined:Icon.BulbOutlined,BulbTwoTone:Icon.BulbTwoTone,CalculatorFilled:Icon.CalculatorFilled,CalculatorOutlined:Icon.CalculatorOutlined,CalculatorTwoTone:Icon.CalculatorTwoTone,CalendarFilled:Icon.CalendarFilled,CalendarOutlined:Icon.CalendarOutlined,CalendarTwoTone:Icon.CalendarTwoTone,CameraFilled:Icon.CameraFilled,CameraOutlined:Icon.CameraOutlined,CameraTwoTone:Icon.CameraTwoTone,CarFilled:Icon.CarFilled,CarOutlined:Icon.CarOutlined,CarTwoTone:Icon.CarTwoTone,CaretDownFilled:Icon.CaretDownFilled,CaretDownOutlined:Icon.CaretDownOutlined,CaretLeftFilled:Icon.CaretLeftFilled,CaretLeftOutlined:Icon.CaretLeftOutlined,CaretRightFilled:Icon.CaretRightFilled,CaretRightOutlined:Icon.CaretRightOutlined,CaretUpFilled:Icon.CaretUpFilled,CaretUpOutlined:Icon.CaretUpOutlined,CarryOutFilled:Icon.CarryOutFilled,CarryOutOutlined:Icon.CarryOutOutlined,CarryOutTwoTone:Icon.CarryOutTwoTone,CheckCircleFilled:Icon.CheckCircleFilled,CheckCircleOutlined:Icon.CheckCircleOutlined,CheckCircleTwoTone:Icon.CheckCircleTwoTone,CheckOutlined:Icon.CheckOutlined,CheckSquareFilled:Icon.CheckSquareFilled,CheckSquareOutlined:Icon.CheckSquareOutlined,CheckSquareTwoTone:Icon.CheckSquareTwoTone,ChromeFilled:Icon.ChromeFilled,ChromeOutlined:Icon.ChromeOutlined,CiCircleFilled:Icon.CiCircleFilled,CiCircleOutlined:Icon.CiCircleOutlined,CiCircleTwoTone:Icon.CiCircleTwoTone,CiOutlined:Icon.CiOutlined,CiTwoTone:Icon.CiTwoTone,ClearOutlined:Icon.ClearOutlined,ClockCircleFilled:Icon.ClockCircleFilled,ClockCircleOutlined:Icon.ClockCircleOutlined,ClockCircleTwoTone:Icon.ClockCircleTwoTone,CloseCircleFilled:Icon.CloseCircleFilled,CloseCircleOutlined:Icon.CloseCircleOutlined,CloseCircleTwoTone:Icon.CloseCircleTwoTone,CloseOutlined:Icon.CloseOutlined,CloseSquareFilled:Icon.CloseSquareFilled,CloseSquareOutlined:Icon.CloseSquareOutlined,CloseSquareTwoTone:Icon.CloseSquareTwoTone,CloudDownloadOutlined:Icon.CloudDownloadOutlined,CloudFilled:Icon.CloudFilled,CloudOutlined:Icon.CloudOutlined,CloudServerOutlined:Icon.CloudServerOutlined,CloudSyncOutlined:Icon.CloudSyncOutlined,CloudTwoTone:Icon.CloudTwoTone,CloudUploadOutlined:Icon.CloudUploadOutlined,ClusterOutlined:Icon.ClusterOutlined,CodeFilled:Icon.CodeFilled,CodeOutlined:Icon.CodeOutlined,CodeSandboxCircleFilled:Icon.CodeSandboxCircleFilled,CodeSandboxOutlined:Icon.CodeSandboxOutlined,CodeSandboxSquareFilled:Icon.CodeSandboxSquareFilled,CodeTwoTone:Icon.CodeTwoTone,CodepenCircleFilled:Icon.CodepenCircleFilled,CodepenCircleOutlined:Icon.CodepenCircleOutlined,CodepenOutlined:Icon.CodepenOutlined,CodepenSquareFilled:Icon.CodepenSquareFilled,CoffeeOutlined:Icon.CoffeeOutlined,ColumnHeightOutlined:Icon.ColumnHeightOutlined,ColumnWidthOutlined:Icon.ColumnWidthOutlined,CommentOutlined:Icon.CommentOutlined,CompassFilled:Icon.CompassFilled,CompassOutlined:Icon.CompassOutlined,CompassTwoTone:Icon.CompassTwoTone,CompressOutlined:Icon.CompressOutlined,ConsoleSqlOutlined:Icon.ConsoleSqlOutlined,ContactsFilled:Icon.ContactsFilled,ContactsOutlined:Icon.ContactsOutlined,ContactsTwoTone:Icon.ContactsTwoTone,ContainerFilled:Icon.ContainerFilled,ContainerOutlined:Icon.ContainerOutlined,ContainerTwoTone:Icon.ContainerTwoTone,ControlFilled:Icon.ControlFilled,ControlOutlined:Icon.ControlOutlined,ControlTwoTone:Icon.ControlTwoTone,CopyFilled:Icon.CopyFilled,CopyOutlined:Icon.CopyOutlined,CopyTwoTone:Icon.CopyTwoTone,CopyrightCircleFilled:Icon.CopyrightCircleFilled,CopyrightCircleOutlined:Icon.CopyrightCircleOutlined,CopyrightCircleTwoTone:Icon.CopyrightCircleTwoTone,CopyrightOutlined:Icon.CopyrightOutlined,CopyrightTwoTone:Icon.CopyrightTwoTone,CreditCardFilled:Icon.CreditCardFilled,CreditCardOutlined:Icon.CreditCardOutlined,CreditCardTwoTone:Icon.CreditCardTwoTone,CrownFilled:Icon.CrownFilled,CrownOutlined:Icon.CrownOutlined,CrownTwoTone:Icon.CrownTwoTone,CustomerServiceFilled:Icon.CustomerServiceFilled,CustomerServiceOutlined:Icon.CustomerServiceOutlined,CustomerServiceTwoTone:Icon.CustomerServiceTwoTone,DashOutlined:Icon.DashOutlined,DashboardFilled:Icon.DashboardFilled,DashboardOutlined:Icon.DashboardOutlined,DashboardTwoTone:Icon.DashboardTwoTone,DatabaseFilled:Icon.DatabaseFilled,DatabaseOutlined:Icon.DatabaseOutlined,DatabaseTwoTone:Icon.DatabaseTwoTone,DeleteColumnOutlined:Icon.DeleteColumnOutlined,DeleteFilled:Icon.DeleteFilled,DeleteOutlined:Icon.DeleteOutlined,DeleteRowOutlined:Icon.DeleteRowOutlined,DeleteTwoTone:Icon.DeleteTwoTone,DeliveredProcedureOutlined:Icon.DeliveredProcedureOutlined,DeploymentUnitOutlined:Icon.DeploymentUnitOutlined,DesktopOutlined:Icon.DesktopOutlined,DiffFilled:Icon.DiffFilled,DiffOutlined:Icon.DiffOutlined,DiffTwoTone:Icon.DiffTwoTone,DingdingOutlined:Icon.DingdingOutlined,DingtalkCircleFilled:Icon.DingtalkCircleFilled,DingtalkOutlined:Icon.DingtalkOutlined,DingtalkSquareFilled:Icon.DingtalkSquareFilled,DisconnectOutlined:Icon.DisconnectOutlined,DislikeFilled:Icon.DislikeFilled,DislikeOutlined:Icon.DislikeOutlined,DislikeTwoTone:Icon.DislikeTwoTone,DollarCircleFilled:Icon.DollarCircleFilled,DollarCircleOutlined:Icon.DollarCircleOutlined,DollarCircleTwoTone:Icon.DollarCircleTwoTone,DollarOutlined:Icon.DollarOutlined,DollarTwoTone:Icon.DollarTwoTone,DotChartOutlined:Icon.DotChartOutlined,DoubleLeftOutlined:Icon.DoubleLeftOutlined,DoubleRightOutlined:Icon.DoubleRightOutlined,DownCircleFilled:Icon.DownCircleFilled,DownCircleOutlined:Icon.DownCircleOutlined,DownCircleTwoTone:Icon.DownCircleTwoTone,DownOutlined:Icon.DownOutlined,DownSquareFilled:Icon.DownSquareFilled,DownSquareOutlined:Icon.DownSquareOutlined,DownSquareTwoTone:Icon.DownSquareTwoTone,DownloadOutlined:Icon.DownloadOutlined,DragOutlined:Icon.DragOutlined,DribbbleCircleFilled:Icon.DribbbleCircleFilled,DribbbleOutlined:Icon.DribbbleOutlined,DribbbleSquareFilled:Icon.DribbbleSquareFilled,DribbbleSquareOutlined:Icon.DribbbleSquareOutlined,DropboxCircleFilled:Icon.DropboxCircleFilled,DropboxOutlined:Icon.DropboxOutlined,DropboxSquareFilled:Icon.DropboxSquareFilled,EditFilled:Icon.EditFilled,EditOutlined:Icon.EditOutlined,EditTwoTone:Icon.EditTwoTone,EllipsisOutlined:Icon.EllipsisOutlined,EnterOutlined:Icon.EnterOutlined,EnvironmentFilled:Icon.EnvironmentFilled,EnvironmentOutlined:Icon.EnvironmentOutlined,EnvironmentTwoTone:Icon.EnvironmentTwoTone,EuroCircleFilled:Icon.EuroCircleFilled,EuroCircleOutlined:Icon.EuroCircleOutlined,EuroCircleTwoTone:Icon.EuroCircleTwoTone,EuroOutlined:Icon.EuroOutlined,EuroTwoTone:Icon.EuroTwoTone,ExceptionOutlined:Icon.ExceptionOutlined,ExclamationCircleFilled:Icon.ExclamationCircleFilled,ExclamationCircleOutlined:Icon.ExclamationCircleOutlined,ExclamationCircleTwoTone:Icon.ExclamationCircleTwoTone,ExclamationOutlined:Icon.ExclamationOutlined,ExpandAltOutlined:Icon.ExpandAltOutlined,ExpandOutlined:Icon.ExpandOutlined,ExperimentFilled:Icon.ExperimentFilled,ExperimentOutlined:Icon.ExperimentOutlined,ExperimentTwoTone:Icon.ExperimentTwoTone,ExportOutlined:Icon.ExportOutlined,EyeFilled:Icon.EyeFilled,EyeInvisibleFilled:Icon.EyeInvisibleFilled,EyeInvisibleOutlined:Icon.EyeInvisibleOutlined,EyeInvisibleTwoTone:Icon.EyeInvisibleTwoTone,EyeOutlined:Icon.EyeOutlined,EyeTwoTone:Icon.EyeTwoTone,FacebookFilled:Icon.FacebookFilled,FacebookOutlined:Icon.FacebookOutlined,FallOutlined:Icon.FallOutlined,FastBackwardFilled:Icon.FastBackwardFilled,FastBackwardOutlined:Icon.FastBackwardOutlined,FastForwardFilled:Icon.FastForwardFilled,FastForwardOutlined:Icon.FastForwardOutlined,FieldBinaryOutlined:Icon.FieldBinaryOutlined,FieldNumberOutlined:Icon.FieldNumberOutlined,FieldStringOutlined:Icon.FieldStringOutlined,FieldTimeOutlined:Icon.FieldTimeOutlined,FileAddFilled:Icon.FileAddFilled,FileAddOutlined:Icon.FileAddOutlined,FileAddTwoTone:Icon.FileAddTwoTone,FileDoneOutlined:Icon.FileDoneOutlined,FileExcelFilled:Icon.FileExcelFilled,FileExcelOutlined:Icon.FileExcelOutlined,FileExcelTwoTone:Icon.FileExcelTwoTone,FileExclamationFilled:Icon.FileExclamationFilled,FileExclamationOutlined:Icon.FileExclamationOutlined,FileExclamationTwoTone:Icon.FileExclamationTwoTone,FileFilled:Icon.FileFilled,FileGifOutlined:Icon.FileGifOutlined,FileImageFilled:Icon.FileImageFilled,FileImageOutlined:Icon.FileImageOutlined,FileImageTwoTone:Icon.FileImageTwoTone,FileJpgOutlined:Icon.FileJpgOutlined,FileMarkdownFilled:Icon.FileMarkdownFilled,FileMarkdownOutlined:Icon.FileMarkdownOutlined,FileMarkdownTwoTone:Icon.FileMarkdownTwoTone,FileOutlined:Icon.FileOutlined,FilePdfFilled:Icon.FilePdfFilled,FilePdfOutlined:Icon.FilePdfOutlined,FilePdfTwoTone:Icon.FilePdfTwoTone,FilePptFilled:Icon.FilePptFilled,FilePptOutlined:Icon.FilePptOutlined,FilePptTwoTone:Icon.FilePptTwoTone,FileProtectOutlined:Icon.FileProtectOutlined,FileSearchOutlined:Icon.FileSearchOutlined,FileSyncOutlined:Icon.FileSyncOutlined,FileTextFilled:Icon.FileTextFilled,FileTextOutlined:Icon.FileTextOutlined,FileTextTwoTone:Icon.FileTextTwoTone,FileTwoTone:Icon.FileTwoTone,FileUnknownFilled:Icon.FileUnknownFilled,FileUnknownOutlined:Icon.FileUnknownOutlined,FileUnknownTwoTone:Icon.FileUnknownTwoTone,FileWordFilled:Icon.FileWordFilled,FileWordOutlined:Icon.FileWordOutlined,FileWordTwoTone:Icon.FileWordTwoTone,FileZipFilled:Icon.FileZipFilled,FileZipOutlined:Icon.FileZipOutlined,FileZipTwoTone:Icon.FileZipTwoTone,FilterFilled:Icon.FilterFilled,FilterOutlined:Icon.FilterOutlined,FilterTwoTone:Icon.FilterTwoTone,FireFilled:Icon.FireFilled,FireOutlined:Icon.FireOutlined,FireTwoTone:Icon.FireTwoTone,FlagFilled:Icon.FlagFilled,FlagOutlined:Icon.FlagOutlined,FlagTwoTone:Icon.FlagTwoTone,FolderAddFilled:Icon.FolderAddFilled,FolderAddOutlined:Icon.FolderAddOutlined,FolderAddTwoTone:Icon.FolderAddTwoTone,FolderFilled:Icon.FolderFilled,FolderOpenFilled:Icon.FolderOpenFilled,FolderOpenOutlined:Icon.FolderOpenOutlined,FolderOpenTwoTone:Icon.FolderOpenTwoTone,FolderOutlined:Icon.FolderOutlined,FolderTwoTone:Icon.FolderTwoTone,FolderViewOutlined:Icon.FolderViewOutlined,FontColorsOutlined:Icon.FontColorsOutlined,FontSizeOutlined:Icon.FontSizeOutlined,ForkOutlined:Icon.ForkOutlined,FormOutlined:Icon.FormOutlined,FormatPainterFilled:Icon.FormatPainterFilled,FormatPainterOutlined:Icon.FormatPainterOutlined,ForwardFilled:Icon.ForwardFilled,ForwardOutlined:Icon.ForwardOutlined,FrownFilled:Icon.FrownFilled,FrownOutlined:Icon.FrownOutlined,FrownTwoTone:Icon.FrownTwoTone,FullscreenExitOutlined:Icon.FullscreenExitOutlined,FullscreenOutlined:Icon.FullscreenOutlined,FunctionOutlined:Icon.FunctionOutlined,FundFilled:Icon.FundFilled,FundOutlined:Icon.FundOutlined,FundProjectionScreenOutlined:Icon.FundProjectionScreenOutlined,FundTwoTone:Icon.FundTwoTone,FundViewOutlined:Icon.FundViewOutlined,FunnelPlotFilled:Icon.FunnelPlotFilled,FunnelPlotOutlined:Icon.FunnelPlotOutlined,FunnelPlotTwoTone:Icon.FunnelPlotTwoTone,GatewayOutlined:Icon.GatewayOutlined,GifOutlined:Icon.GifOutlined,GiftFilled:Icon.GiftFilled,GiftOutlined:Icon.GiftOutlined,GiftTwoTone:Icon.GiftTwoTone,GithubFilled:Icon.GithubFilled,GithubOutlined:Icon.GithubOutlined,GitlabFilled:Icon.GitlabFilled,GitlabOutlined:Icon.GitlabOutlined,GlobalOutlined:Icon.GlobalOutlined,GoldFilled:Icon.GoldFilled,GoldOutlined:Icon.GoldOutlined,GoldTwoTone:Icon.GoldTwoTone,GoldenFilled:Icon.GoldenFilled,GoogleCircleFilled:Icon.GoogleCircleFilled,GoogleOutlined:Icon.GoogleOutlined,GooglePlusCircleFilled:Icon.GooglePlusCircleFilled,GooglePlusOutlined:Icon.GooglePlusOutlined,GooglePlusSquareFilled:Icon.GooglePlusSquareFilled,GoogleSquareFilled:Icon.GoogleSquareFilled,GroupOutlined:Icon.GroupOutlined,HddFilled:Icon.HddFilled,HddOutlined:Icon.HddOutlined,HddTwoTone:Icon.HddTwoTone,HeartFilled:Icon.HeartFilled,HeartOutlined:Icon.HeartOutlined,HeartTwoTone:Icon.HeartTwoTone,HeatMapOutlined:Icon.HeatMapOutlined,HighlightFilled:Icon.HighlightFilled,HighlightOutlined:Icon.HighlightOutlined,HighlightTwoTone:Icon.HighlightTwoTone,HistoryOutlined:Icon.HistoryOutlined,HolderOutlined:Icon.HolderOutlined,HomeFilled:Icon.HomeFilled,HomeOutlined:Icon.HomeOutlined,HomeTwoTone:Icon.HomeTwoTone,HourglassFilled:Icon.HourglassFilled,HourglassOutlined:Icon.HourglassOutlined,HourglassTwoTone:Icon.HourglassTwoTone,Html5Filled:Icon.Html5Filled,Html5Outlined:Icon.Html5Outlined,Html5TwoTone:Icon.Html5TwoTone,IdcardFilled:Icon.IdcardFilled,IdcardOutlined:Icon.IdcardOutlined,IdcardTwoTone:Icon.IdcardTwoTone,IeCircleFilled:Icon.IeCircleFilled,IeOutlined:Icon.IeOutlined,IeSquareFilled:Icon.IeSquareFilled,ImportOutlined:Icon.ImportOutlined,InboxOutlined:Icon.InboxOutlined,InfoCircleFilled:Icon.InfoCircleFilled,InfoCircleOutlined:Icon.InfoCircleOutlined,InfoCircleTwoTone:Icon.InfoCircleTwoTone,InfoOutlined:Icon.InfoOutlined,InsertRowAboveOutlined:Icon.InsertRowAboveOutlined,InsertRowBelowOutlined:Icon.InsertRowBelowOutlined,InsertRowLeftOutlined:Icon.InsertRowLeftOutlined,InsertRowRightOutlined:Icon.InsertRowRightOutlined,InstagramFilled:Icon.InstagramFilled,InstagramOutlined:Icon.InstagramOutlined,InsuranceFilled:Icon.InsuranceFilled,InsuranceOutlined:Icon.InsuranceOutlined,InsuranceTwoTone:Icon.InsuranceTwoTone,InteractionFilled:Icon.InteractionFilled,InteractionOutlined:Icon.InteractionOutlined,InteractionTwoTone:Icon.InteractionTwoTone,IssuesCloseOutlined:Icon.IssuesCloseOutlined,ItalicOutlined:Icon.ItalicOutlined,KeyOutlined:Icon.KeyOutlined,LaptopOutlined:Icon.LaptopOutlined,LayoutFilled:Icon.LayoutFilled,LayoutOutlined:Icon.LayoutOutlined,LayoutTwoTone:Icon.LayoutTwoTone,LeftCircleFilled:Icon.LeftCircleFilled,LeftCircleOutlined:Icon.LeftCircleOutlined,LeftCircleTwoTone:Icon.LeftCircleTwoTone,LeftOutlined:Icon.LeftOutlined,LeftSquareFilled:Icon.LeftSquareFilled,LeftSquareOutlined:Icon.LeftSquareOutlined,LeftSquareTwoTone:Icon.LeftSquareTwoTone,LikeFilled:Icon.LikeFilled,LikeOutlined:Icon.LikeOutlined,LikeTwoTone:Icon.LikeTwoTone,LineChartOutlined:Icon.LineChartOutlined,LineHeightOutlined:Icon.LineHeightOutlined,LineOutlined:Icon.LineOutlined,LinkOutlined:Icon.LinkOutlined,LinkedinFilled:Icon.LinkedinFilled,LinkedinOutlined:Icon.LinkedinOutlined,Loading3QuartersOutlined:Icon.Loading3QuartersOutlined,LoadingOutlined:Icon.LoadingOutlined,LockFilled:Icon.LockFilled,LockOutlined:Icon.LockOutlined,LockTwoTone:Icon.LockTwoTone,LoginOutlined:Icon.LoginOutlined,LogoutOutlined:Icon.LogoutOutlined,MacCommandFilled:Icon.MacCommandFilled,MacCommandOutlined:Icon.MacCommandOutlined,MailFilled:Icon.MailFilled,MailOutlined:Icon.MailOutlined,MailTwoTone:Icon.MailTwoTone,ManOutlined:Icon.ManOutlined,MedicineBoxFilled:Icon.MedicineBoxFilled,MedicineBoxOutlined:Icon.MedicineBoxOutlined,MedicineBoxTwoTone:Icon.MedicineBoxTwoTone,MediumCircleFilled:Icon.MediumCircleFilled,MediumOutlined:Icon.MediumOutlined,MediumSquareFilled:Icon.MediumSquareFilled,MediumWorkmarkOutlined:Icon.MediumWorkmarkOutlined,MehFilled:Icon.MehFilled,MehOutlined:Icon.MehOutlined,MehTwoTone:Icon.MehTwoTone,MenuFoldOutlined:Icon.MenuFoldOutlined,MenuOutlined:Icon.MenuOutlined,MenuUnfoldOutlined:Icon.MenuUnfoldOutlined,MergeCellsOutlined:Icon.MergeCellsOutlined,MessageFilled:Icon.MessageFilled,MessageOutlined:Icon.MessageOutlined,MessageTwoTone:Icon.MessageTwoTone,MinusCircleFilled:Icon.MinusCircleFilled,MinusCircleOutlined:Icon.MinusCircleOutlined,MinusCircleTwoTone:Icon.MinusCircleTwoTone,MinusOutlined:Icon.MinusOutlined,MinusSquareFilled:Icon.MinusSquareFilled,MinusSquareOutlined:Icon.MinusSquareOutlined,MinusSquareTwoTone:Icon.MinusSquareTwoTone,MobileFilled:Icon.MobileFilled,MobileOutlined:Icon.MobileOutlined,MobileTwoTone:Icon.MobileTwoTone,MoneyCollectFilled:Icon.MoneyCollectFilled,MoneyCollectOutlined:Icon.MoneyCollectOutlined,MoneyCollectTwoTone:Icon.MoneyCollectTwoTone,MonitorOutlined:Icon.MonitorOutlined,MoreOutlined:Icon.MoreOutlined,NodeCollapseOutlined:Icon.NodeCollapseOutlined,NodeExpandOutlined:Icon.NodeExpandOutlined,NodeIndexOutlined:Icon.NodeIndexOutlined,NotificationFilled:Icon.NotificationFilled,NotificationOutlined:Icon.NotificationOutlined,NotificationTwoTone:Icon.NotificationTwoTone,NumberOutlined:Icon.NumberOutlined,OneToOneOutlined:Icon.OneToOneOutlined,OrderedListOutlined:Icon.OrderedListOutlined,PaperClipOutlined:Icon.PaperClipOutlined,PartitionOutlined:Icon.PartitionOutlined,PauseCircleFilled:Icon.PauseCircleFilled,PauseCircleOutlined:Icon.PauseCircleOutlined,PauseCircleTwoTone:Icon.PauseCircleTwoTone,PauseOutlined:Icon.PauseOutlined,PayCircleFilled:Icon.PayCircleFilled,PayCircleOutlined:Icon.PayCircleOutlined,PercentageOutlined:Icon.PercentageOutlined,PhoneFilled:Icon.PhoneFilled,PhoneOutlined:Icon.PhoneOutlined,PhoneTwoTone:Icon.PhoneTwoTone,PicCenterOutlined:Icon.PicCenterOutlined,PicLeftOutlined:Icon.PicLeftOutlined,PicRightOutlined:Icon.PicRightOutlined,PictureFilled:Icon.PictureFilled,PictureOutlined:Icon.PictureOutlined,PictureTwoTone:Icon.PictureTwoTone,PieChartFilled:Icon.PieChartFilled,PieChartOutlined:Icon.PieChartOutlined,PieChartTwoTone:Icon.PieChartTwoTone,PlayCircleFilled:Icon.PlayCircleFilled,PlayCircleOutlined:Icon.PlayCircleOutlined,PlayCircleTwoTone:Icon.PlayCircleTwoTone,PlaySquareFilled:Icon.PlaySquareFilled,PlaySquareOutlined:Icon.PlaySquareOutlined,PlaySquareTwoTone:Icon.PlaySquareTwoTone,PlusCircleFilled:Icon.PlusCircleFilled,PlusCircleOutlined:Icon.PlusCircleOutlined,PlusCircleTwoTone:Icon.PlusCircleTwoTone,PlusOutlined:Icon.PlusOutlined,PlusSquareFilled:Icon.PlusSquareFilled,PlusSquareOutlined:Icon.PlusSquareOutlined,PlusSquareTwoTone:Icon.PlusSquareTwoTone,PoundCircleFilled:Icon.PoundCircleFilled,PoundCircleOutlined:Icon.PoundCircleOutlined,PoundCircleTwoTone:Icon.PoundCircleTwoTone,PoundOutlined:Icon.PoundOutlined,PoweroffOutlined:Icon.PoweroffOutlined,PrinterFilled:Icon.PrinterFilled,PrinterOutlined:Icon.PrinterOutlined,PrinterTwoTone:Icon.PrinterTwoTone,ProfileFilled:Icon.ProfileFilled,ProfileOutlined:Icon.ProfileOutlined,ProfileTwoTone:Icon.ProfileTwoTone,ProjectFilled:Icon.ProjectFilled,ProjectOutlined:Icon.ProjectOutlined,ProjectTwoTone:Icon.ProjectTwoTone,PropertySafetyFilled:Icon.PropertySafetyFilled,PropertySafetyOutlined:Icon.PropertySafetyOutlined,PropertySafetyTwoTone:Icon.PropertySafetyTwoTone,PullRequestOutlined:Icon.PullRequestOutlined,PushpinFilled:Icon.PushpinFilled,PushpinOutlined:Icon.PushpinOutlined,PushpinTwoTone:Icon.PushpinTwoTone,QqCircleFilled:Icon.QqCircleFilled,QqOutlined:Icon.QqOutlined,QqSquareFilled:Icon.QqSquareFilled,QrcodeOutlined:Icon.QrcodeOutlined,QuestionCircleFilled:Icon.QuestionCircleFilled,QuestionCircleOutlined:Icon.QuestionCircleOutlined,QuestionCircleTwoTone:Icon.QuestionCircleTwoTone,QuestionOutlined:Icon.QuestionOutlined,RadarChartOutlined:Icon.RadarChartOutlined,RadiusBottomleftOutlined:Icon.RadiusBottomleftOutlined,RadiusBottomrightOutlined:Icon.RadiusBottomrightOutlined,RadiusSettingOutlined:Icon.RadiusSettingOutlined,RadiusUpleftOutlined:Icon.RadiusUpleftOutlined,RadiusUprightOutlined:Icon.RadiusUprightOutlined,ReadFilled:Icon.ReadFilled,ReadOutlined:Icon.ReadOutlined,ReconciliationFilled:Icon.ReconciliationFilled,ReconciliationOutlined:Icon.ReconciliationOutlined,ReconciliationTwoTone:Icon.ReconciliationTwoTone,RedEnvelopeFilled:Icon.RedEnvelopeFilled,RedEnvelopeOutlined:Icon.RedEnvelopeOutlined,RedEnvelopeTwoTone:Icon.RedEnvelopeTwoTone,RedditCircleFilled:Icon.RedditCircleFilled,RedditOutlined:Icon.RedditOutlined,RedditSquareFilled:Icon.RedditSquareFilled,RedoOutlined:Icon.RedoOutlined,ReloadOutlined:Icon.ReloadOutlined,RestFilled:Icon.RestFilled,RestOutlined:Icon.RestOutlined,RestTwoTone:Icon.RestTwoTone,RetweetOutlined:Icon.RetweetOutlined,RightCircleFilled:Icon.RightCircleFilled,RightCircleOutlined:Icon.RightCircleOutlined,RightCircleTwoTone:Icon.RightCircleTwoTone,RightOutlined:Icon.RightOutlined,RightSquareFilled:Icon.RightSquareFilled,RightSquareOutlined:Icon.RightSquareOutlined,RightSquareTwoTone:Icon.RightSquareTwoTone,RiseOutlined:Icon.RiseOutlined,RobotFilled:Icon.RobotFilled,RobotOutlined:Icon.RobotOutlined,RocketFilled:Icon.RocketFilled,RocketOutlined:Icon.RocketOutlined,RocketTwoTone:Icon.RocketTwoTone,RollbackOutlined:Icon.RollbackOutlined,RotateLeftOutlined:Icon.RotateLeftOutlined,RotateRightOutlined:Icon.RotateRightOutlined,SafetyCertificateFilled:Icon.SafetyCertificateFilled,SafetyCertificateOutlined:Icon.SafetyCertificateOutlined,SafetyCertificateTwoTone:Icon.SafetyCertificateTwoTone,SafetyOutlined:Icon.SafetyOutlined,SaveFilled:Icon.SaveFilled,SaveOutlined:Icon.SaveOutlined,SaveTwoTone:Icon.SaveTwoTone,ScanOutlined:Icon.ScanOutlined,ScheduleFilled:Icon.ScheduleFilled,ScheduleOutlined:Icon.ScheduleOutlined,ScheduleTwoTone:Icon.ScheduleTwoTone,ScissorOutlined:Icon.ScissorOutlined,SearchOutlined:Icon.SearchOutlined,SecurityScanFilled:Icon.SecurityScanFilled,SecurityScanOutlined:Icon.SecurityScanOutlined,SecurityScanTwoTone:Icon.SecurityScanTwoTone,SelectOutlined:Icon.SelectOutlined,SendOutlined:Icon.SendOutlined,SettingFilled:Icon.SettingFilled,SettingOutlined:Icon.SettingOutlined,SettingTwoTone:Icon.SettingTwoTone,ShakeOutlined:Icon.ShakeOutlined,ShareAltOutlined:Icon.ShareAltOutlined,ShopFilled:Icon.ShopFilled,ShopOutlined:Icon.ShopOutlined,ShopTwoTone:Icon.ShopTwoTone,ShoppingCartOutlined:Icon.ShoppingCartOutlined,ShoppingFilled:Icon.ShoppingFilled,ShoppingOutlined:Icon.ShoppingOutlined,ShoppingTwoTone:Icon.ShoppingTwoTone,ShrinkOutlined:Icon.ShrinkOutlined,SignalFilled:Icon.SignalFilled,SisternodeOutlined:Icon.SisternodeOutlined,SketchCircleFilled:Icon.SketchCircleFilled,SketchOutlined:Icon.SketchOutlined,SketchSquareFilled:Icon.SketchSquareFilled,SkinFilled:Icon.SkinFilled,SkinOutlined:Icon.SkinOutlined,SkinTwoTone:Icon.SkinTwoTone,SkypeFilled:Icon.SkypeFilled,SkypeOutlined:Icon.SkypeOutlined,SlackCircleFilled:Icon.SlackCircleFilled,SlackOutlined:Icon.SlackOutlined,SlackSquareFilled:Icon.SlackSquareFilled,SlackSquareOutlined:Icon.SlackSquareOutlined,SlidersFilled:Icon.SlidersFilled,SlidersOutlined:Icon.SlidersOutlined,SlidersTwoTone:Icon.SlidersTwoTone,SmallDashOutlined:Icon.SmallDashOutlined,SmileFilled:Icon.SmileFilled,SmileOutlined:Icon.SmileOutlined,SmileTwoTone:Icon.SmileTwoTone,SnippetsFilled:Icon.SnippetsFilled,SnippetsOutlined:Icon.SnippetsOutlined,SnippetsTwoTone:Icon.SnippetsTwoTone,SolutionOutlined:Icon.SolutionOutlined,SortAscendingOutlined:Icon.SortAscendingOutlined,SortDescendingOutlined:Icon.SortDescendingOutlined,SoundFilled:Icon.SoundFilled,SoundOutlined:Icon.SoundOutlined,SoundTwoTone:Icon.SoundTwoTone,SplitCellsOutlined:Icon.SplitCellsOutlined,StarFilled:Icon.StarFilled,StarOutlined:Icon.StarOutlined,StarTwoTone:Icon.StarTwoTone,StepBackwardFilled:Icon.StepBackwardFilled,StepBackwardOutlined:Icon.StepBackwardOutlined,StepForwardFilled:Icon.StepForwardFilled,StepForwardOutlined:Icon.StepForwardOutlined,StockOutlined:Icon.StockOutlined,StopFilled:Icon.StopFilled,StopOutlined:Icon.StopOutlined,StopTwoTone:Icon.StopTwoTone,StrikethroughOutlined:Icon.StrikethroughOutlined,SubnodeOutlined:Icon.SubnodeOutlined,SwapLeftOutlined:Icon.SwapLeftOutlined,SwapOutlined:Icon.SwapOutlined,SwapRightOutlined:Icon.SwapRightOutlined,SwitcherFilled:Icon.SwitcherFilled,SwitcherOutlined:Icon.SwitcherOutlined,SwitcherTwoTone:Icon.SwitcherTwoTone,SyncOutlined:Icon.SyncOutlined,TableOutlined:Icon.TableOutlined,TabletFilled:Icon.TabletFilled,TabletOutlined:Icon.TabletOutlined,TabletTwoTone:Icon.TabletTwoTone,TagFilled:Icon.TagFilled,TagOutlined:Icon.TagOutlined,TagTwoTone:Icon.TagTwoTone,TagsFilled:Icon.TagsFilled,TagsOutlined:Icon.TagsOutlined,TagsTwoTone:Icon.TagsTwoTone,TaobaoCircleFilled:Icon.TaobaoCircleFilled,TaobaoCircleOutlined:Icon.TaobaoCircleOutlined,TaobaoOutlined:Icon.TaobaoOutlined,TaobaoSquareFilled:Icon.TaobaoSquareFilled,TeamOutlined:Icon.TeamOutlined,ThunderboltFilled:Icon.ThunderboltFilled,ThunderboltOutlined:Icon.ThunderboltOutlined,ThunderboltTwoTone:Icon.ThunderboltTwoTone,ToTopOutlined:Icon.ToTopOutlined,ToolFilled:Icon.ToolFilled,ToolOutlined:Icon.ToolOutlined,ToolTwoTone:Icon.ToolTwoTone,TrademarkCircleFilled:Icon.TrademarkCircleFilled,TrademarkCircleOutlined:Icon.TrademarkCircleOutlined,TrademarkCircleTwoTone:Icon.TrademarkCircleTwoTone,TrademarkOutlined:Icon.TrademarkOutlined,TransactionOutlined:Icon.TransactionOutlined,TranslationOutlined:Icon.TranslationOutlined,TrophyFilled:Icon.TrophyFilled,TrophyOutlined:Icon.TrophyOutlined,TrophyTwoTone:Icon.TrophyTwoTone,TwitterCircleFilled:Icon.TwitterCircleFilled,TwitterOutlined:Icon.TwitterOutlined,TwitterSquareFilled:Icon.TwitterSquareFilled,UnderlineOutlined:Icon.UnderlineOutlined,UndoOutlined:Icon.UndoOutlined,UngroupOutlined:Icon.UngroupOutlined,UnlockFilled:Icon.UnlockFilled,UnlockOutlined:Icon.UnlockOutlined,UnlockTwoTone:Icon.UnlockTwoTone,UnorderedListOutlined:Icon.UnorderedListOutlined,UpCircleFilled:Icon.UpCircleFilled,UpCircleOutlined:Icon.UpCircleOutlined,UpCircleTwoTone:Icon.UpCircleTwoTone,UpOutlined:Icon.UpOutlined,UpSquareFilled:Icon.UpSquareFilled,UpSquareOutlined:Icon.UpSquareOutlined,UpSquareTwoTone:Icon.UpSquareTwoTone,UploadOutlined:Icon.UploadOutlined,UsbFilled:Icon.UsbFilled,UsbOutlined:Icon.UsbOutlined,UsbTwoTone:Icon.UsbTwoTone,UserAddOutlined:Icon.UserAddOutlined,UserDeleteOutlined:Icon.UserDeleteOutlined,UserOutlined:Icon.UserOutlined,UserSwitchOutlined:Icon.UserSwitchOutlined,UsergroupAddOutlined:Icon.UsergroupAddOutlined,UsergroupDeleteOutlined:Icon.UsergroupDeleteOutlined,VerifiedOutlined:Icon.VerifiedOutlined,VerticalAlignBottomOutlined:Icon.VerticalAlignBottomOutlined,VerticalAlignMiddleOutlined:Icon.VerticalAlignMiddleOutlined,VerticalAlignTopOutlined:Icon.VerticalAlignTopOutlined,VerticalLeftOutlined:Icon.VerticalLeftOutlined,VerticalRightOutlined:Icon.VerticalRightOutlined,VideoCameraAddOutlined:Icon.VideoCameraAddOutlined,VideoCameraFilled:Icon.VideoCameraFilled,VideoCameraOutlined:Icon.VideoCameraOutlined,VideoCameraTwoTone:Icon.VideoCameraTwoTone,WalletFilled:Icon.WalletFilled,WalletOutlined:Icon.WalletOutlined,WalletTwoTone:Icon.WalletTwoTone,WarningFilled:Icon.WarningFilled,WarningOutlined:Icon.WarningOutlined,WarningTwoTone:Icon.WarningTwoTone,WechatFilled:Icon.WechatFilled,WechatOutlined:Icon.WechatOutlined,WeiboCircleFilled:Icon.WeiboCircleFilled,WeiboCircleOutlined:Icon.WeiboCircleOutlined,WeiboOutlined:Icon.WeiboOutlined,WeiboSquareFilled:Icon.WeiboSquareFilled,WeiboSquareOutlined:Icon.WeiboSquareOutlined,WhatsAppOutlined:Icon.WhatsAppOutlined,WifiOutlined:Icon.WifiOutlined,WindowsFilled:Icon.WindowsFilled,WindowsOutlined:Icon.WindowsOutlined,WomanOutlined:Icon.WomanOutlined,YahooFilled:Icon.YahooFilled,YahooOutlined:Icon.YahooOutlined,YoutubeFilled:Icon.YoutubeFilled,YoutubeOutlined:Icon.YoutubeOutlined,YuqueFilled:Icon.YuqueFilled,YuqueOutlined:Icon.YuqueOutlined,ZhihuCircleFilled:Icon.ZhihuCircleFilled,ZhihuOutlined:Icon.ZhihuOutlined,ZhihuSquareFilled:Icon.ZhihuSquareFilled,ZoomInOutlined:Icon.ZoomInOutlined,ZoomOutOutlined:Icon.ZoomOutOutlined},TablerIcons={Icon2fa:icons.Icon2fa,Icon3dCubeSphereOff:icons.Icon3dCubeSphereOff,Icon3dCubeSphere:icons.Icon3dCubeSphere,Icon3dRotate:icons.Icon3dRotate,IconAB2:icons.IconAB2,IconABOff:icons.IconABOff,IconAB:icons.IconAB,IconAbacusOff:icons.IconAbacusOff,IconAbacus:icons.IconAbacus,IconAccessPointOff:icons.IconAccessPointOff,IconAccessPoint:icons.IconAccessPoint,IconAccessibleOff:icons.IconAccessibleOff,IconAccessible:icons.IconAccessible,IconActivityHeartbeat:icons.IconActivityHeartbeat,IconActivity:icons.IconActivity,IconAd2:icons.IconAd2,IconAdOff:icons.IconAdOff,IconAd:icons.IconAd,IconAddressBookOff:icons.IconAddressBookOff,IconAddressBook:icons.IconAddressBook,IconAdjustmentsAlt:icons.IconAdjustmentsAlt,IconAdjustmentsHorizontal:icons.IconAdjustmentsHorizontal,IconAdjustmentsOff:icons.IconAdjustmentsOff,IconAdjustments:icons.IconAdjustments,IconAerialLift:icons.IconAerialLift,IconAffiliate:icons.IconAffiliate,IconAirConditioning:icons.IconAirConditioning,IconAlarmOff:icons.IconAlarmOff,IconAlarm:icons.IconAlarm,IconAlbumOff:icons.IconAlbumOff,IconAlbum:icons.IconAlbum,IconAlertCircle:icons.IconAlertCircle,IconAlertOctagon:icons.IconAlertOctagon,IconAlertTriangle:icons.IconAlertTriangle,IconAlien:icons.IconAlien,IconAlignCenter:icons.IconAlignCenter,IconAlignJustified:icons.IconAlignJustified,IconAlignLeft:icons.IconAlignLeft,IconAlignRight:icons.IconAlignRight,IconAlphabetCyrillic:icons.IconAlphabetCyrillic,IconAlphabetGreek:icons.IconAlphabetGreek,IconAlphabetLatin:icons.IconAlphabetLatin,IconAmbulance:icons.IconAmbulance,IconAmpersand:icons.IconAmpersand,IconAnalyzeOff:icons.IconAnalyzeOff,IconAnalyze:icons.IconAnalyze,IconAnchorOff:icons.IconAnchorOff,IconAnchor:icons.IconAnchor,IconAngle:icons.IconAngle,IconAnkh:icons.IconAnkh,IconAntennaBars1:icons.IconAntennaBars1,IconAntennaBars2:icons.IconAntennaBars2,IconAntennaBars3:icons.IconAntennaBars3,IconAntennaBars4:icons.IconAntennaBars4,IconAntennaBars5:icons.IconAntennaBars5,IconAntennaBarsOff:icons.IconAntennaBarsOff,IconAntennaOff:icons.IconAntennaOff,IconAntenna:icons.IconAntenna,IconApertureOff:icons.IconApertureOff,IconAperture:icons.IconAperture,IconApiAppOff:icons.IconApiAppOff,IconApiApp:icons.IconApiApp,IconApiOff:icons.IconApiOff,IconApi:icons.IconApi,IconAppWindow:icons.IconAppWindow,IconApple:icons.IconApple,IconAppsOff:icons.IconAppsOff,IconApps:icons.IconApps,IconArchiveOff:icons.IconArchiveOff,IconArchive:icons.IconArchive,IconArmchair2Off:icons.IconArmchair2Off,IconArmchair2:icons.IconArmchair2,IconArmchairOff:icons.IconArmchairOff,IconArmchair:icons.IconArmchair,IconArrowAutofitContent:icons.IconArrowAutofitContent,IconArrowAutofitDown:icons.IconArrowAutofitDown,IconArrowAutofitHeight:icons.IconArrowAutofitHeight,IconArrowAutofitLeft:icons.IconArrowAutofitLeft,IconArrowAutofitRight:icons.IconArrowAutofitRight,IconArrowAutofitUp:icons.IconArrowAutofitUp,IconArrowAutofitWidth:icons.IconArrowAutofitWidth,IconArrowBackUp:icons.IconArrowBackUp,IconArrowBack:icons.IconArrowBack,IconArrowBarDown:icons.IconArrowBarDown,IconArrowBarLeft:icons.IconArrowBarLeft,IconArrowBarRight:icons.IconArrowBarRight,IconArrowBarToDown:icons.IconArrowBarToDown,IconArrowBarToLeft:icons.IconArrowBarToLeft,IconArrowBarToRight:icons.IconArrowBarToRight,IconArrowBarToUp:icons.IconArrowBarToUp,IconArrowBarUp:icons.IconArrowBarUp,IconArrowBearLeft2:icons.IconArrowBearLeft2,IconArrowBearLeft:icons.IconArrowBearLeft,IconArrowBearRight2:icons.IconArrowBearRight2,IconArrowBearRight:icons.IconArrowBearRight,IconArrowBigDownLine:icons.IconArrowBigDownLine,IconArrowBigDownLines:icons.IconArrowBigDownLines,IconArrowBigDown:icons.IconArrowBigDown,IconArrowBigLeftLine:icons.IconArrowBigLeftLine,IconArrowBigLeftLines:icons.IconArrowBigLeftLines,IconArrowBigLeft:icons.IconArrowBigLeft,IconArrowBigRightLine:icons.IconArrowBigRightLine,IconArrowBigRightLines:icons.IconArrowBigRightLines,IconArrowBigRight:icons.IconArrowBigRight,IconArrowBigTop:icons.IconArrowBigTop,IconArrowBigUpLine:icons.IconArrowBigUpLine,IconArrowBigUpLines:icons.IconArrowBigUpLines,IconArrowBottomBar:icons.IconArrowBottomBar,IconArrowBottomCircle:icons.IconArrowBottomCircle,IconArrowBottomSquare:icons.IconArrowBottomSquare,IconArrowBottomTail:icons.IconArrowBottomTail,IconArrowBounce:icons.IconArrowBounce,IconArrowCurveLeft:icons.IconArrowCurveLeft,IconArrowCurveRight:icons.IconArrowCurveRight,IconArrowDownCircle:icons.IconArrowDownCircle,IconArrowDownLeftCircle:icons.IconArrowDownLeftCircle,IconArrowDownLeft:icons.IconArrowDownLeft,IconArrowDownRightCircle:icons.IconArrowDownRightCircle,IconArrowDownRight:icons.IconArrowDownRight,IconArrowDown:icons.IconArrowDown,IconArrowFork:icons.IconArrowFork,IconArrowForwardUp:icons.IconArrowForwardUp,IconArrowForward:icons.IconArrowForward,IconArrowGuide:icons.IconArrowGuide,IconArrowLeftBar:icons.IconArrowLeftBar,IconArrowLeftCircle:icons.IconArrowLeftCircle,IconArrowLeftRight:icons.IconArrowLeftRight,IconArrowLeftSquare:icons.IconArrowLeftSquare,IconArrowLeftTail:icons.IconArrowLeftTail,IconArrowLeft:icons.IconArrowLeft,IconArrowLoopLeft2:icons.IconArrowLoopLeft2,IconArrowLoopLeft:icons.IconArrowLoopLeft,IconArrowLoopRight2:icons.IconArrowLoopRight2,IconArrowLoopRight:icons.IconArrowLoopRight,IconArrowMergeBoth:icons.IconArrowMergeBoth,IconArrowMergeLeft:icons.IconArrowMergeLeft,IconArrowMergeRight:icons.IconArrowMergeRight,IconArrowMerge:icons.IconArrowMerge,IconArrowMoveDown:icons.IconArrowMoveDown,IconArrowMoveLeft:icons.IconArrowMoveLeft,IconArrowMoveRight:icons.IconArrowMoveRight,IconArrowMoveUp:icons.IconArrowMoveUp,IconArrowNarrowDown:icons.IconArrowNarrowDown,IconArrowNarrowLeft:icons.IconArrowNarrowLeft,IconArrowNarrowRight:icons.IconArrowNarrowRight,IconArrowNarrowUp:icons.IconArrowNarrowUp,IconArrowRampLeft2:icons.IconArrowRampLeft2,IconArrowRampLeft3:icons.IconArrowRampLeft3,IconArrowRampLeft:icons.IconArrowRampLeft,IconArrowRampRight2:icons.IconArrowRampRight2,IconArrowRampRight3:icons.IconArrowRampRight3,IconArrowRampRight:icons.IconArrowRampRight,IconArrowRightBar:icons.IconArrowRightBar,IconArrowRightCircle:icons.IconArrowRightCircle,IconArrowRightSquare:icons.IconArrowRightSquare,IconArrowRightTail:icons.IconArrowRightTail,IconArrowRight:icons.IconArrowRight,IconArrowRotaryFirstLeft:icons.IconArrowRotaryFirstLeft,IconArrowRotaryFirstRight:icons.IconArrowRotaryFirstRight,IconArrowRotaryLastLeft:icons.IconArrowRotaryLastLeft,IconArrowRotaryLastRight:icons.IconArrowRotaryLastRight,IconArrowRotaryLeft:icons.IconArrowRotaryLeft,IconArrowRotaryRight:icons.IconArrowRotaryRight,IconArrowRotaryStraight:icons.IconArrowRotaryStraight,IconArrowRoundaboutLeft:icons.IconArrowRoundaboutLeft,IconArrowRoundaboutRight:icons.IconArrowRoundaboutRight,IconArrowSharpTurnLeft:icons.IconArrowSharpTurnLeft,IconArrowSharpTurnRight:icons.IconArrowSharpTurnRight,IconArrowTopBar:icons.IconArrowTopBar,IconArrowTopCircle:icons.IconArrowTopCircle,IconArrowTopSquare:icons.IconArrowTopSquare,IconArrowTopTail:icons.IconArrowTopTail,IconArrowUpCircle:icons.IconArrowUpCircle,IconArrowUpLeftCircle:icons.IconArrowUpLeftCircle,IconArrowUpLeft:icons.IconArrowUpLeft,IconArrowUpRightCircle:icons.IconArrowUpRightCircle,IconArrowUpRight:icons.IconArrowUpRight,IconArrowUp:icons.IconArrowUp,IconArrowWaveLeftDown:icons.IconArrowWaveLeftDown,IconArrowWaveLeftUp:icons.IconArrowWaveLeftUp,IconArrowWaveRightDown:icons.IconArrowWaveRightDown,IconArrowWaveRightUp:icons.IconArrowWaveRightUp,IconArrowsCross:icons.IconArrowsCross,IconArrowsDiagonal2:icons.IconArrowsDiagonal2,IconArrowsDiagonalMinimize2:icons.IconArrowsDiagonalMinimize2,IconArrowsDiagonalMinimize:icons.IconArrowsDiagonalMinimize,IconArrowsDiagonal:icons.IconArrowsDiagonal,IconArrowsDiff:icons.IconArrowsDiff,IconArrowsDoubleNeSw:icons.IconArrowsDoubleNeSw,IconArrowsDoubleNwSe:icons.IconArrowsDoubleNwSe,IconArrowsDoubleSeNw:icons.IconArrowsDoubleSeNw,IconArrowsDoubleSwNe:icons.IconArrowsDoubleSwNe,IconArrowsDownUp:icons.IconArrowsDownUp,IconArrowsDown:icons.IconArrowsDown,IconArrowsExchange2:icons.IconArrowsExchange2,IconArrowsExchange:icons.IconArrowsExchange,IconArrowsHorizontal:icons.IconArrowsHorizontal,IconArrowsJoin2:icons.IconArrowsJoin2,IconArrowsJoin:icons.IconArrowsJoin,IconArrowsLeftDown:icons.IconArrowsLeftDown,IconArrowsLeftRight:icons.IconArrowsLeftRight,IconArrowsLeft:icons.IconArrowsLeft,IconArrowsMaximize:icons.IconArrowsMaximize,IconArrowsMinimize:icons.IconArrowsMinimize,IconArrowsMoveHorizontal:icons.IconArrowsMoveHorizontal,IconArrowsMoveVertical:icons.IconArrowsMoveVertical,IconArrowsMove:icons.IconArrowsMove,IconArrowsRandom:icons.IconArrowsRandom,IconArrowsRightDown:icons.IconArrowsRightDown,IconArrowsRightLeft:icons.IconArrowsRightLeft,IconArrowsRight:icons.IconArrowsRight,IconArrowsShuffle2:icons.IconArrowsShuffle2,IconArrowsShuffle:icons.IconArrowsShuffle,IconArrowsSort:icons.IconArrowsSort,IconArrowsSplit2:icons.IconArrowsSplit2,IconArrowsSplit:icons.IconArrowsSplit,IconArrowsTransferDown:icons.IconArrowsTransferDown,IconArrowsTransferUp:icons.IconArrowsTransferUp,IconArrowsUpDown:icons.IconArrowsUpDown,IconArrowsUpLeft:icons.IconArrowsUpLeft,IconArrowsUpRight:icons.IconArrowsUpRight,IconArrowsUp:icons.IconArrowsUp,IconArrowsVertical:icons.IconArrowsVertical,IconArtboardOff:icons.IconArtboardOff,IconArtboard:icons.IconArtboard,IconArticleOff:icons.IconArticleOff,IconArticle:icons.IconArticle,IconAspectRatioOff:icons.IconAspectRatioOff,IconAspectRatio:icons.IconAspectRatio,IconAssemblyOff:icons.IconAssemblyOff,IconAssembly:icons.IconAssembly,IconAsset:icons.IconAsset,IconAsteriskSimple:icons.IconAsteriskSimple,IconAsterisk:icons.IconAsterisk,IconAtOff:icons.IconAtOff,IconAt:icons.IconAt,IconAtom2:icons.IconAtom2,IconAtomOff:icons.IconAtomOff,IconAtom:icons.IconAtom,IconAugmentedReality2:icons.IconAugmentedReality2,IconAugmentedRealityOff:icons.IconAugmentedRealityOff,IconAugmentedReality:icons.IconAugmentedReality,IconAwardOff:icons.IconAwardOff,IconAward:icons.IconAward,IconAxe:icons.IconAxe,IconAxisX:icons.IconAxisX,IconAxisY:icons.IconAxisY,IconBabyCarriage:icons.IconBabyCarriage,IconBackhoe:icons.IconBackhoe,IconBackpackOff:icons.IconBackpackOff,IconBackpack:icons.IconBackpack,IconBackspace:icons.IconBackspace,IconBadgeOff:icons.IconBadgeOff,IconBadge:icons.IconBadge,IconBadgesOff:icons.IconBadgesOff,IconBadges:icons.IconBadges,IconBaguette:icons.IconBaguette,IconBallAmericanFootballOff:icons.IconBallAmericanFootballOff,IconBallAmericanFootball:icons.IconBallAmericanFootball,IconBallBaseball:icons.IconBallBaseball,IconBallBasketball:icons.IconBallBasketball,IconBallBowling:icons.IconBallBowling,IconBallFootballOff:icons.IconBallFootballOff,IconBallFootball:icons.IconBallFootball,IconBallTennis:icons.IconBallTennis,IconBallVolleyball:icons.IconBallVolleyball,IconBallonOff:icons.IconBallonOff,IconBallon:icons.IconBallon,IconBallpenOff:icons.IconBallpenOff,IconBallpen:icons.IconBallpen,IconBan:icons.IconBan,IconBandageOff:icons.IconBandageOff,IconBandage:icons.IconBandage,IconBarbellOff:icons.IconBarbellOff,IconBarbell:icons.IconBarbell,IconBarcodeOff:icons.IconBarcodeOff,IconBarcode:icons.IconBarcode,IconBarrelOff:icons.IconBarrelOff,IconBarrel:icons.IconBarrel,IconBarrierBlockOff:icons.IconBarrierBlockOff,IconBarrierBlock:icons.IconBarrierBlock,IconBaseline:icons.IconBaseline,IconBasketOff:icons.IconBasketOff,IconBasket:icons.IconBasket,IconBat:icons.IconBat,IconBathOff:icons.IconBathOff,IconBath:icons.IconBath,IconBattery1:icons.IconBattery1,IconBattery2:icons.IconBattery2,IconBattery3:icons.IconBattery3,IconBattery4:icons.IconBattery4,IconBatteryAutomotive:icons.IconBatteryAutomotive,IconBatteryCharging2:icons.IconBatteryCharging2,IconBatteryCharging:icons.IconBatteryCharging,IconBatteryEco:icons.IconBatteryEco,IconBatteryOff:icons.IconBatteryOff,IconBattery:icons.IconBattery,IconBeachOff:icons.IconBeachOff,IconBeach:icons.IconBeach,IconBedOff:icons.IconBedOff,IconBed:icons.IconBed,IconBeerOff:icons.IconBeerOff,IconBeer:icons.IconBeer,IconBellMinus:icons.IconBellMinus,IconBellOff:icons.IconBellOff,IconBellPlus:icons.IconBellPlus,IconBellRinging2:icons.IconBellRinging2,IconBellRinging:icons.IconBellRinging,IconBellSchool:icons.IconBellSchool,IconBellX:icons.IconBellX,IconBellZ:icons.IconBellZ,IconBell:icons.IconBell,IconBible:icons.IconBible,IconBikeOff:icons.IconBikeOff,IconBike:icons.IconBike,IconBinaryOff:icons.IconBinaryOff,IconBinary:icons.IconBinary,IconBiohazardOff:icons.IconBiohazardOff,IconBiohazard:icons.IconBiohazard,IconBleachChlorine:icons.IconBleachChlorine,IconBleachNoChlorine:icons.IconBleachNoChlorine,IconBleachOff:icons.IconBleachOff,IconBleach:icons.IconBleach,IconBlockquote:icons.IconBlockquote,IconBluetoothConnected:icons.IconBluetoothConnected,IconBluetoothOff:icons.IconBluetoothOff,IconBluetoothX:icons.IconBluetoothX,IconBluetooth:icons.IconBluetooth,IconBlurOff:icons.IconBlurOff,IconBlur:icons.IconBlur,IconBmp:icons.IconBmp,IconBoldOff:icons.IconBoldOff,IconBold:icons.IconBold,IconBoltOff:icons.IconBoltOff,IconBolt:icons.IconBolt,IconBoneOff:icons.IconBoneOff,IconBone:icons.IconBone,IconBongOff:icons.IconBongOff,IconBong:icons.IconBong,IconBook2:icons.IconBook2,IconBookDownload:icons.IconBookDownload,IconBookOff:icons.IconBookOff,IconBookUpload:icons.IconBookUpload,IconBook:icons.IconBook,IconBookmarkOff:icons.IconBookmarkOff,IconBookmark:icons.IconBookmark,IconBookmarksOff:icons.IconBookmarksOff,IconBookmarks:icons.IconBookmarks,IconBooksOff:icons.IconBooksOff,IconBooks:icons.IconBooks,IconBorderAll:icons.IconBorderAll,IconBorderBottom:icons.IconBorderBottom,IconBorderHorizontal:icons.IconBorderHorizontal,IconBorderInner:icons.IconBorderInner,IconBorderLeft:icons.IconBorderLeft,IconBorderNone:icons.IconBorderNone,IconBorderOuter:icons.IconBorderOuter,IconBorderRadius:icons.IconBorderRadius,IconBorderRight:icons.IconBorderRight,IconBorderStyle2:icons.IconBorderStyle2,IconBorderStyle:icons.IconBorderStyle,IconBorderTop:icons.IconBorderTop,IconBorderVertical:icons.IconBorderVertical,IconBottleOff:icons.IconBottleOff,IconBottle:icons.IconBottle,IconBow:icons.IconBow,IconBoxAlignBottomLeft:icons.IconBoxAlignBottomLeft,IconBoxAlignBottomRight:icons.IconBoxAlignBottomRight,IconBoxAlignBottom:icons.IconBoxAlignBottom,IconBoxAlignLeft:icons.IconBoxAlignLeft,IconBoxAlignRight:icons.IconBoxAlignRight,IconBoxAlignTopLeft:icons.IconBoxAlignTopLeft,IconBoxAlignTopRight:icons.IconBoxAlignTopRight,IconBoxAlignTop:icons.IconBoxAlignTop,IconBoxMargin:icons.IconBoxMargin,IconBoxModel2Off:icons.IconBoxModel2Off,IconBoxModel2:icons.IconBoxModel2,IconBoxModelOff:icons.IconBoxModelOff,IconBoxModel:icons.IconBoxModel,IconBoxMultiple0:icons.IconBoxMultiple0,IconBoxMultiple1:icons.IconBoxMultiple1,IconBoxMultiple2:icons.IconBoxMultiple2,IconBoxMultiple3:icons.IconBoxMultiple3,IconBoxMultiple4:icons.IconBoxMultiple4,IconBoxMultiple5:icons.IconBoxMultiple5,IconBoxMultiple6:icons.IconBoxMultiple6,IconBoxMultiple7:icons.IconBoxMultiple7,IconBoxMultiple8:icons.IconBoxMultiple8,IconBoxMultiple9:icons.IconBoxMultiple9,IconBoxMultiple:icons.IconBoxMultiple,IconBoxOff:icons.IconBoxOff,IconBoxPadding:icons.IconBoxPadding,IconBox:icons.IconBox,IconBracesOff:icons.IconBracesOff,IconBraces:icons.IconBraces,IconBracketsContainEnd:icons.IconBracketsContainEnd,IconBracketsContainStart:icons.IconBracketsContainStart,IconBracketsContain:icons.IconBracketsContain,IconBracketsOff:icons.IconBracketsOff,IconBrackets:icons.IconBrackets,IconBrand4chan:icons.IconBrand4chan,IconBrandAbstract:icons.IconBrandAbstract,IconBrandAdobe:icons.IconBrandAdobe,IconBrandAdonisJs:icons.IconBrandAdonisJs,IconBrandAirbnb:icons.IconBrandAirbnb,IconBrandAirtable:icons.IconBrandAirtable,IconBrandAlbolia:icons.IconBrandAlbolia,IconBrandAlpineJs:icons.IconBrandAlpineJs,IconBrandAmazon:icons.IconBrandAmazon,IconBrandAmongus:icons.IconBrandAmongus,IconBrandAndroid:icons.IconBrandAndroid,IconBrandAngular:icons.IconBrandAngular,IconBrandAppgallery:icons.IconBrandAppgallery,IconBrandAppleArcade:icons.IconBrandAppleArcade,IconBrandApplePodcast:icons.IconBrandApplePodcast,IconBrandApple:icons.IconBrandApple,IconBrandAppstore:icons.IconBrandAppstore,IconBrandAsana:icons.IconBrandAsana,IconBrandBackbone:icons.IconBrandBackbone,IconBrandBadoo:icons.IconBrandBadoo,IconBrandBandcamp:icons.IconBrandBandcamp,IconBrandBeats:icons.IconBrandBeats,IconBrandBehance:icons.IconBrandBehance,IconBrandBing:icons.IconBrandBing,IconBrandBitbucket:icons.IconBrandBitbucket,IconBrandBlender:icons.IconBrandBlender,IconBrandBlogger:icons.IconBrandBlogger,IconBrandBooking:icons.IconBrandBooking,IconBrandBootstrap:icons.IconBrandBootstrap,IconBrandBulma:icons.IconBrandBulma,IconBrandCampaignmonitor:icons.IconBrandCampaignmonitor,IconBrandCarbon:icons.IconBrandCarbon,IconBrandCashapp:icons.IconBrandCashapp,IconBrandChrome:icons.IconBrandChrome,IconBrandCodecov:icons.IconBrandCodecov,IconBrandCodepen:icons.IconBrandCodepen,IconBrandCodesandbox:icons.IconBrandCodesandbox,IconBrandCoinbase:icons.IconBrandCoinbase,IconBrandComedyCentral:icons.IconBrandComedyCentral,IconBrandCouchsurfing:icons.IconBrandCouchsurfing,IconBrandCss3:icons.IconBrandCss3,IconBrandCucumber:icons.IconBrandCucumber,IconBrandCypress:icons.IconBrandCypress,IconBrandD3:icons.IconBrandD3,IconBrandDcos:icons.IconBrandDcos,IconBrandDebian:icons.IconBrandDebian,IconBrandDeno:icons.IconBrandDeno,IconBrandDeviantart:icons.IconBrandDeviantart,IconBrandDiscord:icons.IconBrandDiscord,IconBrandDisney:icons.IconBrandDisney,IconBrandDisqus:icons.IconBrandDisqus,IconBrandDjango:icons.IconBrandDjango,IconBrandDocker:icons.IconBrandDocker,IconBrandDoctrine:icons.IconBrandDoctrine,IconBrandDribbble:icons.IconBrandDribbble,IconBrandDrupal:icons.IconBrandDrupal,IconBrandEdge:icons.IconBrandEdge,IconBrandEmber:icons.IconBrandEmber,IconBrandEnvato:icons.IconBrandEnvato,IconBrandFacebook:icons.IconBrandFacebook,IconBrandFigma:icons.IconBrandFigma,IconBrandFinder:icons.IconBrandFinder,IconBrandFirebase:icons.IconBrandFirebase,IconBrandFirefox:icons.IconBrandFirefox,IconBrandFlickr:icons.IconBrandFlickr,IconBrandFlipboard:icons.IconBrandFlipboard,IconBrandFlutter:icons.IconBrandFlutter,IconBrandFortnite:icons.IconBrandFortnite,IconBrandFoursquare:icons.IconBrandFoursquare,IconBrandFramer:icons.IconBrandFramer,IconBrandGatsby:icons.IconBrandGatsby,IconBrandGit:icons.IconBrandGit,IconBrandGithub:icons.IconBrandGithub,IconBrandGitlab:icons.IconBrandGitlab,IconBrandGmail:icons.IconBrandGmail,IconBrandGoogleAnalytics:icons.IconBrandGoogleAnalytics,IconBrandGoogleDrive:icons.IconBrandGoogleDrive,IconBrandGoogleFit:icons.IconBrandGoogleFit,IconBrandGoogleOne:icons.IconBrandGoogleOne,IconBrandGooglePhotos:icons.IconBrandGooglePhotos,IconBrandGooglePlay:icons.IconBrandGooglePlay,IconBrandGoogle:icons.IconBrandGoogle,IconBrandGrammarly:icons.IconBrandGrammarly,IconBrandGraphql:icons.IconBrandGraphql,IconBrandGravatar:icons.IconBrandGravatar,IconBrandGrindr:icons.IconBrandGrindr,IconBrandHeadlessui:icons.IconBrandHeadlessui,IconBrandHipchat:icons.IconBrandHipchat,IconBrandHtml5:icons.IconBrandHtml5,IconBrandInertia:icons.IconBrandInertia,IconBrandInstagram:icons.IconBrandInstagram,IconBrandIntercom:icons.IconBrandIntercom,IconBrandJavascript:icons.IconBrandJavascript,IconBrandKickstarter:icons.IconBrandKickstarter,IconBrandKotlin:icons.IconBrandKotlin,IconBrandLaravel:icons.IconBrandLaravel,IconBrandLastfm:icons.IconBrandLastfm,IconBrandLinkedin:icons.IconBrandLinkedin,IconBrandLinktree:icons.IconBrandLinktree,IconBrandLoom:icons.IconBrandLoom,IconBrandMailgun:icons.IconBrandMailgun,IconBrandMantine:icons.IconBrandMantine,IconBrandMastercard:icons.IconBrandMastercard,IconBrandMastodon:icons.IconBrandMastodon,IconBrandMcdonalds:icons.IconBrandMcdonalds,IconBrandMedium:icons.IconBrandMedium,IconBrandMercedes:icons.IconBrandMercedes,IconBrandMessenger:icons.IconBrandMessenger,IconBrandMeta:icons.IconBrandMeta,IconBrandMixpanel:icons.IconBrandMixpanel,IconBrandMonday:icons.IconBrandMonday,IconBrandNetbeans:icons.IconBrandNetbeans,IconBrandNetflix:icons.IconBrandNetflix,IconBrandNextjs:icons.IconBrandNextjs,IconBrandNordVpn:icons.IconBrandNordVpn,IconBrandNotion:icons.IconBrandNotion,IconBrandNuxt:icons.IconBrandNuxt,IconBrandNytimes:icons.IconBrandNytimes,IconBrandOffice:icons.IconBrandOffice,IconBrandOkRu:icons.IconBrandOkRu,IconBrandOpenSource:icons.IconBrandOpenSource,IconBrandOpenvpn:icons.IconBrandOpenvpn,IconBrandOpera:icons.IconBrandOpera,IconBrandPagekit:icons.IconBrandPagekit,IconBrandPatreon:icons.IconBrandPatreon,IconBrandPaypal:icons.IconBrandPaypal,IconBrandPeanut:icons.IconBrandPeanut,IconBrandPepsi:icons.IconBrandPepsi,IconBrandPhp:icons.IconBrandPhp,IconBrandPinterest:icons.IconBrandPinterest,IconBrandPocket:icons.IconBrandPocket,IconBrandPolymer:icons.IconBrandPolymer,IconBrandPrisma:icons.IconBrandPrisma,IconBrandProducthunt:icons.IconBrandProducthunt,IconBrandPushbullet:icons.IconBrandPushbullet,IconBrandPushover:icons.IconBrandPushover,IconBrandPython:icons.IconBrandPython,IconBrandReactNative:icons.IconBrandReactNative,IconBrandReact:icons.IconBrandReact,IconBrandReason:icons.IconBrandReason,IconBrandReddit:icons.IconBrandReddit,IconBrandRedhat:icons.IconBrandRedhat,IconBrandRedux:icons.IconBrandRedux,IconBrandSafari:icons.IconBrandSafari,IconBrandSass:icons.IconBrandSass,IconBrandSentry:icons.IconBrandSentry,IconBrandShazam:icons.IconBrandShazam,IconBrandShopee:icons.IconBrandShopee,IconBrandSketch:icons.IconBrandSketch,IconBrandSkype:icons.IconBrandSkype,IconBrandSlack:icons.IconBrandSlack,IconBrandSnapchat:icons.IconBrandSnapchat,IconBrandSnapseed:icons.IconBrandSnapseed,IconBrandSocketIo:icons.IconBrandSocketIo,IconBrandSoundcloud:icons.IconBrandSoundcloud,IconBrandSpotify:icons.IconBrandSpotify,IconBrandStackoverflow:icons.IconBrandStackoverflow,IconBrandSteam:icons.IconBrandSteam,IconBrandStorybook:icons.IconBrandStorybook,IconBrandStrava:icons.IconBrandStrava,IconBrandStripe:icons.IconBrandStripe,IconBrandSublimeText:icons.IconBrandSublimeText,IconBrandSupernova:icons.IconBrandSupernova,IconBrandSurfshark:icons.IconBrandSurfshark,IconBrandSvelte:icons.IconBrandSvelte,IconBrandTabler:icons.IconBrandTabler,IconBrandTailwind:icons.IconBrandTailwind,IconBrandTelegram:icons.IconBrandTelegram,IconBrandTidal:icons.IconBrandTidal,IconBrandTiktok:icons.IconBrandTiktok,IconBrandTinder:icons.IconBrandTinder,IconBrandToyota:icons.IconBrandToyota,IconBrandTrello:icons.IconBrandTrello,IconBrandTripadvisor:icons.IconBrandTripadvisor,IconBrandTumblr:icons.IconBrandTumblr,IconBrandTwitch:icons.IconBrandTwitch,IconBrandTwitter:icons.IconBrandTwitter,IconBrandUber:icons.IconBrandUber,IconBrandUbuntu:icons.IconBrandUbuntu,IconBrandUnity:icons.IconBrandUnity,IconBrandUnsplash:icons.IconBrandUnsplash,IconBrandUpwork:icons.IconBrandUpwork,IconBrandValorant:icons.IconBrandValorant,IconBrandVercel:icons.IconBrandVercel,IconBrandVimeo:icons.IconBrandVimeo,IconBrandVinted:icons.IconBrandVinted,IconBrandVisa:icons.IconBrandVisa,IconBrandVisualStudio:icons.IconBrandVisualStudio,IconBrandVivaldi:icons.IconBrandVivaldi,IconBrandVk:icons.IconBrandVk,IconBrandVsco:icons.IconBrandVsco,IconBrandVscode:icons.IconBrandVscode,IconBrandVue:icons.IconBrandVue,IconBrandWalmart:icons.IconBrandWalmart,IconBrandWebflow:icons.IconBrandWebflow,IconBrandWhatsapp:icons.IconBrandWhatsapp,IconBrandWindows:icons.IconBrandWindows,IconBrandWish:icons.IconBrandWish,IconBrandWix:icons.IconBrandWix,IconBrandWordpress:icons.IconBrandWordpress,IconBrandXbox:icons.IconBrandXbox,IconBrandXing:icons.IconBrandXing,IconBrandYahoo:icons.IconBrandYahoo,IconBrandYatse:icons.IconBrandYatse,IconBrandYcombinator:icons.IconBrandYcombinator,IconBrandYoutubeKids:icons.IconBrandYoutubeKids,IconBrandYoutube:icons.IconBrandYoutube,IconBrandZalando:icons.IconBrandZalando,IconBrandZapier:icons.IconBrandZapier,IconBrandZeit:icons.IconBrandZeit,IconBrandZoom:icons.IconBrandZoom,IconBrandZwift:icons.IconBrandZwift,IconBreadOff:icons.IconBreadOff,IconBread:icons.IconBread,IconBriefcaseOff:icons.IconBriefcaseOff,IconBriefcase:icons.IconBriefcase,IconBrightness2:icons.IconBrightness2,IconBrightnessDown:icons.IconBrightnessDown,IconBrightnessHalf:icons.IconBrightnessHalf,IconBrightnessOff:icons.IconBrightnessOff,IconBrightnessUp:icons.IconBrightnessUp,IconBrightness:icons.IconBrightness,IconBroadcastOff:icons.IconBroadcastOff,IconBroadcast:icons.IconBroadcast,IconBrowserCheck:icons.IconBrowserCheck,IconBrowserOff:icons.IconBrowserOff,IconBrowserPlus:icons.IconBrowserPlus,IconBrowserX:icons.IconBrowserX,IconBrowser:icons.IconBrowser,IconBrushOff:icons.IconBrushOff,IconBrush:icons.IconBrush,IconBucketOff:icons.IconBucketOff,IconBucket:icons.IconBucket,IconBugOff:icons.IconBugOff,IconBug:icons.IconBug,IconBuildingArch:icons.IconBuildingArch,IconBuildingBank:icons.IconBuildingBank,IconBuildingBridge2:icons.IconBuildingBridge2,IconBuildingBridge:icons.IconBuildingBridge,IconBuildingCarousel:icons.IconBuildingCarousel,IconBuildingCastle:icons.IconBuildingCastle,IconBuildingChurch:icons.IconBuildingChurch,IconBuildingCommunity:icons.IconBuildingCommunity,IconBuildingCottage:icons.IconBuildingCottage,IconBuildingFactory2:icons.IconBuildingFactory2,IconBuildingFactory:icons.IconBuildingFactory,IconBuildingFortress:icons.IconBuildingFortress,IconBuildingHospital:icons.IconBuildingHospital,IconBuildingLighthouse:icons.IconBuildingLighthouse,IconBuildingMonument:icons.IconBuildingMonument,IconBuildingPavilon:icons.IconBuildingPavilon,IconBuildingSkyscraper:icons.IconBuildingSkyscraper,IconBuildingStore:icons.IconBuildingStore,IconBuildingWarehouse:icons.IconBuildingWarehouse,IconBuilding:icons.IconBuilding,IconBulbOff:icons.IconBulbOff,IconBulb:icons.IconBulb,IconBulldozer:icons.IconBulldozer,IconBusOff:icons.IconBusOff,IconBusStop:icons.IconBusStop,IconBus:icons.IconBus,IconBusinessplan:icons.IconBusinessplan,IconButterfly:icons.IconButterfly,IconCSharp:icons.IconCSharp,IconCactusOff:icons.IconCactusOff,IconCactus:icons.IconCactus,IconCakeOff:icons.IconCakeOff,IconCake:icons.IconCake,IconCalculatorOff:icons.IconCalculatorOff,IconCalculator:icons.IconCalculator,IconCalendarEvent:icons.IconCalendarEvent,IconCalendarMinus:icons.IconCalendarMinus,IconCalendarOff:icons.IconCalendarOff,IconCalendarPlus:icons.IconCalendarPlus,IconCalendarStats:icons.IconCalendarStats,IconCalendarTime:icons.IconCalendarTime,IconCalendar:icons.IconCalendar,IconCameraMinus:icons.IconCameraMinus,IconCameraOff:icons.IconCameraOff,IconCameraPlus:icons.IconCameraPlus,IconCameraRotate:icons.IconCameraRotate,IconCameraSelfie:icons.IconCameraSelfie,IconCamera:icons.IconCamera,IconCandle:icons.IconCandle,IconCandyOff:icons.IconCandyOff,IconCandy:icons.IconCandy,IconCaptureOff:icons.IconCaptureOff,IconCapture:icons.IconCapture,IconCarCrane:icons.IconCarCrane,IconCarCrash:icons.IconCarCrash,IconCarOff:icons.IconCarOff,IconCar:icons.IconCar,IconCaravan:icons.IconCaravan,IconCardboardsOff:icons.IconCardboardsOff,IconCardboards:icons.IconCardboards,IconCaretDown:icons.IconCaretDown,IconCaretLeft:icons.IconCaretLeft,IconCaretRight:icons.IconCaretRight,IconCaretUp:icons.IconCaretUp,IconCarrotOff:icons.IconCarrotOff,IconCarrot:icons.IconCarrot,IconCashBanknoteOff:icons.IconCashBanknoteOff,IconCashBanknote:icons.IconCashBanknote,IconCashOff:icons.IconCashOff,IconCash:icons.IconCash,IconCastOff:icons.IconCastOff,IconCast:icons.IconCast,IconCategory2:icons.IconCategory2,IconCategory:icons.IconCategory,IconCeOff:icons.IconCeOff,IconCe:icons.IconCe,IconCellSignal1:icons.IconCellSignal1,IconCellSignal2:icons.IconCellSignal2,IconCellSignal3:icons.IconCellSignal3,IconCellSignal4:icons.IconCellSignal4,IconCellSignal5:icons.IconCellSignal5,IconCellSignalOff:icons.IconCellSignalOff,IconCell:icons.IconCell,IconCertificate2Off:icons.IconCertificate2Off,IconCertificate2:icons.IconCertificate2,IconCertificateOff:icons.IconCertificateOff,IconCertificate:icons.IconCertificate,IconChairDirector:icons.IconChairDirector,IconChalkboardOff:icons.IconChalkboardOff,IconChalkboard:icons.IconChalkboard,IconChargingPile:icons.IconChargingPile,IconChartArcs3:icons.IconChartArcs3,IconChartArcs:icons.IconChartArcs,IconChartAreaLine:icons.IconChartAreaLine,IconChartArea:icons.IconChartArea,IconChartArrowsVertical:icons.IconChartArrowsVertical,IconChartArrows:icons.IconChartArrows,IconChartBarOff:icons.IconChartBarOff,IconChartBar:icons.IconChartBar,IconChartBubble:icons.IconChartBubble,IconChartCandle:icons.IconChartCandle,IconChartCircles:icons.IconChartCircles,IconChartDonut2:icons.IconChartDonut2,IconChartDonut3:icons.IconChartDonut3,IconChartDonut4:icons.IconChartDonut4,IconChartDonut:icons.IconChartDonut,IconChartDots2:icons.IconChartDots2,IconChartDots3:icons.IconChartDots3,IconChartDots:icons.IconChartDots,IconChartInfographic:icons.IconChartInfographic,IconChartLine:icons.IconChartLine,IconChartPie2:icons.IconChartPie2,IconChartPie3:icons.IconChartPie3,IconChartPie4:icons.IconChartPie4,IconChartPieOff:icons.IconChartPieOff,IconChartPie:icons.IconChartPie,IconChartRadar:icons.IconChartRadar,IconChartTreemap:icons.IconChartTreemap,IconCheck:icons.IconCheck,IconCheckbox:icons.IconCheckbox,IconChecklist:icons.IconChecklist,IconChecks:icons.IconChecks,IconCheckupList:icons.IconCheckupList,IconCheese:icons.IconCheese,IconChefHatOff:icons.IconChefHatOff,IconChefHat:icons.IconChefHat,IconChess:icons.IconChess,IconChevronDownLeft:icons.IconChevronDownLeft,IconChevronDownRight:icons.IconChevronDownRight,IconChevronDown:icons.IconChevronDown,IconChevronLeft:icons.IconChevronLeft,IconChevronRight:icons.IconChevronRight,IconChevronUpLeft:icons.IconChevronUpLeft,IconChevronUpRight:icons.IconChevronUpRight,IconChevronUp:icons.IconChevronUp,IconChevronsDownLeft:icons.IconChevronsDownLeft,IconChevronsDownRight:icons.IconChevronsDownRight,IconChevronsDown:icons.IconChevronsDown,IconChevronsLeft:icons.IconChevronsLeft,IconChevronsRight:icons.IconChevronsRight,IconChevronsUpLeft:icons.IconChevronsUpLeft,IconChevronsUpRight:icons.IconChevronsUpRight,IconChevronsUp:icons.IconChevronsUp,IconChisel:icons.IconChisel,IconChristmasTreeOff:icons.IconChristmasTreeOff,IconChristmasTree:icons.IconChristmasTree,IconCircle0:icons.IconCircle0,IconCircle1:icons.IconCircle1,IconCircle2:icons.IconCircle2,IconCircle3:icons.IconCircle3,IconCircle4:icons.IconCircle4,IconCircle5:icons.IconCircle5,IconCircle6:icons.IconCircle6,IconCircle7:icons.IconCircle7,IconCircle8:icons.IconCircle8,IconCircle9:icons.IconCircle9,IconCircleA:icons.IconCircleA,IconCircleB:icons.IconCircleB,IconCircleC:icons.IconCircleC,IconCircleCheck:icons.IconCircleCheck,IconCircleD:icons.IconCircleD,IconCircleDashed:icons.IconCircleDashed,IconCircleDot:icons.IconCircleDot,IconCircleDotted:icons.IconCircleDotted,IconCircleE:icons.IconCircleE,IconCircleF:icons.IconCircleF,IconCircleG:icons.IconCircleG,IconCircleH:icons.IconCircleH,IconCircleHalf2:icons.IconCircleHalf2,IconCircleHalfVertical:icons.IconCircleHalfVertical,IconCircleHalf:icons.IconCircleHalf,IconCircleI:icons.IconCircleI,IconCircleJ:icons.IconCircleJ,IconCircleK:icons.IconCircleK,IconCircleL:icons.IconCircleL,IconCircleM:icons.IconCircleM,IconCircleMinus:icons.IconCircleMinus,IconCircleN:icons.IconCircleN,IconCircleO:icons.IconCircleO,IconCircleOff:icons.IconCircleOff,IconCircleP:icons.IconCircleP,IconCirclePlus:icons.IconCirclePlus,IconCircleQ:icons.IconCircleQ,IconCircleR:icons.IconCircleR,IconCircleRectangleOff:icons.IconCircleRectangleOff,IconCircleRectangle:icons.IconCircleRectangle,IconCircleS:icons.IconCircleS,IconCircleSquare:icons.IconCircleSquare,IconCircleT:icons.IconCircleT,IconCircleTriangle:icons.IconCircleTriangle,IconCircleU:icons.IconCircleU,IconCircleW:icons.IconCircleW,IconCircleX:icons.IconCircleX,IconCircleY:icons.IconCircleY,IconCircleZ:icons.IconCircleZ,IconCircle:icons.IconCircle,IconCircles:icons.IconCircles,IconCircuitAmmeter:icons.IconCircuitAmmeter,IconCircuitBattery:icons.IconCircuitBattery,IconCircuitBulb:icons.IconCircuitBulb,IconCircuitCapacitorPolarized:icons.IconCircuitCapacitorPolarized,IconCircuitCapacitor:icons.IconCircuitCapacitor,IconCircuitCellPlus:icons.IconCircuitCellPlus,IconCircuitCell:icons.IconCircuitCell,IconCircuitChangeover:icons.IconCircuitChangeover,IconCircuitDiodeZener:icons.IconCircuitDiodeZener,IconCircuitDiode:icons.IconCircuitDiode,IconCircuitGroundDigital:icons.IconCircuitGroundDigital,IconCircuitGround:icons.IconCircuitGround,IconCircuitInductor:icons.IconCircuitInductor,IconCircuitMotor:icons.IconCircuitMotor,IconCircuitPushbutton:icons.IconCircuitPushbutton,IconCircuitResistor:icons.IconCircuitResistor,IconCircuitSwitchClosed:icons.IconCircuitSwitchClosed,IconCircuitSwitchOpen:icons.IconCircuitSwitchOpen,IconCircuitVoltmeter:icons.IconCircuitVoltmeter,IconClearAll:icons.IconClearAll,IconClearFormatting:icons.IconClearFormatting,IconClick:icons.IconClick,IconClipboardCheck:icons.IconClipboardCheck,IconClipboardCopy:icons.IconClipboardCopy,IconClipboardHeart:icons.IconClipboardHeart,IconClipboardList:icons.IconClipboardList,IconClipboardOff:icons.IconClipboardOff,IconClipboardPlus:icons.IconClipboardPlus,IconClipboardText:icons.IconClipboardText,IconClipboardTypography:icons.IconClipboardTypography,IconClipboardX:icons.IconClipboardX,IconClipboard:icons.IconClipboard,IconClock2:icons.IconClock2,IconClockHour1:icons.IconClockHour1,IconClockHour10:icons.IconClockHour10,IconClockHour11:icons.IconClockHour11,IconClockHour12:icons.IconClockHour12,IconClockHour2:icons.IconClockHour2,IconClockHour3:icons.IconClockHour3,IconClockHour4:icons.IconClockHour4,IconClockHour5:icons.IconClockHour5,IconClockHour6:icons.IconClockHour6,IconClockHour7:icons.IconClockHour7,IconClockHour8:icons.IconClockHour8,IconClockHour9:icons.IconClockHour9,IconClockOff:icons.IconClockOff,IconClock:icons.IconClock,IconClothesRackOff:icons.IconClothesRackOff,IconClothesRack:icons.IconClothesRack,IconCloudComputing:icons.IconCloudComputing,IconCloudDataConnection:icons.IconCloudDataConnection,IconCloudDownload:icons.IconCloudDownload,IconCloudFog:icons.IconCloudFog,IconCloudLockOpen:icons.IconCloudLockOpen,IconCloudLock:icons.IconCloudLock,IconCloudOff:icons.IconCloudOff,IconCloudRain:icons.IconCloudRain,IconCloudSnow:icons.IconCloudSnow,IconCloudStorm:icons.IconCloudStorm,IconCloudUpload:icons.IconCloudUpload,IconCloud:icons.IconCloud,IconClover2:icons.IconClover2,IconClover:icons.IconClover,IconClubs:icons.IconClubs,IconCodeAsterix:icons.IconCodeAsterix,IconCodeMinus:icons.IconCodeMinus,IconCodeOff:icons.IconCodeOff,IconCodePlus:icons.IconCodePlus,IconCode:icons.IconCode,IconCoffeeOff:icons.IconCoffeeOff,IconCoffee:icons.IconCoffee,IconCoinBitcoin:icons.IconCoinBitcoin,IconCoinEuro:icons.IconCoinEuro,IconCoinMonero:icons.IconCoinMonero,IconCoinOff:icons.IconCoinOff,IconCoinPound:icons.IconCoinPound,IconCoinRupee:icons.IconCoinRupee,IconCoinYen:icons.IconCoinYen,IconCoinYuan:icons.IconCoinYuan,IconCoin:icons.IconCoin,IconColorPickerOff:icons.IconColorPickerOff,IconColorPicker:icons.IconColorPicker,IconColorSwatchOff:icons.IconColorSwatchOff,IconColorSwatch:icons.IconColorSwatch,IconColumnInsertLeft:icons.IconColumnInsertLeft,IconColumnInsertRight:icons.IconColumnInsertRight,IconColumnsOff:icons.IconColumnsOff,IconColumns:icons.IconColumns,IconComet:icons.IconComet,IconCommandOff:icons.IconCommandOff,IconCommand:icons.IconCommand,IconCompassOff:icons.IconCompassOff,IconCompass:icons.IconCompass,IconComponentsOff:icons.IconComponentsOff,IconComponents:icons.IconComponents,IconCone2:icons.IconCone2,IconConeOff:icons.IconConeOff,IconCone:icons.IconCone,IconConfettiOff:icons.IconConfettiOff,IconConfetti:icons.IconConfetti,IconContainerOff:icons.IconContainerOff,IconContainer:icons.IconContainer,IconContrast2Off:icons.IconContrast2Off,IconContrast2:icons.IconContrast2,IconContrastOff:icons.IconContrastOff,IconContrast:icons.IconContrast,IconCookieOff:icons.IconCookieOff,IconCookie:icons.IconCookie,IconCopyOff:icons.IconCopyOff,IconCopy:icons.IconCopy,IconCopyleftOff:icons.IconCopyleftOff,IconCopyleft:icons.IconCopyleft,IconCopyrightOff:icons.IconCopyrightOff,IconCopyright:icons.IconCopyright,IconCornerDownLeftDouble:icons.IconCornerDownLeftDouble,IconCornerDownLeft:icons.IconCornerDownLeft,IconCornerDownRightDouble:icons.IconCornerDownRightDouble,IconCornerDownRight:icons.IconCornerDownRight,IconCornerLeftDownDouble:icons.IconCornerLeftDownDouble,IconCornerLeftDown:icons.IconCornerLeftDown,IconCornerLeftUpDouble:icons.IconCornerLeftUpDouble,IconCornerLeftUp:icons.IconCornerLeftUp,IconCornerRightDownDouble:icons.IconCornerRightDownDouble,IconCornerRightDown:icons.IconCornerRightDown,IconCornerRightUpDouble:icons.IconCornerRightUpDouble,IconCornerRightUp:icons.IconCornerRightUp,IconCornerUpLeftDouble:icons.IconCornerUpLeftDouble,IconCornerUpLeft:icons.IconCornerUpLeft,IconCornerUpRightDouble:icons.IconCornerUpRightDouble,IconCornerUpRight:icons.IconCornerUpRight,IconCpu2:icons.IconCpu2,IconCpuOff:icons.IconCpuOff,IconCpu:icons.IconCpu,IconCraneOff:icons.IconCraneOff,IconCrane:icons.IconCrane,IconCreativeCommonsBy:icons.IconCreativeCommonsBy,IconCreativeCommonsNc:icons.IconCreativeCommonsNc,IconCreativeCommonsNd:icons.IconCreativeCommonsNd,IconCreativeCommonsOff:icons.IconCreativeCommonsOff,IconCreativeCommonsSa:icons.IconCreativeCommonsSa,IconCreativeCommonsZero:icons.IconCreativeCommonsZero,IconCreativeCommons:icons.IconCreativeCommons,IconCreditCardOff:icons.IconCreditCardOff,IconCreditCard:icons.IconCreditCard,IconCricket:icons.IconCricket,IconCrop:icons.IconCrop,IconCrossOff:icons.IconCrossOff,IconCross:icons.IconCross,IconCrosshair:icons.IconCrosshair,IconCrownOff:icons.IconCrownOff,IconCrown:icons.IconCrown,IconCrutchesOff:icons.IconCrutchesOff,IconCrutches:icons.IconCrutches,IconCupOff:icons.IconCupOff,IconCup:icons.IconCup,IconCurling:icons.IconCurling,IconCurlyLoop:icons.IconCurlyLoop,IconCurrencyBahraini:icons.IconCurrencyBahraini,IconCurrencyBaht:icons.IconCurrencyBaht,IconCurrencyBitcoin:icons.IconCurrencyBitcoin,IconCurrencyCent:icons.IconCurrencyCent,IconCurrencyDinar:icons.IconCurrencyDinar,IconCurrencyDirham:icons.IconCurrencyDirham,IconCurrencyDogecoin:icons.IconCurrencyDogecoin,IconCurrencyDollarAustralian:icons.IconCurrencyDollarAustralian,IconCurrencyDollarBrunei:icons.IconCurrencyDollarBrunei,IconCurrencyDollarCanadian:icons.IconCurrencyDollarCanadian,IconCurrencyDollarGuyanese:icons.IconCurrencyDollarGuyanese,IconCurrencyDollarOff:icons.IconCurrencyDollarOff,IconCurrencyDollarSingapore:icons.IconCurrencyDollarSingapore,IconCurrencyDollarZimbabwean:icons.IconCurrencyDollarZimbabwean,IconCurrencyDollar:icons.IconCurrencyDollar,IconCurrencyDong:icons.IconCurrencyDong,IconCurrencyDram:icons.IconCurrencyDram,IconCurrencyEthereum:icons.IconCurrencyEthereum,IconCurrencyEuroOff:icons.IconCurrencyEuroOff,IconCurrencyEuro:icons.IconCurrencyEuro,IconCurrencyForint:icons.IconCurrencyForint,IconCurrencyFrank:icons.IconCurrencyFrank,IconCurrencyGuarani:icons.IconCurrencyGuarani,IconCurrencyHryvnia:icons.IconCurrencyHryvnia,IconCurrencyKip:icons.IconCurrencyKip,IconCurrencyKroneCzech:icons.IconCurrencyKroneCzech,IconCurrencyKroneDanish:icons.IconCurrencyKroneDanish,IconCurrencyKroneSwedish:icons.IconCurrencyKroneSwedish,IconCurrencyLari:icons.IconCurrencyLari,IconCurrencyLeu:icons.IconCurrencyLeu,IconCurrencyLira:icons.IconCurrencyLira,IconCurrencyLitecoin:icons.IconCurrencyLitecoin,IconCurrencyLyd:icons.IconCurrencyLyd,IconCurrencyManat:icons.IconCurrencyManat,IconCurrencyMonero:icons.IconCurrencyMonero,IconCurrencyNaira:icons.IconCurrencyNaira,IconCurrencyOff:icons.IconCurrencyOff,IconCurrencyPaanga:icons.IconCurrencyPaanga,IconCurrencyPoundOff:icons.IconCurrencyPoundOff,IconCurrencyPound:icons.IconCurrencyPound,IconCurrencyQuetzal:icons.IconCurrencyQuetzal,IconCurrencyReal:icons.IconCurrencyReal,IconCurrencyRenminbi:icons.IconCurrencyRenminbi,IconCurrencyRipple:icons.IconCurrencyRipple,IconCurrencyRiyal:icons.IconCurrencyRiyal,IconCurrencyRubel:icons.IconCurrencyRubel,IconCurrencyRufiyaa:icons.IconCurrencyRufiyaa,IconCurrencyRupeeNepalese:icons.IconCurrencyRupeeNepalese,IconCurrencyRupee:icons.IconCurrencyRupee,IconCurrencyShekel:icons.IconCurrencyShekel,IconCurrencySolana:icons.IconCurrencySolana,IconCurrencySom:icons.IconCurrencySom,IconCurrencyTaka:icons.IconCurrencyTaka,IconCurrencyTenge:icons.IconCurrencyTenge,IconCurrencyTugrik:icons.IconCurrencyTugrik,IconCurrencyWon:icons.IconCurrencyWon,IconCurrencyYenOff:icons.IconCurrencyYenOff,IconCurrencyYen:icons.IconCurrencyYen,IconCurrencyYuan:icons.IconCurrencyYuan,IconCurrencyZloty:icons.IconCurrencyZloty,IconCurrency:icons.IconCurrency,IconCurrentLocationOff:icons.IconCurrentLocationOff,IconCurrentLocation:icons.IconCurrentLocation,IconCursorOff:icons.IconCursorOff,IconCursorText:icons.IconCursorText,IconCut:icons.IconCut,IconDashboardOff:icons.IconDashboardOff,IconDashboard:icons.IconDashboard,IconDatabaseExport:icons.IconDatabaseExport,IconDatabaseImport:icons.IconDatabaseImport,IconDatabaseOff:icons.IconDatabaseOff,IconDatabase:icons.IconDatabase,IconDentalBroken:icons.IconDentalBroken,IconDentalOff:icons.IconDentalOff,IconDental:icons.IconDental,IconDetailsOff:icons.IconDetailsOff,IconDetails:icons.IconDetails,IconDeviceAnalytics:icons.IconDeviceAnalytics,IconDeviceAudioTape:icons.IconDeviceAudioTape,IconDeviceCameraPhone:icons.IconDeviceCameraPhone,IconDeviceCctvOff:icons.IconDeviceCctvOff,IconDeviceCctv:icons.IconDeviceCctv,IconDeviceComputerCameraOff:icons.IconDeviceComputerCameraOff,IconDeviceComputerCamera:icons.IconDeviceComputerCamera,IconDeviceDesktopAnalytics:icons.IconDeviceDesktopAnalytics,IconDeviceDesktopOff:icons.IconDeviceDesktopOff,IconDeviceDesktop:icons.IconDeviceDesktop,IconDeviceFloppy:icons.IconDeviceFloppy,IconDeviceGamepad2:icons.IconDeviceGamepad2,IconDeviceGamepad:icons.IconDeviceGamepad,IconDeviceHeartMonitor:icons.IconDeviceHeartMonitor,IconDeviceLaptopOff:icons.IconDeviceLaptopOff,IconDeviceLaptop:icons.IconDeviceLaptop,IconDeviceMobileCharging:icons.IconDeviceMobileCharging,IconDeviceMobileMessage:icons.IconDeviceMobileMessage,IconDeviceMobileOff:icons.IconDeviceMobileOff,IconDeviceMobileRotated:icons.IconDeviceMobileRotated,IconDeviceMobileVibration:icons.IconDeviceMobileVibration,IconDeviceMobile:icons.IconDeviceMobile,IconDeviceNintendoOff:icons.IconDeviceNintendoOff,IconDeviceNintendo:icons.IconDeviceNintendo,IconDeviceSdCard:icons.IconDeviceSdCard,IconDeviceSpeakerOff:icons.IconDeviceSpeakerOff,IconDeviceSpeaker:icons.IconDeviceSpeaker,IconDeviceTabletOff:icons.IconDeviceTabletOff,IconDeviceTablet:icons.IconDeviceTablet,IconDeviceTvOff:icons.IconDeviceTvOff,IconDeviceTvOld:icons.IconDeviceTvOld,IconDeviceTv:icons.IconDeviceTv,IconDeviceWatchOff:icons.IconDeviceWatchOff,IconDeviceWatchStats2:icons.IconDeviceWatchStats2,IconDeviceWatchStats:icons.IconDeviceWatchStats,IconDeviceWatch:icons.IconDeviceWatch,IconDevices2:icons.IconDevices2,IconDevicesOff:icons.IconDevicesOff,IconDevicesPcOff:icons.IconDevicesPcOff,IconDevicesPc:icons.IconDevicesPc,IconDevices:icons.IconDevices,IconDialpadOff:icons.IconDialpadOff,IconDialpad:icons.IconDialpad,IconDiamondOff:icons.IconDiamondOff,IconDiamond:icons.IconDiamond,IconDiamonds:icons.IconDiamonds,IconDice1:icons.IconDice1,IconDice2:icons.IconDice2,IconDice3:icons.IconDice3,IconDice4:icons.IconDice4,IconDice5:icons.IconDice5,IconDice6:icons.IconDice6,IconDice:icons.IconDice,IconDimensions:icons.IconDimensions,IconDirectionHorizontal:icons.IconDirectionHorizontal,IconDirectionSignOff:icons.IconDirectionSignOff,IconDirectionSign:icons.IconDirectionSign,IconDirection:icons.IconDirection,IconDirectionsOff:icons.IconDirectionsOff,IconDirections:icons.IconDirections,IconDisabled2:icons.IconDisabled2,IconDisabledOff:icons.IconDisabledOff,IconDisabled:icons.IconDisabled,IconDiscGolf:icons.IconDiscGolf,IconDiscOff:icons.IconDiscOff,IconDisc:icons.IconDisc,IconDiscount2Off:icons.IconDiscount2Off,IconDiscount2:icons.IconDiscount2,IconDiscountCheck:icons.IconDiscountCheck,IconDiscountOff:icons.IconDiscountOff,IconDiscount:icons.IconDiscount,IconDivide:icons.IconDivide,IconDna2Off:icons.IconDna2Off,IconDna2:icons.IconDna2,IconDnaOff:icons.IconDnaOff,IconDna:icons.IconDna,IconDogBowl:icons.IconDogBowl,IconDoorEnter:icons.IconDoorEnter,IconDoorExit:icons.IconDoorExit,IconDoorOff:icons.IconDoorOff,IconDoor:icons.IconDoor,IconDotsCircleHorizontal:icons.IconDotsCircleHorizontal,IconDotsDiagonal2:icons.IconDotsDiagonal2,IconDotsDiagonal:icons.IconDotsDiagonal,IconDotsVertical:icons.IconDotsVertical,IconDots:icons.IconDots,IconDownloadOff:icons.IconDownloadOff,IconDownload:icons.IconDownload,IconDragDrop2:icons.IconDragDrop2,IconDragDrop:icons.IconDragDrop,IconDroneOff:icons.IconDroneOff,IconDrone:icons.IconDrone,IconDropCircle:icons.IconDropCircle,IconDropletFilled2:icons.IconDropletFilled2,IconDropletFilled:icons.IconDropletFilled,IconDropletHalf2:icons.IconDropletHalf2,IconDropletHalf:icons.IconDropletHalf,IconDropletOff:icons.IconDropletOff,IconDroplet:icons.IconDroplet,IconEarOff:icons.IconEarOff,IconEar:icons.IconEar,IconEditCircleOff:icons.IconEditCircleOff,IconEditCircle:icons.IconEditCircle,IconEditOff:icons.IconEditOff,IconEdit:icons.IconEdit,IconEggCracked:icons.IconEggCracked,IconEggFried:icons.IconEggFried,IconEggOff:icons.IconEggOff,IconEgg:icons.IconEgg,IconElevatorOff:icons.IconElevatorOff,IconElevator:icons.IconElevator,IconEmergencyBed:icons.IconEmergencyBed,IconEmpathizeOff:icons.IconEmpathizeOff,IconEmpathize:icons.IconEmpathize,IconEmphasis:icons.IconEmphasis,IconEngineOff:icons.IconEngineOff,IconEngine:icons.IconEngine,IconEqualNot:icons.IconEqualNot,IconEqual:icons.IconEqual,IconEraserOff:icons.IconEraserOff,IconEraser:icons.IconEraser,IconError404Off:icons.IconError404Off,IconError404:icons.IconError404,IconExchangeOff:icons.IconExchangeOff,IconExchange:icons.IconExchange,IconExclamationMarkOff:icons.IconExclamationMarkOff,IconExclamationMark:icons.IconExclamationMark,IconExplicitOff:icons.IconExplicitOff,IconExplicit:icons.IconExplicit,IconExposure0:icons.IconExposure0,IconExposureMinus1:icons.IconExposureMinus1,IconExposureMinus2:icons.IconExposureMinus2,IconExposureOff:icons.IconExposureOff,IconExposurePlus1:icons.IconExposurePlus1,IconExposurePlus2:icons.IconExposurePlus2,IconExposure:icons.IconExposure,IconExternalLinkOff:icons.IconExternalLinkOff,IconExternalLink:icons.IconExternalLink,IconEyeCheck:icons.IconEyeCheck,IconEyeOff:icons.IconEyeOff,IconEyeTable:icons.IconEyeTable,IconEye:icons.IconEye,IconEyeglass2:icons.IconEyeglass2,IconEyeglassOff:icons.IconEyeglassOff,IconEyeglass:icons.IconEyeglass,IconFaceIdError:icons.IconFaceIdError,IconFaceId:icons.IconFaceId,IconFaceMaskOff:icons.IconFaceMaskOff,IconFaceMask:icons.IconFaceMask,IconFall:icons.IconFall,IconFeatherOff:icons.IconFeatherOff,IconFeather:icons.IconFeather,IconFenceOff:icons.IconFenceOff,IconFence:icons.IconFence,IconFidgetSpinner:icons.IconFidgetSpinner,IconFile3d:icons.IconFile3d,IconFileAlert:icons.IconFileAlert,IconFileAnalytics:icons.IconFileAnalytics,IconFileArrowLeft:icons.IconFileArrowLeft,IconFileArrowRight:icons.IconFileArrowRight,IconFileBarcode:icons.IconFileBarcode,IconFileCertificate:icons.IconFileCertificate,IconFileChart:icons.IconFileChart,IconFileCheck:icons.IconFileCheck,IconFileCode2:icons.IconFileCode2,IconFileCode:icons.IconFileCode,IconFileDatabase:icons.IconFileDatabase,IconFileDescription:icons.IconFileDescription,IconFileDiff:icons.IconFileDiff,IconFileDigit:icons.IconFileDigit,IconFileDislike:icons.IconFileDislike,IconFileDollar:icons.IconFileDollar,IconFileDots:icons.IconFileDots,IconFileDownload:icons.IconFileDownload,IconFileEuro:icons.IconFileEuro,IconFileExport:icons.IconFileExport,IconFileHorizontal:icons.IconFileHorizontal,IconFileImport:icons.IconFileImport,IconFileInfo:icons.IconFileInfo,IconFileInvoice:icons.IconFileInvoice,IconFileLike:icons.IconFileLike,IconFileMinus:icons.IconFileMinus,IconFileMusic:icons.IconFileMusic,IconFileOff:icons.IconFileOff,IconFileOrientation:icons.IconFileOrientation,IconFilePencil:icons.IconFilePencil,IconFilePhone:icons.IconFilePhone,IconFilePlus:icons.IconFilePlus,IconFilePower:icons.IconFilePower,IconFileReport:icons.IconFileReport,IconFileRss:icons.IconFileRss,IconFileScissors:icons.IconFileScissors,IconFileSearch:icons.IconFileSearch,IconFileSettings:icons.IconFileSettings,IconFileShredder:icons.IconFileShredder,IconFileSignal:icons.IconFileSignal,IconFileSpreadsheet:icons.IconFileSpreadsheet,IconFileStar:icons.IconFileStar,IconFileSymlink:icons.IconFileSymlink,IconFileText:icons.IconFileText,IconFileTime:icons.IconFileTime,IconFileTypography:icons.IconFileTypography,IconFileUnknown:icons.IconFileUnknown,IconFileUpload:icons.IconFileUpload,IconFileVector:icons.IconFileVector,IconFileX:icons.IconFileX,IconFileZip:icons.IconFileZip,IconFile:icons.IconFile,IconFilesOff:icons.IconFilesOff,IconFiles:icons.IconFiles,IconFilterOff:icons.IconFilterOff,IconFilter:icons.IconFilter,IconFingerprintOff:icons.IconFingerprintOff,IconFingerprint:icons.IconFingerprint,IconFireHydrantOff:icons.IconFireHydrantOff,IconFireHydrant:icons.IconFireHydrant,IconFiretruck:icons.IconFiretruck,IconFirstAidKitOff:icons.IconFirstAidKitOff,IconFirstAidKit:icons.IconFirstAidKit,IconFishBone:icons.IconFishBone,IconFishHookOff:icons.IconFishHookOff,IconFishHook:icons.IconFishHook,IconFishOff:icons.IconFishOff,IconFish:icons.IconFish,IconFlag2Off:icons.IconFlag2Off,IconFlag2:icons.IconFlag2,IconFlag3:icons.IconFlag3,IconFlagOff:icons.IconFlagOff,IconFlag:icons.IconFlag,IconFlameOff:icons.IconFlameOff,IconFlame:icons.IconFlame,IconFlare:icons.IconFlare,IconFlask2Off:icons.IconFlask2Off,IconFlask2:icons.IconFlask2,IconFlaskOff:icons.IconFlaskOff,IconFlask:icons.IconFlask,IconFlipHorizontal:icons.IconFlipHorizontal,IconFlipVertical:icons.IconFlipVertical,IconFloatCenter:icons.IconFloatCenter,IconFloatLeft:icons.IconFloatLeft,IconFloatNone:icons.IconFloatNone,IconFloatRight:icons.IconFloatRight,IconFlowerOff:icons.IconFlowerOff,IconFlower:icons.IconFlower,IconFocus2:icons.IconFocus2,IconFocusCentered:icons.IconFocusCentered,IconFocus:icons.IconFocus,IconFoldDown:icons.IconFoldDown,IconFoldUp:icons.IconFoldUp,IconFold:icons.IconFold,IconFolderMinus:icons.IconFolderMinus,IconFolderOff:icons.IconFolderOff,IconFolderPlus:icons.IconFolderPlus,IconFolderX:icons.IconFolderX,IconFolder:icons.IconFolder,IconFoldersOff:icons.IconFoldersOff,IconFolders:icons.IconFolders,IconForbid2:icons.IconForbid2,IconForbid:icons.IconForbid,IconForklift:icons.IconForklift,IconForms:icons.IconForms,IconFountainOff:icons.IconFountainOff,IconFountain:icons.IconFountain,IconFrameOff:icons.IconFrameOff,IconFrame:icons.IconFrame,IconFreeRights:icons.IconFreeRights,IconFridgeOff:icons.IconFridgeOff,IconFridge:icons.IconFridge,IconFriendsOff:icons.IconFriendsOff,IconFriends:icons.IconFriends,IconFunctionOff:icons.IconFunctionOff,IconFunction:icons.IconFunction,IconGardenCartOff:icons.IconGardenCartOff,IconGardenCart:icons.IconGardenCart,IconGasStationOff:icons.IconGasStationOff,IconGasStation:icons.IconGasStation,IconGaugeOff:icons.IconGaugeOff,IconGauge:icons.IconGauge,IconGavel:icons.IconGavel,IconGenderAgender:icons.IconGenderAgender,IconGenderAndrogyne:icons.IconGenderAndrogyne,IconGenderBigender:icons.IconGenderBigender,IconGenderDemiboy:icons.IconGenderDemiboy,IconGenderDemigirl:icons.IconGenderDemigirl,IconGenderEpicene:icons.IconGenderEpicene,IconGenderFemale:icons.IconGenderFemale,IconGenderFemme:icons.IconGenderFemme,IconGenderGenderfluid:icons.IconGenderGenderfluid,IconGenderGenderless:icons.IconGenderGenderless,IconGenderGenderqueer:icons.IconGenderGenderqueer,IconGenderHermaphrodite:icons.IconGenderHermaphrodite,IconGenderIntergender:icons.IconGenderIntergender,IconGenderMale:icons.IconGenderMale,IconGenderNeutrois:icons.IconGenderNeutrois,IconGenderThird:icons.IconGenderThird,IconGenderTransgender:icons.IconGenderTransgender,IconGenderTrasvesti:icons.IconGenderTrasvesti,IconGeometry:icons.IconGeometry,IconGhostOff:icons.IconGhostOff,IconGhost:icons.IconGhost,IconGif:icons.IconGif,IconGiftCard:icons.IconGiftCard,IconGiftOff:icons.IconGiftOff,IconGift:icons.IconGift,IconGitBranch:icons.IconGitBranch,IconGitCommit:icons.IconGitCommit,IconGitCompare:icons.IconGitCompare,IconGitFork:icons.IconGitFork,IconGitMerge:icons.IconGitMerge,IconGitPullRequestClosed:icons.IconGitPullRequestClosed,IconGitPullRequestDraft:icons.IconGitPullRequestDraft,IconGitPullRequest:icons.IconGitPullRequest,IconGizmo:icons.IconGizmo,IconGlassFull:icons.IconGlassFull,IconGlassOff:icons.IconGlassOff,IconGlass:icons.IconGlass,IconGlobeOff:icons.IconGlobeOff,IconGlobe:icons.IconGlobe,IconGolfOff:icons.IconGolfOff,IconGolf:icons.IconGolf,IconGps:icons.IconGps,IconGradienter:icons.IconGradienter,IconGrain:icons.IconGrain,IconGraphOff:icons.IconGraphOff,IconGraph:icons.IconGraph,IconGridDots:icons.IconGridDots,IconGridPattern:icons.IconGridPattern,IconGrillFork:icons.IconGrillFork,IconGrillOff:icons.IconGrillOff,IconGrillSpatula:icons.IconGrillSpatula,IconGrill:icons.IconGrill,IconGripHorizontal:icons.IconGripHorizontal,IconGripVertical:icons.IconGripVertical,IconGrowth:icons.IconGrowth,IconH1:icons.IconH1,IconH2:icons.IconH2,IconH3:icons.IconH3,IconH4:icons.IconH4,IconH5:icons.IconH5,IconH6:icons.IconH6,IconHammerOff:icons.IconHammerOff,IconHammer:icons.IconHammer,IconHandClick:icons.IconHandClick,IconHandFingerOff:icons.IconHandFingerOff,IconHandFinger:icons.IconHandFinger,IconHandGrab:icons.IconHandGrab,IconHandLittleFinger:icons.IconHandLittleFinger,IconHandMiddleFinger:icons.IconHandMiddleFinger,IconHandMove:icons.IconHandMove,IconHandOff:icons.IconHandOff,IconHandRingFinger:icons.IconHandRingFinger,IconHandRock:icons.IconHandRock,IconHandStop:icons.IconHandStop,IconHandThreeFingers:icons.IconHandThreeFingers,IconHandTwoFingers:icons.IconHandTwoFingers,IconHanger2:icons.IconHanger2,IconHangerOff:icons.IconHangerOff,IconHanger:icons.IconHanger,IconHash:icons.IconHash,IconHaze:icons.IconHaze,IconHeadingOff:icons.IconHeadingOff,IconHeading:icons.IconHeading,IconHeadphonesOff:icons.IconHeadphonesOff,IconHeadphones:icons.IconHeadphones,IconHeadsetOff:icons.IconHeadsetOff,IconHeadset:icons.IconHeadset,IconHealthRecognition:icons.IconHealthRecognition,IconHeartBroken:icons.IconHeartBroken,IconHeartHandshake:icons.IconHeartHandshake,IconHeartMinus:icons.IconHeartMinus,IconHeartOff:icons.IconHeartOff,IconHeartPlus:icons.IconHeartPlus,IconHeartRateMonitor:icons.IconHeartRateMonitor,IconHeart:icons.IconHeart,IconHeartbeat:icons.IconHeartbeat,IconHeartsOff:icons.IconHeartsOff,IconHearts:icons.IconHearts,IconHelicopterLanding:icons.IconHelicopterLanding,IconHelicopter:icons.IconHelicopter,IconHelmetOff:icons.IconHelmetOff,IconHelmet:icons.IconHelmet,IconHelpOff:icons.IconHelpOff,IconHelp:icons.IconHelp,IconHexagon0:icons.IconHexagon0,IconHexagon1:icons.IconHexagon1,IconHexagon2:icons.IconHexagon2,IconHexagon3:icons.IconHexagon3,IconHexagon4:icons.IconHexagon4,IconHexagon5:icons.IconHexagon5,IconHexagon6:icons.IconHexagon6,IconHexagon7:icons.IconHexagon7,IconHexagon8:icons.IconHexagon8,IconHexagon9:icons.IconHexagon9,IconHexagonA:icons.IconHexagonA,IconHexagonB:icons.IconHexagonB,IconHexagonC:icons.IconHexagonC,IconHexagonD:icons.IconHexagonD,IconHexagonE:icons.IconHexagonE,IconHexagonF:icons.IconHexagonF,IconHexagonG:icons.IconHexagonG,IconHexagonH:icons.IconHexagonH,IconHexagonI:icons.IconHexagonI,IconHexagonJ:icons.IconHexagonJ,IconHexagonK:icons.IconHexagonK,IconHexagonL:icons.IconHexagonL,IconHexagonM:icons.IconHexagonM,IconHexagonN:icons.IconHexagonN,IconHexagonO:icons.IconHexagonO,IconHexagonOff:icons.IconHexagonOff,IconHexagonP:icons.IconHexagonP,IconHexagonQ:icons.IconHexagonQ,IconHexagonR:icons.IconHexagonR,IconHexagonS:icons.IconHexagonS,IconHexagonT:icons.IconHexagonT,IconHexagonU:icons.IconHexagonU,IconHexagonW:icons.IconHexagonW,IconHexagonX:icons.IconHexagonX,IconHexagonY:icons.IconHexagonY,IconHexagonZ:icons.IconHexagonZ,IconHexagon:icons.IconHexagon,IconHexagonsOff:icons.IconHexagonsOff,IconHexagons:icons.IconHexagons,IconHierarchy2:icons.IconHierarchy2,IconHierarchy3:icons.IconHierarchy3,IconHierarchyOff:icons.IconHierarchyOff,IconHierarchy:icons.IconHierarchy,IconHighlightOff:icons.IconHighlightOff,IconHighlight:icons.IconHighlight,IconHistoryOff:icons.IconHistoryOff,IconHistoryToggle:icons.IconHistoryToggle,IconHistory:icons.IconHistory,IconHome2:icons.IconHome2,IconHomeBolt:icons.IconHomeBolt,IconHomeCancel:icons.IconHomeCancel,IconHomeCheck:icons.IconHomeCheck,IconHomeCog:icons.IconHomeCog,IconHomeDollar:icons.IconHomeDollar,IconHomeDot:icons.IconHomeDot,IconHomeDown:icons.IconHomeDown,IconHomeEco:icons.IconHomeEco,IconHomeEdit:icons.IconHomeEdit,IconHomeExclamation:icons.IconHomeExclamation,IconHomeHeart:icons.IconHomeHeart,IconHomeLink:icons.IconHomeLink,IconHomeMinus:icons.IconHomeMinus,IconHomeMove:icons.IconHomeMove,IconHomeOff:icons.IconHomeOff,IconHomePlus:icons.IconHomePlus,IconHomeQuestion:icons.IconHomeQuestion,IconHomeRibbon:icons.IconHomeRibbon,IconHomeSearch:icons.IconHomeSearch,IconHomeShare:icons.IconHomeShare,IconHomeShield:icons.IconHomeShield,IconHomeSignal:icons.IconHomeSignal,IconHomeStar:icons.IconHomeStar,IconHomeStats:icons.IconHomeStats,IconHomeUp:icons.IconHomeUp,IconHomeX:icons.IconHomeX,IconHome:icons.IconHome,IconHorseToy:icons.IconHorseToy,IconHotelService:icons.IconHotelService,IconHourglassEmpty:icons.IconHourglassEmpty,IconHourglassHigh:icons.IconHourglassHigh,IconHourglassLow:icons.IconHourglassLow,IconHourglassOff:icons.IconHourglassOff,IconHourglass:icons.IconHourglass,IconIceCream2:icons.IconIceCream2,IconIceCreamOff:icons.IconIceCreamOff,IconIceCream:icons.IconIceCream,IconIceSkating:icons.IconIceSkating,IconIconsOff:icons.IconIconsOff,IconIcons:icons.IconIcons,IconIdBadge2:icons.IconIdBadge2,IconIdBadgeOff:icons.IconIdBadgeOff,IconIdBadge:icons.IconIdBadge,IconIdOff:icons.IconIdOff,IconId:icons.IconId,IconInboxOff:icons.IconInboxOff,IconInbox:icons.IconInbox,IconIndentDecrease:icons.IconIndentDecrease,IconIndentIncrease:icons.IconIndentIncrease,IconInfinityOff:icons.IconInfinityOff,IconInfinity:icons.IconInfinity,IconInfoCircle:icons.IconInfoCircle,IconInfoSquare:icons.IconInfoSquare,IconInputSearch:icons.IconInputSearch,IconIroning1:icons.IconIroning1,IconIroning2:icons.IconIroning2,IconIroning3:icons.IconIroning3,IconIroningOff:icons.IconIroningOff,IconIroningSteamOff:icons.IconIroningSteamOff,IconIroningSteam:icons.IconIroningSteam,IconItalic:icons.IconItalic,IconJewishStar:icons.IconJewishStar,IconJpg:icons.IconJpg,IconJumpRope:icons.IconJumpRope,IconKarate:icons.IconKarate,IconKayak:icons.IconKayak,IconKering:icons.IconKering,IconKeyOff:icons.IconKeyOff,IconKey:icons.IconKey,IconKeyboardHide:icons.IconKeyboardHide,IconKeyboardOff:icons.IconKeyboardOff,IconKeyboardShow:icons.IconKeyboardShow,IconKeyboard:icons.IconKeyboard,IconLadderOff:icons.IconLadderOff,IconLadder:icons.IconLadder,IconLamp2:icons.IconLamp2,IconLampOff:icons.IconLampOff,IconLamp:icons.IconLamp,IconLanguageHiragana:icons.IconLanguageHiragana,IconLanguageKatakana:icons.IconLanguageKatakana,IconLanguageOff:icons.IconLanguageOff,IconLanguage:icons.IconLanguage,IconLassoOff:icons.IconLassoOff,IconLassoPolygon:icons.IconLassoPolygon,IconLasso:icons.IconLasso,IconLayersDifference:icons.IconLayersDifference,IconLayersIntersect2:icons.IconLayersIntersect2,IconLayersIntersect:icons.IconLayersIntersect,IconLayersLinked:icons.IconLayersLinked,IconLayersOff:icons.IconLayersOff,IconLayersSubtract:icons.IconLayersSubtract,IconLayersUnion:icons.IconLayersUnion,IconLayout2:icons.IconLayout2,IconLayoutAlignBottom:icons.IconLayoutAlignBottom,IconLayoutAlignCenter:icons.IconLayoutAlignCenter,IconLayoutAlignLeft:icons.IconLayoutAlignLeft,IconLayoutAlignMiddle:icons.IconLayoutAlignMiddle,IconLayoutAlignRight:icons.IconLayoutAlignRight,IconLayoutAlignTop:icons.IconLayoutAlignTop,IconLayoutBoardSplit:icons.IconLayoutBoardSplit,IconLayoutBoard:icons.IconLayoutBoard,IconLayoutBottombarCollapse:icons.IconLayoutBottombarCollapse,IconLayoutBottombarExpand:icons.IconLayoutBottombarExpand,IconLayoutBottombar:icons.IconLayoutBottombar,IconLayoutCards:icons.IconLayoutCards,IconLayoutCollage:icons.IconLayoutCollage,IconLayoutColumns:icons.IconLayoutColumns,IconLayoutDashboard:icons.IconLayoutDashboard,IconLayoutDistributeHorizontal:icons.IconLayoutDistributeHorizontal,IconLayoutDistributeVertical:icons.IconLayoutDistributeVertical,IconLayoutGridAdd:icons.IconLayoutGridAdd,IconLayoutGrid:icons.IconLayoutGrid,IconLayoutKanban:icons.IconLayoutKanban,IconLayoutList:icons.IconLayoutList,IconLayoutNavbarCollapse:icons.IconLayoutNavbarCollapse,IconLayoutNavbarExpand:icons.IconLayoutNavbarExpand,IconLayoutNavbar:icons.IconLayoutNavbar,IconLayoutOff:icons.IconLayoutOff,IconLayoutRows:icons.IconLayoutRows,IconLayoutSidebarLeftCollapse:icons.IconLayoutSidebarLeftCollapse,IconLayoutSidebarLeftExpand:icons.IconLayoutSidebarLeftExpand,IconLayoutSidebarRightCollapse:icons.IconLayoutSidebarRightCollapse,IconLayoutSidebarRightExpand:icons.IconLayoutSidebarRightExpand,IconLayoutSidebarRight:icons.IconLayoutSidebarRight,IconLayoutSidebar:icons.IconLayoutSidebar,IconLayout:icons.IconLayout,IconLeafOff:icons.IconLeafOff,IconLeaf:icons.IconLeaf,IconLegoOff:icons.IconLegoOff,IconLego:icons.IconLego,IconLemon2:icons.IconLemon2,IconLemon:icons.IconLemon,IconLetterA:icons.IconLetterA,IconLetterB:icons.IconLetterB,IconLetterC:icons.IconLetterC,IconLetterCaseLower:icons.IconLetterCaseLower,IconLetterCaseToggle:icons.IconLetterCaseToggle,IconLetterCaseUpper:icons.IconLetterCaseUpper,IconLetterCase:icons.IconLetterCase,IconLetterD:icons.IconLetterD,IconLetterE:icons.IconLetterE,IconLetterF:icons.IconLetterF,IconLetterG:icons.IconLetterG,IconLetterH:icons.IconLetterH,IconLetterI:icons.IconLetterI,IconLetterJ:icons.IconLetterJ,IconLetterK:icons.IconLetterK,IconLetterL:icons.IconLetterL,IconLetterM:icons.IconLetterM,IconLetterN:icons.IconLetterN,IconLetterO:icons.IconLetterO,IconLetterP:icons.IconLetterP,IconLetterQ:icons.IconLetterQ,IconLetterR:icons.IconLetterR,IconLetterS:icons.IconLetterS,IconLetterSpacing:icons.IconLetterSpacing,IconLetterT:icons.IconLetterT,IconLetterU:icons.IconLetterU,IconLetterV:icons.IconLetterV,IconLetterW:icons.IconLetterW,IconLetterX:icons.IconLetterX,IconLetterY:icons.IconLetterY,IconLetterZ:icons.IconLetterZ,IconLicenseOff:icons.IconLicenseOff,IconLicense:icons.IconLicense,IconLifebuoyOff:icons.IconLifebuoyOff,IconLifebuoy:icons.IconLifebuoy,IconLineDashed:icons.IconLineDashed,IconLineDotted:icons.IconLineDotted,IconLineHeight:icons.IconLineHeight,IconLine:icons.IconLine,IconLinkOff:icons.IconLinkOff,IconLink:icons.IconLink,IconListCheck:icons.IconListCheck,IconListDetails:icons.IconListDetails,IconListNumbers:icons.IconListNumbers,IconListSearch:icons.IconListSearch,IconList:icons.IconList,IconLivePhotoOff:icons.IconLivePhotoOff,IconLivePhoto:icons.IconLivePhoto,IconLiveView:icons.IconLiveView,IconLoader2:icons.IconLoader2,IconLoaderQuarter:icons.IconLoaderQuarter,IconLoader:icons.IconLoader,IconLocationBroken:icons.IconLocationBroken,IconLocationOff:icons.IconLocationOff,IconLocation:icons.IconLocation,IconLockAccessOff:icons.IconLockAccessOff,IconLockAccess:icons.IconLockAccess,IconLockOff:icons.IconLockOff,IconLockOpenOff:icons.IconLockOpenOff,IconLockOpen:icons.IconLockOpen,IconLockSquare:icons.IconLockSquare,IconLock:icons.IconLock,IconLogicAnd:icons.IconLogicAnd,IconLogicBuffer:icons.IconLogicBuffer,IconLogicNand:icons.IconLogicNand,IconLogicNor:icons.IconLogicNor,IconLogicNot:icons.IconLogicNot,IconLogicOr:icons.IconLogicOr,IconLogicXnor:icons.IconLogicXnor,IconLogicXor:icons.IconLogicXor,IconLogin:icons.IconLogin,IconLogout:icons.IconLogout,IconLollipopOff:icons.IconLollipopOff,IconLollipop:icons.IconLollipop,IconLuggageOff:icons.IconLuggageOff,IconLuggage:icons.IconLuggage,IconLungsOff:icons.IconLungsOff,IconLungs:icons.IconLungs,IconMacroOff:icons.IconMacroOff,IconMacro:icons.IconMacro,IconMagnetOff:icons.IconMagnetOff,IconMagnet:icons.IconMagnet,IconMailFast:icons.IconMailFast,IconMailForward:icons.IconMailForward,IconMailOff:icons.IconMailOff,IconMailOpened:icons.IconMailOpened,IconMail:icons.IconMail,IconMailboxOff:icons.IconMailboxOff,IconMailbox:icons.IconMailbox,IconMan:icons.IconMan,IconManualGearbox:icons.IconManualGearbox,IconMap2:icons.IconMap2,IconMapOff:icons.IconMapOff,IconMapPinOff:icons.IconMapPinOff,IconMapPin:icons.IconMapPin,IconMapPins:icons.IconMapPins,IconMapSearch:icons.IconMapSearch,IconMap:icons.IconMap,IconMarkdownOff:icons.IconMarkdownOff,IconMarkdown:icons.IconMarkdown,IconMarquee2:icons.IconMarquee2,IconMarqueeOff:icons.IconMarqueeOff,IconMarquee:icons.IconMarquee,IconMars:icons.IconMars,IconMaskOff:icons.IconMaskOff,IconMask:icons.IconMask,IconMasksTheaterOff:icons.IconMasksTheaterOff,IconMasksTheater:icons.IconMasksTheater,IconMassage:icons.IconMassage,IconMathAvg:icons.IconMathAvg,IconMathFunctionOff:icons.IconMathFunctionOff,IconMathFunction:icons.IconMathFunction,IconMathMax:icons.IconMathMax,IconMathMin:icons.IconMathMin,IconMathOff:icons.IconMathOff,IconMathSymbols:icons.IconMathSymbols,IconMath:icons.IconMath,IconMaximizeOff:icons.IconMaximizeOff,IconMaximize:icons.IconMaximize,IconMeatOff:icons.IconMeatOff,IconMeat:icons.IconMeat,IconMedal2:icons.IconMedal2,IconMedal:icons.IconMedal,IconMedicalCrossOff:icons.IconMedicalCrossOff,IconMedicalCross:icons.IconMedicalCross,IconMedicineSyrup:icons.IconMedicineSyrup,IconMenu2:icons.IconMenu2,IconMenu:icons.IconMenu,IconMessage2Code:icons.IconMessage2Code,IconMessage2Off:icons.IconMessage2Off,IconMessage2Share:icons.IconMessage2Share,IconMessage2:icons.IconMessage2,IconMessageChatbot:icons.IconMessageChatbot,IconMessageCircle2:icons.IconMessageCircle2,IconMessageCircleOff:icons.IconMessageCircleOff,IconMessageCircle:icons.IconMessageCircle,IconMessageCode:icons.IconMessageCode,IconMessageDots:icons.IconMessageDots,IconMessageForward:icons.IconMessageForward,IconMessageLanguage:icons.IconMessageLanguage,IconMessageOff:icons.IconMessageOff,IconMessagePlus:icons.IconMessagePlus,IconMessageReport:icons.IconMessageReport,IconMessageShare:icons.IconMessageShare,IconMessage:icons.IconMessage,IconMessagesOff:icons.IconMessagesOff,IconMessages:icons.IconMessages,IconMeteorOff:icons.IconMeteorOff,IconMeteor:icons.IconMeteor,IconMickey:icons.IconMickey,IconMicrophone2Off:icons.IconMicrophone2Off,IconMicrophone2:icons.IconMicrophone2,IconMicrophoneOff:icons.IconMicrophoneOff,IconMicrophone:icons.IconMicrophone,IconMicroscopeOff:icons.IconMicroscopeOff,IconMicroscope:icons.IconMicroscope,IconMicrowaveOff:icons.IconMicrowaveOff,IconMicrowave:icons.IconMicrowave,IconMilitaryAward:icons.IconMilitaryAward,IconMilitaryRank:icons.IconMilitaryRank,IconMilkOff:icons.IconMilkOff,IconMilk:icons.IconMilk,IconMinimize:icons.IconMinimize,IconMinusVertical:icons.IconMinusVertical,IconMinus:icons.IconMinus,IconMistOff:icons.IconMistOff,IconMist:icons.IconMist,IconMoodAngry:icons.IconMoodAngry,IconMoodAnnoyed2:icons.IconMoodAnnoyed2,IconMoodAnnoyed:icons.IconMoodAnnoyed,IconMoodBoy:icons.IconMoodBoy,IconMoodConfuzed:icons.IconMoodConfuzed,IconMoodCrazyHappy:icons.IconMoodCrazyHappy,IconMoodCry:icons.IconMoodCry,IconMoodEmpty:icons.IconMoodEmpty,IconMoodHappy:icons.IconMoodHappy,IconMoodKid:icons.IconMoodKid,IconMoodLookLeft:icons.IconMoodLookLeft,IconMoodLookRight:icons.IconMoodLookRight,IconMoodNerd:icons.IconMoodNerd,IconMoodNervous:icons.IconMoodNervous,IconMoodNeutral:icons.IconMoodNeutral,IconMoodOff:icons.IconMoodOff,IconMoodSad2:icons.IconMoodSad2,IconMoodSadDizzy:icons.IconMoodSadDizzy,IconMoodSadSquint:icons.IconMoodSadSquint,IconMoodSad:icons.IconMoodSad,IconMoodSick:icons.IconMoodSick,IconMoodSilence:icons.IconMoodSilence,IconMoodSing:icons.IconMoodSing,IconMoodSmileBeam:icons.IconMoodSmileBeam,IconMoodSmileDizzy:icons.IconMoodSmileDizzy,IconMoodSmile:icons.IconMoodSmile,IconMoodSuprised:icons.IconMoodSuprised,IconMoodTongueWink2:icons.IconMoodTongueWink2,IconMoodTongueWink:icons.IconMoodTongueWink,IconMoodTongue:icons.IconMoodTongue,IconMoodUnamused:icons.IconMoodUnamused,IconMoodWink2:icons.IconMoodWink2,IconMoodWink:icons.IconMoodWink,IconMoodWrrr:icons.IconMoodWrrr,IconMoodXd:icons.IconMoodXd,IconMoon2:icons.IconMoon2,IconMoonOff:icons.IconMoonOff,IconMoonStars:icons.IconMoonStars,IconMoon:icons.IconMoon,IconMoped:icons.IconMoped,IconMotorbike:icons.IconMotorbike,IconMountainOff:icons.IconMountainOff,IconMountain:icons.IconMountain,IconMouse2:icons.IconMouse2,IconMouseOff:icons.IconMouseOff,IconMouse:icons.IconMouse,IconMovieOff:icons.IconMovieOff,IconMovie:icons.IconMovie,IconMugOff:icons.IconMugOff,IconMug:icons.IconMug,IconMultiplier05x:icons.IconMultiplier05x,IconMultiplier15x:icons.IconMultiplier15x,IconMultiplier1x:icons.IconMultiplier1x,IconMultiplier2x:icons.IconMultiplier2x,IconMushroomOff:icons.IconMushroomOff,IconMushroom:icons.IconMushroom,IconMusicOff:icons.IconMusicOff,IconMusic:icons.IconMusic,IconNavigationOff:icons.IconNavigationOff,IconNavigation:icons.IconNavigation,IconNetworkOff:icons.IconNetworkOff,IconNetwork:icons.IconNetwork,IconNewSection:icons.IconNewSection,IconNewsOff:icons.IconNewsOff,IconNews:icons.IconNews,IconNfcOff:icons.IconNfcOff,IconNfc:icons.IconNfc,IconNoCopyright:icons.IconNoCopyright,IconNoCreativeCommons:icons.IconNoCreativeCommons,IconNoDerivatives:icons.IconNoDerivatives,IconNorthStar:icons.IconNorthStar,IconNoteOff:icons.IconNoteOff,IconNote:icons.IconNote,IconNotebookOff:icons.IconNotebookOff,IconNotebook:icons.IconNotebook,IconNotesOff:icons.IconNotesOff,IconNotes:icons.IconNotes,IconNotificationOff:icons.IconNotificationOff,IconNotification:icons.IconNotification,IconNumber0:icons.IconNumber0,IconNumber1:icons.IconNumber1,IconNumber2:icons.IconNumber2,IconNumber3:icons.IconNumber3,IconNumber4:icons.IconNumber4,IconNumber5:icons.IconNumber5,IconNumber6:icons.IconNumber6,IconNumber7:icons.IconNumber7,IconNumber8:icons.IconNumber8,IconNumber9:icons.IconNumber9,IconNumber:icons.IconNumber,IconNumbers:icons.IconNumbers,IconNurse:icons.IconNurse,IconOctagonOff:icons.IconOctagonOff,IconOctagon:icons.IconOctagon,IconOld:icons.IconOld,IconOlympicsOff:icons.IconOlympicsOff,IconOlympics:icons.IconOlympics,IconOmega:icons.IconOmega,IconOutbound:icons.IconOutbound,IconOutlet:icons.IconOutlet,IconOvalVertical:icons.IconOvalVertical,IconOval:icons.IconOval,IconOverline:icons.IconOverline,IconPackageOff:icons.IconPackageOff,IconPackage:icons.IconPackage,IconPackages:icons.IconPackages,IconPackgeExport:icons.IconPackgeExport,IconPackgeImport:icons.IconPackgeImport,IconPacman:icons.IconPacman,IconPageBreak:icons.IconPageBreak,IconPaintOff:icons.IconPaintOff,IconPaint:icons.IconPaint,IconPaletteOff:icons.IconPaletteOff,IconPalette:icons.IconPalette,IconPanoramaHorizontalOff:icons.IconPanoramaHorizontalOff,IconPanoramaHorizontal:icons.IconPanoramaHorizontal,IconPanoramaVerticalOff:icons.IconPanoramaVerticalOff,IconPanoramaVertical:icons.IconPanoramaVertical,IconPaperBagOff:icons.IconPaperBagOff,IconPaperBag:icons.IconPaperBag,IconPaperclip:icons.IconPaperclip,IconParachuteOff:icons.IconParachuteOff,IconParachute:icons.IconParachute,IconParenthesesOff:icons.IconParenthesesOff,IconParentheses:icons.IconParentheses,IconParkingOff:icons.IconParkingOff,IconParking:icons.IconParking,IconPawOff:icons.IconPawOff,IconPaw:icons.IconPaw,IconPeace:icons.IconPeace,IconPencilMinus:icons.IconPencilMinus,IconPencilOff:icons.IconPencilOff,IconPencilPlus:icons.IconPencilPlus,IconPencil:icons.IconPencil,IconPennant2:icons.IconPennant2,IconPennantOff:icons.IconPennantOff,IconPennant:icons.IconPennant,IconPentagonOff:icons.IconPentagonOff,IconPentagon:icons.IconPentagon,IconPepperOff:icons.IconPepperOff,IconPepper:icons.IconPepper,IconPercentage:icons.IconPercentage,IconPerspectiveOff:icons.IconPerspectiveOff,IconPerspective:icons.IconPerspective,IconPhoneCall:icons.IconPhoneCall,IconPhoneCalling:icons.IconPhoneCalling,IconPhoneCheck:icons.IconPhoneCheck,IconPhoneIncoming:icons.IconPhoneIncoming,IconPhoneOff:icons.IconPhoneOff,IconPhoneOutgoing:icons.IconPhoneOutgoing,IconPhonePause:icons.IconPhonePause,IconPhonePlus:icons.IconPhonePlus,IconPhoneX:icons.IconPhoneX,IconPhone:icons.IconPhone,IconPhotoCancel:icons.IconPhotoCancel,IconPhotoCheck:icons.IconPhotoCheck,IconPhotoDown:icons.IconPhotoDown,IconPhotoEdit:icons.IconPhotoEdit,IconPhotoHeart:icons.IconPhotoHeart,IconPhotoMinus:icons.IconPhotoMinus,IconPhotoOff:icons.IconPhotoOff,IconPhotoPlus:icons.IconPhotoPlus,IconPhotoSearch:icons.IconPhotoSearch,IconPhotoShield:icons.IconPhotoShield,IconPhotoStar:icons.IconPhotoStar,IconPhotoUp:icons.IconPhotoUp,IconPhotoX:icons.IconPhotoX,IconPhoto:icons.IconPhoto,IconPhysotherapist:icons.IconPhysotherapist,IconPictureInPictureOff:icons.IconPictureInPictureOff,IconPictureInPictureOn:icons.IconPictureInPictureOn,IconPictureInPictureTop:icons.IconPictureInPictureTop,IconPictureInPicture:icons.IconPictureInPicture,IconPigMoney:icons.IconPigMoney,IconPigOff:icons.IconPigOff,IconPig:icons.IconPig,IconPillOff:icons.IconPillOff,IconPill:icons.IconPill,IconPills:icons.IconPills,IconPin:icons.IconPin,IconPingPong:icons.IconPingPong,IconPinnedOff:icons.IconPinnedOff,IconPinned:icons.IconPinned,IconPizzaOff:icons.IconPizzaOff,IconPizza:icons.IconPizza,IconPlaneArrival:icons.IconPlaneArrival,IconPlaneDeparture:icons.IconPlaneDeparture,IconPlaneInflight:icons.IconPlaneInflight,IconPlaneOff:icons.IconPlaneOff,IconPlaneTilt:icons.IconPlaneTilt,IconPlane:icons.IconPlane,IconPlanetOff:icons.IconPlanetOff,IconPlanet:icons.IconPlanet,IconPlant2Off:icons.IconPlant2Off,IconPlant2:icons.IconPlant2,IconPlantOff:icons.IconPlantOff,IconPlant:icons.IconPlant,IconPlayCardOff:icons.IconPlayCardOff,IconPlayCard:icons.IconPlayCard,IconPlayerEject:icons.IconPlayerEject,IconPlayerPause:icons.IconPlayerPause,IconPlayerPlay:icons.IconPlayerPlay,IconPlayerRecord:icons.IconPlayerRecord,IconPlayerSkipBack:icons.IconPlayerSkipBack,IconPlayerSkipForward:icons.IconPlayerSkipForward,IconPlayerStop:icons.IconPlayerStop,IconPlayerTrackNext:icons.IconPlayerTrackNext,IconPlayerTrackPrev:icons.IconPlayerTrackPrev,IconPlaylistAdd:icons.IconPlaylistAdd,IconPlaylistOff:icons.IconPlaylistOff,IconPlaylistX:icons.IconPlaylistX,IconPlaylist:icons.IconPlaylist,IconPlaystationCircle:icons.IconPlaystationCircle,IconPlaystationSquare:icons.IconPlaystationSquare,IconPlaystationTriangle:icons.IconPlaystationTriangle,IconPlaystationX:icons.IconPlaystationX,IconPlugConnectedX:icons.IconPlugConnectedX,IconPlugConnected:icons.IconPlugConnected,IconPlugOff:icons.IconPlugOff,IconPlugX:icons.IconPlugX,IconPlug:icons.IconPlug,IconPlus:icons.IconPlus,IconPng:icons.IconPng,IconPodiumOff:icons.IconPodiumOff,IconPodium:icons.IconPodium,IconPointOff:icons.IconPointOff,IconPoint:icons.IconPoint,IconPointer:icons.IconPointer,IconPokeballOff:icons.IconPokeballOff,IconPokeball:icons.IconPokeball,IconPolaroid:icons.IconPolaroid,IconPolygonOff:icons.IconPolygonOff,IconPolygon:icons.IconPolygon,IconPoo:icons.IconPoo,IconPoolOff:icons.IconPoolOff,IconPool:icons.IconPool,IconPower:icons.IconPower,IconPray:icons.IconPray,IconPremiumRights:icons.IconPremiumRights,IconPrescription:icons.IconPrescription,IconPresentationAnalytics:icons.IconPresentationAnalytics,IconPresentationOff:icons.IconPresentationOff,IconPresentation:icons.IconPresentation,IconPrinterOff:icons.IconPrinterOff,IconPrinter:icons.IconPrinter,IconPrison:icons.IconPrison,IconPrompt:icons.IconPrompt,IconPropellerOff:icons.IconPropellerOff,IconPropeller:icons.IconPropeller,IconPuzzle2:icons.IconPuzzle2,IconPuzzleOff:icons.IconPuzzleOff,IconPuzzle:icons.IconPuzzle,IconPyramidOff:icons.IconPyramidOff,IconPyramid:icons.IconPyramid,IconQrcodeOff:icons.IconQrcodeOff,IconQrcode:icons.IconQrcode,IconQuestionMark:icons.IconQuestionMark,IconQuoteOff:icons.IconQuoteOff,IconQuote:icons.IconQuote,IconRadar2:icons.IconRadar2,IconRadarOff:icons.IconRadarOff,IconRadar:icons.IconRadar,IconRadioOff:icons.IconRadioOff,IconRadio:icons.IconRadio,IconRadioactiveOff:icons.IconRadioactiveOff,IconRadioactive:icons.IconRadioactive,IconRadiusBottomLeft:icons.IconRadiusBottomLeft,IconRadiusBottomRight:icons.IconRadiusBottomRight,IconRadiusTopLeft:icons.IconRadiusTopLeft,IconRadiusTopRight:icons.IconRadiusTopRight,IconRainbowOff:icons.IconRainbowOff,IconRainbow:icons.IconRainbow,IconRating12Plus:icons.IconRating12Plus,IconRating14Plus:icons.IconRating14Plus,IconRating16Plus:icons.IconRating16Plus,IconRating18Plus:icons.IconRating18Plus,IconRating21Plus:icons.IconRating21Plus,IconReceipt2:icons.IconReceipt2,IconReceiptOff:icons.IconReceiptOff,IconReceiptRefund:icons.IconReceiptRefund,IconReceiptTax:icons.IconReceiptTax,IconReceipt:icons.IconReceipt,IconRecharging:icons.IconRecharging,IconRecordMailOff:icons.IconRecordMailOff,IconRecordMail:icons.IconRecordMail,IconRectangleVertical:icons.IconRectangleVertical,IconRectangle:icons.IconRectangle,IconRecycleOff:icons.IconRecycleOff,IconRecycle:icons.IconRecycle,IconRefreshAlert:icons.IconRefreshAlert,IconRefreshDot:icons.IconRefreshDot,IconRefreshOff:icons.IconRefreshOff,IconRefresh:icons.IconRefresh,IconRegexOff:icons.IconRegexOff,IconRegex:icons.IconRegex,IconRegistered:icons.IconRegistered,IconRelationManyToMany:icons.IconRelationManyToMany,IconRelationOneToMany:icons.IconRelationOneToMany,IconRelationOneToOne:icons.IconRelationOneToOne,IconReload:icons.IconReload,IconRepeatOff:icons.IconRepeatOff,IconRepeatOnce:icons.IconRepeatOnce,IconRepeat:icons.IconRepeat,IconReplaceOff:icons.IconReplaceOff,IconReplace:icons.IconReplace,IconReportAnalytics:icons.IconReportAnalytics,IconReportMedical:icons.IconReportMedical,IconReportMoney:icons.IconReportMoney,IconReportOff:icons.IconReportOff,IconReportSearch:icons.IconReportSearch,IconReport:icons.IconReport,IconResize:icons.IconResize,IconRippleOff:icons.IconRippleOff,IconRipple:icons.IconRipple,IconRoadOff:icons.IconRoadOff,IconRoadSign:icons.IconRoadSign,IconRoad:icons.IconRoad,IconRobotOff:icons.IconRobotOff,IconRobot:icons.IconRobot,IconRocketOff:icons.IconRocketOff,IconRocket:icons.IconRocket,IconRollerSkating:icons.IconRollerSkating,IconRollercoasterOff:icons.IconRollercoasterOff,IconRollercoaster:icons.IconRollercoaster,IconRotate2:icons.IconRotate2,IconRotate360:icons.IconRotate360,IconRotateClockwise2:icons.IconRotateClockwise2,IconRotateClockwise:icons.IconRotateClockwise,IconRotateDot:icons.IconRotateDot,IconRotateRectangle:icons.IconRotateRectangle,IconRotate:icons.IconRotate,IconRouteOff:icons.IconRouteOff,IconRoute:icons.IconRoute,IconRouterOff:icons.IconRouterOff,IconRouter:icons.IconRouter,IconRowInsertBottom:icons.IconRowInsertBottom,IconRowInsertTop:icons.IconRowInsertTop,IconRss:icons.IconRss,IconRuler2Off:icons.IconRuler2Off,IconRuler2:icons.IconRuler2,IconRuler3:icons.IconRuler3,IconRulerMeasure:icons.IconRulerMeasure,IconRulerOff:icons.IconRulerOff,IconRuler:icons.IconRuler,IconRun:icons.IconRun,IconSailboatOff:icons.IconSailboatOff,IconSailboat:icons.IconSailboat,IconSalt:icons.IconSalt,IconSatelliteOff:icons.IconSatelliteOff,IconSatellite:icons.IconSatellite,IconSausage:icons.IconSausage,IconScaleOff:icons.IconScaleOff,IconScaleOutlineOff:icons.IconScaleOutlineOff,IconScaleOutline:icons.IconScaleOutline,IconScale:icons.IconScale,IconScanEye:icons.IconScanEye,IconScan:icons.IconScan,IconSchemaOff:icons.IconSchemaOff,IconSchema:icons.IconSchema,IconSchoolOff:icons.IconSchoolOff,IconSchool:icons.IconSchool,IconScissorsOff:icons.IconScissorsOff,IconScissors:icons.IconScissors,IconScooterElectric:icons.IconScooterElectric,IconScooter:icons.IconScooter,IconScreenShareOff:icons.IconScreenShareOff,IconScreenShare:icons.IconScreenShare,IconScreenshot:icons.IconScreenshot,IconScribbleOff:icons.IconScribbleOff,IconScribble:icons.IconScribble,IconScriptMinus:icons.IconScriptMinus,IconScriptPlus:icons.IconScriptPlus,IconScriptX:icons.IconScriptX,IconScript:icons.IconScript,IconScubaMaskOff:icons.IconScubaMaskOff,IconScubaMask:icons.IconScubaMask,IconSdk:icons.IconSdk,IconSearchOff:icons.IconSearchOff,IconSearch:icons.IconSearch,IconSectionSign:icons.IconSectionSign,IconSection:icons.IconSection,IconSeedingOff:icons.IconSeedingOff,IconSeeding:icons.IconSeeding,IconSelect:icons.IconSelect,IconSelector:icons.IconSelector,IconSendOff:icons.IconSendOff,IconSend:icons.IconSend,IconSeo:icons.IconSeo,IconSeparatorHorizontal:icons.IconSeparatorHorizontal,IconSeparatorVertical:icons.IconSeparatorVertical,IconSeparator:icons.IconSeparator,IconServer2:icons.IconServer2,IconServerBolt:icons.IconServerBolt,IconServerCog:icons.IconServerCog,IconServerOff:icons.IconServerOff,IconServer:icons.IconServer,IconServicemark:icons.IconServicemark,IconSettingsAutomation:icons.IconSettingsAutomation,IconSettingsOff:icons.IconSettingsOff,IconSettings:icons.IconSettings,IconShadowOff:icons.IconShadowOff,IconShadow:icons.IconShadow,IconShape2:icons.IconShape2,IconShape3:icons.IconShape3,IconShapeOff:icons.IconShapeOff,IconShape:icons.IconShape,IconShareOff:icons.IconShareOff,IconShare:icons.IconShare,IconShieldCheck:icons.IconShieldCheck,IconShieldCheckered:icons.IconShieldCheckered,IconShieldChevron:icons.IconShieldChevron,IconShieldHalfFilled:icons.IconShieldHalfFilled,IconShieldHalf:icons.IconShieldHalf,IconShieldLock:icons.IconShieldLock,IconShieldOff:icons.IconShieldOff,IconShieldX:icons.IconShieldX,IconShield:icons.IconShield,IconShipOff:icons.IconShipOff,IconShip:icons.IconShip,IconShirtOff:icons.IconShirtOff,IconShirtSport:icons.IconShirtSport,IconShirt:icons.IconShirt,IconShoeOff:icons.IconShoeOff,IconShoe:icons.IconShoe,IconShoppingCartDiscount:icons.IconShoppingCartDiscount,IconShoppingCartOff:icons.IconShoppingCartOff,IconShoppingCartPlus:icons.IconShoppingCartPlus,IconShoppingCartX:icons.IconShoppingCartX,IconShoppingCart:icons.IconShoppingCart,IconShovel:icons.IconShovel,IconShredder:icons.IconShredder,IconSignLeft:icons.IconSignLeft,IconSignRight:icons.IconSignRight,IconSignal3g:icons.IconSignal3g,IconSignal4gPlus:icons.IconSignal4gPlus,IconSignal4g:icons.IconSignal4g,IconSignal5g:icons.IconSignal5g,IconSignatureOff:icons.IconSignatureOff,IconSignature:icons.IconSignature,IconSitemapOff:icons.IconSitemapOff,IconSitemap:icons.IconSitemap,IconSkateboardOff:icons.IconSkateboardOff,IconSkateboard:icons.IconSkateboard,IconSkull:icons.IconSkull,IconSleigh:icons.IconSleigh,IconSlice:icons.IconSlice,IconSlideshow:icons.IconSlideshow,IconSmartHomeOff:icons.IconSmartHomeOff,IconSmartHome:icons.IconSmartHome,IconSmokingNo:icons.IconSmokingNo,IconSmoking:icons.IconSmoking,IconSnowflakeOff:icons.IconSnowflakeOff,IconSnowflake:icons.IconSnowflake,IconSnowman:icons.IconSnowman,IconSoccerField:icons.IconSoccerField,IconSocialOff:icons.IconSocialOff,IconSocial:icons.IconSocial,IconSock:icons.IconSock,IconSofaOff:icons.IconSofaOff,IconSofa:icons.IconSofa,IconSortAscending2:icons.IconSortAscending2,IconSortAscendingLetters:icons.IconSortAscendingLetters,IconSortAscendingNumbers:icons.IconSortAscendingNumbers,IconSortAscending:icons.IconSortAscending,IconSortDescending2:icons.IconSortDescending2,IconSortDescendingLetters:icons.IconSortDescendingLetters,IconSortDescendingNumbers:icons.IconSortDescendingNumbers,IconSortDescending:icons.IconSortDescending,IconSos:icons.IconSos,IconSoupOff:icons.IconSoupOff,IconSoup:icons.IconSoup,IconSourceCode:icons.IconSourceCode,IconSpaceOff:icons.IconSpaceOff,IconSpace:icons.IconSpace,IconSpacingHorizontal:icons.IconSpacingHorizontal,IconSpacingVertical:icons.IconSpacingVertical,IconSpade:icons.IconSpade,IconSpeakerphone:icons.IconSpeakerphone,IconSpeedboat:icons.IconSpeedboat,IconSpider:icons.IconSpider,IconSpiralOff:icons.IconSpiralOff,IconSpiral:icons.IconSpiral,IconSportBillard:icons.IconSportBillard,IconSpyOff:icons.IconSpyOff,IconSpy:icons.IconSpy,IconSquare0:icons.IconSquare0,IconSquare1:icons.IconSquare1,IconSquare2:icons.IconSquare2,IconSquare3:icons.IconSquare3,IconSquare4:icons.IconSquare4,IconSquare5:icons.IconSquare5,IconSquare6:icons.IconSquare6,IconSquare7:icons.IconSquare7,IconSquare8:icons.IconSquare8,IconSquare9:icons.IconSquare9,IconSquareA:icons.IconSquareA,IconSquareAsterisk:icons.IconSquareAsterisk,IconSquareB:icons.IconSquareB,IconSquareC:icons.IconSquareC,IconSquareCheck:icons.IconSquareCheck,IconSquareD:icons.IconSquareD,IconSquareDot:icons.IconSquareDot,IconSquareE:icons.IconSquareE,IconSquareF:icons.IconSquareF,IconSquareForbid2:icons.IconSquareForbid2,IconSquareForbid:icons.IconSquareForbid,IconSquareG:icons.IconSquareG,IconSquareH:icons.IconSquareH,IconSquareHalf:icons.IconSquareHalf,IconSquareI:icons.IconSquareI,IconSquareJ:icons.IconSquareJ,IconSquareK:icons.IconSquareK,IconSquareL:icons.IconSquareL,IconSquareM:icons.IconSquareM,IconSquareMinus:icons.IconSquareMinus,IconSquareN:icons.IconSquareN,IconSquareO:icons.IconSquareO,IconSquareOff:icons.IconSquareOff,IconSquareP:icons.IconSquareP,IconSquarePlus:icons.IconSquarePlus,IconSquareQ:icons.IconSquareQ,IconSquareR:icons.IconSquareR,IconSquareRoot2:icons.IconSquareRoot2,IconSquareRoot:icons.IconSquareRoot,IconSquareRotatedForbid2:icons.IconSquareRotatedForbid2,IconSquareRotatedForbid:icons.IconSquareRotatedForbid,IconSquareRotatedOff:icons.IconSquareRotatedOff,IconSquareRotated:icons.IconSquareRotated,IconSquareS:icons.IconSquareS,IconSquareT:icons.IconSquareT,IconSquareToggleHorizontal:icons.IconSquareToggleHorizontal,IconSquareToggle:icons.IconSquareToggle,IconSquareU:icons.IconSquareU,IconSquareW:icons.IconSquareW,IconSquareX:icons.IconSquareX,IconSquareY:icons.IconSquareY,IconSquareZ:icons.IconSquareZ,IconSquare:icons.IconSquare,IconSquaresDiagonal:icons.IconSquaresDiagonal,IconSquaresFilled:icons.IconSquaresFilled,IconStack2:icons.IconStack2,IconStack3:icons.IconStack3,IconStackPop:icons.IconStackPop,IconStackPush:icons.IconStackPush,IconStack:icons.IconStack,IconStairsDown:icons.IconStairsDown,IconStairsUp:icons.IconStairsUp,IconStairs:icons.IconStairs,IconStarHalf:icons.IconStarHalf,IconStarOff:icons.IconStarOff,IconStar:icons.IconStar,IconStarsOff:icons.IconStarsOff,IconStars:icons.IconStars,IconStatusChange:icons.IconStatusChange,IconSteam:icons.IconSteam,IconSteeringWheelOff:icons.IconSteeringWheelOff,IconSteeringWheel:icons.IconSteeringWheel,IconStepInto:icons.IconStepInto,IconStepOut:icons.IconStepOut,IconStethoscopeOff:icons.IconStethoscopeOff,IconStethoscope:icons.IconStethoscope,IconSticker:icons.IconSticker,IconStormOff:icons.IconStormOff,IconStorm:icons.IconStorm,IconStretching:icons.IconStretching,IconStrikethrough:icons.IconStrikethrough,IconSubmarine:icons.IconSubmarine,IconSubscript:icons.IconSubscript,IconSubtask:icons.IconSubtask,IconSumOff:icons.IconSumOff,IconSum:icons.IconSum,IconSunHigh:icons.IconSunHigh,IconSunLow:icons.IconSunLow,IconSunMoon:icons.IconSunMoon,IconSunOff:icons.IconSunOff,IconSunWind:icons.IconSunWind,IconSun:icons.IconSun,IconSunglasses:icons.IconSunglasses,IconSunrise:icons.IconSunrise,IconSunset2:icons.IconSunset2,IconSunset:icons.IconSunset,IconSuperscript:icons.IconSuperscript,IconSvg:icons.IconSvg,IconSwimming:icons.IconSwimming,IconSwitch2:icons.IconSwitch2,IconSwitch3:icons.IconSwitch3,IconSwitchHorizontal:icons.IconSwitchHorizontal,IconSwitchVertical:icons.IconSwitchVertical,IconSwitch:icons.IconSwitch,IconSwordOff:icons.IconSwordOff,IconSword:icons.IconSword,IconSwords:icons.IconSwords,IconTableAlias:icons.IconTableAlias,IconTableExport:icons.IconTableExport,IconTableImport:icons.IconTableImport,IconTableOff:icons.IconTableOff,IconTableOptions:icons.IconTableOptions,IconTableShortcut:icons.IconTableShortcut,IconTable:icons.IconTable,IconTagOff:icons.IconTagOff,IconTag:icons.IconTag,IconTagsOff:icons.IconTagsOff,IconTags:icons.IconTags,IconTallymark1:icons.IconTallymark1,IconTallymark2:icons.IconTallymark2,IconTallymark3:icons.IconTallymark3,IconTallymark4:icons.IconTallymark4,IconTallymarks:icons.IconTallymarks,IconTank:icons.IconTank,IconTargetOff:icons.IconTargetOff,IconTarget:icons.IconTarget,IconTelescopeOff:icons.IconTelescopeOff,IconTelescope:icons.IconTelescope,IconTemperatureCelsius:icons.IconTemperatureCelsius,IconTemperatureFahrenheit:icons.IconTemperatureFahrenheit,IconTemperatureMinus:icons.IconTemperatureMinus,IconTemperatureOff:icons.IconTemperatureOff,IconTemperaturePlus:icons.IconTemperaturePlus,IconTemperature:icons.IconTemperature,IconTemplateOff:icons.IconTemplateOff,IconTemplate:icons.IconTemplate,IconTentOff:icons.IconTentOff,IconTent:icons.IconTent,IconTerminal2:icons.IconTerminal2,IconTerminal:icons.IconTerminal,IconTestPipe2:icons.IconTestPipe2,IconTestPipeOff:icons.IconTestPipeOff,IconTestPipe:icons.IconTestPipe,IconTextCaption:icons.IconTextCaption,IconTextColor:icons.IconTextColor,IconTextDecrease:icons.IconTextDecrease,IconTextDirectionLtr:icons.IconTextDirectionLtr,IconTextDirectionRtl:icons.IconTextDirectionRtl,IconTextIncrease:icons.IconTextIncrease,IconTextOrientation:icons.IconTextOrientation,IconTextPlus:icons.IconTextPlus,IconTextRecognition:icons.IconTextRecognition,IconTextResize:icons.IconTextResize,IconTextSize:icons.IconTextSize,IconTextSpellcheck:icons.IconTextSpellcheck,IconTextWrapDisabled:icons.IconTextWrapDisabled,IconTextWrap:icons.IconTextWrap,IconThermometer:icons.IconThermometer,IconThumbDownOff:icons.IconThumbDownOff,IconThumbDown:icons.IconThumbDown,IconThumbUpOff:icons.IconThumbUpOff,IconThumbUp:icons.IconThumbUp,IconTicketOff:icons.IconTicketOff,IconTicket:icons.IconTicket,IconTie:icons.IconTie,IconTilde:icons.IconTilde,IconTiltShiftOff:icons.IconTiltShiftOff,IconTiltShift:icons.IconTiltShift,IconTimeline:icons.IconTimeline,IconTir:icons.IconTir,IconToggleLeft:icons.IconToggleLeft,IconToggleRight:icons.IconToggleRight,IconToiletPaperOff:icons.IconToiletPaperOff,IconToiletPaper:icons.IconToiletPaper,IconTool:icons.IconTool,IconToolsKitchen2Off:icons.IconToolsKitchen2Off,IconToolsKitchen2:icons.IconToolsKitchen2,IconToolsKitchenOff:icons.IconToolsKitchenOff,IconToolsKitchen:icons.IconToolsKitchen,IconToolsOff:icons.IconToolsOff,IconTools:icons.IconTools,IconTooltip:icons.IconTooltip,IconTornado:icons.IconTornado,IconTournament:icons.IconTournament,IconTowerOff:icons.IconTowerOff,IconTower:icons.IconTower,IconTrack:icons.IconTrack,IconTractor:icons.IconTractor,IconTrademark:icons.IconTrademark,IconTrafficConeOff:icons.IconTrafficConeOff,IconTrafficCone:icons.IconTrafficCone,IconTrafficLightsOff:icons.IconTrafficLightsOff,IconTrafficLights:icons.IconTrafficLights,IconTrain:icons.IconTrain,IconTransferIn:icons.IconTransferIn,IconTransferOut:icons.IconTransferOut,IconTransform:icons.IconTransform,IconTransitionBottom:icons.IconTransitionBottom,IconTransitionLeft:icons.IconTransitionLeft,IconTransitionRight:icons.IconTransitionRight,IconTransitionTop:icons.IconTransitionTop,IconTrashOff:icons.IconTrashOff,IconTrashX:icons.IconTrashX,IconTrash:icons.IconTrash,IconTree:icons.IconTree,IconTrees:icons.IconTrees,IconTrendingDown2:icons.IconTrendingDown2,IconTrendingDown3:icons.IconTrendingDown3,IconTrendingDown:icons.IconTrendingDown,IconTrendingUp2:icons.IconTrendingUp2,IconTrendingUp3:icons.IconTrendingUp3,IconTrendingUp:icons.IconTrendingUp,IconTriangleInverted:icons.IconTriangleInverted,IconTriangleOff:icons.IconTriangleOff,IconTriangleSquareCircle:icons.IconTriangleSquareCircle,IconTriangle:icons.IconTriangle,IconTriangles:icons.IconTriangles,IconTrident:icons.IconTrident,IconTrophyOff:icons.IconTrophyOff,IconTrophy:icons.IconTrophy,IconTrowel:icons.IconTrowel,IconTruckDelivery:icons.IconTruckDelivery,IconTruckLoading:icons.IconTruckLoading,IconTruckOff:icons.IconTruckOff,IconTruckReturn:icons.IconTruckReturn,IconTruck:icons.IconTruck,IconTxt:icons.IconTxt,IconTypographyOff:icons.IconTypographyOff,IconTypography:icons.IconTypography,IconUfOff:icons.IconUfOff,IconUfo:icons.IconUfo,IconUmbrellaOff:icons.IconUmbrellaOff,IconUmbrella:icons.IconUmbrella,IconUnderline:icons.IconUnderline,IconUnlink:icons.IconUnlink,IconUpload:icons.IconUpload,IconUrgent:icons.IconUrgent,IconUsb:icons.IconUsb,IconUserCheck:icons.IconUserCheck,IconUserCircle:icons.IconUserCircle,IconUserExclamation:icons.IconUserExclamation,IconUserMinus:icons.IconUserMinus,IconUserOff:icons.IconUserOff,IconUserPlus:icons.IconUserPlus,IconUserSearch:icons.IconUserSearch,IconUserX:icons.IconUserX,IconUser:icons.IconUser,IconUsers:icons.IconUsers,IconUvIndex:icons.IconUvIndex,IconUxCircle:icons.IconUxCircle,IconVaccineBottleOff:icons.IconVaccineBottleOff,IconVaccineBottle:icons.IconVaccineBottle,IconVaccineOff:icons.IconVaccineOff,IconVaccine:icons.IconVaccine,IconVariableMinus:icons.IconVariableMinus,IconVariableOff:icons.IconVariableOff,IconVariablePlus:icons.IconVariablePlus,IconVariable:icons.IconVariable,IconVectorBezier2:icons.IconVectorBezier2,IconVectorBezier:icons.IconVectorBezier,IconVectorOff:icons.IconVectorOff,IconVectorTriangleOff:icons.IconVectorTriangleOff,IconVectorTriangle:icons.IconVectorTriangle,IconVector:icons.IconVector,IconVenus:icons.IconVenus,IconVersionsOff:icons.IconVersionsOff,IconVersions:icons.IconVersions,IconVideoMinus:icons.IconVideoMinus,IconVideoOff:icons.IconVideoOff,IconVideoPlus:icons.IconVideoPlus,IconVideo:icons.IconVideo,IconView360Off:icons.IconView360Off,IconView360:icons.IconView360,IconViewfinderOff:icons.IconViewfinderOff,IconViewfinder:icons.IconViewfinder,IconViewportNarrow:icons.IconViewportNarrow,IconViewportWide:icons.IconViewportWide,IconVinyl:icons.IconVinyl,IconVipOff:icons.IconVipOff,IconVip:icons.IconVip,IconVirusOff:icons.IconVirusOff,IconVirusSearch:icons.IconVirusSearch,IconVirus:icons.IconVirus,IconVocabularyOff:icons.IconVocabularyOff,IconVocabulary:icons.IconVocabulary,IconVolume2:icons.IconVolume2,IconVolume3:icons.IconVolume3,IconVolumeOff:icons.IconVolumeOff,IconVolume:icons.IconVolume,IconWalk:icons.IconWalk,IconWallOff:icons.IconWallOff,IconWall:icons.IconWall,IconWalletOff:icons.IconWalletOff,IconWallet:icons.IconWallet,IconWallpaperOff:icons.IconWallpaperOff,IconWallpaper:icons.IconWallpaper,IconWandOff:icons.IconWandOff,IconWand:icons.IconWand,IconWashDry1:icons.IconWashDry1,IconWashDry2:icons.IconWashDry2,IconWashDry3:icons.IconWashDry3,IconWashDryA:icons.IconWashDryA,IconWashDryDip:icons.IconWashDryDip,IconWashDryF:icons.IconWashDryF,IconWashDryHang:icons.IconWashDryHang,IconWashDryOff:icons.IconWashDryOff,IconWashDryP:icons.IconWashDryP,IconWashDryShade:icons.IconWashDryShade,IconWashDryW:icons.IconWashDryW,IconWashDry:icons.IconWashDry,IconWashDrycleanOff:icons.IconWashDrycleanOff,IconWashDryclean:icons.IconWashDryclean,IconWashGentle:icons.IconWashGentle,IconWashMachine:icons.IconWashMachine,IconWashOff:icons.IconWashOff,IconWashPress:icons.IconWashPress,IconWashTemperature1:icons.IconWashTemperature1,IconWashTemperature2:icons.IconWashTemperature2,IconWashTemperature3:icons.IconWashTemperature3,IconWashTemperature4:icons.IconWashTemperature4,IconWashTemperature5:icons.IconWashTemperature5,IconWashTemperature6:icons.IconWashTemperature6,IconWashTumbleDry:icons.IconWashTumbleDry,IconWashTumbleOff:icons.IconWashTumbleOff,IconWash:icons.IconWash,IconWaveSawTool:icons.IconWaveSawTool,IconWaveSine:icons.IconWaveSine,IconWaveSquare:icons.IconWaveSquare,IconWebhookOff:icons.IconWebhookOff,IconWebhook:icons.IconWebhook,IconWheelchairOff:icons.IconWheelchairOff,IconWheelchair:icons.IconWheelchair,IconWifi0:icons.IconWifi0,IconWifi1:icons.IconWifi1,IconWifi2:icons.IconWifi2,IconWifiOff:icons.IconWifiOff,IconWifi:icons.IconWifi,IconWindOff:icons.IconWindOff,IconWind:icons.IconWind,IconWindmillOff:icons.IconWindmillOff,IconWindmill:icons.IconWindmill,IconWindowMaximize:icons.IconWindowMaximize,IconWindowMinimize:icons.IconWindowMinimize,IconWindowOff:icons.IconWindowOff,IconWindow:icons.IconWindow,IconWindsock:icons.IconWindsock,IconWiperWash:icons.IconWiperWash,IconWiper:icons.IconWiper,IconWoman:icons.IconWoman,IconWood:icons.IconWood,IconWorldDownload:icons.IconWorldDownload,IconWorldLatitude:icons.IconWorldLatitude,IconWorldLongitude:icons.IconWorldLongitude,IconWorldOff:icons.IconWorldOff,IconWorldUpload:icons.IconWorldUpload,IconWorldWww:icons.IconWorldWww,IconWorld:icons.IconWorld,IconWreckingBall:icons.IconWreckingBall,IconWritingOff:icons.IconWritingOff,IconWritingSignOff:icons.IconWritingSignOff,IconWritingSign:icons.IconWritingSign,IconWriting:icons.IconWriting,IconX:icons.IconX,IconXboxA:icons.IconXboxA,IconXboxB:icons.IconXboxB,IconXboxX:icons.IconXboxX,IconXboxY:icons.IconXboxY,IconYinYang:icons.IconYinYang,IconYoga:icons.IconYoga,IconZeppelinOff:icons.IconZeppelinOff,IconZeppelin:icons.IconZeppelin,IconZip:icons.IconZip,IconZodiacAquarius:icons.IconZodiacAquarius,IconZodiacAries:icons.IconZodiacAries,IconZodiacCancer:icons.IconZodiacCancer,IconZodiacCapricorn:icons.IconZodiacCapricorn,IconZodiacGemini:icons.IconZodiacGemini,IconZodiacLeo:icons.IconZodiacLeo,IconZodiacLibra:icons.IconZodiacLibra,IconZodiacPisces:icons.IconZodiacPisces,IconZodiacSagittarius:icons.IconZodiacSagittarius,IconZodiacScorpio:icons.IconZodiacScorpio,IconZodiacTaurus:icons.IconZodiacTaurus,IconZodiacVirgo:icons.IconZodiacVirgo,IconZoomCancel:icons.IconZoomCancel,IconZoomCheck:icons.IconZoomCheck,IconZoomCode:icons.IconZoomCode,IconZoomExclamation:icons.IconZoomExclamation,IconZoomInArea:icons.IconZoomInArea,IconZoomIn:icons.IconZoomIn,IconZoomMoney:icons.IconZoomMoney,IconZoomOutArea:icons.IconZoomOutArea,IconZoomOut:icons.IconZoomOut,IconZoomPan:icons.IconZoomPan,IconZoomQuestion:icons.IconZoomQuestion,IconZoomReplace:icons.IconZoomReplace,IconZoomReset:icons.IconZoomReset,IconZzzOff:icons.IconZzzOff,IconZzz:icons.IconZzz},iconMapping={"terp-purchase":AntIcons.ShoppingCartOutlined,"terp-graph":AntIcons.PieChartOutlined,"terp-crm":AntIcons.ContactsOutlined,"terp-hr":TablerIcons.IconFriends,"terp-account":TablerIcons.IconBuildingBank,"terp-project":TablerIcons.IconChecklist,"terp-administration":TablerIcons.IconAdjustments,"terp-partner":AntIcons.TeamOutlined,"terp-mrp":AntIcons.BuildOutlined,"terp-product":AntIcons.ShoppingOutlined,STOCK_JUSTIFY_FILL:AntIcons.UnorderedListOutlined,STOCK_INDENT:TablerIcons.IconIndentIncrease,STOCK_HELP:AntIcons.QuestionOutlined,STOCK_GO_UP:AntIcons.ArrowUpOutlined,STOCK_SORT_DESCENDING:AntIcons.SortDescendingOutlined,STOCK_ADD:AntIcons.PlusOutlined,STOCK_GOTO_LAST:AntIcons.FastForwardOutlined,STOCK_FIND:AntIcons.SearchOutlined,STOCK_PROPERTIES:AntIcons.ControlOutlined,STOCK_DIALOG_INFO:AntIcons.InfoOutlined,STOCK_FLOPPY:AntIcons.UsbOutlined,STOCK_JUSTIFY_CENTER:AntIcons.AlignCenterOutlined,STOCK_GO_BACK:AntIcons.ArrowLeftOutlined,STOCK_UNDERLINE:AntIcons.UnderlineOutlined,STOCK_BOLD:AntIcons.BoldOutlined,STOCK_APPLY:AntIcons.CheckOutlined,STOCK_ZOOM_OUT:AntIcons.ZoomOutOutlined,STOCK_STRIKETHROUGH:AntIcons.StrikethroughOutlined,STOCK_MEDIA_REWIND:AntIcons.BackwardOutlined,STOCK_PRINT:AntIcons.PrinterOutlined,STOCK_NO:AntIcons.CloseOutlined,STOCK_GOTO_FIRST:AntIcons.FastBackwardOutlined,STOCK_CLOSE:AntIcons.CloseOutlined,STOCK_REMOVE:AntIcons.MinusOutlined,STOCK_CUT:AntIcons.ScissorOutlined,STOCK_DIALOG_AUTHENTICATION:AntIcons.SafetyOutlined,STOCK_ZOOM_FIT:AntIcons.ExpandOutlined,STOCK_JUMP_TO:AntIcons.SelectOutlined,STOCK_HARDDISK:AntIcons.HddOutlined,STOCK_SAVE_AS:AntIcons.SaveOutlined,STOCK_UNDO:AntIcons.UndoOutlined,STOCK_JUSTIFY_RIGHT:AntIcons.AlignRightOutlined,STOCK_DIALOG_ERROR:AntIcons.CloseCircleOutlined,STOCK_INDEX:AntIcons.ProfileOutlined,STOCK_GOTO_BOTTOM:AntIcons.VerticalAlignBottomOutlined,STOCK_MEDIA_NEXT:AntIcons.StepForwardOutlined,STOCK_REDO:AntIcons.RedoOutlined,STOCK_COPY:AntIcons.CopyOutlined,STOCK_MEDIA_PAUSE:AntIcons.PauseOutlined,STOCK_GO_FORWARD:AntIcons.ArrowRightOutlined,STOCK_UNDELETE:AntIcons.UndoOutlined,STOCK_EXECUTE:AntIcons.SettingOutlined,STOCK_SAVE:AntIcons.SaveOutlined,STOCK_DIALOG_QUESTION:AntIcons.QuestionCircleOutlined,STOCK_SORT_ASCENDING:AntIcons.SortAscendingOutlined,STOCK_REFRESH:AntIcons.ReloadOutlined,STOCK_MEDIA_FORWARD:AntIcons.ForwardOutlined,STOCK_STOP:AntIcons.BorderOutlined,STOCK_PRINT_PREVIEW:AntIcons.PrinterOutlined,STOCK_HOME:AntIcons.HomeOutlined,STOCK_PASTE:AntIcons.CarryOutOutlined,STOCK_ZOOM_100:AntIcons.ZoomInOutlined,STOCK_FIND_AND_REPLACE:AntIcons.FileSearchOutlined,STOCK_DIALOG_WARNING:AntIcons.WarningOutlined,STOCK_ZOOM_IN:AntIcons.ZoomInOutlined,STOCK_CONVERT:AntIcons.ExportOutlined,STOCK_ITALIC:AntIcons.ItalicOutlined,STOCK_YES:AntIcons.CheckOutlined,STOCK_MEDIA_PLAY:AntIcons.PlayCircleOutlined,STOCK_MEDIA_RECORD:AntIcons.VideoCameraOutlined,STOCK_MEDIA_PREVIOUS:AntIcons.StepBackwardOutlined,STOCK_NEW:AntIcons.FileAddOutlined,STOCK_CANCEL:AntIcons.CloseOutlined,STOCK_DISCONNECT:AntIcons.ApiOutlined,STOCK_JUSTIFY_LEFT:AntIcons.AlignLeftOutlined,STOCK_FILE:AntIcons.FileOutlined,STOCK_QUIT:AntIcons.LogoutOutlined,STOCK_EDIT:AntIcons.EditOutlined,STOCK_CONNECT:AntIcons.ApiOutlined,STOCK_GO_DOWN:AntIcons.CaretDownOutlined,STOCK_NETWORK:AntIcons.ApartmentOutlined,STOCK_OK:AntIcons.CheckOutlined,STOCK_GOTO_TOP:AntIcons.VerticalAlignTopOutlined,STOCK_ABOUT:AntIcons.StarOutlined,STOCK_COLOR_PICKER:AntIcons.AimOutlined,STOCK_SELECT_FONT:AntIcons.FontSizeOutlined,STOCK_DELETE:AntIcons.DeleteOutlined,STOCK_DND:AntIcons.FileTextOutlined,STOCK_CLEAR:AntIcons.CloseSquareOutlined,STOCK_UNINDENT:AntIcons.AlignLeftOutlined,STOCK_PREFERENCES:AntIcons.SettingOutlined},iconMapper=e=>{if(e.indexOf("gtk-")!==-1){const a=`STOCK_${e.replace("gtk-","").replace("-","_").toUpperCase()}`;return iconMapping[a]}if(iconMapping.hasOwnProperty(e))return iconMapping[e];const n=`${e.split("-").map(r=>r.replace(/\w\S*/g,a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase())).join("")}`,t=`${n}Outlined`;if(AntIcons.hasOwnProperty(t))return AntIcons[t];const o=`Icon${n}`;if(TablerIcons.hasOwnProperty(o))return()=>React__default.default.createElement(Icon__default.default,{component:TablerIcons[o]})},Button=e=>{const{ooui:n}=e,{id:t,label:o,activated:r,buttonType:a,confirmMessage:s,icon:l,context:c,readOnly:u}=n,d=React.useContext(FormContext$1),{executeButtonAction:f}=d||{},[m,p]=React.useState(!1),{lang:g}=React.useContext(LocaleContext);async function v(){p(!0),await f({type:a,action:t,context:c}),p(!1)}function C(){if(s){showDialog$9({confirmMessage:s,lang:g,onOk:()=>{v()}});return}v()}function I(){if(m)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(l){const h=iconMapper(l);return h&&jsxRuntime.jsx(h,{})}}return jsxRuntime.jsx(Field$1,{ooui:n,children:jsxRuntime.jsx(antd.Button,{block:!0,disabled:!r||u,onClick:C,icon:I(),type:n.primary?"primary":"default",danger:n.danger,style:{whiteSpace:"normal",height:"auto"},children:o})})},ButtonGroup=e=>{const{ooui:n}=e,{defaultButton:t,secondaryButtons:o}=n,{id:r,caption:a,activated:s,buttonType:l,confirmMessage:c,icon:u,primary:d,danger:f,context:m,readOnly:p}=t||{},g=React.useContext(FormContext$1),{executeButtonAction:v}=g||{},[C,I]=React.useState(!1),{lang:h}=React.useContext(LocaleContext);function y(){if(C)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(u){const O=iconMapper(u);return O&&jsxRuntime.jsx(O,{})}}async function x(){l&&r&&(I(!0),await v({type:l,action:r,context:m}),I(!1))}function w(){if(c){showDialog$9({confirmMessage:c,lang:h,onOk:()=>{x()}});return}x()}return jsxRuntime.jsx(Field$1,{ooui:new ooui.Field({ooui:n}),children:jsxRuntime.jsxs(antd.Dropdown.Button,{disabled:!s||p,onClick:w,icon:jsxRuntime.jsx(Icon.DownOutlined,{}),type:d?"primary":void 0,overlay:jsxRuntime.jsx(Items,{ooui:o}),children:[y(),a]})})},Items=e=>{const{ooui:n}=e,t=n.map(o=>{const{id:r,caption:a,activated:s,buttonType:l,confirmMessage:c,icon:u,context:d,readOnly:f,danger:m}=o,p=React.useContext(FormContext$1),{executeButtonAction:g}=p||{},[v,C]=React.useState(!1),{lang:I}=React.useContext(LocaleContext);async function h(){C(!0),await g({type:l,action:r,context:d}),C(!1)}function y(){if(c){showDialog$9({confirmMessage:c,lang:I,onOk:()=>{h()}});return}h()}function x(){if(v)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(u){const w=iconMapper(u);return w&&jsxRuntime.jsx(w,{})}}return jsxRuntime.jsx(antd.Menu.Item,{disabled:!s||f,onClick:y,icon:x(),danger:m,children:a})});return jsxRuntime.jsx(antd.Menu,{children:t})},Config={requiredClass:"bg-blue-100",requiredColor:"#DBEAFE"},MODAL_WIDTH_CONSTANT=.7;function getWindowDimensions(){const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}}function useWindowDimensions(){const[e,n]=React.useState(getWindowDimensions());return React.useEffect(()=>{function t(){n(getWindowDimensions())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{modalWidth:e.width*MODAL_WIDTH_CONSTANT,modalHeight:e.height,width:e.width,height:e.height}}class ConnectionProvider{static init(n){ConnectionProvider.handler=n}static getHandler(){if(!ConnectionProvider.handler)throw"Must call init() first with a valid ConnectionProvider instance";return ConnectionProvider.handler}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var n=e.default;if(typeof n=="function"){var t=function(){return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),t}var TextArea$3={},interopRequireWildcard={exports:{}},_typeof$2={exports:{}};(function(e){function n(t){return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_typeof$2),function(e){var n=_typeof$2.exports.default;function t(r){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(t=function(c){return c?s:a})(r)}function o(r,a){if(!a&&r&&r.__esModule)return r;if(r===null||n(r)!=="object"&&typeof r!="function")return{default:r};var s=t(a);if(s&&s.has(r))return s.get(r);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if(u!=="default"&&Object.prototype.hasOwnProperty.call(r,u)){var d=c?Object.getOwnPropertyDescriptor(r,u):null;d&&(d.get||d.set)?Object.defineProperty(l,u,d):l[u]=r[u]}return l.default=r,s&&s.set(r,l),l}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(interopRequireWildcard);var interopRequireDefault={exports:{}};(function(e){function n(t){return t&&t.__esModule?t:{default:t}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(e){function n(t,o){(o==null||o>t.length)&&(o=t.length);for(var r=0,a=new Array(o);r<o;r++)a[r]=t[r];return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(e){var n=requireArrayLikeToArray();function t(o){if(Array.isArray(o))return n(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(e){function n(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(e){var n=requireArrayLikeToArray();function t(o,r){if(!!o){if(typeof o=="string")return n(o,r);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(o,r)}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(e){function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react"),require("antd"),require("@gisce/ooui"),require("@ant-design/icons"),require("react/jsx-runtime"),require("@tabler/icons"),require("react-dom"),require("styled-components"),require("react-measure"),require("@ant-design/plots"),require("use-deep-compare-effect"),require("buffer"),require("@gisce/react-formiga-table"),require("fiber-diagram"),require("react-hotkeys-hook"),require("@monaco-editor/react"),require("react-grid-layout")):typeof define=="function"&&define.amd?define(["exports","react","antd","@gisce/ooui","@ant-design/icons","react/jsx-runtime","@tabler/icons","react-dom","styled-components","react-measure","@ant-design/plots","use-deep-compare-effect","buffer","@gisce/react-formiga-table","fiber-diagram","react-hotkeys-hook","@monaco-editor/react","react-grid-layout"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["react-ooui"]={},e.React,e.antd,e.ooui,e.Icon,e.jsxRuntime,e.icons,e.ReactDOM,e.styled,e.Measure,e.plots,e.useDeepCompareEffect,e.require$$0,e.reactFormigaTable,e.fiberDiagram,e.reactHotkeysHook,e.Editor,e.reactGridLayout))})(this,function(exports,React,antd,ooui,Icon,jsxRuntime,icons,ReactDOM,styled,Measure,plots,useDeepCompareEffect,require$$0,reactFormigaTable,fiberDiagram,reactHotkeysHook,Editor,reactGridLayout){"use strict";const _interopDefaultLegacy=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function _interopNamespace(e){if(e&&e.__esModule)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const React__default=_interopDefaultLegacy(React),React__namespace=_interopNamespace(React),Icon__default=_interopDefaultLegacy(Icon),ReactDOM__default=_interopDefaultLegacy(ReactDOM),styled__default=_interopDefaultLegacy(styled),Measure__default=_interopDefaultLegacy(Measure),useDeepCompareEffect__default=_interopDefaultLegacy(useDeepCompareEffect),require$$0__default=_interopDefaultLegacy(require$$0),Editor__default=_interopDefaultLegacy(Editor),{Text:Text$3,Title:Title$4}=antd.Typography,alignClass={left:"justify-start",center:"justify-center",right:"justify-end"},Label=e=>{const{ooui:n,align:t,responsiveBehaviour:o}=e,{label:r,tooltip:a,fieldForLabel:s,labelSize:l,labelType:c}=n,d=s!==null&&r.length>1?r+" :":r,m=t||(s?o?"left":"right":"left"),p=l==="text"?Text$3:Title$4;return jsxRuntime.jsxs("div",{className:`flex flex-row items-center pb-1 pt-1 ${alignClass[m]}`,children:[a&&jsxRuntime.jsx(antd.Tooltip,{title:a,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"text-xs text-blue-400 pr-1"})}),jsxRuntime.jsx("span",{className:"pr-2",children:jsxRuntime.jsx(p,{level:l!=="text"?l:null,type:c,children:d})})]})},ca_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avan\xE7ada",search:"Buscar",parameters:"Par\xE0metres",limit:"Limit",first:"Primer",no_results:"No hi ha resultats",summary:"Mostrant resultats des de {from} fins {to} d'un total de {total} registres",welcome:"Benvingut",attachments:"Adjunts",addNewAttachment:"Afegir nou adjunt",listAllAttachments:"Veure tots els adjunts",viewAs:"Veure com",confirmRemoveItem:"Est\xE0s segur de volguer eliminar aquest item?",save:"Desar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Seg\xFCent",actions:"Accions",reports:"Informes",related:"Relacionat",new:"Nou",fillRequiredField:"Siusplau, omple aquest camp obligatori",fillRequiredFields:"Siusplau, omple tots els camps obligatoris",generatingReport:"Generant informe...",confirmation:"Confirmaci\xF3",ok:"D'acord",cancel:"Cancel\xB7lar",formHasErrors:"El formulari t\xE9 errors",unsavedChanges:"Hi ha canvis sense guardar",confirmRefreshWithoutSave:"Est\xE0s segur de volguer refrescar la p\xE0gina sense guardar els canvis?",discardAndRefresh:"Descarta els canvis i refresca",removeItems:"Elimina el registre/s",confirmRemove:"Est\xE0s segur de volguer eliminar els registre/s seleccionats?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlla\xE7a registre/s",confirmUnlink:"Est\xE0s segur de volguer desenlla\xE7ar els registre/s seleccionats?",yesConfirmUnlink:"S\xED, desenlla\xE7a",confirmCloseWithoutSave:"Est\xE0s segur de volguer tancar aquesta finestra sense guardar?",closeWithoutSaving:"Tancar sense guardar",action:"Acci\xF3",report:"Informe",selectAction:"Selecciona una acci\xF3",download:"Descarrega",clear:"Neteja",open:"Obre",uploadNewImage:"Puja una nova imatge",noCurrentEntries:"No hi ha registres",duplicate:"Duplicar",downloadingAttachment:"Descarregant adjunt...",tree:"llista",form:"formulari",favorites:"Els meus favorits",edit_favorites:"Edita els favorits",no_favorites:"No tens favorits guardats",register:"Registre",of:"de",editingDocument:"Editant document",showLogs:"Veure logs",createdBy:"Creat per l'usuari",creationDate:"Data creaci\xF3",lastUpdatedBy:"\xDAltima modificaci\xF3 per",lastUpdatedDate:"Data \xFAltima modificaci\xF3",goToResourceId:"V\xE9s al recurs amb ID",searchId:"ID de cerca:",idNotFound:"No es troba aquesta id de recurs per l'objecte",selectedRegisters:"registres seleccionats",translate:"Tradu\xEFr",enterTextBeforeTranslate:"Introdueix algun text al camp abans d'afegir traduccions",saveBeforeTranslate:"Heu de desar el registre abans d'afegir les traduccions",configDashboard:"Configurar panell",moveDashboard:"Moure items del panell",openAttachment:"Veure detall de l'adjunt",openAttachmentLink:"Obrir enlla\xE7 de l'adjunt",uninformed:"Sense informar"},en_US$5={true:"Yes",false:"No",simple_search:"Simple search",advanced_search:"Advanced search",search:"Search",parameters:"Parameters",limit:"Limit",first:"First",no_results:"No results",summary:"Showing registers from {from} to {to} of {total} registers",welcome:"Welcome",attachments:"Attachments",addNewAttachment:"Add new attachment",listAllAttachments:"View all the attachments",viewAs:"View as",confirmRemoveItem:"Are you sure to remove this item?",save:"Save",delete:"Delete",refresh:"Refresh",previous:"Previous",next:"Next",actions:"Actions",reports:"Reports",related:"Related",new:"New",fillRequiredField:"Please fill this required field",fillRequiredFields:"Please fill all the required fields",generatingReport:"Generating report...",confirmation:"Confirmation",ok:"OK",cancel:"Cancel",formHasErrors:"Form has errors",unsavedChanges:"There are unsaved changes",confirmRefreshWithoutSave:"Do you really want to refresh this window without saving?",discardAndRefresh:"Discard changes and refresh",removeItems:"Remove item/s",confirmRemove:"Are you sure you want to remove the selected item/s?",yesConfirmRemove:"Yes, remove",unlinkItems:"Unlink item/s",confirmUnlink:"Are you sure you want to unlink the selected item/s?",yesConfirmUnlink:"Yes, unlink",confirmCloseWithoutSave:"Do you really want to close this window without saving?",closeWithoutSaving:"Close without saving",action:"Action",report:"Report",selectAction:"Select an action",download:"Download",clear:"Clear",open:"Open",uploadNewImage:"Upload new image",noCurrentEntries:"No current entries",duplicate:"Duplicate",downloadingAttachment:"Downloading attachment...",tree:"list",form:"form",favorites:"My shortcuts",edit_favorites:"Edit shortcuts",no_favorites:"You don't have any shortcuts saved yet",register:"Register",of:"of",editingDocument:"Editing document",showLogs:"Show logs",createdBy:"Created by user",creationDate:"Creation date",lastUpdatedBy:"Last modified by",lastUpdatedDate:"Date of last modification",goToResourceId:"Go to resource ID",searchId:"Search ID:",idNotFound:"Resource ID does not exist for this object!",selectedRegisters:"selected registers",translate:"Translate",enterTextBeforeTranslate:"Enter some text to the related field before adding translations",saveBeforeTranslate:"You must save the record before adding translations",configDashboard:"Setup dashboard",moveDashboard:"Move dashboard items",openAttachment:"Open attachment detail",openAttachmentLink:"Open attachment link",uninformed:"Uninformed"},es_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avanzada",search:"Buscar",parameters:"Parametros",limit:"L\xEDmite",first:"Primero",no_results:"No hay resultados",summary:"Mostrando resultado desde {from} hasta {to} de un total de {total} registros",welcome:"Bienvenido",attachments:"Adjuntos",addNewAttachment:"A\xF1adir nuevo adjunto",listAllAttachments:"Ver todos los adjuntos",viewAs:"Ver c\xF3mo",confirmRemoveItem:"Est\xE1s seguro de querer eliminar \xE9ste registro?",save:"Guardar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Siguiente",actions:"Acciones",reports:"Informes",related:"Relacionado",new:"Nuevo",fillRequiredField:"Por favor, rellena \xE9ste campo obligatorio",fillRequiredFields:"Por favor, rellena todos los campos obligatorios",generatingReport:"Generando informe...",confirmation:"Confirmaci\xF3m",ok:"De acuerdo",cancel:"Cancelar",formHasErrors:"El formulario tiene errores",unsavedChanges:"Hay cambios sin guardar",confirmRefreshWithoutSave:"Est\xE1s seguro de querer refrescar la p\xE1gina sin guardar los cambios?",discardAndRefresh:"Descarta los cambios y refresca",removeItems:"Eliminar el registro/s",confirmRemove:"Est\xE1s seguro de querer eliminar los registro/s seleccionados?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlaza registro/s",confirmUnlink:"Est\xE1s seguro de querer desenlazar los registro/s seleccionados?",yesConfirmUnlink:"S\xED, desenlaza",confirmCloseWithoutSave:"Est\xE1s seguro de querer cerrar \xE9sta ventana sin cerrar?",closeWithoutSaving:"Cerrar sin guardar",action:"Acci\xF3n",report:"Informe",selectAction:"Selecciona una acci\xF3n",download:"Descarga",clear:"Limpiar",open:"Abrir",uploadNewImage:"Subir una nueva im\xE1gen",noCurrentEntries:"No hay registros",duplicate:"Duplicar",downloadingAttachment:"Descargando adjunto...",tree:"lista",form:"formulario",favorites:"Mis favoritos",edit_favorites:"Edita los favoritos",no_favorites:"No tienes favoritos guardados",register:"Registro",of:"de",editingDocument:"Editando documento",showLogs:"Ver logs",createdBy:"Creado por el usuario",creationDate:"Fecha creaci\xF3n",lastUpdatedBy:"\xDAltima modificaci\xF3n por",lastUpdatedDate:"Fecha \xFAltima modificaci\xF3n",goToResourceId:"Ir al recurso con ID",searchId:"ID de b\xFAsqueda:",idNotFound:"No se encuentra \xE9sta ID de recursos para el objeto",selectedRegisters:"registros seleccionados",translate:"Traducir",enterTextBeforeTranslate:"Introduce algun texto en el campo antes de a\xF1adir traducciones",saveBeforeTranslate:"Tienes que guardar el registro antes de a\xF1adir las traducciones",configDashboard:"Configurar panel",moveDashboard:"Mover items del panel",openAttachment:"Ver detalle del adjunto",openAttachmentLink:"Abrir enlace del adjunto",uninformed:"Sin informar"},localeStrings={ca_ES,en_US:en_US$5,es_ES},LocaleContext=React__default.default.createContext(null),LocaleContextProvider=e=>{const{children:n,lang:t}=e;function o(r){return tForLang(r,t)}return jsxRuntime.jsx(LocaleContext.Provider,{value:{lang:t,t:o},children:n})},tForLang=(e,n)=>{var o;return((o=localeStrings[n])==null?void 0:o[e])||e};function Field$1({ooui:e,children:n,layout:t="horizontal",valuePropName:o,showLabel:r=!1,alignLabel:a="left",required:s=!1,type:l,validator:c}){const{id:u,label:d,tooltip:f}=e,{t:m}=React.useContext(LocaleContext),p=s?[{required:!0,message:m("fillRequiredField"),type:l,validator:c}]:void 0,h=()=>jsxRuntime.jsx(antd.Form.Item,{className:"mb-0",name:u,valuePropName:o,rules:p,children:n});if(!r)return h();const v=jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:u+"_label",string:d,help:f,fieldForLabel:u}),align:a});return t==="horizontal"?(()=>jsxRuntime.jsxs(antd.Row,{align:"middle",className:"pb-1 pt-1",children:[jsxRuntime.jsx(antd.Col,{className:"ml-2",flex:"7rem",children:jsxRuntime.jsx("div",{className:"flex flex-col items-end",children:v})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:h()})]}))():(()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[v,h()]}))()}const{confirm:confirm$4}=antd.Modal,showDialog$9=({onOk:e,confirmMessage:n,lang:t})=>{confirm$4({title:tForLang("confirmation",t),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:n,okText:tForLang("ok",t),cancelText:tForLang("cancel",t),onOk:e})},FormContext$1=React__default.default.createContext(null),FormProvider$1=e=>{const{children:n,activeId:t,activeModel:o,setFieldValue:r,getFieldValue:a,executeButtonAction:s,getContext:l,getValues:c,getPlainValues:u,setOriginalValue:d,domain:f,submitForm:m,fetchValues:p,formHasChanges:h,elementHasLostFocus:v,getFields:C}=e;return jsxRuntime.jsx(FormContext$1.Provider,{value:{domain:f,getValues:c,getPlainValues:u,getFields:C,activeId:t,activeModel:o,setFieldValue:r,getFieldValue:a,executeButtonAction:s,getContext:l,setOriginalValue:d,submitForm:m,fetchValues:p,formHasChanges:h,elementHasLostFocus:v},children:n})},AntIcons={AccountBookFilled:Icon.AccountBookFilled,AccountBookOutlined:Icon.AccountBookOutlined,AccountBookTwoTone:Icon.AccountBookTwoTone,AimOutlined:Icon.AimOutlined,AlertFilled:Icon.AlertFilled,AlertOutlined:Icon.AlertOutlined,AlertTwoTone:Icon.AlertTwoTone,AlibabaOutlined:Icon.AlibabaOutlined,AlignCenterOutlined:Icon.AlignCenterOutlined,AlignLeftOutlined:Icon.AlignLeftOutlined,AlignRightOutlined:Icon.AlignRightOutlined,AlipayCircleFilled:Icon.AlipayCircleFilled,AlipayCircleOutlined:Icon.AlipayCircleOutlined,AlipayOutlined:Icon.AlipayOutlined,AlipaySquareFilled:Icon.AlipaySquareFilled,AliwangwangFilled:Icon.AliwangwangFilled,AliwangwangOutlined:Icon.AliwangwangOutlined,AliyunOutlined:Icon.AliyunOutlined,AmazonCircleFilled:Icon.AmazonCircleFilled,AmazonOutlined:Icon.AmazonOutlined,AmazonSquareFilled:Icon.AmazonSquareFilled,AndroidFilled:Icon.AndroidFilled,AndroidOutlined:Icon.AndroidOutlined,AntCloudOutlined:Icon.AntCloudOutlined,AntDesignOutlined:Icon.AntDesignOutlined,ApartmentOutlined:Icon.ApartmentOutlined,ApiFilled:Icon.ApiFilled,ApiOutlined:Icon.ApiOutlined,ApiTwoTone:Icon.ApiTwoTone,AppleFilled:Icon.AppleFilled,AppleOutlined:Icon.AppleOutlined,AppstoreAddOutlined:Icon.AppstoreAddOutlined,AppstoreFilled:Icon.AppstoreFilled,AppstoreOutlined:Icon.AppstoreOutlined,AppstoreTwoTone:Icon.AppstoreTwoTone,AreaChartOutlined:Icon.AreaChartOutlined,ArrowDownOutlined:Icon.ArrowDownOutlined,ArrowLeftOutlined:Icon.ArrowLeftOutlined,ArrowRightOutlined:Icon.ArrowRightOutlined,ArrowUpOutlined:Icon.ArrowUpOutlined,ArrowsAltOutlined:Icon.ArrowsAltOutlined,AudioFilled:Icon.AudioFilled,AudioMutedOutlined:Icon.AudioMutedOutlined,AudioOutlined:Icon.AudioOutlined,AudioTwoTone:Icon.AudioTwoTone,AuditOutlined:Icon.AuditOutlined,BackwardFilled:Icon.BackwardFilled,BackwardOutlined:Icon.BackwardOutlined,BankFilled:Icon.BankFilled,BankOutlined:Icon.BankOutlined,BankTwoTone:Icon.BankTwoTone,BarChartOutlined:Icon.BarChartOutlined,BarcodeOutlined:Icon.BarcodeOutlined,BarsOutlined:Icon.BarsOutlined,BehanceCircleFilled:Icon.BehanceCircleFilled,BehanceOutlined:Icon.BehanceOutlined,BehanceSquareFilled:Icon.BehanceSquareFilled,BehanceSquareOutlined:Icon.BehanceSquareOutlined,BellFilled:Icon.BellFilled,BellOutlined:Icon.BellOutlined,BellTwoTone:Icon.BellTwoTone,BgColorsOutlined:Icon.BgColorsOutlined,BlockOutlined:Icon.BlockOutlined,BoldOutlined:Icon.BoldOutlined,BookFilled:Icon.BookFilled,BookOutlined:Icon.BookOutlined,BookTwoTone:Icon.BookTwoTone,BorderBottomOutlined:Icon.BorderBottomOutlined,BorderHorizontalOutlined:Icon.BorderHorizontalOutlined,BorderInnerOutlined:Icon.BorderInnerOutlined,BorderLeftOutlined:Icon.BorderLeftOutlined,BorderOuterOutlined:Icon.BorderOuterOutlined,BorderOutlined:Icon.BorderOutlined,BorderRightOutlined:Icon.BorderRightOutlined,BorderTopOutlined:Icon.BorderTopOutlined,BorderVerticleOutlined:Icon.BorderVerticleOutlined,BorderlessTableOutlined:Icon.BorderlessTableOutlined,BoxPlotFilled:Icon.BoxPlotFilled,BoxPlotOutlined:Icon.BoxPlotOutlined,BoxPlotTwoTone:Icon.BoxPlotTwoTone,BranchesOutlined:Icon.BranchesOutlined,BugFilled:Icon.BugFilled,BugOutlined:Icon.BugOutlined,BugTwoTone:Icon.BugTwoTone,BuildFilled:Icon.BuildFilled,BuildOutlined:Icon.BuildOutlined,BuildTwoTone:Icon.BuildTwoTone,BulbFilled:Icon.BulbFilled,BulbOutlined:Icon.BulbOutlined,BulbTwoTone:Icon.BulbTwoTone,CalculatorFilled:Icon.CalculatorFilled,CalculatorOutlined:Icon.CalculatorOutlined,CalculatorTwoTone:Icon.CalculatorTwoTone,CalendarFilled:Icon.CalendarFilled,CalendarOutlined:Icon.CalendarOutlined,CalendarTwoTone:Icon.CalendarTwoTone,CameraFilled:Icon.CameraFilled,CameraOutlined:Icon.CameraOutlined,CameraTwoTone:Icon.CameraTwoTone,CarFilled:Icon.CarFilled,CarOutlined:Icon.CarOutlined,CarTwoTone:Icon.CarTwoTone,CaretDownFilled:Icon.CaretDownFilled,CaretDownOutlined:Icon.CaretDownOutlined,CaretLeftFilled:Icon.CaretLeftFilled,CaretLeftOutlined:Icon.CaretLeftOutlined,CaretRightFilled:Icon.CaretRightFilled,CaretRightOutlined:Icon.CaretRightOutlined,CaretUpFilled:Icon.CaretUpFilled,CaretUpOutlined:Icon.CaretUpOutlined,CarryOutFilled:Icon.CarryOutFilled,CarryOutOutlined:Icon.CarryOutOutlined,CarryOutTwoTone:Icon.CarryOutTwoTone,CheckCircleFilled:Icon.CheckCircleFilled,CheckCircleOutlined:Icon.CheckCircleOutlined,CheckCircleTwoTone:Icon.CheckCircleTwoTone,CheckOutlined:Icon.CheckOutlined,CheckSquareFilled:Icon.CheckSquareFilled,CheckSquareOutlined:Icon.CheckSquareOutlined,CheckSquareTwoTone:Icon.CheckSquareTwoTone,ChromeFilled:Icon.ChromeFilled,ChromeOutlined:Icon.ChromeOutlined,CiCircleFilled:Icon.CiCircleFilled,CiCircleOutlined:Icon.CiCircleOutlined,CiCircleTwoTone:Icon.CiCircleTwoTone,CiOutlined:Icon.CiOutlined,CiTwoTone:Icon.CiTwoTone,ClearOutlined:Icon.ClearOutlined,ClockCircleFilled:Icon.ClockCircleFilled,ClockCircleOutlined:Icon.ClockCircleOutlined,ClockCircleTwoTone:Icon.ClockCircleTwoTone,CloseCircleFilled:Icon.CloseCircleFilled,CloseCircleOutlined:Icon.CloseCircleOutlined,CloseCircleTwoTone:Icon.CloseCircleTwoTone,CloseOutlined:Icon.CloseOutlined,CloseSquareFilled:Icon.CloseSquareFilled,CloseSquareOutlined:Icon.CloseSquareOutlined,CloseSquareTwoTone:Icon.CloseSquareTwoTone,CloudDownloadOutlined:Icon.CloudDownloadOutlined,CloudFilled:Icon.CloudFilled,CloudOutlined:Icon.CloudOutlined,CloudServerOutlined:Icon.CloudServerOutlined,CloudSyncOutlined:Icon.CloudSyncOutlined,CloudTwoTone:Icon.CloudTwoTone,CloudUploadOutlined:Icon.CloudUploadOutlined,ClusterOutlined:Icon.ClusterOutlined,CodeFilled:Icon.CodeFilled,CodeOutlined:Icon.CodeOutlined,CodeSandboxCircleFilled:Icon.CodeSandboxCircleFilled,CodeSandboxOutlined:Icon.CodeSandboxOutlined,CodeSandboxSquareFilled:Icon.CodeSandboxSquareFilled,CodeTwoTone:Icon.CodeTwoTone,CodepenCircleFilled:Icon.CodepenCircleFilled,CodepenCircleOutlined:Icon.CodepenCircleOutlined,CodepenOutlined:Icon.CodepenOutlined,CodepenSquareFilled:Icon.CodepenSquareFilled,CoffeeOutlined:Icon.CoffeeOutlined,ColumnHeightOutlined:Icon.ColumnHeightOutlined,ColumnWidthOutlined:Icon.ColumnWidthOutlined,CommentOutlined:Icon.CommentOutlined,CompassFilled:Icon.CompassFilled,CompassOutlined:Icon.CompassOutlined,CompassTwoTone:Icon.CompassTwoTone,CompressOutlined:Icon.CompressOutlined,ConsoleSqlOutlined:Icon.ConsoleSqlOutlined,ContactsFilled:Icon.ContactsFilled,ContactsOutlined:Icon.ContactsOutlined,ContactsTwoTone:Icon.ContactsTwoTone,ContainerFilled:Icon.ContainerFilled,ContainerOutlined:Icon.ContainerOutlined,ContainerTwoTone:Icon.ContainerTwoTone,ControlFilled:Icon.ControlFilled,ControlOutlined:Icon.ControlOutlined,ControlTwoTone:Icon.ControlTwoTone,CopyFilled:Icon.CopyFilled,CopyOutlined:Icon.CopyOutlined,CopyTwoTone:Icon.CopyTwoTone,CopyrightCircleFilled:Icon.CopyrightCircleFilled,CopyrightCircleOutlined:Icon.CopyrightCircleOutlined,CopyrightCircleTwoTone:Icon.CopyrightCircleTwoTone,CopyrightOutlined:Icon.CopyrightOutlined,CopyrightTwoTone:Icon.CopyrightTwoTone,CreditCardFilled:Icon.CreditCardFilled,CreditCardOutlined:Icon.CreditCardOutlined,CreditCardTwoTone:Icon.CreditCardTwoTone,CrownFilled:Icon.CrownFilled,CrownOutlined:Icon.CrownOutlined,CrownTwoTone:Icon.CrownTwoTone,CustomerServiceFilled:Icon.CustomerServiceFilled,CustomerServiceOutlined:Icon.CustomerServiceOutlined,CustomerServiceTwoTone:Icon.CustomerServiceTwoTone,DashOutlined:Icon.DashOutlined,DashboardFilled:Icon.DashboardFilled,DashboardOutlined:Icon.DashboardOutlined,DashboardTwoTone:Icon.DashboardTwoTone,DatabaseFilled:Icon.DatabaseFilled,DatabaseOutlined:Icon.DatabaseOutlined,DatabaseTwoTone:Icon.DatabaseTwoTone,DeleteColumnOutlined:Icon.DeleteColumnOutlined,DeleteFilled:Icon.DeleteFilled,DeleteOutlined:Icon.DeleteOutlined,DeleteRowOutlined:Icon.DeleteRowOutlined,DeleteTwoTone:Icon.DeleteTwoTone,DeliveredProcedureOutlined:Icon.DeliveredProcedureOutlined,DeploymentUnitOutlined:Icon.DeploymentUnitOutlined,DesktopOutlined:Icon.DesktopOutlined,DiffFilled:Icon.DiffFilled,DiffOutlined:Icon.DiffOutlined,DiffTwoTone:Icon.DiffTwoTone,DingdingOutlined:Icon.DingdingOutlined,DingtalkCircleFilled:Icon.DingtalkCircleFilled,DingtalkOutlined:Icon.DingtalkOutlined,DingtalkSquareFilled:Icon.DingtalkSquareFilled,DisconnectOutlined:Icon.DisconnectOutlined,DislikeFilled:Icon.DislikeFilled,DislikeOutlined:Icon.DislikeOutlined,DislikeTwoTone:Icon.DislikeTwoTone,DollarCircleFilled:Icon.DollarCircleFilled,DollarCircleOutlined:Icon.DollarCircleOutlined,DollarCircleTwoTone:Icon.DollarCircleTwoTone,DollarOutlined:Icon.DollarOutlined,DollarTwoTone:Icon.DollarTwoTone,DotChartOutlined:Icon.DotChartOutlined,DoubleLeftOutlined:Icon.DoubleLeftOutlined,DoubleRightOutlined:Icon.DoubleRightOutlined,DownCircleFilled:Icon.DownCircleFilled,DownCircleOutlined:Icon.DownCircleOutlined,DownCircleTwoTone:Icon.DownCircleTwoTone,DownOutlined:Icon.DownOutlined,DownSquareFilled:Icon.DownSquareFilled,DownSquareOutlined:Icon.DownSquareOutlined,DownSquareTwoTone:Icon.DownSquareTwoTone,DownloadOutlined:Icon.DownloadOutlined,DragOutlined:Icon.DragOutlined,DribbbleCircleFilled:Icon.DribbbleCircleFilled,DribbbleOutlined:Icon.DribbbleOutlined,DribbbleSquareFilled:Icon.DribbbleSquareFilled,DribbbleSquareOutlined:Icon.DribbbleSquareOutlined,DropboxCircleFilled:Icon.DropboxCircleFilled,DropboxOutlined:Icon.DropboxOutlined,DropboxSquareFilled:Icon.DropboxSquareFilled,EditFilled:Icon.EditFilled,EditOutlined:Icon.EditOutlined,EditTwoTone:Icon.EditTwoTone,EllipsisOutlined:Icon.EllipsisOutlined,EnterOutlined:Icon.EnterOutlined,EnvironmentFilled:Icon.EnvironmentFilled,EnvironmentOutlined:Icon.EnvironmentOutlined,EnvironmentTwoTone:Icon.EnvironmentTwoTone,EuroCircleFilled:Icon.EuroCircleFilled,EuroCircleOutlined:Icon.EuroCircleOutlined,EuroCircleTwoTone:Icon.EuroCircleTwoTone,EuroOutlined:Icon.EuroOutlined,EuroTwoTone:Icon.EuroTwoTone,ExceptionOutlined:Icon.ExceptionOutlined,ExclamationCircleFilled:Icon.ExclamationCircleFilled,ExclamationCircleOutlined:Icon.ExclamationCircleOutlined,ExclamationCircleTwoTone:Icon.ExclamationCircleTwoTone,ExclamationOutlined:Icon.ExclamationOutlined,ExpandAltOutlined:Icon.ExpandAltOutlined,ExpandOutlined:Icon.ExpandOutlined,ExperimentFilled:Icon.ExperimentFilled,ExperimentOutlined:Icon.ExperimentOutlined,ExperimentTwoTone:Icon.ExperimentTwoTone,ExportOutlined:Icon.ExportOutlined,EyeFilled:Icon.EyeFilled,EyeInvisibleFilled:Icon.EyeInvisibleFilled,EyeInvisibleOutlined:Icon.EyeInvisibleOutlined,EyeInvisibleTwoTone:Icon.EyeInvisibleTwoTone,EyeOutlined:Icon.EyeOutlined,EyeTwoTone:Icon.EyeTwoTone,FacebookFilled:Icon.FacebookFilled,FacebookOutlined:Icon.FacebookOutlined,FallOutlined:Icon.FallOutlined,FastBackwardFilled:Icon.FastBackwardFilled,FastBackwardOutlined:Icon.FastBackwardOutlined,FastForwardFilled:Icon.FastForwardFilled,FastForwardOutlined:Icon.FastForwardOutlined,FieldBinaryOutlined:Icon.FieldBinaryOutlined,FieldNumberOutlined:Icon.FieldNumberOutlined,FieldStringOutlined:Icon.FieldStringOutlined,FieldTimeOutlined:Icon.FieldTimeOutlined,FileAddFilled:Icon.FileAddFilled,FileAddOutlined:Icon.FileAddOutlined,FileAddTwoTone:Icon.FileAddTwoTone,FileDoneOutlined:Icon.FileDoneOutlined,FileExcelFilled:Icon.FileExcelFilled,FileExcelOutlined:Icon.FileExcelOutlined,FileExcelTwoTone:Icon.FileExcelTwoTone,FileExclamationFilled:Icon.FileExclamationFilled,FileExclamationOutlined:Icon.FileExclamationOutlined,FileExclamationTwoTone:Icon.FileExclamationTwoTone,FileFilled:Icon.FileFilled,FileGifOutlined:Icon.FileGifOutlined,FileImageFilled:Icon.FileImageFilled,FileImageOutlined:Icon.FileImageOutlined,FileImageTwoTone:Icon.FileImageTwoTone,FileJpgOutlined:Icon.FileJpgOutlined,FileMarkdownFilled:Icon.FileMarkdownFilled,FileMarkdownOutlined:Icon.FileMarkdownOutlined,FileMarkdownTwoTone:Icon.FileMarkdownTwoTone,FileOutlined:Icon.FileOutlined,FilePdfFilled:Icon.FilePdfFilled,FilePdfOutlined:Icon.FilePdfOutlined,FilePdfTwoTone:Icon.FilePdfTwoTone,FilePptFilled:Icon.FilePptFilled,FilePptOutlined:Icon.FilePptOutlined,FilePptTwoTone:Icon.FilePptTwoTone,FileProtectOutlined:Icon.FileProtectOutlined,FileSearchOutlined:Icon.FileSearchOutlined,FileSyncOutlined:Icon.FileSyncOutlined,FileTextFilled:Icon.FileTextFilled,FileTextOutlined:Icon.FileTextOutlined,FileTextTwoTone:Icon.FileTextTwoTone,FileTwoTone:Icon.FileTwoTone,FileUnknownFilled:Icon.FileUnknownFilled,FileUnknownOutlined:Icon.FileUnknownOutlined,FileUnknownTwoTone:Icon.FileUnknownTwoTone,FileWordFilled:Icon.FileWordFilled,FileWordOutlined:Icon.FileWordOutlined,FileWordTwoTone:Icon.FileWordTwoTone,FileZipFilled:Icon.FileZipFilled,FileZipOutlined:Icon.FileZipOutlined,FileZipTwoTone:Icon.FileZipTwoTone,FilterFilled:Icon.FilterFilled,FilterOutlined:Icon.FilterOutlined,FilterTwoTone:Icon.FilterTwoTone,FireFilled:Icon.FireFilled,FireOutlined:Icon.FireOutlined,FireTwoTone:Icon.FireTwoTone,FlagFilled:Icon.FlagFilled,FlagOutlined:Icon.FlagOutlined,FlagTwoTone:Icon.FlagTwoTone,FolderAddFilled:Icon.FolderAddFilled,FolderAddOutlined:Icon.FolderAddOutlined,FolderAddTwoTone:Icon.FolderAddTwoTone,FolderFilled:Icon.FolderFilled,FolderOpenFilled:Icon.FolderOpenFilled,FolderOpenOutlined:Icon.FolderOpenOutlined,FolderOpenTwoTone:Icon.FolderOpenTwoTone,FolderOutlined:Icon.FolderOutlined,FolderTwoTone:Icon.FolderTwoTone,FolderViewOutlined:Icon.FolderViewOutlined,FontColorsOutlined:Icon.FontColorsOutlined,FontSizeOutlined:Icon.FontSizeOutlined,ForkOutlined:Icon.ForkOutlined,FormOutlined:Icon.FormOutlined,FormatPainterFilled:Icon.FormatPainterFilled,FormatPainterOutlined:Icon.FormatPainterOutlined,ForwardFilled:Icon.ForwardFilled,ForwardOutlined:Icon.ForwardOutlined,FrownFilled:Icon.FrownFilled,FrownOutlined:Icon.FrownOutlined,FrownTwoTone:Icon.FrownTwoTone,FullscreenExitOutlined:Icon.FullscreenExitOutlined,FullscreenOutlined:Icon.FullscreenOutlined,FunctionOutlined:Icon.FunctionOutlined,FundFilled:Icon.FundFilled,FundOutlined:Icon.FundOutlined,FundProjectionScreenOutlined:Icon.FundProjectionScreenOutlined,FundTwoTone:Icon.FundTwoTone,FundViewOutlined:Icon.FundViewOutlined,FunnelPlotFilled:Icon.FunnelPlotFilled,FunnelPlotOutlined:Icon.FunnelPlotOutlined,FunnelPlotTwoTone:Icon.FunnelPlotTwoTone,GatewayOutlined:Icon.GatewayOutlined,GifOutlined:Icon.GifOutlined,GiftFilled:Icon.GiftFilled,GiftOutlined:Icon.GiftOutlined,GiftTwoTone:Icon.GiftTwoTone,GithubFilled:Icon.GithubFilled,GithubOutlined:Icon.GithubOutlined,GitlabFilled:Icon.GitlabFilled,GitlabOutlined:Icon.GitlabOutlined,GlobalOutlined:Icon.GlobalOutlined,GoldFilled:Icon.GoldFilled,GoldOutlined:Icon.GoldOutlined,GoldTwoTone:Icon.GoldTwoTone,GoldenFilled:Icon.GoldenFilled,GoogleCircleFilled:Icon.GoogleCircleFilled,GoogleOutlined:Icon.GoogleOutlined,GooglePlusCircleFilled:Icon.GooglePlusCircleFilled,GooglePlusOutlined:Icon.GooglePlusOutlined,GooglePlusSquareFilled:Icon.GooglePlusSquareFilled,GoogleSquareFilled:Icon.GoogleSquareFilled,GroupOutlined:Icon.GroupOutlined,HddFilled:Icon.HddFilled,HddOutlined:Icon.HddOutlined,HddTwoTone:Icon.HddTwoTone,HeartFilled:Icon.HeartFilled,HeartOutlined:Icon.HeartOutlined,HeartTwoTone:Icon.HeartTwoTone,HeatMapOutlined:Icon.HeatMapOutlined,HighlightFilled:Icon.HighlightFilled,HighlightOutlined:Icon.HighlightOutlined,HighlightTwoTone:Icon.HighlightTwoTone,HistoryOutlined:Icon.HistoryOutlined,HolderOutlined:Icon.HolderOutlined,HomeFilled:Icon.HomeFilled,HomeOutlined:Icon.HomeOutlined,HomeTwoTone:Icon.HomeTwoTone,HourglassFilled:Icon.HourglassFilled,HourglassOutlined:Icon.HourglassOutlined,HourglassTwoTone:Icon.HourglassTwoTone,Html5Filled:Icon.Html5Filled,Html5Outlined:Icon.Html5Outlined,Html5TwoTone:Icon.Html5TwoTone,IdcardFilled:Icon.IdcardFilled,IdcardOutlined:Icon.IdcardOutlined,IdcardTwoTone:Icon.IdcardTwoTone,IeCircleFilled:Icon.IeCircleFilled,IeOutlined:Icon.IeOutlined,IeSquareFilled:Icon.IeSquareFilled,ImportOutlined:Icon.ImportOutlined,InboxOutlined:Icon.InboxOutlined,InfoCircleFilled:Icon.InfoCircleFilled,InfoCircleOutlined:Icon.InfoCircleOutlined,InfoCircleTwoTone:Icon.InfoCircleTwoTone,InfoOutlined:Icon.InfoOutlined,InsertRowAboveOutlined:Icon.InsertRowAboveOutlined,InsertRowBelowOutlined:Icon.InsertRowBelowOutlined,InsertRowLeftOutlined:Icon.InsertRowLeftOutlined,InsertRowRightOutlined:Icon.InsertRowRightOutlined,InstagramFilled:Icon.InstagramFilled,InstagramOutlined:Icon.InstagramOutlined,InsuranceFilled:Icon.InsuranceFilled,InsuranceOutlined:Icon.InsuranceOutlined,InsuranceTwoTone:Icon.InsuranceTwoTone,InteractionFilled:Icon.InteractionFilled,InteractionOutlined:Icon.InteractionOutlined,InteractionTwoTone:Icon.InteractionTwoTone,IssuesCloseOutlined:Icon.IssuesCloseOutlined,ItalicOutlined:Icon.ItalicOutlined,KeyOutlined:Icon.KeyOutlined,LaptopOutlined:Icon.LaptopOutlined,LayoutFilled:Icon.LayoutFilled,LayoutOutlined:Icon.LayoutOutlined,LayoutTwoTone:Icon.LayoutTwoTone,LeftCircleFilled:Icon.LeftCircleFilled,LeftCircleOutlined:Icon.LeftCircleOutlined,LeftCircleTwoTone:Icon.LeftCircleTwoTone,LeftOutlined:Icon.LeftOutlined,LeftSquareFilled:Icon.LeftSquareFilled,LeftSquareOutlined:Icon.LeftSquareOutlined,LeftSquareTwoTone:Icon.LeftSquareTwoTone,LikeFilled:Icon.LikeFilled,LikeOutlined:Icon.LikeOutlined,LikeTwoTone:Icon.LikeTwoTone,LineChartOutlined:Icon.LineChartOutlined,LineHeightOutlined:Icon.LineHeightOutlined,LineOutlined:Icon.LineOutlined,LinkOutlined:Icon.LinkOutlined,LinkedinFilled:Icon.LinkedinFilled,LinkedinOutlined:Icon.LinkedinOutlined,Loading3QuartersOutlined:Icon.Loading3QuartersOutlined,LoadingOutlined:Icon.LoadingOutlined,LockFilled:Icon.LockFilled,LockOutlined:Icon.LockOutlined,LockTwoTone:Icon.LockTwoTone,LoginOutlined:Icon.LoginOutlined,LogoutOutlined:Icon.LogoutOutlined,MacCommandFilled:Icon.MacCommandFilled,MacCommandOutlined:Icon.MacCommandOutlined,MailFilled:Icon.MailFilled,MailOutlined:Icon.MailOutlined,MailTwoTone:Icon.MailTwoTone,ManOutlined:Icon.ManOutlined,MedicineBoxFilled:Icon.MedicineBoxFilled,MedicineBoxOutlined:Icon.MedicineBoxOutlined,MedicineBoxTwoTone:Icon.MedicineBoxTwoTone,MediumCircleFilled:Icon.MediumCircleFilled,MediumOutlined:Icon.MediumOutlined,MediumSquareFilled:Icon.MediumSquareFilled,MediumWorkmarkOutlined:Icon.MediumWorkmarkOutlined,MehFilled:Icon.MehFilled,MehOutlined:Icon.MehOutlined,MehTwoTone:Icon.MehTwoTone,MenuFoldOutlined:Icon.MenuFoldOutlined,MenuOutlined:Icon.MenuOutlined,MenuUnfoldOutlined:Icon.MenuUnfoldOutlined,MergeCellsOutlined:Icon.MergeCellsOutlined,MessageFilled:Icon.MessageFilled,MessageOutlined:Icon.MessageOutlined,MessageTwoTone:Icon.MessageTwoTone,MinusCircleFilled:Icon.MinusCircleFilled,MinusCircleOutlined:Icon.MinusCircleOutlined,MinusCircleTwoTone:Icon.MinusCircleTwoTone,MinusOutlined:Icon.MinusOutlined,MinusSquareFilled:Icon.MinusSquareFilled,MinusSquareOutlined:Icon.MinusSquareOutlined,MinusSquareTwoTone:Icon.MinusSquareTwoTone,MobileFilled:Icon.MobileFilled,MobileOutlined:Icon.MobileOutlined,MobileTwoTone:Icon.MobileTwoTone,MoneyCollectFilled:Icon.MoneyCollectFilled,MoneyCollectOutlined:Icon.MoneyCollectOutlined,MoneyCollectTwoTone:Icon.MoneyCollectTwoTone,MonitorOutlined:Icon.MonitorOutlined,MoreOutlined:Icon.MoreOutlined,NodeCollapseOutlined:Icon.NodeCollapseOutlined,NodeExpandOutlined:Icon.NodeExpandOutlined,NodeIndexOutlined:Icon.NodeIndexOutlined,NotificationFilled:Icon.NotificationFilled,NotificationOutlined:Icon.NotificationOutlined,NotificationTwoTone:Icon.NotificationTwoTone,NumberOutlined:Icon.NumberOutlined,OneToOneOutlined:Icon.OneToOneOutlined,OrderedListOutlined:Icon.OrderedListOutlined,PaperClipOutlined:Icon.PaperClipOutlined,PartitionOutlined:Icon.PartitionOutlined,PauseCircleFilled:Icon.PauseCircleFilled,PauseCircleOutlined:Icon.PauseCircleOutlined,PauseCircleTwoTone:Icon.PauseCircleTwoTone,PauseOutlined:Icon.PauseOutlined,PayCircleFilled:Icon.PayCircleFilled,PayCircleOutlined:Icon.PayCircleOutlined,PercentageOutlined:Icon.PercentageOutlined,PhoneFilled:Icon.PhoneFilled,PhoneOutlined:Icon.PhoneOutlined,PhoneTwoTone:Icon.PhoneTwoTone,PicCenterOutlined:Icon.PicCenterOutlined,PicLeftOutlined:Icon.PicLeftOutlined,PicRightOutlined:Icon.PicRightOutlined,PictureFilled:Icon.PictureFilled,PictureOutlined:Icon.PictureOutlined,PictureTwoTone:Icon.PictureTwoTone,PieChartFilled:Icon.PieChartFilled,PieChartOutlined:Icon.PieChartOutlined,PieChartTwoTone:Icon.PieChartTwoTone,PlayCircleFilled:Icon.PlayCircleFilled,PlayCircleOutlined:Icon.PlayCircleOutlined,PlayCircleTwoTone:Icon.PlayCircleTwoTone,PlaySquareFilled:Icon.PlaySquareFilled,PlaySquareOutlined:Icon.PlaySquareOutlined,PlaySquareTwoTone:Icon.PlaySquareTwoTone,PlusCircleFilled:Icon.PlusCircleFilled,PlusCircleOutlined:Icon.PlusCircleOutlined,PlusCircleTwoTone:Icon.PlusCircleTwoTone,PlusOutlined:Icon.PlusOutlined,PlusSquareFilled:Icon.PlusSquareFilled,PlusSquareOutlined:Icon.PlusSquareOutlined,PlusSquareTwoTone:Icon.PlusSquareTwoTone,PoundCircleFilled:Icon.PoundCircleFilled,PoundCircleOutlined:Icon.PoundCircleOutlined,PoundCircleTwoTone:Icon.PoundCircleTwoTone,PoundOutlined:Icon.PoundOutlined,PoweroffOutlined:Icon.PoweroffOutlined,PrinterFilled:Icon.PrinterFilled,PrinterOutlined:Icon.PrinterOutlined,PrinterTwoTone:Icon.PrinterTwoTone,ProfileFilled:Icon.ProfileFilled,ProfileOutlined:Icon.ProfileOutlined,ProfileTwoTone:Icon.ProfileTwoTone,ProjectFilled:Icon.ProjectFilled,ProjectOutlined:Icon.ProjectOutlined,ProjectTwoTone:Icon.ProjectTwoTone,PropertySafetyFilled:Icon.PropertySafetyFilled,PropertySafetyOutlined:Icon.PropertySafetyOutlined,PropertySafetyTwoTone:Icon.PropertySafetyTwoTone,PullRequestOutlined:Icon.PullRequestOutlined,PushpinFilled:Icon.PushpinFilled,PushpinOutlined:Icon.PushpinOutlined,PushpinTwoTone:Icon.PushpinTwoTone,QqCircleFilled:Icon.QqCircleFilled,QqOutlined:Icon.QqOutlined,QqSquareFilled:Icon.QqSquareFilled,QrcodeOutlined:Icon.QrcodeOutlined,QuestionCircleFilled:Icon.QuestionCircleFilled,QuestionCircleOutlined:Icon.QuestionCircleOutlined,QuestionCircleTwoTone:Icon.QuestionCircleTwoTone,QuestionOutlined:Icon.QuestionOutlined,RadarChartOutlined:Icon.RadarChartOutlined,RadiusBottomleftOutlined:Icon.RadiusBottomleftOutlined,RadiusBottomrightOutlined:Icon.RadiusBottomrightOutlined,RadiusSettingOutlined:Icon.RadiusSettingOutlined,RadiusUpleftOutlined:Icon.RadiusUpleftOutlined,RadiusUprightOutlined:Icon.RadiusUprightOutlined,ReadFilled:Icon.ReadFilled,ReadOutlined:Icon.ReadOutlined,ReconciliationFilled:Icon.ReconciliationFilled,ReconciliationOutlined:Icon.ReconciliationOutlined,ReconciliationTwoTone:Icon.ReconciliationTwoTone,RedEnvelopeFilled:Icon.RedEnvelopeFilled,RedEnvelopeOutlined:Icon.RedEnvelopeOutlined,RedEnvelopeTwoTone:Icon.RedEnvelopeTwoTone,RedditCircleFilled:Icon.RedditCircleFilled,RedditOutlined:Icon.RedditOutlined,RedditSquareFilled:Icon.RedditSquareFilled,RedoOutlined:Icon.RedoOutlined,ReloadOutlined:Icon.ReloadOutlined,RestFilled:Icon.RestFilled,RestOutlined:Icon.RestOutlined,RestTwoTone:Icon.RestTwoTone,RetweetOutlined:Icon.RetweetOutlined,RightCircleFilled:Icon.RightCircleFilled,RightCircleOutlined:Icon.RightCircleOutlined,RightCircleTwoTone:Icon.RightCircleTwoTone,RightOutlined:Icon.RightOutlined,RightSquareFilled:Icon.RightSquareFilled,RightSquareOutlined:Icon.RightSquareOutlined,RightSquareTwoTone:Icon.RightSquareTwoTone,RiseOutlined:Icon.RiseOutlined,RobotFilled:Icon.RobotFilled,RobotOutlined:Icon.RobotOutlined,RocketFilled:Icon.RocketFilled,RocketOutlined:Icon.RocketOutlined,RocketTwoTone:Icon.RocketTwoTone,RollbackOutlined:Icon.RollbackOutlined,RotateLeftOutlined:Icon.RotateLeftOutlined,RotateRightOutlined:Icon.RotateRightOutlined,SafetyCertificateFilled:Icon.SafetyCertificateFilled,SafetyCertificateOutlined:Icon.SafetyCertificateOutlined,SafetyCertificateTwoTone:Icon.SafetyCertificateTwoTone,SafetyOutlined:Icon.SafetyOutlined,SaveFilled:Icon.SaveFilled,SaveOutlined:Icon.SaveOutlined,SaveTwoTone:Icon.SaveTwoTone,ScanOutlined:Icon.ScanOutlined,ScheduleFilled:Icon.ScheduleFilled,ScheduleOutlined:Icon.ScheduleOutlined,ScheduleTwoTone:Icon.ScheduleTwoTone,ScissorOutlined:Icon.ScissorOutlined,SearchOutlined:Icon.SearchOutlined,SecurityScanFilled:Icon.SecurityScanFilled,SecurityScanOutlined:Icon.SecurityScanOutlined,SecurityScanTwoTone:Icon.SecurityScanTwoTone,SelectOutlined:Icon.SelectOutlined,SendOutlined:Icon.SendOutlined,SettingFilled:Icon.SettingFilled,SettingOutlined:Icon.SettingOutlined,SettingTwoTone:Icon.SettingTwoTone,ShakeOutlined:Icon.ShakeOutlined,ShareAltOutlined:Icon.ShareAltOutlined,ShopFilled:Icon.ShopFilled,ShopOutlined:Icon.ShopOutlined,ShopTwoTone:Icon.ShopTwoTone,ShoppingCartOutlined:Icon.ShoppingCartOutlined,ShoppingFilled:Icon.ShoppingFilled,ShoppingOutlined:Icon.ShoppingOutlined,ShoppingTwoTone:Icon.ShoppingTwoTone,ShrinkOutlined:Icon.ShrinkOutlined,SignalFilled:Icon.SignalFilled,SisternodeOutlined:Icon.SisternodeOutlined,SketchCircleFilled:Icon.SketchCircleFilled,SketchOutlined:Icon.SketchOutlined,SketchSquareFilled:Icon.SketchSquareFilled,SkinFilled:Icon.SkinFilled,SkinOutlined:Icon.SkinOutlined,SkinTwoTone:Icon.SkinTwoTone,SkypeFilled:Icon.SkypeFilled,SkypeOutlined:Icon.SkypeOutlined,SlackCircleFilled:Icon.SlackCircleFilled,SlackOutlined:Icon.SlackOutlined,SlackSquareFilled:Icon.SlackSquareFilled,SlackSquareOutlined:Icon.SlackSquareOutlined,SlidersFilled:Icon.SlidersFilled,SlidersOutlined:Icon.SlidersOutlined,SlidersTwoTone:Icon.SlidersTwoTone,SmallDashOutlined:Icon.SmallDashOutlined,SmileFilled:Icon.SmileFilled,SmileOutlined:Icon.SmileOutlined,SmileTwoTone:Icon.SmileTwoTone,SnippetsFilled:Icon.SnippetsFilled,SnippetsOutlined:Icon.SnippetsOutlined,SnippetsTwoTone:Icon.SnippetsTwoTone,SolutionOutlined:Icon.SolutionOutlined,SortAscendingOutlined:Icon.SortAscendingOutlined,SortDescendingOutlined:Icon.SortDescendingOutlined,SoundFilled:Icon.SoundFilled,SoundOutlined:Icon.SoundOutlined,SoundTwoTone:Icon.SoundTwoTone,SplitCellsOutlined:Icon.SplitCellsOutlined,StarFilled:Icon.StarFilled,StarOutlined:Icon.StarOutlined,StarTwoTone:Icon.StarTwoTone,StepBackwardFilled:Icon.StepBackwardFilled,StepBackwardOutlined:Icon.StepBackwardOutlined,StepForwardFilled:Icon.StepForwardFilled,StepForwardOutlined:Icon.StepForwardOutlined,StockOutlined:Icon.StockOutlined,StopFilled:Icon.StopFilled,StopOutlined:Icon.StopOutlined,StopTwoTone:Icon.StopTwoTone,StrikethroughOutlined:Icon.StrikethroughOutlined,SubnodeOutlined:Icon.SubnodeOutlined,SwapLeftOutlined:Icon.SwapLeftOutlined,SwapOutlined:Icon.SwapOutlined,SwapRightOutlined:Icon.SwapRightOutlined,SwitcherFilled:Icon.SwitcherFilled,SwitcherOutlined:Icon.SwitcherOutlined,SwitcherTwoTone:Icon.SwitcherTwoTone,SyncOutlined:Icon.SyncOutlined,TableOutlined:Icon.TableOutlined,TabletFilled:Icon.TabletFilled,TabletOutlined:Icon.TabletOutlined,TabletTwoTone:Icon.TabletTwoTone,TagFilled:Icon.TagFilled,TagOutlined:Icon.TagOutlined,TagTwoTone:Icon.TagTwoTone,TagsFilled:Icon.TagsFilled,TagsOutlined:Icon.TagsOutlined,TagsTwoTone:Icon.TagsTwoTone,TaobaoCircleFilled:Icon.TaobaoCircleFilled,TaobaoCircleOutlined:Icon.TaobaoCircleOutlined,TaobaoOutlined:Icon.TaobaoOutlined,TaobaoSquareFilled:Icon.TaobaoSquareFilled,TeamOutlined:Icon.TeamOutlined,ThunderboltFilled:Icon.ThunderboltFilled,ThunderboltOutlined:Icon.ThunderboltOutlined,ThunderboltTwoTone:Icon.ThunderboltTwoTone,ToTopOutlined:Icon.ToTopOutlined,ToolFilled:Icon.ToolFilled,ToolOutlined:Icon.ToolOutlined,ToolTwoTone:Icon.ToolTwoTone,TrademarkCircleFilled:Icon.TrademarkCircleFilled,TrademarkCircleOutlined:Icon.TrademarkCircleOutlined,TrademarkCircleTwoTone:Icon.TrademarkCircleTwoTone,TrademarkOutlined:Icon.TrademarkOutlined,TransactionOutlined:Icon.TransactionOutlined,TranslationOutlined:Icon.TranslationOutlined,TrophyFilled:Icon.TrophyFilled,TrophyOutlined:Icon.TrophyOutlined,TrophyTwoTone:Icon.TrophyTwoTone,TwitterCircleFilled:Icon.TwitterCircleFilled,TwitterOutlined:Icon.TwitterOutlined,TwitterSquareFilled:Icon.TwitterSquareFilled,UnderlineOutlined:Icon.UnderlineOutlined,UndoOutlined:Icon.UndoOutlined,UngroupOutlined:Icon.UngroupOutlined,UnlockFilled:Icon.UnlockFilled,UnlockOutlined:Icon.UnlockOutlined,UnlockTwoTone:Icon.UnlockTwoTone,UnorderedListOutlined:Icon.UnorderedListOutlined,UpCircleFilled:Icon.UpCircleFilled,UpCircleOutlined:Icon.UpCircleOutlined,UpCircleTwoTone:Icon.UpCircleTwoTone,UpOutlined:Icon.UpOutlined,UpSquareFilled:Icon.UpSquareFilled,UpSquareOutlined:Icon.UpSquareOutlined,UpSquareTwoTone:Icon.UpSquareTwoTone,UploadOutlined:Icon.UploadOutlined,UsbFilled:Icon.UsbFilled,UsbOutlined:Icon.UsbOutlined,UsbTwoTone:Icon.UsbTwoTone,UserAddOutlined:Icon.UserAddOutlined,UserDeleteOutlined:Icon.UserDeleteOutlined,UserOutlined:Icon.UserOutlined,UserSwitchOutlined:Icon.UserSwitchOutlined,UsergroupAddOutlined:Icon.UsergroupAddOutlined,UsergroupDeleteOutlined:Icon.UsergroupDeleteOutlined,VerifiedOutlined:Icon.VerifiedOutlined,VerticalAlignBottomOutlined:Icon.VerticalAlignBottomOutlined,VerticalAlignMiddleOutlined:Icon.VerticalAlignMiddleOutlined,VerticalAlignTopOutlined:Icon.VerticalAlignTopOutlined,VerticalLeftOutlined:Icon.VerticalLeftOutlined,VerticalRightOutlined:Icon.VerticalRightOutlined,VideoCameraAddOutlined:Icon.VideoCameraAddOutlined,VideoCameraFilled:Icon.VideoCameraFilled,VideoCameraOutlined:Icon.VideoCameraOutlined,VideoCameraTwoTone:Icon.VideoCameraTwoTone,WalletFilled:Icon.WalletFilled,WalletOutlined:Icon.WalletOutlined,WalletTwoTone:Icon.WalletTwoTone,WarningFilled:Icon.WarningFilled,WarningOutlined:Icon.WarningOutlined,WarningTwoTone:Icon.WarningTwoTone,WechatFilled:Icon.WechatFilled,WechatOutlined:Icon.WechatOutlined,WeiboCircleFilled:Icon.WeiboCircleFilled,WeiboCircleOutlined:Icon.WeiboCircleOutlined,WeiboOutlined:Icon.WeiboOutlined,WeiboSquareFilled:Icon.WeiboSquareFilled,WeiboSquareOutlined:Icon.WeiboSquareOutlined,WhatsAppOutlined:Icon.WhatsAppOutlined,WifiOutlined:Icon.WifiOutlined,WindowsFilled:Icon.WindowsFilled,WindowsOutlined:Icon.WindowsOutlined,WomanOutlined:Icon.WomanOutlined,YahooFilled:Icon.YahooFilled,YahooOutlined:Icon.YahooOutlined,YoutubeFilled:Icon.YoutubeFilled,YoutubeOutlined:Icon.YoutubeOutlined,YuqueFilled:Icon.YuqueFilled,YuqueOutlined:Icon.YuqueOutlined,ZhihuCircleFilled:Icon.ZhihuCircleFilled,ZhihuOutlined:Icon.ZhihuOutlined,ZhihuSquareFilled:Icon.ZhihuSquareFilled,ZoomInOutlined:Icon.ZoomInOutlined,ZoomOutOutlined:Icon.ZoomOutOutlined},TablerIcons={Icon2fa:icons.Icon2fa,Icon3dCubeSphereOff:icons.Icon3dCubeSphereOff,Icon3dCubeSphere:icons.Icon3dCubeSphere,Icon3dRotate:icons.Icon3dRotate,IconAB2:icons.IconAB2,IconABOff:icons.IconABOff,IconAB:icons.IconAB,IconAbacusOff:icons.IconAbacusOff,IconAbacus:icons.IconAbacus,IconAccessPointOff:icons.IconAccessPointOff,IconAccessPoint:icons.IconAccessPoint,IconAccessibleOff:icons.IconAccessibleOff,IconAccessible:icons.IconAccessible,IconActivityHeartbeat:icons.IconActivityHeartbeat,IconActivity:icons.IconActivity,IconAd2:icons.IconAd2,IconAdOff:icons.IconAdOff,IconAd:icons.IconAd,IconAddressBookOff:icons.IconAddressBookOff,IconAddressBook:icons.IconAddressBook,IconAdjustmentsAlt:icons.IconAdjustmentsAlt,IconAdjustmentsHorizontal:icons.IconAdjustmentsHorizontal,IconAdjustmentsOff:icons.IconAdjustmentsOff,IconAdjustments:icons.IconAdjustments,IconAerialLift:icons.IconAerialLift,IconAffiliate:icons.IconAffiliate,IconAirConditioning:icons.IconAirConditioning,IconAlarmOff:icons.IconAlarmOff,IconAlarm:icons.IconAlarm,IconAlbumOff:icons.IconAlbumOff,IconAlbum:icons.IconAlbum,IconAlertCircle:icons.IconAlertCircle,IconAlertOctagon:icons.IconAlertOctagon,IconAlertTriangle:icons.IconAlertTriangle,IconAlien:icons.IconAlien,IconAlignCenter:icons.IconAlignCenter,IconAlignJustified:icons.IconAlignJustified,IconAlignLeft:icons.IconAlignLeft,IconAlignRight:icons.IconAlignRight,IconAlphabetCyrillic:icons.IconAlphabetCyrillic,IconAlphabetGreek:icons.IconAlphabetGreek,IconAlphabetLatin:icons.IconAlphabetLatin,IconAmbulance:icons.IconAmbulance,IconAmpersand:icons.IconAmpersand,IconAnalyzeOff:icons.IconAnalyzeOff,IconAnalyze:icons.IconAnalyze,IconAnchorOff:icons.IconAnchorOff,IconAnchor:icons.IconAnchor,IconAngle:icons.IconAngle,IconAnkh:icons.IconAnkh,IconAntennaBars1:icons.IconAntennaBars1,IconAntennaBars2:icons.IconAntennaBars2,IconAntennaBars3:icons.IconAntennaBars3,IconAntennaBars4:icons.IconAntennaBars4,IconAntennaBars5:icons.IconAntennaBars5,IconAntennaBarsOff:icons.IconAntennaBarsOff,IconAntennaOff:icons.IconAntennaOff,IconAntenna:icons.IconAntenna,IconApertureOff:icons.IconApertureOff,IconAperture:icons.IconAperture,IconApiAppOff:icons.IconApiAppOff,IconApiApp:icons.IconApiApp,IconApiOff:icons.IconApiOff,IconApi:icons.IconApi,IconAppWindow:icons.IconAppWindow,IconApple:icons.IconApple,IconAppsOff:icons.IconAppsOff,IconApps:icons.IconApps,IconArchiveOff:icons.IconArchiveOff,IconArchive:icons.IconArchive,IconArmchair2Off:icons.IconArmchair2Off,IconArmchair2:icons.IconArmchair2,IconArmchairOff:icons.IconArmchairOff,IconArmchair:icons.IconArmchair,IconArrowAutofitContent:icons.IconArrowAutofitContent,IconArrowAutofitDown:icons.IconArrowAutofitDown,IconArrowAutofitHeight:icons.IconArrowAutofitHeight,IconArrowAutofitLeft:icons.IconArrowAutofitLeft,IconArrowAutofitRight:icons.IconArrowAutofitRight,IconArrowAutofitUp:icons.IconArrowAutofitUp,IconArrowAutofitWidth:icons.IconArrowAutofitWidth,IconArrowBackUp:icons.IconArrowBackUp,IconArrowBack:icons.IconArrowBack,IconArrowBarDown:icons.IconArrowBarDown,IconArrowBarLeft:icons.IconArrowBarLeft,IconArrowBarRight:icons.IconArrowBarRight,IconArrowBarToDown:icons.IconArrowBarToDown,IconArrowBarToLeft:icons.IconArrowBarToLeft,IconArrowBarToRight:icons.IconArrowBarToRight,IconArrowBarToUp:icons.IconArrowBarToUp,IconArrowBarUp:icons.IconArrowBarUp,IconArrowBearLeft2:icons.IconArrowBearLeft2,IconArrowBearLeft:icons.IconArrowBearLeft,IconArrowBearRight2:icons.IconArrowBearRight2,IconArrowBearRight:icons.IconArrowBearRight,IconArrowBigDownLine:icons.IconArrowBigDownLine,IconArrowBigDownLines:icons.IconArrowBigDownLines,IconArrowBigDown:icons.IconArrowBigDown,IconArrowBigLeftLine:icons.IconArrowBigLeftLine,IconArrowBigLeftLines:icons.IconArrowBigLeftLines,IconArrowBigLeft:icons.IconArrowBigLeft,IconArrowBigRightLine:icons.IconArrowBigRightLine,IconArrowBigRightLines:icons.IconArrowBigRightLines,IconArrowBigRight:icons.IconArrowBigRight,IconArrowBigTop:icons.IconArrowBigTop,IconArrowBigUpLine:icons.IconArrowBigUpLine,IconArrowBigUpLines:icons.IconArrowBigUpLines,IconArrowBottomBar:icons.IconArrowBottomBar,IconArrowBottomCircle:icons.IconArrowBottomCircle,IconArrowBottomSquare:icons.IconArrowBottomSquare,IconArrowBottomTail:icons.IconArrowBottomTail,IconArrowBounce:icons.IconArrowBounce,IconArrowCurveLeft:icons.IconArrowCurveLeft,IconArrowCurveRight:icons.IconArrowCurveRight,IconArrowDownCircle:icons.IconArrowDownCircle,IconArrowDownLeftCircle:icons.IconArrowDownLeftCircle,IconArrowDownLeft:icons.IconArrowDownLeft,IconArrowDownRightCircle:icons.IconArrowDownRightCircle,IconArrowDownRight:icons.IconArrowDownRight,IconArrowDown:icons.IconArrowDown,IconArrowFork:icons.IconArrowFork,IconArrowForwardUp:icons.IconArrowForwardUp,IconArrowForward:icons.IconArrowForward,IconArrowGuide:icons.IconArrowGuide,IconArrowLeftBar:icons.IconArrowLeftBar,IconArrowLeftCircle:icons.IconArrowLeftCircle,IconArrowLeftRight:icons.IconArrowLeftRight,IconArrowLeftSquare:icons.IconArrowLeftSquare,IconArrowLeftTail:icons.IconArrowLeftTail,IconArrowLeft:icons.IconArrowLeft,IconArrowLoopLeft2:icons.IconArrowLoopLeft2,IconArrowLoopLeft:icons.IconArrowLoopLeft,IconArrowLoopRight2:icons.IconArrowLoopRight2,IconArrowLoopRight:icons.IconArrowLoopRight,IconArrowMergeBoth:icons.IconArrowMergeBoth,IconArrowMergeLeft:icons.IconArrowMergeLeft,IconArrowMergeRight:icons.IconArrowMergeRight,IconArrowMerge:icons.IconArrowMerge,IconArrowMoveDown:icons.IconArrowMoveDown,IconArrowMoveLeft:icons.IconArrowMoveLeft,IconArrowMoveRight:icons.IconArrowMoveRight,IconArrowMoveUp:icons.IconArrowMoveUp,IconArrowNarrowDown:icons.IconArrowNarrowDown,IconArrowNarrowLeft:icons.IconArrowNarrowLeft,IconArrowNarrowRight:icons.IconArrowNarrowRight,IconArrowNarrowUp:icons.IconArrowNarrowUp,IconArrowRampLeft2:icons.IconArrowRampLeft2,IconArrowRampLeft3:icons.IconArrowRampLeft3,IconArrowRampLeft:icons.IconArrowRampLeft,IconArrowRampRight2:icons.IconArrowRampRight2,IconArrowRampRight3:icons.IconArrowRampRight3,IconArrowRampRight:icons.IconArrowRampRight,IconArrowRightBar:icons.IconArrowRightBar,IconArrowRightCircle:icons.IconArrowRightCircle,IconArrowRightSquare:icons.IconArrowRightSquare,IconArrowRightTail:icons.IconArrowRightTail,IconArrowRight:icons.IconArrowRight,IconArrowRotaryFirstLeft:icons.IconArrowRotaryFirstLeft,IconArrowRotaryFirstRight:icons.IconArrowRotaryFirstRight,IconArrowRotaryLastLeft:icons.IconArrowRotaryLastLeft,IconArrowRotaryLastRight:icons.IconArrowRotaryLastRight,IconArrowRotaryLeft:icons.IconArrowRotaryLeft,IconArrowRotaryRight:icons.IconArrowRotaryRight,IconArrowRotaryStraight:icons.IconArrowRotaryStraight,IconArrowRoundaboutLeft:icons.IconArrowRoundaboutLeft,IconArrowRoundaboutRight:icons.IconArrowRoundaboutRight,IconArrowSharpTurnLeft:icons.IconArrowSharpTurnLeft,IconArrowSharpTurnRight:icons.IconArrowSharpTurnRight,IconArrowTopBar:icons.IconArrowTopBar,IconArrowTopCircle:icons.IconArrowTopCircle,IconArrowTopSquare:icons.IconArrowTopSquare,IconArrowTopTail:icons.IconArrowTopTail,IconArrowUpCircle:icons.IconArrowUpCircle,IconArrowUpLeftCircle:icons.IconArrowUpLeftCircle,IconArrowUpLeft:icons.IconArrowUpLeft,IconArrowUpRightCircle:icons.IconArrowUpRightCircle,IconArrowUpRight:icons.IconArrowUpRight,IconArrowUp:icons.IconArrowUp,IconArrowWaveLeftDown:icons.IconArrowWaveLeftDown,IconArrowWaveLeftUp:icons.IconArrowWaveLeftUp,IconArrowWaveRightDown:icons.IconArrowWaveRightDown,IconArrowWaveRightUp:icons.IconArrowWaveRightUp,IconArrowsCross:icons.IconArrowsCross,IconArrowsDiagonal2:icons.IconArrowsDiagonal2,IconArrowsDiagonalMinimize2:icons.IconArrowsDiagonalMinimize2,IconArrowsDiagonalMinimize:icons.IconArrowsDiagonalMinimize,IconArrowsDiagonal:icons.IconArrowsDiagonal,IconArrowsDiff:icons.IconArrowsDiff,IconArrowsDoubleNeSw:icons.IconArrowsDoubleNeSw,IconArrowsDoubleNwSe:icons.IconArrowsDoubleNwSe,IconArrowsDoubleSeNw:icons.IconArrowsDoubleSeNw,IconArrowsDoubleSwNe:icons.IconArrowsDoubleSwNe,IconArrowsDownUp:icons.IconArrowsDownUp,IconArrowsDown:icons.IconArrowsDown,IconArrowsExchange2:icons.IconArrowsExchange2,IconArrowsExchange:icons.IconArrowsExchange,IconArrowsHorizontal:icons.IconArrowsHorizontal,IconArrowsJoin2:icons.IconArrowsJoin2,IconArrowsJoin:icons.IconArrowsJoin,IconArrowsLeftDown:icons.IconArrowsLeftDown,IconArrowsLeftRight:icons.IconArrowsLeftRight,IconArrowsLeft:icons.IconArrowsLeft,IconArrowsMaximize:icons.IconArrowsMaximize,IconArrowsMinimize:icons.IconArrowsMinimize,IconArrowsMoveHorizontal:icons.IconArrowsMoveHorizontal,IconArrowsMoveVertical:icons.IconArrowsMoveVertical,IconArrowsMove:icons.IconArrowsMove,IconArrowsRandom:icons.IconArrowsRandom,IconArrowsRightDown:icons.IconArrowsRightDown,IconArrowsRightLeft:icons.IconArrowsRightLeft,IconArrowsRight:icons.IconArrowsRight,IconArrowsShuffle2:icons.IconArrowsShuffle2,IconArrowsShuffle:icons.IconArrowsShuffle,IconArrowsSort:icons.IconArrowsSort,IconArrowsSplit2:icons.IconArrowsSplit2,IconArrowsSplit:icons.IconArrowsSplit,IconArrowsTransferDown:icons.IconArrowsTransferDown,IconArrowsTransferUp:icons.IconArrowsTransferUp,IconArrowsUpDown:icons.IconArrowsUpDown,IconArrowsUpLeft:icons.IconArrowsUpLeft,IconArrowsUpRight:icons.IconArrowsUpRight,IconArrowsUp:icons.IconArrowsUp,IconArrowsVertical:icons.IconArrowsVertical,IconArtboardOff:icons.IconArtboardOff,IconArtboard:icons.IconArtboard,IconArticleOff:icons.IconArticleOff,IconArticle:icons.IconArticle,IconAspectRatioOff:icons.IconAspectRatioOff,IconAspectRatio:icons.IconAspectRatio,IconAssemblyOff:icons.IconAssemblyOff,IconAssembly:icons.IconAssembly,IconAsset:icons.IconAsset,IconAsteriskSimple:icons.IconAsteriskSimple,IconAsterisk:icons.IconAsterisk,IconAtOff:icons.IconAtOff,IconAt:icons.IconAt,IconAtom2:icons.IconAtom2,IconAtomOff:icons.IconAtomOff,IconAtom:icons.IconAtom,IconAugmentedReality2:icons.IconAugmentedReality2,IconAugmentedRealityOff:icons.IconAugmentedRealityOff,IconAugmentedReality:icons.IconAugmentedReality,IconAwardOff:icons.IconAwardOff,IconAward:icons.IconAward,IconAxe:icons.IconAxe,IconAxisX:icons.IconAxisX,IconAxisY:icons.IconAxisY,IconBabyCarriage:icons.IconBabyCarriage,IconBackhoe:icons.IconBackhoe,IconBackpackOff:icons.IconBackpackOff,IconBackpack:icons.IconBackpack,IconBackspace:icons.IconBackspace,IconBadgeOff:icons.IconBadgeOff,IconBadge:icons.IconBadge,IconBadgesOff:icons.IconBadgesOff,IconBadges:icons.IconBadges,IconBaguette:icons.IconBaguette,IconBallAmericanFootballOff:icons.IconBallAmericanFootballOff,IconBallAmericanFootball:icons.IconBallAmericanFootball,IconBallBaseball:icons.IconBallBaseball,IconBallBasketball:icons.IconBallBasketball,IconBallBowling:icons.IconBallBowling,IconBallFootballOff:icons.IconBallFootballOff,IconBallFootball:icons.IconBallFootball,IconBallTennis:icons.IconBallTennis,IconBallVolleyball:icons.IconBallVolleyball,IconBallonOff:icons.IconBallonOff,IconBallon:icons.IconBallon,IconBallpenOff:icons.IconBallpenOff,IconBallpen:icons.IconBallpen,IconBan:icons.IconBan,IconBandageOff:icons.IconBandageOff,IconBandage:icons.IconBandage,IconBarbellOff:icons.IconBarbellOff,IconBarbell:icons.IconBarbell,IconBarcodeOff:icons.IconBarcodeOff,IconBarcode:icons.IconBarcode,IconBarrelOff:icons.IconBarrelOff,IconBarrel:icons.IconBarrel,IconBarrierBlockOff:icons.IconBarrierBlockOff,IconBarrierBlock:icons.IconBarrierBlock,IconBaseline:icons.IconBaseline,IconBasketOff:icons.IconBasketOff,IconBasket:icons.IconBasket,IconBat:icons.IconBat,IconBathOff:icons.IconBathOff,IconBath:icons.IconBath,IconBattery1:icons.IconBattery1,IconBattery2:icons.IconBattery2,IconBattery3:icons.IconBattery3,IconBattery4:icons.IconBattery4,IconBatteryAutomotive:icons.IconBatteryAutomotive,IconBatteryCharging2:icons.IconBatteryCharging2,IconBatteryCharging:icons.IconBatteryCharging,IconBatteryEco:icons.IconBatteryEco,IconBatteryOff:icons.IconBatteryOff,IconBattery:icons.IconBattery,IconBeachOff:icons.IconBeachOff,IconBeach:icons.IconBeach,IconBedOff:icons.IconBedOff,IconBed:icons.IconBed,IconBeerOff:icons.IconBeerOff,IconBeer:icons.IconBeer,IconBellMinus:icons.IconBellMinus,IconBellOff:icons.IconBellOff,IconBellPlus:icons.IconBellPlus,IconBellRinging2:icons.IconBellRinging2,IconBellRinging:icons.IconBellRinging,IconBellSchool:icons.IconBellSchool,IconBellX:icons.IconBellX,IconBellZ:icons.IconBellZ,IconBell:icons.IconBell,IconBible:icons.IconBible,IconBikeOff:icons.IconBikeOff,IconBike:icons.IconBike,IconBinaryOff:icons.IconBinaryOff,IconBinary:icons.IconBinary,IconBiohazardOff:icons.IconBiohazardOff,IconBiohazard:icons.IconBiohazard,IconBleachChlorine:icons.IconBleachChlorine,IconBleachNoChlorine:icons.IconBleachNoChlorine,IconBleachOff:icons.IconBleachOff,IconBleach:icons.IconBleach,IconBlockquote:icons.IconBlockquote,IconBluetoothConnected:icons.IconBluetoothConnected,IconBluetoothOff:icons.IconBluetoothOff,IconBluetoothX:icons.IconBluetoothX,IconBluetooth:icons.IconBluetooth,IconBlurOff:icons.IconBlurOff,IconBlur:icons.IconBlur,IconBmp:icons.IconBmp,IconBoldOff:icons.IconBoldOff,IconBold:icons.IconBold,IconBoltOff:icons.IconBoltOff,IconBolt:icons.IconBolt,IconBoneOff:icons.IconBoneOff,IconBone:icons.IconBone,IconBongOff:icons.IconBongOff,IconBong:icons.IconBong,IconBook2:icons.IconBook2,IconBookDownload:icons.IconBookDownload,IconBookOff:icons.IconBookOff,IconBookUpload:icons.IconBookUpload,IconBook:icons.IconBook,IconBookmarkOff:icons.IconBookmarkOff,IconBookmark:icons.IconBookmark,IconBookmarksOff:icons.IconBookmarksOff,IconBookmarks:icons.IconBookmarks,IconBooksOff:icons.IconBooksOff,IconBooks:icons.IconBooks,IconBorderAll:icons.IconBorderAll,IconBorderBottom:icons.IconBorderBottom,IconBorderHorizontal:icons.IconBorderHorizontal,IconBorderInner:icons.IconBorderInner,IconBorderLeft:icons.IconBorderLeft,IconBorderNone:icons.IconBorderNone,IconBorderOuter:icons.IconBorderOuter,IconBorderRadius:icons.IconBorderRadius,IconBorderRight:icons.IconBorderRight,IconBorderStyle2:icons.IconBorderStyle2,IconBorderStyle:icons.IconBorderStyle,IconBorderTop:icons.IconBorderTop,IconBorderVertical:icons.IconBorderVertical,IconBottleOff:icons.IconBottleOff,IconBottle:icons.IconBottle,IconBow:icons.IconBow,IconBoxAlignBottomLeft:icons.IconBoxAlignBottomLeft,IconBoxAlignBottomRight:icons.IconBoxAlignBottomRight,IconBoxAlignBottom:icons.IconBoxAlignBottom,IconBoxAlignLeft:icons.IconBoxAlignLeft,IconBoxAlignRight:icons.IconBoxAlignRight,IconBoxAlignTopLeft:icons.IconBoxAlignTopLeft,IconBoxAlignTopRight:icons.IconBoxAlignTopRight,IconBoxAlignTop:icons.IconBoxAlignTop,IconBoxMargin:icons.IconBoxMargin,IconBoxModel2Off:icons.IconBoxModel2Off,IconBoxModel2:icons.IconBoxModel2,IconBoxModelOff:icons.IconBoxModelOff,IconBoxModel:icons.IconBoxModel,IconBoxMultiple0:icons.IconBoxMultiple0,IconBoxMultiple1:icons.IconBoxMultiple1,IconBoxMultiple2:icons.IconBoxMultiple2,IconBoxMultiple3:icons.IconBoxMultiple3,IconBoxMultiple4:icons.IconBoxMultiple4,IconBoxMultiple5:icons.IconBoxMultiple5,IconBoxMultiple6:icons.IconBoxMultiple6,IconBoxMultiple7:icons.IconBoxMultiple7,IconBoxMultiple8:icons.IconBoxMultiple8,IconBoxMultiple9:icons.IconBoxMultiple9,IconBoxMultiple:icons.IconBoxMultiple,IconBoxOff:icons.IconBoxOff,IconBoxPadding:icons.IconBoxPadding,IconBox:icons.IconBox,IconBracesOff:icons.IconBracesOff,IconBraces:icons.IconBraces,IconBracketsContainEnd:icons.IconBracketsContainEnd,IconBracketsContainStart:icons.IconBracketsContainStart,IconBracketsContain:icons.IconBracketsContain,IconBracketsOff:icons.IconBracketsOff,IconBrackets:icons.IconBrackets,IconBrand4chan:icons.IconBrand4chan,IconBrandAbstract:icons.IconBrandAbstract,IconBrandAdobe:icons.IconBrandAdobe,IconBrandAdonisJs:icons.IconBrandAdonisJs,IconBrandAirbnb:icons.IconBrandAirbnb,IconBrandAirtable:icons.IconBrandAirtable,IconBrandAlbolia:icons.IconBrandAlbolia,IconBrandAlpineJs:icons.IconBrandAlpineJs,IconBrandAmazon:icons.IconBrandAmazon,IconBrandAmongus:icons.IconBrandAmongus,IconBrandAndroid:icons.IconBrandAndroid,IconBrandAngular:icons.IconBrandAngular,IconBrandAppgallery:icons.IconBrandAppgallery,IconBrandAppleArcade:icons.IconBrandAppleArcade,IconBrandApplePodcast:icons.IconBrandApplePodcast,IconBrandApple:icons.IconBrandApple,IconBrandAppstore:icons.IconBrandAppstore,IconBrandAsana:icons.IconBrandAsana,IconBrandBackbone:icons.IconBrandBackbone,IconBrandBadoo:icons.IconBrandBadoo,IconBrandBandcamp:icons.IconBrandBandcamp,IconBrandBeats:icons.IconBrandBeats,IconBrandBehance:icons.IconBrandBehance,IconBrandBing:icons.IconBrandBing,IconBrandBitbucket:icons.IconBrandBitbucket,IconBrandBlender:icons.IconBrandBlender,IconBrandBlogger:icons.IconBrandBlogger,IconBrandBooking:icons.IconBrandBooking,IconBrandBootstrap:icons.IconBrandBootstrap,IconBrandBulma:icons.IconBrandBulma,IconBrandCampaignmonitor:icons.IconBrandCampaignmonitor,IconBrandCarbon:icons.IconBrandCarbon,IconBrandCashapp:icons.IconBrandCashapp,IconBrandChrome:icons.IconBrandChrome,IconBrandCodecov:icons.IconBrandCodecov,IconBrandCodepen:icons.IconBrandCodepen,IconBrandCodesandbox:icons.IconBrandCodesandbox,IconBrandCoinbase:icons.IconBrandCoinbase,IconBrandComedyCentral:icons.IconBrandComedyCentral,IconBrandCouchsurfing:icons.IconBrandCouchsurfing,IconBrandCss3:icons.IconBrandCss3,IconBrandCucumber:icons.IconBrandCucumber,IconBrandCypress:icons.IconBrandCypress,IconBrandD3:icons.IconBrandD3,IconBrandDcos:icons.IconBrandDcos,IconBrandDebian:icons.IconBrandDebian,IconBrandDeno:icons.IconBrandDeno,IconBrandDeviantart:icons.IconBrandDeviantart,IconBrandDiscord:icons.IconBrandDiscord,IconBrandDisney:icons.IconBrandDisney,IconBrandDisqus:icons.IconBrandDisqus,IconBrandDjango:icons.IconBrandDjango,IconBrandDocker:icons.IconBrandDocker,IconBrandDoctrine:icons.IconBrandDoctrine,IconBrandDribbble:icons.IconBrandDribbble,IconBrandDrupal:icons.IconBrandDrupal,IconBrandEdge:icons.IconBrandEdge,IconBrandEmber:icons.IconBrandEmber,IconBrandEnvato:icons.IconBrandEnvato,IconBrandFacebook:icons.IconBrandFacebook,IconBrandFigma:icons.IconBrandFigma,IconBrandFinder:icons.IconBrandFinder,IconBrandFirebase:icons.IconBrandFirebase,IconBrandFirefox:icons.IconBrandFirefox,IconBrandFlickr:icons.IconBrandFlickr,IconBrandFlipboard:icons.IconBrandFlipboard,IconBrandFlutter:icons.IconBrandFlutter,IconBrandFortnite:icons.IconBrandFortnite,IconBrandFoursquare:icons.IconBrandFoursquare,IconBrandFramer:icons.IconBrandFramer,IconBrandGatsby:icons.IconBrandGatsby,IconBrandGit:icons.IconBrandGit,IconBrandGithub:icons.IconBrandGithub,IconBrandGitlab:icons.IconBrandGitlab,IconBrandGmail:icons.IconBrandGmail,IconBrandGoogleAnalytics:icons.IconBrandGoogleAnalytics,IconBrandGoogleDrive:icons.IconBrandGoogleDrive,IconBrandGoogleFit:icons.IconBrandGoogleFit,IconBrandGoogleOne:icons.IconBrandGoogleOne,IconBrandGooglePhotos:icons.IconBrandGooglePhotos,IconBrandGooglePlay:icons.IconBrandGooglePlay,IconBrandGoogle:icons.IconBrandGoogle,IconBrandGrammarly:icons.IconBrandGrammarly,IconBrandGraphql:icons.IconBrandGraphql,IconBrandGravatar:icons.IconBrandGravatar,IconBrandGrindr:icons.IconBrandGrindr,IconBrandHeadlessui:icons.IconBrandHeadlessui,IconBrandHipchat:icons.IconBrandHipchat,IconBrandHtml5:icons.IconBrandHtml5,IconBrandInertia:icons.IconBrandInertia,IconBrandInstagram:icons.IconBrandInstagram,IconBrandIntercom:icons.IconBrandIntercom,IconBrandJavascript:icons.IconBrandJavascript,IconBrandKickstarter:icons.IconBrandKickstarter,IconBrandKotlin:icons.IconBrandKotlin,IconBrandLaravel:icons.IconBrandLaravel,IconBrandLastfm:icons.IconBrandLastfm,IconBrandLinkedin:icons.IconBrandLinkedin,IconBrandLinktree:icons.IconBrandLinktree,IconBrandLoom:icons.IconBrandLoom,IconBrandMailgun:icons.IconBrandMailgun,IconBrandMantine:icons.IconBrandMantine,IconBrandMastercard:icons.IconBrandMastercard,IconBrandMastodon:icons.IconBrandMastodon,IconBrandMcdonalds:icons.IconBrandMcdonalds,IconBrandMedium:icons.IconBrandMedium,IconBrandMercedes:icons.IconBrandMercedes,IconBrandMessenger:icons.IconBrandMessenger,IconBrandMeta:icons.IconBrandMeta,IconBrandMixpanel:icons.IconBrandMixpanel,IconBrandMonday:icons.IconBrandMonday,IconBrandNetbeans:icons.IconBrandNetbeans,IconBrandNetflix:icons.IconBrandNetflix,IconBrandNextjs:icons.IconBrandNextjs,IconBrandNordVpn:icons.IconBrandNordVpn,IconBrandNotion:icons.IconBrandNotion,IconBrandNuxt:icons.IconBrandNuxt,IconBrandNytimes:icons.IconBrandNytimes,IconBrandOffice:icons.IconBrandOffice,IconBrandOkRu:icons.IconBrandOkRu,IconBrandOpenSource:icons.IconBrandOpenSource,IconBrandOpenvpn:icons.IconBrandOpenvpn,IconBrandOpera:icons.IconBrandOpera,IconBrandPagekit:icons.IconBrandPagekit,IconBrandPatreon:icons.IconBrandPatreon,IconBrandPaypal:icons.IconBrandPaypal,IconBrandPeanut:icons.IconBrandPeanut,IconBrandPepsi:icons.IconBrandPepsi,IconBrandPhp:icons.IconBrandPhp,IconBrandPinterest:icons.IconBrandPinterest,IconBrandPocket:icons.IconBrandPocket,IconBrandPolymer:icons.IconBrandPolymer,IconBrandPrisma:icons.IconBrandPrisma,IconBrandProducthunt:icons.IconBrandProducthunt,IconBrandPushbullet:icons.IconBrandPushbullet,IconBrandPushover:icons.IconBrandPushover,IconBrandPython:icons.IconBrandPython,IconBrandReactNative:icons.IconBrandReactNative,IconBrandReact:icons.IconBrandReact,IconBrandReason:icons.IconBrandReason,IconBrandReddit:icons.IconBrandReddit,IconBrandRedhat:icons.IconBrandRedhat,IconBrandRedux:icons.IconBrandRedux,IconBrandSafari:icons.IconBrandSafari,IconBrandSass:icons.IconBrandSass,IconBrandSentry:icons.IconBrandSentry,IconBrandShazam:icons.IconBrandShazam,IconBrandShopee:icons.IconBrandShopee,IconBrandSketch:icons.IconBrandSketch,IconBrandSkype:icons.IconBrandSkype,IconBrandSlack:icons.IconBrandSlack,IconBrandSnapchat:icons.IconBrandSnapchat,IconBrandSnapseed:icons.IconBrandSnapseed,IconBrandSocketIo:icons.IconBrandSocketIo,IconBrandSoundcloud:icons.IconBrandSoundcloud,IconBrandSpotify:icons.IconBrandSpotify,IconBrandStackoverflow:icons.IconBrandStackoverflow,IconBrandSteam:icons.IconBrandSteam,IconBrandStorybook:icons.IconBrandStorybook,IconBrandStrava:icons.IconBrandStrava,IconBrandStripe:icons.IconBrandStripe,IconBrandSublimeText:icons.IconBrandSublimeText,IconBrandSupernova:icons.IconBrandSupernova,IconBrandSurfshark:icons.IconBrandSurfshark,IconBrandSvelte:icons.IconBrandSvelte,IconBrandTabler:icons.IconBrandTabler,IconBrandTailwind:icons.IconBrandTailwind,IconBrandTelegram:icons.IconBrandTelegram,IconBrandTidal:icons.IconBrandTidal,IconBrandTiktok:icons.IconBrandTiktok,IconBrandTinder:icons.IconBrandTinder,IconBrandToyota:icons.IconBrandToyota,IconBrandTrello:icons.IconBrandTrello,IconBrandTripadvisor:icons.IconBrandTripadvisor,IconBrandTumblr:icons.IconBrandTumblr,IconBrandTwitch:icons.IconBrandTwitch,IconBrandTwitter:icons.IconBrandTwitter,IconBrandUber:icons.IconBrandUber,IconBrandUbuntu:icons.IconBrandUbuntu,IconBrandUnity:icons.IconBrandUnity,IconBrandUnsplash:icons.IconBrandUnsplash,IconBrandUpwork:icons.IconBrandUpwork,IconBrandValorant:icons.IconBrandValorant,IconBrandVercel:icons.IconBrandVercel,IconBrandVimeo:icons.IconBrandVimeo,IconBrandVinted:icons.IconBrandVinted,IconBrandVisa:icons.IconBrandVisa,IconBrandVisualStudio:icons.IconBrandVisualStudio,IconBrandVivaldi:icons.IconBrandVivaldi,IconBrandVk:icons.IconBrandVk,IconBrandVsco:icons.IconBrandVsco,IconBrandVscode:icons.IconBrandVscode,IconBrandVue:icons.IconBrandVue,IconBrandWalmart:icons.IconBrandWalmart,IconBrandWebflow:icons.IconBrandWebflow,IconBrandWhatsapp:icons.IconBrandWhatsapp,IconBrandWindows:icons.IconBrandWindows,IconBrandWish:icons.IconBrandWish,IconBrandWix:icons.IconBrandWix,IconBrandWordpress:icons.IconBrandWordpress,IconBrandXbox:icons.IconBrandXbox,IconBrandXing:icons.IconBrandXing,IconBrandYahoo:icons.IconBrandYahoo,IconBrandYatse:icons.IconBrandYatse,IconBrandYcombinator:icons.IconBrandYcombinator,IconBrandYoutubeKids:icons.IconBrandYoutubeKids,IconBrandYoutube:icons.IconBrandYoutube,IconBrandZalando:icons.IconBrandZalando,IconBrandZapier:icons.IconBrandZapier,IconBrandZeit:icons.IconBrandZeit,IconBrandZoom:icons.IconBrandZoom,IconBrandZwift:icons.IconBrandZwift,IconBreadOff:icons.IconBreadOff,IconBread:icons.IconBread,IconBriefcaseOff:icons.IconBriefcaseOff,IconBriefcase:icons.IconBriefcase,IconBrightness2:icons.IconBrightness2,IconBrightnessDown:icons.IconBrightnessDown,IconBrightnessHalf:icons.IconBrightnessHalf,IconBrightnessOff:icons.IconBrightnessOff,IconBrightnessUp:icons.IconBrightnessUp,IconBrightness:icons.IconBrightness,IconBroadcastOff:icons.IconBroadcastOff,IconBroadcast:icons.IconBroadcast,IconBrowserCheck:icons.IconBrowserCheck,IconBrowserOff:icons.IconBrowserOff,IconBrowserPlus:icons.IconBrowserPlus,IconBrowserX:icons.IconBrowserX,IconBrowser:icons.IconBrowser,IconBrushOff:icons.IconBrushOff,IconBrush:icons.IconBrush,IconBucketOff:icons.IconBucketOff,IconBucket:icons.IconBucket,IconBugOff:icons.IconBugOff,IconBug:icons.IconBug,IconBuildingArch:icons.IconBuildingArch,IconBuildingBank:icons.IconBuildingBank,IconBuildingBridge2:icons.IconBuildingBridge2,IconBuildingBridge:icons.IconBuildingBridge,IconBuildingCarousel:icons.IconBuildingCarousel,IconBuildingCastle:icons.IconBuildingCastle,IconBuildingChurch:icons.IconBuildingChurch,IconBuildingCommunity:icons.IconBuildingCommunity,IconBuildingCottage:icons.IconBuildingCottage,IconBuildingFactory2:icons.IconBuildingFactory2,IconBuildingFactory:icons.IconBuildingFactory,IconBuildingFortress:icons.IconBuildingFortress,IconBuildingHospital:icons.IconBuildingHospital,IconBuildingLighthouse:icons.IconBuildingLighthouse,IconBuildingMonument:icons.IconBuildingMonument,IconBuildingPavilon:icons.IconBuildingPavilon,IconBuildingSkyscraper:icons.IconBuildingSkyscraper,IconBuildingStore:icons.IconBuildingStore,IconBuildingWarehouse:icons.IconBuildingWarehouse,IconBuilding:icons.IconBuilding,IconBulbOff:icons.IconBulbOff,IconBulb:icons.IconBulb,IconBulldozer:icons.IconBulldozer,IconBusOff:icons.IconBusOff,IconBusStop:icons.IconBusStop,IconBus:icons.IconBus,IconBusinessplan:icons.IconBusinessplan,IconButterfly:icons.IconButterfly,IconCSharp:icons.IconCSharp,IconCactusOff:icons.IconCactusOff,IconCactus:icons.IconCactus,IconCakeOff:icons.IconCakeOff,IconCake:icons.IconCake,IconCalculatorOff:icons.IconCalculatorOff,IconCalculator:icons.IconCalculator,IconCalendarEvent:icons.IconCalendarEvent,IconCalendarMinus:icons.IconCalendarMinus,IconCalendarOff:icons.IconCalendarOff,IconCalendarPlus:icons.IconCalendarPlus,IconCalendarStats:icons.IconCalendarStats,IconCalendarTime:icons.IconCalendarTime,IconCalendar:icons.IconCalendar,IconCameraMinus:icons.IconCameraMinus,IconCameraOff:icons.IconCameraOff,IconCameraPlus:icons.IconCameraPlus,IconCameraRotate:icons.IconCameraRotate,IconCameraSelfie:icons.IconCameraSelfie,IconCamera:icons.IconCamera,IconCandle:icons.IconCandle,IconCandyOff:icons.IconCandyOff,IconCandy:icons.IconCandy,IconCaptureOff:icons.IconCaptureOff,IconCapture:icons.IconCapture,IconCarCrane:icons.IconCarCrane,IconCarCrash:icons.IconCarCrash,IconCarOff:icons.IconCarOff,IconCar:icons.IconCar,IconCaravan:icons.IconCaravan,IconCardboardsOff:icons.IconCardboardsOff,IconCardboards:icons.IconCardboards,IconCaretDown:icons.IconCaretDown,IconCaretLeft:icons.IconCaretLeft,IconCaretRight:icons.IconCaretRight,IconCaretUp:icons.IconCaretUp,IconCarrotOff:icons.IconCarrotOff,IconCarrot:icons.IconCarrot,IconCashBanknoteOff:icons.IconCashBanknoteOff,IconCashBanknote:icons.IconCashBanknote,IconCashOff:icons.IconCashOff,IconCash:icons.IconCash,IconCastOff:icons.IconCastOff,IconCast:icons.IconCast,IconCategory2:icons.IconCategory2,IconCategory:icons.IconCategory,IconCeOff:icons.IconCeOff,IconCe:icons.IconCe,IconCellSignal1:icons.IconCellSignal1,IconCellSignal2:icons.IconCellSignal2,IconCellSignal3:icons.IconCellSignal3,IconCellSignal4:icons.IconCellSignal4,IconCellSignal5:icons.IconCellSignal5,IconCellSignalOff:icons.IconCellSignalOff,IconCell:icons.IconCell,IconCertificate2Off:icons.IconCertificate2Off,IconCertificate2:icons.IconCertificate2,IconCertificateOff:icons.IconCertificateOff,IconCertificate:icons.IconCertificate,IconChairDirector:icons.IconChairDirector,IconChalkboardOff:icons.IconChalkboardOff,IconChalkboard:icons.IconChalkboard,IconChargingPile:icons.IconChargingPile,IconChartArcs3:icons.IconChartArcs3,IconChartArcs:icons.IconChartArcs,IconChartAreaLine:icons.IconChartAreaLine,IconChartArea:icons.IconChartArea,IconChartArrowsVertical:icons.IconChartArrowsVertical,IconChartArrows:icons.IconChartArrows,IconChartBarOff:icons.IconChartBarOff,IconChartBar:icons.IconChartBar,IconChartBubble:icons.IconChartBubble,IconChartCandle:icons.IconChartCandle,IconChartCircles:icons.IconChartCircles,IconChartDonut2:icons.IconChartDonut2,IconChartDonut3:icons.IconChartDonut3,IconChartDonut4:icons.IconChartDonut4,IconChartDonut:icons.IconChartDonut,IconChartDots2:icons.IconChartDots2,IconChartDots3:icons.IconChartDots3,IconChartDots:icons.IconChartDots,IconChartInfographic:icons.IconChartInfographic,IconChartLine:icons.IconChartLine,IconChartPie2:icons.IconChartPie2,IconChartPie3:icons.IconChartPie3,IconChartPie4:icons.IconChartPie4,IconChartPieOff:icons.IconChartPieOff,IconChartPie:icons.IconChartPie,IconChartRadar:icons.IconChartRadar,IconChartTreemap:icons.IconChartTreemap,IconCheck:icons.IconCheck,IconCheckbox:icons.IconCheckbox,IconChecklist:icons.IconChecklist,IconChecks:icons.IconChecks,IconCheckupList:icons.IconCheckupList,IconCheese:icons.IconCheese,IconChefHatOff:icons.IconChefHatOff,IconChefHat:icons.IconChefHat,IconChess:icons.IconChess,IconChevronDownLeft:icons.IconChevronDownLeft,IconChevronDownRight:icons.IconChevronDownRight,IconChevronDown:icons.IconChevronDown,IconChevronLeft:icons.IconChevronLeft,IconChevronRight:icons.IconChevronRight,IconChevronUpLeft:icons.IconChevronUpLeft,IconChevronUpRight:icons.IconChevronUpRight,IconChevronUp:icons.IconChevronUp,IconChevronsDownLeft:icons.IconChevronsDownLeft,IconChevronsDownRight:icons.IconChevronsDownRight,IconChevronsDown:icons.IconChevronsDown,IconChevronsLeft:icons.IconChevronsLeft,IconChevronsRight:icons.IconChevronsRight,IconChevronsUpLeft:icons.IconChevronsUpLeft,IconChevronsUpRight:icons.IconChevronsUpRight,IconChevronsUp:icons.IconChevronsUp,IconChisel:icons.IconChisel,IconChristmasTreeOff:icons.IconChristmasTreeOff,IconChristmasTree:icons.IconChristmasTree,IconCircle0:icons.IconCircle0,IconCircle1:icons.IconCircle1,IconCircle2:icons.IconCircle2,IconCircle3:icons.IconCircle3,IconCircle4:icons.IconCircle4,IconCircle5:icons.IconCircle5,IconCircle6:icons.IconCircle6,IconCircle7:icons.IconCircle7,IconCircle8:icons.IconCircle8,IconCircle9:icons.IconCircle9,IconCircleA:icons.IconCircleA,IconCircleB:icons.IconCircleB,IconCircleC:icons.IconCircleC,IconCircleCheck:icons.IconCircleCheck,IconCircleD:icons.IconCircleD,IconCircleDashed:icons.IconCircleDashed,IconCircleDot:icons.IconCircleDot,IconCircleDotted:icons.IconCircleDotted,IconCircleE:icons.IconCircleE,IconCircleF:icons.IconCircleF,IconCircleG:icons.IconCircleG,IconCircleH:icons.IconCircleH,IconCircleHalf2:icons.IconCircleHalf2,IconCircleHalfVertical:icons.IconCircleHalfVertical,IconCircleHalf:icons.IconCircleHalf,IconCircleI:icons.IconCircleI,IconCircleJ:icons.IconCircleJ,IconCircleK:icons.IconCircleK,IconCircleL:icons.IconCircleL,IconCircleM:icons.IconCircleM,IconCircleMinus:icons.IconCircleMinus,IconCircleN:icons.IconCircleN,IconCircleO:icons.IconCircleO,IconCircleOff:icons.IconCircleOff,IconCircleP:icons.IconCircleP,IconCirclePlus:icons.IconCirclePlus,IconCircleQ:icons.IconCircleQ,IconCircleR:icons.IconCircleR,IconCircleRectangleOff:icons.IconCircleRectangleOff,IconCircleRectangle:icons.IconCircleRectangle,IconCircleS:icons.IconCircleS,IconCircleSquare:icons.IconCircleSquare,IconCircleT:icons.IconCircleT,IconCircleTriangle:icons.IconCircleTriangle,IconCircleU:icons.IconCircleU,IconCircleW:icons.IconCircleW,IconCircleX:icons.IconCircleX,IconCircleY:icons.IconCircleY,IconCircleZ:icons.IconCircleZ,IconCircle:icons.IconCircle,IconCircles:icons.IconCircles,IconCircuitAmmeter:icons.IconCircuitAmmeter,IconCircuitBattery:icons.IconCircuitBattery,IconCircuitBulb:icons.IconCircuitBulb,IconCircuitCapacitorPolarized:icons.IconCircuitCapacitorPolarized,IconCircuitCapacitor:icons.IconCircuitCapacitor,IconCircuitCellPlus:icons.IconCircuitCellPlus,IconCircuitCell:icons.IconCircuitCell,IconCircuitChangeover:icons.IconCircuitChangeover,IconCircuitDiodeZener:icons.IconCircuitDiodeZener,IconCircuitDiode:icons.IconCircuitDiode,IconCircuitGroundDigital:icons.IconCircuitGroundDigital,IconCircuitGround:icons.IconCircuitGround,IconCircuitInductor:icons.IconCircuitInductor,IconCircuitMotor:icons.IconCircuitMotor,IconCircuitPushbutton:icons.IconCircuitPushbutton,IconCircuitResistor:icons.IconCircuitResistor,IconCircuitSwitchClosed:icons.IconCircuitSwitchClosed,IconCircuitSwitchOpen:icons.IconCircuitSwitchOpen,IconCircuitVoltmeter:icons.IconCircuitVoltmeter,IconClearAll:icons.IconClearAll,IconClearFormatting:icons.IconClearFormatting,IconClick:icons.IconClick,IconClipboardCheck:icons.IconClipboardCheck,IconClipboardCopy:icons.IconClipboardCopy,IconClipboardHeart:icons.IconClipboardHeart,IconClipboardList:icons.IconClipboardList,IconClipboardOff:icons.IconClipboardOff,IconClipboardPlus:icons.IconClipboardPlus,IconClipboardText:icons.IconClipboardText,IconClipboardTypography:icons.IconClipboardTypography,IconClipboardX:icons.IconClipboardX,IconClipboard:icons.IconClipboard,IconClock2:icons.IconClock2,IconClockHour1:icons.IconClockHour1,IconClockHour10:icons.IconClockHour10,IconClockHour11:icons.IconClockHour11,IconClockHour12:icons.IconClockHour12,IconClockHour2:icons.IconClockHour2,IconClockHour3:icons.IconClockHour3,IconClockHour4:icons.IconClockHour4,IconClockHour5:icons.IconClockHour5,IconClockHour6:icons.IconClockHour6,IconClockHour7:icons.IconClockHour7,IconClockHour8:icons.IconClockHour8,IconClockHour9:icons.IconClockHour9,IconClockOff:icons.IconClockOff,IconClock:icons.IconClock,IconClothesRackOff:icons.IconClothesRackOff,IconClothesRack:icons.IconClothesRack,IconCloudComputing:icons.IconCloudComputing,IconCloudDataConnection:icons.IconCloudDataConnection,IconCloudDownload:icons.IconCloudDownload,IconCloudFog:icons.IconCloudFog,IconCloudLockOpen:icons.IconCloudLockOpen,IconCloudLock:icons.IconCloudLock,IconCloudOff:icons.IconCloudOff,IconCloudRain:icons.IconCloudRain,IconCloudSnow:icons.IconCloudSnow,IconCloudStorm:icons.IconCloudStorm,IconCloudUpload:icons.IconCloudUpload,IconCloud:icons.IconCloud,IconClover2:icons.IconClover2,IconClover:icons.IconClover,IconClubs:icons.IconClubs,IconCodeAsterix:icons.IconCodeAsterix,IconCodeMinus:icons.IconCodeMinus,IconCodeOff:icons.IconCodeOff,IconCodePlus:icons.IconCodePlus,IconCode:icons.IconCode,IconCoffeeOff:icons.IconCoffeeOff,IconCoffee:icons.IconCoffee,IconCoinBitcoin:icons.IconCoinBitcoin,IconCoinEuro:icons.IconCoinEuro,IconCoinMonero:icons.IconCoinMonero,IconCoinOff:icons.IconCoinOff,IconCoinPound:icons.IconCoinPound,IconCoinRupee:icons.IconCoinRupee,IconCoinYen:icons.IconCoinYen,IconCoinYuan:icons.IconCoinYuan,IconCoin:icons.IconCoin,IconColorPickerOff:icons.IconColorPickerOff,IconColorPicker:icons.IconColorPicker,IconColorSwatchOff:icons.IconColorSwatchOff,IconColorSwatch:icons.IconColorSwatch,IconColumnInsertLeft:icons.IconColumnInsertLeft,IconColumnInsertRight:icons.IconColumnInsertRight,IconColumnsOff:icons.IconColumnsOff,IconColumns:icons.IconColumns,IconComet:icons.IconComet,IconCommandOff:icons.IconCommandOff,IconCommand:icons.IconCommand,IconCompassOff:icons.IconCompassOff,IconCompass:icons.IconCompass,IconComponentsOff:icons.IconComponentsOff,IconComponents:icons.IconComponents,IconCone2:icons.IconCone2,IconConeOff:icons.IconConeOff,IconCone:icons.IconCone,IconConfettiOff:icons.IconConfettiOff,IconConfetti:icons.IconConfetti,IconContainerOff:icons.IconContainerOff,IconContainer:icons.IconContainer,IconContrast2Off:icons.IconContrast2Off,IconContrast2:icons.IconContrast2,IconContrastOff:icons.IconContrastOff,IconContrast:icons.IconContrast,IconCookieOff:icons.IconCookieOff,IconCookie:icons.IconCookie,IconCopyOff:icons.IconCopyOff,IconCopy:icons.IconCopy,IconCopyleftOff:icons.IconCopyleftOff,IconCopyleft:icons.IconCopyleft,IconCopyrightOff:icons.IconCopyrightOff,IconCopyright:icons.IconCopyright,IconCornerDownLeftDouble:icons.IconCornerDownLeftDouble,IconCornerDownLeft:icons.IconCornerDownLeft,IconCornerDownRightDouble:icons.IconCornerDownRightDouble,IconCornerDownRight:icons.IconCornerDownRight,IconCornerLeftDownDouble:icons.IconCornerLeftDownDouble,IconCornerLeftDown:icons.IconCornerLeftDown,IconCornerLeftUpDouble:icons.IconCornerLeftUpDouble,IconCornerLeftUp:icons.IconCornerLeftUp,IconCornerRightDownDouble:icons.IconCornerRightDownDouble,IconCornerRightDown:icons.IconCornerRightDown,IconCornerRightUpDouble:icons.IconCornerRightUpDouble,IconCornerRightUp:icons.IconCornerRightUp,IconCornerUpLeftDouble:icons.IconCornerUpLeftDouble,IconCornerUpLeft:icons.IconCornerUpLeft,IconCornerUpRightDouble:icons.IconCornerUpRightDouble,IconCornerUpRight:icons.IconCornerUpRight,IconCpu2:icons.IconCpu2,IconCpuOff:icons.IconCpuOff,IconCpu:icons.IconCpu,IconCraneOff:icons.IconCraneOff,IconCrane:icons.IconCrane,IconCreativeCommonsBy:icons.IconCreativeCommonsBy,IconCreativeCommonsNc:icons.IconCreativeCommonsNc,IconCreativeCommonsNd:icons.IconCreativeCommonsNd,IconCreativeCommonsOff:icons.IconCreativeCommonsOff,IconCreativeCommonsSa:icons.IconCreativeCommonsSa,IconCreativeCommonsZero:icons.IconCreativeCommonsZero,IconCreativeCommons:icons.IconCreativeCommons,IconCreditCardOff:icons.IconCreditCardOff,IconCreditCard:icons.IconCreditCard,IconCricket:icons.IconCricket,IconCrop:icons.IconCrop,IconCrossOff:icons.IconCrossOff,IconCross:icons.IconCross,IconCrosshair:icons.IconCrosshair,IconCrownOff:icons.IconCrownOff,IconCrown:icons.IconCrown,IconCrutchesOff:icons.IconCrutchesOff,IconCrutches:icons.IconCrutches,IconCupOff:icons.IconCupOff,IconCup:icons.IconCup,IconCurling:icons.IconCurling,IconCurlyLoop:icons.IconCurlyLoop,IconCurrencyBahraini:icons.IconCurrencyBahraini,IconCurrencyBaht:icons.IconCurrencyBaht,IconCurrencyBitcoin:icons.IconCurrencyBitcoin,IconCurrencyCent:icons.IconCurrencyCent,IconCurrencyDinar:icons.IconCurrencyDinar,IconCurrencyDirham:icons.IconCurrencyDirham,IconCurrencyDogecoin:icons.IconCurrencyDogecoin,IconCurrencyDollarAustralian:icons.IconCurrencyDollarAustralian,IconCurrencyDollarBrunei:icons.IconCurrencyDollarBrunei,IconCurrencyDollarCanadian:icons.IconCurrencyDollarCanadian,IconCurrencyDollarGuyanese:icons.IconCurrencyDollarGuyanese,IconCurrencyDollarOff:icons.IconCurrencyDollarOff,IconCurrencyDollarSingapore:icons.IconCurrencyDollarSingapore,IconCurrencyDollarZimbabwean:icons.IconCurrencyDollarZimbabwean,IconCurrencyDollar:icons.IconCurrencyDollar,IconCurrencyDong:icons.IconCurrencyDong,IconCurrencyDram:icons.IconCurrencyDram,IconCurrencyEthereum:icons.IconCurrencyEthereum,IconCurrencyEuroOff:icons.IconCurrencyEuroOff,IconCurrencyEuro:icons.IconCurrencyEuro,IconCurrencyForint:icons.IconCurrencyForint,IconCurrencyFrank:icons.IconCurrencyFrank,IconCurrencyGuarani:icons.IconCurrencyGuarani,IconCurrencyHryvnia:icons.IconCurrencyHryvnia,IconCurrencyKip:icons.IconCurrencyKip,IconCurrencyKroneCzech:icons.IconCurrencyKroneCzech,IconCurrencyKroneDanish:icons.IconCurrencyKroneDanish,IconCurrencyKroneSwedish:icons.IconCurrencyKroneSwedish,IconCurrencyLari:icons.IconCurrencyLari,IconCurrencyLeu:icons.IconCurrencyLeu,IconCurrencyLira:icons.IconCurrencyLira,IconCurrencyLitecoin:icons.IconCurrencyLitecoin,IconCurrencyLyd:icons.IconCurrencyLyd,IconCurrencyManat:icons.IconCurrencyManat,IconCurrencyMonero:icons.IconCurrencyMonero,IconCurrencyNaira:icons.IconCurrencyNaira,IconCurrencyOff:icons.IconCurrencyOff,IconCurrencyPaanga:icons.IconCurrencyPaanga,IconCurrencyPoundOff:icons.IconCurrencyPoundOff,IconCurrencyPound:icons.IconCurrencyPound,IconCurrencyQuetzal:icons.IconCurrencyQuetzal,IconCurrencyReal:icons.IconCurrencyReal,IconCurrencyRenminbi:icons.IconCurrencyRenminbi,IconCurrencyRipple:icons.IconCurrencyRipple,IconCurrencyRiyal:icons.IconCurrencyRiyal,IconCurrencyRubel:icons.IconCurrencyRubel,IconCurrencyRufiyaa:icons.IconCurrencyRufiyaa,IconCurrencyRupeeNepalese:icons.IconCurrencyRupeeNepalese,IconCurrencyRupee:icons.IconCurrencyRupee,IconCurrencyShekel:icons.IconCurrencyShekel,IconCurrencySolana:icons.IconCurrencySolana,IconCurrencySom:icons.IconCurrencySom,IconCurrencyTaka:icons.IconCurrencyTaka,IconCurrencyTenge:icons.IconCurrencyTenge,IconCurrencyTugrik:icons.IconCurrencyTugrik,IconCurrencyWon:icons.IconCurrencyWon,IconCurrencyYenOff:icons.IconCurrencyYenOff,IconCurrencyYen:icons.IconCurrencyYen,IconCurrencyYuan:icons.IconCurrencyYuan,IconCurrencyZloty:icons.IconCurrencyZloty,IconCurrency:icons.IconCurrency,IconCurrentLocationOff:icons.IconCurrentLocationOff,IconCurrentLocation:icons.IconCurrentLocation,IconCursorOff:icons.IconCursorOff,IconCursorText:icons.IconCursorText,IconCut:icons.IconCut,IconDashboardOff:icons.IconDashboardOff,IconDashboard:icons.IconDashboard,IconDatabaseExport:icons.IconDatabaseExport,IconDatabaseImport:icons.IconDatabaseImport,IconDatabaseOff:icons.IconDatabaseOff,IconDatabase:icons.IconDatabase,IconDentalBroken:icons.IconDentalBroken,IconDentalOff:icons.IconDentalOff,IconDental:icons.IconDental,IconDetailsOff:icons.IconDetailsOff,IconDetails:icons.IconDetails,IconDeviceAnalytics:icons.IconDeviceAnalytics,IconDeviceAudioTape:icons.IconDeviceAudioTape,IconDeviceCameraPhone:icons.IconDeviceCameraPhone,IconDeviceCctvOff:icons.IconDeviceCctvOff,IconDeviceCctv:icons.IconDeviceCctv,IconDeviceComputerCameraOff:icons.IconDeviceComputerCameraOff,IconDeviceComputerCamera:icons.IconDeviceComputerCamera,IconDeviceDesktopAnalytics:icons.IconDeviceDesktopAnalytics,IconDeviceDesktopOff:icons.IconDeviceDesktopOff,IconDeviceDesktop:icons.IconDeviceDesktop,IconDeviceFloppy:icons.IconDeviceFloppy,IconDeviceGamepad2:icons.IconDeviceGamepad2,IconDeviceGamepad:icons.IconDeviceGamepad,IconDeviceHeartMonitor:icons.IconDeviceHeartMonitor,IconDeviceLaptopOff:icons.IconDeviceLaptopOff,IconDeviceLaptop:icons.IconDeviceLaptop,IconDeviceMobileCharging:icons.IconDeviceMobileCharging,IconDeviceMobileMessage:icons.IconDeviceMobileMessage,IconDeviceMobileOff:icons.IconDeviceMobileOff,IconDeviceMobileRotated:icons.IconDeviceMobileRotated,IconDeviceMobileVibration:icons.IconDeviceMobileVibration,IconDeviceMobile:icons.IconDeviceMobile,IconDeviceNintendoOff:icons.IconDeviceNintendoOff,IconDeviceNintendo:icons.IconDeviceNintendo,IconDeviceSdCard:icons.IconDeviceSdCard,IconDeviceSpeakerOff:icons.IconDeviceSpeakerOff,IconDeviceSpeaker:icons.IconDeviceSpeaker,IconDeviceTabletOff:icons.IconDeviceTabletOff,IconDeviceTablet:icons.IconDeviceTablet,IconDeviceTvOff:icons.IconDeviceTvOff,IconDeviceTvOld:icons.IconDeviceTvOld,IconDeviceTv:icons.IconDeviceTv,IconDeviceWatchOff:icons.IconDeviceWatchOff,IconDeviceWatchStats2:icons.IconDeviceWatchStats2,IconDeviceWatchStats:icons.IconDeviceWatchStats,IconDeviceWatch:icons.IconDeviceWatch,IconDevices2:icons.IconDevices2,IconDevicesOff:icons.IconDevicesOff,IconDevicesPcOff:icons.IconDevicesPcOff,IconDevicesPc:icons.IconDevicesPc,IconDevices:icons.IconDevices,IconDialpadOff:icons.IconDialpadOff,IconDialpad:icons.IconDialpad,IconDiamondOff:icons.IconDiamondOff,IconDiamond:icons.IconDiamond,IconDiamonds:icons.IconDiamonds,IconDice1:icons.IconDice1,IconDice2:icons.IconDice2,IconDice3:icons.IconDice3,IconDice4:icons.IconDice4,IconDice5:icons.IconDice5,IconDice6:icons.IconDice6,IconDice:icons.IconDice,IconDimensions:icons.IconDimensions,IconDirectionHorizontal:icons.IconDirectionHorizontal,IconDirectionSignOff:icons.IconDirectionSignOff,IconDirectionSign:icons.IconDirectionSign,IconDirection:icons.IconDirection,IconDirectionsOff:icons.IconDirectionsOff,IconDirections:icons.IconDirections,IconDisabled2:icons.IconDisabled2,IconDisabledOff:icons.IconDisabledOff,IconDisabled:icons.IconDisabled,IconDiscGolf:icons.IconDiscGolf,IconDiscOff:icons.IconDiscOff,IconDisc:icons.IconDisc,IconDiscount2Off:icons.IconDiscount2Off,IconDiscount2:icons.IconDiscount2,IconDiscountCheck:icons.IconDiscountCheck,IconDiscountOff:icons.IconDiscountOff,IconDiscount:icons.IconDiscount,IconDivide:icons.IconDivide,IconDna2Off:icons.IconDna2Off,IconDna2:icons.IconDna2,IconDnaOff:icons.IconDnaOff,IconDna:icons.IconDna,IconDogBowl:icons.IconDogBowl,IconDoorEnter:icons.IconDoorEnter,IconDoorExit:icons.IconDoorExit,IconDoorOff:icons.IconDoorOff,IconDoor:icons.IconDoor,IconDotsCircleHorizontal:icons.IconDotsCircleHorizontal,IconDotsDiagonal2:icons.IconDotsDiagonal2,IconDotsDiagonal:icons.IconDotsDiagonal,IconDotsVertical:icons.IconDotsVertical,IconDots:icons.IconDots,IconDownloadOff:icons.IconDownloadOff,IconDownload:icons.IconDownload,IconDragDrop2:icons.IconDragDrop2,IconDragDrop:icons.IconDragDrop,IconDroneOff:icons.IconDroneOff,IconDrone:icons.IconDrone,IconDropCircle:icons.IconDropCircle,IconDropletFilled2:icons.IconDropletFilled2,IconDropletFilled:icons.IconDropletFilled,IconDropletHalf2:icons.IconDropletHalf2,IconDropletHalf:icons.IconDropletHalf,IconDropletOff:icons.IconDropletOff,IconDroplet:icons.IconDroplet,IconEarOff:icons.IconEarOff,IconEar:icons.IconEar,IconEditCircleOff:icons.IconEditCircleOff,IconEditCircle:icons.IconEditCircle,IconEditOff:icons.IconEditOff,IconEdit:icons.IconEdit,IconEggCracked:icons.IconEggCracked,IconEggFried:icons.IconEggFried,IconEggOff:icons.IconEggOff,IconEgg:icons.IconEgg,IconElevatorOff:icons.IconElevatorOff,IconElevator:icons.IconElevator,IconEmergencyBed:icons.IconEmergencyBed,IconEmpathizeOff:icons.IconEmpathizeOff,IconEmpathize:icons.IconEmpathize,IconEmphasis:icons.IconEmphasis,IconEngineOff:icons.IconEngineOff,IconEngine:icons.IconEngine,IconEqualNot:icons.IconEqualNot,IconEqual:icons.IconEqual,IconEraserOff:icons.IconEraserOff,IconEraser:icons.IconEraser,IconError404Off:icons.IconError404Off,IconError404:icons.IconError404,IconExchangeOff:icons.IconExchangeOff,IconExchange:icons.IconExchange,IconExclamationMarkOff:icons.IconExclamationMarkOff,IconExclamationMark:icons.IconExclamationMark,IconExplicitOff:icons.IconExplicitOff,IconExplicit:icons.IconExplicit,IconExposure0:icons.IconExposure0,IconExposureMinus1:icons.IconExposureMinus1,IconExposureMinus2:icons.IconExposureMinus2,IconExposureOff:icons.IconExposureOff,IconExposurePlus1:icons.IconExposurePlus1,IconExposurePlus2:icons.IconExposurePlus2,IconExposure:icons.IconExposure,IconExternalLinkOff:icons.IconExternalLinkOff,IconExternalLink:icons.IconExternalLink,IconEyeCheck:icons.IconEyeCheck,IconEyeOff:icons.IconEyeOff,IconEyeTable:icons.IconEyeTable,IconEye:icons.IconEye,IconEyeglass2:icons.IconEyeglass2,IconEyeglassOff:icons.IconEyeglassOff,IconEyeglass:icons.IconEyeglass,IconFaceIdError:icons.IconFaceIdError,IconFaceId:icons.IconFaceId,IconFaceMaskOff:icons.IconFaceMaskOff,IconFaceMask:icons.IconFaceMask,IconFall:icons.IconFall,IconFeatherOff:icons.IconFeatherOff,IconFeather:icons.IconFeather,IconFenceOff:icons.IconFenceOff,IconFence:icons.IconFence,IconFidgetSpinner:icons.IconFidgetSpinner,IconFile3d:icons.IconFile3d,IconFileAlert:icons.IconFileAlert,IconFileAnalytics:icons.IconFileAnalytics,IconFileArrowLeft:icons.IconFileArrowLeft,IconFileArrowRight:icons.IconFileArrowRight,IconFileBarcode:icons.IconFileBarcode,IconFileCertificate:icons.IconFileCertificate,IconFileChart:icons.IconFileChart,IconFileCheck:icons.IconFileCheck,IconFileCode2:icons.IconFileCode2,IconFileCode:icons.IconFileCode,IconFileDatabase:icons.IconFileDatabase,IconFileDescription:icons.IconFileDescription,IconFileDiff:icons.IconFileDiff,IconFileDigit:icons.IconFileDigit,IconFileDislike:icons.IconFileDislike,IconFileDollar:icons.IconFileDollar,IconFileDots:icons.IconFileDots,IconFileDownload:icons.IconFileDownload,IconFileEuro:icons.IconFileEuro,IconFileExport:icons.IconFileExport,IconFileHorizontal:icons.IconFileHorizontal,IconFileImport:icons.IconFileImport,IconFileInfo:icons.IconFileInfo,IconFileInvoice:icons.IconFileInvoice,IconFileLike:icons.IconFileLike,IconFileMinus:icons.IconFileMinus,IconFileMusic:icons.IconFileMusic,IconFileOff:icons.IconFileOff,IconFileOrientation:icons.IconFileOrientation,IconFilePencil:icons.IconFilePencil,IconFilePhone:icons.IconFilePhone,IconFilePlus:icons.IconFilePlus,IconFilePower:icons.IconFilePower,IconFileReport:icons.IconFileReport,IconFileRss:icons.IconFileRss,IconFileScissors:icons.IconFileScissors,IconFileSearch:icons.IconFileSearch,IconFileSettings:icons.IconFileSettings,IconFileShredder:icons.IconFileShredder,IconFileSignal:icons.IconFileSignal,IconFileSpreadsheet:icons.IconFileSpreadsheet,IconFileStar:icons.IconFileStar,IconFileSymlink:icons.IconFileSymlink,IconFileText:icons.IconFileText,IconFileTime:icons.IconFileTime,IconFileTypography:icons.IconFileTypography,IconFileUnknown:icons.IconFileUnknown,IconFileUpload:icons.IconFileUpload,IconFileVector:icons.IconFileVector,IconFileX:icons.IconFileX,IconFileZip:icons.IconFileZip,IconFile:icons.IconFile,IconFilesOff:icons.IconFilesOff,IconFiles:icons.IconFiles,IconFilterOff:icons.IconFilterOff,IconFilter:icons.IconFilter,IconFingerprintOff:icons.IconFingerprintOff,IconFingerprint:icons.IconFingerprint,IconFireHydrantOff:icons.IconFireHydrantOff,IconFireHydrant:icons.IconFireHydrant,IconFiretruck:icons.IconFiretruck,IconFirstAidKitOff:icons.IconFirstAidKitOff,IconFirstAidKit:icons.IconFirstAidKit,IconFishBone:icons.IconFishBone,IconFishHookOff:icons.IconFishHookOff,IconFishHook:icons.IconFishHook,IconFishOff:icons.IconFishOff,IconFish:icons.IconFish,IconFlag2Off:icons.IconFlag2Off,IconFlag2:icons.IconFlag2,IconFlag3:icons.IconFlag3,IconFlagOff:icons.IconFlagOff,IconFlag:icons.IconFlag,IconFlameOff:icons.IconFlameOff,IconFlame:icons.IconFlame,IconFlare:icons.IconFlare,IconFlask2Off:icons.IconFlask2Off,IconFlask2:icons.IconFlask2,IconFlaskOff:icons.IconFlaskOff,IconFlask:icons.IconFlask,IconFlipHorizontal:icons.IconFlipHorizontal,IconFlipVertical:icons.IconFlipVertical,IconFloatCenter:icons.IconFloatCenter,IconFloatLeft:icons.IconFloatLeft,IconFloatNone:icons.IconFloatNone,IconFloatRight:icons.IconFloatRight,IconFlowerOff:icons.IconFlowerOff,IconFlower:icons.IconFlower,IconFocus2:icons.IconFocus2,IconFocusCentered:icons.IconFocusCentered,IconFocus:icons.IconFocus,IconFoldDown:icons.IconFoldDown,IconFoldUp:icons.IconFoldUp,IconFold:icons.IconFold,IconFolderMinus:icons.IconFolderMinus,IconFolderOff:icons.IconFolderOff,IconFolderPlus:icons.IconFolderPlus,IconFolderX:icons.IconFolderX,IconFolder:icons.IconFolder,IconFoldersOff:icons.IconFoldersOff,IconFolders:icons.IconFolders,IconForbid2:icons.IconForbid2,IconForbid:icons.IconForbid,IconForklift:icons.IconForklift,IconForms:icons.IconForms,IconFountainOff:icons.IconFountainOff,IconFountain:icons.IconFountain,IconFrameOff:icons.IconFrameOff,IconFrame:icons.IconFrame,IconFreeRights:icons.IconFreeRights,IconFridgeOff:icons.IconFridgeOff,IconFridge:icons.IconFridge,IconFriendsOff:icons.IconFriendsOff,IconFriends:icons.IconFriends,IconFunctionOff:icons.IconFunctionOff,IconFunction:icons.IconFunction,IconGardenCartOff:icons.IconGardenCartOff,IconGardenCart:icons.IconGardenCart,IconGasStationOff:icons.IconGasStationOff,IconGasStation:icons.IconGasStation,IconGaugeOff:icons.IconGaugeOff,IconGauge:icons.IconGauge,IconGavel:icons.IconGavel,IconGenderAgender:icons.IconGenderAgender,IconGenderAndrogyne:icons.IconGenderAndrogyne,IconGenderBigender:icons.IconGenderBigender,IconGenderDemiboy:icons.IconGenderDemiboy,IconGenderDemigirl:icons.IconGenderDemigirl,IconGenderEpicene:icons.IconGenderEpicene,IconGenderFemale:icons.IconGenderFemale,IconGenderFemme:icons.IconGenderFemme,IconGenderGenderfluid:icons.IconGenderGenderfluid,IconGenderGenderless:icons.IconGenderGenderless,IconGenderGenderqueer:icons.IconGenderGenderqueer,IconGenderHermaphrodite:icons.IconGenderHermaphrodite,IconGenderIntergender:icons.IconGenderIntergender,IconGenderMale:icons.IconGenderMale,IconGenderNeutrois:icons.IconGenderNeutrois,IconGenderThird:icons.IconGenderThird,IconGenderTransgender:icons.IconGenderTransgender,IconGenderTrasvesti:icons.IconGenderTrasvesti,IconGeometry:icons.IconGeometry,IconGhostOff:icons.IconGhostOff,IconGhost:icons.IconGhost,IconGif:icons.IconGif,IconGiftCard:icons.IconGiftCard,IconGiftOff:icons.IconGiftOff,IconGift:icons.IconGift,IconGitBranch:icons.IconGitBranch,IconGitCommit:icons.IconGitCommit,IconGitCompare:icons.IconGitCompare,IconGitFork:icons.IconGitFork,IconGitMerge:icons.IconGitMerge,IconGitPullRequestClosed:icons.IconGitPullRequestClosed,IconGitPullRequestDraft:icons.IconGitPullRequestDraft,IconGitPullRequest:icons.IconGitPullRequest,IconGizmo:icons.IconGizmo,IconGlassFull:icons.IconGlassFull,IconGlassOff:icons.IconGlassOff,IconGlass:icons.IconGlass,IconGlobeOff:icons.IconGlobeOff,IconGlobe:icons.IconGlobe,IconGolfOff:icons.IconGolfOff,IconGolf:icons.IconGolf,IconGps:icons.IconGps,IconGradienter:icons.IconGradienter,IconGrain:icons.IconGrain,IconGraphOff:icons.IconGraphOff,IconGraph:icons.IconGraph,IconGridDots:icons.IconGridDots,IconGridPattern:icons.IconGridPattern,IconGrillFork:icons.IconGrillFork,IconGrillOff:icons.IconGrillOff,IconGrillSpatula:icons.IconGrillSpatula,IconGrill:icons.IconGrill,IconGripHorizontal:icons.IconGripHorizontal,IconGripVertical:icons.IconGripVertical,IconGrowth:icons.IconGrowth,IconH1:icons.IconH1,IconH2:icons.IconH2,IconH3:icons.IconH3,IconH4:icons.IconH4,IconH5:icons.IconH5,IconH6:icons.IconH6,IconHammerOff:icons.IconHammerOff,IconHammer:icons.IconHammer,IconHandClick:icons.IconHandClick,IconHandFingerOff:icons.IconHandFingerOff,IconHandFinger:icons.IconHandFinger,IconHandGrab:icons.IconHandGrab,IconHandLittleFinger:icons.IconHandLittleFinger,IconHandMiddleFinger:icons.IconHandMiddleFinger,IconHandMove:icons.IconHandMove,IconHandOff:icons.IconHandOff,IconHandRingFinger:icons.IconHandRingFinger,IconHandRock:icons.IconHandRock,IconHandStop:icons.IconHandStop,IconHandThreeFingers:icons.IconHandThreeFingers,IconHandTwoFingers:icons.IconHandTwoFingers,IconHanger2:icons.IconHanger2,IconHangerOff:icons.IconHangerOff,IconHanger:icons.IconHanger,IconHash:icons.IconHash,IconHaze:icons.IconHaze,IconHeadingOff:icons.IconHeadingOff,IconHeading:icons.IconHeading,IconHeadphonesOff:icons.IconHeadphonesOff,IconHeadphones:icons.IconHeadphones,IconHeadsetOff:icons.IconHeadsetOff,IconHeadset:icons.IconHeadset,IconHealthRecognition:icons.IconHealthRecognition,IconHeartBroken:icons.IconHeartBroken,IconHeartHandshake:icons.IconHeartHandshake,IconHeartMinus:icons.IconHeartMinus,IconHeartOff:icons.IconHeartOff,IconHeartPlus:icons.IconHeartPlus,IconHeartRateMonitor:icons.IconHeartRateMonitor,IconHeart:icons.IconHeart,IconHeartbeat:icons.IconHeartbeat,IconHeartsOff:icons.IconHeartsOff,IconHearts:icons.IconHearts,IconHelicopterLanding:icons.IconHelicopterLanding,IconHelicopter:icons.IconHelicopter,IconHelmetOff:icons.IconHelmetOff,IconHelmet:icons.IconHelmet,IconHelpOff:icons.IconHelpOff,IconHelp:icons.IconHelp,IconHexagon0:icons.IconHexagon0,IconHexagon1:icons.IconHexagon1,IconHexagon2:icons.IconHexagon2,IconHexagon3:icons.IconHexagon3,IconHexagon4:icons.IconHexagon4,IconHexagon5:icons.IconHexagon5,IconHexagon6:icons.IconHexagon6,IconHexagon7:icons.IconHexagon7,IconHexagon8:icons.IconHexagon8,IconHexagon9:icons.IconHexagon9,IconHexagonA:icons.IconHexagonA,IconHexagonB:icons.IconHexagonB,IconHexagonC:icons.IconHexagonC,IconHexagonD:icons.IconHexagonD,IconHexagonE:icons.IconHexagonE,IconHexagonF:icons.IconHexagonF,IconHexagonG:icons.IconHexagonG,IconHexagonH:icons.IconHexagonH,IconHexagonI:icons.IconHexagonI,IconHexagonJ:icons.IconHexagonJ,IconHexagonK:icons.IconHexagonK,IconHexagonL:icons.IconHexagonL,IconHexagonM:icons.IconHexagonM,IconHexagonN:icons.IconHexagonN,IconHexagonO:icons.IconHexagonO,IconHexagonOff:icons.IconHexagonOff,IconHexagonP:icons.IconHexagonP,IconHexagonQ:icons.IconHexagonQ,IconHexagonR:icons.IconHexagonR,IconHexagonS:icons.IconHexagonS,IconHexagonT:icons.IconHexagonT,IconHexagonU:icons.IconHexagonU,IconHexagonW:icons.IconHexagonW,IconHexagonX:icons.IconHexagonX,IconHexagonY:icons.IconHexagonY,IconHexagonZ:icons.IconHexagonZ,IconHexagon:icons.IconHexagon,IconHexagonsOff:icons.IconHexagonsOff,IconHexagons:icons.IconHexagons,IconHierarchy2:icons.IconHierarchy2,IconHierarchy3:icons.IconHierarchy3,IconHierarchyOff:icons.IconHierarchyOff,IconHierarchy:icons.IconHierarchy,IconHighlightOff:icons.IconHighlightOff,IconHighlight:icons.IconHighlight,IconHistoryOff:icons.IconHistoryOff,IconHistoryToggle:icons.IconHistoryToggle,IconHistory:icons.IconHistory,IconHome2:icons.IconHome2,IconHomeBolt:icons.IconHomeBolt,IconHomeCancel:icons.IconHomeCancel,IconHomeCheck:icons.IconHomeCheck,IconHomeCog:icons.IconHomeCog,IconHomeDollar:icons.IconHomeDollar,IconHomeDot:icons.IconHomeDot,IconHomeDown:icons.IconHomeDown,IconHomeEco:icons.IconHomeEco,IconHomeEdit:icons.IconHomeEdit,IconHomeExclamation:icons.IconHomeExclamation,IconHomeHeart:icons.IconHomeHeart,IconHomeLink:icons.IconHomeLink,IconHomeMinus:icons.IconHomeMinus,IconHomeMove:icons.IconHomeMove,IconHomeOff:icons.IconHomeOff,IconHomePlus:icons.IconHomePlus,IconHomeQuestion:icons.IconHomeQuestion,IconHomeRibbon:icons.IconHomeRibbon,IconHomeSearch:icons.IconHomeSearch,IconHomeShare:icons.IconHomeShare,IconHomeShield:icons.IconHomeShield,IconHomeSignal:icons.IconHomeSignal,IconHomeStar:icons.IconHomeStar,IconHomeStats:icons.IconHomeStats,IconHomeUp:icons.IconHomeUp,IconHomeX:icons.IconHomeX,IconHome:icons.IconHome,IconHorseToy:icons.IconHorseToy,IconHotelService:icons.IconHotelService,IconHourglassEmpty:icons.IconHourglassEmpty,IconHourglassHigh:icons.IconHourglassHigh,IconHourglassLow:icons.IconHourglassLow,IconHourglassOff:icons.IconHourglassOff,IconHourglass:icons.IconHourglass,IconIceCream2:icons.IconIceCream2,IconIceCreamOff:icons.IconIceCreamOff,IconIceCream:icons.IconIceCream,IconIceSkating:icons.IconIceSkating,IconIconsOff:icons.IconIconsOff,IconIcons:icons.IconIcons,IconIdBadge2:icons.IconIdBadge2,IconIdBadgeOff:icons.IconIdBadgeOff,IconIdBadge:icons.IconIdBadge,IconIdOff:icons.IconIdOff,IconId:icons.IconId,IconInboxOff:icons.IconInboxOff,IconInbox:icons.IconInbox,IconIndentDecrease:icons.IconIndentDecrease,IconIndentIncrease:icons.IconIndentIncrease,IconInfinityOff:icons.IconInfinityOff,IconInfinity:icons.IconInfinity,IconInfoCircle:icons.IconInfoCircle,IconInfoSquare:icons.IconInfoSquare,IconInputSearch:icons.IconInputSearch,IconIroning1:icons.IconIroning1,IconIroning2:icons.IconIroning2,IconIroning3:icons.IconIroning3,IconIroningOff:icons.IconIroningOff,IconIroningSteamOff:icons.IconIroningSteamOff,IconIroningSteam:icons.IconIroningSteam,IconItalic:icons.IconItalic,IconJewishStar:icons.IconJewishStar,IconJpg:icons.IconJpg,IconJumpRope:icons.IconJumpRope,IconKarate:icons.IconKarate,IconKayak:icons.IconKayak,IconKering:icons.IconKering,IconKeyOff:icons.IconKeyOff,IconKey:icons.IconKey,IconKeyboardHide:icons.IconKeyboardHide,IconKeyboardOff:icons.IconKeyboardOff,IconKeyboardShow:icons.IconKeyboardShow,IconKeyboard:icons.IconKeyboard,IconLadderOff:icons.IconLadderOff,IconLadder:icons.IconLadder,IconLamp2:icons.IconLamp2,IconLampOff:icons.IconLampOff,IconLamp:icons.IconLamp,IconLanguageHiragana:icons.IconLanguageHiragana,IconLanguageKatakana:icons.IconLanguageKatakana,IconLanguageOff:icons.IconLanguageOff,IconLanguage:icons.IconLanguage,IconLassoOff:icons.IconLassoOff,IconLassoPolygon:icons.IconLassoPolygon,IconLasso:icons.IconLasso,IconLayersDifference:icons.IconLayersDifference,IconLayersIntersect2:icons.IconLayersIntersect2,IconLayersIntersect:icons.IconLayersIntersect,IconLayersLinked:icons.IconLayersLinked,IconLayersOff:icons.IconLayersOff,IconLayersSubtract:icons.IconLayersSubtract,IconLayersUnion:icons.IconLayersUnion,IconLayout2:icons.IconLayout2,IconLayoutAlignBottom:icons.IconLayoutAlignBottom,IconLayoutAlignCenter:icons.IconLayoutAlignCenter,IconLayoutAlignLeft:icons.IconLayoutAlignLeft,IconLayoutAlignMiddle:icons.IconLayoutAlignMiddle,IconLayoutAlignRight:icons.IconLayoutAlignRight,IconLayoutAlignTop:icons.IconLayoutAlignTop,IconLayoutBoardSplit:icons.IconLayoutBoardSplit,IconLayoutBoard:icons.IconLayoutBoard,IconLayoutBottombarCollapse:icons.IconLayoutBottombarCollapse,IconLayoutBottombarExpand:icons.IconLayoutBottombarExpand,IconLayoutBottombar:icons.IconLayoutBottombar,IconLayoutCards:icons.IconLayoutCards,IconLayoutCollage:icons.IconLayoutCollage,IconLayoutColumns:icons.IconLayoutColumns,IconLayoutDashboard:icons.IconLayoutDashboard,IconLayoutDistributeHorizontal:icons.IconLayoutDistributeHorizontal,IconLayoutDistributeVertical:icons.IconLayoutDistributeVertical,IconLayoutGridAdd:icons.IconLayoutGridAdd,IconLayoutGrid:icons.IconLayoutGrid,IconLayoutKanban:icons.IconLayoutKanban,IconLayoutList:icons.IconLayoutList,IconLayoutNavbarCollapse:icons.IconLayoutNavbarCollapse,IconLayoutNavbarExpand:icons.IconLayoutNavbarExpand,IconLayoutNavbar:icons.IconLayoutNavbar,IconLayoutOff:icons.IconLayoutOff,IconLayoutRows:icons.IconLayoutRows,IconLayoutSidebarLeftCollapse:icons.IconLayoutSidebarLeftCollapse,IconLayoutSidebarLeftExpand:icons.IconLayoutSidebarLeftExpand,IconLayoutSidebarRightCollapse:icons.IconLayoutSidebarRightCollapse,IconLayoutSidebarRightExpand:icons.IconLayoutSidebarRightExpand,IconLayoutSidebarRight:icons.IconLayoutSidebarRight,IconLayoutSidebar:icons.IconLayoutSidebar,IconLayout:icons.IconLayout,IconLeafOff:icons.IconLeafOff,IconLeaf:icons.IconLeaf,IconLegoOff:icons.IconLegoOff,IconLego:icons.IconLego,IconLemon2:icons.IconLemon2,IconLemon:icons.IconLemon,IconLetterA:icons.IconLetterA,IconLetterB:icons.IconLetterB,IconLetterC:icons.IconLetterC,IconLetterCaseLower:icons.IconLetterCaseLower,IconLetterCaseToggle:icons.IconLetterCaseToggle,IconLetterCaseUpper:icons.IconLetterCaseUpper,IconLetterCase:icons.IconLetterCase,IconLetterD:icons.IconLetterD,IconLetterE:icons.IconLetterE,IconLetterF:icons.IconLetterF,IconLetterG:icons.IconLetterG,IconLetterH:icons.IconLetterH,IconLetterI:icons.IconLetterI,IconLetterJ:icons.IconLetterJ,IconLetterK:icons.IconLetterK,IconLetterL:icons.IconLetterL,IconLetterM:icons.IconLetterM,IconLetterN:icons.IconLetterN,IconLetterO:icons.IconLetterO,IconLetterP:icons.IconLetterP,IconLetterQ:icons.IconLetterQ,IconLetterR:icons.IconLetterR,IconLetterS:icons.IconLetterS,IconLetterSpacing:icons.IconLetterSpacing,IconLetterT:icons.IconLetterT,IconLetterU:icons.IconLetterU,IconLetterV:icons.IconLetterV,IconLetterW:icons.IconLetterW,IconLetterX:icons.IconLetterX,IconLetterY:icons.IconLetterY,IconLetterZ:icons.IconLetterZ,IconLicenseOff:icons.IconLicenseOff,IconLicense:icons.IconLicense,IconLifebuoyOff:icons.IconLifebuoyOff,IconLifebuoy:icons.IconLifebuoy,IconLineDashed:icons.IconLineDashed,IconLineDotted:icons.IconLineDotted,IconLineHeight:icons.IconLineHeight,IconLine:icons.IconLine,IconLinkOff:icons.IconLinkOff,IconLink:icons.IconLink,IconListCheck:icons.IconListCheck,IconListDetails:icons.IconListDetails,IconListNumbers:icons.IconListNumbers,IconListSearch:icons.IconListSearch,IconList:icons.IconList,IconLivePhotoOff:icons.IconLivePhotoOff,IconLivePhoto:icons.IconLivePhoto,IconLiveView:icons.IconLiveView,IconLoader2:icons.IconLoader2,IconLoaderQuarter:icons.IconLoaderQuarter,IconLoader:icons.IconLoader,IconLocationBroken:icons.IconLocationBroken,IconLocationOff:icons.IconLocationOff,IconLocation:icons.IconLocation,IconLockAccessOff:icons.IconLockAccessOff,IconLockAccess:icons.IconLockAccess,IconLockOff:icons.IconLockOff,IconLockOpenOff:icons.IconLockOpenOff,IconLockOpen:icons.IconLockOpen,IconLockSquare:icons.IconLockSquare,IconLock:icons.IconLock,IconLogicAnd:icons.IconLogicAnd,IconLogicBuffer:icons.IconLogicBuffer,IconLogicNand:icons.IconLogicNand,IconLogicNor:icons.IconLogicNor,IconLogicNot:icons.IconLogicNot,IconLogicOr:icons.IconLogicOr,IconLogicXnor:icons.IconLogicXnor,IconLogicXor:icons.IconLogicXor,IconLogin:icons.IconLogin,IconLogout:icons.IconLogout,IconLollipopOff:icons.IconLollipopOff,IconLollipop:icons.IconLollipop,IconLuggageOff:icons.IconLuggageOff,IconLuggage:icons.IconLuggage,IconLungsOff:icons.IconLungsOff,IconLungs:icons.IconLungs,IconMacroOff:icons.IconMacroOff,IconMacro:icons.IconMacro,IconMagnetOff:icons.IconMagnetOff,IconMagnet:icons.IconMagnet,IconMailFast:icons.IconMailFast,IconMailForward:icons.IconMailForward,IconMailOff:icons.IconMailOff,IconMailOpened:icons.IconMailOpened,IconMail:icons.IconMail,IconMailboxOff:icons.IconMailboxOff,IconMailbox:icons.IconMailbox,IconMan:icons.IconMan,IconManualGearbox:icons.IconManualGearbox,IconMap2:icons.IconMap2,IconMapOff:icons.IconMapOff,IconMapPinOff:icons.IconMapPinOff,IconMapPin:icons.IconMapPin,IconMapPins:icons.IconMapPins,IconMapSearch:icons.IconMapSearch,IconMap:icons.IconMap,IconMarkdownOff:icons.IconMarkdownOff,IconMarkdown:icons.IconMarkdown,IconMarquee2:icons.IconMarquee2,IconMarqueeOff:icons.IconMarqueeOff,IconMarquee:icons.IconMarquee,IconMars:icons.IconMars,IconMaskOff:icons.IconMaskOff,IconMask:icons.IconMask,IconMasksTheaterOff:icons.IconMasksTheaterOff,IconMasksTheater:icons.IconMasksTheater,IconMassage:icons.IconMassage,IconMathAvg:icons.IconMathAvg,IconMathFunctionOff:icons.IconMathFunctionOff,IconMathFunction:icons.IconMathFunction,IconMathMax:icons.IconMathMax,IconMathMin:icons.IconMathMin,IconMathOff:icons.IconMathOff,IconMathSymbols:icons.IconMathSymbols,IconMath:icons.IconMath,IconMaximizeOff:icons.IconMaximizeOff,IconMaximize:icons.IconMaximize,IconMeatOff:icons.IconMeatOff,IconMeat:icons.IconMeat,IconMedal2:icons.IconMedal2,IconMedal:icons.IconMedal,IconMedicalCrossOff:icons.IconMedicalCrossOff,IconMedicalCross:icons.IconMedicalCross,IconMedicineSyrup:icons.IconMedicineSyrup,IconMenu2:icons.IconMenu2,IconMenu:icons.IconMenu,IconMessage2Code:icons.IconMessage2Code,IconMessage2Off:icons.IconMessage2Off,IconMessage2Share:icons.IconMessage2Share,IconMessage2:icons.IconMessage2,IconMessageChatbot:icons.IconMessageChatbot,IconMessageCircle2:icons.IconMessageCircle2,IconMessageCircleOff:icons.IconMessageCircleOff,IconMessageCircle:icons.IconMessageCircle,IconMessageCode:icons.IconMessageCode,IconMessageDots:icons.IconMessageDots,IconMessageForward:icons.IconMessageForward,IconMessageLanguage:icons.IconMessageLanguage,IconMessageOff:icons.IconMessageOff,IconMessagePlus:icons.IconMessagePlus,IconMessageReport:icons.IconMessageReport,IconMessageShare:icons.IconMessageShare,IconMessage:icons.IconMessage,IconMessagesOff:icons.IconMessagesOff,IconMessages:icons.IconMessages,IconMeteorOff:icons.IconMeteorOff,IconMeteor:icons.IconMeteor,IconMickey:icons.IconMickey,IconMicrophone2Off:icons.IconMicrophone2Off,IconMicrophone2:icons.IconMicrophone2,IconMicrophoneOff:icons.IconMicrophoneOff,IconMicrophone:icons.IconMicrophone,IconMicroscopeOff:icons.IconMicroscopeOff,IconMicroscope:icons.IconMicroscope,IconMicrowaveOff:icons.IconMicrowaveOff,IconMicrowave:icons.IconMicrowave,IconMilitaryAward:icons.IconMilitaryAward,IconMilitaryRank:icons.IconMilitaryRank,IconMilkOff:icons.IconMilkOff,IconMilk:icons.IconMilk,IconMinimize:icons.IconMinimize,IconMinusVertical:icons.IconMinusVertical,IconMinus:icons.IconMinus,IconMistOff:icons.IconMistOff,IconMist:icons.IconMist,IconMoodAngry:icons.IconMoodAngry,IconMoodAnnoyed2:icons.IconMoodAnnoyed2,IconMoodAnnoyed:icons.IconMoodAnnoyed,IconMoodBoy:icons.IconMoodBoy,IconMoodConfuzed:icons.IconMoodConfuzed,IconMoodCrazyHappy:icons.IconMoodCrazyHappy,IconMoodCry:icons.IconMoodCry,IconMoodEmpty:icons.IconMoodEmpty,IconMoodHappy:icons.IconMoodHappy,IconMoodKid:icons.IconMoodKid,IconMoodLookLeft:icons.IconMoodLookLeft,IconMoodLookRight:icons.IconMoodLookRight,IconMoodNerd:icons.IconMoodNerd,IconMoodNervous:icons.IconMoodNervous,IconMoodNeutral:icons.IconMoodNeutral,IconMoodOff:icons.IconMoodOff,IconMoodSad2:icons.IconMoodSad2,IconMoodSadDizzy:icons.IconMoodSadDizzy,IconMoodSadSquint:icons.IconMoodSadSquint,IconMoodSad:icons.IconMoodSad,IconMoodSick:icons.IconMoodSick,IconMoodSilence:icons.IconMoodSilence,IconMoodSing:icons.IconMoodSing,IconMoodSmileBeam:icons.IconMoodSmileBeam,IconMoodSmileDizzy:icons.IconMoodSmileDizzy,IconMoodSmile:icons.IconMoodSmile,IconMoodSuprised:icons.IconMoodSuprised,IconMoodTongueWink2:icons.IconMoodTongueWink2,IconMoodTongueWink:icons.IconMoodTongueWink,IconMoodTongue:icons.IconMoodTongue,IconMoodUnamused:icons.IconMoodUnamused,IconMoodWink2:icons.IconMoodWink2,IconMoodWink:icons.IconMoodWink,IconMoodWrrr:icons.IconMoodWrrr,IconMoodXd:icons.IconMoodXd,IconMoon2:icons.IconMoon2,IconMoonOff:icons.IconMoonOff,IconMoonStars:icons.IconMoonStars,IconMoon:icons.IconMoon,IconMoped:icons.IconMoped,IconMotorbike:icons.IconMotorbike,IconMountainOff:icons.IconMountainOff,IconMountain:icons.IconMountain,IconMouse2:icons.IconMouse2,IconMouseOff:icons.IconMouseOff,IconMouse:icons.IconMouse,IconMovieOff:icons.IconMovieOff,IconMovie:icons.IconMovie,IconMugOff:icons.IconMugOff,IconMug:icons.IconMug,IconMultiplier05x:icons.IconMultiplier05x,IconMultiplier15x:icons.IconMultiplier15x,IconMultiplier1x:icons.IconMultiplier1x,IconMultiplier2x:icons.IconMultiplier2x,IconMushroomOff:icons.IconMushroomOff,IconMushroom:icons.IconMushroom,IconMusicOff:icons.IconMusicOff,IconMusic:icons.IconMusic,IconNavigationOff:icons.IconNavigationOff,IconNavigation:icons.IconNavigation,IconNetworkOff:icons.IconNetworkOff,IconNetwork:icons.IconNetwork,IconNewSection:icons.IconNewSection,IconNewsOff:icons.IconNewsOff,IconNews:icons.IconNews,IconNfcOff:icons.IconNfcOff,IconNfc:icons.IconNfc,IconNoCopyright:icons.IconNoCopyright,IconNoCreativeCommons:icons.IconNoCreativeCommons,IconNoDerivatives:icons.IconNoDerivatives,IconNorthStar:icons.IconNorthStar,IconNoteOff:icons.IconNoteOff,IconNote:icons.IconNote,IconNotebookOff:icons.IconNotebookOff,IconNotebook:icons.IconNotebook,IconNotesOff:icons.IconNotesOff,IconNotes:icons.IconNotes,IconNotificationOff:icons.IconNotificationOff,IconNotification:icons.IconNotification,IconNumber0:icons.IconNumber0,IconNumber1:icons.IconNumber1,IconNumber2:icons.IconNumber2,IconNumber3:icons.IconNumber3,IconNumber4:icons.IconNumber4,IconNumber5:icons.IconNumber5,IconNumber6:icons.IconNumber6,IconNumber7:icons.IconNumber7,IconNumber8:icons.IconNumber8,IconNumber9:icons.IconNumber9,IconNumber:icons.IconNumber,IconNumbers:icons.IconNumbers,IconNurse:icons.IconNurse,IconOctagonOff:icons.IconOctagonOff,IconOctagon:icons.IconOctagon,IconOld:icons.IconOld,IconOlympicsOff:icons.IconOlympicsOff,IconOlympics:icons.IconOlympics,IconOmega:icons.IconOmega,IconOutbound:icons.IconOutbound,IconOutlet:icons.IconOutlet,IconOvalVertical:icons.IconOvalVertical,IconOval:icons.IconOval,IconOverline:icons.IconOverline,IconPackageOff:icons.IconPackageOff,IconPackage:icons.IconPackage,IconPackages:icons.IconPackages,IconPackgeExport:icons.IconPackgeExport,IconPackgeImport:icons.IconPackgeImport,IconPacman:icons.IconPacman,IconPageBreak:icons.IconPageBreak,IconPaintOff:icons.IconPaintOff,IconPaint:icons.IconPaint,IconPaletteOff:icons.IconPaletteOff,IconPalette:icons.IconPalette,IconPanoramaHorizontalOff:icons.IconPanoramaHorizontalOff,IconPanoramaHorizontal:icons.IconPanoramaHorizontal,IconPanoramaVerticalOff:icons.IconPanoramaVerticalOff,IconPanoramaVertical:icons.IconPanoramaVertical,IconPaperBagOff:icons.IconPaperBagOff,IconPaperBag:icons.IconPaperBag,IconPaperclip:icons.IconPaperclip,IconParachuteOff:icons.IconParachuteOff,IconParachute:icons.IconParachute,IconParenthesesOff:icons.IconParenthesesOff,IconParentheses:icons.IconParentheses,IconParkingOff:icons.IconParkingOff,IconParking:icons.IconParking,IconPawOff:icons.IconPawOff,IconPaw:icons.IconPaw,IconPeace:icons.IconPeace,IconPencilMinus:icons.IconPencilMinus,IconPencilOff:icons.IconPencilOff,IconPencilPlus:icons.IconPencilPlus,IconPencil:icons.IconPencil,IconPennant2:icons.IconPennant2,IconPennantOff:icons.IconPennantOff,IconPennant:icons.IconPennant,IconPentagonOff:icons.IconPentagonOff,IconPentagon:icons.IconPentagon,IconPepperOff:icons.IconPepperOff,IconPepper:icons.IconPepper,IconPercentage:icons.IconPercentage,IconPerspectiveOff:icons.IconPerspectiveOff,IconPerspective:icons.IconPerspective,IconPhoneCall:icons.IconPhoneCall,IconPhoneCalling:icons.IconPhoneCalling,IconPhoneCheck:icons.IconPhoneCheck,IconPhoneIncoming:icons.IconPhoneIncoming,IconPhoneOff:icons.IconPhoneOff,IconPhoneOutgoing:icons.IconPhoneOutgoing,IconPhonePause:icons.IconPhonePause,IconPhonePlus:icons.IconPhonePlus,IconPhoneX:icons.IconPhoneX,IconPhone:icons.IconPhone,IconPhotoCancel:icons.IconPhotoCancel,IconPhotoCheck:icons.IconPhotoCheck,IconPhotoDown:icons.IconPhotoDown,IconPhotoEdit:icons.IconPhotoEdit,IconPhotoHeart:icons.IconPhotoHeart,IconPhotoMinus:icons.IconPhotoMinus,IconPhotoOff:icons.IconPhotoOff,IconPhotoPlus:icons.IconPhotoPlus,IconPhotoSearch:icons.IconPhotoSearch,IconPhotoShield:icons.IconPhotoShield,IconPhotoStar:icons.IconPhotoStar,IconPhotoUp:icons.IconPhotoUp,IconPhotoX:icons.IconPhotoX,IconPhoto:icons.IconPhoto,IconPhysotherapist:icons.IconPhysotherapist,IconPictureInPictureOff:icons.IconPictureInPictureOff,IconPictureInPictureOn:icons.IconPictureInPictureOn,IconPictureInPictureTop:icons.IconPictureInPictureTop,IconPictureInPicture:icons.IconPictureInPicture,IconPigMoney:icons.IconPigMoney,IconPigOff:icons.IconPigOff,IconPig:icons.IconPig,IconPillOff:icons.IconPillOff,IconPill:icons.IconPill,IconPills:icons.IconPills,IconPin:icons.IconPin,IconPingPong:icons.IconPingPong,IconPinnedOff:icons.IconPinnedOff,IconPinned:icons.IconPinned,IconPizzaOff:icons.IconPizzaOff,IconPizza:icons.IconPizza,IconPlaneArrival:icons.IconPlaneArrival,IconPlaneDeparture:icons.IconPlaneDeparture,IconPlaneInflight:icons.IconPlaneInflight,IconPlaneOff:icons.IconPlaneOff,IconPlaneTilt:icons.IconPlaneTilt,IconPlane:icons.IconPlane,IconPlanetOff:icons.IconPlanetOff,IconPlanet:icons.IconPlanet,IconPlant2Off:icons.IconPlant2Off,IconPlant2:icons.IconPlant2,IconPlantOff:icons.IconPlantOff,IconPlant:icons.IconPlant,IconPlayCardOff:icons.IconPlayCardOff,IconPlayCard:icons.IconPlayCard,IconPlayerEject:icons.IconPlayerEject,IconPlayerPause:icons.IconPlayerPause,IconPlayerPlay:icons.IconPlayerPlay,IconPlayerRecord:icons.IconPlayerRecord,IconPlayerSkipBack:icons.IconPlayerSkipBack,IconPlayerSkipForward:icons.IconPlayerSkipForward,IconPlayerStop:icons.IconPlayerStop,IconPlayerTrackNext:icons.IconPlayerTrackNext,IconPlayerTrackPrev:icons.IconPlayerTrackPrev,IconPlaylistAdd:icons.IconPlaylistAdd,IconPlaylistOff:icons.IconPlaylistOff,IconPlaylistX:icons.IconPlaylistX,IconPlaylist:icons.IconPlaylist,IconPlaystationCircle:icons.IconPlaystationCircle,IconPlaystationSquare:icons.IconPlaystationSquare,IconPlaystationTriangle:icons.IconPlaystationTriangle,IconPlaystationX:icons.IconPlaystationX,IconPlugConnectedX:icons.IconPlugConnectedX,IconPlugConnected:icons.IconPlugConnected,IconPlugOff:icons.IconPlugOff,IconPlugX:icons.IconPlugX,IconPlug:icons.IconPlug,IconPlus:icons.IconPlus,IconPng:icons.IconPng,IconPodiumOff:icons.IconPodiumOff,IconPodium:icons.IconPodium,IconPointOff:icons.IconPointOff,IconPoint:icons.IconPoint,IconPointer:icons.IconPointer,IconPokeballOff:icons.IconPokeballOff,IconPokeball:icons.IconPokeball,IconPolaroid:icons.IconPolaroid,IconPolygonOff:icons.IconPolygonOff,IconPolygon:icons.IconPolygon,IconPoo:icons.IconPoo,IconPoolOff:icons.IconPoolOff,IconPool:icons.IconPool,IconPower:icons.IconPower,IconPray:icons.IconPray,IconPremiumRights:icons.IconPremiumRights,IconPrescription:icons.IconPrescription,IconPresentationAnalytics:icons.IconPresentationAnalytics,IconPresentationOff:icons.IconPresentationOff,IconPresentation:icons.IconPresentation,IconPrinterOff:icons.IconPrinterOff,IconPrinter:icons.IconPrinter,IconPrison:icons.IconPrison,IconPrompt:icons.IconPrompt,IconPropellerOff:icons.IconPropellerOff,IconPropeller:icons.IconPropeller,IconPuzzle2:icons.IconPuzzle2,IconPuzzleOff:icons.IconPuzzleOff,IconPuzzle:icons.IconPuzzle,IconPyramidOff:icons.IconPyramidOff,IconPyramid:icons.IconPyramid,IconQrcodeOff:icons.IconQrcodeOff,IconQrcode:icons.IconQrcode,IconQuestionMark:icons.IconQuestionMark,IconQuoteOff:icons.IconQuoteOff,IconQuote:icons.IconQuote,IconRadar2:icons.IconRadar2,IconRadarOff:icons.IconRadarOff,IconRadar:icons.IconRadar,IconRadioOff:icons.IconRadioOff,IconRadio:icons.IconRadio,IconRadioactiveOff:icons.IconRadioactiveOff,IconRadioactive:icons.IconRadioactive,IconRadiusBottomLeft:icons.IconRadiusBottomLeft,IconRadiusBottomRight:icons.IconRadiusBottomRight,IconRadiusTopLeft:icons.IconRadiusTopLeft,IconRadiusTopRight:icons.IconRadiusTopRight,IconRainbowOff:icons.IconRainbowOff,IconRainbow:icons.IconRainbow,IconRating12Plus:icons.IconRating12Plus,IconRating14Plus:icons.IconRating14Plus,IconRating16Plus:icons.IconRating16Plus,IconRating18Plus:icons.IconRating18Plus,IconRating21Plus:icons.IconRating21Plus,IconReceipt2:icons.IconReceipt2,IconReceiptOff:icons.IconReceiptOff,IconReceiptRefund:icons.IconReceiptRefund,IconReceiptTax:icons.IconReceiptTax,IconReceipt:icons.IconReceipt,IconRecharging:icons.IconRecharging,IconRecordMailOff:icons.IconRecordMailOff,IconRecordMail:icons.IconRecordMail,IconRectangleVertical:icons.IconRectangleVertical,IconRectangle:icons.IconRectangle,IconRecycleOff:icons.IconRecycleOff,IconRecycle:icons.IconRecycle,IconRefreshAlert:icons.IconRefreshAlert,IconRefreshDot:icons.IconRefreshDot,IconRefreshOff:icons.IconRefreshOff,IconRefresh:icons.IconRefresh,IconRegexOff:icons.IconRegexOff,IconRegex:icons.IconRegex,IconRegistered:icons.IconRegistered,IconRelationManyToMany:icons.IconRelationManyToMany,IconRelationOneToMany:icons.IconRelationOneToMany,IconRelationOneToOne:icons.IconRelationOneToOne,IconReload:icons.IconReload,IconRepeatOff:icons.IconRepeatOff,IconRepeatOnce:icons.IconRepeatOnce,IconRepeat:icons.IconRepeat,IconReplaceOff:icons.IconReplaceOff,IconReplace:icons.IconReplace,IconReportAnalytics:icons.IconReportAnalytics,IconReportMedical:icons.IconReportMedical,IconReportMoney:icons.IconReportMoney,IconReportOff:icons.IconReportOff,IconReportSearch:icons.IconReportSearch,IconReport:icons.IconReport,IconResize:icons.IconResize,IconRippleOff:icons.IconRippleOff,IconRipple:icons.IconRipple,IconRoadOff:icons.IconRoadOff,IconRoadSign:icons.IconRoadSign,IconRoad:icons.IconRoad,IconRobotOff:icons.IconRobotOff,IconRobot:icons.IconRobot,IconRocketOff:icons.IconRocketOff,IconRocket:icons.IconRocket,IconRollerSkating:icons.IconRollerSkating,IconRollercoasterOff:icons.IconRollercoasterOff,IconRollercoaster:icons.IconRollercoaster,IconRotate2:icons.IconRotate2,IconRotate360:icons.IconRotate360,IconRotateClockwise2:icons.IconRotateClockwise2,IconRotateClockwise:icons.IconRotateClockwise,IconRotateDot:icons.IconRotateDot,IconRotateRectangle:icons.IconRotateRectangle,IconRotate:icons.IconRotate,IconRouteOff:icons.IconRouteOff,IconRoute:icons.IconRoute,IconRouterOff:icons.IconRouterOff,IconRouter:icons.IconRouter,IconRowInsertBottom:icons.IconRowInsertBottom,IconRowInsertTop:icons.IconRowInsertTop,IconRss:icons.IconRss,IconRuler2Off:icons.IconRuler2Off,IconRuler2:icons.IconRuler2,IconRuler3:icons.IconRuler3,IconRulerMeasure:icons.IconRulerMeasure,IconRulerOff:icons.IconRulerOff,IconRuler:icons.IconRuler,IconRun:icons.IconRun,IconSailboatOff:icons.IconSailboatOff,IconSailboat:icons.IconSailboat,IconSalt:icons.IconSalt,IconSatelliteOff:icons.IconSatelliteOff,IconSatellite:icons.IconSatellite,IconSausage:icons.IconSausage,IconScaleOff:icons.IconScaleOff,IconScaleOutlineOff:icons.IconScaleOutlineOff,IconScaleOutline:icons.IconScaleOutline,IconScale:icons.IconScale,IconScanEye:icons.IconScanEye,IconScan:icons.IconScan,IconSchemaOff:icons.IconSchemaOff,IconSchema:icons.IconSchema,IconSchoolOff:icons.IconSchoolOff,IconSchool:icons.IconSchool,IconScissorsOff:icons.IconScissorsOff,IconScissors:icons.IconScissors,IconScooterElectric:icons.IconScooterElectric,IconScooter:icons.IconScooter,IconScreenShareOff:icons.IconScreenShareOff,IconScreenShare:icons.IconScreenShare,IconScreenshot:icons.IconScreenshot,IconScribbleOff:icons.IconScribbleOff,IconScribble:icons.IconScribble,IconScriptMinus:icons.IconScriptMinus,IconScriptPlus:icons.IconScriptPlus,IconScriptX:icons.IconScriptX,IconScript:icons.IconScript,IconScubaMaskOff:icons.IconScubaMaskOff,IconScubaMask:icons.IconScubaMask,IconSdk:icons.IconSdk,IconSearchOff:icons.IconSearchOff,IconSearch:icons.IconSearch,IconSectionSign:icons.IconSectionSign,IconSection:icons.IconSection,IconSeedingOff:icons.IconSeedingOff,IconSeeding:icons.IconSeeding,IconSelect:icons.IconSelect,IconSelector:icons.IconSelector,IconSendOff:icons.IconSendOff,IconSend:icons.IconSend,IconSeo:icons.IconSeo,IconSeparatorHorizontal:icons.IconSeparatorHorizontal,IconSeparatorVertical:icons.IconSeparatorVertical,IconSeparator:icons.IconSeparator,IconServer2:icons.IconServer2,IconServerBolt:icons.IconServerBolt,IconServerCog:icons.IconServerCog,IconServerOff:icons.IconServerOff,IconServer:icons.IconServer,IconServicemark:icons.IconServicemark,IconSettingsAutomation:icons.IconSettingsAutomation,IconSettingsOff:icons.IconSettingsOff,IconSettings:icons.IconSettings,IconShadowOff:icons.IconShadowOff,IconShadow:icons.IconShadow,IconShape2:icons.IconShape2,IconShape3:icons.IconShape3,IconShapeOff:icons.IconShapeOff,IconShape:icons.IconShape,IconShareOff:icons.IconShareOff,IconShare:icons.IconShare,IconShieldCheck:icons.IconShieldCheck,IconShieldCheckered:icons.IconShieldCheckered,IconShieldChevron:icons.IconShieldChevron,IconShieldHalfFilled:icons.IconShieldHalfFilled,IconShieldHalf:icons.IconShieldHalf,IconShieldLock:icons.IconShieldLock,IconShieldOff:icons.IconShieldOff,IconShieldX:icons.IconShieldX,IconShield:icons.IconShield,IconShipOff:icons.IconShipOff,IconShip:icons.IconShip,IconShirtOff:icons.IconShirtOff,IconShirtSport:icons.IconShirtSport,IconShirt:icons.IconShirt,IconShoeOff:icons.IconShoeOff,IconShoe:icons.IconShoe,IconShoppingCartDiscount:icons.IconShoppingCartDiscount,IconShoppingCartOff:icons.IconShoppingCartOff,IconShoppingCartPlus:icons.IconShoppingCartPlus,IconShoppingCartX:icons.IconShoppingCartX,IconShoppingCart:icons.IconShoppingCart,IconShovel:icons.IconShovel,IconShredder:icons.IconShredder,IconSignLeft:icons.IconSignLeft,IconSignRight:icons.IconSignRight,IconSignal3g:icons.IconSignal3g,IconSignal4gPlus:icons.IconSignal4gPlus,IconSignal4g:icons.IconSignal4g,IconSignal5g:icons.IconSignal5g,IconSignatureOff:icons.IconSignatureOff,IconSignature:icons.IconSignature,IconSitemapOff:icons.IconSitemapOff,IconSitemap:icons.IconSitemap,IconSkateboardOff:icons.IconSkateboardOff,IconSkateboard:icons.IconSkateboard,IconSkull:icons.IconSkull,IconSleigh:icons.IconSleigh,IconSlice:icons.IconSlice,IconSlideshow:icons.IconSlideshow,IconSmartHomeOff:icons.IconSmartHomeOff,IconSmartHome:icons.IconSmartHome,IconSmokingNo:icons.IconSmokingNo,IconSmoking:icons.IconSmoking,IconSnowflakeOff:icons.IconSnowflakeOff,IconSnowflake:icons.IconSnowflake,IconSnowman:icons.IconSnowman,IconSoccerField:icons.IconSoccerField,IconSocialOff:icons.IconSocialOff,IconSocial:icons.IconSocial,IconSock:icons.IconSock,IconSofaOff:icons.IconSofaOff,IconSofa:icons.IconSofa,IconSortAscending2:icons.IconSortAscending2,IconSortAscendingLetters:icons.IconSortAscendingLetters,IconSortAscendingNumbers:icons.IconSortAscendingNumbers,IconSortAscending:icons.IconSortAscending,IconSortDescending2:icons.IconSortDescending2,IconSortDescendingLetters:icons.IconSortDescendingLetters,IconSortDescendingNumbers:icons.IconSortDescendingNumbers,IconSortDescending:icons.IconSortDescending,IconSos:icons.IconSos,IconSoupOff:icons.IconSoupOff,IconSoup:icons.IconSoup,IconSourceCode:icons.IconSourceCode,IconSpaceOff:icons.IconSpaceOff,IconSpace:icons.IconSpace,IconSpacingHorizontal:icons.IconSpacingHorizontal,IconSpacingVertical:icons.IconSpacingVertical,IconSpade:icons.IconSpade,IconSpeakerphone:icons.IconSpeakerphone,IconSpeedboat:icons.IconSpeedboat,IconSpider:icons.IconSpider,IconSpiralOff:icons.IconSpiralOff,IconSpiral:icons.IconSpiral,IconSportBillard:icons.IconSportBillard,IconSpyOff:icons.IconSpyOff,IconSpy:icons.IconSpy,IconSquare0:icons.IconSquare0,IconSquare1:icons.IconSquare1,IconSquare2:icons.IconSquare2,IconSquare3:icons.IconSquare3,IconSquare4:icons.IconSquare4,IconSquare5:icons.IconSquare5,IconSquare6:icons.IconSquare6,IconSquare7:icons.IconSquare7,IconSquare8:icons.IconSquare8,IconSquare9:icons.IconSquare9,IconSquareA:icons.IconSquareA,IconSquareAsterisk:icons.IconSquareAsterisk,IconSquareB:icons.IconSquareB,IconSquareC:icons.IconSquareC,IconSquareCheck:icons.IconSquareCheck,IconSquareD:icons.IconSquareD,IconSquareDot:icons.IconSquareDot,IconSquareE:icons.IconSquareE,IconSquareF:icons.IconSquareF,IconSquareForbid2:icons.IconSquareForbid2,IconSquareForbid:icons.IconSquareForbid,IconSquareG:icons.IconSquareG,IconSquareH:icons.IconSquareH,IconSquareHalf:icons.IconSquareHalf,IconSquareI:icons.IconSquareI,IconSquareJ:icons.IconSquareJ,IconSquareK:icons.IconSquareK,IconSquareL:icons.IconSquareL,IconSquareM:icons.IconSquareM,IconSquareMinus:icons.IconSquareMinus,IconSquareN:icons.IconSquareN,IconSquareO:icons.IconSquareO,IconSquareOff:icons.IconSquareOff,IconSquareP:icons.IconSquareP,IconSquarePlus:icons.IconSquarePlus,IconSquareQ:icons.IconSquareQ,IconSquareR:icons.IconSquareR,IconSquareRoot2:icons.IconSquareRoot2,IconSquareRoot:icons.IconSquareRoot,IconSquareRotatedForbid2:icons.IconSquareRotatedForbid2,IconSquareRotatedForbid:icons.IconSquareRotatedForbid,IconSquareRotatedOff:icons.IconSquareRotatedOff,IconSquareRotated:icons.IconSquareRotated,IconSquareS:icons.IconSquareS,IconSquareT:icons.IconSquareT,IconSquareToggleHorizontal:icons.IconSquareToggleHorizontal,IconSquareToggle:icons.IconSquareToggle,IconSquareU:icons.IconSquareU,IconSquareW:icons.IconSquareW,IconSquareX:icons.IconSquareX,IconSquareY:icons.IconSquareY,IconSquareZ:icons.IconSquareZ,IconSquare:icons.IconSquare,IconSquaresDiagonal:icons.IconSquaresDiagonal,IconSquaresFilled:icons.IconSquaresFilled,IconStack2:icons.IconStack2,IconStack3:icons.IconStack3,IconStackPop:icons.IconStackPop,IconStackPush:icons.IconStackPush,IconStack:icons.IconStack,IconStairsDown:icons.IconStairsDown,IconStairsUp:icons.IconStairsUp,IconStairs:icons.IconStairs,IconStarHalf:icons.IconStarHalf,IconStarOff:icons.IconStarOff,IconStar:icons.IconStar,IconStarsOff:icons.IconStarsOff,IconStars:icons.IconStars,IconStatusChange:icons.IconStatusChange,IconSteam:icons.IconSteam,IconSteeringWheelOff:icons.IconSteeringWheelOff,IconSteeringWheel:icons.IconSteeringWheel,IconStepInto:icons.IconStepInto,IconStepOut:icons.IconStepOut,IconStethoscopeOff:icons.IconStethoscopeOff,IconStethoscope:icons.IconStethoscope,IconSticker:icons.IconSticker,IconStormOff:icons.IconStormOff,IconStorm:icons.IconStorm,IconStretching:icons.IconStretching,IconStrikethrough:icons.IconStrikethrough,IconSubmarine:icons.IconSubmarine,IconSubscript:icons.IconSubscript,IconSubtask:icons.IconSubtask,IconSumOff:icons.IconSumOff,IconSum:icons.IconSum,IconSunHigh:icons.IconSunHigh,IconSunLow:icons.IconSunLow,IconSunMoon:icons.IconSunMoon,IconSunOff:icons.IconSunOff,IconSunWind:icons.IconSunWind,IconSun:icons.IconSun,IconSunglasses:icons.IconSunglasses,IconSunrise:icons.IconSunrise,IconSunset2:icons.IconSunset2,IconSunset:icons.IconSunset,IconSuperscript:icons.IconSuperscript,IconSvg:icons.IconSvg,IconSwimming:icons.IconSwimming,IconSwitch2:icons.IconSwitch2,IconSwitch3:icons.IconSwitch3,IconSwitchHorizontal:icons.IconSwitchHorizontal,IconSwitchVertical:icons.IconSwitchVertical,IconSwitch:icons.IconSwitch,IconSwordOff:icons.IconSwordOff,IconSword:icons.IconSword,IconSwords:icons.IconSwords,IconTableAlias:icons.IconTableAlias,IconTableExport:icons.IconTableExport,IconTableImport:icons.IconTableImport,IconTableOff:icons.IconTableOff,IconTableOptions:icons.IconTableOptions,IconTableShortcut:icons.IconTableShortcut,IconTable:icons.IconTable,IconTagOff:icons.IconTagOff,IconTag:icons.IconTag,IconTagsOff:icons.IconTagsOff,IconTags:icons.IconTags,IconTallymark1:icons.IconTallymark1,IconTallymark2:icons.IconTallymark2,IconTallymark3:icons.IconTallymark3,IconTallymark4:icons.IconTallymark4,IconTallymarks:icons.IconTallymarks,IconTank:icons.IconTank,IconTargetOff:icons.IconTargetOff,IconTarget:icons.IconTarget,IconTelescopeOff:icons.IconTelescopeOff,IconTelescope:icons.IconTelescope,IconTemperatureCelsius:icons.IconTemperatureCelsius,IconTemperatureFahrenheit:icons.IconTemperatureFahrenheit,IconTemperatureMinus:icons.IconTemperatureMinus,IconTemperatureOff:icons.IconTemperatureOff,IconTemperaturePlus:icons.IconTemperaturePlus,IconTemperature:icons.IconTemperature,IconTemplateOff:icons.IconTemplateOff,IconTemplate:icons.IconTemplate,IconTentOff:icons.IconTentOff,IconTent:icons.IconTent,IconTerminal2:icons.IconTerminal2,IconTerminal:icons.IconTerminal,IconTestPipe2:icons.IconTestPipe2,IconTestPipeOff:icons.IconTestPipeOff,IconTestPipe:icons.IconTestPipe,IconTextCaption:icons.IconTextCaption,IconTextColor:icons.IconTextColor,IconTextDecrease:icons.IconTextDecrease,IconTextDirectionLtr:icons.IconTextDirectionLtr,IconTextDirectionRtl:icons.IconTextDirectionRtl,IconTextIncrease:icons.IconTextIncrease,IconTextOrientation:icons.IconTextOrientation,IconTextPlus:icons.IconTextPlus,IconTextRecognition:icons.IconTextRecognition,IconTextResize:icons.IconTextResize,IconTextSize:icons.IconTextSize,IconTextSpellcheck:icons.IconTextSpellcheck,IconTextWrapDisabled:icons.IconTextWrapDisabled,IconTextWrap:icons.IconTextWrap,IconThermometer:icons.IconThermometer,IconThumbDownOff:icons.IconThumbDownOff,IconThumbDown:icons.IconThumbDown,IconThumbUpOff:icons.IconThumbUpOff,IconThumbUp:icons.IconThumbUp,IconTicketOff:icons.IconTicketOff,IconTicket:icons.IconTicket,IconTie:icons.IconTie,IconTilde:icons.IconTilde,IconTiltShiftOff:icons.IconTiltShiftOff,IconTiltShift:icons.IconTiltShift,IconTimeline:icons.IconTimeline,IconTir:icons.IconTir,IconToggleLeft:icons.IconToggleLeft,IconToggleRight:icons.IconToggleRight,IconToiletPaperOff:icons.IconToiletPaperOff,IconToiletPaper:icons.IconToiletPaper,IconTool:icons.IconTool,IconToolsKitchen2Off:icons.IconToolsKitchen2Off,IconToolsKitchen2:icons.IconToolsKitchen2,IconToolsKitchenOff:icons.IconToolsKitchenOff,IconToolsKitchen:icons.IconToolsKitchen,IconToolsOff:icons.IconToolsOff,IconTools:icons.IconTools,IconTooltip:icons.IconTooltip,IconTornado:icons.IconTornado,IconTournament:icons.IconTournament,IconTowerOff:icons.IconTowerOff,IconTower:icons.IconTower,IconTrack:icons.IconTrack,IconTractor:icons.IconTractor,IconTrademark:icons.IconTrademark,IconTrafficConeOff:icons.IconTrafficConeOff,IconTrafficCone:icons.IconTrafficCone,IconTrafficLightsOff:icons.IconTrafficLightsOff,IconTrafficLights:icons.IconTrafficLights,IconTrain:icons.IconTrain,IconTransferIn:icons.IconTransferIn,IconTransferOut:icons.IconTransferOut,IconTransform:icons.IconTransform,IconTransitionBottom:icons.IconTransitionBottom,IconTransitionLeft:icons.IconTransitionLeft,IconTransitionRight:icons.IconTransitionRight,IconTransitionTop:icons.IconTransitionTop,IconTrashOff:icons.IconTrashOff,IconTrashX:icons.IconTrashX,IconTrash:icons.IconTrash,IconTree:icons.IconTree,IconTrees:icons.IconTrees,IconTrendingDown2:icons.IconTrendingDown2,IconTrendingDown3:icons.IconTrendingDown3,IconTrendingDown:icons.IconTrendingDown,IconTrendingUp2:icons.IconTrendingUp2,IconTrendingUp3:icons.IconTrendingUp3,IconTrendingUp:icons.IconTrendingUp,IconTriangleInverted:icons.IconTriangleInverted,IconTriangleOff:icons.IconTriangleOff,IconTriangleSquareCircle:icons.IconTriangleSquareCircle,IconTriangle:icons.IconTriangle,IconTriangles:icons.IconTriangles,IconTrident:icons.IconTrident,IconTrophyOff:icons.IconTrophyOff,IconTrophy:icons.IconTrophy,IconTrowel:icons.IconTrowel,IconTruckDelivery:icons.IconTruckDelivery,IconTruckLoading:icons.IconTruckLoading,IconTruckOff:icons.IconTruckOff,IconTruckReturn:icons.IconTruckReturn,IconTruck:icons.IconTruck,IconTxt:icons.IconTxt,IconTypographyOff:icons.IconTypographyOff,IconTypography:icons.IconTypography,IconUfOff:icons.IconUfOff,IconUfo:icons.IconUfo,IconUmbrellaOff:icons.IconUmbrellaOff,IconUmbrella:icons.IconUmbrella,IconUnderline:icons.IconUnderline,IconUnlink:icons.IconUnlink,IconUpload:icons.IconUpload,IconUrgent:icons.IconUrgent,IconUsb:icons.IconUsb,IconUserCheck:icons.IconUserCheck,IconUserCircle:icons.IconUserCircle,IconUserExclamation:icons.IconUserExclamation,IconUserMinus:icons.IconUserMinus,IconUserOff:icons.IconUserOff,IconUserPlus:icons.IconUserPlus,IconUserSearch:icons.IconUserSearch,IconUserX:icons.IconUserX,IconUser:icons.IconUser,IconUsers:icons.IconUsers,IconUvIndex:icons.IconUvIndex,IconUxCircle:icons.IconUxCircle,IconVaccineBottleOff:icons.IconVaccineBottleOff,IconVaccineBottle:icons.IconVaccineBottle,IconVaccineOff:icons.IconVaccineOff,IconVaccine:icons.IconVaccine,IconVariableMinus:icons.IconVariableMinus,IconVariableOff:icons.IconVariableOff,IconVariablePlus:icons.IconVariablePlus,IconVariable:icons.IconVariable,IconVectorBezier2:icons.IconVectorBezier2,IconVectorBezier:icons.IconVectorBezier,IconVectorOff:icons.IconVectorOff,IconVectorTriangleOff:icons.IconVectorTriangleOff,IconVectorTriangle:icons.IconVectorTriangle,IconVector:icons.IconVector,IconVenus:icons.IconVenus,IconVersionsOff:icons.IconVersionsOff,IconVersions:icons.IconVersions,IconVideoMinus:icons.IconVideoMinus,IconVideoOff:icons.IconVideoOff,IconVideoPlus:icons.IconVideoPlus,IconVideo:icons.IconVideo,IconView360Off:icons.IconView360Off,IconView360:icons.IconView360,IconViewfinderOff:icons.IconViewfinderOff,IconViewfinder:icons.IconViewfinder,IconViewportNarrow:icons.IconViewportNarrow,IconViewportWide:icons.IconViewportWide,IconVinyl:icons.IconVinyl,IconVipOff:icons.IconVipOff,IconVip:icons.IconVip,IconVirusOff:icons.IconVirusOff,IconVirusSearch:icons.IconVirusSearch,IconVirus:icons.IconVirus,IconVocabularyOff:icons.IconVocabularyOff,IconVocabulary:icons.IconVocabulary,IconVolume2:icons.IconVolume2,IconVolume3:icons.IconVolume3,IconVolumeOff:icons.IconVolumeOff,IconVolume:icons.IconVolume,IconWalk:icons.IconWalk,IconWallOff:icons.IconWallOff,IconWall:icons.IconWall,IconWalletOff:icons.IconWalletOff,IconWallet:icons.IconWallet,IconWallpaperOff:icons.IconWallpaperOff,IconWallpaper:icons.IconWallpaper,IconWandOff:icons.IconWandOff,IconWand:icons.IconWand,IconWashDry1:icons.IconWashDry1,IconWashDry2:icons.IconWashDry2,IconWashDry3:icons.IconWashDry3,IconWashDryA:icons.IconWashDryA,IconWashDryDip:icons.IconWashDryDip,IconWashDryF:icons.IconWashDryF,IconWashDryHang:icons.IconWashDryHang,IconWashDryOff:icons.IconWashDryOff,IconWashDryP:icons.IconWashDryP,IconWashDryShade:icons.IconWashDryShade,IconWashDryW:icons.IconWashDryW,IconWashDry:icons.IconWashDry,IconWashDrycleanOff:icons.IconWashDrycleanOff,IconWashDryclean:icons.IconWashDryclean,IconWashGentle:icons.IconWashGentle,IconWashMachine:icons.IconWashMachine,IconWashOff:icons.IconWashOff,IconWashPress:icons.IconWashPress,IconWashTemperature1:icons.IconWashTemperature1,IconWashTemperature2:icons.IconWashTemperature2,IconWashTemperature3:icons.IconWashTemperature3,IconWashTemperature4:icons.IconWashTemperature4,IconWashTemperature5:icons.IconWashTemperature5,IconWashTemperature6:icons.IconWashTemperature6,IconWashTumbleDry:icons.IconWashTumbleDry,IconWashTumbleOff:icons.IconWashTumbleOff,IconWash:icons.IconWash,IconWaveSawTool:icons.IconWaveSawTool,IconWaveSine:icons.IconWaveSine,IconWaveSquare:icons.IconWaveSquare,IconWebhookOff:icons.IconWebhookOff,IconWebhook:icons.IconWebhook,IconWheelchairOff:icons.IconWheelchairOff,IconWheelchair:icons.IconWheelchair,IconWifi0:icons.IconWifi0,IconWifi1:icons.IconWifi1,IconWifi2:icons.IconWifi2,IconWifiOff:icons.IconWifiOff,IconWifi:icons.IconWifi,IconWindOff:icons.IconWindOff,IconWind:icons.IconWind,IconWindmillOff:icons.IconWindmillOff,IconWindmill:icons.IconWindmill,IconWindowMaximize:icons.IconWindowMaximize,IconWindowMinimize:icons.IconWindowMinimize,IconWindowOff:icons.IconWindowOff,IconWindow:icons.IconWindow,IconWindsock:icons.IconWindsock,IconWiperWash:icons.IconWiperWash,IconWiper:icons.IconWiper,IconWoman:icons.IconWoman,IconWood:icons.IconWood,IconWorldDownload:icons.IconWorldDownload,IconWorldLatitude:icons.IconWorldLatitude,IconWorldLongitude:icons.IconWorldLongitude,IconWorldOff:icons.IconWorldOff,IconWorldUpload:icons.IconWorldUpload,IconWorldWww:icons.IconWorldWww,IconWorld:icons.IconWorld,IconWreckingBall:icons.IconWreckingBall,IconWritingOff:icons.IconWritingOff,IconWritingSignOff:icons.IconWritingSignOff,IconWritingSign:icons.IconWritingSign,IconWriting:icons.IconWriting,IconX:icons.IconX,IconXboxA:icons.IconXboxA,IconXboxB:icons.IconXboxB,IconXboxX:icons.IconXboxX,IconXboxY:icons.IconXboxY,IconYinYang:icons.IconYinYang,IconYoga:icons.IconYoga,IconZeppelinOff:icons.IconZeppelinOff,IconZeppelin:icons.IconZeppelin,IconZip:icons.IconZip,IconZodiacAquarius:icons.IconZodiacAquarius,IconZodiacAries:icons.IconZodiacAries,IconZodiacCancer:icons.IconZodiacCancer,IconZodiacCapricorn:icons.IconZodiacCapricorn,IconZodiacGemini:icons.IconZodiacGemini,IconZodiacLeo:icons.IconZodiacLeo,IconZodiacLibra:icons.IconZodiacLibra,IconZodiacPisces:icons.IconZodiacPisces,IconZodiacSagittarius:icons.IconZodiacSagittarius,IconZodiacScorpio:icons.IconZodiacScorpio,IconZodiacTaurus:icons.IconZodiacTaurus,IconZodiacVirgo:icons.IconZodiacVirgo,IconZoomCancel:icons.IconZoomCancel,IconZoomCheck:icons.IconZoomCheck,IconZoomCode:icons.IconZoomCode,IconZoomExclamation:icons.IconZoomExclamation,IconZoomInArea:icons.IconZoomInArea,IconZoomIn:icons.IconZoomIn,IconZoomMoney:icons.IconZoomMoney,IconZoomOutArea:icons.IconZoomOutArea,IconZoomOut:icons.IconZoomOut,IconZoomPan:icons.IconZoomPan,IconZoomQuestion:icons.IconZoomQuestion,IconZoomReplace:icons.IconZoomReplace,IconZoomReset:icons.IconZoomReset,IconZzzOff:icons.IconZzzOff,IconZzz:icons.IconZzz},iconMapping={"terp-purchase":AntIcons.ShoppingCartOutlined,"terp-graph":AntIcons.PieChartOutlined,"terp-crm":AntIcons.ContactsOutlined,"terp-hr":TablerIcons.IconFriends,"terp-account":TablerIcons.IconBuildingBank,"terp-project":TablerIcons.IconChecklist,"terp-administration":TablerIcons.IconAdjustments,"terp-partner":AntIcons.TeamOutlined,"terp-mrp":AntIcons.BuildOutlined,"terp-product":AntIcons.ShoppingOutlined,STOCK_JUSTIFY_FILL:AntIcons.UnorderedListOutlined,STOCK_INDENT:TablerIcons.IconIndentIncrease,STOCK_HELP:AntIcons.QuestionOutlined,STOCK_GO_UP:AntIcons.ArrowUpOutlined,STOCK_SORT_DESCENDING:AntIcons.SortDescendingOutlined,STOCK_ADD:AntIcons.PlusOutlined,STOCK_GOTO_LAST:AntIcons.FastForwardOutlined,STOCK_FIND:AntIcons.SearchOutlined,STOCK_PROPERTIES:AntIcons.ControlOutlined,STOCK_DIALOG_INFO:AntIcons.InfoOutlined,STOCK_FLOPPY:AntIcons.UsbOutlined,STOCK_JUSTIFY_CENTER:AntIcons.AlignCenterOutlined,STOCK_GO_BACK:AntIcons.ArrowLeftOutlined,STOCK_UNDERLINE:AntIcons.UnderlineOutlined,STOCK_BOLD:AntIcons.BoldOutlined,STOCK_APPLY:AntIcons.CheckOutlined,STOCK_ZOOM_OUT:AntIcons.ZoomOutOutlined,STOCK_STRIKETHROUGH:AntIcons.StrikethroughOutlined,STOCK_MEDIA_REWIND:AntIcons.BackwardOutlined,STOCK_PRINT:AntIcons.PrinterOutlined,STOCK_NO:AntIcons.CloseOutlined,STOCK_GOTO_FIRST:AntIcons.FastBackwardOutlined,STOCK_CLOSE:AntIcons.CloseOutlined,STOCK_REMOVE:AntIcons.MinusOutlined,STOCK_CUT:AntIcons.ScissorOutlined,STOCK_DIALOG_AUTHENTICATION:AntIcons.SafetyOutlined,STOCK_ZOOM_FIT:AntIcons.ExpandOutlined,STOCK_JUMP_TO:AntIcons.SelectOutlined,STOCK_HARDDISK:AntIcons.HddOutlined,STOCK_SAVE_AS:AntIcons.SaveOutlined,STOCK_UNDO:AntIcons.UndoOutlined,STOCK_JUSTIFY_RIGHT:AntIcons.AlignRightOutlined,STOCK_DIALOG_ERROR:AntIcons.CloseCircleOutlined,STOCK_INDEX:AntIcons.ProfileOutlined,STOCK_GOTO_BOTTOM:AntIcons.VerticalAlignBottomOutlined,STOCK_MEDIA_NEXT:AntIcons.StepForwardOutlined,STOCK_REDO:AntIcons.RedoOutlined,STOCK_COPY:AntIcons.CopyOutlined,STOCK_MEDIA_PAUSE:AntIcons.PauseOutlined,STOCK_GO_FORWARD:AntIcons.ArrowRightOutlined,STOCK_UNDELETE:AntIcons.UndoOutlined,STOCK_EXECUTE:AntIcons.SettingOutlined,STOCK_SAVE:AntIcons.SaveOutlined,STOCK_DIALOG_QUESTION:AntIcons.QuestionCircleOutlined,STOCK_SORT_ASCENDING:AntIcons.SortAscendingOutlined,STOCK_REFRESH:AntIcons.ReloadOutlined,STOCK_MEDIA_FORWARD:AntIcons.ForwardOutlined,STOCK_STOP:AntIcons.BorderOutlined,STOCK_PRINT_PREVIEW:AntIcons.PrinterOutlined,STOCK_HOME:AntIcons.HomeOutlined,STOCK_PASTE:AntIcons.CarryOutOutlined,STOCK_ZOOM_100:AntIcons.ZoomInOutlined,STOCK_FIND_AND_REPLACE:AntIcons.FileSearchOutlined,STOCK_DIALOG_WARNING:AntIcons.WarningOutlined,STOCK_ZOOM_IN:AntIcons.ZoomInOutlined,STOCK_CONVERT:AntIcons.ExportOutlined,STOCK_ITALIC:AntIcons.ItalicOutlined,STOCK_YES:AntIcons.CheckOutlined,STOCK_MEDIA_PLAY:AntIcons.PlayCircleOutlined,STOCK_MEDIA_RECORD:AntIcons.VideoCameraOutlined,STOCK_MEDIA_PREVIOUS:AntIcons.StepBackwardOutlined,STOCK_NEW:AntIcons.FileAddOutlined,STOCK_CANCEL:AntIcons.CloseOutlined,STOCK_DISCONNECT:AntIcons.ApiOutlined,STOCK_JUSTIFY_LEFT:AntIcons.AlignLeftOutlined,STOCK_FILE:AntIcons.FileOutlined,STOCK_QUIT:AntIcons.LogoutOutlined,STOCK_EDIT:AntIcons.EditOutlined,STOCK_CONNECT:AntIcons.ApiOutlined,STOCK_GO_DOWN:AntIcons.CaretDownOutlined,STOCK_NETWORK:AntIcons.ApartmentOutlined,STOCK_OK:AntIcons.CheckOutlined,STOCK_GOTO_TOP:AntIcons.VerticalAlignTopOutlined,STOCK_ABOUT:AntIcons.StarOutlined,STOCK_COLOR_PICKER:AntIcons.AimOutlined,STOCK_SELECT_FONT:AntIcons.FontSizeOutlined,STOCK_DELETE:AntIcons.DeleteOutlined,STOCK_DND:AntIcons.FileTextOutlined,STOCK_CLEAR:AntIcons.CloseSquareOutlined,STOCK_UNINDENT:AntIcons.AlignLeftOutlined,STOCK_PREFERENCES:AntIcons.SettingOutlined},iconMapper=e=>{if(e.indexOf("gtk-")!==-1){const a=`STOCK_${e.replace("gtk-","").replace("-","_").toUpperCase()}`;return iconMapping[a]}if(iconMapping.hasOwnProperty(e))return iconMapping[e];const n=`${e.split("-").map(r=>r.replace(/\w\S*/g,a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase())).join("")}`,t=`${n}Outlined`;if(AntIcons.hasOwnProperty(t))return AntIcons[t];const o=`Icon${n}`;if(TablerIcons.hasOwnProperty(o))return()=>React__default.default.createElement(Icon__default.default,{component:TablerIcons[o]})},Button=e=>{const{ooui:n}=e,{id:t,label:o,activated:r,buttonType:a,confirmMessage:s,icon:l,context:c,readOnly:u}=n,d=React.useContext(FormContext$1),{executeButtonAction:f}=d||{},[m,p]=React.useState(!1),{lang:h}=React.useContext(LocaleContext);async function v(){p(!0),await f({type:a,action:t,context:c}),p(!1)}function C(){if(s){showDialog$9({confirmMessage:s,lang:h,onOk:()=>{v()}});return}v()}function I(){if(m)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(l){const g=iconMapper(l);return g&&jsxRuntime.jsx(g,{})}}return jsxRuntime.jsx(Field$1,{ooui:n,children:jsxRuntime.jsx(antd.Button,{block:!0,disabled:!r||u,onClick:C,icon:I(),type:n.primary?"primary":"default",danger:n.danger,style:{whiteSpace:"normal",height:"auto"},children:o})})},ButtonGroup=e=>{const{ooui:n}=e,{defaultButton:t,secondaryButtons:o}=n,{id:r,caption:a,activated:s,buttonType:l,confirmMessage:c,icon:u,primary:d,danger:f,context:m,readOnly:p}=t||{},h=React.useContext(FormContext$1),{executeButtonAction:v}=h||{},[C,I]=React.useState(!1),{lang:g}=React.useContext(LocaleContext);function y(){if(C)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(u){const O=iconMapper(u);return O&&jsxRuntime.jsx(O,{})}}async function x(){l&&r&&(I(!0),await v({type:l,action:r,context:m}),I(!1))}function w(){if(c){showDialog$9({confirmMessage:c,lang:g,onOk:()=>{x()}});return}x()}return jsxRuntime.jsx(Field$1,{ooui:new ooui.Field({ooui:n}),children:jsxRuntime.jsxs(antd.Dropdown.Button,{disabled:!s||p,onClick:w,icon:jsxRuntime.jsx(Icon.DownOutlined,{}),type:d?"primary":void 0,overlay:jsxRuntime.jsx(Items,{ooui:o}),children:[y(),a]})})},Items=e=>{const{ooui:n}=e,t=n.map(o=>{const{id:r,caption:a,activated:s,buttonType:l,confirmMessage:c,icon:u,context:d,readOnly:f,danger:m}=o,p=React.useContext(FormContext$1),{executeButtonAction:h}=p||{},[v,C]=React.useState(!1),{lang:I}=React.useContext(LocaleContext);async function g(){C(!0),await h({type:l,action:r,context:d}),C(!1)}function y(){if(c){showDialog$9({confirmMessage:c,lang:I,onOk:()=>{g()}});return}g()}function x(){if(v)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(u){const w=iconMapper(u);return w&&jsxRuntime.jsx(w,{})}}return jsxRuntime.jsx(antd.Menu.Item,{disabled:!s||f,onClick:y,icon:x(),danger:m,children:a})});return jsxRuntime.jsx(antd.Menu,{children:t})},Config={requiredClass:"bg-blue-100",requiredColor:"#DBEAFE"},MODAL_WIDTH_CONSTANT=.7;function getWindowDimensions(){const{innerWidth:e,innerHeight:n}=window;return{width:e,height:n}}function useWindowDimensions(){const[e,n]=React.useState(getWindowDimensions());return React.useEffect(()=>{function t(){n(getWindowDimensions())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),{modalWidth:e.width*MODAL_WIDTH_CONSTANT,modalHeight:e.height,width:e.width,height:e.height}}class ConnectionProvider{static init(n){ConnectionProvider.handler=n}static getHandler(){if(!ConnectionProvider.handler)throw"Must call init() first with a valid ConnectionProvider instance";return ConnectionProvider.handler}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var n=e.default;if(typeof n=="function"){var t=function(){return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),t}var TextArea$3={},interopRequireWildcard={exports:{}},_typeof$2={exports:{}};(function(e){function n(t){return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_typeof$2),function(e){var n=_typeof$2.exports.default;function t(r){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(t=function(c){return c?s:a})(r)}function o(r,a){if(!a&&r&&r.__esModule)return r;if(r===null||n(r)!=="object"&&typeof r!="function")return{default:r};var s=t(a);if(s&&s.has(r))return s.get(r);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if(u!=="default"&&Object.prototype.hasOwnProperty.call(r,u)){var d=c?Object.getOwnPropertyDescriptor(r,u):null;d&&(d.get||d.set)?Object.defineProperty(l,u,d):l[u]=r[u]}return l.default=r,s&&s.set(r,l),l}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(interopRequireWildcard);var interopRequireDefault={exports:{}};(function(e){function n(t){return t&&t.__esModule?t:{default:t}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(e){function n(t,o){(o==null||o>t.length)&&(o=t.length);for(var r=0,a=new Array(o);r<o;r++)a[r]=t[r];return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(e){var n=requireArrayLikeToArray();function t(o){if(Array.isArray(o))return n(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(e){function n(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(e){var n=requireArrayLikeToArray();function t(o,r){if(!!o){if(typeof o=="string")return n(o,r);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(o,r)}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(e){function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(nonIterableSpread)),nonIterableSpread.exports}var hasRequiredToConsumableArray;function requireToConsumableArray(){return hasRequiredToConsumableArray||(hasRequiredToConsumableArray=1,function(e){var n=requireArrayWithoutHoles(),t=requireIterableToArray(),o=requireUnsupportedIterableToArray(),r=requireNonIterableSpread();function a(s){return n(s)||t(s)||o(s)||r()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(toConsumableArray)),toConsumableArray.exports}var _extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var defineProperty={exports:{}},hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(e){function n(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(defineProperty)),defineProperty.exports}var slicedToArray={exports:{}},arrayWithHoles={exports:{}},hasRequiredArrayWithHoles;function requireArrayWithHoles(){return hasRequiredArrayWithHoles||(hasRequiredArrayWithHoles=1,function(e){function n(t){if(Array.isArray(t))return t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayWithHoles)),arrayWithHoles.exports}var iterableToArrayLimit={exports:{}},hasRequiredIterableToArrayLimit;function requireIterableToArrayLimit(){return hasRequiredIterableToArrayLimit||(hasRequiredIterableToArrayLimit=1,function(e){function n(t,o){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],s=!0,l=!1,c,u;try{for(r=r.call(t);!(s=(c=r.next()).done)&&(a.push(c.value),!(o&&a.length===o));s=!0);}catch(d){l=!0,u=d}finally{try{!s&&r.return!=null&&r.return()}finally{if(l)throw u}}return a}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(iterableToArrayLimit)),iterableToArrayLimit.exports}var nonIterableRest={exports:{}},hasRequiredNonIterableRest;function requireNonIterableRest(){return hasRequiredNonIterableRest||(hasRequiredNonIterableRest=1,function(e){function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(nonIterableRest)),nonIterableRest.exports}var hasRequiredSlicedToArray;function requireSlicedToArray(){return hasRequiredSlicedToArray||(hasRequiredSlicedToArray=1,function(e){var n=requireArrayWithHoles(),t=requireIterableToArrayLimit(),o=requireUnsupportedIterableToArray(),r=requireNonIterableRest();function a(s,l){return n(s)||t(s,l)||o(s,l)||r()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(slicedToArray)),slicedToArray.exports}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _setPrototypeOf$1(e,n){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},_setPrototypeOf$1(e,n)}function _inherits(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_setPrototypeOf$1(e,n)}function _getPrototypeOf$1(e){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$1(e)}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _typeof$1(e){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$1(e)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,n){if(n&&(_typeof$1(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var n=_isNativeReflectConstruct$1();return function(){var o=_getPrototypeOf$1(e),r;if(n){var a=_getPrototypeOf$1(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _defineProperty$1(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ownKeys$3(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread2$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$3(Object(t),!0).forEach(function(o){_defineProperty$1(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$3(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function findDOMNode(e){return e instanceof HTMLElement?e:ReactDOM__default.default.findDOMNode(e)}var reactIs={exports:{}},reactIs_production_min={};/** @license React v16.13.1
4
4
  * react-is.production.min.js
@@ -7,14 +7,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function y(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case n:switch(w=w.type,w){case c:case u:case o:case a:case r:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case g:case p:case s:return w;default:return O}}case t:return O}}}function x(w){return y(w)===u}return reactIs_production_min.AsyncMode=c,reactIs_production_min.ConcurrentMode=u,reactIs_production_min.ContextConsumer=l,reactIs_production_min.ContextProvider=s,reactIs_production_min.Element=n,reactIs_production_min.ForwardRef=d,reactIs_production_min.Fragment=o,reactIs_production_min.Lazy=g,reactIs_production_min.Memo=p,reactIs_production_min.Portal=t,reactIs_production_min.Profiler=a,reactIs_production_min.StrictMode=r,reactIs_production_min.Suspense=f,reactIs_production_min.isAsyncMode=function(w){return x(w)||y(w)===c},reactIs_production_min.isConcurrentMode=x,reactIs_production_min.isContextConsumer=function(w){return y(w)===l},reactIs_production_min.isContextProvider=function(w){return y(w)===s},reactIs_production_min.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===n},reactIs_production_min.isForwardRef=function(w){return y(w)===d},reactIs_production_min.isFragment=function(w){return y(w)===o},reactIs_production_min.isLazy=function(w){return y(w)===g},reactIs_production_min.isMemo=function(w){return y(w)===p},reactIs_production_min.isPortal=function(w){return y(w)===t},reactIs_production_min.isProfiler=function(w){return y(w)===a},reactIs_production_min.isStrictMode=function(w){return y(w)===r},reactIs_production_min.isSuspense=function(w){return y(w)===f},reactIs_production_min.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===u||w===a||w===r||w===f||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===p||w.$$typeof===s||w.$$typeof===l||w.$$typeof===d||w.$$typeof===C||w.$$typeof===I||w.$$typeof===h||w.$$typeof===v)},reactIs_production_min.typeOf=y,reactIs_production_min}var reactIs_development={};/** @license React v16.13.1
10
+ */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function y(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case n:switch(w=w.type,w){case c:case u:case o:case a:case r:case f:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case h:case p:case s:return w;default:return O}}case t:return O}}}function x(w){return y(w)===u}return reactIs_production_min.AsyncMode=c,reactIs_production_min.ConcurrentMode=u,reactIs_production_min.ContextConsumer=l,reactIs_production_min.ContextProvider=s,reactIs_production_min.Element=n,reactIs_production_min.ForwardRef=d,reactIs_production_min.Fragment=o,reactIs_production_min.Lazy=h,reactIs_production_min.Memo=p,reactIs_production_min.Portal=t,reactIs_production_min.Profiler=a,reactIs_production_min.StrictMode=r,reactIs_production_min.Suspense=f,reactIs_production_min.isAsyncMode=function(w){return x(w)||y(w)===c},reactIs_production_min.isConcurrentMode=x,reactIs_production_min.isContextConsumer=function(w){return y(w)===l},reactIs_production_min.isContextProvider=function(w){return y(w)===s},reactIs_production_min.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===n},reactIs_production_min.isForwardRef=function(w){return y(w)===d},reactIs_production_min.isFragment=function(w){return y(w)===o},reactIs_production_min.isLazy=function(w){return y(w)===h},reactIs_production_min.isMemo=function(w){return y(w)===p},reactIs_production_min.isPortal=function(w){return y(w)===t},reactIs_production_min.isProfiler=function(w){return y(w)===a},reactIs_production_min.isStrictMode=function(w){return y(w)===r},reactIs_production_min.isSuspense=function(w){return y(w)===f},reactIs_production_min.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===u||w===a||w===r||w===f||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===s||w.$$typeof===l||w.$$typeof===d||w.$$typeof===C||w.$$typeof===I||w.$$typeof===g||w.$$typeof===v)},reactIs_production_min.typeOf=y,reactIs_production_min}var reactIs_development={};/** @license React v16.13.1
11
11
  * react-is.development.js
12
12
  *
13
13
  * Copyright (c) Facebook, Inc. and its affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function y(_){return typeof _=="string"||typeof _=="function"||_===o||_===u||_===a||_===r||_===f||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===s||_.$$typeof===l||_.$$typeof===d||_.$$typeof===C||_.$$typeof===I||_.$$typeof===h||_.$$typeof===v)}function x(_){if(typeof _=="object"&&_!==null){var z=_.$$typeof;switch(z){case n:var X=_.type;switch(X){case c:case u:case o:case a:case r:case f:return X;default:var ne=X&&X.$$typeof;switch(ne){case l:case d:case g:case p:case s:return ne;default:return z}}case t:return z}}}var w=c,O=u,F=l,b=s,S=n,T=d,k=o,L=g,D=p,P=t,M=a,q=r,U=f,B=!1;function V(_){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(_)||x(_)===c}function G(_){return x(_)===u}function Y(_){return x(_)===l}function H(_){return x(_)===s}function K(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function N(_){return x(_)===d}function W(_){return x(_)===o}function j(_){return x(_)===g}function A(_){return x(_)===p}function $(_){return x(_)===t}function Z(_){return x(_)===a}function Q(_){return x(_)===r}function E(_){return x(_)===f}reactIs_development.AsyncMode=w,reactIs_development.ConcurrentMode=O,reactIs_development.ContextConsumer=F,reactIs_development.ContextProvider=b,reactIs_development.Element=S,reactIs_development.ForwardRef=T,reactIs_development.Fragment=k,reactIs_development.Lazy=L,reactIs_development.Memo=D,reactIs_development.Portal=P,reactIs_development.Profiler=M,reactIs_development.StrictMode=q,reactIs_development.Suspense=U,reactIs_development.isAsyncMode=V,reactIs_development.isConcurrentMode=G,reactIs_development.isContextConsumer=Y,reactIs_development.isContextProvider=H,reactIs_development.isElement=K,reactIs_development.isForwardRef=N,reactIs_development.isFragment=W,reactIs_development.isLazy=j,reactIs_development.isMemo=A,reactIs_development.isPortal=$,reactIs_development.isProfiler=Z,reactIs_development.isStrictMode=Q,reactIs_development.isSuspense=E,reactIs_development.isValidElementType=y,reactIs_development.typeOf=x}()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,function(e){process.env.NODE_ENV==="production"?e.exports=requireReactIs_production_min():e.exports=requireReactIs_development()}(reactIs)),reactIs.exports}var reactIsExports=requireReactIs();function toArray$3(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return React__default.default.Children.forEach(e,function(o){o==null&&!n.keepEmpty||(Array.isArray(o)?t=t.concat(toArray$3(o)):reactIsExports.isFragment(o)&&o.props?t=t.concat(toArray$3(o.props.children,n)):t.push(o))}),t}var warned={};function warning$5(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function call$1(e,n,t){!n&&!warned[t]&&(e(!1,t),warned[t]=!0)}function warningOnce(e,n){call$1(warning$5,e,n)}function fillRef(e,n){typeof e=="function"?e(n):_typeof$1(e)==="object"&&e&&"current"in e&&(e.current=n)}function composeRef(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(o){n.forEach(function(r){fillRef(r,o)})}}function supportRef(e){var n,t,o=reactIsExports.isMemo(e)?e.type.type:e.type;return!(typeof o=="function"&&!(!((n=o.prototype)===null||n===void 0)&&n.render)||typeof e=="function"&&!(!((t=e.prototype)===null||t===void 0)&&t.render))}var MapShim=function(){if(typeof Map<"u")return Map;function e(n,t){var o=-1;return n.some(function(r,a){return r[0]===t?(o=a,!0):!1}),o}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(t){var o=e(this.__entries__,t),r=this.__entries__[o];return r&&r[1]},n.prototype.set=function(t,o){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=o:this.__entries__.push([t,o])},n.prototype.delete=function(t){var o=this.__entries__,r=e(o,t);~r&&o.splice(r,1)},n.prototype.has=function(t){return!!~e(this.__entries__,t)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(t,o){o===void 0&&(o=null);for(var r=0,a=this.__entries__;r<a.length;r++){var s=a[r];t.call(o,s[1],s[0])}},n}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(e,n){var t=!1,o=!1,r=0;function a(){t&&(t=!1,e()),o&&l()}function s(){requestAnimationFrame$1(a)}function l(){var c=Date.now();if(t){if(c-r<trailingTimeout)return;o=!0}else t=!0,o=!1,setTimeout(s,n);r=c}return l}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var t=this.observers_,o=t.indexOf(n);~o&&t.splice(o,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return n.forEach(function(t){return t.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var t=n.propertyName,o=t===void 0?"":t,r=transitionKeys.some(function(a){return!!~o.indexOf(a)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),defineConfigurable=function(e,n){for(var t=0,o=Object.keys(n);t<o.length;t++){var r=o[t];Object.defineProperty(e,r,{value:n[r],enumerable:!1,writable:!1,configurable:!0})}return e},getWindowOf=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return n.reduce(function(o,r){var a=e["border-"+r+"-width"];return o+toFloat(a)},0)}function getPaddings(e){for(var n=["top","right","bottom","left"],t={},o=0,r=n;o<r.length;o++){var a=r[o],s=e["padding-"+a];t[a]=toFloat(s)}return t}function getSVGContentRect(e){var n=e.getBBox();return createRectInit(0,0,n.width,n.height)}function getHTMLElementContentRect(e){var n=e.clientWidth,t=e.clientHeight;if(!n&&!t)return emptyRect;var o=getWindowOf(e).getComputedStyle(e),r=getPaddings(o),a=r.left+r.right,s=r.top+r.bottom,l=toFloat(o.width),c=toFloat(o.height);if(o.boxSizing==="border-box"&&(Math.round(l+a)!==n&&(l-=getBordersSize(o,"left","right")+a),Math.round(c+s)!==t&&(c-=getBordersSize(o,"top","bottom")+s)),!isDocumentElement(e)){var u=Math.round(l+a)-n,d=Math.round(c+s)-t;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return createRectInit(r.left,r.top,l,c)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}}();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var n=e.x,t=e.y,o=e.width,r=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return defineConfigurable(s,{x:n,y:t,width:o,height:r,top:t,right:n+o,bottom:r+t,left:n}),s}function createRectInit(e,n,t,o){return{x:e,y:n,width:t,height:o}}var ResizeObservation=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=getContentRect(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),ResizeObserverEntry=function(){function e(n,t){var o=createReadOnlyRect(t);defineConfigurable(this,{target:n,contentRect:o})}return e}(),ResizeObserverSPI=function(){function e(n,t,o){if(this.activeObservations_=[],this.observations_=new MapShim,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=t,this.callbackCtx_=o}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof getWindowOf(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new ResizeObservation(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof getWindowOf(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;!t.has(n)||(t.delete(n),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(o){return new ResizeObserverEntry(o.target,o.broadcastRect())});this.callback_.call(n,t,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=ResizeObserverController.getInstance(),o=new ResizeObserverSPI(n,t,this);observers.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver.prototype[e]=function(){var n;return(n=observers.get(this))[e].apply(n,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}(),INTERNAL_PREFIX_KEY="rc-observer-key",ReactResizeObserver=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var o;return _classCallCheck(this,t),o=n.apply(this,arguments),o.resizeObserver=null,o.childNode=null,o.currentElement=null,o.state={width:0,height:0,offsetHeight:0,offsetWidth:0},o.onResize=function(r){var a=o.props.onResize,s=r[0].target,l=s.getBoundingClientRect(),c=l.width,u=l.height,d=s.offsetWidth,f=s.offsetHeight,m=Math.floor(c),p=Math.floor(u);if(o.state.width!==m||o.state.height!==p||o.state.offsetWidth!==d||o.state.offsetHeight!==f){var g={width:m,height:p,offsetWidth:d,offsetHeight:f};o.setState(g),a&&Promise.resolve().then(function(){a(_objectSpread2$1(_objectSpread2$1({},g),{},{offsetWidth:d,offsetHeight:f}),s)})}},o.setChildNode=function(r){o.childNode=r},o}return _createClass(t,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var r=this.props.disabled;if(r){this.destroyObserver();return}var a=findDOMNode(this.childNode||this),s=a!==this.currentElement;s&&(this.destroyObserver(),this.currentElement=a),!this.resizeObserver&&a&&(this.resizeObserver=new index(this.onResize),this.resizeObserver.observe(a))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var r=this.props.children,a=toArray$3(r);if(a.length>1)warningOnce(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(a.length===0)return warningOnce(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var s=a[0];if(React__namespace.isValidElement(s)&&supportRef(s)){var l=s.ref;a[0]=React__namespace.cloneElement(s,{ref:composeRef(l,this.setChildNode)})}return a.length===1?a[0]:a.map(function(c,u){return!React__namespace.isValidElement(c)||"key"in c&&c.key!==null?c:React__namespace.cloneElement(c,{key:"".concat(INTERNAL_PREFIX_KEY,"-").concat(u)})})}}]),t}(React__namespace.Component);ReactResizeObserver.displayName="ResizeObserver";const es$4=Object.freeze(Object.defineProperty({__proto__:null,default:ReactResizeObserver},Symbol.toStringTag,{value:"Module"}));function ownKeys$2(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$2(Object(t),!0).forEach(function(o){_defineProperty$1(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$2(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function omit$1(e,n){var t=_objectSpread$1({},e);return Array.isArray(n)&&n.forEach(function(o){delete t[o]}),t}var classnames={exports:{}};/*!
17
+ */var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function y(S){return typeof S=="string"||typeof S=="function"||S===o||S===u||S===a||S===r||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===p||S.$$typeof===s||S.$$typeof===l||S.$$typeof===d||S.$$typeof===C||S.$$typeof===I||S.$$typeof===g||S.$$typeof===v)}function x(S){if(typeof S=="object"&&S!==null){var z=S.$$typeof;switch(z){case n:var X=S.type;switch(X){case c:case u:case o:case a:case r:case f:return X;default:var ne=X&&X.$$typeof;switch(ne){case l:case d:case h:case p:case s:return ne;default:return z}}case t:return z}}}var w=c,O=u,F=l,b=s,_=n,T=d,k=o,N=h,D=p,P=t,j=a,$=r,q=f,B=!1;function H(S){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(S)||x(S)===c}function G(S){return x(S)===u}function Y(S){return x(S)===l}function W(S){return x(S)===s}function Z(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function L(S){return x(S)===d}function V(S){return x(S)===o}function M(S){return x(S)===h}function A(S){return x(S)===p}function U(S){return x(S)===t}function K(S){return x(S)===a}function Q(S){return x(S)===r}function E(S){return x(S)===f}reactIs_development.AsyncMode=w,reactIs_development.ConcurrentMode=O,reactIs_development.ContextConsumer=F,reactIs_development.ContextProvider=b,reactIs_development.Element=_,reactIs_development.ForwardRef=T,reactIs_development.Fragment=k,reactIs_development.Lazy=N,reactIs_development.Memo=D,reactIs_development.Portal=P,reactIs_development.Profiler=j,reactIs_development.StrictMode=$,reactIs_development.Suspense=q,reactIs_development.isAsyncMode=H,reactIs_development.isConcurrentMode=G,reactIs_development.isContextConsumer=Y,reactIs_development.isContextProvider=W,reactIs_development.isElement=Z,reactIs_development.isForwardRef=L,reactIs_development.isFragment=V,reactIs_development.isLazy=M,reactIs_development.isMemo=A,reactIs_development.isPortal=U,reactIs_development.isProfiler=K,reactIs_development.isStrictMode=Q,reactIs_development.isSuspense=E,reactIs_development.isValidElementType=y,reactIs_development.typeOf=x}()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,function(e){process.env.NODE_ENV==="production"?e.exports=requireReactIs_production_min():e.exports=requireReactIs_development()}(reactIs)),reactIs.exports}var reactIsExports=requireReactIs();function toArray$3(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return React__default.default.Children.forEach(e,function(o){o==null&&!n.keepEmpty||(Array.isArray(o)?t=t.concat(toArray$3(o)):reactIsExports.isFragment(o)&&o.props?t=t.concat(toArray$3(o.props.children,n)):t.push(o))}),t}var warned={};function warning$5(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function call$1(e,n,t){!n&&!warned[t]&&(e(!1,t),warned[t]=!0)}function warningOnce(e,n){call$1(warning$5,e,n)}function fillRef(e,n){typeof e=="function"?e(n):_typeof$1(e)==="object"&&e&&"current"in e&&(e.current=n)}function composeRef(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(o){n.forEach(function(r){fillRef(r,o)})}}function supportRef(e){var n,t,o=reactIsExports.isMemo(e)?e.type.type:e.type;return!(typeof o=="function"&&!(!((n=o.prototype)===null||n===void 0)&&n.render)||typeof e=="function"&&!(!((t=e.prototype)===null||t===void 0)&&t.render))}var MapShim=function(){if(typeof Map<"u")return Map;function e(n,t){var o=-1;return n.some(function(r,a){return r[0]===t?(o=a,!0):!1}),o}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(t){var o=e(this.__entries__,t),r=this.__entries__[o];return r&&r[1]},n.prototype.set=function(t,o){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=o:this.__entries__.push([t,o])},n.prototype.delete=function(t){var o=this.__entries__,r=e(o,t);~r&&o.splice(r,1)},n.prototype.has=function(t){return!!~e(this.__entries__,t)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(t,o){o===void 0&&(o=null);for(var r=0,a=this.__entries__;r<a.length;r++){var s=a[r];t.call(o,s[1],s[0])}},n}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(e,n){var t=!1,o=!1,r=0;function a(){t&&(t=!1,e()),o&&l()}function s(){requestAnimationFrame$1(a)}function l(){var c=Date.now();if(t){if(c-r<trailingTimeout)return;o=!0}else t=!0,o=!1,setTimeout(s,n);r=c}return l}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var t=this.observers_,o=t.indexOf(n);~o&&t.splice(o,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return n.forEach(function(t){return t.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var t=n.propertyName,o=t===void 0?"":t,r=transitionKeys.some(function(a){return!!~o.indexOf(a)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),defineConfigurable=function(e,n){for(var t=0,o=Object.keys(n);t<o.length;t++){var r=o[t];Object.defineProperty(e,r,{value:n[r],enumerable:!1,writable:!1,configurable:!0})}return e},getWindowOf=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return n.reduce(function(o,r){var a=e["border-"+r+"-width"];return o+toFloat(a)},0)}function getPaddings(e){for(var n=["top","right","bottom","left"],t={},o=0,r=n;o<r.length;o++){var a=r[o],s=e["padding-"+a];t[a]=toFloat(s)}return t}function getSVGContentRect(e){var n=e.getBBox();return createRectInit(0,0,n.width,n.height)}function getHTMLElementContentRect(e){var n=e.clientWidth,t=e.clientHeight;if(!n&&!t)return emptyRect;var o=getWindowOf(e).getComputedStyle(e),r=getPaddings(o),a=r.left+r.right,s=r.top+r.bottom,l=toFloat(o.width),c=toFloat(o.height);if(o.boxSizing==="border-box"&&(Math.round(l+a)!==n&&(l-=getBordersSize(o,"left","right")+a),Math.round(c+s)!==t&&(c-=getBordersSize(o,"top","bottom")+s)),!isDocumentElement(e)){var u=Math.round(l+a)-n,d=Math.round(c+s)-t;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return createRectInit(r.left,r.top,l,c)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}}();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var n=e.x,t=e.y,o=e.width,r=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return defineConfigurable(s,{x:n,y:t,width:o,height:r,top:t,right:n+o,bottom:r+t,left:n}),s}function createRectInit(e,n,t,o){return{x:e,y:n,width:t,height:o}}var ResizeObservation=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=getContentRect(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),ResizeObserverEntry=function(){function e(n,t){var o=createReadOnlyRect(t);defineConfigurable(this,{target:n,contentRect:o})}return e}(),ResizeObserverSPI=function(){function e(n,t,o){if(this.activeObservations_=[],this.observations_=new MapShim,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=t,this.callbackCtx_=o}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof getWindowOf(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(n)||(t.set(n,new ResizeObservation(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof getWindowOf(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;!t.has(n)||(t.delete(n),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&n.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var n=this.callbackCtx_,t=this.activeObservations_.map(function(o){return new ResizeObserverEntry(o.target,o.broadcastRect())});this.callback_.call(n,t,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=ResizeObserverController.getInstance(),o=new ResizeObserverSPI(n,t,this);observers.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver.prototype[e]=function(){var n;return(n=observers.get(this))[e].apply(n,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}(),INTERNAL_PREFIX_KEY="rc-observer-key",ReactResizeObserver=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var o;return _classCallCheck(this,t),o=n.apply(this,arguments),o.resizeObserver=null,o.childNode=null,o.currentElement=null,o.state={width:0,height:0,offsetHeight:0,offsetWidth:0},o.onResize=function(r){var a=o.props.onResize,s=r[0].target,l=s.getBoundingClientRect(),c=l.width,u=l.height,d=s.offsetWidth,f=s.offsetHeight,m=Math.floor(c),p=Math.floor(u);if(o.state.width!==m||o.state.height!==p||o.state.offsetWidth!==d||o.state.offsetHeight!==f){var h={width:m,height:p,offsetWidth:d,offsetHeight:f};o.setState(h),a&&Promise.resolve().then(function(){a(_objectSpread2$1(_objectSpread2$1({},h),{},{offsetWidth:d,offsetHeight:f}),s)})}},o.setChildNode=function(r){o.childNode=r},o}return _createClass(t,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var r=this.props.disabled;if(r){this.destroyObserver();return}var a=findDOMNode(this.childNode||this),s=a!==this.currentElement;s&&(this.destroyObserver(),this.currentElement=a),!this.resizeObserver&&a&&(this.resizeObserver=new index(this.onResize),this.resizeObserver.observe(a))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var r=this.props.children,a=toArray$3(r);if(a.length>1)warningOnce(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(a.length===0)return warningOnce(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var s=a[0];if(React__namespace.isValidElement(s)&&supportRef(s)){var l=s.ref;a[0]=React__namespace.cloneElement(s,{ref:composeRef(l,this.setChildNode)})}return a.length===1?a[0]:a.map(function(c,u){return!React__namespace.isValidElement(c)||"key"in c&&c.key!==null?c:React__namespace.cloneElement(c,{key:"".concat(INTERNAL_PREFIX_KEY,"-").concat(u)})})}}]),t}(React__namespace.Component);ReactResizeObserver.displayName="ResizeObserver";const es$4=Object.freeze(Object.defineProperty({__proto__:null,default:ReactResizeObserver},Symbol.toStringTag,{value:"Module"}));function ownKeys$2(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread$1(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$2(Object(t),!0).forEach(function(o){_defineProperty$1(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$2(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function omit$1(e,n){var t=_objectSpread$1({},e);return Array.isArray(n)&&n.forEach(function(o){delete t[o]}),t}var classnames={exports:{}};/*!
18
18
  Copyright (c) 2018 Jed Watson.
19
19
  Licensed under the MIT License (MIT), see
20
20
  http://jedwatson.github.io/classnames
@@ -28,7 +28,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
28
28
  z-index:-1000 !important;
29
29
  top:0 !important;
30
30
  right:0 !important
31
- `,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&computedStyleCache[t])return computedStyleCache[t];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),a=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l=SIZING_STYLE.map(function(u){return"".concat(u,":").concat(o.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:s,boxSizing:r};return n&&t&&(computedStyleCache[t]=c),c}function calculateNodeHeight(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),e.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",e.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var r=calculateNodeStyling(e,n),a=r.paddingSize,s=r.borderSize,l=r.boxSizing,c=r.sizingStyle;hiddenTextarea.setAttribute("style","".concat(c,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=e.value||e.placeholder||"";var u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,f=hiddenTextarea.scrollHeight,m;if(l==="border-box"?f+=s:l==="content-box"&&(f-=a),t!==null||o!==null){hiddenTextarea.value=" ";var p=hiddenTextarea.scrollHeight-a;t!==null&&(u=p*t,l==="border-box"&&(u=u+a+s),f=Math.max(u,f)),o!==null&&(d=p*o,l==="border-box"&&(d=d+a+s),m=f>d?"":"hidden",f=Math.min(d,f))}return{height:f,minHeight:u,maxHeight:d,overflowY:m,resize:"none"}}var RESIZE_STATUS;(function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"})(RESIZE_STATUS||(RESIZE_STATUS={}));var ResizableTextArea=function(e){_inherits(t,e);var n=_createSuper(t);function t(o){var r;return _classCallCheck(this,t),r=n.call(this,o),r.saveTextArea=function(a){r.textArea=a},r.handleResize=function(a){var s=r.state.resizeStatus,l=r.props,c=l.autoSize,u=l.onResize;s===RESIZE_STATUS.NONE&&(typeof u=="function"&&u(a),c&&r.resizeOnNextFrame())},r.resizeOnNextFrame=function(){cancelAnimationFrame(r.nextFrameActionId),r.nextFrameActionId=requestAnimationFrame(r.resizeTextarea)},r.resizeTextarea=function(){var a=r.props.autoSize;if(!(!a||!r.textArea)){var s=a.minRows,l=a.maxRows,c=calculateNodeHeight(r.textArea,!1,s,l);r.setState({textareaStyles:c,resizeStatus:RESIZE_STATUS.RESIZING},function(){cancelAnimationFrame(r.resizeFrameId),r.resizeFrameId=requestAnimationFrame(function(){r.setState({resizeStatus:RESIZE_STATUS.RESIZED},function(){r.resizeFrameId=requestAnimationFrame(function(){r.setState({resizeStatus:RESIZE_STATUS.NONE}),r.fixFirefoxAutoScroll()})})})})}},r.renderTextArea=function(){var a=r.props,s=a.prefixCls,l=s===void 0?"rc-textarea":s,c=a.autoSize,u=a.onResize,d=a.className,f=a.disabled,m=r.state,p=m.textareaStyles,g=m.resizeStatus,v=omit$1(r.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),C=classnamesExports(l,d,_defineProperty$1({},"".concat(l,"-disabled"),f));"value"in v&&(v.value=v.value||"");var I=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},r.props.style),p),g===RESIZE_STATUS.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return jsxRuntime.jsx(ReactResizeObserver,{onResize:r.handleResize,disabled:!(c||u),children:jsxRuntime.jsx("textarea",{...v,className:C,style:I,ref:r.saveTextArea})})},r.state={textareaStyles:{},resizeStatus:RESIZE_STATUS.NONE},r}return _createClass(t,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(r){r.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var r=this.textArea.selectionStart,a=this.textArea.selectionEnd;this.textArea.setSelectionRange(r,a)}}catch{}}},{key:"render",value:function(){return this.renderTextArea()}}]),t}(React__namespace.Component),TextArea$2=function(e){_inherits(t,e);var n=_createSuper(t);function t(o){var r;_classCallCheck(this,t),r=n.call(this,o),r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(s){r.resizableTextArea=s},r.handleChange=function(s){var l=r.props.onChange;r.setValue(s.target.value,function(){r.resizableTextArea.resizeTextarea()}),l&&l(s)},r.handleKeyDown=function(s){var l=r.props,c=l.onPressEnter,u=l.onKeyDown;s.keyCode===13&&c&&c(s),u&&u(s)};var a=typeof o.value>"u"||o.value===null?o.defaultValue:o.value;return r.state={value:a},r}return _createClass(t,[{key:"setValue",value:function(r,a){"value"in this.props||this.setState({value:r},a)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return jsxRuntime.jsx(ResizableTextArea,{...this.props,value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea})}}],[{key:"getDerivedStateFromProps",value:function(r){return"value"in r?{value:r.value}:null}}]),t}(React__namespace.Component);const es$3=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea,default:TextArea$2},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(es$3);var omit={},hasRequiredOmit;function requireOmit(){if(hasRequiredOmit)return omit;hasRequiredOmit=1;var e=interopRequireDefault.exports;Object.defineProperty(omit,"__esModule",{value:!0}),omit.default=r;var n=e(requireDefineProperty());function t(a,s){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),l.push.apply(l,c)}return l}function o(a){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?t(Object(l),!0).forEach(function(c){(0,n.default)(a,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(l)):t(Object(l)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(l,c))})}return a}function r(a,s){var l=o({},a);return Array.isArray(s)&&s.forEach(function(c){delete l[c]}),l}return omit}var useMergedState={},hasRequiredUseMergedState;function requireUseMergedState(){if(hasRequiredUseMergedState)return useMergedState;hasRequiredUseMergedState=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(useMergedState,"__esModule",{value:!0}),useMergedState.default=r;var t=n(requireSlicedToArray()),o=e(React__default.default);function r(a,s){var l=s||{},c=l.defaultValue,u=l.value,d=l.onChange,f=l.postState,m=o.useState(function(){return u!==void 0?u:c!==void 0?typeof c=="function"?c():c:typeof a=="function"?a():a}),p=(0,t.default)(m,2),g=p[0],v=p[1],C=u!==void 0?u:g;f&&(C=f(C));function I(y){v(y),C!==y&&d&&d(y,C)}var h=o.useRef(!0);return o.useEffect(function(){if(h.current){h.current=!1;return}u===void 0&&v(u)},[u]),[C,I]}return useMergedState}var ClearableLabeledInput={},classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(e){function n(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(classCallCheck)),classCallCheck.exports}var createClass={exports:{}},hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(e){function n(o,r){for(var a=0;a<r.length;a++){var s=r[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function t(o,r,a){return r&&n(o.prototype,r),a&&n(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(createClass)),createClass.exports}var inherits={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(e){function n(t,o){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,s){return a.__proto__=s,a},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(setPrototypeOf)),setPrototypeOf.exports}var hasRequiredInherits;function requireInherits(){return hasRequiredInherits||(hasRequiredInherits=1,function(e){var n=requireSetPrototypeOf();function t(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),r&&n(o,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(inherits)),inherits.exports}var createSuper={exports:{}},getPrototypeOf={exports:{}},hasRequiredGetPrototypeOf;function requireGetPrototypeOf(){return hasRequiredGetPrototypeOf||(hasRequiredGetPrototypeOf=1,function(e){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(getPrototypeOf)),getPrototypeOf.exports}var isNativeReflectConstruct={exports:{}},hasRequiredIsNativeReflectConstruct;function requireIsNativeReflectConstruct(){return hasRequiredIsNativeReflectConstruct||(hasRequiredIsNativeReflectConstruct=1,function(e){function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(isNativeReflectConstruct)),isNativeReflectConstruct.exports}var possibleConstructorReturn={exports:{}},assertThisInitialized={exports:{}},hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){return hasRequiredAssertThisInitialized||(hasRequiredAssertThisInitialized=1,function(e){function n(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(assertThisInitialized)),assertThisInitialized.exports}var hasRequiredPossibleConstructorReturn;function requirePossibleConstructorReturn(){return hasRequiredPossibleConstructorReturn||(hasRequiredPossibleConstructorReturn=1,function(e){var n=_typeof$2.exports.default,t=requireAssertThisInitialized();function o(r,a){if(a&&(n(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(possibleConstructorReturn)),possibleConstructorReturn.exports}var hasRequiredCreateSuper;function requireCreateSuper(){return hasRequiredCreateSuper||(hasRequiredCreateSuper=1,function(e){var n=requireGetPrototypeOf(),t=requireIsNativeReflectConstruct(),o=requirePossibleConstructorReturn();function r(a){var s=t();return function(){var c=n(a),u;if(s){var d=n(this).constructor;u=Reflect.construct(c,arguments,d)}else u=c.apply(this,arguments);return o(this,u)}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(createSuper)),createSuper.exports}var CloseCircleFilled$2={exports:{}},CloseCircleFilled$1={},objectSpread2={exports:{}},hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(e){var n=requireDefineProperty();function t(r,a){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),s.push.apply(s,l)}return s}function o(r){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?t(Object(s),!0).forEach(function(l){n(r,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):t(Object(s)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(s,l))})}return r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(objectSpread2)),objectSpread2.exports}var CloseCircleFilled={},hasRequiredCloseCircleFilled$2;function requireCloseCircleFilled$2(){if(hasRequiredCloseCircleFilled$2)return CloseCircleFilled;hasRequiredCloseCircleFilled$2=1,Object.defineProperty(CloseCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};return CloseCircleFilled.default=e,CloseCircleFilled}var AntdIcon={},objectWithoutProperties={exports:{}},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function n(t,o){if(t==null)return{};var r={},a=Object.keys(t),s,l;for(l=0;l<a.length;l++)s=a[l],!(o.indexOf(s)>=0)&&(r[s]=t[s]);return r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var hasRequiredObjectWithoutProperties;function requireObjectWithoutProperties(){return hasRequiredObjectWithoutProperties||(hasRequiredObjectWithoutProperties=1,function(e){var n=requireObjectWithoutPropertiesLoose();function t(o,r){if(o==null)return{};var a=n(o,r),s,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)s=c[l],!(r.indexOf(s)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,s)||(a[s]=o[s]))}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutProperties)),objectWithoutProperties.exports}var Context$1={},hasRequiredContext$2;function requireContext$2(){if(hasRequiredContext$2)return Context$1;hasRequiredContext$2=1,Object.defineProperty(Context$1,"__esModule",{value:!0}),Context$1.default=void 0;var e=React__default.default,n=(0,e.createContext)({}),t=n;return Context$1.default=t,Context$1}var IconBase={},utils$1={};function bound01(e,n){isOnePointZero(e)&&(e="100%");var t=isPercentage(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?Number(e)*100+"%":e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,n,t){return{r:bound01(e,255)*255,g:bound01(n,255)*255,b:bound01(t,255)*255}}function hue2rgb(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function hslToRgb(e,n,t){var o,r,a;if(e=bound01(e,360),n=bound01(n,100),t=bound01(t,100),n===0)r=t,a=t,o=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;o=hue2rgb(l,s,e+1/3),r=hue2rgb(l,s,e),a=hue2rgb(l,s,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function rgbToHsv(e,n,t){e=bound01(e,255),n=bound01(n,255),t=bound01(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),a=0,s=o,l=o-r,c=o===0?0:l/o;if(o===r)a=0;else{switch(o){case e:a=(n-t)/l+(n<t?6:0);break;case n:a=(t-e)/l+2;break;case t:a=(e-n)/l+4;break}a/=6}return{h:a,s:c,v:s}}function hsvToRgb(e,n,t){e=bound01(e,360)*6,n=bound01(n,100),t=bound01(t,100);var o=Math.floor(e),r=e-o,a=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),c=o%6,u=[t,s,a,a,l,t][c],d=[l,t,t,s,a,a][c],f=[a,a,l,t,t,s][c];return{r:u*255,g:d*255,b:f*255}}function rgbToHex(e,n,t,o){var r=[pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,16)}var names={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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(n=rgbToRgb(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(o=convertToPercentage(e.s),r=convertToPercentage(e.v),n=hsvToRgb(e.h,o,r),s=!0,l="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(o=convertToPercentage(e.s),a=convertToPercentage(e.l),n=hslToRgb(e.h,o,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=boundAlpha(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(names[e])e=names[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=matchers.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=matchers.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=matchers.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=matchers.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=matchers.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=matchers.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=matchers.hex8.exec(e),t?{r:parseIntFromHex(t[1]),g:parseIntFromHex(t[2]),b:parseIntFromHex(t[3]),a:convertHexToDecimal(t[4]),format:n?"name":"hex8"}:(t=matchers.hex6.exec(e),t?{r:parseIntFromHex(t[1]),g:parseIntFromHex(t[2]),b:parseIntFromHex(t[3]),format:n?"name":"hex"}:(t=matchers.hex4.exec(e),t?{r:parseIntFromHex(t[1]+t[1]),g:parseIntFromHex(t[2]+t[2]),b:parseIntFromHex(t[3]+t[3]),a:convertHexToDecimal(t[4]+t[4]),format:n?"name":"hex8"}:(t=matchers.hex3.exec(e),t?{r:parseIntFromHex(t[1]+t[1]),g:parseIntFromHex(t[2]+t[2]),b:parseIntFromHex(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return Boolean(matchers.CSS_UNIT.exec(String(e)))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(e){var n=e.r,t=e.g,o=e.b,r=rgbToHsv(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function toHex(e){var n=e.r,t=e.g,o=e.b;return"#".concat(rgbToHex(n,t,o,!1))}function mix$1(e,n,t){var o=t/100,r={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return r}function getHue(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-hueStep*n:Math.round(e.h)+hueStep*n:o=t?Math.round(e.h)+hueStep*n:Math.round(e.h)-hueStep*n,o<0?o+=360:o>=360&&(o-=360),o}function getSaturation(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-saturationStep*n:n===darkColorCount?o=e.s+saturationStep:o=e.s+saturationStep2*n,o>1&&(o=1),t&&n===lightColorCount&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function getValue$1(e,n,t){var o;return t?o=e.v+brightnessStep1*n:o=e.v-brightnessStep2*n,o>1&&(o=1),Number(o.toFixed(2))}function generate(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=inputToRGB(e),r=lightColorCount;r>0;r-=1){var a=toHsv(o),s=toHex(inputToRGB({h:getHue(a,r,!0),s:getSaturation(a,r,!0),v:getValue$1(a,r,!0)}));t.push(s)}t.push(toHex(o));for(var l=1;l<=darkColorCount;l+=1){var c=toHsv(o),u=toHex(inputToRGB({h:getHue(c,l),s:getSaturation(c,l),v:getValue$1(c,l)}));t.push(u)}return n.theme==="dark"?darkColorMap.map(function(d){var f=d.index,m=d.opacity,p=toHex(mix$1(inputToRGB(n.backgroundColor||"#141414"),inputToRGB(t[f]),m*100));return p}):t}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(e){presetPalettes[e]=generate(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var red=presetPalettes.red,volcano=presetPalettes.volcano,gold=presetPalettes.gold,orange=presetPalettes.orange,yellow=presetPalettes.yellow,lime=presetPalettes.lime,green=presetPalettes.green,cyan=presetPalettes.cyan,blue=presetPalettes.blue,geekblue=presetPalettes.geekblue,purple=presetPalettes.purple,magenta=presetPalettes.magenta,grey=presetPalettes.grey;const index_esm=Object.freeze(Object.defineProperty({__proto__:null,blue,cyan,geekblue,generate,gold,green,grey,lime,magenta,orange,presetDarkPalettes,presetPalettes,presetPrimaryColors,purple,red,volcano,yellow},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(index_esm);var warning$4={},hasRequiredWarning$1;function requireWarning$1(){if(hasRequiredWarning$1)return warning$4;hasRequiredWarning$1=1,Object.defineProperty(warning$4,"__esModule",{value:!0}),warning$4.call=r,warning$4.default=void 0,warning$4.note=t,warning$4.noteOnce=s,warning$4.resetWarned=o,warning$4.warning=n,warning$4.warningOnce=a;var e={};function n(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function t(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.warn("Note: ".concat(u))}function o(){e={}}function r(c,u,d){!u&&!e[d]&&(c(!1,d),e[d]=!0)}function a(c,u){r(n,c,u)}function s(c,u){r(t,c,u)}var l=a;return warning$4.default=l,warning$4}var dynamicCSS={},canUseDom$2={},hasRequiredCanUseDom$1;function requireCanUseDom$1(){if(hasRequiredCanUseDom$1)return canUseDom$2;hasRequiredCanUseDom$1=1,Object.defineProperty(canUseDom$2,"__esModule",{value:!0}),canUseDom$2.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom$2}var hasRequiredDynamicCSS;function requireDynamicCSS(){if(hasRequiredDynamicCSS)return dynamicCSS;hasRequiredDynamicCSS=1;var e=interopRequireDefault.exports;Object.defineProperty(dynamicCSS,"__esModule",{value:!0}),dynamicCSS.injectCSS=a,dynamicCSS.removeCSS=c,dynamicCSS.updateCSS=u;var n=e(requireCanUseDom$1()),t="rc-util-key";function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.mark;return f?f.startsWith("data-")?f:"data-".concat(f):t}function r(d){if(d.attachTo)return d.attachTo;var f=document.querySelector("head");return f||document.body}function a(d){var f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,n.default)())return null;var p=document.createElement("style");if(!((f=m.csp)===null||f===void 0)&&f.nonce){var g;p.nonce=(g=m.csp)===null||g===void 0?void 0:g.nonce}p.innerHTML=d;var v=r(m),C=v.firstChild;return m.prepend&&v.prepend?v.prepend(p):m.prepend&&C?v.insertBefore(p,C):v.appendChild(p),p}var s=new Map;function l(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=r(f);return Array.from(s.get(m).children).find(function(p){return p.tagName==="STYLE"&&p.getAttribute(o(f))===d})}function c(d){var f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=l(d,m);p==null||(f=p.parentNode)===null||f===void 0||f.removeChild(p)}function u(d,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=r(m);if(!s.has(p)){var g=a("",m),v=g.parentNode;s.set(p,v),v.removeChild(g)}var C=l(f,m);if(C){var I,h;if(((I=m.csp)===null||I===void 0?void 0:I.nonce)&&C.nonce!==((h=m.csp)===null||h===void 0?void 0:h.nonce)){var y;C.nonce=(y=m.csp)===null||y===void 0?void 0:y.nonce}return C.innerHTML!==d&&(C.innerHTML=d),C}var x=a(d,m);return x.setAttribute(o(m),f),x}return dynamicCSS}var hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$1;hasRequiredUtils=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(utils$1,"__esModule",{value:!0}),utils$1.warning=u,utils$1.isIconDefinition=d,utils$1.normalizeAttrs=f,utils$1.generate=m,utils$1.getSecondaryColor=p,utils$1.normalizeTwoToneColors=g,utils$1.useInsertStyles=utils$1.iconStyles=utils$1.svgBaseProps=void 0;var t=n(requireObjectSpread2()),o=n(_typeof$2.exports),r=require$$4,a=e(React__default.default),s=n(requireWarning$1()),l=requireDynamicCSS(),c=n(requireContext$2());function u(h,y){(0,s.default)(h,"[@ant-design/icons] ".concat(y))}function d(h){return(0,o.default)(h)==="object"&&typeof h.name=="string"&&typeof h.theme=="string"&&((0,o.default)(h.icon)==="object"||typeof h.icon=="function")}function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(h).reduce(function(y,x){var w=h[x];switch(x){case"class":y.className=w,delete y.class;break;default:y[x]=w}return y},{})}function m(h,y,x){return x?a.default.createElement(h.tag,(0,t.default)((0,t.default)({key:y},f(h.attrs)),x),(h.children||[]).map(function(w,O){return m(w,"".concat(y,"-").concat(h.tag,"-").concat(O))})):a.default.createElement(h.tag,(0,t.default)({key:y},f(h.attrs)),(h.children||[]).map(function(w,O){return m(w,"".concat(y,"-").concat(h.tag,"-").concat(O))}))}function p(h){return(0,r.generate)(h)[0]}function g(h){return h?Array.isArray(h)?h:[h]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};utils$1.svgBaseProps=v;var C=`
31
+ `,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&computedStyleCache[t])return computedStyleCache[t];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),a=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l=SIZING_STYLE.map(function(u){return"".concat(u,":").concat(o.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:s,boxSizing:r};return n&&t&&(computedStyleCache[t]=c),c}function calculateNodeHeight(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),e.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",e.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var r=calculateNodeStyling(e,n),a=r.paddingSize,s=r.borderSize,l=r.boxSizing,c=r.sizingStyle;hiddenTextarea.setAttribute("style","".concat(c,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=e.value||e.placeholder||"";var u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,f=hiddenTextarea.scrollHeight,m;if(l==="border-box"?f+=s:l==="content-box"&&(f-=a),t!==null||o!==null){hiddenTextarea.value=" ";var p=hiddenTextarea.scrollHeight-a;t!==null&&(u=p*t,l==="border-box"&&(u=u+a+s),f=Math.max(u,f)),o!==null&&(d=p*o,l==="border-box"&&(d=d+a+s),m=f>d?"":"hidden",f=Math.min(d,f))}return{height:f,minHeight:u,maxHeight:d,overflowY:m,resize:"none"}}var RESIZE_STATUS;(function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"})(RESIZE_STATUS||(RESIZE_STATUS={}));var ResizableTextArea=function(e){_inherits(t,e);var n=_createSuper(t);function t(o){var r;return _classCallCheck(this,t),r=n.call(this,o),r.saveTextArea=function(a){r.textArea=a},r.handleResize=function(a){var s=r.state.resizeStatus,l=r.props,c=l.autoSize,u=l.onResize;s===RESIZE_STATUS.NONE&&(typeof u=="function"&&u(a),c&&r.resizeOnNextFrame())},r.resizeOnNextFrame=function(){cancelAnimationFrame(r.nextFrameActionId),r.nextFrameActionId=requestAnimationFrame(r.resizeTextarea)},r.resizeTextarea=function(){var a=r.props.autoSize;if(!(!a||!r.textArea)){var s=a.minRows,l=a.maxRows,c=calculateNodeHeight(r.textArea,!1,s,l);r.setState({textareaStyles:c,resizeStatus:RESIZE_STATUS.RESIZING},function(){cancelAnimationFrame(r.resizeFrameId),r.resizeFrameId=requestAnimationFrame(function(){r.setState({resizeStatus:RESIZE_STATUS.RESIZED},function(){r.resizeFrameId=requestAnimationFrame(function(){r.setState({resizeStatus:RESIZE_STATUS.NONE}),r.fixFirefoxAutoScroll()})})})})}},r.renderTextArea=function(){var a=r.props,s=a.prefixCls,l=s===void 0?"rc-textarea":s,c=a.autoSize,u=a.onResize,d=a.className,f=a.disabled,m=r.state,p=m.textareaStyles,h=m.resizeStatus,v=omit$1(r.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),C=classnamesExports(l,d,_defineProperty$1({},"".concat(l,"-disabled"),f));"value"in v&&(v.value=v.value||"");var I=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},r.props.style),p),h===RESIZE_STATUS.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return jsxRuntime.jsx(ReactResizeObserver,{onResize:r.handleResize,disabled:!(c||u),children:jsxRuntime.jsx("textarea",{...v,className:C,style:I,ref:r.saveTextArea})})},r.state={textareaStyles:{},resizeStatus:RESIZE_STATUS.NONE},r}return _createClass(t,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(r){r.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var r=this.textArea.selectionStart,a=this.textArea.selectionEnd;this.textArea.setSelectionRange(r,a)}}catch{}}},{key:"render",value:function(){return this.renderTextArea()}}]),t}(React__namespace.Component),TextArea$2=function(e){_inherits(t,e);var n=_createSuper(t);function t(o){var r;_classCallCheck(this,t),r=n.call(this,o),r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(s){r.resizableTextArea=s},r.handleChange=function(s){var l=r.props.onChange;r.setValue(s.target.value,function(){r.resizableTextArea.resizeTextarea()}),l&&l(s)},r.handleKeyDown=function(s){var l=r.props,c=l.onPressEnter,u=l.onKeyDown;s.keyCode===13&&c&&c(s),u&&u(s)};var a=typeof o.value>"u"||o.value===null?o.defaultValue:o.value;return r.state={value:a},r}return _createClass(t,[{key:"setValue",value:function(r,a){"value"in this.props||this.setState({value:r},a)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return jsxRuntime.jsx(ResizableTextArea,{...this.props,value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea})}}],[{key:"getDerivedStateFromProps",value:function(r){return"value"in r?{value:r.value}:null}}]),t}(React__namespace.Component);const es$3=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea,default:TextArea$2},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(es$3);var omit={},hasRequiredOmit;function requireOmit(){if(hasRequiredOmit)return omit;hasRequiredOmit=1;var e=interopRequireDefault.exports;Object.defineProperty(omit,"__esModule",{value:!0}),omit.default=r;var n=e(requireDefineProperty());function t(a,s){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),l.push.apply(l,c)}return l}function o(a){for(var s=1;s<arguments.length;s++){var l=arguments[s]!=null?arguments[s]:{};s%2?t(Object(l),!0).forEach(function(c){(0,n.default)(a,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(l)):t(Object(l)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(l,c))})}return a}function r(a,s){var l=o({},a);return Array.isArray(s)&&s.forEach(function(c){delete l[c]}),l}return omit}var useMergedState={},hasRequiredUseMergedState;function requireUseMergedState(){if(hasRequiredUseMergedState)return useMergedState;hasRequiredUseMergedState=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(useMergedState,"__esModule",{value:!0}),useMergedState.default=r;var t=n(requireSlicedToArray()),o=e(React__default.default);function r(a,s){var l=s||{},c=l.defaultValue,u=l.value,d=l.onChange,f=l.postState,m=o.useState(function(){return u!==void 0?u:c!==void 0?typeof c=="function"?c():c:typeof a=="function"?a():a}),p=(0,t.default)(m,2),h=p[0],v=p[1],C=u!==void 0?u:h;f&&(C=f(C));function I(y){v(y),C!==y&&d&&d(y,C)}var g=o.useRef(!0);return o.useEffect(function(){if(g.current){g.current=!1;return}u===void 0&&v(u)},[u]),[C,I]}return useMergedState}var ClearableLabeledInput={},classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(e){function n(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(classCallCheck)),classCallCheck.exports}var createClass={exports:{}},hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(e){function n(o,r){for(var a=0;a<r.length;a++){var s=r[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function t(o,r,a){return r&&n(o.prototype,r),a&&n(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(createClass)),createClass.exports}var inherits={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(e){function n(t,o){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,s){return a.__proto__=s,a},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(setPrototypeOf)),setPrototypeOf.exports}var hasRequiredInherits;function requireInherits(){return hasRequiredInherits||(hasRequiredInherits=1,function(e){var n=requireSetPrototypeOf();function t(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),r&&n(o,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(inherits)),inherits.exports}var createSuper={exports:{}},getPrototypeOf={exports:{}},hasRequiredGetPrototypeOf;function requireGetPrototypeOf(){return hasRequiredGetPrototypeOf||(hasRequiredGetPrototypeOf=1,function(e){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(getPrototypeOf)),getPrototypeOf.exports}var isNativeReflectConstruct={exports:{}},hasRequiredIsNativeReflectConstruct;function requireIsNativeReflectConstruct(){return hasRequiredIsNativeReflectConstruct||(hasRequiredIsNativeReflectConstruct=1,function(e){function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(isNativeReflectConstruct)),isNativeReflectConstruct.exports}var possibleConstructorReturn={exports:{}},assertThisInitialized={exports:{}},hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){return hasRequiredAssertThisInitialized||(hasRequiredAssertThisInitialized=1,function(e){function n(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(assertThisInitialized)),assertThisInitialized.exports}var hasRequiredPossibleConstructorReturn;function requirePossibleConstructorReturn(){return hasRequiredPossibleConstructorReturn||(hasRequiredPossibleConstructorReturn=1,function(e){var n=_typeof$2.exports.default,t=requireAssertThisInitialized();function o(r,a){if(a&&(n(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(possibleConstructorReturn)),possibleConstructorReturn.exports}var hasRequiredCreateSuper;function requireCreateSuper(){return hasRequiredCreateSuper||(hasRequiredCreateSuper=1,function(e){var n=requireGetPrototypeOf(),t=requireIsNativeReflectConstruct(),o=requirePossibleConstructorReturn();function r(a){var s=t();return function(){var c=n(a),u;if(s){var d=n(this).constructor;u=Reflect.construct(c,arguments,d)}else u=c.apply(this,arguments);return o(this,u)}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(createSuper)),createSuper.exports}var CloseCircleFilled$2={exports:{}},CloseCircleFilled$1={},objectSpread2={exports:{}},hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(e){var n=requireDefineProperty();function t(r,a){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),s.push.apply(s,l)}return s}function o(r){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?t(Object(s),!0).forEach(function(l){n(r,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):t(Object(s)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(s,l))})}return r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(objectSpread2)),objectSpread2.exports}var CloseCircleFilled={},hasRequiredCloseCircleFilled$2;function requireCloseCircleFilled$2(){if(hasRequiredCloseCircleFilled$2)return CloseCircleFilled;hasRequiredCloseCircleFilled$2=1,Object.defineProperty(CloseCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};return CloseCircleFilled.default=e,CloseCircleFilled}var AntdIcon={},objectWithoutProperties={exports:{}},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function n(t,o){if(t==null)return{};var r={},a=Object.keys(t),s,l;for(l=0;l<a.length;l++)s=a[l],!(o.indexOf(s)>=0)&&(r[s]=t[s]);return r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var hasRequiredObjectWithoutProperties;function requireObjectWithoutProperties(){return hasRequiredObjectWithoutProperties||(hasRequiredObjectWithoutProperties=1,function(e){var n=requireObjectWithoutPropertiesLoose();function t(o,r){if(o==null)return{};var a=n(o,r),s,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)s=c[l],!(r.indexOf(s)>=0)&&(!Object.prototype.propertyIsEnumerable.call(o,s)||(a[s]=o[s]))}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutProperties)),objectWithoutProperties.exports}var Context$1={},hasRequiredContext$2;function requireContext$2(){if(hasRequiredContext$2)return Context$1;hasRequiredContext$2=1,Object.defineProperty(Context$1,"__esModule",{value:!0}),Context$1.default=void 0;var e=React__default.default,n=(0,e.createContext)({}),t=n;return Context$1.default=t,Context$1}var IconBase={},utils$1={};function bound01(e,n){isOnePointZero(e)&&(e="100%");var t=isPercentage(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?Number(e)*100+"%":e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,n,t){return{r:bound01(e,255)*255,g:bound01(n,255)*255,b:bound01(t,255)*255}}function hue2rgb(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function hslToRgb(e,n,t){var o,r,a;if(e=bound01(e,360),n=bound01(n,100),t=bound01(t,100),n===0)r=t,a=t,o=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;o=hue2rgb(l,s,e+1/3),r=hue2rgb(l,s,e),a=hue2rgb(l,s,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function rgbToHsv(e,n,t){e=bound01(e,255),n=bound01(n,255),t=bound01(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),a=0,s=o,l=o-r,c=o===0?0:l/o;if(o===r)a=0;else{switch(o){case e:a=(n-t)/l+(n<t?6:0);break;case n:a=(t-e)/l+2;break;case t:a=(e-n)/l+4;break}a/=6}return{h:a,s:c,v:s}}function hsvToRgb(e,n,t){e=bound01(e,360)*6,n=bound01(n,100),t=bound01(t,100);var o=Math.floor(e),r=e-o,a=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),c=o%6,u=[t,s,a,a,l,t][c],d=[l,t,t,s,a,a][c],f=[a,a,l,t,t,s][c];return{r:u*255,g:d*255,b:f*255}}function rgbToHex(e,n,t,o){var r=[pad2(Math.round(e).toString(16)),pad2(Math.round(n).toString(16)),pad2(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,16)}var names={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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(n=rgbToRgb(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(o=convertToPercentage(e.s),r=convertToPercentage(e.v),n=hsvToRgb(e.h,o,r),s=!0,l="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(o=convertToPercentage(e.s),a=convertToPercentage(e.l),n=hslToRgb(e.h,o,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=boundAlpha(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(names[e])e=names[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=matchers.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=matchers.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=matchers.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=matchers.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=matchers.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=matchers.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=matchers.hex8.exec(e),t?{r:parseIntFromHex(t[1]),g:parseIntFromHex(t[2]),b:parseIntFromHex(t[3]),a:convertHexToDecimal(t[4]),format:n?"name":"hex8"}:(t=matchers.hex6.exec(e),t?{r:parseIntFromHex(t[1]),g:parseIntFromHex(t[2]),b:parseIntFromHex(t[3]),format:n?"name":"hex"}:(t=matchers.hex4.exec(e),t?{r:parseIntFromHex(t[1]+t[1]),g:parseIntFromHex(t[2]+t[2]),b:parseIntFromHex(t[3]+t[3]),a:convertHexToDecimal(t[4]+t[4]),format:n?"name":"hex8"}:(t=matchers.hex3.exec(e),t?{r:parseIntFromHex(t[1]+t[1]),g:parseIntFromHex(t[2]+t[2]),b:parseIntFromHex(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return Boolean(matchers.CSS_UNIT.exec(String(e)))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(e){var n=e.r,t=e.g,o=e.b,r=rgbToHsv(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function toHex(e){var n=e.r,t=e.g,o=e.b;return"#".concat(rgbToHex(n,t,o,!1))}function mix$1(e,n,t){var o=t/100,r={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return r}function getHue(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-hueStep*n:Math.round(e.h)+hueStep*n:o=t?Math.round(e.h)+hueStep*n:Math.round(e.h)-hueStep*n,o<0?o+=360:o>=360&&(o-=360),o}function getSaturation(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-saturationStep*n:n===darkColorCount?o=e.s+saturationStep:o=e.s+saturationStep2*n,o>1&&(o=1),t&&n===lightColorCount&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function getValue$1(e,n,t){var o;return t?o=e.v+brightnessStep1*n:o=e.v-brightnessStep2*n,o>1&&(o=1),Number(o.toFixed(2))}function generate(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=inputToRGB(e),r=lightColorCount;r>0;r-=1){var a=toHsv(o),s=toHex(inputToRGB({h:getHue(a,r,!0),s:getSaturation(a,r,!0),v:getValue$1(a,r,!0)}));t.push(s)}t.push(toHex(o));for(var l=1;l<=darkColorCount;l+=1){var c=toHsv(o),u=toHex(inputToRGB({h:getHue(c,l),s:getSaturation(c,l),v:getValue$1(c,l)}));t.push(u)}return n.theme==="dark"?darkColorMap.map(function(d){var f=d.index,m=d.opacity,p=toHex(mix$1(inputToRGB(n.backgroundColor||"#141414"),inputToRGB(t[f]),m*100));return p}):t}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(e){presetPalettes[e]=generate(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var red=presetPalettes.red,volcano=presetPalettes.volcano,gold=presetPalettes.gold,orange=presetPalettes.orange,yellow=presetPalettes.yellow,lime=presetPalettes.lime,green=presetPalettes.green,cyan=presetPalettes.cyan,blue=presetPalettes.blue,geekblue=presetPalettes.geekblue,purple=presetPalettes.purple,magenta=presetPalettes.magenta,grey=presetPalettes.grey;const index_esm=Object.freeze(Object.defineProperty({__proto__:null,blue,cyan,geekblue,generate,gold,green,grey,lime,magenta,orange,presetDarkPalettes,presetPalettes,presetPrimaryColors,purple,red,volcano,yellow},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(index_esm);var warning$4={},hasRequiredWarning$1;function requireWarning$1(){if(hasRequiredWarning$1)return warning$4;hasRequiredWarning$1=1,Object.defineProperty(warning$4,"__esModule",{value:!0}),warning$4.call=r,warning$4.default=void 0,warning$4.note=t,warning$4.noteOnce=s,warning$4.resetWarned=o,warning$4.warning=n,warning$4.warningOnce=a;var e={};function n(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function t(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.warn("Note: ".concat(u))}function o(){e={}}function r(c,u,d){!u&&!e[d]&&(c(!1,d),e[d]=!0)}function a(c,u){r(n,c,u)}function s(c,u){r(t,c,u)}var l=a;return warning$4.default=l,warning$4}var dynamicCSS={},canUseDom$2={},hasRequiredCanUseDom$1;function requireCanUseDom$1(){if(hasRequiredCanUseDom$1)return canUseDom$2;hasRequiredCanUseDom$1=1,Object.defineProperty(canUseDom$2,"__esModule",{value:!0}),canUseDom$2.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom$2}var hasRequiredDynamicCSS;function requireDynamicCSS(){if(hasRequiredDynamicCSS)return dynamicCSS;hasRequiredDynamicCSS=1;var e=interopRequireDefault.exports;Object.defineProperty(dynamicCSS,"__esModule",{value:!0}),dynamicCSS.injectCSS=a,dynamicCSS.removeCSS=c,dynamicCSS.updateCSS=u;var n=e(requireCanUseDom$1()),t="rc-util-key";function o(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.mark;return f?f.startsWith("data-")?f:"data-".concat(f):t}function r(d){if(d.attachTo)return d.attachTo;var f=document.querySelector("head");return f||document.body}function a(d){var f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,n.default)())return null;var p=document.createElement("style");if(!((f=m.csp)===null||f===void 0)&&f.nonce){var h;p.nonce=(h=m.csp)===null||h===void 0?void 0:h.nonce}p.innerHTML=d;var v=r(m),C=v.firstChild;return m.prepend&&v.prepend?v.prepend(p):m.prepend&&C?v.insertBefore(p,C):v.appendChild(p),p}var s=new Map;function l(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=r(f);return Array.from(s.get(m).children).find(function(p){return p.tagName==="STYLE"&&p.getAttribute(o(f))===d})}function c(d){var f,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=l(d,m);p==null||(f=p.parentNode)===null||f===void 0||f.removeChild(p)}function u(d,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=r(m);if(!s.has(p)){var h=a("",m),v=h.parentNode;s.set(p,v),v.removeChild(h)}var C=l(f,m);if(C){var I,g;if(((I=m.csp)===null||I===void 0?void 0:I.nonce)&&C.nonce!==((g=m.csp)===null||g===void 0?void 0:g.nonce)){var y;C.nonce=(y=m.csp)===null||y===void 0?void 0:y.nonce}return C.innerHTML!==d&&(C.innerHTML=d),C}var x=a(d,m);return x.setAttribute(o(m),f),x}return dynamicCSS}var hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$1;hasRequiredUtils=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(utils$1,"__esModule",{value:!0}),utils$1.warning=u,utils$1.isIconDefinition=d,utils$1.normalizeAttrs=f,utils$1.generate=m,utils$1.getSecondaryColor=p,utils$1.normalizeTwoToneColors=h,utils$1.useInsertStyles=utils$1.iconStyles=utils$1.svgBaseProps=void 0;var t=n(requireObjectSpread2()),o=n(_typeof$2.exports),r=require$$4,a=e(React__default.default),s=n(requireWarning$1()),l=requireDynamicCSS(),c=n(requireContext$2());function u(g,y){(0,s.default)(g,"[@ant-design/icons] ".concat(y))}function d(g){return(0,o.default)(g)==="object"&&typeof g.name=="string"&&typeof g.theme=="string"&&((0,o.default)(g.icon)==="object"||typeof g.icon=="function")}function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(g).reduce(function(y,x){var w=g[x];switch(x){case"class":y.className=w,delete y.class;break;default:y[x]=w}return y},{})}function m(g,y,x){return x?a.default.createElement(g.tag,(0,t.default)((0,t.default)({key:y},f(g.attrs)),x),(g.children||[]).map(function(w,O){return m(w,"".concat(y,"-").concat(g.tag,"-").concat(O))})):a.default.createElement(g.tag,(0,t.default)({key:y},f(g.attrs)),(g.children||[]).map(function(w,O){return m(w,"".concat(y,"-").concat(g.tag,"-").concat(O))}))}function p(g){return(0,r.generate)(g)[0]}function h(g){return g?Array.isArray(g)?g:[g]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};utils$1.svgBaseProps=v;var C=`
32
32
  .anticon {
33
33
  display: inline-block;
34
34
  color: inherit;
@@ -82,13 +82,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
82
82
  transform: rotate(360deg);
83
83
  }
84
84
  }
85
- `;utils$1.iconStyles=C;var I=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,x=(0,a.useContext)(c.default),w=x.csp;(0,a.useEffect)(function(){(0,l.updateCSS)(y,"@ant-design-icons",{prepend:!0,csp:w})},[])};return utils$1.useInsertStyles=I,utils$1}var hasRequiredIconBase;function requireIconBase(){if(hasRequiredIconBase)return IconBase;hasRequiredIconBase=1;var e=interopRequireDefault.exports;Object.defineProperty(IconBase,"__esModule",{value:!0}),IconBase.default=void 0;var n=e(requireObjectWithoutProperties()),t=e(requireObjectSpread2()),o=requireUtils(),r=["icon","className","onClick","style","primaryColor","secondaryColor"],a={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function s(d){var f=d.primaryColor,m=d.secondaryColor;a.primaryColor=f,a.secondaryColor=m||(0,o.getSecondaryColor)(f),a.calculated=!!m}function l(){return(0,t.default)({},a)}var c=function(f){var m=f.icon,p=f.className,g=f.onClick,v=f.style,C=f.primaryColor,I=f.secondaryColor,h=(0,n.default)(f,r),y=a;if(C&&(y={primaryColor:C,secondaryColor:I||(0,o.getSecondaryColor)(C)}),(0,o.useInsertStyles)(),(0,o.warning)((0,o.isIconDefinition)(m),"icon should be icon definiton, but got ".concat(m)),!(0,o.isIconDefinition)(m))return null;var x=m;return x&&typeof x.icon=="function"&&(x=(0,t.default)((0,t.default)({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),(0,o.generate)(x.icon,"svg-".concat(x.name),(0,t.default)({className:p,onClick:g,style:v,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h))};c.displayName="IconReact",c.getTwoToneColors=l,c.setTwoToneColors=s;var u=c;return IconBase.default=u,IconBase}var twoTonePrimaryColor={},hasRequiredTwoTonePrimaryColor;function requireTwoTonePrimaryColor(){if(hasRequiredTwoTonePrimaryColor)return twoTonePrimaryColor;hasRequiredTwoTonePrimaryColor=1;var e=interopRequireDefault.exports;Object.defineProperty(twoTonePrimaryColor,"__esModule",{value:!0}),twoTonePrimaryColor.setTwoToneColor=r,twoTonePrimaryColor.getTwoToneColor=a;var n=e(requireSlicedToArray()),t=e(requireIconBase()),o=requireUtils();function r(s){var l=(0,o.normalizeTwoToneColors)(s),c=(0,n.default)(l,2),u=c[0],d=c[1];return t.default.setTwoToneColors({primaryColor:u,secondaryColor:d})}function a(){var s=t.default.getTwoToneColors();return s.calculated?[s.primaryColor,s.secondaryColor]:s.primaryColor}return twoTonePrimaryColor}var hasRequiredAntdIcon;function requireAntdIcon(){if(hasRequiredAntdIcon)return AntdIcon;hasRequiredAntdIcon=1;var e=interopRequireDefault.exports,n=interopRequireWildcard.exports;Object.defineProperty(AntdIcon,"__esModule",{value:!0}),AntdIcon.default=void 0;var t=e(requireObjectSpread2()),o=e(requireSlicedToArray()),r=e(requireDefineProperty()),a=e(requireObjectWithoutProperties()),s=n(React__default.default),l=e(requireClassnames()),c=e(requireContext$2()),u=e(requireIconBase()),d=requireTwoTonePrimaryColor(),f=requireUtils(),m=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,d.setTwoToneColor)("#1890ff");var p=s.forwardRef(function(v,C){var I,h=v.className,y=v.icon,x=v.spin,w=v.rotate,O=v.tabIndex,F=v.onClick,b=v.twoToneColor,S=(0,a.default)(v,m),T=s.useContext(c.default),k=T.prefixCls,L=k===void 0?"anticon":k,D=(0,l.default)(L,(I={},(0,r.default)(I,"".concat(L,"-").concat(y.name),!!y.name),(0,r.default)(I,"".concat(L,"-spin"),!!x||y.name==="loading"),I),h),P=O;P===void 0&&F&&(P=-1);var M=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,q=(0,f.normalizeTwoToneColors)(b),U=(0,o.default)(q,2),B=U[0],V=U[1];return s.createElement("span",(0,t.default)((0,t.default)({role:"img","aria-label":y.name},S),{},{ref:C,tabIndex:P,onClick:F,className:D}),s.createElement(u.default,{icon:y,primaryColor:B,secondaryColor:V,style:M}))});p.displayName="AntdIcon",p.getTwoToneColor=d.getTwoToneColor,p.setTwoToneColor=d.setTwoToneColor;var g=p;return AntdIcon.default=g,AntdIcon}var hasRequiredCloseCircleFilled$1;function requireCloseCircleFilled$1(){if(hasRequiredCloseCircleFilled$1)return CloseCircleFilled$1;hasRequiredCloseCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CloseCircleFilled$1,"__esModule",{value:!0}),CloseCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCloseCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CloseCircleFilled";var l=o.forwardRef(s);return CloseCircleFilled$1.default=l,CloseCircleFilled$1}var hasRequiredCloseCircleFilled;function requireCloseCircleFilled(){return hasRequiredCloseCircleFilled||(hasRequiredCloseCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCloseCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CloseCircleFilled$2,CloseCircleFilled$2.exports)),CloseCircleFilled$2.exports}var type$2={},hasRequiredType;function requireType(){if(hasRequiredType)return type$2;hasRequiredType=1,Object.defineProperty(type$2,"__esModule",{value:!0}),type$2.tupleNum=type$2.tuple=void 0;var e=function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return r};type$2.tuple=e;var n=function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return r};return type$2.tupleNum=n,type$2}var Input={},configProvider={};function _objectWithoutPropertiesLoose(e,n){if(e==null)return{};var t={},o=Object.keys(e),r,a;for(a=0;a<o.length;a++)r=o[a],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}function _objectWithoutProperties(e,n){if(e==null)return{};var t=_objectWithoutPropertiesLoose(e,n),o,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],!(n.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(t[o]=e[o]))}return t}function _arrayLikeToArray(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,n){if(!!e){if(typeof e=="string")return _arrayLikeToArray(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,n)}}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context=React__namespace.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,setCallbacks:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc}}});function toArray$2(e){return e==null?[]:Array.isArray(e)?e:[e]}var regeneratorRuntime$1={exports:{}},hasRequiredRegeneratorRuntime;function requireRegeneratorRuntime(){return hasRequiredRegeneratorRuntime||(hasRequiredRegeneratorRuntime=1,function(e){var n=_typeof$2.exports.default;function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=t=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var o={},r=Object.prototype,a=r.hasOwnProperty,s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(D,P,M){return Object.defineProperty(D,P,{value:M,enumerable:!0,configurable:!0,writable:!0}),D[P]}try{d({},"")}catch{d=function(M,q,U){return M[q]=U}}function f(D,P,M,q){var U=P&&P.prototype instanceof g?P:g,B=Object.create(U.prototype),V=new T(q||[]);return B._invoke=function(G,Y,H){var K="suspendedStart";return function(N,W){if(K==="executing")throw new Error("Generator is already running");if(K==="completed"){if(N==="throw")throw W;return L()}for(H.method=N,H.arg=W;;){var j=H.delegate;if(j){var A=F(j,H);if(A){if(A===p)continue;return A}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(K==="suspendedStart")throw K="completed",H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);K="executing";var $=m(G,Y,H);if($.type==="normal"){if(K=H.done?"completed":"suspendedYield",$.arg===p)continue;return{value:$.arg,done:H.done}}$.type==="throw"&&(K="completed",H.method="throw",H.arg=$.arg)}}}(D,M,V),B}function m(D,P,M){try{return{type:"normal",arg:D.call(P,M)}}catch(q){return{type:"throw",arg:q}}}o.wrap=f;var p={};function g(){}function v(){}function C(){}var I={};d(I,l,function(){return this});var h=Object.getPrototypeOf,y=h&&h(h(k([])));y&&y!==r&&a.call(y,l)&&(I=y);var x=C.prototype=g.prototype=Object.create(I);function w(D){["next","throw","return"].forEach(function(P){d(D,P,function(M){return this._invoke(P,M)})})}function O(D,P){function M(U,B,V,G){var Y=m(D[U],D,B);if(Y.type!=="throw"){var H=Y.arg,K=H.value;return K&&n(K)=="object"&&a.call(K,"__await")?P.resolve(K.__await).then(function(N){M("next",N,V,G)},function(N){M("throw",N,V,G)}):P.resolve(K).then(function(N){H.value=N,V(H)},function(N){return M("throw",N,V,G)})}G(Y.arg)}var q;this._invoke=function(U,B){function V(){return new P(function(G,Y){M(U,B,G,Y)})}return q=q?q.then(V,V):V()}}function F(D,P){var M=D.iterator[P.method];if(M===void 0){if(P.delegate=null,P.method==="throw"){if(D.iterator.return&&(P.method="return",P.arg=void 0,F(D,P),P.method==="throw"))return p;P.method="throw",P.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var q=m(M,D.iterator,P.arg);if(q.type==="throw")return P.method="throw",P.arg=q.arg,P.delegate=null,p;var U=q.arg;return U?U.done?(P[D.resultName]=U.value,P.next=D.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,p):U:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,p)}function b(D){var P={tryLoc:D[0]};1 in D&&(P.catchLoc=D[1]),2 in D&&(P.finallyLoc=D[2],P.afterLoc=D[3]),this.tryEntries.push(P)}function S(D){var P=D.completion||{};P.type="normal",delete P.arg,D.completion=P}function T(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(b,this),this.reset(!0)}function k(D){if(D){var P=D[l];if(P)return P.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var M=-1,q=function U(){for(;++M<D.length;)if(a.call(D,M))return U.value=D[M],U.done=!1,U;return U.value=void 0,U.done=!0,U};return q.next=q}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=C,d(x,"constructor",C),d(C,"constructor",v),v.displayName=d(C,u,"GeneratorFunction"),o.isGeneratorFunction=function(D){var P=typeof D=="function"&&D.constructor;return!!P&&(P===v||(P.displayName||P.name)==="GeneratorFunction")},o.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,C):(D.__proto__=C,d(D,u,"GeneratorFunction")),D.prototype=Object.create(x),D},o.awrap=function(D){return{__await:D}},w(O.prototype),d(O.prototype,c,function(){return this}),o.AsyncIterator=O,o.async=function(D,P,M,q,U){U===void 0&&(U=Promise);var B=new O(f(D,P,M,q),U);return o.isGeneratorFunction(P)?B:B.next().then(function(V){return V.done?V.value:B.next()})},w(x),d(x,u,"Generator"),d(x,l,function(){return this}),d(x,"toString",function(){return"[object Generator]"}),o.keys=function(D){var P=[];for(var M in D)P.push(M);return P.reverse(),function q(){for(;P.length;){var U=P.pop();if(U in D)return q.value=U,q.done=!1,q}return q.done=!0,q}},o.values=k,T.prototype={constructor:T,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!P)for(var M in this)M.charAt(0)==="t"&&a.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=void 0)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var M=this;function q(H,K){return V.type="throw",V.arg=P,M.next=H,K&&(M.method="next",M.arg=void 0),!!K}for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U],V=B.completion;if(B.tryLoc==="root")return q("end");if(B.tryLoc<=this.prev){var G=a.call(B,"catchLoc"),Y=a.call(B,"finallyLoc");if(G&&Y){if(this.prev<B.catchLoc)return q(B.catchLoc,!0);if(this.prev<B.finallyLoc)return q(B.finallyLoc)}else if(G){if(this.prev<B.catchLoc)return q(B.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return q(B.finallyLoc)}}}},abrupt:function(P,M){for(var q=this.tryEntries.length-1;q>=0;--q){var U=this.tryEntries[q];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var B=U;break}}B&&(P==="break"||P==="continue")&&B.tryLoc<=M&&M<=B.finallyLoc&&(B=null);var V=B?B.completion:{};return V.type=P,V.arg=M,B?(this.method="next",this.next=B.finallyLoc,p):this.complete(V)},complete:function(P,M){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&M&&(this.next=M),p},finish:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.finallyLoc===P)return this.complete(q.completion,q.afterLoc),S(q),p}},catch:function(P){for(var M=this.tryEntries.length-1;M>=0;--M){var q=this.tryEntries[M];if(q.tryLoc===P){var U=q.completion;if(U.type==="throw"){var B=U.arg;S(q)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(P,M,q){return this.delegate={iterator:k(P),resultName:M,nextLoc:q},this.method==="next"&&(this.arg=void 0),p}},o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(regeneratorRuntime$1)),regeneratorRuntime$1.exports}var regenerator,hasRequiredRegenerator;function requireRegenerator(){if(hasRequiredRegenerator)return regenerator;hasRequiredRegenerator=1;var e=requireRegeneratorRuntime()();regenerator=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return regenerator}var regeneratorExports=requireRegenerator();function asyncGeneratorStep(e,n,t,o,r,a,s){try{var l=e[a](s),c=l.value}catch(u){t(u);return}l.done?n(c):Promise.resolve(c).then(o,r)}function _asyncToGenerator(e){return function(){var n=this,t=arguments;return new Promise(function(o,r){var a=e.apply(n,t);function s(c){asyncGeneratorStep(a,o,r,s,l,"next",c)}function l(c){asyncGeneratorStep(a,o,r,s,l,"throw",c)}s(void 0)})}}function _extends(){return _extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_extends.apply(this,arguments)}function _inheritsLoose$1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf||function(o,r){return o.__proto__=r,o},_setPrototypeOf(e,n)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(e,n,t){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(r,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(r,l),u=new c;return s&&_setPrototypeOf(u,s.prototype),u},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var n=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(o){if(o===null||!_isNativeFunction(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(o))return n.get(o);n.set(o,r)}function r(){return _construct(o,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,o)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning$3=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning$3=function(n,t){typeof console<"u"&&console.warn&&t.every(function(o){return typeof o=="string"})&&console.warn(n,t)});function convertFieldsError(e){if(!e||!e.length)return null;var n={};return e.forEach(function(t){var o=t.field;n[o]=n[o]||[],n[o].push(t)}),n}function format$1(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o=1,r=n[0],a=n.length;if(typeof r=="function")return r.apply(null,n.slice(1));if(typeof r=="string"){var s=String(r).replace(formatRegExp,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return s}return r}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(n)&&typeof e=="string"&&!e)}function asyncParallelArray(e,n,t){var o=[],r=0,a=e.length;function s(l){o.push.apply(o,l),r++,r===a&&t(o)}e.forEach(function(l){n(l,s)})}function asyncSerialArray(e,n,t){var o=0,r=e.length;function a(s){if(s&&s.length){t(s);return}var l=o;o=o+1,l<r?n(e[l],a):t([])}a([])}function flattenObjArr(e){var n=[];return Object.keys(e).forEach(function(t){n.push.apply(n,e[t])}),n}var AsyncValidationError=function(e){_inheritsLoose$1(n,e);function n(t,o){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=o,r}return n}(_wrapNativeSuper(Error));function asyncMap(e,n,t,o){if(n.first){var r=new Promise(function(f,m){var p=function(C){return o(C),C.length?m(new AsyncValidationError(C,convertFieldsError(C))):f()},g=flattenObjArr(e);asyncSerialArray(g,t,p)});return r.catch(function(f){return f}),r}var a=n.firstFields||[];a===!0&&(a=Object.keys(e));var s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,m){var p=function(v){if(u.push.apply(u,v),c++,c===l)return o(u),u.length?m(new AsyncValidationError(u,convertFieldsError(u))):f()};s.length||(o(u),f()),s.forEach(function(g){var v=e[g];a.indexOf(g)!==-1?asyncSerialArray(v,t,p):asyncParallelArray(v,t,p)})});return d.catch(function(f){return f}),d}function complementError(e){return function(n){return n&&n.message?(n.field=n.field||e.fullField,n):{message:typeof n=="function"?n():n,field:n.field||e.fullField}}}function deepMerge(e,n){if(n){for(var t in n)if(n.hasOwnProperty(t)){var o=n[t];typeof o=="object"&&typeof e[t]=="object"?e[t]=_extends(_extends({},e[t]),o):e[t]=o}}return e}function required(e,n,t,o,r,a){e.required&&(!t.hasOwnProperty(e.field)||isEmptyValue(n,a||e.type))&&o.push(format$1(r.messages.required,e.fullField))}function whitespace(e,n,t,o,r){(/^\s+$/.test(n)||n==="")&&o.push(format$1(r.messages.whitespace,e.fullField))}var pattern={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$2={integer:function(n){return types$2.number(n)&&parseInt(n,10)===n},float:function(n){return types$2.number(n)&&!types$2.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return typeof n=="object"&&!types$2.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&!!n.match(pattern.email)&&n.length<255},url:function(n){return typeof n=="string"&&!!n.match(pattern.url)},hex:function(n){return typeof n=="string"&&!!n.match(pattern.hex)}};function type(e,n,t,o,r){if(e.required&&n===void 0){required(e,n,t,o,r);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?types$2[s](n)||o.push(format$1(r.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&o.push(format$1(r.messages.types[s],e.fullField,e.type))}function range(e,n,t,o,r){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",m=typeof n=="string",p=Array.isArray(n);if(f?d="number":m?d="string":p&&(d="array"),!d)return!1;p&&(u=n.length),m&&(u=n.replace(c,"_").length),a?u!==e.len&&o.push(format$1(r.messages[d].len,e.fullField,e.len)):s&&!l&&u<e.min?o.push(format$1(r.messages[d].min,e.fullField,e.min)):l&&!s&&u>e.max?o.push(format$1(r.messages[d].max,e.fullField,e.max)):s&&l&&(u<e.min||u>e.max)&&o.push(format$1(r.messages[d].range,e.fullField,e.min,e.max))}var ENUM="enum";function enumerable(e,n,t,o,r){e[ENUM]=Array.isArray(e[ENUM])?e[ENUM]:[],e[ENUM].indexOf(n)===-1&&o.push(format$1(r.messages[ENUM],e.fullField,e[ENUM].join(", ")))}function pattern$1(e,n,t,o,r){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||o.push(format$1(r.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||o.push(format$1(r.messages.pattern.mismatch,e.fullField,n,e.pattern))}}}var rules={required,whitespace,type,range,enum:enumerable,pattern:pattern$1};function string(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n,"string")&&!e.required)return t();rules.required(e,n,o,a,r,"string"),isEmptyValue(n,"string")||(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r),rules.pattern(e,n,o,a,r),e.whitespace===!0&&rules.whitespace(e,n,o,a,r))}t(a)}function method(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules.type(e,n,o,a,r)}t(a)}function number(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function _boolean(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules.type(e,n,o,a,r)}t(a)}function regexp(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),isEmptyValue(n)||rules.type(e,n,o,a,r)}t(a)}function integer(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function floatFn(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function array(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return t();rules.required(e,n,o,a,r,"array"),n!=null&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function object(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules.type(e,n,o,a,r)}t(a)}var ENUM$1="enum";function enumerable$1(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules[ENUM$1](e,n,o,a,r)}t(a)}function pattern$2(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n,"string")&&!e.required)return t();rules.required(e,n,o,a,r),isEmptyValue(n,"string")||rules.pattern(e,n,o,a,r)}t(a)}function date(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n,"date")&&!e.required)return t();if(rules.required(e,n,o,a,r),!isEmptyValue(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),rules.type(e,l,o,a,r),l&&rules.range(e,l.getTime(),o,a,r)}}t(a)}function required$1(e,n,t,o,r){var a=[],s=Array.isArray(n)?"array":typeof n;rules.required(e,n,o,a,r,s),t(a)}function type$1(e,n,t,o,r){var a=e.type,s=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(isEmptyValue(n,a)&&!e.required)return t();rules.required(e,n,o,s,r,a),isEmptyValue(n,a)||rules.type(e,n,o,s,r)}t(s)}function any(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r)}t(a)}var validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable$1,pattern:pattern$2,date,url:type$1,hex:type$1,email:type$1,required:required$1,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var messages=newMessages();function Schema(e){this.rules=null,this._messages=messages,this.define(e)}Schema.prototype={messages:function(n){return n&&(this._messages=deepMerge(newMessages(),n)),this._messages},define:function(n){if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={};var t,o;for(t in n)n.hasOwnProperty(t)&&(o=n[t],this.rules[t]=Array.isArray(o)?o:[o])},validate:function(n,t,o){var r=this;t===void 0&&(t={}),o===void 0&&(o=function(){});var a=n,s=t,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function c(v){var C,I=[],h={};function y(x){if(Array.isArray(x)){var w;I=(w=I).concat.apply(w,x)}else I.push(x)}for(C=0;C<v.length;C++)y(v[C]);I.length?h=convertFieldsError(I):(I=null,h=null),l(I,h)}if(s.messages){var u=this.messages();u===messages&&(u=newMessages()),deepMerge(u,s.messages),s.messages=u}else s.messages=this.messages();var d,f,m={},p=s.keys||Object.keys(this.rules);p.forEach(function(v){d=r.rules[v],f=a[v],d.forEach(function(C){var I=C;typeof I.transform=="function"&&(a===n&&(a=_extends({},a)),f=a[v]=I.transform(f)),typeof I=="function"?I={validator:I}:I=_extends({},I),I.validator=r.getValidationMethod(I),I.field=v,I.fullField=I.fullField||v,I.type=r.getType(I),I.validator&&(m[v]=m[v]||[],m[v].push({rule:I,value:f,source:a,field:v}))})});var g={};return asyncMap(m,s,function(v,C){var I=v.rule,h=(I.type==="object"||I.type==="array")&&(typeof I.fields=="object"||typeof I.defaultField=="object");h=h&&(I.required||!I.required&&v.value),I.field=v.field;function y(O,F){return _extends(_extends({},F),{},{fullField:I.fullField+"."+O})}function x(O){O===void 0&&(O=[]);var F=O;if(Array.isArray(F)||(F=[F]),!s.suppressWarning&&F.length&&Schema.warning("async-validator:",F),F.length&&I.message!==void 0&&(F=[].concat(I.message)),F=F.map(complementError(I)),s.first&&F.length)return g[I.field]=1,C(F);if(!h)C(F);else{if(I.required&&!v.value)return I.message!==void 0?F=[].concat(I.message).map(complementError(I)):s.error&&(F=[s.error(I,format$1(s.messages.required,I.field))]),C(F);var b={};if(I.defaultField)for(var S in v.value)v.value.hasOwnProperty(S)&&(b[S]=I.defaultField);b=_extends(_extends({},b),v.rule.fields);for(var T in b)if(b.hasOwnProperty(T)){var k=Array.isArray(b[T])?b[T]:[b[T]];b[T]=k.map(y.bind(null,T))}var L=new Schema(b);L.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),L.validate(v.value,v.rule.options||s,function(D){var P=[];F&&F.length&&P.push.apply(P,F),D&&D.length&&P.push.apply(P,D),C(P.length?P:null)})}}var w;I.asyncValidator?w=I.asyncValidator(I,v.value,x,v.source,s):I.validator&&(w=I.validator(I,v.value,x,v.source,s),w===!0?x():w===!1?x(I.message||I.field+" fails"):w instanceof Array?x(w):w instanceof Error&&x(w.message)),w&&w.then&&w.then(function(){return x()},function(O){return x(O)})},function(v){c(v)})},getType:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!validators.hasOwnProperty(n.type))throw new Error(format$1("Unknown rule type %s",n.type));return n.type||"string"},getValidationMethod:function(n){if(typeof n.validator=="function")return n.validator;var t=Object.keys(n),o=t.indexOf("message");return o!==-1&&t.splice(o,1),t.length===1&&t[0]==="required"?validators.required:validators[this.getType(n)]||!1}},Schema.register=function(n,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[n]=t},Schema.warning=warning$3,Schema.messages=messages,Schema.validators=validators;function get$3(e,n){for(var t=e,o=0;o<n.length;o+=1){if(t==null)return;t=t[n[o]]}return t}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function ownKeys$1(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$1(Object(t),!0).forEach(function(o){_defineProperty$1(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function internalSet(e,n,t,o){if(!n.length)return t;var r=_toArray(n),a=r[0],s=r.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=_toConsumableArray(e):l=_objectSpread({},e),o&&t===void 0&&s.length===1?delete l[a][s[0]]:l[a]=internalSet(l[a],s,t,o),l}function set$2(e,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&o&&t===void 0&&!get$3(e,n.slice(0,-1))?e:internalSet(e,n,t,o)}function getNamePath(e){return toArray$2(e)}function getValue(e,n){var t=get$3(e,n);return t}function setValue(e,n,t){var o=set$2(e,n,t);return o}function cloneByNamePathList(e,n){var t={};return n.forEach(function(o){var r=getValue(e,o);t=setValue(t,o,r)}),t}function containsNamePath(e,n){return e&&e.some(function(t){return matchNamePath(t,n)})}function isObject$4(e){return _typeof$1(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function internalSetValues(e,n){var t=Array.isArray(e)?_toConsumableArray(e):_objectSpread2$1({},e);return n&&Object.keys(n).forEach(function(o){var r=t[o],a=n[o],s=isObject$4(r)&&isObject$4(a);t[o]=s?internalSetValues(r,a||{}):a}),t}function setValues(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return t.reduce(function(r,a){return internalSetValues(r,a)},e)}function matchNamePath(e,n){return!e||!n||e.length!==n.length?!1:e.every(function(t,o){return n[o]===t})}function isSimilar(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||_typeof$1(e)!=="object"||_typeof$1(n)!=="object")return!1;var t=Object.keys(e),o=Object.keys(n),r=new Set([].concat(_toConsumableArray(t),_toConsumableArray(o)));return _toConsumableArray(r).every(function(a){var s=e[a],l=n[a];return typeof s=="function"&&typeof l=="function"?!0:s===l})}function defaultGetValueFromEvent(e){var n=arguments.length<=1?void 0:arguments[1];return n&&n.target&&e in n.target?n.target[e]:n}function move(e,n,t){var o=e.length;if(n<0||n>=o||t<0||t>=o)return e;var r=e[n],a=n-t;return a>0?[].concat(_toConsumableArray(e.slice(0,t)),[r],_toConsumableArray(e.slice(t,n)),_toConsumableArray(e.slice(n+1,o))):a<0?[].concat(_toConsumableArray(e.slice(0,n)),_toConsumableArray(e.slice(n+1,t+1)),[r],_toConsumableArray(e.slice(t+1,o))):e}var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(e,n){return e.replace(/\$\{\w+\}/g,function(t){var o=t.slice(2,-1);return n[o]})}function convertMessages(e,n,t,o){var r=_objectSpread2$1(_objectSpread2$1({},t),{},{name:n,enum:(t.enum||[]).join(", ")}),a=function(c,u){return function(){return replaceMessage(c,_objectSpread2$1(_objectSpread2$1({},r),u))}};function s(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(l).forEach(function(u){var d=l[u];typeof d=="string"?c[u]=a(d,o):d&&_typeof$1(d)==="object"?(c[u]={},s(d,c[u])):c[u]=d}),c}return s(setValues({},defaultValidateMessages,e))}function validateRule(e,n,t,o,r){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(regeneratorExports.mark(function e(n,t,o,r,a){var s,l,c,u,d,f;return regeneratorExports.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return s=_objectSpread2$1({},o),l=null,s&&s.type==="array"&&s.defaultField&&(l=s.defaultField,delete s.defaultField),c=new AsyncValidator(_defineProperty$1({},n,[s])),u=convertMessages(r.validateMessages,n,s,a),c.messages(u),d=[],p.prev=7,p.next=10,Promise.resolve(c.validate(_defineProperty$1({},n,t),_objectSpread2$1({},r)));case 10:p.next=15;break;case 12:p.prev=12,p.t0=p.catch(7),p.t0.errors?d=p.t0.errors.map(function(g,v){var C=g.message;return React__namespace.isValidElement(C)?React__namespace.cloneElement(C,{key:"error_".concat(v)}):C}):(console.error(p.t0),d=[u.default()]);case 15:if(!(!d.length&&l)){p.next=20;break}return p.next=18,Promise.all(t.map(function(g,v){return validateRule("".concat(n,".").concat(v),g,l,r,a)}));case 18:return f=p.sent,p.abrupt("return",f.reduce(function(g,v){return[].concat(_toConsumableArray(g),_toConsumableArray(v))},[]));case 20:return p.abrupt("return",d);case 21:case"end":return p.stop()}},e,null,[[7,12]])})),_validateRule.apply(this,arguments)}function validateRules(e,n,t,o,r,a){var s=e.join("."),l=t.map(function(d){var f=d.validator;return f?_objectSpread2$1(_objectSpread2$1({},d),{},{validator:function(p,g,v){var C=!1,I=function(){for(var x=arguments.length,w=new Array(x),O=0;O<x;O++)w[O]=arguments[O];Promise.resolve().then(function(){warningOnce(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||v.apply(void 0,w)})},h=f(p,g,I);C=h&&typeof h.then=="function"&&typeof h.catch=="function",warningOnce(C,"`callback` is deprecated. Please return a promise instead."),C&&h.then(function(){v()}).catch(function(y){v(y||" ")})}}):d}),c;if(r===!0)c=new Promise(function(){var d=_asyncToGenerator(regeneratorExports.mark(function f(m,p){var g,v;return regeneratorExports.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:g=0;case 1:if(!(g<l.length)){I.next=11;break}return I.next=4,validateRule(s,n,l[g],o,a);case 4:if(v=I.sent,!v.length){I.next=8;break}return p(v),I.abrupt("return");case 8:g+=1,I.next=1;break;case 11:m([]);case 12:case"end":return I.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return validateRule(s,n,d,o,a)});c=(r?finishOnFirstFailed(u):finishOnAllFailed(u)).then(function(d){return d.length?Promise.reject(d):[]})}return c.catch(function(d){return d}),c}function finishOnAllFailed(e){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(regeneratorExports.mark(function e(n){return regeneratorExports.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(n).then(function(r){var a,s=(a=[]).concat.apply(a,_toConsumableArray(r));return s}));case 1:case"end":return o.stop()}},e)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(e){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(regeneratorExports.mark(function e(n){var t;return regeneratorExports.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return t=0,r.abrupt("return",new Promise(function(a){n.forEach(function(s){s.then(function(l){l.length&&a(l),t+=1,t===n.length&&a([])})})}));case 2:case"end":return r.stop()}},e)})),_finishOnFirstFailed.apply(this,arguments)}function requireUpdate(e,n,t,o,r,a){return typeof e=="function"?e(n,t,"source"in a?{source:a.source}:{}):o!==r}var Field=function(e){_inherits(t,e);var n=_createSuper(t);function t(o){var r;if(_classCallCheck(this,t),r=n.call(this,o),r.state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],r.cancelRegister=function(){var c=r.props,u=c.preserve,d=c.isListField;r.cancelRegisterFunc&&r.cancelRegisterFunc(d,u),r.cancelRegisterFunc=null},r.getNamePath=function(){var c=r.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(_toConsumableArray(m),_toConsumableArray(u)):[]},r.getRules=function(){var c=r.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})},r.refresh=function(){!r.mounted||r.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})},r.onStoreChange=function(c,u,d){var f=r.props,m=f.shouldUpdate,p=f.dependencies,g=p===void 0?[]:p,v=f.onReset,C=d.store,I=r.getNamePath(),h=r.getValue(c),y=r.getValue(C),x=u&&containsNamePath(u,I);switch(d.type==="valueUpdate"&&d.source==="external"&&h!==y&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=[]),d.type){case"reset":if(!u||x){r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],v&&v(),r.refresh();return}break;case"setField":{if(x){var w=d.data;"touched"in w&&(r.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(r.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(r.errors=w.errors||[]),r.dirty=!0,r.reRender();return}if(m&&!I.length&&requireUpdate(m,c,C,h,y,d)){r.reRender();return}break}case"dependenciesUpdate":{var O=g.map(getNamePath);if(O.some(function(F){return containsNamePath(d.relatedFields,F)})){r.reRender();return}break}default:if(x||(!g.length||I.length||m)&&requireUpdate(m,c,C,h,y,d)){r.reRender();return}break}m===!0&&r.reRender()},r.validateRules=function(c){var u=r.getNamePath(),d=r.getValue(),f=Promise.resolve().then(function(){if(!r.mounted)return[];var m=r.props,p=m.validateFirst,g=p===void 0?!1:p,v=m.messageVariables,C=c||{},I=C.triggerName,h=r.getRules();I&&(h=h.filter(function(x){var w=x.validateTrigger;if(!w)return!0;var O=toArray$2(w);return O.includes(I)}));var y=validateRules(u,d,h,c,g,v);return y.catch(function(x){return x}).then(function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.validatePromise===f&&(r.validatePromise=null,r.errors=x,r.reRender())}),y});return r.validatePromise=f,r.dirty=!0,r.errors=[],r.reRender(),f},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return r.dirty},r.getErrors=function(){return r.errors},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){r.prevValidating=r.isFieldValidating();var c={touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,name:r.getNamePath()};return c},r.getOnlyChild=function(c){if(typeof c=="function"){var u=r.getMeta();return _objectSpread2$1(_objectSpread2$1({},r.getOnlyChild(c(r.getControlled(),u,r.props.fieldContext))),{},{isFunction:!0})}var d=toArray$3(c);return d.length!==1||!React__namespace.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}},r.getValue=function(c){var u=r.props.fieldContext.getFieldsValue,d=r.getNamePath();return getValue(c||u(!0),d)},r.getControlled=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=r.props,d=u.trigger,f=u.validateTrigger,m=u.getValueFromEvent,p=u.normalize,g=u.valuePropName,v=u.getValueProps,C=u.fieldContext,I=f!==void 0?f:C.validateTrigger,h=r.getNamePath(),y=C.getInternalHooks,x=C.getFieldsValue,w=y(HOOK_MARK),O=w.dispatch,F=r.getValue(),b=v||function(L){return _defineProperty$1({},g,L)},S=c[d],T=_objectSpread2$1(_objectSpread2$1({},c),b(F));T[d]=function(){r.touched=!0,r.dirty=!0;for(var L,D=arguments.length,P=new Array(D),M=0;M<D;M++)P[M]=arguments[M];m?L=m.apply(void 0,P):L=defaultGetValueFromEvent.apply(void 0,[g].concat(P)),p&&(L=p(L,F,x(!0))),O({type:"updateValue",namePath:h,value:L}),S&&S.apply(void 0,P)};var k=toArray$2(I||[]);return k.forEach(function(L){var D=T[L];T[L]=function(){D&&D.apply(void 0,arguments);var P=r.props.rules;P&&P.length&&O({type:"validateField",namePath:h,triggerName:L})}}),T},o.fieldContext){var a=o.fieldContext.getInternalHooks,s=a(HOOK_MARK),l=s.initEntityValue;l(_assertThisInitialized(r))}return r}return _createClass(t,[{key:"componentDidMount",value:function(){var r=this.props,a=r.shouldUpdate,s=r.fieldContext;if(this.mounted=!0,s){var l=s.getInternalHooks,c=l(HOOK_MARK),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){this.state.resetCount;var r=this.props.children,a=this.getOnlyChild(r),s=a.child,l=a.isFunction,c;return l?c=s:React__namespace.isValidElement(s)?c=React__namespace.cloneElement(s,this.getControlled(s.props)):(warningOnce(!s,"`children` of Field is not validate ReactElement."),c=s),jsxRuntime.jsx(jsxRuntime.Fragment,{children:c})}}]),t}(React__namespace.Component);Field.contextType=Context,Field.defaultProps={trigger:"onChange",valuePropName:"value"};function WrapperField(e){var n=e.name,t=_objectWithoutProperties(e,["name"]),o=React__namespace.useContext(Context),r=n!==void 0?getNamePath(n):void 0,a="keep";return t.isListField||(a="_".concat((r||[]).join("_"))),process.env.NODE_ENV!=="production"&&warningOnce(t.preserve!==!1||!t.isListField,"`preserve` should not apply on Form.List fields."),jsxRuntime.jsx(Field,{name:r,...t,fieldContext:o},a)}var List=function(n){var t=n.name,o=n.initialValue,r=n.children,a=n.rules,s=n.validateTrigger,l=React__namespace.useContext(Context),c=React__namespace.useRef({keys:[],id:0}),u=c.current;if(typeof r!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var d=getNamePath(l.prefixName)||[],f=[].concat(_toConsumableArray(d),_toConsumableArray(getNamePath(t))),m=function(g,v,C){var I=C.source;return I==="internal"?!1:g!==v};return jsxRuntime.jsx(Context.Provider,{value:_objectSpread2$1(_objectSpread2$1({},l),{},{prefixName:f}),children:jsxRuntime.jsx(WrapperField,{name:[],shouldUpdate:m,rules:a,validateTrigger:s,initialValue:o,isList:!0,children:function(p,g){var v=p.value,C=v===void 0?[]:v,I=p.onChange,h=l.getFieldValue,y=function(){var F=h(f||[]);return F||[]},x={add:function(F,b){var S=y();b>=0&&b<=S.length?(u.keys=[].concat(_toConsumableArray(u.keys.slice(0,b)),[u.id],_toConsumableArray(u.keys.slice(b))),I([].concat(_toConsumableArray(S.slice(0,b)),[F],_toConsumableArray(S.slice(b))))):(process.env.NODE_ENV!=="production"&&(b<0||b>S.length)&&warningOnce(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(_toConsumableArray(u.keys),[u.id]),I([].concat(_toConsumableArray(S),[F]))),u.id+=1},remove:function(F){var b=y(),S=new Set(Array.isArray(F)?F:[F]);S.size<=0||(u.keys=u.keys.filter(function(T,k){return!S.has(k)}),I(b.filter(function(T,k){return!S.has(k)})))},move:function(F,b){if(F!==b){var S=y();F<0||F>=S.length||b<0||b>=S.length||(u.keys=move(u.keys,F,b),I(move(S,F,b)))}}},w=C||[];return Array.isArray(w)||(w=[],process.env.NODE_ENV!=="production"&&warningOnce(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(w.map(function(O,F){var b=u.keys[F];return b===void 0&&(u.keys[F]=u.id,b=u.keys[F],u.id+=1),{name:F,key:b,isListField:!0}}),x,g)}})})};function _iterableToArrayLimit(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,a=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(o.push(s.value),!(n&&o.length===n));r=!0);}catch(c){a=!0,l=c}finally{try{!r&&t.return!=null&&t.return()}finally{if(a)throw l}}return o}}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function allPromiseFinish(e){var n=!1,t=e.length,o=[];return e.length?new Promise(function(r,a){e.forEach(function(s,l){s.catch(function(c){return n=!0,c}).then(function(c){t-=1,o[l]=c,!(t>0)&&(n&&a(o),r(o))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize(e){return e.map(function(n){return"".concat(_typeof$1(n),":").concat(n)}).join(SPLIT)}var NameMap=function(){function e(){_classCallCheck(this,e),this.kvs=new Map}return _createClass(e,[{key:"set",value:function(t,o){this.kvs.set(normalize(t),o)}},{key:"get",value:function(t){return this.kvs.get(normalize(t))}},{key:"update",value:function(t,o){var r=this.get(t),a=o(r);a?this.set(t,a):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(normalize(t))}},{key:"map",value:function(t){return _toConsumableArray(this.kvs.entries()).map(function(o){var r=_slicedToArray(o,2),a=r[0],s=r[1],l=a.split(SPLIT);return t({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=_slicedToArray(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:s})})}},{key:"toJSON",value:function(){var t={};return this.map(function(o){var r=o.key,a=o.value;return t[r.join(".")]=a,null}),t}}]),e}(),FormStore=function e(n){var t=this;_classCallCheck(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,getInternalHooks:t.getInternalHooks}},this.getInternalHooks=function(o){return o===HOOK_MARK?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(o){t.subscribable=o},this.setInitialValues=function(o,r){t.initialValues=o||{},r&&(t.store=setValues({},o,t.store))},this.getInitialValue=function(o){return getValue(t.initialValues,o)},this.setCallbacks=function(o){t.callbacks=o},this.setValidateMessages=function(o){t.validateMessages=o},this.setPreserve=function(o){t.preserve=o},this.timeoutId=null,this.warningUnhooked=function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=window.setTimeout(function(){t.timeoutId=null,t.formHooked||warningOnce(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))},this.getFieldEntities=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?t.fieldEntities.filter(function(r){return r.getNamePath().length}):t.fieldEntities},this.getFieldsMap=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=new NameMap;return t.getFieldEntities(o).forEach(function(a){var s=a.getNamePath();r.set(s,a)}),r},this.getFieldEntitiesForNamePathList=function(o){if(!o)return t.getFieldEntities(!0);var r=t.getFieldsMap(!0);return o.map(function(a){var s=getNamePath(a);return r.get(s)||{INVALIDATE_NAME_PATH:getNamePath(a)}})},this.getFieldsValue=function(o,r){if(t.warningUnhooked(),o===!0&&!r)return t.store;var a=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach(function(l){var c,u="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(!(!o&&((c=l.isListField)===null||c===void 0?void 0:c.call(l))))if(!r)s.push(u);else{var d="getMeta"in l?l.getMeta():null;r(d)&&s.push(u)}}),cloneByNamePathList(t.store,s.map(getNamePath))},this.getFieldValue=function(o){t.warningUnhooked();var r=getNamePath(o);return getValue(t.store,r)},this.getFieldsError=function(o){t.warningUnhooked();var r=t.getFieldEntitiesForNamePathList(o);return r.map(function(a,s){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors()}:{name:getNamePath(o[s]),errors:[]}})},this.getFieldError=function(o){t.warningUnhooked();var r=getNamePath(o),a=t.getFieldsError([r])[0];return a.errors},this.isFieldsTouched=function(){t.warningUnhooked();for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];var s=r[0],l=r[1],c,u=!1;r.length===0?c=null:r.length===1?Array.isArray(s)?(c=s.map(getNamePath),u=!1):(c=null,u=s):(c=s.map(getNamePath),u=l);var d=t.getFieldEntities(!0),f=function(C){return C.isFieldTouched()};if(!c)return u?d.every(f):d.some(f);var m=new NameMap;c.forEach(function(v){m.set(v,[])}),d.forEach(function(v){var C=v.getNamePath();c.forEach(function(I){I.every(function(h,y){return C[y]===h})&&m.update(I,function(h){return[].concat(_toConsumableArray(h),[v])})})});var p=function(C){return C.some(f)},g=m.map(function(v){var C=v.value;return C});return u?g.every(p):g.some(p)},this.isFieldTouched=function(o){return t.warningUnhooked(),t.isFieldsTouched([o])},this.isFieldsValidating=function(o){t.warningUnhooked();var r=t.getFieldEntities();if(!o)return r.some(function(s){return s.isFieldValidating()});var a=o.map(getNamePath);return r.some(function(s){var l=s.getNamePath();return containsNamePath(a,l)&&s.isFieldValidating()})},this.isFieldValidating=function(o){return t.warningUnhooked(),t.isFieldsValidating([o])},this.resetWithFieldInitialValue=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=new NameMap,a=t.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=r.get(d)||new Set;f.add({entity:c,value:u}),r.set(d,f)}});var s=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=t.getInitialValue(m);if(p!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var g=r.get(m);if(g&&g.size>1)warningOnce(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=t.getFieldValue(m);(!o.skipExist||v===void 0)&&(t.store=setValue(t.store,m,_toConsumableArray(g)[0].value))}}}})},l;o.entities?l=o.entities:o.namePathList?(l=[],o.namePathList.forEach(function(c){var u=r.get(c);if(u){var d;(d=l).push.apply(d,_toConsumableArray(_toConsumableArray(u).map(function(f){return f.entity})))}})):l=a,s(l)},this.resetFields=function(o){t.warningUnhooked();var r=t.store;if(!o){t.store=setValues({},t.initialValues),t.resetWithFieldInitialValue(),t.notifyObservers(r,null,{type:"reset"});return}var a=o.map(getNamePath);a.forEach(function(s){var l=t.getInitialValue(s);t.store=setValue(t.store,s,l)}),t.resetWithFieldInitialValue({namePathList:a}),t.notifyObservers(r,a,{type:"reset"})},this.setFields=function(o){t.warningUnhooked();var r=t.store;o.forEach(function(a){var s=a.name;a.errors;var l=_objectWithoutProperties(a,["name","errors"]),c=getNamePath(s);"value"in l&&(t.store=setValue(t.store,c,l.value)),t.notifyObservers(r,[c],{type:"setField",data:a})})},this.getFields=function(){var o=t.getFieldEntities(!0),r=o.map(function(a){var s=a.getNamePath(),l=a.getMeta(),c=_objectSpread2$1(_objectSpread2$1({},l),{},{name:s,value:t.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return r},this.initEntityValue=function(o){var r=o.props.initialValue;if(r!==void 0){var a=o.getNamePath(),s=getValue(t.store,a);s===void 0&&(t.store=setValue(t.store,a,r))}},this.registerField=function(o){if(t.fieldEntities.push(o),o.props.initialValue!==void 0){var r=t.store;t.resetWithFieldInitialValue({entities:[o],skipExist:!0}),t.notifyObservers(r,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){t.fieldEntities=t.fieldEntities.filter(function(d){return d!==o});var l=s!==void 0?s:t.preserve;if(l===!1&&!a){var c=o.getNamePath(),u=getValue(t.initialValues,c);c.length&&t.getFieldValue(c)!==u&&t.fieldEntities.every(function(d){return!matchNamePath(d.getNamePath(),c)})&&(t.store=setValue(t.store,c,u))}}},this.dispatch=function(o){switch(o.type){case"updateValue":{var r=o.namePath,a=o.value;t.updateValue(r,a);break}case"validateField":{var s=o.namePath,l=o.triggerName;t.validateFields([s],{triggerName:l});break}}},this.notifyObservers=function(o,r,a){if(t.subscribable){var s=_objectSpread2$1(_objectSpread2$1({},a),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(o,r,s)})}else t.forceRootUpdate()},this.updateValue=function(o,r){var a=getNamePath(o),s=t.store;t.store=setValue(t.store,a,r),t.notifyObservers(s,[a],{type:"valueUpdate",source:"internal"});var l=t.getDependencyChildrenFields(a);l.length&&t.validateFields(l),t.notifyObservers(s,l,{type:"dependenciesUpdate",relatedFields:[a].concat(_toConsumableArray(l))});var c=t.callbacks.onValuesChange;if(c){var u=cloneByNamePathList(t.store,[a]);c(u,t.getFieldsValue())}t.triggerOnFieldsChange([a].concat(_toConsumableArray(l)))},this.setFieldsValue=function(o){t.warningUnhooked();var r=t.store;o&&(t.store=setValues(t.store,o)),t.notifyObservers(r,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(o){var r=new Set,a=[],s=new NameMap;t.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=getNamePath(d);s.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=s.get(u)||new Set;d.forEach(function(f){if(!r.has(f)){r.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return l(o),a},this.triggerOnFieldsChange=function(o,r){var a=t.callbacks.onFieldsChange;if(a){var s=t.getFields();if(r){var l=new NameMap;r.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),s.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=s.filter(function(u){var d=u.name;return containsNamePath(o,d)});a(c,s)}},this.validateFields=function(o,r){t.warningUnhooked();var a=!!o,s=a?o.map(getNamePath):[],l=[];t.getFieldEntities(!0).forEach(function(d){if(a||s.push(d.getNamePath()),(r==null?void 0:r.recursive)&&a){var f=d.getNamePath();f.every(function(g,v){return o[v]===g||o[v]===void 0})&&s.push(f)}if(!(!d.props.rules||!d.props.rules.length)){var m=d.getNamePath();if(!a||containsNamePath(s,m)){var p=d.validateRules(_objectSpread2$1({validateMessages:_objectSpread2$1(_objectSpread2$1({},defaultValidateMessages),t.validateMessages)},r));l.push(p.then(function(){return{name:m,errors:[]}}).catch(function(g){return Promise.reject({name:m,errors:g})}))}}});var c=allPromiseFinish(l);t.lastValidatePromise=c,c.catch(function(d){return d}).then(function(d){var f=d.map(function(m){var p=m.name;return p});t.notifyObservers(t.store,f,{type:"validateFinish"}),t.triggerOnFieldsChange(f,d)});var u=c.then(function(){return t.lastValidatePromise===c?Promise.resolve(t.getFieldsValue(s)):Promise.reject([])}).catch(function(d){var f=d.filter(function(m){return m&&m.errors.length});return Promise.reject({values:t.getFieldsValue(s),errorFields:f,outOfDate:t.lastValidatePromise!==c})});return u.catch(function(d){return d}),u},this.submit=function(){t.warningUnhooked(),t.validateFields().then(function(o){var r=t.callbacks.onFinish;if(r)try{r(o)}catch(a){console.error(a)}}).catch(function(o){var r=t.callbacks.onFinishFailed;r&&r(o)})},this.forceRootUpdate=n};function useForm(e){var n=React__namespace.useRef(),t=React__namespace.useState({}),o=_slicedToArray(t,2),r=o[1];if(!n.current)if(e)n.current=e;else{var a=function(){r({})},s=new FormStore(a);n.current=s.getForm()}return[n.current]}var FormContext=React__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider=function(n){var t=n.validateMessages,o=n.onFormChange,r=n.onFormFinish,a=n.children,s=React__namespace.useContext(FormContext),l=React__namespace.useRef({});return jsxRuntime.jsx(FormContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},s),{},{validateMessages:_objectSpread2$1(_objectSpread2$1({},s.validateMessages),t),triggerFormChange:function(u,d){o&&o(u,{changedFields:d,forms:l.current}),s.triggerFormChange(u,d)},triggerFormFinish:function(u,d){r&&r(u,{values:d,forms:l.current}),s.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=_objectSpread2$1(_objectSpread2$1({},l.current),{},_defineProperty$1({},u,d))),s.registerForm(u,d)},unregisterForm:function(u){var d=_objectSpread2$1({},l.current);delete d[u],l.current=d,s.unregisterForm(u)}}),children:a})},Form$2=function(n,t){var o=n.name,r=n.initialValues,a=n.fields,s=n.form,l=n.preserve,c=n.children,u=n.component,d=u===void 0?"form":u,f=n.validateMessages,m=n.validateTrigger,p=m===void 0?"onChange":m,g=n.onValuesChange,v=n.onFieldsChange,C=n.onFinish,I=n.onFinishFailed,h=_objectWithoutProperties(n,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),y=React__namespace.useContext(FormContext),x=useForm(s),w=_slicedToArray(x,1),O=w[0],F=O.getInternalHooks(HOOK_MARK),b=F.useSubscribe,S=F.setInitialValues,T=F.setCallbacks,k=F.setValidateMessages,L=F.setPreserve;React__namespace.useImperativeHandle(t,function(){return O}),React__namespace.useEffect(function(){return y.registerForm(o,O),function(){y.unregisterForm(o)}},[y,O,o]),k(_objectSpread2$1(_objectSpread2$1({},y.validateMessages),f)),T({onValuesChange:g,onFieldsChange:function(Y){if(y.triggerFormChange(o,Y),v){for(var H=arguments.length,K=new Array(H>1?H-1:0),N=1;N<H;N++)K[N-1]=arguments[N];v.apply(void 0,[Y].concat(K))}},onFinish:function(Y){y.triggerFormFinish(o,Y),C&&C(Y)},onFinishFailed:I}),L(l);var D=React__namespace.useRef(null);S(r,!D.current),D.current||(D.current=!0);var P=c,M=typeof c=="function";if(M){var q=O.getFieldsValue(!0);P=c(q,O)}b(!M);var U=React__namespace.useRef();React__namespace.useEffect(function(){isSimilar(U.current||[],a||[])||O.setFields(a||[]),U.current=a},[a,O]);var B=React__namespace.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},O),{},{validateTrigger:p})},[O,p]),V=jsxRuntime.jsx(Context.Provider,{value:B,children:P});return d===!1?V:jsxRuntime.jsx(d,{...h,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),O.submit()},children:V})},InternalForm=React__namespace.forwardRef(Form$2),RefForm=InternalForm;RefForm.FormProvider=FormProvider,RefForm.Field=WrapperField,RefForm.List=List,RefForm.useForm=useForm;const es$2=Object.freeze(Object.defineProperty({__proto__:null,Field:WrapperField,List,useForm,FormProvider,default:RefForm},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(es$2);var useMemo={},hasRequiredUseMemo;function requireUseMemo(){if(hasRequiredUseMemo)return useMemo;hasRequiredUseMemo=1;var e=interopRequireWildcard.exports;Object.defineProperty(useMemo,"__esModule",{value:!0}),useMemo.default=t;var n=e(React__default.default);function t(o,r,a){var s=n.useRef({});return(!("value"in s.current)||a(s.current.condition,r))&&(s.current.value=o(),s.current.condition=r),s.current.value}return useMemo}var localeProvider={},devWarning={},warning$2={},hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning$2;hasRequiredWarning=1,Object.defineProperty(warning$2,"__esModule",{value:!0}),warning$2.warning=n,warning$2.note=t,warning$2.resetWarned=o,warning$2.call=r,warning$2.warningOnce=a,warning$2.noteOnce=s,warning$2.default=void 0;var e={};function n(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function t(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.warn("Note: ".concat(u))}function o(){e={}}function r(c,u,d){!u&&!e[d]&&(c(!1,d),e[d]=!0)}function a(c,u){r(n,c,u)}function s(c,u){r(t,c,u)}var l=a;return warning$2.default=l,warning$2}var hasRequiredDevWarning;function requireDevWarning(){return hasRequiredDevWarning||(hasRequiredDevWarning=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resetWarned",{enumerable:!0,get:function(){return t.resetWarned}}),e.default=void 0;var t=n(requireWarning()),o=function(a,s,l){(0,t.default)(a,"[antd: ".concat(s,"] ").concat(l))};e.default=o}(devWarning)),devWarning}var locale$1={},_default$1={},en_US$4={},hasRequiredEn_US$4;function requireEn_US$4(){if(hasRequiredEn_US$4)return en_US$4;hasRequiredEn_US$4=1,Object.defineProperty(en_US$4,"__esModule",{value:!0}),en_US$4.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};return en_US$4.default=e,en_US$4}var en_US$3={},en_US$2={},hasRequiredEn_US$3;function requireEn_US$3(){if(hasRequiredEn_US$3)return en_US$2;hasRequiredEn_US$3=1,Object.defineProperty(en_US$2,"__esModule",{value:!0}),en_US$2.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},n=e;return en_US$2.default=n,en_US$2}var en_US$1={},hasRequiredEn_US$2;function requireEn_US$2(){return hasRequiredEn_US$2||(hasRequiredEn_US$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},t=n;e.default=t}(en_US$1)),en_US$1}var hasRequiredEn_US$1;function requireEn_US$1(){return hasRequiredEn_US$1||(hasRequiredEn_US$1=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(require_extends()),o=n(requireEn_US$3()),r=n(requireEn_US$2()),a={lang:(0,t.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o.default),timePickerLocale:(0,t.default)({},r.default)},s=a;e.default=s}(en_US$3)),en_US$3}var en_US={},hasRequiredEn_US;function requireEn_US(){return hasRequiredEn_US||(hasRequiredEn_US=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(requireEn_US$1()),o=t.default;e.default=o}(en_US)),en_US}var hasRequired_default$1;function require_default$1(){return hasRequired_default$1||(hasRequired_default$1=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(requireEn_US$4()),o=n(requireEn_US$1()),r=n(requireEn_US$2()),a=n(requireEn_US()),s="${label} is not a valid ${type}",l={locale:"en",Pagination:t.default,DatePicker:o.default,TimePicker:r.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},c=l;e.default=c}(_default$1)),_default$1}var hasRequiredLocale;function requireLocale(){if(hasRequiredLocale)return locale$1;hasRequiredLocale=1;var e=interopRequireDefault.exports;Object.defineProperty(locale$1,"__esModule",{value:!0}),locale$1.changeConfirmLocale=r,locale$1.getConfirmLocale=a;var n=e(require_extends()),t=e(require_default$1()),o=(0,n.default)({},t.default.Modal);function r(s){s?o=(0,n.default)((0,n.default)({},o),s):o=(0,n.default)({},t.default.Modal)}function a(){return o}return locale$1}var context$1={},hasRequiredContext$1;function requireContext$1(){return hasRequiredContext$1||(hasRequiredContext$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=React__default.default,t=(0,n.createContext)(void 0),o=t;e.default=o}(context$1)),context$1}var hasRequiredLocaleProvider;function requireLocaleProvider(){return hasRequiredLocaleProvider||(hasRequiredLocaleProvider=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0;var o=t(require_extends()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=n(React__default.default),u=t(requireDevWarning()),d=requireLocale(),f=t(requireContext$1()),m="internalMark";e.ANT_MARK=m;var p=function(g){(0,s.default)(C,g);var v=(0,l.default)(C);function C(I){var h;return(0,r.default)(this,C),h=v.call(this,I),(0,d.changeConfirmLocale)(I.locale&&I.locale.Modal),(0,u.default)(I._ANT_MARK__===m,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),h}return(0,a.default)(C,[{key:"componentDidUpdate",value:function(h){var y=this.props.locale;h.locale!==y&&(0,d.changeConfirmLocale)(y&&y.Modal)}},{key:"componentWillUnmount",value:function(){(0,d.changeConfirmLocale)()}},{key:"render",value:function(){var h=this.props,y=h.locale,x=h.children;return c.createElement(f.default.Provider,{value:(0,o.default)((0,o.default)({},y),{exist:!0})},x)}}]),C}(c.Component);e.default=p,p.defaultProps={locale:{}}}(localeProvider)),localeProvider}var LocaleReceiver={},_default={},hasRequired_default;function require_default(){return hasRequired_default||(hasRequired_default=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(require_default$1()),o=t.default;e.default=o}(_default)),_default}var hasRequiredLocaleReceiver;function requireLocaleReceiver(){return hasRequiredLocaleReceiver||(hasRequiredLocaleReceiver=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.useLocaleReceiver=m,e.default=void 0;var o=t(require_extends()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=n(React__default.default),u=t(require_default()),d=t(requireContext$1()),f=function(p){(0,s.default)(v,p);var g=(0,l.default)(v);function v(){return(0,r.default)(this,v),g.apply(this,arguments)}return(0,a.default)(v,[{key:"getLocale",value:function(){var I=this.props,h=I.componentName,y=I.defaultLocale,x=y||u.default[h||"global"],w=this.context,O=h&&w?w[h]:{};return(0,o.default)((0,o.default)({},typeof x=="function"?x():x),O||{})}},{key:"getLocaleCode",value:function(){var I=this.context,h=I&&I.locale;return I&&I.exist&&!h?u.default.locale:h}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),v}(c.Component);e.default=f,f.defaultProps={componentName:"global"},f.contextType=d.default;function m(p,g){var v=c.useContext(d.default),C=c.useMemo(function(){var I=g||u.default[p||"global"],h=p&&v?v[p]:{};return(0,o.default)((0,o.default)({},typeof I=="function"?I():I),h||{})},[p,g,v]);return[C]}}(LocaleReceiver)),LocaleReceiver}var context={},renderEmpty={},empty$1={},empty={},hasRequiredEmpty$1;function requireEmpty$1(){return hasRequiredEmpty$1||(hasRequiredEmpty$1=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(React__default.default),o=requireConfigProvider(),r=function(){var l=t.useContext(o.ConfigContext),c=l.getPrefixCls,u=c("empty-img-default");return t.createElement("svg",{className:u,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(24 31.67)"},t.createElement("ellipse",{className:"".concat(u,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),t.createElement("path",{className:"".concat(u,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),t.createElement("path",{className:"".concat(u,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),t.createElement("path",{className:"".concat(u,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),t.createElement("path",{className:"".concat(u,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),t.createElement("path",{className:"".concat(u,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),t.createElement("g",{className:"".concat(u,"-g"),transform:"translate(149.65 15.383)"},t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},a=r;e.default=a}(empty)),empty}var simple={},hasRequiredSimple;function requireSimple(){return hasRequiredSimple||(hasRequiredSimple=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(React__default.default),o=requireConfigProvider(),r=function(){var l=t.useContext(o.ConfigContext),c=l.getPrefixCls,u=c("empty-img-simple");return t.createElement("svg",{className:u,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},t.createElement("ellipse",{className:"".concat(u,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),t.createElement("g",{className:"".concat(u,"-g"),fillRule:"nonzero"},t.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),t.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(u,"-path")}))))},a=r;e.default=a}(simple)),simple}var hasRequiredEmpty;function requireEmpty(){return hasRequiredEmpty||(hasRequiredEmpty=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=t(requireDefineProperty()),a=n(React__default.default),s=t(requireClassnames()),l=requireConfigProvider(),c=t(requireLocaleReceiver()),u=t(requireEmpty$1()),d=t(requireSimple()),f=function(C,I){var h={};for(var y in C)Object.prototype.hasOwnProperty.call(C,y)&&I.indexOf(y)<0&&(h[y]=C[y]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(C);x<y.length;x++)I.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(C,y[x])&&(h[y[x]]=C[y[x]]);return h},m=a.createElement(u.default,null),p=a.createElement(d.default,null),g=function(I){var h=I.className,y=I.prefixCls,x=I.image,w=x===void 0?m:x,O=I.description,F=I.children,b=I.imageStyle,S=f(I,["className","prefixCls","image","description","children","imageStyle"]),T=a.useContext(l.ConfigContext),k=T.getPrefixCls,L=T.direction;return a.createElement(c.default,{componentName:"Empty"},function(D){var P,M=k("empty",y),q=typeof O<"u"?O:D.description,U=typeof q=="string"?q:"empty",B=null;return typeof w=="string"?B=a.createElement("img",{alt:U,src:w}):B=w,a.createElement("div",(0,o.default)({className:(0,s.default)(M,(P={},(0,r.default)(P,"".concat(M,"-normal"),w===p),(0,r.default)(P,"".concat(M,"-rtl"),L==="rtl"),P),h)},S),a.createElement("div",{className:"".concat(M,"-image"),style:b},B),q&&a.createElement("div",{className:"".concat(M,"-description")},q),F&&a.createElement("div",{className:"".concat(M,"-footer")},F))})};g.PRESENTED_IMAGE_DEFAULT=m,g.PRESENTED_IMAGE_SIMPLE=p;var v=g;e.default=v}(empty$1)),empty$1}var hasRequiredRenderEmpty;function requireRenderEmpty(){return hasRequiredRenderEmpty||(hasRequiredRenderEmpty=1,function(e){var n=interopRequireDefault.exports,t=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(React__default.default),r=n(requireEmpty()),a=requireConfigProvider(),s=function(u){return o.createElement(a.ConfigConsumer,null,function(d){var f=d.getPrefixCls,m=f("empty");switch(u){case"Table":case"List":return o.createElement(r.default,{image:r.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(r.default,{image:r.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(m,"-small")});default:return o.createElement(r.default,null)}})},l=s;e.default=l}(renderEmpty)),renderEmpty}var hasRequiredContext;function requireContext(){if(hasRequiredContext)return context;hasRequiredContext=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(context,"__esModule",{value:!0}),context.withConfigConsumer=c,context.ConfigConsumer=context.ConfigContext=void 0;var t=n(require_extends()),o=e(React__default.default),r=n(requireRenderEmpty()),a=function(d,f){return f||(d?"ant-".concat(d):"ant")},s=o.createContext({getPrefixCls:a,renderEmpty:r.default});context.ConfigContext=s;var l=s.Consumer;context.ConfigConsumer=l;function c(u){return function(f){var m=function(C){return o.createElement(l,null,function(I){var h=u.prefixCls,y=I.getPrefixCls,x=C.prefixCls,w=y(h,x);return o.createElement(f,(0,t.default)({},I,C,{prefixCls:w}))})},p=f.constructor,g=p&&p.displayName||f.name||"Component";return m.displayName="withConfigConsumer(".concat(g,")"),m}}return context}var SizeContext={},hasRequiredSizeContext;function requireSizeContext(){return hasRequiredSizeContext||(hasRequiredSizeContext=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var t=n(React__default.default),o=t.createContext(void 0),r=function(l){var c=l.children,u=l.size;return t.createElement(o.Consumer,null,function(d){return t.createElement(o.Provider,{value:u||d},c)})};e.SizeContextProvider=r;var a=o;e.default=a}(SizeContext)),SizeContext}var message={};function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function makePrefixMap(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(n),t["Moz".concat(e)]="moz".concat(n),t["ms".concat(e)]="MS".concat(n),t["O".concat(e)]="o".concat(n.toLowerCase()),t}function getVendorPrefixes(e,n){var t={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete t.animationend.animation,"TransitionEvent"in n||delete t.transitionend.transition),t}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(e){if(prefixedEventNames[e])return prefixedEventNames[e];var n=vendorPrefixes[e];if(n)for(var t=Object.keys(n),o=t.length,r=0;r<o;r+=1){var a=t[r];if(Object.prototype.hasOwnProperty.call(n,a)&&a in style)return prefixedEventNames[e]=n[a],prefixedEventNames[e]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(e,n){if(!e)return null;if(_typeof$1(e)==="object"){var t=n.replace(/-\w/g,function(o){return o[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(n)}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end";function useMountStatus(e){var n=React.useRef(!1),t=React.useState(e),o=_slicedToArray(t,2),r=o[0],a=o[1];function s(l){n.current||a(l)}return React.useEffect(function(){return function(){n.current=!0}},[]),[r,s]}var useIsomorphicLayoutEffect=canUseDom$1()?React.useLayoutEffect:React.useEffect,raf$2=function(n){return+setTimeout(n,16)},caf=function(n){return clearTimeout(n)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$2=function(n){return window.requestAnimationFrame(n)},caf=function(n){return window.cancelAnimationFrame(n)});function wrapperRaf(e){return raf$2(e)}wrapperRaf.cancel=caf;const useNextFrame=function(){var e=React__namespace.useRef(null);function n(){wrapperRaf.cancel(e.current)}function t(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;n();var a=wrapperRaf(function(){r<=1?o({isCanceled:function(){return a!==e.current}}):t(o,r-1)});e.current=a}return React__namespace.useEffect(function(){return function(){n()}},[]),[t,n]};var STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SkipStep=!1,DoStep=!0;function isActive(e){return e===STEP_ACTIVE||e===STEP_ACTIVATED}const useStepQueue=function(e,n){var t=React__namespace.useState(STEP_NONE),o=_slicedToArray(t,2),r=o[0],a=o[1],s=useNextFrame(),l=_slicedToArray(s,2),c=l[0],u=l[1];function d(){a(STEP_PREPARE)}return useIsomorphicLayoutEffect(function(){if(r!==STEP_NONE&&r!==STEP_ACTIVATED){var f=STEP_QUEUE.indexOf(r),m=STEP_QUEUE[f+1],p=n(r);p===SkipStep?a(m):c(function(g){function v(){g.isCanceled()||a(m)}p===!0?v():Promise.resolve(p).then(v)})}},[e,r]),React__namespace.useEffect(function(){return function(){u()}},[]),[d,r]},useDomMotionEvents=function(e){var n=React.useRef(),t=React.useRef(e);t.current=e;var o=React__namespace.useCallback(function(s){t.current(s)},[]);function r(s){s&&(s.removeEventListener(transitionEndName,o),s.removeEventListener(animationEndName,o))}function a(s){n.current&&n.current!==s&&r(n.current),s&&s!==n.current&&(s.addEventListener(transitionEndName,o),s.addEventListener(animationEndName,o),n.current=s)}return React__namespace.useEffect(function(){return function(){r(n.current)}},[]),[a,r]};function useStatus(e,n,t,o){var r=o.motionEnter,a=r===void 0?!0:r,s=o.motionAppear,l=s===void 0?!0:s,c=o.motionLeave,u=c===void 0?!0:c,d=o.motionDeadline,f=o.motionLeaveImmediately,m=o.onAppearPrepare,p=o.onEnterPrepare,g=o.onLeavePrepare,v=o.onAppearStart,C=o.onEnterStart,I=o.onLeaveStart,h=o.onAppearActive,y=o.onEnterActive,x=o.onLeaveActive,w=o.onAppearEnd,O=o.onEnterEnd,F=o.onLeaveEnd,b=o.onVisibleChanged,S=useMountStatus(),T=_slicedToArray(S,2),k=T[0],L=T[1],D=useMountStatus(STATUS_NONE),P=_slicedToArray(D,2),M=P[0],q=P[1],U=useMountStatus(null),B=_slicedToArray(U,2),V=B[0],G=B[1],Y=React.useRef(!1),H=React.useRef(null),K=React.useRef(!1),N=React.useRef(null);function W(){var se=t();return se||N.current}var j=React.useRef(!1);function A(se){var ie=W();if(!(se&&!se.deadline&&se.target!==ie)){var ce;M===STATUS_APPEAR&&j.current?ce=w==null?void 0:w(ie,se):M===STATUS_ENTER&&j.current?ce=O==null?void 0:O(ie,se):M===STATUS_LEAVE&&j.current&&(ce=F==null?void 0:F(ie,se)),ce!==!1&&!K.current&&(q(STATUS_NONE),G(null))}}var $=useDomMotionEvents(A),Z=_slicedToArray($,1),Q=Z[0],E=React__namespace.useMemo(function(){var se,ie,ce;switch(M){case"appear":return se={},_defineProperty$1(se,STEP_PREPARE,m),_defineProperty$1(se,STEP_START,v),_defineProperty$1(se,STEP_ACTIVE,h),se;case"enter":return ie={},_defineProperty$1(ie,STEP_PREPARE,p),_defineProperty$1(ie,STEP_START,C),_defineProperty$1(ie,STEP_ACTIVE,y),ie;case"leave":return ce={},_defineProperty$1(ce,STEP_PREPARE,g),_defineProperty$1(ce,STEP_START,I),_defineProperty$1(ce,STEP_ACTIVE,x),ce;default:return{}}},[M]),_=useStepQueue(M,function(se){if(se===STEP_PREPARE){var ie=E[STEP_PREPARE];return ie?ie(W()):SkipStep}if(ne in E){var ce;G(((ce=E[ne])===null||ce===void 0?void 0:ce.call(E,W(),null))||null)}return ne===STEP_ACTIVE&&(Q(W()),d>0&&(clearTimeout(H.current),H.current=setTimeout(function(){A({deadline:!0})},d))),DoStep}),z=_slicedToArray(_,2),X=z[0],ne=z[1],ee=isActive(ne);j.current=ee,useIsomorphicLayoutEffect(function(){if(L(n),!!e){var se=Y.current;Y.current=!0;var ie;!se&&n&&l&&(ie=STATUS_APPEAR),se&&n&&a&&(ie=STATUS_ENTER),(se&&!n&&u||!se&&f&&!n&&u)&&(ie=STATUS_LEAVE),ie&&(q(ie),X())}},[n]),React.useEffect(function(){(M===STATUS_APPEAR&&!l||M===STATUS_ENTER&&!a||M===STATUS_LEAVE&&!u)&&q(STATUS_NONE)},[l,a,u]),React.useEffect(function(){return function(){clearTimeout(H.current),K.current=!0}},[]),React.useEffect(function(){k!==void 0&&M===STATUS_NONE&&(b==null||b(k))},[k,M]);var oe=V;return E[STEP_PREPARE]&&ne===STEP_START&&(oe=_objectSpread2$1({transition:"none"},oe)),[M,ne,oe,k!=null?k:n]}var DomWrapper=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"render",value:function(){return this.props.children}}]),t}(React__namespace.Component);function genCSSMotion(e){var n=e;_typeof$1(e)==="object"&&(n=e.transitionSupport);function t(r){return!!(r.motionName&&n)}var o=React__namespace.forwardRef(function(r,a){var s=r.visible,l=s===void 0?!0:s,c=r.removeOnLeave,u=c===void 0?!0:c,d=r.forceRender,f=r.children,m=r.motionName,p=r.leavedClassName,g=r.eventProps,v=t(r),C=React.useRef(),I=React.useRef();function h(){try{return findDOMNode(C.current||I.current)}catch{return null}}var y=useStatus(v,l,h,r),x=_slicedToArray(y,4),w=x[0],O=x[1],F=x[2],b=x[3],S=React.useRef(a);S.current=a;var T=React__namespace.useCallback(function(M){C.current=M,fillRef(S.current,M)},[]),k,L=_objectSpread2$1(_objectSpread2$1({},g),{},{visible:l});if(!f)k=null;else if(w===STATUS_NONE||!t(r))b?k=f(_objectSpread2$1({},L),T):u?d?k=f(_objectSpread2$1(_objectSpread2$1({},L),{},{style:{display:"none"}}),T):k=null:k=f(_objectSpread2$1(_objectSpread2$1({},L),{},{className:p}),T);else{var D,P;O===STEP_PREPARE?P="prepare":isActive(O)?P="active":O===STEP_START&&(P="start"),k=f(_objectSpread2$1(_objectSpread2$1({},L),{},{className:classnamesExports(getTransitionName$1(m,w),(D={},_defineProperty$1(D,getTransitionName$1(m,"".concat(w,"-").concat(P)),P),_defineProperty$1(D,m,typeof m=="string"),D)),style:F}),T)}return jsxRuntime.jsx(DomWrapper,{ref:I,children:k})});return o.displayName="CSSMotion",o}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(e){var n;return e&&_typeof$1(e)==="object"&&"key"in e?n=e:n={key:e},_objectSpread2$1(_objectSpread2$1({},n),{},{key:String(n.key)})}function parseKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(wrapKeyToObject)}function diffKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],o=0,r=n.length,a=parseKeys(e),s=parseKeys(n);a.forEach(function(u){for(var d=!1,f=o;f<r;f+=1){var m=s[f];if(m.key===u.key){o<f&&(t=t.concat(s.slice(o,f).map(function(p){return _objectSpread2$1(_objectSpread2$1({},p),{},{status:STATUS_ADD})})),o=f),t.push(_objectSpread2$1(_objectSpread2$1({},m),{},{status:STATUS_KEEP})),o+=1,d=!0;break}}d||t.push(_objectSpread2$1(_objectSpread2$1({},u),{},{status:STATUS_REMOVE}))}),o<r&&(t=t.concat(s.slice(o).map(function(u){return _objectSpread2$1(_objectSpread2$1({},u),{},{status:STATUS_ADD})})));var l={};t.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){t=t.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==STATUS_REMOVE}),t.forEach(function(d){d.key===u&&(d.status=STATUS_KEEP)})}),t}var MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,t=function(o){_inherits(a,o);var r=_createSuper(a);function a(){var s;return _classCallCheck(this,a),s=r.apply(this,arguments),s.state={keyEntities:[]},s.removeKey=function(l){s.setState(function(c){var u=c.keyEntities;return{keyEntities:u.map(function(d){return d.key!==l?d:_objectSpread2$1(_objectSpread2$1({},d),{},{status:STATUS_REMOVED})})}})},s}return _createClass(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged,p=_objectWithoutProperties(u,["component","children","onVisibleChanged"]),g=d||React__namespace.Fragment,v={};return MOTION_PROP_NAMES.forEach(function(C){v[C]=p[C],delete p[C]}),delete p.keys,jsxRuntime.jsx(g,{...Object.assign({},p),children:c.map(function(C){var I=C.status,h=_objectWithoutProperties(C,["status"]),y=I===STATUS_ADD||I===STATUS_KEEP;return jsxRuntime.jsx(n,{...Object.assign({},v,{key:h.key,visible:y,eventProps:h,onVisibleChanged:function(w){m==null||m(w,{key:h.key}),w||l.removeKey(h.key)}}),children:f})})})}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=parseKeys(u),m=diffKeys(d,f);return{keyEntities:m.filter(function(p){var g=d.find(function(v){var C=v.key;return p.key===C});return!(g&&g.status===STATUS_REMOVED&&p.status===STATUS_REMOVE)})}}}]),a}(React__namespace.Component);return t.defaultProps={component:"div"},t}const CSSMotionList=genCSSMotionList(supportTransition);var Notice$1=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var o;return _classCallCheck(this,t),o=n.apply(this,arguments),o.closeTimer=null,o.close=function(r){r&&r.stopPropagation(),o.clearCloseTimer();var a=o.props,s=a.onClose,l=a.noticeKey;s&&s(l)},o.startCloseTimer=function(){o.props.duration&&(o.closeTimer=window.setTimeout(function(){o.close()},o.props.duration*1e3))},o.clearCloseTimer=function(){o.closeTimer&&(clearTimeout(o.closeTimer),o.closeTimer=null)},o}return _createClass(t,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(r){(this.props.duration!==r.duration||this.props.updateMark!==r.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var r=this,a=this.props,s=a.prefixCls,l=a.className,c=a.closable,u=a.closeIcon,d=a.style,f=a.onClick,m=a.children,p=a.holder,g="".concat(s,"-notice"),v=Object.keys(this.props).reduce(function(I,h){return(h.substr(0,5)==="data-"||h.substr(0,5)==="aria-"||h==="role")&&(I[h]=r.props[h]),I},{}),C=jsxRuntime.jsxs("div",{...Object.assign({className:classnamesExports(g,l,_defineProperty$1({},"".concat(g,"-closable"),c)),style:d,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:f},v),children:[jsxRuntime.jsx("div",{className:"".concat(g,"-content"),children:m}),c?jsxRuntime.jsx("a",{tabIndex:0,onClick:this.close,className:"".concat(g,"-close"),children:u||jsxRuntime.jsx("span",{className:"".concat(g,"-close-x")})}):null]});return p?ReactDOM__default.default.createPortal(C,p):C}}]),t}(React.Component);Notice$1.defaultProps={onClose:function(){},duration:1.5};function useNotification$2(e){var n=React__namespace.useRef({}),t=React__namespace.useState([]),o=_slicedToArray(t,2),r=o[0],a=o[1];function s(l){e.add(l,function(c,u){var d=u.key;if(c&&!n.current[d]){var f=jsxRuntime.jsx(Notice$1,{...Object.assign({},u,{holder:c})});n.current[d]=f,a(function(m){return[].concat(_toConsumableArray(m),[f])})}})}return[s,jsxRuntime.jsx(jsxRuntime.Fragment,{children:r})]}var seed=0,now$3=Date.now();function getUuid(){var e=seed;return seed+=1,"rcNotification_".concat(now$3,"_").concat(e)}var Notification=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var o;return _classCallCheck(this,t),o=n.apply(this,arguments),o.state={notices:[]},o.hookRefs=new Map,o.add=function(r,a){var s=r.key||getUuid(),l=_objectSpread2$1(_objectSpread2$1({},r),{},{key:s}),c=o.props.maxCount;o.setState(function(u){var d=u.notices,f=d.map(function(p){return p.notice.key}).indexOf(s),m=d.concat();return f!==-1?m.splice(f,1,{notice:l,holderCallback:a}):(c&&d.length>=c&&(l.key=m[0].notice.key,l.updateMark=getUuid(),l.userPassKey=s,m.shift()),m.push({notice:l,holderCallback:a})),{notices:m}})},o.remove=function(r){o.setState(function(a){var s=a.notices;return{notices:s.filter(function(l){var c=l.notice,u=c.key,d=c.userPassKey,f=d||u;return f!==r})}})},o.noticePropsMap={},o}return _createClass(t,[{key:"getTransitionName",value:function(){var r=this.props,a=r.prefixCls,s=r.animation,l=this.props.transitionName;return!l&&s&&(l="".concat(a,"-").concat(s)),l}},{key:"render",value:function(){var r=this,a=this.state.notices,s=this.props,l=s.prefixCls,c=s.className,u=s.closeIcon,d=s.style,f=[];return a.forEach(function(m,p){var g=m.notice,v=m.holderCallback,C=p===a.length-1?g.updateMark:void 0,I=g.key,h=g.userPassKey,y=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({prefixCls:l,closeIcon:u},g),g.props),{},{key:I,noticeKey:h||I,updateMark:C,onClose:function(w){var O;r.remove(w),(O=g.onClose)===null||O===void 0||O.call(g)},onClick:g.onClick,children:g.content});f.push(I),r.noticePropsMap[I]={props:y,holderCallback:v}}),jsxRuntime.jsx("div",{className:classnamesExports(l,c),style:d,children:jsxRuntime.jsx(CSSMotionList,{keys:f,motionName:this.getTransitionName(),onVisibleChanged:function(p,g){var v=g.key;p||delete r.noticePropsMap[v]},children:function(m){var p=m.key,g=m.className,v=m.style,C=r.noticePropsMap[p],I=C.props,h=C.holderCallback;return h?jsxRuntime.jsx("div",{className:classnamesExports(g,"".concat(l,"-hook-holder")),style:_objectSpread2$1({},v),ref:function(x){typeof p>"u"||(x?(r.hookRefs.set(p,x),h(x,I)):r.hookRefs.delete(p))}},p):jsxRuntime.jsx(Notice$1,{...Object.assign({},I,{className:classnamesExports(g,I==null?void 0:I.className),style:_objectSpread2$1(_objectSpread2$1({},v),I==null?void 0:I.style)})})}})})}}]),t}(React.Component);Notification.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Notification.newInstance=function(n,t){var o=n||{},r=o.getContainer,a=_objectWithoutProperties(o,["getContainer"]),s=document.createElement("div");if(r){var l=r();l.appendChild(s)}else document.body.appendChild(s);var c=!1;function u(d){c||(c=!0,t({notice:function(m){d.add(m)},removeNotice:function(m){d.remove(m)},component:d,destroy:function(){ReactDOM__default.default.unmountComponentAtNode(s),s.parentNode&&s.parentNode.removeChild(s)},useNotification:function(){return useNotification$2(d)}}))}if(process.env.NODE_ENV==="test"&&n.TEST_RENDER){n.TEST_RENDER(jsxRuntime.jsx(Notification,{...Object.assign({},a,{ref:u})}));return}ReactDOM__default.default.render(jsxRuntime.jsx(Notification,{...Object.assign({},a,{ref:u})}),s)};const es$1=Object.freeze(Object.defineProperty({__proto__:null,default:Notification},Symbol.toStringTag,{value:"Module"})),require$$6$1=getAugmentedNamespace(es$1);var LoadingOutlined$2={exports:{}},LoadingOutlined$1={},LoadingOutlined={},hasRequiredLoadingOutlined$2;function requireLoadingOutlined$2(){if(hasRequiredLoadingOutlined$2)return LoadingOutlined;hasRequiredLoadingOutlined$2=1,Object.defineProperty(LoadingOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return LoadingOutlined.default=e,LoadingOutlined}var hasRequiredLoadingOutlined$1;function requireLoadingOutlined$1(){if(hasRequiredLoadingOutlined$1)return LoadingOutlined$1;hasRequiredLoadingOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(LoadingOutlined$1,"__esModule",{value:!0}),LoadingOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireLoadingOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="LoadingOutlined";var l=o.forwardRef(s);return LoadingOutlined$1.default=l,LoadingOutlined$1}var hasRequiredLoadingOutlined;function requireLoadingOutlined(){return hasRequiredLoadingOutlined||(hasRequiredLoadingOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireLoadingOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(LoadingOutlined$2,LoadingOutlined$2.exports)),LoadingOutlined$2.exports}var ExclamationCircleFilled$2={exports:{}},ExclamationCircleFilled$1={},ExclamationCircleFilled={},hasRequiredExclamationCircleFilled$2;function requireExclamationCircleFilled$2(){if(hasRequiredExclamationCircleFilled$2)return ExclamationCircleFilled;hasRequiredExclamationCircleFilled$2=1,Object.defineProperty(ExclamationCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return ExclamationCircleFilled.default=e,ExclamationCircleFilled}var hasRequiredExclamationCircleFilled$1;function requireExclamationCircleFilled$1(){if(hasRequiredExclamationCircleFilled$1)return ExclamationCircleFilled$1;hasRequiredExclamationCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleFilled$1,"__esModule",{value:!0}),ExclamationCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireExclamationCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="ExclamationCircleFilled";var l=o.forwardRef(s);return ExclamationCircleFilled$1.default=l,ExclamationCircleFilled$1}var hasRequiredExclamationCircleFilled;function requireExclamationCircleFilled(){return hasRequiredExclamationCircleFilled||(hasRequiredExclamationCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireExclamationCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(ExclamationCircleFilled$2,ExclamationCircleFilled$2.exports)),ExclamationCircleFilled$2.exports}var CheckCircleFilled$2={exports:{}},CheckCircleFilled$1={},CheckCircleFilled={},hasRequiredCheckCircleFilled$2;function requireCheckCircleFilled$2(){if(hasRequiredCheckCircleFilled$2)return CheckCircleFilled;hasRequiredCheckCircleFilled$2=1,Object.defineProperty(CheckCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return CheckCircleFilled.default=e,CheckCircleFilled}var hasRequiredCheckCircleFilled$1;function requireCheckCircleFilled$1(){if(hasRequiredCheckCircleFilled$1)return CheckCircleFilled$1;hasRequiredCheckCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CheckCircleFilled$1,"__esModule",{value:!0}),CheckCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCheckCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CheckCircleFilled";var l=o.forwardRef(s);return CheckCircleFilled$1.default=l,CheckCircleFilled$1}var hasRequiredCheckCircleFilled;function requireCheckCircleFilled(){return hasRequiredCheckCircleFilled||(hasRequiredCheckCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCheckCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CheckCircleFilled$2,CheckCircleFilled$2.exports)),CheckCircleFilled$2.exports}var InfoCircleFilled$2={exports:{}},InfoCircleFilled$1={},InfoCircleFilled={},hasRequiredInfoCircleFilled$2;function requireInfoCircleFilled$2(){if(hasRequiredInfoCircleFilled$2)return InfoCircleFilled;hasRequiredInfoCircleFilled$2=1,Object.defineProperty(InfoCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return InfoCircleFilled.default=e,InfoCircleFilled}var hasRequiredInfoCircleFilled$1;function requireInfoCircleFilled$1(){if(hasRequiredInfoCircleFilled$1)return InfoCircleFilled$1;hasRequiredInfoCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(InfoCircleFilled$1,"__esModule",{value:!0}),InfoCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireInfoCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="InfoCircleFilled";var l=o.forwardRef(s);return InfoCircleFilled$1.default=l,InfoCircleFilled$1}var hasRequiredInfoCircleFilled;function requireInfoCircleFilled(){return hasRequiredInfoCircleFilled||(hasRequiredInfoCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireInfoCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(InfoCircleFilled$2,InfoCircleFilled$2.exports)),InfoCircleFilled$2.exports}var useMessage={},useNotification$1={},Notice={},hasRequiredNotice;function requireNotice(){if(hasRequiredNotice)return Notice;hasRequiredNotice=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(Notice,"__esModule",{value:!0}),Notice.default=void 0;var t=n(requireDefineProperty()),o=n(requireClassCallCheck()),r=n(requireCreateClass()),a=n(requireInherits()),s=n(requireCreateSuper()),l=e(React__default.default),c=n(ReactDOM__default.default),u=n(requireClassnames()),d=function(f){(0,a.default)(p,f);var m=(0,s.default)(p);function p(){var g;return(0,o.default)(this,p),g=m.apply(this,arguments),g.closeTimer=null,g.close=function(v){v&&v.stopPropagation(),g.clearCloseTimer();var C=g.props,I=C.onClose,h=C.noticeKey;I&&I(h)},g.startCloseTimer=function(){g.props.duration&&(g.closeTimer=window.setTimeout(function(){g.close()},g.props.duration*1e3))},g.clearCloseTimer=function(){g.closeTimer&&(clearTimeout(g.closeTimer),g.closeTimer=null)},g}return(0,r.default)(p,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(v){(this.props.duration!==v.duration||this.props.updateMark!==v.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var v=this,C=this.props,I=C.prefixCls,h=C.className,y=C.closable,x=C.closeIcon,w=C.style,O=C.onClick,F=C.children,b=C.holder,S="".concat(I,"-notice"),T=Object.keys(this.props).reduce(function(L,D){return(D.substr(0,5)==="data-"||D.substr(0,5)==="aria-"||D==="role")&&(L[D]=v.props[D]),L},{}),k=l.createElement("div",Object.assign({className:(0,u.default)(S,h,(0,t.default)({},"".concat(S,"-closable"),y)),style:w,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:O},T),l.createElement("div",{className:"".concat(S,"-content")},F),y?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(S,"-close")},x||l.createElement("span",{className:"".concat(S,"-close-x")})):null);return b?c.default.createPortal(k,b):k}}]),p}(l.Component);return Notice.default=d,d.defaultProps={onClose:function(){},duration:1.5},Notice}var hasRequiredUseNotification$1;function requireUseNotification$1(){if(hasRequiredUseNotification$1)return useNotification$1;hasRequiredUseNotification$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(useNotification$1,"__esModule",{value:!0}),useNotification$1.default=s;var t=n(requireToConsumableArray()),o=n(requireSlicedToArray()),r=e(React__default.default),a=n(requireNotice());function s(l){var c=r.useRef({}),u=r.useState([]),d=(0,o.default)(u,2),f=d[0],m=d[1];function p(g){l.add(g,function(v,C){var I=C.key;if(v&&!c.current[I]){var h=r.createElement(a.default,Object.assign({},C,{holder:v}));c.current[I]=h,m(function(y){return[].concat((0,t.default)(y),[h])})}})}return[p,r.createElement(r.Fragment,null,f)]}return useNotification$1}var hasRequiredUseMessage;function requireUseMessage(){return hasRequiredUseMessage||(hasRequiredUseMessage=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var o=t(require_extends()),r=t(requireSlicedToArray()),a=n(React__default.default),s=t(requireUseNotification$1()),l=requireConfigProvider(),c=requireMessage();function u(d,f){var m=function(){var g,v=null,C={add:function(b,S){v==null||v.component.add(b,S)}},I=(0,s.default)(C),h=(0,r.default)(I,2),y=h[0],x=h[1];function w(F){var b=F.prefixCls,S=g("message",b),T=F.key||(0,c.getKeyThenIncreaseKey)(),k=new Promise(function(D){var P=function(){return typeof F.onClose=="function"&&F.onClose(),D(!0)};d((0,o.default)((0,o.default)({},F),{prefixCls:S}),function(M){var q=M.prefixCls,U=M.instance;v=U,y(f((0,o.default)((0,o.default)({},F),{key:T,onClose:P}),q))})}),L=function(){v&&v.removeNotice(T)};return L.then=function(D,P){return k.then(D,P)},L.promise=k,L}var O=a.useRef({});return O.current.open=w,["success","info","warning","error","loading"].forEach(function(F){return(0,c.attachTypeApi)(O.current,F)}),[O.current,a.createElement(l.ConfigConsumer,{key:"holder"},function(F){return g=F.getPrefixCls,x})]};return m}}(useMessage)),useMessage}var hasRequiredMessage;function requireMessage(){return hasRequiredMessage||(hasRequiredMessage=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyThenIncreaseKey=F,e.attachTypeApi=M,e.default=e.getInstance=void 0;var o=t(require_extends()),r=t(requireDefineProperty()),a=n(React__default.default),s=t(requireClassnames()),l=t(require$$6$1),c=t(requireLoadingOutlined()),u=t(requireExclamationCircleFilled()),d=t(requireCloseCircleFilled()),f=t(requireCheckCircleFilled()),m=t(requireInfoCircleFilled()),p=t(requireUseMessage()),g,v=3,C,I=1,h="ant-message",y="move-up",x,w,O=!1;function F(){return I++}function b(B){B.top!==void 0&&(C=B.top,g=null),B.duration!==void 0&&(v=B.duration),B.prefixCls!==void 0&&(h=B.prefixCls),B.getContainer!==void 0&&(x=B.getContainer),B.transitionName!==void 0&&(y=B.transitionName,g=null),B.maxCount!==void 0&&(w=B.maxCount,g=null),B.rtl!==void 0&&(O=B.rtl)}function S(B,V){var G=B.prefixCls||h;if(g){V({prefixCls:G,instance:g});return}l.default.newInstance({prefixCls:G,transitionName:y,style:{top:C},getContainer:x,maxCount:w},function(Y){if(g){V({prefixCls:G,instance:g});return}g=Y,V({prefixCls:G,instance:Y})})}var T={info:m.default,success:f.default,error:d.default,warning:u.default,loading:c.default};function k(B,V){var G,Y=B.duration!==void 0?B.duration:v,H=T[B.type],K=(0,s.default)("".concat(V,"-custom-content"),(G={},(0,r.default)(G,"".concat(V,"-").concat(B.type),B.type),(0,r.default)(G,"".concat(V,"-rtl"),O===!0),G));return{key:B.key,duration:Y,style:B.style||{},className:B.className,content:a.createElement("div",{className:K},B.icon||H&&a.createElement(H,null),a.createElement("span",null,B.content)),onClose:B.onClose,onClick:B.onClick}}function L(B){var V=B.key||I++,G=new Promise(function(H){var K=function(){return typeof B.onClose=="function"&&B.onClose(),H(!0)};S(B,function(N){var W=N.prefixCls,j=N.instance;j.notice(k((0,o.default)((0,o.default)({},B),{key:V,onClose:K}),W))})}),Y=function(){g&&g.removeNotice(V)};return Y.then=function(H,K){return G.then(H,K)},Y.promise=G,Y}function D(B){return Object.prototype.toString.call(B)==="[object Object]"&&!!B.content}var P={open:L,config:b,destroy:function(V){if(g)if(V){var G=g,Y=G.removeNotice;Y(V)}else{var H=g,K=H.destroy;K(),g=null}}};function M(B,V){B[V]=function(G,Y,H){return D(G)?B.open((0,o.default)((0,o.default)({},G),{type:V})):(typeof Y=="function"&&(H=Y,Y=void 0),B.open({content:G,duration:Y,type:V,onClose:H}))}}["success","info","warning","error","loading"].forEach(function(B){return M(P,B)}),P.warn=P.warning,P.useMessage=(0,p.default)(S,k);var q=function(){return process.env.NODE_ENV==="test"?g:null};e.getInstance=q;var U=P;e.default=U}(message)),message}var notification={},CloseOutlined$2={exports:{}},CloseOutlined$1={},CloseOutlined={},hasRequiredCloseOutlined$2;function requireCloseOutlined$2(){if(hasRequiredCloseOutlined$2)return CloseOutlined;hasRequiredCloseOutlined$2=1,Object.defineProperty(CloseOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};return CloseOutlined.default=e,CloseOutlined}var hasRequiredCloseOutlined$1;function requireCloseOutlined$1(){if(hasRequiredCloseOutlined$1)return CloseOutlined$1;hasRequiredCloseOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CloseOutlined$1,"__esModule",{value:!0}),CloseOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCloseOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CloseOutlined";var l=o.forwardRef(s);return CloseOutlined$1.default=l,CloseOutlined$1}var hasRequiredCloseOutlined;function requireCloseOutlined(){return hasRequiredCloseOutlined||(hasRequiredCloseOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCloseOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CloseOutlined$2,CloseOutlined$2.exports)),CloseOutlined$2.exports}var CheckCircleOutlined$2={exports:{}},CheckCircleOutlined$1={},CheckCircleOutlined={},hasRequiredCheckCircleOutlined$2;function requireCheckCircleOutlined$2(){if(hasRequiredCheckCircleOutlined$2)return CheckCircleOutlined;hasRequiredCheckCircleOutlined$2=1,Object.defineProperty(CheckCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return CheckCircleOutlined.default=e,CheckCircleOutlined}var hasRequiredCheckCircleOutlined$1;function requireCheckCircleOutlined$1(){if(hasRequiredCheckCircleOutlined$1)return CheckCircleOutlined$1;hasRequiredCheckCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CheckCircleOutlined$1,"__esModule",{value:!0}),CheckCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCheckCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CheckCircleOutlined";var l=o.forwardRef(s);return CheckCircleOutlined$1.default=l,CheckCircleOutlined$1}var hasRequiredCheckCircleOutlined;function requireCheckCircleOutlined(){return hasRequiredCheckCircleOutlined||(hasRequiredCheckCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCheckCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CheckCircleOutlined$2,CheckCircleOutlined$2.exports)),CheckCircleOutlined$2.exports}var CloseCircleOutlined$2={exports:{}},CloseCircleOutlined$1={},CloseCircleOutlined={},hasRequiredCloseCircleOutlined$2;function requireCloseCircleOutlined$2(){if(hasRequiredCloseCircleOutlined$2)return CloseCircleOutlined;hasRequiredCloseCircleOutlined$2=1,Object.defineProperty(CloseCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};return CloseCircleOutlined.default=e,CloseCircleOutlined}var hasRequiredCloseCircleOutlined$1;function requireCloseCircleOutlined$1(){if(hasRequiredCloseCircleOutlined$1)return CloseCircleOutlined$1;hasRequiredCloseCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CloseCircleOutlined$1,"__esModule",{value:!0}),CloseCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCloseCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CloseCircleOutlined";var l=o.forwardRef(s);return CloseCircleOutlined$1.default=l,CloseCircleOutlined$1}var hasRequiredCloseCircleOutlined;function requireCloseCircleOutlined(){return hasRequiredCloseCircleOutlined||(hasRequiredCloseCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCloseCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CloseCircleOutlined$2,CloseCircleOutlined$2.exports)),CloseCircleOutlined$2.exports}var ExclamationCircleOutlined$2={exports:{}},ExclamationCircleOutlined$1={},ExclamationCircleOutlined={},hasRequiredExclamationCircleOutlined$2;function requireExclamationCircleOutlined$2(){if(hasRequiredExclamationCircleOutlined$2)return ExclamationCircleOutlined;hasRequiredExclamationCircleOutlined$2=1,Object.defineProperty(ExclamationCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};return ExclamationCircleOutlined.default=e,ExclamationCircleOutlined}var hasRequiredExclamationCircleOutlined$1;function requireExclamationCircleOutlined$1(){if(hasRequiredExclamationCircleOutlined$1)return ExclamationCircleOutlined$1;hasRequiredExclamationCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleOutlined$1,"__esModule",{value:!0}),ExclamationCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireExclamationCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="ExclamationCircleOutlined";var l=o.forwardRef(s);return ExclamationCircleOutlined$1.default=l,ExclamationCircleOutlined$1}var hasRequiredExclamationCircleOutlined;function requireExclamationCircleOutlined(){return hasRequiredExclamationCircleOutlined||(hasRequiredExclamationCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireExclamationCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(ExclamationCircleOutlined$2,ExclamationCircleOutlined$2.exports)),ExclamationCircleOutlined$2.exports}var InfoCircleOutlined$2={exports:{}},InfoCircleOutlined$1={},InfoCircleOutlined={},hasRequiredInfoCircleOutlined$2;function requireInfoCircleOutlined$2(){if(hasRequiredInfoCircleOutlined$2)return InfoCircleOutlined;hasRequiredInfoCircleOutlined$2=1,Object.defineProperty(InfoCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return InfoCircleOutlined.default=e,InfoCircleOutlined}var hasRequiredInfoCircleOutlined$1;function requireInfoCircleOutlined$1(){if(hasRequiredInfoCircleOutlined$1)return InfoCircleOutlined$1;hasRequiredInfoCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(InfoCircleOutlined$1,"__esModule",{value:!0}),InfoCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireInfoCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="InfoCircleOutlined";var l=o.forwardRef(s);return InfoCircleOutlined$1.default=l,InfoCircleOutlined$1}var hasRequiredInfoCircleOutlined;function requireInfoCircleOutlined(){return hasRequiredInfoCircleOutlined||(hasRequiredInfoCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireInfoCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(InfoCircleOutlined$2,InfoCircleOutlined$2.exports)),InfoCircleOutlined$2.exports}var useNotification={},hasRequiredUseNotification;function requireUseNotification(){return hasRequiredUseNotification||(hasRequiredUseNotification=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var o=t(require_extends()),r=t(requireSlicedToArray()),a=n(React__default.default),s=t(requireUseNotification$1()),l=requireConfigProvider();function c(u,d){var f=function(){var p,g=null,v={add:function(F,b){g==null||g.component.add(F,b)}},C=(0,s.default)(v),I=(0,r.default)(C,2),h=I[0],y=I[1];function x(O){var F=O.prefixCls,b=p("notification",F);u((0,o.default)((0,o.default)({},O),{prefixCls:b}),function(S){var T=S.prefixCls,k=S.instance;g=k,h(d(O,T))})}var w=a.useRef({});return w.current.open=x,["success","info","warning","error"].forEach(function(O){w.current[O]=function(F){return w.current.open((0,o.default)((0,o.default)({},F),{type:O}))}}),[w.current,a.createElement(l.ConfigConsumer,{key:"holder"},function(O){return p=O.getPrefixCls,y})]};return f}}(useNotification)),useNotification}var hasRequiredNotification;function requireNotification(){return hasRequiredNotification||(hasRequiredNotification=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.getInstance=void 0;var o=t(requireRegenerator()),r=t(require_extends()),a=t(requireDefineProperty()),s=n(React__default.default),l=t(require$$6$1),c=t(requireCloseOutlined()),u=t(requireClassnames()),d=t(requireCheckCircleOutlined()),f=t(requireCloseCircleOutlined()),m=t(requireExclamationCircleOutlined()),p=t(requireInfoCircleOutlined()),g=t(requireUseNotification()),v=function(B,V,G,Y){function H(K){return K instanceof G?K:new G(function(N){N(K)})}return new(G||(G=Promise))(function(K,N){function W($){try{A(Y.next($))}catch(Z){N(Z)}}function j($){try{A(Y.throw($))}catch(Z){N(Z)}}function A($){$.done?K($.value):H($.value).then(W,j)}A((Y=Y.apply(B,V||[])).next())})},C={},I=4.5,h=24,y=24,x="ant-notification",w="topRight",O,F,b=!1;function S(B){var V=B.duration,G=B.placement,Y=B.bottom,H=B.top,K=B.getContainer,N=B.closeIcon,W=B.prefixCls;W!==void 0&&(x=W),V!==void 0&&(I=V),G!==void 0?w=G:B.rtl&&(w="topLeft"),Y!==void 0&&(y=Y),H!==void 0&&(h=H),K!==void 0&&(O=K),N!==void 0&&(F=N),B.rtl!==void 0&&(b=B.rtl)}function T(B){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y,Y;switch(B){case"topLeft":Y={left:0,top:V,bottom:"auto"};break;case"topRight":Y={right:0,top:V,bottom:"auto"};break;case"bottomLeft":Y={left:0,top:"auto",bottom:G};break;default:Y={right:0,top:"auto",bottom:G};break}return Y}function k(B,V){var G=B.placement,Y=G===void 0?w:G,H=B.top,K=B.bottom,N=B.getContainer,W=N===void 0?O:N,j=B.closeIcon,A=j===void 0?F:j,$=B.prefixCls||x,Z="".concat($,"-notice"),Q="".concat($,"-").concat(Y),E=C[Q];if(E){Promise.resolve(E).then(function(X){V({prefixCls:Z,instance:X})});return}var _=s.createElement("span",{className:"".concat($,"-close-x")},A||s.createElement(c.default,{className:"".concat($,"-close-icon")})),z=(0,u.default)("".concat($,"-").concat(Y),(0,a.default)({},"".concat($,"-rtl"),b===!0));C[Q]=new Promise(function(X){l.default.newInstance({prefixCls:$,className:z,style:T(Y,H,K),getContainer:W,closeIcon:_},function(ne){X(ne),V({prefixCls:Z,instance:ne})})})}var L={success:d.default,info:p.default,error:f.default,warning:m.default};function D(B,V){var G=B.duration===void 0?I:B.duration,Y=null;B.icon?Y=s.createElement("span",{className:"".concat(V,"-icon")},B.icon):B.type&&(Y=s.createElement(L[B.type]||null,{className:"".concat(V,"-icon ").concat(V,"-icon-").concat(B.type)}));var H=!B.description&&Y?s.createElement("span",{className:"".concat(V,"-message-single-line-auto-margin")}):null;return{content:s.createElement("div",{className:Y?"".concat(V,"-with-icon"):"",role:"alert"},Y,s.createElement("div",{className:"".concat(V,"-message")},H,B.message),s.createElement("div",{className:"".concat(V,"-description")},B.description),B.btn?s.createElement("span",{className:"".concat(V,"-btn")},B.btn):null),duration:G,closable:!0,onClose:B.onClose,onClick:B.onClick,key:B.key,style:B.style||{},className:B.className}}function P(B){k(B,function(V){var G=V.prefixCls,Y=V.instance;Y.notice(D(B,G))})}var M={open:P,close:function(V){Object.keys(C).forEach(function(G){return Promise.resolve(C[G]).then(function(Y){Y.removeNotice(V)})})},config:S,destroy:function(){Object.keys(C).forEach(function(V){Promise.resolve(C[V]).then(function(G){G.destroy()}),delete C[V]})}};["success","info","warning","error"].forEach(function(B){M[B]=function(V){return M.open((0,r.default)((0,r.default)({},V),{type:B}))}}),M.warn=M.warning,M.useNotification=(0,g.default)(k,D);var q=function(V){return v(void 0,void 0,void 0,o.default.mark(function G(){return o.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.abrupt("return",process.env.NODE_ENV==="test"?C[V]:null);case 1:case"end":return H.stop()}},G)}))};e.getInstance=q;var U=M;e.default=U}(notification)),notification}var hasRequiredConfigProvider;function requireConfigProvider(){return hasRequiredConfigProvider||(hasRequiredConfigProvider=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return d.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return d.ConfigContext}}),e.default=e.configConsumerProps=void 0;var o=t(require_extends()),r=n(React__default.default),a=t(requireContext$2()),s=require$$5,l=t(requireUseMemo()),c=n(requireLocaleProvider()),u=t(requireLocaleReceiver()),d=requireContext(),f=n(requireSizeContext()),m=t(requireMessage()),p=t(requireNotification()),g=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];e.configConsumerProps=g;var v=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"],C=function(x){var w=x.children,O=x.csp,F=x.autoInsertSpaceInButton,b=x.form,S=x.locale,T=x.componentSize,k=x.direction,L=x.space,D=x.virtual,P=x.dropdownMatchSelectWidth,M=x.legacyLocale,q=x.parentContext,U=x.iconPrefixCls,B=r.useCallback(function(N,W){var j=x.prefixCls;if(W)return W;var A=j||q.getPrefixCls("");return N?"".concat(A,"-").concat(N):A},[q.getPrefixCls]),V=(0,o.default)((0,o.default)({},q),{csp:O,autoInsertSpaceInButton:F,locale:S||M,direction:k,space:L,virtual:D,dropdownMatchSelectWidth:P,getPrefixCls:B});v.forEach(function(N){var W=x[N];W&&(V[N]=W)});var G=(0,l.default)(function(){return V},V,function(N,W){var j=Object.keys(N),A=Object.keys(W);return j.length!==A.length||j.some(function($){return N[$]!==W[$]})}),Y=r.useMemo(function(){return{prefixCls:U}},[U]),H=w,K={};return S&&S.Form&&S.Form.defaultValidateMessages&&(K=S.Form.defaultValidateMessages),b&&b.validateMessages&&(K=(0,o.default)((0,o.default)({},K),b.validateMessages)),Object.keys(K).length>0&&(H=r.createElement(s.FormProvider,{validateMessages:K},w)),S&&(H=r.createElement(c.default,{locale:S,_ANT_MARK__:c.ANT_MARK},H)),U&&(H=r.createElement(a.default.Provider,{value:Y},H)),T&&(H=r.createElement(f.SizeContextProvider,{size:T},H)),r.createElement(d.ConfigContext.Provider,{value:G},H)},I=function(x){return r.useEffect(function(){x.direction&&(m.default.config({rtl:x.direction==="rtl"}),p.default.config({rtl:x.direction==="rtl"}))},[x.direction]),r.createElement(u.default,null,function(w,O,F){return r.createElement(d.ConfigConsumer,null,function(b){return r.createElement(C,(0,o.default)({parentContext:b,legacyLocale:F},x))})})};I.ConfigContext=d.ConfigContext,I.SizeContext=f.default;var h=I;e.default=h}(configProvider)),configProvider}var hasRequiredInput;function requireInput(){return hasRequiredInput||(hasRequiredInput=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.fixControlledValue=C,e.resolveOnChange=I,e.getInputClassName=h,e.triggerFocus=y,e.default=void 0;var o=t(require_extends()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=t(requireDefineProperty()),u=n(React__default.default),d=t(requireClassnames()),f=t(requireOmit()),m=n(requireClearableLabeledInput()),p=requireConfigProvider(),g=t(requireSizeContext()),v=t(requireDevWarning());function C(O){return typeof O>"u"||O===null?"":O}function I(O,F,b){if(b){var S=F;if(F.type==="click"){S=Object.create(F),S.target=O,S.currentTarget=O;var T=O.value;O.value="",b(S),O.value=T;return}b(S)}}function h(O,F,b,S,T){var k;return(0,d.default)(O,(k={},(0,c.default)(k,"".concat(O,"-sm"),b==="small"),(0,c.default)(k,"".concat(O,"-lg"),b==="large"),(0,c.default)(k,"".concat(O,"-disabled"),S),(0,c.default)(k,"".concat(O,"-rtl"),T==="rtl"),(0,c.default)(k,"".concat(O,"-borderless"),!F),k))}function y(O,F){if(!!O){O.focus(F);var b=F||{},S=b.cursor;if(S){var T=O.value.length;switch(S){case"start":O.setSelectionRange(0,0);break;case"end":O.setSelectionRange(T,T);break;default:O.setSelectionRange(0,T)}}}}var x=function(O){(0,s.default)(b,O);var F=(0,l.default)(b);function b(S){var T;(0,r.default)(this,b),T=F.call(this,S),T.direction="ltr",T.focus=function(L){y(T.input,L)},T.saveClearableInput=function(L){T.clearableInput=L},T.saveInput=function(L){T.input=L},T.onFocus=function(L){var D=T.props.onFocus;T.setState({focused:!0},T.clearPasswordValueAttribute),D&&D(L)},T.onBlur=function(L){var D=T.props.onBlur;T.setState({focused:!1},T.clearPasswordValueAttribute),D&&D(L)},T.handleReset=function(L){T.setValue("",function(){T.focus()}),I(T.input,L,T.props.onChange)},T.renderInput=function(L,D,P){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},q=T.props,U=q.className,B=q.addonBefore,V=q.addonAfter,G=q.size,Y=q.disabled,H=(0,f.default)(T.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return u.createElement("input",(0,o.default)({autoComplete:M.autoComplete},H,{onChange:T.handleChange,onFocus:T.onFocus,onBlur:T.onBlur,onKeyDown:T.handleKeyDown,className:(0,d.default)(h(L,P,G||D,Y,T.direction),(0,c.default)({},U,U&&!B&&!V)),ref:T.saveInput}))},T.clearPasswordValueAttribute=function(){T.removePasswordTimeout=setTimeout(function(){T.input&&T.input.getAttribute("type")==="password"&&T.input.hasAttribute("value")&&T.input.removeAttribute("value")})},T.handleChange=function(L){T.setValue(L.target.value,T.clearPasswordValueAttribute),I(T.input,L,T.props.onChange)},T.handleKeyDown=function(L){var D=T.props,P=D.onPressEnter,M=D.onKeyDown;L.keyCode===13&&P&&P(L),M&&M(L)},T.renderComponent=function(L){var D=L.getPrefixCls,P=L.direction,M=L.input,q=T.state,U=q.value,B=q.focused,V=T.props,G=V.prefixCls,Y=V.bordered,H=Y===void 0?!0:Y,K=D("input",G);return T.direction=P,u.createElement(g.default.Consumer,null,function(N){return u.createElement(m.default,(0,o.default)({size:N},T.props,{prefixCls:K,inputType:"input",value:C(U),element:T.renderInput(K,N,H,M),handleReset:T.handleReset,ref:T.saveClearableInput,direction:P,focused:B,triggerFocus:T.focus,bordered:H}))})};var k=typeof S.value>"u"?S.defaultValue:S.value;return T.state={value:k,focused:!1,prevValue:S.value},T}return(0,a.default)(b,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(T){return(0,m.hasPrefixSuffix)(T)!==(0,m.hasPrefixSuffix)(this.props)&&(0,v.default)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(T,k,L){this.input.setSelectionRange(T,k,L)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(T,k){this.props.value===void 0?this.setState({value:T},k):k==null||k()}},{key:"render",value:function(){return u.createElement(p.ConfigConsumer,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(T,k){var L=k.prevValue,D={prevValue:T.value};return(T.value!==void 0||L!==T.value)&&(D.value=T.value),D}}]),b}(u.Component);x.defaultProps={type:"text"};var w=x;e.default=w}(Input)),Input}var reactNode={},hasRequiredReactNode;function requireReactNode(){if(hasRequiredReactNode)return reactNode;hasRequiredReactNode=1;var e=interopRequireWildcard.exports;Object.defineProperty(reactNode,"__esModule",{value:!0}),reactNode.replaceElement=o,reactNode.cloneElement=r,reactNode.isValidElement=void 0;var n=e(React__default.default),t=n.isValidElement;reactNode.isValidElement=t;function o(a,s,l){return t(a)?n.cloneElement(a,typeof l=="function"?l(a.props||{}):l):s}function r(a,s){return o(a,a,s)}return reactNode}var hasRequiredClearableLabeledInput;function requireClearableLabeledInput(){return hasRequiredClearableLabeledInput||(hasRequiredClearableLabeledInput=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.hasPrefixSuffix=v,e.default=void 0;var o=t(requireDefineProperty()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=n(React__default.default),u=t(requireClassnames()),d=t(requireCloseCircleFilled()),f=requireType(),m=requireInput(),p=requireReactNode(),g=(0,f.tuple)("text","input");function v(y){return!!(y.prefix||y.suffix||y.allowClear)}function C(y){return!!(y.addonBefore||y.addonAfter)}var I=function(y){(0,s.default)(w,y);var x=(0,l.default)(w);function w(){var O;return(0,r.default)(this,w),O=x.apply(this,arguments),O.containerRef=c.createRef(),O.onInputMouseUp=function(F){var b;if(!((b=O.containerRef.current)===null||b===void 0)&&b.contains(F.target)){var S=O.props.triggerFocus;S==null||S()}},O}return(0,a.default)(w,[{key:"renderClearIcon",value:function(F){var b=this.props,S=b.allowClear,T=b.value,k=b.disabled,L=b.readOnly,D=b.handleReset;if(!S)return null;var P=!k&&!L&&T,M="".concat(F,"-clear-icon");return c.createElement(d.default,{onClick:D,className:(0,u.default)((0,o.default)({},"".concat(M,"-hidden"),!P),M),role:"button"})}},{key:"renderSuffix",value:function(F){var b=this.props,S=b.suffix,T=b.allowClear;return S||T?c.createElement("span",{className:"".concat(F,"-suffix")},this.renderClearIcon(F),S):null}},{key:"renderLabeledIcon",value:function(F,b){var S,T=this.props,k=T.focused,L=T.value,D=T.prefix,P=T.className,M=T.size,q=T.suffix,U=T.disabled,B=T.allowClear,V=T.direction,G=T.style,Y=T.readOnly,H=T.bordered,K=this.renderSuffix(F);if(!v(this.props))return(0,p.cloneElement)(b,{value:L});var N=D?c.createElement("span",{className:"".concat(F,"-prefix")},D):null,W=(0,u.default)("".concat(F,"-affix-wrapper"),(S={},(0,o.default)(S,"".concat(F,"-affix-wrapper-focused"),k),(0,o.default)(S,"".concat(F,"-affix-wrapper-disabled"),U),(0,o.default)(S,"".concat(F,"-affix-wrapper-sm"),M==="small"),(0,o.default)(S,"".concat(F,"-affix-wrapper-lg"),M==="large"),(0,o.default)(S,"".concat(F,"-affix-wrapper-input-with-clear-btn"),q&&B&&L),(0,o.default)(S,"".concat(F,"-affix-wrapper-rtl"),V==="rtl"),(0,o.default)(S,"".concat(F,"-affix-wrapper-readonly"),Y),(0,o.default)(S,"".concat(F,"-affix-wrapper-borderless"),!H),(0,o.default)(S,"".concat(P),!C(this.props)&&P),S));return c.createElement("span",{ref:this.containerRef,className:W,style:G,onMouseUp:this.onInputMouseUp},N,(0,p.cloneElement)(b,{style:null,value:L,className:(0,m.getInputClassName)(F,H,M,U)}),K)}},{key:"renderInputWithLabel",value:function(F,b){var S,T=this.props,k=T.addonBefore,L=T.addonAfter,D=T.style,P=T.size,M=T.className,q=T.direction;if(!C(this.props))return b;var U="".concat(F,"-group"),B="".concat(U,"-addon"),V=k?c.createElement("span",{className:B},k):null,G=L?c.createElement("span",{className:B},L):null,Y=(0,u.default)("".concat(F,"-wrapper"),U,(0,o.default)({},"".concat(U,"-rtl"),q==="rtl")),H=(0,u.default)("".concat(F,"-group-wrapper"),(S={},(0,o.default)(S,"".concat(F,"-group-wrapper-sm"),P==="small"),(0,o.default)(S,"".concat(F,"-group-wrapper-lg"),P==="large"),(0,o.default)(S,"".concat(F,"-group-wrapper-rtl"),q==="rtl"),S),M);return c.createElement("span",{className:H,style:D},c.createElement("span",{className:Y},V,(0,p.cloneElement)(b,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(F,b){var S,T=this.props,k=T.value,L=T.allowClear,D=T.className,P=T.style,M=T.direction,q=T.bordered;if(!L)return(0,p.cloneElement)(b,{value:k});var U=(0,u.default)("".concat(F,"-affix-wrapper"),"".concat(F,"-affix-wrapper-textarea-with-clear-btn"),(S={},(0,o.default)(S,"".concat(F,"-affix-wrapper-rtl"),M==="rtl"),(0,o.default)(S,"".concat(F,"-affix-wrapper-borderless"),!q),(0,o.default)(S,"".concat(D),!C(this.props)&&D),S));return c.createElement("span",{className:U,style:P},(0,p.cloneElement)(b,{style:null,value:k}),this.renderClearIcon(F))}},{key:"render",value:function(){var F=this.props,b=F.prefixCls,S=F.inputType,T=F.element;return S===g[0]?this.renderTextAreaWithClearIcon(b,T):this.renderInputWithLabel(b,this.renderLabeledIcon(b,T))}}]),w}(c.Component),h=I;e.default=h}(ClearableLabeledInput)),ClearableLabeledInput}(function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(_typeof$2.exports),r=t(requireToConsumableArray()),a=t(require_extends()),s=t(requireDefineProperty()),l=t(requireSlicedToArray()),c=n(React__default.default),u=t(require$$8),d=t(requireOmit()),f=t(requireClassnames()),m=t(requireUseMergedState()),p=t(requireClearableLabeledInput()),g=requireConfigProvider(),v=requireInput(),C=t(requireSizeContext()),I=function(x,w){var O={};for(var F in x)Object.prototype.hasOwnProperty.call(x,F)&&w.indexOf(F)<0&&(O[F]=x[F]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,F=Object.getOwnPropertySymbols(x);b<F.length;b++)w.indexOf(F[b])<0&&Object.prototype.propertyIsEnumerable.call(x,F[b])&&(O[F[b]]=x[F[b]]);return O},h=c.forwardRef(function(x,w){var O,F=x.prefixCls,b=x.bordered,S=b===void 0?!0:b,T=x.showCount,k=T===void 0?!1:T,L=x.maxLength,D=x.className,P=x.style,M=x.size,q=I(x,["prefixCls","bordered","showCount","maxLength","className","style","size"]),U=c.useContext(g.ConfigContext),B=U.getPrefixCls,V=U.direction,G=c.useContext(C.default),Y=c.useRef(null),H=c.useRef(null),K=(0,m.default)(q.defaultValue,{value:q.value}),N=(0,l.default)(K,2),W=N[0],j=N[1],A=c.useRef(q.value);c.useEffect(function(){(q.value!==void 0||A.current!==q.value)&&(j(q.value),A.current=q.value)},[q.value,A.current]);var $=function(ie,ce){q.value===void 0&&(j(ie),ce==null||ce())},Z=function(ie){$(ie.target.value),(0,v.resolveOnChange)(Y.current,ie,q.onChange)},Q=function(ie){$("",function(){var ce;(ce=Y.current)===null||ce===void 0||ce.focus()}),(0,v.resolveOnChange)(Y.current,ie,q.onChange)},E=B("input",F);c.useImperativeHandle(w,function(){var se;return{resizableTextArea:(se=Y.current)===null||se===void 0?void 0:se.resizableTextArea,focus:function(ce){var pe,ve;(0,v.triggerFocus)((ve=(pe=Y.current)===null||pe===void 0?void 0:pe.resizableTextArea)===null||ve===void 0?void 0:ve.textArea,ce)},blur:function(){var ce;return(ce=Y.current)===null||ce===void 0?void 0:ce.blur()}}});var _=c.createElement(u.default,(0,a.default)({},(0,d.default)(q,["allowClear"]),{maxLength:L,className:(0,f.default)((O={},(0,s.default)(O,"".concat(E,"-borderless"),!S),(0,s.default)(O,D,D&&!k),(0,s.default)(O,"".concat(E,"-sm"),G==="small"||M==="small"),(0,s.default)(O,"".concat(E,"-lg"),G==="large"||M==="large"),O)),style:k?void 0:P,prefixCls:E,onChange:Z,ref:Y})),z=(0,v.fixControlledValue)(W),X=Number(L)>0;z=X?(0,r.default)(z).slice(0,L).join(""):z;var ne=c.createElement(p.default,(0,a.default)({},q,{prefixCls:E,direction:V,inputType:"text",value:z,element:_,handleReset:Q,ref:H,bordered:S}));if(k){var ee=Math.min(z.length,L!=null?L:1/0),oe="";return(0,o.default)(k)==="object"?oe=k.formatter({count:ee,maxLength:L}):oe="".concat(ee).concat(X?" / ".concat(L):""),c.createElement("div",{className:(0,f.default)("".concat(E,"-textarea"),(0,s.default)({},"".concat(E,"-textarea-rtl"),V==="rtl"),"".concat(E,"-textarea-show-count"),D),style:P,"data-count":oe},ne)}return ne}),y=h;e.default=y})(TextArea$3);const TextArea$1=getDefaultExportFromCjs(TextArea$3),{error:error$2,warning:warning$1}=antd.Modal,showDialog$8=e=>{let n,t,o;if(typeof e=="string"&&e.indexOf(" -- ")!==-1&&e.indexOf(`
85
+ `;utils$1.iconStyles=C;var I=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,x=(0,a.useContext)(c.default),w=x.csp;(0,a.useEffect)(function(){(0,l.updateCSS)(y,"@ant-design-icons",{prepend:!0,csp:w})},[])};return utils$1.useInsertStyles=I,utils$1}var hasRequiredIconBase;function requireIconBase(){if(hasRequiredIconBase)return IconBase;hasRequiredIconBase=1;var e=interopRequireDefault.exports;Object.defineProperty(IconBase,"__esModule",{value:!0}),IconBase.default=void 0;var n=e(requireObjectWithoutProperties()),t=e(requireObjectSpread2()),o=requireUtils(),r=["icon","className","onClick","style","primaryColor","secondaryColor"],a={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function s(d){var f=d.primaryColor,m=d.secondaryColor;a.primaryColor=f,a.secondaryColor=m||(0,o.getSecondaryColor)(f),a.calculated=!!m}function l(){return(0,t.default)({},a)}var c=function(f){var m=f.icon,p=f.className,h=f.onClick,v=f.style,C=f.primaryColor,I=f.secondaryColor,g=(0,n.default)(f,r),y=a;if(C&&(y={primaryColor:C,secondaryColor:I||(0,o.getSecondaryColor)(C)}),(0,o.useInsertStyles)(),(0,o.warning)((0,o.isIconDefinition)(m),"icon should be icon definiton, but got ".concat(m)),!(0,o.isIconDefinition)(m))return null;var x=m;return x&&typeof x.icon=="function"&&(x=(0,t.default)((0,t.default)({},x),{},{icon:x.icon(y.primaryColor,y.secondaryColor)})),(0,o.generate)(x.icon,"svg-".concat(x.name),(0,t.default)({className:p,onClick:h,style:v,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g))};c.displayName="IconReact",c.getTwoToneColors=l,c.setTwoToneColors=s;var u=c;return IconBase.default=u,IconBase}var twoTonePrimaryColor={},hasRequiredTwoTonePrimaryColor;function requireTwoTonePrimaryColor(){if(hasRequiredTwoTonePrimaryColor)return twoTonePrimaryColor;hasRequiredTwoTonePrimaryColor=1;var e=interopRequireDefault.exports;Object.defineProperty(twoTonePrimaryColor,"__esModule",{value:!0}),twoTonePrimaryColor.setTwoToneColor=r,twoTonePrimaryColor.getTwoToneColor=a;var n=e(requireSlicedToArray()),t=e(requireIconBase()),o=requireUtils();function r(s){var l=(0,o.normalizeTwoToneColors)(s),c=(0,n.default)(l,2),u=c[0],d=c[1];return t.default.setTwoToneColors({primaryColor:u,secondaryColor:d})}function a(){var s=t.default.getTwoToneColors();return s.calculated?[s.primaryColor,s.secondaryColor]:s.primaryColor}return twoTonePrimaryColor}var hasRequiredAntdIcon;function requireAntdIcon(){if(hasRequiredAntdIcon)return AntdIcon;hasRequiredAntdIcon=1;var e=interopRequireDefault.exports,n=interopRequireWildcard.exports;Object.defineProperty(AntdIcon,"__esModule",{value:!0}),AntdIcon.default=void 0;var t=e(requireObjectSpread2()),o=e(requireSlicedToArray()),r=e(requireDefineProperty()),a=e(requireObjectWithoutProperties()),s=n(React__default.default),l=e(requireClassnames()),c=e(requireContext$2()),u=e(requireIconBase()),d=requireTwoTonePrimaryColor(),f=requireUtils(),m=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,d.setTwoToneColor)("#1890ff");var p=s.forwardRef(function(v,C){var I,g=v.className,y=v.icon,x=v.spin,w=v.rotate,O=v.tabIndex,F=v.onClick,b=v.twoToneColor,_=(0,a.default)(v,m),T=s.useContext(c.default),k=T.prefixCls,N=k===void 0?"anticon":k,D=(0,l.default)(N,(I={},(0,r.default)(I,"".concat(N,"-").concat(y.name),!!y.name),(0,r.default)(I,"".concat(N,"-spin"),!!x||y.name==="loading"),I),g),P=O;P===void 0&&F&&(P=-1);var j=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,$=(0,f.normalizeTwoToneColors)(b),q=(0,o.default)($,2),B=q[0],H=q[1];return s.createElement("span",(0,t.default)((0,t.default)({role:"img","aria-label":y.name},_),{},{ref:C,tabIndex:P,onClick:F,className:D}),s.createElement(u.default,{icon:y,primaryColor:B,secondaryColor:H,style:j}))});p.displayName="AntdIcon",p.getTwoToneColor=d.getTwoToneColor,p.setTwoToneColor=d.setTwoToneColor;var h=p;return AntdIcon.default=h,AntdIcon}var hasRequiredCloseCircleFilled$1;function requireCloseCircleFilled$1(){if(hasRequiredCloseCircleFilled$1)return CloseCircleFilled$1;hasRequiredCloseCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CloseCircleFilled$1,"__esModule",{value:!0}),CloseCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCloseCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CloseCircleFilled";var l=o.forwardRef(s);return CloseCircleFilled$1.default=l,CloseCircleFilled$1}var hasRequiredCloseCircleFilled;function requireCloseCircleFilled(){return hasRequiredCloseCircleFilled||(hasRequiredCloseCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCloseCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CloseCircleFilled$2,CloseCircleFilled$2.exports)),CloseCircleFilled$2.exports}var type$2={},hasRequiredType;function requireType(){if(hasRequiredType)return type$2;hasRequiredType=1,Object.defineProperty(type$2,"__esModule",{value:!0}),type$2.tupleNum=type$2.tuple=void 0;var e=function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return r};type$2.tuple=e;var n=function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return r};return type$2.tupleNum=n,type$2}var Input={},configProvider={};function _objectWithoutPropertiesLoose(e,n){if(e==null)return{};var t={},o=Object.keys(e),r,a;for(a=0;a<o.length;a++)r=o[a],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}function _objectWithoutProperties(e,n){if(e==null)return{};var t=_objectWithoutPropertiesLoose(e,n),o,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],!(n.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(t[o]=e[o]))}return t}function _arrayLikeToArray(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,n){if(!!e){if(typeof e=="string")return _arrayLikeToArray(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,n)}}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context=React__namespace.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,setCallbacks:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc}}});function toArray$2(e){return e==null?[]:Array.isArray(e)?e:[e]}var regeneratorRuntime$1={exports:{}},hasRequiredRegeneratorRuntime;function requireRegeneratorRuntime(){return hasRequiredRegeneratorRuntime||(hasRequiredRegeneratorRuntime=1,function(e){var n=_typeof$2.exports.default;function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=t=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var o={},r=Object.prototype,a=r.hasOwnProperty,s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(D,P,j){return Object.defineProperty(D,P,{value:j,enumerable:!0,configurable:!0,writable:!0}),D[P]}try{d({},"")}catch{d=function(j,$,q){return j[$]=q}}function f(D,P,j,$){var q=P&&P.prototype instanceof h?P:h,B=Object.create(q.prototype),H=new T($||[]);return B._invoke=function(G,Y,W){var Z="suspendedStart";return function(L,V){if(Z==="executing")throw new Error("Generator is already running");if(Z==="completed"){if(L==="throw")throw V;return N()}for(W.method=L,W.arg=V;;){var M=W.delegate;if(M){var A=F(M,W);if(A){if(A===p)continue;return A}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(Z==="suspendedStart")throw Z="completed",W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);Z="executing";var U=m(G,Y,W);if(U.type==="normal"){if(Z=W.done?"completed":"suspendedYield",U.arg===p)continue;return{value:U.arg,done:W.done}}U.type==="throw"&&(Z="completed",W.method="throw",W.arg=U.arg)}}}(D,j,H),B}function m(D,P,j){try{return{type:"normal",arg:D.call(P,j)}}catch($){return{type:"throw",arg:$}}}o.wrap=f;var p={};function h(){}function v(){}function C(){}var I={};d(I,l,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==r&&a.call(y,l)&&(I=y);var x=C.prototype=h.prototype=Object.create(I);function w(D){["next","throw","return"].forEach(function(P){d(D,P,function(j){return this._invoke(P,j)})})}function O(D,P){function j(q,B,H,G){var Y=m(D[q],D,B);if(Y.type!=="throw"){var W=Y.arg,Z=W.value;return Z&&n(Z)=="object"&&a.call(Z,"__await")?P.resolve(Z.__await).then(function(L){j("next",L,H,G)},function(L){j("throw",L,H,G)}):P.resolve(Z).then(function(L){W.value=L,H(W)},function(L){return j("throw",L,H,G)})}G(Y.arg)}var $;this._invoke=function(q,B){function H(){return new P(function(G,Y){j(q,B,G,Y)})}return $=$?$.then(H,H):H()}}function F(D,P){var j=D.iterator[P.method];if(j===void 0){if(P.delegate=null,P.method==="throw"){if(D.iterator.return&&(P.method="return",P.arg=void 0,F(D,P),P.method==="throw"))return p;P.method="throw",P.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var $=m(j,D.iterator,P.arg);if($.type==="throw")return P.method="throw",P.arg=$.arg,P.delegate=null,p;var q=$.arg;return q?q.done?(P[D.resultName]=q.value,P.next=D.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,p):q:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,p)}function b(D){var P={tryLoc:D[0]};1 in D&&(P.catchLoc=D[1]),2 in D&&(P.finallyLoc=D[2],P.afterLoc=D[3]),this.tryEntries.push(P)}function _(D){var P=D.completion||{};P.type="normal",delete P.arg,D.completion=P}function T(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(b,this),this.reset(!0)}function k(D){if(D){var P=D[l];if(P)return P.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var j=-1,$=function q(){for(;++j<D.length;)if(a.call(D,j))return q.value=D[j],q.done=!1,q;return q.value=void 0,q.done=!0,q};return $.next=$}}return{next:N}}function N(){return{value:void 0,done:!0}}return v.prototype=C,d(x,"constructor",C),d(C,"constructor",v),v.displayName=d(C,u,"GeneratorFunction"),o.isGeneratorFunction=function(D){var P=typeof D=="function"&&D.constructor;return!!P&&(P===v||(P.displayName||P.name)==="GeneratorFunction")},o.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,C):(D.__proto__=C,d(D,u,"GeneratorFunction")),D.prototype=Object.create(x),D},o.awrap=function(D){return{__await:D}},w(O.prototype),d(O.prototype,c,function(){return this}),o.AsyncIterator=O,o.async=function(D,P,j,$,q){q===void 0&&(q=Promise);var B=new O(f(D,P,j,$),q);return o.isGeneratorFunction(P)?B:B.next().then(function(H){return H.done?H.value:B.next()})},w(x),d(x,u,"Generator"),d(x,l,function(){return this}),d(x,"toString",function(){return"[object Generator]"}),o.keys=function(D){var P=[];for(var j in D)P.push(j);return P.reverse(),function $(){for(;P.length;){var q=P.pop();if(q in D)return $.value=q,$.done=!1,$}return $.done=!0,$}},o.values=k,T.prototype={constructor:T,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!P)for(var j in this)j.charAt(0)==="t"&&a.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=void 0)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var j=this;function $(W,Z){return H.type="throw",H.arg=P,j.next=W,Z&&(j.method="next",j.arg=void 0),!!Z}for(var q=this.tryEntries.length-1;q>=0;--q){var B=this.tryEntries[q],H=B.completion;if(B.tryLoc==="root")return $("end");if(B.tryLoc<=this.prev){var G=a.call(B,"catchLoc"),Y=a.call(B,"finallyLoc");if(G&&Y){if(this.prev<B.catchLoc)return $(B.catchLoc,!0);if(this.prev<B.finallyLoc)return $(B.finallyLoc)}else if(G){if(this.prev<B.catchLoc)return $(B.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return $(B.finallyLoc)}}}},abrupt:function(P,j){for(var $=this.tryEntries.length-1;$>=0;--$){var q=this.tryEntries[$];if(q.tryLoc<=this.prev&&a.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var B=q;break}}B&&(P==="break"||P==="continue")&&B.tryLoc<=j&&j<=B.finallyLoc&&(B=null);var H=B?B.completion:{};return H.type=P,H.arg=j,B?(this.method="next",this.next=B.finallyLoc,p):this.complete(H)},complete:function(P,j){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&j&&(this.next=j),p},finish:function(P){for(var j=this.tryEntries.length-1;j>=0;--j){var $=this.tryEntries[j];if($.finallyLoc===P)return this.complete($.completion,$.afterLoc),_($),p}},catch:function(P){for(var j=this.tryEntries.length-1;j>=0;--j){var $=this.tryEntries[j];if($.tryLoc===P){var q=$.completion;if(q.type==="throw"){var B=q.arg;_($)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(P,j,$){return this.delegate={iterator:k(P),resultName:j,nextLoc:$},this.method==="next"&&(this.arg=void 0),p}},o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(regeneratorRuntime$1)),regeneratorRuntime$1.exports}var regenerator,hasRequiredRegenerator;function requireRegenerator(){if(hasRequiredRegenerator)return regenerator;hasRequiredRegenerator=1;var e=requireRegeneratorRuntime()();regenerator=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return regenerator}var regeneratorExports=requireRegenerator();function asyncGeneratorStep(e,n,t,o,r,a,s){try{var l=e[a](s),c=l.value}catch(u){t(u);return}l.done?n(c):Promise.resolve(c).then(o,r)}function _asyncToGenerator(e){return function(){var n=this,t=arguments;return new Promise(function(o,r){var a=e.apply(n,t);function s(c){asyncGeneratorStep(a,o,r,s,l,"next",c)}function l(c){asyncGeneratorStep(a,o,r,s,l,"throw",c)}s(void 0)})}}function _extends(){return _extends=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},_extends.apply(this,arguments)}function _inheritsLoose$1(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf||function(o,r){return o.__proto__=r,o},_setPrototypeOf(e,n)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(e,n,t){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(r,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(r,l),u=new c;return s&&_setPrototypeOf(u,s.prototype),u},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var n=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(o){if(o===null||!_isNativeFunction(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(o))return n.get(o);n.set(o,r)}function r(){return _construct(o,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,o)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning$3=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning$3=function(n,t){typeof console<"u"&&console.warn&&t.every(function(o){return typeof o=="string"})&&console.warn(n,t)});function convertFieldsError(e){if(!e||!e.length)return null;var n={};return e.forEach(function(t){var o=t.field;n[o]=n[o]||[],n[o].push(t)}),n}function format$1(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o=1,r=n[0],a=n.length;if(typeof r=="function")return r.apply(null,n.slice(1));if(typeof r=="string"){var s=String(r).replace(formatRegExp,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return s}return r}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(n)&&typeof e=="string"&&!e)}function asyncParallelArray(e,n,t){var o=[],r=0,a=e.length;function s(l){o.push.apply(o,l),r++,r===a&&t(o)}e.forEach(function(l){n(l,s)})}function asyncSerialArray(e,n,t){var o=0,r=e.length;function a(s){if(s&&s.length){t(s);return}var l=o;o=o+1,l<r?n(e[l],a):t([])}a([])}function flattenObjArr(e){var n=[];return Object.keys(e).forEach(function(t){n.push.apply(n,e[t])}),n}var AsyncValidationError=function(e){_inheritsLoose$1(n,e);function n(t,o){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=o,r}return n}(_wrapNativeSuper(Error));function asyncMap(e,n,t,o){if(n.first){var r=new Promise(function(f,m){var p=function(C){return o(C),C.length?m(new AsyncValidationError(C,convertFieldsError(C))):f()},h=flattenObjArr(e);asyncSerialArray(h,t,p)});return r.catch(function(f){return f}),r}var a=n.firstFields||[];a===!0&&(a=Object.keys(e));var s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,m){var p=function(v){if(u.push.apply(u,v),c++,c===l)return o(u),u.length?m(new AsyncValidationError(u,convertFieldsError(u))):f()};s.length||(o(u),f()),s.forEach(function(h){var v=e[h];a.indexOf(h)!==-1?asyncSerialArray(v,t,p):asyncParallelArray(v,t,p)})});return d.catch(function(f){return f}),d}function complementError(e){return function(n){return n&&n.message?(n.field=n.field||e.fullField,n):{message:typeof n=="function"?n():n,field:n.field||e.fullField}}}function deepMerge(e,n){if(n){for(var t in n)if(n.hasOwnProperty(t)){var o=n[t];typeof o=="object"&&typeof e[t]=="object"?e[t]=_extends(_extends({},e[t]),o):e[t]=o}}return e}function required(e,n,t,o,r,a){e.required&&(!t.hasOwnProperty(e.field)||isEmptyValue(n,a||e.type))&&o.push(format$1(r.messages.required,e.fullField))}function whitespace(e,n,t,o,r){(/^\s+$/.test(n)||n==="")&&o.push(format$1(r.messages.whitespace,e.fullField))}var pattern={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$2={integer:function(n){return types$2.number(n)&&parseInt(n,10)===n},float:function(n){return types$2.number(n)&&!types$2.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return typeof n=="object"&&!types$2.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&!!n.match(pattern.email)&&n.length<255},url:function(n){return typeof n=="string"&&!!n.match(pattern.url)},hex:function(n){return typeof n=="string"&&!!n.match(pattern.hex)}};function type(e,n,t,o,r){if(e.required&&n===void 0){required(e,n,t,o,r);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?types$2[s](n)||o.push(format$1(r.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&o.push(format$1(r.messages.types[s],e.fullField,e.type))}function range(e,n,t,o,r){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",m=typeof n=="string",p=Array.isArray(n);if(f?d="number":m?d="string":p&&(d="array"),!d)return!1;p&&(u=n.length),m&&(u=n.replace(c,"_").length),a?u!==e.len&&o.push(format$1(r.messages[d].len,e.fullField,e.len)):s&&!l&&u<e.min?o.push(format$1(r.messages[d].min,e.fullField,e.min)):l&&!s&&u>e.max?o.push(format$1(r.messages[d].max,e.fullField,e.max)):s&&l&&(u<e.min||u>e.max)&&o.push(format$1(r.messages[d].range,e.fullField,e.min,e.max))}var ENUM="enum";function enumerable(e,n,t,o,r){e[ENUM]=Array.isArray(e[ENUM])?e[ENUM]:[],e[ENUM].indexOf(n)===-1&&o.push(format$1(r.messages[ENUM],e.fullField,e[ENUM].join(", ")))}function pattern$1(e,n,t,o,r){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||o.push(format$1(r.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||o.push(format$1(r.messages.pattern.mismatch,e.fullField,n,e.pattern))}}}var rules={required,whitespace,type,range,enum:enumerable,pattern:pattern$1};function string(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n,"string")&&!e.required)return t();rules.required(e,n,o,a,r,"string"),isEmptyValue(n,"string")||(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r),rules.pattern(e,n,o,a,r),e.whitespace===!0&&rules.whitespace(e,n,o,a,r))}t(a)}function method(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules.type(e,n,o,a,r)}t(a)}function number(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function _boolean(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules.type(e,n,o,a,r)}t(a)}function regexp(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),isEmptyValue(n)||rules.type(e,n,o,a,r)}t(a)}function integer(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function floatFn(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function array(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return t();rules.required(e,n,o,a,r,"array"),n!=null&&(rules.type(e,n,o,a,r),rules.range(e,n,o,a,r))}t(a)}function object(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules.type(e,n,o,a,r)}t(a)}var ENUM$1="enum";function enumerable$1(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r),n!==void 0&&rules[ENUM$1](e,n,o,a,r)}t(a)}function pattern$2(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n,"string")&&!e.required)return t();rules.required(e,n,o,a,r),isEmptyValue(n,"string")||rules.pattern(e,n,o,a,r)}t(a)}function date(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n,"date")&&!e.required)return t();if(rules.required(e,n,o,a,r),!isEmptyValue(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),rules.type(e,l,o,a,r),l&&rules.range(e,l.getTime(),o,a,r)}}t(a)}function required$1(e,n,t,o,r){var a=[],s=Array.isArray(n)?"array":typeof n;rules.required(e,n,o,a,r,s),t(a)}function type$1(e,n,t,o,r){var a=e.type,s=[],l=e.required||!e.required&&o.hasOwnProperty(e.field);if(l){if(isEmptyValue(n,a)&&!e.required)return t();rules.required(e,n,o,s,r,a),isEmptyValue(n,a)||rules.type(e,n,o,s,r)}t(s)}function any(e,n,t,o,r){var a=[],s=e.required||!e.required&&o.hasOwnProperty(e.field);if(s){if(isEmptyValue(n)&&!e.required)return t();rules.required(e,n,o,a,r)}t(a)}var validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable$1,pattern:pattern$2,date,url:type$1,hex:type$1,email:type$1,required:required$1,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var messages=newMessages();function Schema(e){this.rules=null,this._messages=messages,this.define(e)}Schema.prototype={messages:function(n){return n&&(this._messages=deepMerge(newMessages(),n)),this._messages},define:function(n){if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={};var t,o;for(t in n)n.hasOwnProperty(t)&&(o=n[t],this.rules[t]=Array.isArray(o)?o:[o])},validate:function(n,t,o){var r=this;t===void 0&&(t={}),o===void 0&&(o=function(){});var a=n,s=t,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function c(v){var C,I=[],g={};function y(x){if(Array.isArray(x)){var w;I=(w=I).concat.apply(w,x)}else I.push(x)}for(C=0;C<v.length;C++)y(v[C]);I.length?g=convertFieldsError(I):(I=null,g=null),l(I,g)}if(s.messages){var u=this.messages();u===messages&&(u=newMessages()),deepMerge(u,s.messages),s.messages=u}else s.messages=this.messages();var d,f,m={},p=s.keys||Object.keys(this.rules);p.forEach(function(v){d=r.rules[v],f=a[v],d.forEach(function(C){var I=C;typeof I.transform=="function"&&(a===n&&(a=_extends({},a)),f=a[v]=I.transform(f)),typeof I=="function"?I={validator:I}:I=_extends({},I),I.validator=r.getValidationMethod(I),I.field=v,I.fullField=I.fullField||v,I.type=r.getType(I),I.validator&&(m[v]=m[v]||[],m[v].push({rule:I,value:f,source:a,field:v}))})});var h={};return asyncMap(m,s,function(v,C){var I=v.rule,g=(I.type==="object"||I.type==="array")&&(typeof I.fields=="object"||typeof I.defaultField=="object");g=g&&(I.required||!I.required&&v.value),I.field=v.field;function y(O,F){return _extends(_extends({},F),{},{fullField:I.fullField+"."+O})}function x(O){O===void 0&&(O=[]);var F=O;if(Array.isArray(F)||(F=[F]),!s.suppressWarning&&F.length&&Schema.warning("async-validator:",F),F.length&&I.message!==void 0&&(F=[].concat(I.message)),F=F.map(complementError(I)),s.first&&F.length)return h[I.field]=1,C(F);if(!g)C(F);else{if(I.required&&!v.value)return I.message!==void 0?F=[].concat(I.message).map(complementError(I)):s.error&&(F=[s.error(I,format$1(s.messages.required,I.field))]),C(F);var b={};if(I.defaultField)for(var _ in v.value)v.value.hasOwnProperty(_)&&(b[_]=I.defaultField);b=_extends(_extends({},b),v.rule.fields);for(var T in b)if(b.hasOwnProperty(T)){var k=Array.isArray(b[T])?b[T]:[b[T]];b[T]=k.map(y.bind(null,T))}var N=new Schema(b);N.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),N.validate(v.value,v.rule.options||s,function(D){var P=[];F&&F.length&&P.push.apply(P,F),D&&D.length&&P.push.apply(P,D),C(P.length?P:null)})}}var w;I.asyncValidator?w=I.asyncValidator(I,v.value,x,v.source,s):I.validator&&(w=I.validator(I,v.value,x,v.source,s),w===!0?x():w===!1?x(I.message||I.field+" fails"):w instanceof Array?x(w):w instanceof Error&&x(w.message)),w&&w.then&&w.then(function(){return x()},function(O){return x(O)})},function(v){c(v)})},getType:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!validators.hasOwnProperty(n.type))throw new Error(format$1("Unknown rule type %s",n.type));return n.type||"string"},getValidationMethod:function(n){if(typeof n.validator=="function")return n.validator;var t=Object.keys(n),o=t.indexOf("message");return o!==-1&&t.splice(o,1),t.length===1&&t[0]==="required"?validators.required:validators[this.getType(n)]||!1}},Schema.register=function(n,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[n]=t},Schema.warning=warning$3,Schema.messages=messages,Schema.validators=validators;function get$3(e,n){for(var t=e,o=0;o<n.length;o+=1){if(t==null)return;t=t[n[o]]}return t}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function ownKeys$1(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys$1(Object(t),!0).forEach(function(o){_defineProperty$1(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function internalSet(e,n,t,o){if(!n.length)return t;var r=_toArray(n),a=r[0],s=r.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=_toConsumableArray(e):l=_objectSpread({},e),o&&t===void 0&&s.length===1?delete l[a][s[0]]:l[a]=internalSet(l[a],s,t,o),l}function set$2(e,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&o&&t===void 0&&!get$3(e,n.slice(0,-1))?e:internalSet(e,n,t,o)}function getNamePath(e){return toArray$2(e)}function getValue(e,n){var t=get$3(e,n);return t}function setValue(e,n,t){var o=set$2(e,n,t);return o}function cloneByNamePathList(e,n){var t={};return n.forEach(function(o){var r=getValue(e,o);t=setValue(t,o,r)}),t}function containsNamePath(e,n){return e&&e.some(function(t){return matchNamePath(t,n)})}function isObject$4(e){return _typeof$1(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function internalSetValues(e,n){var t=Array.isArray(e)?_toConsumableArray(e):_objectSpread2$1({},e);return n&&Object.keys(n).forEach(function(o){var r=t[o],a=n[o],s=isObject$4(r)&&isObject$4(a);t[o]=s?internalSetValues(r,a||{}):a}),t}function setValues(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];return t.reduce(function(r,a){return internalSetValues(r,a)},e)}function matchNamePath(e,n){return!e||!n||e.length!==n.length?!1:e.every(function(t,o){return n[o]===t})}function isSimilar(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||_typeof$1(e)!=="object"||_typeof$1(n)!=="object")return!1;var t=Object.keys(e),o=Object.keys(n),r=new Set([].concat(_toConsumableArray(t),_toConsumableArray(o)));return _toConsumableArray(r).every(function(a){var s=e[a],l=n[a];return typeof s=="function"&&typeof l=="function"?!0:s===l})}function defaultGetValueFromEvent(e){var n=arguments.length<=1?void 0:arguments[1];return n&&n.target&&e in n.target?n.target[e]:n}function move(e,n,t){var o=e.length;if(n<0||n>=o||t<0||t>=o)return e;var r=e[n],a=n-t;return a>0?[].concat(_toConsumableArray(e.slice(0,t)),[r],_toConsumableArray(e.slice(t,n)),_toConsumableArray(e.slice(n+1,o))):a<0?[].concat(_toConsumableArray(e.slice(0,n)),_toConsumableArray(e.slice(n+1,t+1)),[r],_toConsumableArray(e.slice(t+1,o))):e}var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(e,n){return e.replace(/\$\{\w+\}/g,function(t){var o=t.slice(2,-1);return n[o]})}function convertMessages(e,n,t,o){var r=_objectSpread2$1(_objectSpread2$1({},t),{},{name:n,enum:(t.enum||[]).join(", ")}),a=function(c,u){return function(){return replaceMessage(c,_objectSpread2$1(_objectSpread2$1({},r),u))}};function s(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(l).forEach(function(u){var d=l[u];typeof d=="string"?c[u]=a(d,o):d&&_typeof$1(d)==="object"?(c[u]={},s(d,c[u])):c[u]=d}),c}return s(setValues({},defaultValidateMessages,e))}function validateRule(e,n,t,o,r){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(regeneratorExports.mark(function e(n,t,o,r,a){var s,l,c,u,d,f;return regeneratorExports.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return s=_objectSpread2$1({},o),l=null,s&&s.type==="array"&&s.defaultField&&(l=s.defaultField,delete s.defaultField),c=new AsyncValidator(_defineProperty$1({},n,[s])),u=convertMessages(r.validateMessages,n,s,a),c.messages(u),d=[],p.prev=7,p.next=10,Promise.resolve(c.validate(_defineProperty$1({},n,t),_objectSpread2$1({},r)));case 10:p.next=15;break;case 12:p.prev=12,p.t0=p.catch(7),p.t0.errors?d=p.t0.errors.map(function(h,v){var C=h.message;return React__namespace.isValidElement(C)?React__namespace.cloneElement(C,{key:"error_".concat(v)}):C}):(console.error(p.t0),d=[u.default()]);case 15:if(!(!d.length&&l)){p.next=20;break}return p.next=18,Promise.all(t.map(function(h,v){return validateRule("".concat(n,".").concat(v),h,l,r,a)}));case 18:return f=p.sent,p.abrupt("return",f.reduce(function(h,v){return[].concat(_toConsumableArray(h),_toConsumableArray(v))},[]));case 20:return p.abrupt("return",d);case 21:case"end":return p.stop()}},e,null,[[7,12]])})),_validateRule.apply(this,arguments)}function validateRules(e,n,t,o,r,a){var s=e.join("."),l=t.map(function(d){var f=d.validator;return f?_objectSpread2$1(_objectSpread2$1({},d),{},{validator:function(p,h,v){var C=!1,I=function(){for(var x=arguments.length,w=new Array(x),O=0;O<x;O++)w[O]=arguments[O];Promise.resolve().then(function(){warningOnce(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||v.apply(void 0,w)})},g=f(p,h,I);C=g&&typeof g.then=="function"&&typeof g.catch=="function",warningOnce(C,"`callback` is deprecated. Please return a promise instead."),C&&g.then(function(){v()}).catch(function(y){v(y||" ")})}}):d}),c;if(r===!0)c=new Promise(function(){var d=_asyncToGenerator(regeneratorExports.mark(function f(m,p){var h,v;return regeneratorExports.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:h=0;case 1:if(!(h<l.length)){I.next=11;break}return I.next=4,validateRule(s,n,l[h],o,a);case 4:if(v=I.sent,!v.length){I.next=8;break}return p(v),I.abrupt("return");case 8:h+=1,I.next=1;break;case 11:m([]);case 12:case"end":return I.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return validateRule(s,n,d,o,a)});c=(r?finishOnFirstFailed(u):finishOnAllFailed(u)).then(function(d){return d.length?Promise.reject(d):[]})}return c.catch(function(d){return d}),c}function finishOnAllFailed(e){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(regeneratorExports.mark(function e(n){return regeneratorExports.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(n).then(function(r){var a,s=(a=[]).concat.apply(a,_toConsumableArray(r));return s}));case 1:case"end":return o.stop()}},e)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(e){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(regeneratorExports.mark(function e(n){var t;return regeneratorExports.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return t=0,r.abrupt("return",new Promise(function(a){n.forEach(function(s){s.then(function(l){l.length&&a(l),t+=1,t===n.length&&a([])})})}));case 2:case"end":return r.stop()}},e)})),_finishOnFirstFailed.apply(this,arguments)}function requireUpdate(e,n,t,o,r,a){return typeof e=="function"?e(n,t,"source"in a?{source:a.source}:{}):o!==r}var Field=function(e){_inherits(t,e);var n=_createSuper(t);function t(o){var r;if(_classCallCheck(this,t),r=n.call(this,o),r.state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],r.cancelRegister=function(){var c=r.props,u=c.preserve,d=c.isListField;r.cancelRegisterFunc&&r.cancelRegisterFunc(d,u),r.cancelRegisterFunc=null},r.getNamePath=function(){var c=r.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(_toConsumableArray(m),_toConsumableArray(u)):[]},r.getRules=function(){var c=r.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})},r.refresh=function(){!r.mounted||r.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})},r.onStoreChange=function(c,u,d){var f=r.props,m=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,v=f.onReset,C=d.store,I=r.getNamePath(),g=r.getValue(c),y=r.getValue(C),x=u&&containsNamePath(u,I);switch(d.type==="valueUpdate"&&d.source==="external"&&g!==y&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=[]),d.type){case"reset":if(!u||x){r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],v&&v(),r.refresh();return}break;case"setField":{if(x){var w=d.data;"touched"in w&&(r.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(r.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(r.errors=w.errors||[]),r.dirty=!0,r.reRender();return}if(m&&!I.length&&requireUpdate(m,c,C,g,y,d)){r.reRender();return}break}case"dependenciesUpdate":{var O=h.map(getNamePath);if(O.some(function(F){return containsNamePath(d.relatedFields,F)})){r.reRender();return}break}default:if(x||(!h.length||I.length||m)&&requireUpdate(m,c,C,g,y,d)){r.reRender();return}break}m===!0&&r.reRender()},r.validateRules=function(c){var u=r.getNamePath(),d=r.getValue(),f=Promise.resolve().then(function(){if(!r.mounted)return[];var m=r.props,p=m.validateFirst,h=p===void 0?!1:p,v=m.messageVariables,C=c||{},I=C.triggerName,g=r.getRules();I&&(g=g.filter(function(x){var w=x.validateTrigger;if(!w)return!0;var O=toArray$2(w);return O.includes(I)}));var y=validateRules(u,d,g,c,h,v);return y.catch(function(x){return x}).then(function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];r.validatePromise===f&&(r.validatePromise=null,r.errors=x,r.reRender())}),y});return r.validatePromise=f,r.dirty=!0,r.errors=[],r.reRender(),f},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return r.dirty},r.getErrors=function(){return r.errors},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){r.prevValidating=r.isFieldValidating();var c={touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,name:r.getNamePath()};return c},r.getOnlyChild=function(c){if(typeof c=="function"){var u=r.getMeta();return _objectSpread2$1(_objectSpread2$1({},r.getOnlyChild(c(r.getControlled(),u,r.props.fieldContext))),{},{isFunction:!0})}var d=toArray$3(c);return d.length!==1||!React__namespace.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}},r.getValue=function(c){var u=r.props.fieldContext.getFieldsValue,d=r.getNamePath();return getValue(c||u(!0),d)},r.getControlled=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=r.props,d=u.trigger,f=u.validateTrigger,m=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,v=u.getValueProps,C=u.fieldContext,I=f!==void 0?f:C.validateTrigger,g=r.getNamePath(),y=C.getInternalHooks,x=C.getFieldsValue,w=y(HOOK_MARK),O=w.dispatch,F=r.getValue(),b=v||function(N){return _defineProperty$1({},h,N)},_=c[d],T=_objectSpread2$1(_objectSpread2$1({},c),b(F));T[d]=function(){r.touched=!0,r.dirty=!0;for(var N,D=arguments.length,P=new Array(D),j=0;j<D;j++)P[j]=arguments[j];m?N=m.apply(void 0,P):N=defaultGetValueFromEvent.apply(void 0,[h].concat(P)),p&&(N=p(N,F,x(!0))),O({type:"updateValue",namePath:g,value:N}),_&&_.apply(void 0,P)};var k=toArray$2(I||[]);return k.forEach(function(N){var D=T[N];T[N]=function(){D&&D.apply(void 0,arguments);var P=r.props.rules;P&&P.length&&O({type:"validateField",namePath:g,triggerName:N})}}),T},o.fieldContext){var a=o.fieldContext.getInternalHooks,s=a(HOOK_MARK),l=s.initEntityValue;l(_assertThisInitialized(r))}return r}return _createClass(t,[{key:"componentDidMount",value:function(){var r=this.props,a=r.shouldUpdate,s=r.fieldContext;if(this.mounted=!0,s){var l=s.getInternalHooks,c=l(HOOK_MARK),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){this.state.resetCount;var r=this.props.children,a=this.getOnlyChild(r),s=a.child,l=a.isFunction,c;return l?c=s:React__namespace.isValidElement(s)?c=React__namespace.cloneElement(s,this.getControlled(s.props)):(warningOnce(!s,"`children` of Field is not validate ReactElement."),c=s),jsxRuntime.jsx(jsxRuntime.Fragment,{children:c})}}]),t}(React__namespace.Component);Field.contextType=Context,Field.defaultProps={trigger:"onChange",valuePropName:"value"};function WrapperField(e){var n=e.name,t=_objectWithoutProperties(e,["name"]),o=React__namespace.useContext(Context),r=n!==void 0?getNamePath(n):void 0,a="keep";return t.isListField||(a="_".concat((r||[]).join("_"))),process.env.NODE_ENV!=="production"&&warningOnce(t.preserve!==!1||!t.isListField,"`preserve` should not apply on Form.List fields."),jsxRuntime.jsx(Field,{name:r,...t,fieldContext:o},a)}var List=function(n){var t=n.name,o=n.initialValue,r=n.children,a=n.rules,s=n.validateTrigger,l=React__namespace.useContext(Context),c=React__namespace.useRef({keys:[],id:0}),u=c.current;if(typeof r!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var d=getNamePath(l.prefixName)||[],f=[].concat(_toConsumableArray(d),_toConsumableArray(getNamePath(t))),m=function(h,v,C){var I=C.source;return I==="internal"?!1:h!==v};return jsxRuntime.jsx(Context.Provider,{value:_objectSpread2$1(_objectSpread2$1({},l),{},{prefixName:f}),children:jsxRuntime.jsx(WrapperField,{name:[],shouldUpdate:m,rules:a,validateTrigger:s,initialValue:o,isList:!0,children:function(p,h){var v=p.value,C=v===void 0?[]:v,I=p.onChange,g=l.getFieldValue,y=function(){var F=g(f||[]);return F||[]},x={add:function(F,b){var _=y();b>=0&&b<=_.length?(u.keys=[].concat(_toConsumableArray(u.keys.slice(0,b)),[u.id],_toConsumableArray(u.keys.slice(b))),I([].concat(_toConsumableArray(_.slice(0,b)),[F],_toConsumableArray(_.slice(b))))):(process.env.NODE_ENV!=="production"&&(b<0||b>_.length)&&warningOnce(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(_toConsumableArray(u.keys),[u.id]),I([].concat(_toConsumableArray(_),[F]))),u.id+=1},remove:function(F){var b=y(),_=new Set(Array.isArray(F)?F:[F]);_.size<=0||(u.keys=u.keys.filter(function(T,k){return!_.has(k)}),I(b.filter(function(T,k){return!_.has(k)})))},move:function(F,b){if(F!==b){var _=y();F<0||F>=_.length||b<0||b>=_.length||(u.keys=move(u.keys,F,b),I(move(_,F,b)))}}},w=C||[];return Array.isArray(w)||(w=[],process.env.NODE_ENV!=="production"&&warningOnce(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(w.map(function(O,F){var b=u.keys[F];return b===void 0&&(u.keys[F]=u.id,b=u.keys[F],u.id+=1),{name:F,key:b,isListField:!0}}),x,h)}})})};function _iterableToArrayLimit(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,a=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(o.push(s.value),!(n&&o.length===n));r=!0);}catch(c){a=!0,l=c}finally{try{!r&&t.return!=null&&t.return()}finally{if(a)throw l}}return o}}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function allPromiseFinish(e){var n=!1,t=e.length,o=[];return e.length?new Promise(function(r,a){e.forEach(function(s,l){s.catch(function(c){return n=!0,c}).then(function(c){t-=1,o[l]=c,!(t>0)&&(n&&a(o),r(o))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize(e){return e.map(function(n){return"".concat(_typeof$1(n),":").concat(n)}).join(SPLIT)}var NameMap=function(){function e(){_classCallCheck(this,e),this.kvs=new Map}return _createClass(e,[{key:"set",value:function(t,o){this.kvs.set(normalize(t),o)}},{key:"get",value:function(t){return this.kvs.get(normalize(t))}},{key:"update",value:function(t,o){var r=this.get(t),a=o(r);a?this.set(t,a):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(normalize(t))}},{key:"map",value:function(t){return _toConsumableArray(this.kvs.entries()).map(function(o){var r=_slicedToArray(o,2),a=r[0],s=r[1],l=a.split(SPLIT);return t({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=_slicedToArray(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:s})})}},{key:"toJSON",value:function(){var t={};return this.map(function(o){var r=o.key,a=o.value;return t[r.join(".")]=a,null}),t}}]),e}(),FormStore=function e(n){var t=this;_classCallCheck(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,getInternalHooks:t.getInternalHooks}},this.getInternalHooks=function(o){return o===HOOK_MARK?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(o){t.subscribable=o},this.setInitialValues=function(o,r){t.initialValues=o||{},r&&(t.store=setValues({},o,t.store))},this.getInitialValue=function(o){return getValue(t.initialValues,o)},this.setCallbacks=function(o){t.callbacks=o},this.setValidateMessages=function(o){t.validateMessages=o},this.setPreserve=function(o){t.preserve=o},this.timeoutId=null,this.warningUnhooked=function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=window.setTimeout(function(){t.timeoutId=null,t.formHooked||warningOnce(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))},this.getFieldEntities=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?t.fieldEntities.filter(function(r){return r.getNamePath().length}):t.fieldEntities},this.getFieldsMap=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=new NameMap;return t.getFieldEntities(o).forEach(function(a){var s=a.getNamePath();r.set(s,a)}),r},this.getFieldEntitiesForNamePathList=function(o){if(!o)return t.getFieldEntities(!0);var r=t.getFieldsMap(!0);return o.map(function(a){var s=getNamePath(a);return r.get(s)||{INVALIDATE_NAME_PATH:getNamePath(a)}})},this.getFieldsValue=function(o,r){if(t.warningUnhooked(),o===!0&&!r)return t.store;var a=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach(function(l){var c,u="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(!(!o&&((c=l.isListField)===null||c===void 0?void 0:c.call(l))))if(!r)s.push(u);else{var d="getMeta"in l?l.getMeta():null;r(d)&&s.push(u)}}),cloneByNamePathList(t.store,s.map(getNamePath))},this.getFieldValue=function(o){t.warningUnhooked();var r=getNamePath(o);return getValue(t.store,r)},this.getFieldsError=function(o){t.warningUnhooked();var r=t.getFieldEntitiesForNamePathList(o);return r.map(function(a,s){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors()}:{name:getNamePath(o[s]),errors:[]}})},this.getFieldError=function(o){t.warningUnhooked();var r=getNamePath(o),a=t.getFieldsError([r])[0];return a.errors},this.isFieldsTouched=function(){t.warningUnhooked();for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];var s=r[0],l=r[1],c,u=!1;r.length===0?c=null:r.length===1?Array.isArray(s)?(c=s.map(getNamePath),u=!1):(c=null,u=s):(c=s.map(getNamePath),u=l);var d=t.getFieldEntities(!0),f=function(C){return C.isFieldTouched()};if(!c)return u?d.every(f):d.some(f);var m=new NameMap;c.forEach(function(v){m.set(v,[])}),d.forEach(function(v){var C=v.getNamePath();c.forEach(function(I){I.every(function(g,y){return C[y]===g})&&m.update(I,function(g){return[].concat(_toConsumableArray(g),[v])})})});var p=function(C){return C.some(f)},h=m.map(function(v){var C=v.value;return C});return u?h.every(p):h.some(p)},this.isFieldTouched=function(o){return t.warningUnhooked(),t.isFieldsTouched([o])},this.isFieldsValidating=function(o){t.warningUnhooked();var r=t.getFieldEntities();if(!o)return r.some(function(s){return s.isFieldValidating()});var a=o.map(getNamePath);return r.some(function(s){var l=s.getNamePath();return containsNamePath(a,l)&&s.isFieldValidating()})},this.isFieldValidating=function(o){return t.warningUnhooked(),t.isFieldsValidating([o])},this.resetWithFieldInitialValue=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=new NameMap,a=t.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=r.get(d)||new Set;f.add({entity:c,value:u}),r.set(d,f)}});var s=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=t.getInitialValue(m);if(p!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=r.get(m);if(h&&h.size>1)warningOnce(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=t.getFieldValue(m);(!o.skipExist||v===void 0)&&(t.store=setValue(t.store,m,_toConsumableArray(h)[0].value))}}}})},l;o.entities?l=o.entities:o.namePathList?(l=[],o.namePathList.forEach(function(c){var u=r.get(c);if(u){var d;(d=l).push.apply(d,_toConsumableArray(_toConsumableArray(u).map(function(f){return f.entity})))}})):l=a,s(l)},this.resetFields=function(o){t.warningUnhooked();var r=t.store;if(!o){t.store=setValues({},t.initialValues),t.resetWithFieldInitialValue(),t.notifyObservers(r,null,{type:"reset"});return}var a=o.map(getNamePath);a.forEach(function(s){var l=t.getInitialValue(s);t.store=setValue(t.store,s,l)}),t.resetWithFieldInitialValue({namePathList:a}),t.notifyObservers(r,a,{type:"reset"})},this.setFields=function(o){t.warningUnhooked();var r=t.store;o.forEach(function(a){var s=a.name;a.errors;var l=_objectWithoutProperties(a,["name","errors"]),c=getNamePath(s);"value"in l&&(t.store=setValue(t.store,c,l.value)),t.notifyObservers(r,[c],{type:"setField",data:a})})},this.getFields=function(){var o=t.getFieldEntities(!0),r=o.map(function(a){var s=a.getNamePath(),l=a.getMeta(),c=_objectSpread2$1(_objectSpread2$1({},l),{},{name:s,value:t.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return r},this.initEntityValue=function(o){var r=o.props.initialValue;if(r!==void 0){var a=o.getNamePath(),s=getValue(t.store,a);s===void 0&&(t.store=setValue(t.store,a,r))}},this.registerField=function(o){if(t.fieldEntities.push(o),o.props.initialValue!==void 0){var r=t.store;t.resetWithFieldInitialValue({entities:[o],skipExist:!0}),t.notifyObservers(r,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){t.fieldEntities=t.fieldEntities.filter(function(d){return d!==o});var l=s!==void 0?s:t.preserve;if(l===!1&&!a){var c=o.getNamePath(),u=getValue(t.initialValues,c);c.length&&t.getFieldValue(c)!==u&&t.fieldEntities.every(function(d){return!matchNamePath(d.getNamePath(),c)})&&(t.store=setValue(t.store,c,u))}}},this.dispatch=function(o){switch(o.type){case"updateValue":{var r=o.namePath,a=o.value;t.updateValue(r,a);break}case"validateField":{var s=o.namePath,l=o.triggerName;t.validateFields([s],{triggerName:l});break}}},this.notifyObservers=function(o,r,a){if(t.subscribable){var s=_objectSpread2$1(_objectSpread2$1({},a),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(o,r,s)})}else t.forceRootUpdate()},this.updateValue=function(o,r){var a=getNamePath(o),s=t.store;t.store=setValue(t.store,a,r),t.notifyObservers(s,[a],{type:"valueUpdate",source:"internal"});var l=t.getDependencyChildrenFields(a);l.length&&t.validateFields(l),t.notifyObservers(s,l,{type:"dependenciesUpdate",relatedFields:[a].concat(_toConsumableArray(l))});var c=t.callbacks.onValuesChange;if(c){var u=cloneByNamePathList(t.store,[a]);c(u,t.getFieldsValue())}t.triggerOnFieldsChange([a].concat(_toConsumableArray(l)))},this.setFieldsValue=function(o){t.warningUnhooked();var r=t.store;o&&(t.store=setValues(t.store,o)),t.notifyObservers(r,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(o){var r=new Set,a=[],s=new NameMap;t.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=getNamePath(d);s.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=s.get(u)||new Set;d.forEach(function(f){if(!r.has(f)){r.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return l(o),a},this.triggerOnFieldsChange=function(o,r){var a=t.callbacks.onFieldsChange;if(a){var s=t.getFields();if(r){var l=new NameMap;r.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),s.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=s.filter(function(u){var d=u.name;return containsNamePath(o,d)});a(c,s)}},this.validateFields=function(o,r){t.warningUnhooked();var a=!!o,s=a?o.map(getNamePath):[],l=[];t.getFieldEntities(!0).forEach(function(d){if(a||s.push(d.getNamePath()),(r==null?void 0:r.recursive)&&a){var f=d.getNamePath();f.every(function(h,v){return o[v]===h||o[v]===void 0})&&s.push(f)}if(!(!d.props.rules||!d.props.rules.length)){var m=d.getNamePath();if(!a||containsNamePath(s,m)){var p=d.validateRules(_objectSpread2$1({validateMessages:_objectSpread2$1(_objectSpread2$1({},defaultValidateMessages),t.validateMessages)},r));l.push(p.then(function(){return{name:m,errors:[]}}).catch(function(h){return Promise.reject({name:m,errors:h})}))}}});var c=allPromiseFinish(l);t.lastValidatePromise=c,c.catch(function(d){return d}).then(function(d){var f=d.map(function(m){var p=m.name;return p});t.notifyObservers(t.store,f,{type:"validateFinish"}),t.triggerOnFieldsChange(f,d)});var u=c.then(function(){return t.lastValidatePromise===c?Promise.resolve(t.getFieldsValue(s)):Promise.reject([])}).catch(function(d){var f=d.filter(function(m){return m&&m.errors.length});return Promise.reject({values:t.getFieldsValue(s),errorFields:f,outOfDate:t.lastValidatePromise!==c})});return u.catch(function(d){return d}),u},this.submit=function(){t.warningUnhooked(),t.validateFields().then(function(o){var r=t.callbacks.onFinish;if(r)try{r(o)}catch(a){console.error(a)}}).catch(function(o){var r=t.callbacks.onFinishFailed;r&&r(o)})},this.forceRootUpdate=n};function useForm(e){var n=React__namespace.useRef(),t=React__namespace.useState({}),o=_slicedToArray(t,2),r=o[1];if(!n.current)if(e)n.current=e;else{var a=function(){r({})},s=new FormStore(a);n.current=s.getForm()}return[n.current]}var FormContext=React__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider=function(n){var t=n.validateMessages,o=n.onFormChange,r=n.onFormFinish,a=n.children,s=React__namespace.useContext(FormContext),l=React__namespace.useRef({});return jsxRuntime.jsx(FormContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},s),{},{validateMessages:_objectSpread2$1(_objectSpread2$1({},s.validateMessages),t),triggerFormChange:function(u,d){o&&o(u,{changedFields:d,forms:l.current}),s.triggerFormChange(u,d)},triggerFormFinish:function(u,d){r&&r(u,{values:d,forms:l.current}),s.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=_objectSpread2$1(_objectSpread2$1({},l.current),{},_defineProperty$1({},u,d))),s.registerForm(u,d)},unregisterForm:function(u){var d=_objectSpread2$1({},l.current);delete d[u],l.current=d,s.unregisterForm(u)}}),children:a})},Form$2=function(n,t){var o=n.name,r=n.initialValues,a=n.fields,s=n.form,l=n.preserve,c=n.children,u=n.component,d=u===void 0?"form":u,f=n.validateMessages,m=n.validateTrigger,p=m===void 0?"onChange":m,h=n.onValuesChange,v=n.onFieldsChange,C=n.onFinish,I=n.onFinishFailed,g=_objectWithoutProperties(n,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),y=React__namespace.useContext(FormContext),x=useForm(s),w=_slicedToArray(x,1),O=w[0],F=O.getInternalHooks(HOOK_MARK),b=F.useSubscribe,_=F.setInitialValues,T=F.setCallbacks,k=F.setValidateMessages,N=F.setPreserve;React__namespace.useImperativeHandle(t,function(){return O}),React__namespace.useEffect(function(){return y.registerForm(o,O),function(){y.unregisterForm(o)}},[y,O,o]),k(_objectSpread2$1(_objectSpread2$1({},y.validateMessages),f)),T({onValuesChange:h,onFieldsChange:function(Y){if(y.triggerFormChange(o,Y),v){for(var W=arguments.length,Z=new Array(W>1?W-1:0),L=1;L<W;L++)Z[L-1]=arguments[L];v.apply(void 0,[Y].concat(Z))}},onFinish:function(Y){y.triggerFormFinish(o,Y),C&&C(Y)},onFinishFailed:I}),N(l);var D=React__namespace.useRef(null);_(r,!D.current),D.current||(D.current=!0);var P=c,j=typeof c=="function";if(j){var $=O.getFieldsValue(!0);P=c($,O)}b(!j);var q=React__namespace.useRef();React__namespace.useEffect(function(){isSimilar(q.current||[],a||[])||O.setFields(a||[]),q.current=a},[a,O]);var B=React__namespace.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},O),{},{validateTrigger:p})},[O,p]),H=jsxRuntime.jsx(Context.Provider,{value:B,children:P});return d===!1?H:jsxRuntime.jsx(d,{...g,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),O.submit()},children:H})},InternalForm=React__namespace.forwardRef(Form$2),RefForm=InternalForm;RefForm.FormProvider=FormProvider,RefForm.Field=WrapperField,RefForm.List=List,RefForm.useForm=useForm;const es$2=Object.freeze(Object.defineProperty({__proto__:null,Field:WrapperField,List,useForm,FormProvider,default:RefForm},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(es$2);var useMemo={},hasRequiredUseMemo;function requireUseMemo(){if(hasRequiredUseMemo)return useMemo;hasRequiredUseMemo=1;var e=interopRequireWildcard.exports;Object.defineProperty(useMemo,"__esModule",{value:!0}),useMemo.default=t;var n=e(React__default.default);function t(o,r,a){var s=n.useRef({});return(!("value"in s.current)||a(s.current.condition,r))&&(s.current.value=o(),s.current.condition=r),s.current.value}return useMemo}var localeProvider={},devWarning={},warning$2={},hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning$2;hasRequiredWarning=1,Object.defineProperty(warning$2,"__esModule",{value:!0}),warning$2.warning=n,warning$2.note=t,warning$2.resetWarned=o,warning$2.call=r,warning$2.warningOnce=a,warning$2.noteOnce=s,warning$2.default=void 0;var e={};function n(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function t(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.warn("Note: ".concat(u))}function o(){e={}}function r(c,u,d){!u&&!e[d]&&(c(!1,d),e[d]=!0)}function a(c,u){r(n,c,u)}function s(c,u){r(t,c,u)}var l=a;return warning$2.default=l,warning$2}var hasRequiredDevWarning;function requireDevWarning(){return hasRequiredDevWarning||(hasRequiredDevWarning=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resetWarned",{enumerable:!0,get:function(){return t.resetWarned}}),e.default=void 0;var t=n(requireWarning()),o=function(a,s,l){(0,t.default)(a,"[antd: ".concat(s,"] ").concat(l))};e.default=o}(devWarning)),devWarning}var locale$1={},_default$1={},en_US$4={},hasRequiredEn_US$4;function requireEn_US$4(){if(hasRequiredEn_US$4)return en_US$4;hasRequiredEn_US$4=1,Object.defineProperty(en_US$4,"__esModule",{value:!0}),en_US$4.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};return en_US$4.default=e,en_US$4}var en_US$3={},en_US$2={},hasRequiredEn_US$3;function requireEn_US$3(){if(hasRequiredEn_US$3)return en_US$2;hasRequiredEn_US$3=1,Object.defineProperty(en_US$2,"__esModule",{value:!0}),en_US$2.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},n=e;return en_US$2.default=n,en_US$2}var en_US$1={},hasRequiredEn_US$2;function requireEn_US$2(){return hasRequiredEn_US$2||(hasRequiredEn_US$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},t=n;e.default=t}(en_US$1)),en_US$1}var hasRequiredEn_US$1;function requireEn_US$1(){return hasRequiredEn_US$1||(hasRequiredEn_US$1=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(require_extends()),o=n(requireEn_US$3()),r=n(requireEn_US$2()),a={lang:(0,t.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o.default),timePickerLocale:(0,t.default)({},r.default)},s=a;e.default=s}(en_US$3)),en_US$3}var en_US={},hasRequiredEn_US;function requireEn_US(){return hasRequiredEn_US||(hasRequiredEn_US=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(requireEn_US$1()),o=t.default;e.default=o}(en_US)),en_US}var hasRequired_default$1;function require_default$1(){return hasRequired_default$1||(hasRequired_default$1=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(requireEn_US$4()),o=n(requireEn_US$1()),r=n(requireEn_US$2()),a=n(requireEn_US()),s="${label} is not a valid ${type}",l={locale:"en",Pagination:t.default,DatePicker:o.default,TimePicker:r.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},c=l;e.default=c}(_default$1)),_default$1}var hasRequiredLocale;function requireLocale(){if(hasRequiredLocale)return locale$1;hasRequiredLocale=1;var e=interopRequireDefault.exports;Object.defineProperty(locale$1,"__esModule",{value:!0}),locale$1.changeConfirmLocale=r,locale$1.getConfirmLocale=a;var n=e(require_extends()),t=e(require_default$1()),o=(0,n.default)({},t.default.Modal);function r(s){s?o=(0,n.default)((0,n.default)({},o),s):o=(0,n.default)({},t.default.Modal)}function a(){return o}return locale$1}var context$1={},hasRequiredContext$1;function requireContext$1(){return hasRequiredContext$1||(hasRequiredContext$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=React__default.default,t=(0,n.createContext)(void 0),o=t;e.default=o}(context$1)),context$1}var hasRequiredLocaleProvider;function requireLocaleProvider(){return hasRequiredLocaleProvider||(hasRequiredLocaleProvider=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0;var o=t(require_extends()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=n(React__default.default),u=t(requireDevWarning()),d=requireLocale(),f=t(requireContext$1()),m="internalMark";e.ANT_MARK=m;var p=function(h){(0,s.default)(C,h);var v=(0,l.default)(C);function C(I){var g;return(0,r.default)(this,C),g=v.call(this,I),(0,d.changeConfirmLocale)(I.locale&&I.locale.Modal),(0,u.default)(I._ANT_MARK__===m,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),g}return(0,a.default)(C,[{key:"componentDidUpdate",value:function(g){var y=this.props.locale;g.locale!==y&&(0,d.changeConfirmLocale)(y&&y.Modal)}},{key:"componentWillUnmount",value:function(){(0,d.changeConfirmLocale)()}},{key:"render",value:function(){var g=this.props,y=g.locale,x=g.children;return c.createElement(f.default.Provider,{value:(0,o.default)((0,o.default)({},y),{exist:!0})},x)}}]),C}(c.Component);e.default=p,p.defaultProps={locale:{}}}(localeProvider)),localeProvider}var LocaleReceiver={},_default={},hasRequired_default;function require_default(){return hasRequired_default||(hasRequired_default=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(require_default$1()),o=t.default;e.default=o}(_default)),_default}var hasRequiredLocaleReceiver;function requireLocaleReceiver(){return hasRequiredLocaleReceiver||(hasRequiredLocaleReceiver=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.useLocaleReceiver=m,e.default=void 0;var o=t(require_extends()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=n(React__default.default),u=t(require_default()),d=t(requireContext$1()),f=function(p){(0,s.default)(v,p);var h=(0,l.default)(v);function v(){return(0,r.default)(this,v),h.apply(this,arguments)}return(0,a.default)(v,[{key:"getLocale",value:function(){var I=this.props,g=I.componentName,y=I.defaultLocale,x=y||u.default[g||"global"],w=this.context,O=g&&w?w[g]:{};return(0,o.default)((0,o.default)({},typeof x=="function"?x():x),O||{})}},{key:"getLocaleCode",value:function(){var I=this.context,g=I&&I.locale;return I&&I.exist&&!g?u.default.locale:g}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),v}(c.Component);e.default=f,f.defaultProps={componentName:"global"},f.contextType=d.default;function m(p,h){var v=c.useContext(d.default),C=c.useMemo(function(){var I=h||u.default[p||"global"],g=p&&v?v[p]:{};return(0,o.default)((0,o.default)({},typeof I=="function"?I():I),g||{})},[p,h,v]);return[C]}}(LocaleReceiver)),LocaleReceiver}var context={},renderEmpty={},empty$1={},empty={},hasRequiredEmpty$1;function requireEmpty$1(){return hasRequiredEmpty$1||(hasRequiredEmpty$1=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(React__default.default),o=requireConfigProvider(),r=function(){var l=t.useContext(o.ConfigContext),c=l.getPrefixCls,u=c("empty-img-default");return t.createElement("svg",{className:u,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(24 31.67)"},t.createElement("ellipse",{className:"".concat(u,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),t.createElement("path",{className:"".concat(u,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),t.createElement("path",{className:"".concat(u,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),t.createElement("path",{className:"".concat(u,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),t.createElement("path",{className:"".concat(u,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),t.createElement("path",{className:"".concat(u,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),t.createElement("g",{className:"".concat(u,"-g"),transform:"translate(149.65 15.383)"},t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},a=r;e.default=a}(empty)),empty}var simple={},hasRequiredSimple;function requireSimple(){return hasRequiredSimple||(hasRequiredSimple=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(React__default.default),o=requireConfigProvider(),r=function(){var l=t.useContext(o.ConfigContext),c=l.getPrefixCls,u=c("empty-img-simple");return t.createElement("svg",{className:u,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},t.createElement("ellipse",{className:"".concat(u,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),t.createElement("g",{className:"".concat(u,"-g"),fillRule:"nonzero"},t.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),t.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(u,"-path")}))))},a=r;e.default=a}(simple)),simple}var hasRequiredEmpty;function requireEmpty(){return hasRequiredEmpty||(hasRequiredEmpty=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=t(requireDefineProperty()),a=n(React__default.default),s=t(requireClassnames()),l=requireConfigProvider(),c=t(requireLocaleReceiver()),u=t(requireEmpty$1()),d=t(requireSimple()),f=function(C,I){var g={};for(var y in C)Object.prototype.hasOwnProperty.call(C,y)&&I.indexOf(y)<0&&(g[y]=C[y]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(C);x<y.length;x++)I.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(C,y[x])&&(g[y[x]]=C[y[x]]);return g},m=a.createElement(u.default,null),p=a.createElement(d.default,null),h=function(I){var g=I.className,y=I.prefixCls,x=I.image,w=x===void 0?m:x,O=I.description,F=I.children,b=I.imageStyle,_=f(I,["className","prefixCls","image","description","children","imageStyle"]),T=a.useContext(l.ConfigContext),k=T.getPrefixCls,N=T.direction;return a.createElement(c.default,{componentName:"Empty"},function(D){var P,j=k("empty",y),$=typeof O<"u"?O:D.description,q=typeof $=="string"?$:"empty",B=null;return typeof w=="string"?B=a.createElement("img",{alt:q,src:w}):B=w,a.createElement("div",(0,o.default)({className:(0,s.default)(j,(P={},(0,r.default)(P,"".concat(j,"-normal"),w===p),(0,r.default)(P,"".concat(j,"-rtl"),N==="rtl"),P),g)},_),a.createElement("div",{className:"".concat(j,"-image"),style:b},B),$&&a.createElement("div",{className:"".concat(j,"-description")},$),F&&a.createElement("div",{className:"".concat(j,"-footer")},F))})};h.PRESENTED_IMAGE_DEFAULT=m,h.PRESENTED_IMAGE_SIMPLE=p;var v=h;e.default=v}(empty$1)),empty$1}var hasRequiredRenderEmpty;function requireRenderEmpty(){return hasRequiredRenderEmpty||(hasRequiredRenderEmpty=1,function(e){var n=interopRequireDefault.exports,t=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(React__default.default),r=n(requireEmpty()),a=requireConfigProvider(),s=function(u){return o.createElement(a.ConfigConsumer,null,function(d){var f=d.getPrefixCls,m=f("empty");switch(u){case"Table":case"List":return o.createElement(r.default,{image:r.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(r.default,{image:r.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(m,"-small")});default:return o.createElement(r.default,null)}})},l=s;e.default=l}(renderEmpty)),renderEmpty}var hasRequiredContext;function requireContext(){if(hasRequiredContext)return context;hasRequiredContext=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(context,"__esModule",{value:!0}),context.withConfigConsumer=c,context.ConfigConsumer=context.ConfigContext=void 0;var t=n(require_extends()),o=e(React__default.default),r=n(requireRenderEmpty()),a=function(d,f){return f||(d?"ant-".concat(d):"ant")},s=o.createContext({getPrefixCls:a,renderEmpty:r.default});context.ConfigContext=s;var l=s.Consumer;context.ConfigConsumer=l;function c(u){return function(f){var m=function(C){return o.createElement(l,null,function(I){var g=u.prefixCls,y=I.getPrefixCls,x=C.prefixCls,w=y(g,x);return o.createElement(f,(0,t.default)({},I,C,{prefixCls:w}))})},p=f.constructor,h=p&&p.displayName||f.name||"Component";return m.displayName="withConfigConsumer(".concat(h,")"),m}}return context}var SizeContext={},hasRequiredSizeContext;function requireSizeContext(){return hasRequiredSizeContext||(hasRequiredSizeContext=1,function(e){var n=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var t=n(React__default.default),o=t.createContext(void 0),r=function(l){var c=l.children,u=l.size;return t.createElement(o.Consumer,null,function(d){return t.createElement(o.Provider,{value:u||d},c)})};e.SizeContextProvider=r;var a=o;e.default=a}(SizeContext)),SizeContext}var message={};function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function makePrefixMap(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(n),t["Moz".concat(e)]="moz".concat(n),t["ms".concat(e)]="MS".concat(n),t["O".concat(e)]="o".concat(n.toLowerCase()),t}function getVendorPrefixes(e,n){var t={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete t.animationend.animation,"TransitionEvent"in n||delete t.transitionend.transition),t}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(e){if(prefixedEventNames[e])return prefixedEventNames[e];var n=vendorPrefixes[e];if(n)for(var t=Object.keys(n),o=t.length,r=0;r<o;r+=1){var a=t[r];if(Object.prototype.hasOwnProperty.call(n,a)&&a in style)return prefixedEventNames[e]=n[a],prefixedEventNames[e]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(e,n){if(!e)return null;if(_typeof$1(e)==="object"){var t=n.replace(/-\w/g,function(o){return o[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(n)}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end";function useMountStatus(e){var n=React.useRef(!1),t=React.useState(e),o=_slicedToArray(t,2),r=o[0],a=o[1];function s(l){n.current||a(l)}return React.useEffect(function(){return function(){n.current=!0}},[]),[r,s]}var useIsomorphicLayoutEffect=canUseDom$1()?React.useLayoutEffect:React.useEffect,raf$2=function(n){return+setTimeout(n,16)},caf=function(n){return clearTimeout(n)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$2=function(n){return window.requestAnimationFrame(n)},caf=function(n){return window.cancelAnimationFrame(n)});function wrapperRaf(e){return raf$2(e)}wrapperRaf.cancel=caf;const useNextFrame=function(){var e=React__namespace.useRef(null);function n(){wrapperRaf.cancel(e.current)}function t(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;n();var a=wrapperRaf(function(){r<=1?o({isCanceled:function(){return a!==e.current}}):t(o,r-1)});e.current=a}return React__namespace.useEffect(function(){return function(){n()}},[]),[t,n]};var STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SkipStep=!1,DoStep=!0;function isActive(e){return e===STEP_ACTIVE||e===STEP_ACTIVATED}const useStepQueue=function(e,n){var t=React__namespace.useState(STEP_NONE),o=_slicedToArray(t,2),r=o[0],a=o[1],s=useNextFrame(),l=_slicedToArray(s,2),c=l[0],u=l[1];function d(){a(STEP_PREPARE)}return useIsomorphicLayoutEffect(function(){if(r!==STEP_NONE&&r!==STEP_ACTIVATED){var f=STEP_QUEUE.indexOf(r),m=STEP_QUEUE[f+1],p=n(r);p===SkipStep?a(m):c(function(h){function v(){h.isCanceled()||a(m)}p===!0?v():Promise.resolve(p).then(v)})}},[e,r]),React__namespace.useEffect(function(){return function(){u()}},[]),[d,r]},useDomMotionEvents=function(e){var n=React.useRef(),t=React.useRef(e);t.current=e;var o=React__namespace.useCallback(function(s){t.current(s)},[]);function r(s){s&&(s.removeEventListener(transitionEndName,o),s.removeEventListener(animationEndName,o))}function a(s){n.current&&n.current!==s&&r(n.current),s&&s!==n.current&&(s.addEventListener(transitionEndName,o),s.addEventListener(animationEndName,o),n.current=s)}return React__namespace.useEffect(function(){return function(){r(n.current)}},[]),[a,r]};function useStatus(e,n,t,o){var r=o.motionEnter,a=r===void 0?!0:r,s=o.motionAppear,l=s===void 0?!0:s,c=o.motionLeave,u=c===void 0?!0:c,d=o.motionDeadline,f=o.motionLeaveImmediately,m=o.onAppearPrepare,p=o.onEnterPrepare,h=o.onLeavePrepare,v=o.onAppearStart,C=o.onEnterStart,I=o.onLeaveStart,g=o.onAppearActive,y=o.onEnterActive,x=o.onLeaveActive,w=o.onAppearEnd,O=o.onEnterEnd,F=o.onLeaveEnd,b=o.onVisibleChanged,_=useMountStatus(),T=_slicedToArray(_,2),k=T[0],N=T[1],D=useMountStatus(STATUS_NONE),P=_slicedToArray(D,2),j=P[0],$=P[1],q=useMountStatus(null),B=_slicedToArray(q,2),H=B[0],G=B[1],Y=React.useRef(!1),W=React.useRef(null),Z=React.useRef(!1),L=React.useRef(null);function V(){var ae=t();return ae||L.current}var M=React.useRef(!1);function A(ae){var ie=V();if(!(ae&&!ae.deadline&&ae.target!==ie)){var ce;j===STATUS_APPEAR&&M.current?ce=w==null?void 0:w(ie,ae):j===STATUS_ENTER&&M.current?ce=O==null?void 0:O(ie,ae):j===STATUS_LEAVE&&M.current&&(ce=F==null?void 0:F(ie,ae)),ce!==!1&&!Z.current&&($(STATUS_NONE),G(null))}}var U=useDomMotionEvents(A),K=_slicedToArray(U,1),Q=K[0],E=React__namespace.useMemo(function(){var ae,ie,ce;switch(j){case"appear":return ae={},_defineProperty$1(ae,STEP_PREPARE,m),_defineProperty$1(ae,STEP_START,v),_defineProperty$1(ae,STEP_ACTIVE,g),ae;case"enter":return ie={},_defineProperty$1(ie,STEP_PREPARE,p),_defineProperty$1(ie,STEP_START,C),_defineProperty$1(ie,STEP_ACTIVE,y),ie;case"leave":return ce={},_defineProperty$1(ce,STEP_PREPARE,h),_defineProperty$1(ce,STEP_START,I),_defineProperty$1(ce,STEP_ACTIVE,x),ce;default:return{}}},[j]),S=useStepQueue(j,function(ae){if(ae===STEP_PREPARE){var ie=E[STEP_PREPARE];return ie?ie(V()):SkipStep}if(ne in E){var ce;G(((ce=E[ne])===null||ce===void 0?void 0:ce.call(E,V(),null))||null)}return ne===STEP_ACTIVE&&(Q(V()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){A({deadline:!0})},d))),DoStep}),z=_slicedToArray(S,2),X=z[0],ne=z[1],ee=isActive(ne);M.current=ee,useIsomorphicLayoutEffect(function(){if(N(n),!!e){var ae=Y.current;Y.current=!0;var ie;!ae&&n&&l&&(ie=STATUS_APPEAR),ae&&n&&a&&(ie=STATUS_ENTER),(ae&&!n&&u||!ae&&f&&!n&&u)&&(ie=STATUS_LEAVE),ie&&($(ie),X())}},[n]),React.useEffect(function(){(j===STATUS_APPEAR&&!l||j===STATUS_ENTER&&!a||j===STATUS_LEAVE&&!u)&&$(STATUS_NONE)},[l,a,u]),React.useEffect(function(){return function(){clearTimeout(W.current),Z.current=!0}},[]),React.useEffect(function(){k!==void 0&&j===STATUS_NONE&&(b==null||b(k))},[k,j]);var re=H;return E[STEP_PREPARE]&&ne===STEP_START&&(re=_objectSpread2$1({transition:"none"},re)),[j,ne,re,k!=null?k:n]}var DomWrapper=function(e){_inherits(t,e);var n=_createSuper(t);function t(){return _classCallCheck(this,t),n.apply(this,arguments)}return _createClass(t,[{key:"render",value:function(){return this.props.children}}]),t}(React__namespace.Component);function genCSSMotion(e){var n=e;_typeof$1(e)==="object"&&(n=e.transitionSupport);function t(r){return!!(r.motionName&&n)}var o=React__namespace.forwardRef(function(r,a){var s=r.visible,l=s===void 0?!0:s,c=r.removeOnLeave,u=c===void 0?!0:c,d=r.forceRender,f=r.children,m=r.motionName,p=r.leavedClassName,h=r.eventProps,v=t(r),C=React.useRef(),I=React.useRef();function g(){try{return findDOMNode(C.current||I.current)}catch{return null}}var y=useStatus(v,l,g,r),x=_slicedToArray(y,4),w=x[0],O=x[1],F=x[2],b=x[3],_=React.useRef(a);_.current=a;var T=React__namespace.useCallback(function(j){C.current=j,fillRef(_.current,j)},[]),k,N=_objectSpread2$1(_objectSpread2$1({},h),{},{visible:l});if(!f)k=null;else if(w===STATUS_NONE||!t(r))b?k=f(_objectSpread2$1({},N),T):u?d?k=f(_objectSpread2$1(_objectSpread2$1({},N),{},{style:{display:"none"}}),T):k=null:k=f(_objectSpread2$1(_objectSpread2$1({},N),{},{className:p}),T);else{var D,P;O===STEP_PREPARE?P="prepare":isActive(O)?P="active":O===STEP_START&&(P="start"),k=f(_objectSpread2$1(_objectSpread2$1({},N),{},{className:classnamesExports(getTransitionName$1(m,w),(D={},_defineProperty$1(D,getTransitionName$1(m,"".concat(w,"-").concat(P)),P),_defineProperty$1(D,m,typeof m=="string"),D)),style:F}),T)}return jsxRuntime.jsx(DomWrapper,{ref:I,children:k})});return o.displayName="CSSMotion",o}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(e){var n;return e&&_typeof$1(e)==="object"&&"key"in e?n=e:n={key:e},_objectSpread2$1(_objectSpread2$1({},n),{},{key:String(n.key)})}function parseKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(wrapKeyToObject)}function diffKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],o=0,r=n.length,a=parseKeys(e),s=parseKeys(n);a.forEach(function(u){for(var d=!1,f=o;f<r;f+=1){var m=s[f];if(m.key===u.key){o<f&&(t=t.concat(s.slice(o,f).map(function(p){return _objectSpread2$1(_objectSpread2$1({},p),{},{status:STATUS_ADD})})),o=f),t.push(_objectSpread2$1(_objectSpread2$1({},m),{},{status:STATUS_KEEP})),o+=1,d=!0;break}}d||t.push(_objectSpread2$1(_objectSpread2$1({},u),{},{status:STATUS_REMOVE}))}),o<r&&(t=t.concat(s.slice(o).map(function(u){return _objectSpread2$1(_objectSpread2$1({},u),{},{status:STATUS_ADD})})));var l={};t.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){t=t.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==STATUS_REMOVE}),t.forEach(function(d){d.key===u&&(d.status=STATUS_KEEP)})}),t}var MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,t=function(o){_inherits(a,o);var r=_createSuper(a);function a(){var s;return _classCallCheck(this,a),s=r.apply(this,arguments),s.state={keyEntities:[]},s.removeKey=function(l){s.setState(function(c){var u=c.keyEntities;return{keyEntities:u.map(function(d){return d.key!==l?d:_objectSpread2$1(_objectSpread2$1({},d),{},{status:STATUS_REMOVED})})}})},s}return _createClass(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged,p=_objectWithoutProperties(u,["component","children","onVisibleChanged"]),h=d||React__namespace.Fragment,v={};return MOTION_PROP_NAMES.forEach(function(C){v[C]=p[C],delete p[C]}),delete p.keys,jsxRuntime.jsx(h,{...Object.assign({},p),children:c.map(function(C){var I=C.status,g=_objectWithoutProperties(C,["status"]),y=I===STATUS_ADD||I===STATUS_KEEP;return jsxRuntime.jsx(n,{...Object.assign({},v,{key:g.key,visible:y,eventProps:g,onVisibleChanged:function(w){m==null||m(w,{key:g.key}),w||l.removeKey(g.key)}}),children:f})})})}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=parseKeys(u),m=diffKeys(d,f);return{keyEntities:m.filter(function(p){var h=d.find(function(v){var C=v.key;return p.key===C});return!(h&&h.status===STATUS_REMOVED&&p.status===STATUS_REMOVE)})}}}]),a}(React__namespace.Component);return t.defaultProps={component:"div"},t}const CSSMotionList=genCSSMotionList(supportTransition);var Notice$1=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var o;return _classCallCheck(this,t),o=n.apply(this,arguments),o.closeTimer=null,o.close=function(r){r&&r.stopPropagation(),o.clearCloseTimer();var a=o.props,s=a.onClose,l=a.noticeKey;s&&s(l)},o.startCloseTimer=function(){o.props.duration&&(o.closeTimer=window.setTimeout(function(){o.close()},o.props.duration*1e3))},o.clearCloseTimer=function(){o.closeTimer&&(clearTimeout(o.closeTimer),o.closeTimer=null)},o}return _createClass(t,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(r){(this.props.duration!==r.duration||this.props.updateMark!==r.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var r=this,a=this.props,s=a.prefixCls,l=a.className,c=a.closable,u=a.closeIcon,d=a.style,f=a.onClick,m=a.children,p=a.holder,h="".concat(s,"-notice"),v=Object.keys(this.props).reduce(function(I,g){return(g.substr(0,5)==="data-"||g.substr(0,5)==="aria-"||g==="role")&&(I[g]=r.props[g]),I},{}),C=jsxRuntime.jsxs("div",{...Object.assign({className:classnamesExports(h,l,_defineProperty$1({},"".concat(h,"-closable"),c)),style:d,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:f},v),children:[jsxRuntime.jsx("div",{className:"".concat(h,"-content"),children:m}),c?jsxRuntime.jsx("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close"),children:u||jsxRuntime.jsx("span",{className:"".concat(h,"-close-x")})}):null]});return p?ReactDOM__default.default.createPortal(C,p):C}}]),t}(React.Component);Notice$1.defaultProps={onClose:function(){},duration:1.5};function useNotification$2(e){var n=React__namespace.useRef({}),t=React__namespace.useState([]),o=_slicedToArray(t,2),r=o[0],a=o[1];function s(l){e.add(l,function(c,u){var d=u.key;if(c&&!n.current[d]){var f=jsxRuntime.jsx(Notice$1,{...Object.assign({},u,{holder:c})});n.current[d]=f,a(function(m){return[].concat(_toConsumableArray(m),[f])})}})}return[s,jsxRuntime.jsx(jsxRuntime.Fragment,{children:r})]}var seed=0,now$3=Date.now();function getUuid(){var e=seed;return seed+=1,"rcNotification_".concat(now$3,"_").concat(e)}var Notification=function(e){_inherits(t,e);var n=_createSuper(t);function t(){var o;return _classCallCheck(this,t),o=n.apply(this,arguments),o.state={notices:[]},o.hookRefs=new Map,o.add=function(r,a){var s=r.key||getUuid(),l=_objectSpread2$1(_objectSpread2$1({},r),{},{key:s}),c=o.props.maxCount;o.setState(function(u){var d=u.notices,f=d.map(function(p){return p.notice.key}).indexOf(s),m=d.concat();return f!==-1?m.splice(f,1,{notice:l,holderCallback:a}):(c&&d.length>=c&&(l.key=m[0].notice.key,l.updateMark=getUuid(),l.userPassKey=s,m.shift()),m.push({notice:l,holderCallback:a})),{notices:m}})},o.remove=function(r){o.setState(function(a){var s=a.notices;return{notices:s.filter(function(l){var c=l.notice,u=c.key,d=c.userPassKey,f=d||u;return f!==r})}})},o.noticePropsMap={},o}return _createClass(t,[{key:"getTransitionName",value:function(){var r=this.props,a=r.prefixCls,s=r.animation,l=this.props.transitionName;return!l&&s&&(l="".concat(a,"-").concat(s)),l}},{key:"render",value:function(){var r=this,a=this.state.notices,s=this.props,l=s.prefixCls,c=s.className,u=s.closeIcon,d=s.style,f=[];return a.forEach(function(m,p){var h=m.notice,v=m.holderCallback,C=p===a.length-1?h.updateMark:void 0,I=h.key,g=h.userPassKey,y=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({prefixCls:l,closeIcon:u},h),h.props),{},{key:I,noticeKey:g||I,updateMark:C,onClose:function(w){var O;r.remove(w),(O=h.onClose)===null||O===void 0||O.call(h)},onClick:h.onClick,children:h.content});f.push(I),r.noticePropsMap[I]={props:y,holderCallback:v}}),jsxRuntime.jsx("div",{className:classnamesExports(l,c),style:d,children:jsxRuntime.jsx(CSSMotionList,{keys:f,motionName:this.getTransitionName(),onVisibleChanged:function(p,h){var v=h.key;p||delete r.noticePropsMap[v]},children:function(m){var p=m.key,h=m.className,v=m.style,C=r.noticePropsMap[p],I=C.props,g=C.holderCallback;return g?jsxRuntime.jsx("div",{className:classnamesExports(h,"".concat(l,"-hook-holder")),style:_objectSpread2$1({},v),ref:function(x){typeof p>"u"||(x?(r.hookRefs.set(p,x),g(x,I)):r.hookRefs.delete(p))}},p):jsxRuntime.jsx(Notice$1,{...Object.assign({},I,{className:classnamesExports(h,I==null?void 0:I.className),style:_objectSpread2$1(_objectSpread2$1({},v),I==null?void 0:I.style)})})}})})}}]),t}(React.Component);Notification.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Notification.newInstance=function(n,t){var o=n||{},r=o.getContainer,a=_objectWithoutProperties(o,["getContainer"]),s=document.createElement("div");if(r){var l=r();l.appendChild(s)}else document.body.appendChild(s);var c=!1;function u(d){c||(c=!0,t({notice:function(m){d.add(m)},removeNotice:function(m){d.remove(m)},component:d,destroy:function(){ReactDOM__default.default.unmountComponentAtNode(s),s.parentNode&&s.parentNode.removeChild(s)},useNotification:function(){return useNotification$2(d)}}))}if(process.env.NODE_ENV==="test"&&n.TEST_RENDER){n.TEST_RENDER(jsxRuntime.jsx(Notification,{...Object.assign({},a,{ref:u})}));return}ReactDOM__default.default.render(jsxRuntime.jsx(Notification,{...Object.assign({},a,{ref:u})}),s)};const es$1=Object.freeze(Object.defineProperty({__proto__:null,default:Notification},Symbol.toStringTag,{value:"Module"})),require$$6$1=getAugmentedNamespace(es$1);var LoadingOutlined$2={exports:{}},LoadingOutlined$1={},LoadingOutlined={},hasRequiredLoadingOutlined$2;function requireLoadingOutlined$2(){if(hasRequiredLoadingOutlined$2)return LoadingOutlined;hasRequiredLoadingOutlined$2=1,Object.defineProperty(LoadingOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return LoadingOutlined.default=e,LoadingOutlined}var hasRequiredLoadingOutlined$1;function requireLoadingOutlined$1(){if(hasRequiredLoadingOutlined$1)return LoadingOutlined$1;hasRequiredLoadingOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(LoadingOutlined$1,"__esModule",{value:!0}),LoadingOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireLoadingOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="LoadingOutlined";var l=o.forwardRef(s);return LoadingOutlined$1.default=l,LoadingOutlined$1}var hasRequiredLoadingOutlined;function requireLoadingOutlined(){return hasRequiredLoadingOutlined||(hasRequiredLoadingOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireLoadingOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(LoadingOutlined$2,LoadingOutlined$2.exports)),LoadingOutlined$2.exports}var ExclamationCircleFilled$2={exports:{}},ExclamationCircleFilled$1={},ExclamationCircleFilled={},hasRequiredExclamationCircleFilled$2;function requireExclamationCircleFilled$2(){if(hasRequiredExclamationCircleFilled$2)return ExclamationCircleFilled;hasRequiredExclamationCircleFilled$2=1,Object.defineProperty(ExclamationCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return ExclamationCircleFilled.default=e,ExclamationCircleFilled}var hasRequiredExclamationCircleFilled$1;function requireExclamationCircleFilled$1(){if(hasRequiredExclamationCircleFilled$1)return ExclamationCircleFilled$1;hasRequiredExclamationCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleFilled$1,"__esModule",{value:!0}),ExclamationCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireExclamationCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="ExclamationCircleFilled";var l=o.forwardRef(s);return ExclamationCircleFilled$1.default=l,ExclamationCircleFilled$1}var hasRequiredExclamationCircleFilled;function requireExclamationCircleFilled(){return hasRequiredExclamationCircleFilled||(hasRequiredExclamationCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireExclamationCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(ExclamationCircleFilled$2,ExclamationCircleFilled$2.exports)),ExclamationCircleFilled$2.exports}var CheckCircleFilled$2={exports:{}},CheckCircleFilled$1={},CheckCircleFilled={},hasRequiredCheckCircleFilled$2;function requireCheckCircleFilled$2(){if(hasRequiredCheckCircleFilled$2)return CheckCircleFilled;hasRequiredCheckCircleFilled$2=1,Object.defineProperty(CheckCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return CheckCircleFilled.default=e,CheckCircleFilled}var hasRequiredCheckCircleFilled$1;function requireCheckCircleFilled$1(){if(hasRequiredCheckCircleFilled$1)return CheckCircleFilled$1;hasRequiredCheckCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CheckCircleFilled$1,"__esModule",{value:!0}),CheckCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCheckCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CheckCircleFilled";var l=o.forwardRef(s);return CheckCircleFilled$1.default=l,CheckCircleFilled$1}var hasRequiredCheckCircleFilled;function requireCheckCircleFilled(){return hasRequiredCheckCircleFilled||(hasRequiredCheckCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCheckCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CheckCircleFilled$2,CheckCircleFilled$2.exports)),CheckCircleFilled$2.exports}var InfoCircleFilled$2={exports:{}},InfoCircleFilled$1={},InfoCircleFilled={},hasRequiredInfoCircleFilled$2;function requireInfoCircleFilled$2(){if(hasRequiredInfoCircleFilled$2)return InfoCircleFilled;hasRequiredInfoCircleFilled$2=1,Object.defineProperty(InfoCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return InfoCircleFilled.default=e,InfoCircleFilled}var hasRequiredInfoCircleFilled$1;function requireInfoCircleFilled$1(){if(hasRequiredInfoCircleFilled$1)return InfoCircleFilled$1;hasRequiredInfoCircleFilled$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(InfoCircleFilled$1,"__esModule",{value:!0}),InfoCircleFilled$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireInfoCircleFilled$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="InfoCircleFilled";var l=o.forwardRef(s);return InfoCircleFilled$1.default=l,InfoCircleFilled$1}var hasRequiredInfoCircleFilled;function requireInfoCircleFilled(){return hasRequiredInfoCircleFilled||(hasRequiredInfoCircleFilled=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireInfoCircleFilled$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(InfoCircleFilled$2,InfoCircleFilled$2.exports)),InfoCircleFilled$2.exports}var useMessage={},useNotification$1={},Notice={},hasRequiredNotice;function requireNotice(){if(hasRequiredNotice)return Notice;hasRequiredNotice=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(Notice,"__esModule",{value:!0}),Notice.default=void 0;var t=n(requireDefineProperty()),o=n(requireClassCallCheck()),r=n(requireCreateClass()),a=n(requireInherits()),s=n(requireCreateSuper()),l=e(React__default.default),c=n(ReactDOM__default.default),u=n(requireClassnames()),d=function(f){(0,a.default)(p,f);var m=(0,s.default)(p);function p(){var h;return(0,o.default)(this,p),h=m.apply(this,arguments),h.closeTimer=null,h.close=function(v){v&&v.stopPropagation(),h.clearCloseTimer();var C=h.props,I=C.onClose,g=C.noticeKey;I&&I(g)},h.startCloseTimer=function(){h.props.duration&&(h.closeTimer=window.setTimeout(function(){h.close()},h.props.duration*1e3))},h.clearCloseTimer=function(){h.closeTimer&&(clearTimeout(h.closeTimer),h.closeTimer=null)},h}return(0,r.default)(p,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(v){(this.props.duration!==v.duration||this.props.updateMark!==v.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var v=this,C=this.props,I=C.prefixCls,g=C.className,y=C.closable,x=C.closeIcon,w=C.style,O=C.onClick,F=C.children,b=C.holder,_="".concat(I,"-notice"),T=Object.keys(this.props).reduce(function(N,D){return(D.substr(0,5)==="data-"||D.substr(0,5)==="aria-"||D==="role")&&(N[D]=v.props[D]),N},{}),k=l.createElement("div",Object.assign({className:(0,u.default)(_,g,(0,t.default)({},"".concat(_,"-closable"),y)),style:w,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:O},T),l.createElement("div",{className:"".concat(_,"-content")},F),y?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(_,"-close")},x||l.createElement("span",{className:"".concat(_,"-close-x")})):null);return b?c.default.createPortal(k,b):k}}]),p}(l.Component);return Notice.default=d,d.defaultProps={onClose:function(){},duration:1.5},Notice}var hasRequiredUseNotification$1;function requireUseNotification$1(){if(hasRequiredUseNotification$1)return useNotification$1;hasRequiredUseNotification$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(useNotification$1,"__esModule",{value:!0}),useNotification$1.default=s;var t=n(requireToConsumableArray()),o=n(requireSlicedToArray()),r=e(React__default.default),a=n(requireNotice());function s(l){var c=r.useRef({}),u=r.useState([]),d=(0,o.default)(u,2),f=d[0],m=d[1];function p(h){l.add(h,function(v,C){var I=C.key;if(v&&!c.current[I]){var g=r.createElement(a.default,Object.assign({},C,{holder:v}));c.current[I]=g,m(function(y){return[].concat((0,t.default)(y),[g])})}})}return[p,r.createElement(r.Fragment,null,f)]}return useNotification$1}var hasRequiredUseMessage;function requireUseMessage(){return hasRequiredUseMessage||(hasRequiredUseMessage=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var o=t(require_extends()),r=t(requireSlicedToArray()),a=n(React__default.default),s=t(requireUseNotification$1()),l=requireConfigProvider(),c=requireMessage();function u(d,f){var m=function(){var h,v=null,C={add:function(b,_){v==null||v.component.add(b,_)}},I=(0,s.default)(C),g=(0,r.default)(I,2),y=g[0],x=g[1];function w(F){var b=F.prefixCls,_=h("message",b),T=F.key||(0,c.getKeyThenIncreaseKey)(),k=new Promise(function(D){var P=function(){return typeof F.onClose=="function"&&F.onClose(),D(!0)};d((0,o.default)((0,o.default)({},F),{prefixCls:_}),function(j){var $=j.prefixCls,q=j.instance;v=q,y(f((0,o.default)((0,o.default)({},F),{key:T,onClose:P}),$))})}),N=function(){v&&v.removeNotice(T)};return N.then=function(D,P){return k.then(D,P)},N.promise=k,N}var O=a.useRef({});return O.current.open=w,["success","info","warning","error","loading"].forEach(function(F){return(0,c.attachTypeApi)(O.current,F)}),[O.current,a.createElement(l.ConfigConsumer,{key:"holder"},function(F){return h=F.getPrefixCls,x})]};return m}}(useMessage)),useMessage}var hasRequiredMessage;function requireMessage(){return hasRequiredMessage||(hasRequiredMessage=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyThenIncreaseKey=F,e.attachTypeApi=j,e.default=e.getInstance=void 0;var o=t(require_extends()),r=t(requireDefineProperty()),a=n(React__default.default),s=t(requireClassnames()),l=t(require$$6$1),c=t(requireLoadingOutlined()),u=t(requireExclamationCircleFilled()),d=t(requireCloseCircleFilled()),f=t(requireCheckCircleFilled()),m=t(requireInfoCircleFilled()),p=t(requireUseMessage()),h,v=3,C,I=1,g="ant-message",y="move-up",x,w,O=!1;function F(){return I++}function b(B){B.top!==void 0&&(C=B.top,h=null),B.duration!==void 0&&(v=B.duration),B.prefixCls!==void 0&&(g=B.prefixCls),B.getContainer!==void 0&&(x=B.getContainer),B.transitionName!==void 0&&(y=B.transitionName,h=null),B.maxCount!==void 0&&(w=B.maxCount,h=null),B.rtl!==void 0&&(O=B.rtl)}function _(B,H){var G=B.prefixCls||g;if(h){H({prefixCls:G,instance:h});return}l.default.newInstance({prefixCls:G,transitionName:y,style:{top:C},getContainer:x,maxCount:w},function(Y){if(h){H({prefixCls:G,instance:h});return}h=Y,H({prefixCls:G,instance:Y})})}var T={info:m.default,success:f.default,error:d.default,warning:u.default,loading:c.default};function k(B,H){var G,Y=B.duration!==void 0?B.duration:v,W=T[B.type],Z=(0,s.default)("".concat(H,"-custom-content"),(G={},(0,r.default)(G,"".concat(H,"-").concat(B.type),B.type),(0,r.default)(G,"".concat(H,"-rtl"),O===!0),G));return{key:B.key,duration:Y,style:B.style||{},className:B.className,content:a.createElement("div",{className:Z},B.icon||W&&a.createElement(W,null),a.createElement("span",null,B.content)),onClose:B.onClose,onClick:B.onClick}}function N(B){var H=B.key||I++,G=new Promise(function(W){var Z=function(){return typeof B.onClose=="function"&&B.onClose(),W(!0)};_(B,function(L){var V=L.prefixCls,M=L.instance;M.notice(k((0,o.default)((0,o.default)({},B),{key:H,onClose:Z}),V))})}),Y=function(){h&&h.removeNotice(H)};return Y.then=function(W,Z){return G.then(W,Z)},Y.promise=G,Y}function D(B){return Object.prototype.toString.call(B)==="[object Object]"&&!!B.content}var P={open:N,config:b,destroy:function(H){if(h)if(H){var G=h,Y=G.removeNotice;Y(H)}else{var W=h,Z=W.destroy;Z(),h=null}}};function j(B,H){B[H]=function(G,Y,W){return D(G)?B.open((0,o.default)((0,o.default)({},G),{type:H})):(typeof Y=="function"&&(W=Y,Y=void 0),B.open({content:G,duration:Y,type:H,onClose:W}))}}["success","info","warning","error","loading"].forEach(function(B){return j(P,B)}),P.warn=P.warning,P.useMessage=(0,p.default)(_,k);var $=function(){return process.env.NODE_ENV==="test"?h:null};e.getInstance=$;var q=P;e.default=q}(message)),message}var notification={},CloseOutlined$2={exports:{}},CloseOutlined$1={},CloseOutlined={},hasRequiredCloseOutlined$2;function requireCloseOutlined$2(){if(hasRequiredCloseOutlined$2)return CloseOutlined;hasRequiredCloseOutlined$2=1,Object.defineProperty(CloseOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};return CloseOutlined.default=e,CloseOutlined}var hasRequiredCloseOutlined$1;function requireCloseOutlined$1(){if(hasRequiredCloseOutlined$1)return CloseOutlined$1;hasRequiredCloseOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CloseOutlined$1,"__esModule",{value:!0}),CloseOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCloseOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CloseOutlined";var l=o.forwardRef(s);return CloseOutlined$1.default=l,CloseOutlined$1}var hasRequiredCloseOutlined;function requireCloseOutlined(){return hasRequiredCloseOutlined||(hasRequiredCloseOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCloseOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CloseOutlined$2,CloseOutlined$2.exports)),CloseOutlined$2.exports}var CheckCircleOutlined$2={exports:{}},CheckCircleOutlined$1={},CheckCircleOutlined={},hasRequiredCheckCircleOutlined$2;function requireCheckCircleOutlined$2(){if(hasRequiredCheckCircleOutlined$2)return CheckCircleOutlined;hasRequiredCheckCircleOutlined$2=1,Object.defineProperty(CheckCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return CheckCircleOutlined.default=e,CheckCircleOutlined}var hasRequiredCheckCircleOutlined$1;function requireCheckCircleOutlined$1(){if(hasRequiredCheckCircleOutlined$1)return CheckCircleOutlined$1;hasRequiredCheckCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CheckCircleOutlined$1,"__esModule",{value:!0}),CheckCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCheckCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CheckCircleOutlined";var l=o.forwardRef(s);return CheckCircleOutlined$1.default=l,CheckCircleOutlined$1}var hasRequiredCheckCircleOutlined;function requireCheckCircleOutlined(){return hasRequiredCheckCircleOutlined||(hasRequiredCheckCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCheckCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CheckCircleOutlined$2,CheckCircleOutlined$2.exports)),CheckCircleOutlined$2.exports}var CloseCircleOutlined$2={exports:{}},CloseCircleOutlined$1={},CloseCircleOutlined={},hasRequiredCloseCircleOutlined$2;function requireCloseCircleOutlined$2(){if(hasRequiredCloseCircleOutlined$2)return CloseCircleOutlined;hasRequiredCloseCircleOutlined$2=1,Object.defineProperty(CloseCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};return CloseCircleOutlined.default=e,CloseCircleOutlined}var hasRequiredCloseCircleOutlined$1;function requireCloseCircleOutlined$1(){if(hasRequiredCloseCircleOutlined$1)return CloseCircleOutlined$1;hasRequiredCloseCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CloseCircleOutlined$1,"__esModule",{value:!0}),CloseCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCloseCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CloseCircleOutlined";var l=o.forwardRef(s);return CloseCircleOutlined$1.default=l,CloseCircleOutlined$1}var hasRequiredCloseCircleOutlined;function requireCloseCircleOutlined(){return hasRequiredCloseCircleOutlined||(hasRequiredCloseCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCloseCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CloseCircleOutlined$2,CloseCircleOutlined$2.exports)),CloseCircleOutlined$2.exports}var ExclamationCircleOutlined$2={exports:{}},ExclamationCircleOutlined$1={},ExclamationCircleOutlined={},hasRequiredExclamationCircleOutlined$2;function requireExclamationCircleOutlined$2(){if(hasRequiredExclamationCircleOutlined$2)return ExclamationCircleOutlined;hasRequiredExclamationCircleOutlined$2=1,Object.defineProperty(ExclamationCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};return ExclamationCircleOutlined.default=e,ExclamationCircleOutlined}var hasRequiredExclamationCircleOutlined$1;function requireExclamationCircleOutlined$1(){if(hasRequiredExclamationCircleOutlined$1)return ExclamationCircleOutlined$1;hasRequiredExclamationCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleOutlined$1,"__esModule",{value:!0}),ExclamationCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireExclamationCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="ExclamationCircleOutlined";var l=o.forwardRef(s);return ExclamationCircleOutlined$1.default=l,ExclamationCircleOutlined$1}var hasRequiredExclamationCircleOutlined;function requireExclamationCircleOutlined(){return hasRequiredExclamationCircleOutlined||(hasRequiredExclamationCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireExclamationCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(ExclamationCircleOutlined$2,ExclamationCircleOutlined$2.exports)),ExclamationCircleOutlined$2.exports}var InfoCircleOutlined$2={exports:{}},InfoCircleOutlined$1={},InfoCircleOutlined={},hasRequiredInfoCircleOutlined$2;function requireInfoCircleOutlined$2(){if(hasRequiredInfoCircleOutlined$2)return InfoCircleOutlined;hasRequiredInfoCircleOutlined$2=1,Object.defineProperty(InfoCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return InfoCircleOutlined.default=e,InfoCircleOutlined}var hasRequiredInfoCircleOutlined$1;function requireInfoCircleOutlined$1(){if(hasRequiredInfoCircleOutlined$1)return InfoCircleOutlined$1;hasRequiredInfoCircleOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(InfoCircleOutlined$1,"__esModule",{value:!0}),InfoCircleOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireInfoCircleOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="InfoCircleOutlined";var l=o.forwardRef(s);return InfoCircleOutlined$1.default=l,InfoCircleOutlined$1}var hasRequiredInfoCircleOutlined;function requireInfoCircleOutlined(){return hasRequiredInfoCircleOutlined||(hasRequiredInfoCircleOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireInfoCircleOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(InfoCircleOutlined$2,InfoCircleOutlined$2.exports)),InfoCircleOutlined$2.exports}var useNotification={},hasRequiredUseNotification;function requireUseNotification(){return hasRequiredUseNotification||(hasRequiredUseNotification=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var o=t(require_extends()),r=t(requireSlicedToArray()),a=n(React__default.default),s=t(requireUseNotification$1()),l=requireConfigProvider();function c(u,d){var f=function(){var p,h=null,v={add:function(F,b){h==null||h.component.add(F,b)}},C=(0,s.default)(v),I=(0,r.default)(C,2),g=I[0],y=I[1];function x(O){var F=O.prefixCls,b=p("notification",F);u((0,o.default)((0,o.default)({},O),{prefixCls:b}),function(_){var T=_.prefixCls,k=_.instance;h=k,g(d(O,T))})}var w=a.useRef({});return w.current.open=x,["success","info","warning","error"].forEach(function(O){w.current[O]=function(F){return w.current.open((0,o.default)((0,o.default)({},F),{type:O}))}}),[w.current,a.createElement(l.ConfigConsumer,{key:"holder"},function(O){return p=O.getPrefixCls,y})]};return f}}(useNotification)),useNotification}var hasRequiredNotification;function requireNotification(){return hasRequiredNotification||(hasRequiredNotification=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.getInstance=void 0;var o=t(requireRegenerator()),r=t(require_extends()),a=t(requireDefineProperty()),s=n(React__default.default),l=t(require$$6$1),c=t(requireCloseOutlined()),u=t(requireClassnames()),d=t(requireCheckCircleOutlined()),f=t(requireCloseCircleOutlined()),m=t(requireExclamationCircleOutlined()),p=t(requireInfoCircleOutlined()),h=t(requireUseNotification()),v=function(B,H,G,Y){function W(Z){return Z instanceof G?Z:new G(function(L){L(Z)})}return new(G||(G=Promise))(function(Z,L){function V(U){try{A(Y.next(U))}catch(K){L(K)}}function M(U){try{A(Y.throw(U))}catch(K){L(K)}}function A(U){U.done?Z(U.value):W(U.value).then(V,M)}A((Y=Y.apply(B,H||[])).next())})},C={},I=4.5,g=24,y=24,x="ant-notification",w="topRight",O,F,b=!1;function _(B){var H=B.duration,G=B.placement,Y=B.bottom,W=B.top,Z=B.getContainer,L=B.closeIcon,V=B.prefixCls;V!==void 0&&(x=V),H!==void 0&&(I=H),G!==void 0?w=G:B.rtl&&(w="topLeft"),Y!==void 0&&(y=Y),W!==void 0&&(g=W),Z!==void 0&&(O=Z),L!==void 0&&(F=L),B.rtl!==void 0&&(b=B.rtl)}function T(B){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y,Y;switch(B){case"topLeft":Y={left:0,top:H,bottom:"auto"};break;case"topRight":Y={right:0,top:H,bottom:"auto"};break;case"bottomLeft":Y={left:0,top:"auto",bottom:G};break;default:Y={right:0,top:"auto",bottom:G};break}return Y}function k(B,H){var G=B.placement,Y=G===void 0?w:G,W=B.top,Z=B.bottom,L=B.getContainer,V=L===void 0?O:L,M=B.closeIcon,A=M===void 0?F:M,U=B.prefixCls||x,K="".concat(U,"-notice"),Q="".concat(U,"-").concat(Y),E=C[Q];if(E){Promise.resolve(E).then(function(X){H({prefixCls:K,instance:X})});return}var S=s.createElement("span",{className:"".concat(U,"-close-x")},A||s.createElement(c.default,{className:"".concat(U,"-close-icon")})),z=(0,u.default)("".concat(U,"-").concat(Y),(0,a.default)({},"".concat(U,"-rtl"),b===!0));C[Q]=new Promise(function(X){l.default.newInstance({prefixCls:U,className:z,style:T(Y,W,Z),getContainer:V,closeIcon:S},function(ne){X(ne),H({prefixCls:K,instance:ne})})})}var N={success:d.default,info:p.default,error:f.default,warning:m.default};function D(B,H){var G=B.duration===void 0?I:B.duration,Y=null;B.icon?Y=s.createElement("span",{className:"".concat(H,"-icon")},B.icon):B.type&&(Y=s.createElement(N[B.type]||null,{className:"".concat(H,"-icon ").concat(H,"-icon-").concat(B.type)}));var W=!B.description&&Y?s.createElement("span",{className:"".concat(H,"-message-single-line-auto-margin")}):null;return{content:s.createElement("div",{className:Y?"".concat(H,"-with-icon"):"",role:"alert"},Y,s.createElement("div",{className:"".concat(H,"-message")},W,B.message),s.createElement("div",{className:"".concat(H,"-description")},B.description),B.btn?s.createElement("span",{className:"".concat(H,"-btn")},B.btn):null),duration:G,closable:!0,onClose:B.onClose,onClick:B.onClick,key:B.key,style:B.style||{},className:B.className}}function P(B){k(B,function(H){var G=H.prefixCls,Y=H.instance;Y.notice(D(B,G))})}var j={open:P,close:function(H){Object.keys(C).forEach(function(G){return Promise.resolve(C[G]).then(function(Y){Y.removeNotice(H)})})},config:_,destroy:function(){Object.keys(C).forEach(function(H){Promise.resolve(C[H]).then(function(G){G.destroy()}),delete C[H]})}};["success","info","warning","error"].forEach(function(B){j[B]=function(H){return j.open((0,r.default)((0,r.default)({},H),{type:B}))}}),j.warn=j.warning,j.useNotification=(0,h.default)(k,D);var $=function(H){return v(void 0,void 0,void 0,o.default.mark(function G(){return o.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",process.env.NODE_ENV==="test"?C[H]:null);case 1:case"end":return W.stop()}},G)}))};e.getInstance=$;var q=j;e.default=q}(notification)),notification}var hasRequiredConfigProvider;function requireConfigProvider(){return hasRequiredConfigProvider||(hasRequiredConfigProvider=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return d.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return d.ConfigContext}}),e.default=e.configConsumerProps=void 0;var o=t(require_extends()),r=n(React__default.default),a=t(requireContext$2()),s=require$$5,l=t(requireUseMemo()),c=n(requireLocaleProvider()),u=t(requireLocaleReceiver()),d=requireContext(),f=n(requireSizeContext()),m=t(requireMessage()),p=t(requireNotification()),h=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];e.configConsumerProps=h;var v=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"],C=function(x){var w=x.children,O=x.csp,F=x.autoInsertSpaceInButton,b=x.form,_=x.locale,T=x.componentSize,k=x.direction,N=x.space,D=x.virtual,P=x.dropdownMatchSelectWidth,j=x.legacyLocale,$=x.parentContext,q=x.iconPrefixCls,B=r.useCallback(function(L,V){var M=x.prefixCls;if(V)return V;var A=M||$.getPrefixCls("");return L?"".concat(A,"-").concat(L):A},[$.getPrefixCls]),H=(0,o.default)((0,o.default)({},$),{csp:O,autoInsertSpaceInButton:F,locale:_||j,direction:k,space:N,virtual:D,dropdownMatchSelectWidth:P,getPrefixCls:B});v.forEach(function(L){var V=x[L];V&&(H[L]=V)});var G=(0,l.default)(function(){return H},H,function(L,V){var M=Object.keys(L),A=Object.keys(V);return M.length!==A.length||M.some(function(U){return L[U]!==V[U]})}),Y=r.useMemo(function(){return{prefixCls:q}},[q]),W=w,Z={};return _&&_.Form&&_.Form.defaultValidateMessages&&(Z=_.Form.defaultValidateMessages),b&&b.validateMessages&&(Z=(0,o.default)((0,o.default)({},Z),b.validateMessages)),Object.keys(Z).length>0&&(W=r.createElement(s.FormProvider,{validateMessages:Z},w)),_&&(W=r.createElement(c.default,{locale:_,_ANT_MARK__:c.ANT_MARK},W)),q&&(W=r.createElement(a.default.Provider,{value:Y},W)),T&&(W=r.createElement(f.SizeContextProvider,{size:T},W)),r.createElement(d.ConfigContext.Provider,{value:G},W)},I=function(x){return r.useEffect(function(){x.direction&&(m.default.config({rtl:x.direction==="rtl"}),p.default.config({rtl:x.direction==="rtl"}))},[x.direction]),r.createElement(u.default,null,function(w,O,F){return r.createElement(d.ConfigConsumer,null,function(b){return r.createElement(C,(0,o.default)({parentContext:b,legacyLocale:F},x))})})};I.ConfigContext=d.ConfigContext,I.SizeContext=f.default;var g=I;e.default=g}(configProvider)),configProvider}var hasRequiredInput;function requireInput(){return hasRequiredInput||(hasRequiredInput=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.fixControlledValue=C,e.resolveOnChange=I,e.getInputClassName=g,e.triggerFocus=y,e.default=void 0;var o=t(require_extends()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=t(requireDefineProperty()),u=n(React__default.default),d=t(requireClassnames()),f=t(requireOmit()),m=n(requireClearableLabeledInput()),p=requireConfigProvider(),h=t(requireSizeContext()),v=t(requireDevWarning());function C(O){return typeof O>"u"||O===null?"":O}function I(O,F,b){if(b){var _=F;if(F.type==="click"){_=Object.create(F),_.target=O,_.currentTarget=O;var T=O.value;O.value="",b(_),O.value=T;return}b(_)}}function g(O,F,b,_,T){var k;return(0,d.default)(O,(k={},(0,c.default)(k,"".concat(O,"-sm"),b==="small"),(0,c.default)(k,"".concat(O,"-lg"),b==="large"),(0,c.default)(k,"".concat(O,"-disabled"),_),(0,c.default)(k,"".concat(O,"-rtl"),T==="rtl"),(0,c.default)(k,"".concat(O,"-borderless"),!F),k))}function y(O,F){if(!!O){O.focus(F);var b=F||{},_=b.cursor;if(_){var T=O.value.length;switch(_){case"start":O.setSelectionRange(0,0);break;case"end":O.setSelectionRange(T,T);break;default:O.setSelectionRange(0,T)}}}}var x=function(O){(0,s.default)(b,O);var F=(0,l.default)(b);function b(_){var T;(0,r.default)(this,b),T=F.call(this,_),T.direction="ltr",T.focus=function(N){y(T.input,N)},T.saveClearableInput=function(N){T.clearableInput=N},T.saveInput=function(N){T.input=N},T.onFocus=function(N){var D=T.props.onFocus;T.setState({focused:!0},T.clearPasswordValueAttribute),D&&D(N)},T.onBlur=function(N){var D=T.props.onBlur;T.setState({focused:!1},T.clearPasswordValueAttribute),D&&D(N)},T.handleReset=function(N){T.setValue("",function(){T.focus()}),I(T.input,N,T.props.onChange)},T.renderInput=function(N,D,P){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},$=T.props,q=$.className,B=$.addonBefore,H=$.addonAfter,G=$.size,Y=$.disabled,W=(0,f.default)(T.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return u.createElement("input",(0,o.default)({autoComplete:j.autoComplete},W,{onChange:T.handleChange,onFocus:T.onFocus,onBlur:T.onBlur,onKeyDown:T.handleKeyDown,className:(0,d.default)(g(N,P,G||D,Y,T.direction),(0,c.default)({},q,q&&!B&&!H)),ref:T.saveInput}))},T.clearPasswordValueAttribute=function(){T.removePasswordTimeout=setTimeout(function(){T.input&&T.input.getAttribute("type")==="password"&&T.input.hasAttribute("value")&&T.input.removeAttribute("value")})},T.handleChange=function(N){T.setValue(N.target.value,T.clearPasswordValueAttribute),I(T.input,N,T.props.onChange)},T.handleKeyDown=function(N){var D=T.props,P=D.onPressEnter,j=D.onKeyDown;N.keyCode===13&&P&&P(N),j&&j(N)},T.renderComponent=function(N){var D=N.getPrefixCls,P=N.direction,j=N.input,$=T.state,q=$.value,B=$.focused,H=T.props,G=H.prefixCls,Y=H.bordered,W=Y===void 0?!0:Y,Z=D("input",G);return T.direction=P,u.createElement(h.default.Consumer,null,function(L){return u.createElement(m.default,(0,o.default)({size:L},T.props,{prefixCls:Z,inputType:"input",value:C(q),element:T.renderInput(Z,L,W,j),handleReset:T.handleReset,ref:T.saveClearableInput,direction:P,focused:B,triggerFocus:T.focus,bordered:W}))})};var k=typeof _.value>"u"?_.defaultValue:_.value;return T.state={value:k,focused:!1,prevValue:_.value},T}return(0,a.default)(b,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(T){return(0,m.hasPrefixSuffix)(T)!==(0,m.hasPrefixSuffix)(this.props)&&(0,v.default)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(T,k,N){this.input.setSelectionRange(T,k,N)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(T,k){this.props.value===void 0?this.setState({value:T},k):k==null||k()}},{key:"render",value:function(){return u.createElement(p.ConfigConsumer,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(T,k){var N=k.prevValue,D={prevValue:T.value};return(T.value!==void 0||N!==T.value)&&(D.value=T.value),D}}]),b}(u.Component);x.defaultProps={type:"text"};var w=x;e.default=w}(Input)),Input}var reactNode={},hasRequiredReactNode;function requireReactNode(){if(hasRequiredReactNode)return reactNode;hasRequiredReactNode=1;var e=interopRequireWildcard.exports;Object.defineProperty(reactNode,"__esModule",{value:!0}),reactNode.replaceElement=o,reactNode.cloneElement=r,reactNode.isValidElement=void 0;var n=e(React__default.default),t=n.isValidElement;reactNode.isValidElement=t;function o(a,s,l){return t(a)?n.cloneElement(a,typeof l=="function"?l(a.props||{}):l):s}function r(a,s){return o(a,a,s)}return reactNode}var hasRequiredClearableLabeledInput;function requireClearableLabeledInput(){return hasRequiredClearableLabeledInput||(hasRequiredClearableLabeledInput=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.hasPrefixSuffix=v,e.default=void 0;var o=t(requireDefineProperty()),r=t(requireClassCallCheck()),a=t(requireCreateClass()),s=t(requireInherits()),l=t(requireCreateSuper()),c=n(React__default.default),u=t(requireClassnames()),d=t(requireCloseCircleFilled()),f=requireType(),m=requireInput(),p=requireReactNode(),h=(0,f.tuple)("text","input");function v(y){return!!(y.prefix||y.suffix||y.allowClear)}function C(y){return!!(y.addonBefore||y.addonAfter)}var I=function(y){(0,s.default)(w,y);var x=(0,l.default)(w);function w(){var O;return(0,r.default)(this,w),O=x.apply(this,arguments),O.containerRef=c.createRef(),O.onInputMouseUp=function(F){var b;if(!((b=O.containerRef.current)===null||b===void 0)&&b.contains(F.target)){var _=O.props.triggerFocus;_==null||_()}},O}return(0,a.default)(w,[{key:"renderClearIcon",value:function(F){var b=this.props,_=b.allowClear,T=b.value,k=b.disabled,N=b.readOnly,D=b.handleReset;if(!_)return null;var P=!k&&!N&&T,j="".concat(F,"-clear-icon");return c.createElement(d.default,{onClick:D,className:(0,u.default)((0,o.default)({},"".concat(j,"-hidden"),!P),j),role:"button"})}},{key:"renderSuffix",value:function(F){var b=this.props,_=b.suffix,T=b.allowClear;return _||T?c.createElement("span",{className:"".concat(F,"-suffix")},this.renderClearIcon(F),_):null}},{key:"renderLabeledIcon",value:function(F,b){var _,T=this.props,k=T.focused,N=T.value,D=T.prefix,P=T.className,j=T.size,$=T.suffix,q=T.disabled,B=T.allowClear,H=T.direction,G=T.style,Y=T.readOnly,W=T.bordered,Z=this.renderSuffix(F);if(!v(this.props))return(0,p.cloneElement)(b,{value:N});var L=D?c.createElement("span",{className:"".concat(F,"-prefix")},D):null,V=(0,u.default)("".concat(F,"-affix-wrapper"),(_={},(0,o.default)(_,"".concat(F,"-affix-wrapper-focused"),k),(0,o.default)(_,"".concat(F,"-affix-wrapper-disabled"),q),(0,o.default)(_,"".concat(F,"-affix-wrapper-sm"),j==="small"),(0,o.default)(_,"".concat(F,"-affix-wrapper-lg"),j==="large"),(0,o.default)(_,"".concat(F,"-affix-wrapper-input-with-clear-btn"),$&&B&&N),(0,o.default)(_,"".concat(F,"-affix-wrapper-rtl"),H==="rtl"),(0,o.default)(_,"".concat(F,"-affix-wrapper-readonly"),Y),(0,o.default)(_,"".concat(F,"-affix-wrapper-borderless"),!W),(0,o.default)(_,"".concat(P),!C(this.props)&&P),_));return c.createElement("span",{ref:this.containerRef,className:V,style:G,onMouseUp:this.onInputMouseUp},L,(0,p.cloneElement)(b,{style:null,value:N,className:(0,m.getInputClassName)(F,W,j,q)}),Z)}},{key:"renderInputWithLabel",value:function(F,b){var _,T=this.props,k=T.addonBefore,N=T.addonAfter,D=T.style,P=T.size,j=T.className,$=T.direction;if(!C(this.props))return b;var q="".concat(F,"-group"),B="".concat(q,"-addon"),H=k?c.createElement("span",{className:B},k):null,G=N?c.createElement("span",{className:B},N):null,Y=(0,u.default)("".concat(F,"-wrapper"),q,(0,o.default)({},"".concat(q,"-rtl"),$==="rtl")),W=(0,u.default)("".concat(F,"-group-wrapper"),(_={},(0,o.default)(_,"".concat(F,"-group-wrapper-sm"),P==="small"),(0,o.default)(_,"".concat(F,"-group-wrapper-lg"),P==="large"),(0,o.default)(_,"".concat(F,"-group-wrapper-rtl"),$==="rtl"),_),j);return c.createElement("span",{className:W,style:D},c.createElement("span",{className:Y},H,(0,p.cloneElement)(b,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(F,b){var _,T=this.props,k=T.value,N=T.allowClear,D=T.className,P=T.style,j=T.direction,$=T.bordered;if(!N)return(0,p.cloneElement)(b,{value:k});var q=(0,u.default)("".concat(F,"-affix-wrapper"),"".concat(F,"-affix-wrapper-textarea-with-clear-btn"),(_={},(0,o.default)(_,"".concat(F,"-affix-wrapper-rtl"),j==="rtl"),(0,o.default)(_,"".concat(F,"-affix-wrapper-borderless"),!$),(0,o.default)(_,"".concat(D),!C(this.props)&&D),_));return c.createElement("span",{className:q,style:P},(0,p.cloneElement)(b,{style:null,value:k}),this.renderClearIcon(F))}},{key:"render",value:function(){var F=this.props,b=F.prefixCls,_=F.inputType,T=F.element;return _===h[0]?this.renderTextAreaWithClearIcon(b,T):this.renderInputWithLabel(b,this.renderLabeledIcon(b,T))}}]),w}(c.Component),g=I;e.default=g}(ClearableLabeledInput)),ClearableLabeledInput}(function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(_typeof$2.exports),r=t(requireToConsumableArray()),a=t(require_extends()),s=t(requireDefineProperty()),l=t(requireSlicedToArray()),c=n(React__default.default),u=t(require$$8),d=t(requireOmit()),f=t(requireClassnames()),m=t(requireUseMergedState()),p=t(requireClearableLabeledInput()),h=requireConfigProvider(),v=requireInput(),C=t(requireSizeContext()),I=function(x,w){var O={};for(var F in x)Object.prototype.hasOwnProperty.call(x,F)&&w.indexOf(F)<0&&(O[F]=x[F]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,F=Object.getOwnPropertySymbols(x);b<F.length;b++)w.indexOf(F[b])<0&&Object.prototype.propertyIsEnumerable.call(x,F[b])&&(O[F[b]]=x[F[b]]);return O},g=c.forwardRef(function(x,w){var O,F=x.prefixCls,b=x.bordered,_=b===void 0?!0:b,T=x.showCount,k=T===void 0?!1:T,N=x.maxLength,D=x.className,P=x.style,j=x.size,$=I(x,["prefixCls","bordered","showCount","maxLength","className","style","size"]),q=c.useContext(h.ConfigContext),B=q.getPrefixCls,H=q.direction,G=c.useContext(C.default),Y=c.useRef(null),W=c.useRef(null),Z=(0,m.default)($.defaultValue,{value:$.value}),L=(0,l.default)(Z,2),V=L[0],M=L[1],A=c.useRef($.value);c.useEffect(function(){($.value!==void 0||A.current!==$.value)&&(M($.value),A.current=$.value)},[$.value,A.current]);var U=function(ie,ce){$.value===void 0&&(M(ie),ce==null||ce())},K=function(ie){U(ie.target.value),(0,v.resolveOnChange)(Y.current,ie,$.onChange)},Q=function(ie){U("",function(){var ce;(ce=Y.current)===null||ce===void 0||ce.focus()}),(0,v.resolveOnChange)(Y.current,ie,$.onChange)},E=B("input",F);c.useImperativeHandle(w,function(){var ae;return{resizableTextArea:(ae=Y.current)===null||ae===void 0?void 0:ae.resizableTextArea,focus:function(ce){var pe,ge;(0,v.triggerFocus)((ge=(pe=Y.current)===null||pe===void 0?void 0:pe.resizableTextArea)===null||ge===void 0?void 0:ge.textArea,ce)},blur:function(){var ce;return(ce=Y.current)===null||ce===void 0?void 0:ce.blur()}}});var S=c.createElement(u.default,(0,a.default)({},(0,d.default)($,["allowClear"]),{maxLength:N,className:(0,f.default)((O={},(0,s.default)(O,"".concat(E,"-borderless"),!_),(0,s.default)(O,D,D&&!k),(0,s.default)(O,"".concat(E,"-sm"),G==="small"||j==="small"),(0,s.default)(O,"".concat(E,"-lg"),G==="large"||j==="large"),O)),style:k?void 0:P,prefixCls:E,onChange:K,ref:Y})),z=(0,v.fixControlledValue)(V),X=Number(N)>0;z=X?(0,r.default)(z).slice(0,N).join(""):z;var ne=c.createElement(p.default,(0,a.default)({},$,{prefixCls:E,direction:H,inputType:"text",value:z,element:S,handleReset:Q,ref:W,bordered:_}));if(k){var ee=Math.min(z.length,N!=null?N:1/0),re="";return(0,o.default)(k)==="object"?re=k.formatter({count:ee,maxLength:N}):re="".concat(ee).concat(X?" / ".concat(N):""),c.createElement("div",{className:(0,f.default)("".concat(E,"-textarea"),(0,s.default)({},"".concat(E,"-textarea-rtl"),H==="rtl"),"".concat(E,"-textarea-show-count"),D),style:P,"data-count":re},ne)}return ne}),y=g;e.default=y})(TextArea$3);const TextArea$1=getDefaultExportFromCjs(TextArea$3),{error:error$2,warning:warning$1}=antd.Modal,showDialog$8=e=>{let n,t,o;if(typeof e=="string"&&e.indexOf(" -- ")!==-1&&e.indexOf(`
88
88
 
89
89
  `)!==-1){const s=e.split(`
90
90
 
91
- `);n=s[1];const l=s[0].split(" -- ");t=l[0],o=l[1]}else n=e,t="error",o="Error";const r=t==="error"?jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}):jsxRuntime.jsx(Icon.WarningOutlined,{});(t==="error"?error$2:warning$1)({title:o,icon:r,centered:!0,content:n})},TranslationModal=e=>{const{visible:n,onCloseModal:t,model:o,id:r,field:a,onSubmitSucceed:s}=e,{modalWidth:l}=useWindowDimensions(),{t:c}=React.useContext(LocaleContext),[u,d]=React.useState([]),[f,m]=React.useState(!1),[p,g]=React.useState(!1),[v,C]=React.useState({}),I=React.useRef();React.useEffect(()=>{n?h():C({})},[n]);async function h(){m(!0);try{const b=await y();await x(b)}catch(b){showDialog$8(b)}m(!1)}async function y(){const S=(await ConnectionProvider.getHandler().search({params:[["translatable","=","1"]],fields:["code","name"],model:"res.lang"})).map(T=>({code:T.code,name:T.name}));return d==null||d(S),S}async function x(b){const S={};for(const T of b){const k=(await ConnectionProvider.getHandler().readObjects({model:o,ids:[r],fieldsToRetrieve:[a],context:{lang:T.code}}))[0];S[T.code]=k[a]||""}I.current=S,C(S)}function w(){return u.map((b,S)=>jsxRuntime.jsxs(antd.Row,{style:{paddingBottom:20},children:[jsxRuntime.jsx(antd.Col,{flex:"8rem",style:{paddingRight:10},children:b.name}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(TextArea$1,{rows:4,value:v[b.code]||"",onChange:T=>{C({...v,[b.code]:T.target.value})},disabled:p})})]},S))}async function O(){g(!0);try{for(const b of Object.keys(v))v[b]!==I.current[b]&&await ConnectionProvider.getHandler().update({model:o,id:r,values:{[a]:v[b]},context:{lang:b},fields:{}})}catch(b){showDialog$8(b)}g(!1),s()}function F(){return f?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w(),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:t,disabled:p,children:c("cancel")}),jsxRuntime.jsx(antd.Button,{icon:p?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.CheckOutlined,{}),disabled:p,onClick:O,style:{marginLeft:15},type:"primary",children:c("ok")})]})})]})}return jsxRuntime.jsx(antd.Modal,{title:c("translate"),centered:!0,width:l,visible:n,closable:!0,onCancel:t,footer:null,destroyOnClose:!0,maskClosable:!1,children:F()})};function ButtonWithTooltip(e){const{tooltip:n,...t}=e;return jsxRuntime.jsx(antd.Tooltip,{title:n,children:jsxRuntime.jsx(antd.Button,{...t})})}const{info}=antd.Modal,showDialog$7=e=>{info({title:"",centered:!0,content:e})},Char=e=>{const{ooui:n,isSearchField:t=!1}=e,{id:o,readOnly:r,isPassword:a,required:s,translatable:l}=n,c=s&&!r?Config.requiredClass:void 0,u=React.useContext(FormContext$1),{elementHasLostFocus:d}=u||{};let f=jsxRuntime.jsx(antd.Input,{disabled:r||l&&!t,id:o,className:c,maxLength:n.size,onBlur:d});return a&&(f=jsxRuntime.jsx(antd.Input.Password,{disabled:r,id:o,onBlur:d})),l&&!r&&!t&&(f=jsxRuntime.jsx(TranslatableChar,{field:o,requiredClass:c})),jsxRuntime.jsx(Field$1,{required:s,...e,children:f})},TranslatableChar=({value:e,field:n,requiredClass:t,onChange:o})=>{const r=React.useContext(FormContext$1),{activeId:a,activeModel:s,fetchValues:l,formHasChanges:c,elementHasLostFocus:u}=r||{},[d,f]=React.useState(!1),{t:m}=React.useContext(LocaleContext);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(c!=null&&c()){showDialog$7(m("saveBeforeTranslate"));return}d||f(!0)},children:jsxRuntime.jsx(antd.Input,{value:e,disabled:!0,id:n,className:t,onChange:p=>{o==null||o(p.target.value)},onBlur:u,style:{cursor:"pointer"}})}),jsxRuntime.jsx(TranslationModal,{id:a,model:s,field:n,visible:d,onCloseModal:()=>{f(!1)},onSubmitSucceed:()=>{f(!1),l==null||l()}})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(antd.Input,{value:e,id:n,className:t,onChange:p=>{o==null||o(p.target.value)},onBlur:u})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{c!=null&&c()?showDialog$7(m("saveBeforeTranslate")):showDialog$7(m("enterTextBeforeTranslate"))},children:m("translate")})})]})})},{Option:Option$1}=antd.Select,Selection=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(SelectionInput$1,{...e})})},SelectionInput$1=e=>{const{ooui:n,onChange:t,value:o}=e,{selectionValues:r,readOnly:a,required:s}=n,l=Array.from(r.entries()),c=l&&l.length&&l.map(d=>{const[f,m]=d;return jsxRuntime.jsx(Option$1,{value:f,children:m},f)}),u=s&&!a?RequiredSelect$1:antd.Select;return jsxRuntime.jsx(u,{disabled:a,onChange:t,value:o,optionFilterProp:"children",filterOption:(d,f)=>f.children.toLowerCase().indexOf(d.toLowerCase())>=0,showSearch:!0,children:c})},RequiredSelect$1=styled__default.default(antd.Select)`
91
+ `);n=s[1];const l=s[0].split(" -- ");t=l[0],o=l[1]}else n=e,t="error",o="Error";const r=t==="error"?jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}):jsxRuntime.jsx(Icon.WarningOutlined,{});(t==="error"?error$2:warning$1)({title:o,icon:r,centered:!0,content:n})},TranslationModal=e=>{const{visible:n,onCloseModal:t,model:o,id:r,field:a,onSubmitSucceed:s}=e,{modalWidth:l}=useWindowDimensions(),{t:c}=React.useContext(LocaleContext),[u,d]=React.useState([]),[f,m]=React.useState(!1),[p,h]=React.useState(!1),[v,C]=React.useState({}),I=React.useRef();React.useEffect(()=>{n?g():C({})},[n]);async function g(){m(!0);try{const b=await y();await x(b)}catch(b){showDialog$8(b)}m(!1)}async function y(){const _=(await ConnectionProvider.getHandler().search({params:[["translatable","=","1"]],fields:["code","name"],model:"res.lang"})).map(T=>({code:T.code,name:T.name}));return d==null||d(_),_}async function x(b){const _={};for(const T of b){const k=(await ConnectionProvider.getHandler().readObjects({model:o,ids:[r],fieldsToRetrieve:[a],context:{lang:T.code}}))[0];_[T.code]=k[a]||""}I.current=_,C(_)}function w(){return u.map((b,_)=>jsxRuntime.jsxs(antd.Row,{style:{paddingBottom:20},children:[jsxRuntime.jsx(antd.Col,{flex:"8rem",style:{paddingRight:10},children:b.name}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(TextArea$1,{rows:4,value:v[b.code]||"",onChange:T=>{C({...v,[b.code]:T.target.value})},disabled:p})})]},_))}async function O(){h(!0);try{for(const b of Object.keys(v))v[b]!==I.current[b]&&await ConnectionProvider.getHandler().update({model:o,id:r,values:{[a]:v[b]},context:{lang:b},fields:{}})}catch(b){showDialog$8(b)}h(!1),s()}function F(){return f?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w(),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:t,disabled:p,children:c("cancel")}),jsxRuntime.jsx(antd.Button,{icon:p?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.CheckOutlined,{}),disabled:p,onClick:O,style:{marginLeft:15},type:"primary",children:c("ok")})]})})]})}return jsxRuntime.jsx(antd.Modal,{title:c("translate"),centered:!0,width:l,visible:n,closable:!0,onCancel:t,footer:null,destroyOnClose:!0,maskClosable:!1,children:F()})};function ButtonWithTooltip(e){const{tooltip:n,...t}=e;return jsxRuntime.jsx(antd.Tooltip,{title:n,children:jsxRuntime.jsx(antd.Button,{...t})})}const{info}=antd.Modal,showDialog$7=e=>{info({title:"",centered:!0,content:e})},Char=e=>{const{ooui:n,isSearchField:t=!1}=e,{id:o,readOnly:r,isPassword:a,required:s,translatable:l}=n,c=s&&!r?Config.requiredClass:void 0,u=React.useContext(FormContext$1),{elementHasLostFocus:d}=u||{};let f=jsxRuntime.jsx(antd.Input,{disabled:r||l&&!t,id:o,className:c,maxLength:n.size,onBlur:d});return a&&(f=jsxRuntime.jsx(antd.Input.Password,{disabled:r,id:o,onBlur:d})),l&&!r&&!t&&(f=jsxRuntime.jsx(TranslatableChar,{field:o,requiredClass:c})),jsxRuntime.jsx(Field$1,{required:s,...e,children:f})},TranslatableChar=({value:e,field:n,requiredClass:t,onChange:o})=>{const r=React.useContext(FormContext$1),{activeId:a,activeModel:s,fetchValues:l,formHasChanges:c,elementHasLostFocus:u}=r||{},[d,f]=React.useState(!1),{t:m}=React.useContext(LocaleContext);return a?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(c!=null&&c()){showDialog$7(m("saveBeforeTranslate"));return}d||f(!0)},children:jsxRuntime.jsx(antd.Input,{value:e,disabled:!0,id:n,className:t,onChange:p=>{o==null||o(p.target.value)},onBlur:u,style:{cursor:"pointer"}})}),jsxRuntime.jsx(TranslationModal,{id:a,model:s,field:n,visible:d,onCloseModal:()=>{f(!1)},onSubmitSucceed:()=>{f(!1),l==null||l()}})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(antd.Input,{value:e,id:n,className:t,onChange:p=>{o==null||o(p.target.value)},onBlur:u})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{c!=null&&c()?showDialog$7(m("saveBeforeTranslate")):showDialog$7(m("enterTextBeforeTranslate"))},children:m("translate")})})]})})},{Option:Option$1}=antd.Select,Selection=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(SelectionInput$1,{...e})})},SelectionInput$1=e=>{const{ooui:n,onChange:t,value:o}=e,{selectionValues:r,readOnly:a,required:s}=n,l=Array.from(r.entries()),c=l&&l.length&&l.map(d=>{const[f,m]=d;return jsxRuntime.jsx(Option$1,{value:f,children:m},f)}),u=s&&!a?RequiredSelect$1:antd.Select;return jsxRuntime.jsx(u,{disabled:a,onChange:t,value:o,optionFilterProp:"children",filterOption:(d,f)=>f.children.toLowerCase().indexOf(d.toLowerCase())>=0,showSearch:!0,children:c})},RequiredSelect$1=styled__default.default(antd.Select)`
92
92
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
93
93
  background-color: ${Config.requiredColor};
94
94
  }
@@ -100,11 +100,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
100
100
  .ant-checkbox-checked .ant-checkbox-inner {
101
101
  background-color: #089cff;
102
102
  }
103
- `;function isObject$3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var isObject_1=isObject$3,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=_root,now$2=function(){return root$1.Date.now()},now_1=now$2,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var n=e.length;n--&&reWhitespace.test(e.charAt(n)););return n}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(e){var n=hasOwnProperty.call(e,symToStringTag$1),t=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var o=!0}catch{}var r=nativeObjectToString$1.call(e);return o&&(n?e[symToStringTag$1]=t:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag$1(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$2(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$1=isObject_1,now$1=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,n,t){var o,r,a,s,l,c,u=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);n=toNumber(n)||0,isObject$1(t)&&(d=!!t.leading,f="maxWait"in t,a=f?nativeMax(toNumber(t.maxWait)||0,n):a,m="trailing"in t?!!t.trailing:m);function p(O){var F=o,b=r;return o=r=void 0,u=O,s=e.apply(b,F),s}function g(O){return u=O,l=setTimeout(I,n),d?p(O):s}function v(O){var F=O-c,b=O-u,S=n-F;return f?nativeMin(S,a-b):S}function C(O){var F=O-c,b=O-u;return c===void 0||F>=n||F<0||f&&b>=a}function I(){var O=now$1();if(C(O))return h(O);l=setTimeout(I,v(O))}function h(O){return l=void 0,m&&o?p(O):(o=r=void 0,s)}function y(){l!==void 0&&clearTimeout(l),u=0,o=c=r=l=void 0}function x(){return l===void 0?s:h(now$1())}function w(){var O=now$1(),F=C(O);if(o=arguments,r=this,c=O,F){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(I,n),p(c)}return l===void 0&&(l=setTimeout(I,n)),s}return w.cancel=y,w.flush=x,w}var debounce_1=debounce,browser$1={exports:{}},lib$2={},readableBrowser={exports:{}},events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(n,t,o){return Function.prototype.apply.call(n,t,o)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:ReflectOwnKeys=function(n){return Object.getOwnPropertyNames(n)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}var NumberIsNaN=Number.isNaN||function(n){return n!==n};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter,events.exports.once=once$2,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if(typeof e!="number"||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||NumberIsNaN(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function _getMaxListeners(e){return e._maxListeners===void 0?EventEmitter.defaultMaxListeners:e._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(n){for(var t=[],o=1;o<arguments.length;o++)t.push(arguments[o]);var r=n==="error",a=this._events;if(a!==void 0)r=r&&a.error===void 0;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=a[n];if(c===void 0)return!1;if(typeof c=="function")ReflectApply(c,this,t);else for(var u=c.length,d=arrayClone(c,u),o=0;o<u;++o)ReflectApply(d[o],this,t);return!0};function _addListener(e,n,t,o){var r,a,s;if(checkListener(t),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",n,t.listener?t.listener:t),a=e._events),s=a[n]),s===void 0)s=a[n]=t,++e._eventsCount;else if(typeof s=="function"?s=a[n]=o?[t,s]:[s,t]:o?s.unshift(t):s.push(t),r=_getMaxListeners(e),r>0&&s.length>r&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=n,l.count=s.length,ProcessEmitWarning(l)}return e}EventEmitter.prototype.addListener=function(n,t){return _addListener(this,n,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(n,t){return _addListener(this,n,t,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,n,t){var o={fired:!1,wrapFn:void 0,target:e,type:n,listener:t},r=onceWrapper.bind(o);return r.listener=t,o.wrapFn=r,r}EventEmitter.prototype.once=function(n,t){return checkListener(t),this.on(n,_onceWrap(this,n,t)),this},EventEmitter.prototype.prependOnceListener=function(n,t){return checkListener(t),this.prependListener(n,_onceWrap(this,n,t)),this},EventEmitter.prototype.removeListener=function(n,t){var o,r,a,s,l;if(checkListener(t),r=this._events,r===void 0)return this;if(o=r[n],o===void 0)return this;if(o===t||o.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[n],r.removeListener&&this.emit("removeListener",n,o.listener||t));else if(typeof o!="function"){for(a=-1,s=o.length-1;s>=0;s--)if(o[s]===t||o[s].listener===t){l=o[s].listener,a=s;break}if(a<0)return this;a===0?o.shift():spliceOne(o,a),o.length===1&&(r[n]=o[0]),r.removeListener!==void 0&&this.emit("removeListener",n,l||t)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(n){var t,o,r;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[n]),this;if(arguments.length===0){var a=Object.keys(o),s;for(r=0;r<a.length;++r)s=a[r],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=o[n],typeof t=="function")this.removeListener(n,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(n,t[r]);return this};function _listeners(e,n,t){var o=e._events;if(o===void 0)return[];var r=o[n];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?unwrapListeners(r):arrayClone(r,r.length)}EventEmitter.prototype.listeners=function(n){return _listeners(this,n,!0)},EventEmitter.prototype.rawListeners=function(n){return _listeners(this,n,!1)},EventEmitter.listenerCount=function(e,n){return typeof e.listenerCount=="function"?e.listenerCount(n):listenerCount.call(e,n)},EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(e){var n=this._events;if(n!==void 0){var t=n[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(e,n){for(var t=new Array(n),o=0;o<n;++o)t[o]=e[o];return t}function spliceOne(e,n){for(;n+1<e.length;n++)e[n]=e[n+1];e.pop()}function unwrapListeners(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}function once$2(e,n){return new Promise(function(t,o){function r(s){e.removeListener(n,a),o(s)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",r),t([].slice.call(arguments))}eventTargetAgnosticAddListener(e,n,a,{once:!0}),n!=="error"&&addErrorHandlerIfEventEmitter(e,r,{once:!0})})}function addErrorHandlerIfEventEmitter(e,n,t){typeof e.on=="function"&&eventTargetAgnosticAddListener(e,"error",n,t)}function eventTargetAgnosticAddListener(e,n,t,o){if(typeof e.on=="function")o.once?e.once(n,t):e.on(n,t);else if(typeof e.addEventListener=="function")e.addEventListener(n,function r(a){o.once&&e.removeEventListener(n,r),t(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var streamBrowser=events.exports.EventEmitter;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(__viteBrowserExternal$1);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function e(m,p){var g=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);p&&(v=v.filter(function(C){return Object.getOwnPropertyDescriptor(m,C).enumerable})),g.push.apply(g,v)}return g}function n(m){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?e(Object(g),!0).forEach(function(v){t(m,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(v){Object.defineProperty(m,v,Object.getOwnPropertyDescriptor(g,v))})}return m}function t(m,p,g){return p in m?Object.defineProperty(m,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[p]=g,m}function o(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function r(m,p){for(var g=0;g<p.length;g++){var v=p[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function a(m,p,g){return p&&r(m.prototype,p),g&&r(m,g),m}var s=require$$0__default.default,l=s.Buffer,c=require$$3,u=c.inspect,d=u&&u.custom||"inspect";function f(m,p,g){l.prototype.copy.call(m,p,g)}return buffer_list=function(){function m(){o(this,m),this.head=null,this.tail=null,this.length=0}return a(m,[{key:"push",value:function(g){var v={data:g,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(g){var v={data:g,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var v=this.head,C=""+v.data;v=v.next;)C+=g+v.data;return C}},{key:"concat",value:function(g){if(this.length===0)return l.alloc(0);for(var v=l.allocUnsafe(g>>>0),C=this.head,I=0;C;)f(C.data,v,I),I+=C.data.length,C=C.next;return v}},{key:"consume",value:function(g,v){var C;return g<this.head.data.length?(C=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?C=this.shift():C=v?this._getString(g):this._getBuffer(g),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var v=this.head,C=1,I=v.data;for(g-=I.length;v=v.next;){var h=v.data,y=g>h.length?h.length:g;if(y===h.length?I+=h:I+=h.slice(0,g),g-=y,g===0){y===h.length?(++C,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=h.slice(y));break}++C}return this.length-=C,I}},{key:"_getBuffer",value:function(g){var v=l.allocUnsafe(g),C=this.head,I=1;for(C.data.copy(v),g-=C.data.length;C=C.next;){var h=C.data,y=g>h.length?h.length:g;if(h.copy(v,v.length-g,0,y),g-=y,g===0){y===h.length?(++I,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=h.slice(y));break}++I}return this.length-=I,v}},{key:d,value:function(g,v){return u(this,n({},v,{depth:0,customInspect:!1}))}}]),m}(),buffer_list}function destroy(e,n){var t=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(n?n(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,e)):process.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!n&&a?t._writableState?t._writableState.errorEmitted?process.nextTick(emitCloseNT,t):(t._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,t,a)):process.nextTick(emitErrorAndCloseNT,t,a):n?(process.nextTick(emitCloseNT,t),n(a)):process.nextTick(emitCloseNT,t)}),this)}function emitErrorAndCloseNT(e,n){emitErrorNT(e,n),emitCloseNT(e)}function emitCloseNT(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,n){e.emit("error",n)}function errorOrDestroy(e,n){var t=e._readableState,o=e._writableState;t&&t.autoDestroy||o&&o.autoDestroy?e.destroy(n):e.emit("error",n)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var codes={};function createErrorType(e,n,t){t||(t=Error);function o(a,s,l){return typeof n=="string"?n:n(a,s,l)}var r=function(a){_inheritsLoose(s,a);function s(l,c,u){return a.call(this,o(l,c,u))||this}return s}(t);r.prototype.name=t.name,r.prototype.code=e,codes[e]=r}function oneOf(e,n){if(Array.isArray(e)){var t=e.length;return e=e.map(function(o){return String(o)}),t>2?"one of ".concat(n," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(n," ").concat(e[0]," or ").concat(e[1]):"of ".concat(n," ").concat(e[0])}else return"of ".concat(n," ").concat(String(e))}function startsWith(e,n,t){return e.substr(!t||t<0?0:+t,n.length)===n}function endsWith(e,n,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-n.length,t)===n}function includes(e,n,t){return typeof t!="number"&&(t=0),t+n.length>e.length?!1:e.indexOf(n,t)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(e,n){return'The value "'+n+'" is invalid for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,n,t){var o;typeof n=="string"&&startsWith(n,"not ")?(o="must not be",n=n.replace(/^not /,"")):o="must be";var r;if(endsWith(e," argument"))r="The ".concat(e," ").concat(o," ").concat(oneOf(n,"type"));else{var a=includes(e,".")?"property":"argument";r='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(oneOf(n,"type"))}return r+=". Received type ".concat(typeof t),r},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,n,t){return e.highWaterMark!=null?e.highWaterMark:n?e[t]:null}function getHighWaterMark(e,n,t,o){var r=highWaterMarkFrom(n,o,t);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var a=o?t:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(a,r)}return Math.floor(r)}return e.objectMode?16:16*1024}var state={getHighWaterMark},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,t){if(t){n.super_=t;var o=function(){};o.prototype=t.prototype,n.prototype=new o,n.prototype.constructor=n}};var browser=deprecate$1;function deprecate$1(e,n){if(config("noDeprecation"))return e;var t=!1;function o(){if(!t){if(config("throwDeprecation"))throw new Error(n);config("traceDeprecation")?console.trace(n):console.warn(n),t=!0}return e.apply(this,arguments)}return o}function config(e){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var n=commonjsGlobal.localStorage[e];return n==null?!1:String(n).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=b;function e(j){var A=this;this.next=null,this.entry=null,this.finish=function(){W(A,j)}}var n;b.WritableState=O;var t={deprecate:browser},o=streamBrowser,r=require$$0__default.default.Buffer,a=commonjsGlobal.Uint8Array||function(){};function s(j){return r.from(j)}function l(j){return r.isBuffer(j)||j instanceof a}var c=destroy_1,u=state,d=u.getHighWaterMark,f=errorsBrowser.codes,m=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,C=f.ERR_STREAM_DESTROYED,I=f.ERR_STREAM_NULL_VALUES,h=f.ERR_STREAM_WRITE_AFTER_END,y=f.ERR_UNKNOWN_ENCODING,x=c.errorOrDestroy;inherits_browser.exports(b,o);function w(){}function O(j,A,$){n=n||require_stream_duplex(),j=j||{},typeof $!="boolean"&&($=A instanceof n),this.objectMode=!!j.objectMode,$&&(this.objectMode=this.objectMode||!!j.writableObjectMode),this.highWaterMark=d(this,j,"writableHighWaterMark",$),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=j.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=j.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){q(A,Q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}O.prototype.getBuffer=function(){for(var A=this.bufferedRequest,$=[];A;)$.push(A),A=A.next;return $},function(){try{Object.defineProperty(O.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var F;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(F=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(A){return F.call(this,A)?!0:this!==b?!1:A&&A._writableState instanceof O}})):F=function(A){return A instanceof this};function b(j){n=n||require_stream_duplex();var A=this instanceof n;if(!A&&!F.call(b,this))return new b(j);this._writableState=new O(j,this,A),this.writable=!0,j&&(typeof j.write=="function"&&(this._write=j.write),typeof j.writev=="function"&&(this._writev=j.writev),typeof j.destroy=="function"&&(this._destroy=j.destroy),typeof j.final=="function"&&(this._final=j.final)),o.call(this)}b.prototype.pipe=function(){x(this,new v)};function S(j,A){var $=new h;x(j,$),process.nextTick(A,$)}function T(j,A,$,Z){var Q;return $===null?Q=new I:typeof $!="string"&&!A.objectMode&&(Q=new m("chunk",["string","Buffer"],$)),Q?(x(j,Q),process.nextTick(Z,Q),!1):!0}b.prototype.write=function(j,A,$){var Z=this._writableState,Q=!1,E=!Z.objectMode&&l(j);return E&&!r.isBuffer(j)&&(j=s(j)),typeof A=="function"&&($=A,A=null),E?A="buffer":A||(A=Z.defaultEncoding),typeof $!="function"&&($=w),Z.ending?S(this,$):(E||T(this,Z,j,$))&&(Z.pendingcb++,Q=L(this,Z,E,j,A,$)),Q},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var j=this._writableState;j.corked&&(j.corked--,!j.writing&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&V(this,j))},b.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new y(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(b.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function k(j,A,$){return!j.objectMode&&j.decodeStrings!==!1&&typeof A=="string"&&(A=r.from(A,$)),A}Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(j,A,$,Z,Q,E){if(!$){var _=k(A,Z,Q);Z!==_&&($=!0,Q="buffer",Z=_)}var z=A.objectMode?1:Z.length;A.length+=z;var X=A.length<A.highWaterMark;if(X||(A.needDrain=!0),A.writing||A.corked){var ne=A.lastBufferedRequest;A.lastBufferedRequest={chunk:Z,encoding:Q,isBuf:$,callback:E,next:null},ne?ne.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else D(j,A,!1,z,Z,Q,E);return X}function D(j,A,$,Z,Q,E,_){A.writelen=Z,A.writecb=_,A.writing=!0,A.sync=!0,A.destroyed?A.onwrite(new C("write")):$?j._writev(Q,A.onwrite):j._write(Q,E,A.onwrite),A.sync=!1}function P(j,A,$,Z,Q){--A.pendingcb,$?(process.nextTick(Q,Z),process.nextTick(K,j,A),j._writableState.errorEmitted=!0,x(j,Z)):(Q(Z),j._writableState.errorEmitted=!0,x(j,Z),K(j,A))}function M(j){j.writing=!1,j.writecb=null,j.length-=j.writelen,j.writelen=0}function q(j,A){var $=j._writableState,Z=$.sync,Q=$.writecb;if(typeof Q!="function")throw new g;if(M($),A)P(j,$,Z,A,Q);else{var E=G($)||j.destroyed;!E&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&V(j,$),Z?process.nextTick(U,j,$,E,Q):U(j,$,E,Q)}}function U(j,A,$,Z){$||B(j,A),A.pendingcb--,Z(),K(j,A)}function B(j,A){A.length===0&&A.needDrain&&(A.needDrain=!1,j.emit("drain"))}function V(j,A){A.bufferProcessing=!0;var $=A.bufferedRequest;if(j._writev&&$&&$.next){var Z=A.bufferedRequestCount,Q=new Array(Z),E=A.corkedRequestsFree;E.entry=$;for(var _=0,z=!0;$;)Q[_]=$,$.isBuf||(z=!1),$=$.next,_+=1;Q.allBuffers=z,D(j,A,!0,A.length,Q,"",E.finish),A.pendingcb++,A.lastBufferedRequest=null,E.next?(A.corkedRequestsFree=E.next,E.next=null):A.corkedRequestsFree=new e(A),A.bufferedRequestCount=0}else{for(;$;){var X=$.chunk,ne=$.encoding,ee=$.callback,oe=A.objectMode?1:X.length;if(D(j,A,!1,oe,X,ne,ee),$=$.next,A.bufferedRequestCount--,A.writing)break}$===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=$,A.bufferProcessing=!1}b.prototype._write=function(j,A,$){$(new p("_write()"))},b.prototype._writev=null,b.prototype.end=function(j,A,$){var Z=this._writableState;return typeof j=="function"?($=j,j=null,A=null):typeof A=="function"&&($=A,A=null),j!=null&&this.write(j,A),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||N(this,Z,$),this},Object.defineProperty(b.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function G(j){return j.ending&&j.length===0&&j.bufferedRequest===null&&!j.finished&&!j.writing}function Y(j,A){j._final(function($){A.pendingcb--,$&&x(j,$),A.prefinished=!0,j.emit("prefinish"),K(j,A)})}function H(j,A){!A.prefinished&&!A.finalCalled&&(typeof j._final=="function"&&!A.destroyed?(A.pendingcb++,A.finalCalled=!0,process.nextTick(Y,j,A)):(A.prefinished=!0,j.emit("prefinish")))}function K(j,A){var $=G(A);if($&&(H(j,A),A.pendingcb===0&&(A.finished=!0,j.emit("finish"),A.autoDestroy))){var Z=j._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&j.destroy()}return $}function N(j,A,$){A.ending=!0,K(j,A),$&&(A.finished?process.nextTick($):j.once("finish",$)),A.ended=!0,j.writable=!1}function W(j,A,$){var Z=j.entry;for(j.entry=null;Z;){var Q=Z.callback;A.pendingcb--,Q($),Z=Z.next}A.corkedRequestsFree.next=j}return Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(A){!this._writableState||(this._writableState.destroyed=A)}}),b.prototype.destroy=c.destroy,b.prototype._undestroy=c.undestroy,b.prototype._destroy=function(j,A){A(j)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(u){var d=[];for(var f in u)d.push(f);return d};_stream_duplex=s;var n=require_stream_readable(),t=require_stream_writable();inherits_browser.exports(s,n);for(var o=e(t.prototype),r=0;r<o.length;r++){var a=o[r];s.prototype[a]||(s.prototype[a]=t.prototype[a])}function s(u){if(!(this instanceof s))return new s(u);n.call(this,u),t.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),_stream_duplex}var string_decoder={},safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,n){var t=require$$0__default.default,o=t.Buffer;function r(s,l){for(var c in s)l[c]=s[c]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=t:(r(t,n),n.Buffer=a);function a(s,l,c){return o(s,l,c)}r(o,a),a.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return o(s,l,c)},a.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=o(s);return l!==void 0?typeof c=="string"?u.fill(l,c):u.fill(l):u.fill(0),u},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return o(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,n=e.isEncoding||function(I){switch(I=""+I,I&&I.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(I){if(!I)return"utf8";for(var h;;)switch(I){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return I;default:if(h)return;I=(""+I).toLowerCase(),h=!0}}function o(I){var h=t(I);if(typeof h!="string"&&(e.isEncoding===n||!n(I)))throw new Error("Unknown encoding: "+I);return h||I}string_decoder.StringDecoder=r;function r(I){this.encoding=o(I);var h;switch(this.encoding){case"utf16le":this.text=f,this.end=m,h=4;break;case"utf8":this.fillLast=c,h=4;break;case"base64":this.text=p,this.end=g,h=3;break;default:this.write=v,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(h)}r.prototype.write=function(I){if(I.length===0)return"";var h,y;if(this.lastNeed){if(h=this.fillLast(I),h===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<I.length?h?h+this.text(I,y):this.text(I,y):h||""},r.prototype.end=d,r.prototype.text=u,r.prototype.fillLast=function(I){if(this.lastNeed<=I.length)return I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,I.length),this.lastNeed-=I.length};function a(I){return I<=127?0:I>>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function s(I,h,y){var x=h.length-1;if(x<y)return 0;var w=a(h[x]);return w>=0?(w>0&&(I.lastNeed=w-1),w):--x<y||w===-2?0:(w=a(h[x]),w>=0?(w>0&&(I.lastNeed=w-2),w):--x<y||w===-2?0:(w=a(h[x]),w>=0?(w>0&&(w===2?w=0:I.lastNeed=w-3),w):0))}function l(I,h,y){if((h[0]&192)!==128)return I.lastNeed=0,"\uFFFD";if(I.lastNeed>1&&h.length>1){if((h[1]&192)!==128)return I.lastNeed=1,"\uFFFD";if(I.lastNeed>2&&h.length>2&&(h[2]&192)!==128)return I.lastNeed=2,"\uFFFD"}}function c(I){var h=this.lastTotal-this.lastNeed,y=l(this,I);if(y!==void 0)return y;if(this.lastNeed<=I.length)return I.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,h,0,I.length),this.lastNeed-=I.length}function u(I,h){var y=s(this,I,h);if(!this.lastNeed)return I.toString("utf8",h);this.lastTotal=y;var x=I.length-(y-this.lastNeed);return I.copy(this.lastChar,0,x),I.toString("utf8",h,x)}function d(I){var h=I&&I.length?this.write(I):"";return this.lastNeed?h+"\uFFFD":h}function f(I,h){if((I.length-h)%2===0){var y=I.toString("utf16le",h);if(y){var x=y.charCodeAt(y.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",h,I.length-1)}function m(I){var h=I&&I.length?this.write(I):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,y)}return h}function p(I,h){var y=(I.length-h)%3;return y===0?I.toString("base64",h):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",h,I.length-y))}function g(I){var h=I&&I.length?this.write(I):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function v(I){return I.toString(this.encoding)}function C(I){return I&&I.length?this.write(I):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(e){var n=!1;return function(){if(!n){n=!0;for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];e.apply(this,o)}}}function noop$2(){}function isRequest$1(e){return e.setHeader&&typeof e.abort=="function"}function eos$1(e,n,t){if(typeof n=="function")return eos$1(e,null,n);n||(n={}),t=once$1(t||noop$2);var o=n.readable||n.readable!==!1&&e.readable,r=n.writable||n.writable!==!1&&e.writable,a=function(){e.writable||l()},s=e._writableState&&e._writableState.finished,l=function(){r=!1,s=!0,o||t.call(e)},c=e._readableState&&e._readableState.endEmitted,u=function(){o=!1,c=!0,r||t.call(e)},d=function(g){t.call(e,g)},f=function(){var g;if(o&&!c)return(!e._readableState||!e._readableState.ended)&&(g=new ERR_STREAM_PREMATURE_CLOSE),t.call(e,g);if(r&&!s)return(!e._writableState||!e._writableState.ended)&&(g=new ERR_STREAM_PREMATURE_CLOSE),t.call(e,g)},m=function(){e.req.on("finish",l)};return isRequest$1(e)?(e.on("complete",l),e.on("abort",f),e.req?m():e.on("request",m)):r&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",u),e.on("finish",l),n.error!==!1&&e.on("error",d),e.on("close",f),function(){e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",m),e.req&&e.req.removeListener("finish",l),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",l),e.removeListener("end",u),e.removeListener("error",d),e.removeListener("close",f)}}var endOfStream=eos$1,async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var e;function n(I,h,y){return h in I?Object.defineProperty(I,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):I[h]=y,I}var t=endOfStream,o=Symbol("lastResolve"),r=Symbol("lastReject"),a=Symbol("error"),s=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),u=Symbol("stream");function d(I,h){return{value:I,done:h}}function f(I){var h=I[o];if(h!==null){var y=I[u].read();y!==null&&(I[l]=null,I[o]=null,I[r]=null,h(d(y,!1)))}}function m(I){process.nextTick(f,I)}function p(I,h){return function(y,x){I.then(function(){if(h[s]){y(d(void 0,!0));return}h[c](y,x)},x)}}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[u]},next:function(){var h=this,y=this[a];if(y!==null)return Promise.reject(y);if(this[s])return Promise.resolve(d(void 0,!0));if(this[u].destroyed)return new Promise(function(F,b){process.nextTick(function(){h[a]?b(h[a]):F(d(void 0,!0))})});var x=this[l],w;if(x)w=new Promise(p(x,this));else{var O=this[u].read();if(O!==null)return Promise.resolve(d(O,!1));w=new Promise(this[c])}return this[l]=w,w}},n(e,Symbol.asyncIterator,function(){return this}),n(e,"return",function(){var h=this;return new Promise(function(y,x){h[u].destroy(null,function(w){if(w){x(w);return}y(d(void 0,!0))})})}),e),g),C=function(h){var y,x=Object.create(v,(y={},n(y,u,{value:h,writable:!0}),n(y,o,{value:null,writable:!0}),n(y,r,{value:null,writable:!0}),n(y,a,{value:null,writable:!0}),n(y,s,{value:h._readableState.endEmitted,writable:!0}),n(y,c,{value:function(O,F){var b=x[u].read();b?(x[l]=null,x[o]=null,x[r]=null,O(d(b,!1))):(x[o]=O,x[r]=F)},writable:!0}),y));return x[l]=null,t(h,function(w){if(w&&w.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=x[r];O!==null&&(x[l]=null,x[o]=null,x[r]=null,O(w)),x[a]=w;return}var F=x[o];F!==null&&(x[l]=null,x[o]=null,x[r]=null,F(d(void 0,!0))),x[s]=!0}),h.on("readable",m.bind(null,x)),x};return async_iterator=C,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=S;var e;S.ReadableState=b,events.exports.EventEmitter;var n=function(_,z){return _.listeners(z).length},t=streamBrowser,o=require$$0__default.default.Buffer,r=commonjsGlobal.Uint8Array||function(){};function a(E){return o.from(E)}function s(E){return o.isBuffer(E)||E instanceof r}var l=require$$3,c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var u=requireBuffer_list(),d=destroy_1,f=state,m=f.getHighWaterMark,p=errorsBrowser.codes,g=p.ERR_INVALID_ARG_TYPE,v=p.ERR_STREAM_PUSH_AFTER_EOF,C=p.ERR_METHOD_NOT_IMPLEMENTED,I=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,h,y,x;inherits_browser.exports(S,t);var w=d.errorOrDestroy,O=["error","close","destroy","pause","resume"];function F(E,_,z){if(typeof E.prependListener=="function")return E.prependListener(_,z);!E._events||!E._events[_]?E.on(_,z):Array.isArray(E._events[_])?E._events[_].unshift(z):E._events[_]=[z,E._events[_]]}function b(E,_,z){e=e||require_stream_duplex(),E=E||{},typeof z!="boolean"&&(z=_ instanceof e),this.objectMode=!!E.objectMode,z&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=m(this,E,"readableHighWaterMark",z),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(h||(h=requireString_decoder().StringDecoder),this.decoder=new h(E.encoding),this.encoding=E.encoding)}function S(E){if(e=e||require_stream_duplex(),!(this instanceof S))return new S(E);var _=this instanceof e;this._readableState=new b(E,this,_),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),t.call(this)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(_){!this._readableState||(this._readableState.destroyed=_)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(E,_){_(E)},S.prototype.push=function(E,_){var z=this._readableState,X;return z.objectMode?X=!0:typeof E=="string"&&(_=_||z.defaultEncoding,_!==z.encoding&&(E=o.from(E,_),_=""),X=!0),T(this,E,_,!1,X)},S.prototype.unshift=function(E){return T(this,E,null,!0,!1)};function T(E,_,z,X,ne){c("readableAddChunk",_);var ee=E._readableState;if(_===null)ee.reading=!1,q(E,ee);else{var oe;if(ne||(oe=L(ee,_)),oe)w(E,oe);else if(ee.objectMode||_&&_.length>0)if(typeof _!="string"&&!ee.objectMode&&Object.getPrototypeOf(_)!==o.prototype&&(_=a(_)),X)ee.endEmitted?w(E,new I):k(E,ee,_,!0);else if(ee.ended)w(E,new v);else{if(ee.destroyed)return!1;ee.reading=!1,ee.decoder&&!z?(_=ee.decoder.write(_),ee.objectMode||_.length!==0?k(E,ee,_,!1):V(E,ee)):k(E,ee,_,!1)}else X||(ee.reading=!1,V(E,ee))}return!ee.ended&&(ee.length<ee.highWaterMark||ee.length===0)}function k(E,_,z,X){_.flowing&&_.length===0&&!_.sync?(_.awaitDrain=0,E.emit("data",z)):(_.length+=_.objectMode?1:z.length,X?_.buffer.unshift(z):_.buffer.push(z),_.needReadable&&U(E)),V(E,_)}function L(E,_){var z;return!s(_)&&typeof _!="string"&&_!==void 0&&!E.objectMode&&(z=new g("chunk",["string","Buffer","Uint8Array"],_)),z}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(E){h||(h=requireString_decoder().StringDecoder);var _=new h(E);this._readableState.decoder=_,this._readableState.encoding=this._readableState.decoder.encoding;for(var z=this._readableState.buffer.head,X="";z!==null;)X+=_.write(z.data),z=z.next;return this._readableState.buffer.clear(),X!==""&&this._readableState.buffer.push(X),this._readableState.length=X.length,this};var D=1073741824;function P(E){return E>=D?E=D:(E--,E|=E>>>1,E|=E>>>2,E|=E>>>4,E|=E>>>8,E|=E>>>16,E++),E}function M(E,_){return E<=0||_.length===0&&_.ended?0:_.objectMode?1:E!==E?_.flowing&&_.length?_.buffer.head.data.length:_.length:(E>_.highWaterMark&&(_.highWaterMark=P(E)),E<=_.length?E:_.ended?_.length:(_.needReadable=!0,0))}S.prototype.read=function(E){c("read",E),E=parseInt(E,10);var _=this._readableState,z=E;if(E!==0&&(_.emittedReadable=!1),E===0&&_.needReadable&&((_.highWaterMark!==0?_.length>=_.highWaterMark:_.length>0)||_.ended))return c("read: emitReadable",_.length,_.ended),_.length===0&&_.ended?$(this):U(this),null;if(E=M(E,_),E===0&&_.ended)return _.length===0&&$(this),null;var X=_.needReadable;c("need readable",X),(_.length===0||_.length-E<_.highWaterMark)&&(X=!0,c("length less than watermark",X)),_.ended||_.reading?(X=!1,c("reading or ended",X)):X&&(c("do read"),_.reading=!0,_.sync=!0,_.length===0&&(_.needReadable=!0),this._read(_.highWaterMark),_.sync=!1,_.reading||(E=M(z,_)));var ne;return E>0?ne=A(E,_):ne=null,ne===null?(_.needReadable=_.length<=_.highWaterMark,E=0):(_.length-=E,_.awaitDrain=0),_.length===0&&(_.ended||(_.needReadable=!0),z!==E&&_.ended&&$(this)),ne!==null&&this.emit("data",ne),ne};function q(E,_){if(c("onEofChunk"),!_.ended){if(_.decoder){var z=_.decoder.end();z&&z.length&&(_.buffer.push(z),_.length+=_.objectMode?1:z.length)}_.ended=!0,_.sync?U(E):(_.needReadable=!1,_.emittedReadable||(_.emittedReadable=!0,B(E)))}}function U(E){var _=E._readableState;c("emitReadable",_.needReadable,_.emittedReadable),_.needReadable=!1,_.emittedReadable||(c("emitReadable",_.flowing),_.emittedReadable=!0,process.nextTick(B,E))}function B(E){var _=E._readableState;c("emitReadable_",_.destroyed,_.length,_.ended),!_.destroyed&&(_.length||_.ended)&&(E.emit("readable"),_.emittedReadable=!1),_.needReadable=!_.flowing&&!_.ended&&_.length<=_.highWaterMark,j(E)}function V(E,_){_.readingMore||(_.readingMore=!0,process.nextTick(G,E,_))}function G(E,_){for(;!_.reading&&!_.ended&&(_.length<_.highWaterMark||_.flowing&&_.length===0);){var z=_.length;if(c("maybeReadMore read 0"),E.read(0),z===_.length)break}_.readingMore=!1}S.prototype._read=function(E){w(this,new C("_read()"))},S.prototype.pipe=function(E,_){var z=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=E;break;case 1:X.pipes=[X.pipes,E];break;default:X.pipes.push(E);break}X.pipesCount+=1,c("pipe count=%d opts=%j",X.pipesCount,_);var ne=(!_||_.end!==!1)&&E!==process.stdout&&E!==process.stderr,ee=ne?se:ye;X.endEmitted?process.nextTick(ee):z.once("end",ee),E.on("unpipe",oe);function oe(_e,xe){c("onunpipe"),_e===z&&xe&&xe.hasUnpiped===!1&&(xe.hasUnpiped=!0,pe())}function se(){c("onend"),E.end()}var ie=Y(z);E.on("drain",ie);var ce=!1;function pe(){c("cleanup"),E.removeListener("close",he),E.removeListener("finish",Fe),E.removeListener("drain",ie),E.removeListener("error",Re),E.removeListener("unpipe",oe),z.removeListener("end",se),z.removeListener("end",ye),z.removeListener("data",ve),ce=!0,X.awaitDrain&&(!E._writableState||E._writableState.needDrain)&&ie()}z.on("data",ve);function ve(_e){c("ondata");var xe=E.write(_e);c("dest.write",xe),xe===!1&&((X.pipesCount===1&&X.pipes===E||X.pipesCount>1&&Q(X.pipes,E)!==-1)&&!ce&&(c("false write response, pause",X.awaitDrain),X.awaitDrain++),z.pause())}function Re(_e){c("onerror",_e),ye(),E.removeListener("error",Re),n(E,"error")===0&&w(E,_e)}F(E,"error",Re);function he(){E.removeListener("finish",Fe),ye()}E.once("close",he);function Fe(){c("onfinish"),E.removeListener("close",he),ye()}E.once("finish",Fe);function ye(){c("unpipe"),z.unpipe(E)}return E.emit("pipe",z),X.flowing||(c("pipe resume"),z.resume()),E};function Y(E){return function(){var z=E._readableState;c("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&n(E,"data")&&(z.flowing=!0,j(E))}}S.prototype.unpipe=function(E){var _=this._readableState,z={hasUnpiped:!1};if(_.pipesCount===0)return this;if(_.pipesCount===1)return E&&E!==_.pipes?this:(E||(E=_.pipes),_.pipes=null,_.pipesCount=0,_.flowing=!1,E&&E.emit("unpipe",this,z),this);if(!E){var X=_.pipes,ne=_.pipesCount;_.pipes=null,_.pipesCount=0,_.flowing=!1;for(var ee=0;ee<ne;ee++)X[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var oe=Q(_.pipes,E);return oe===-1?this:(_.pipes.splice(oe,1),_.pipesCount-=1,_.pipesCount===1&&(_.pipes=_.pipes[0]),E.emit("unpipe",this,z),this)},S.prototype.on=function(E,_){var z=t.prototype.on.call(this,E,_),X=this._readableState;return E==="data"?(X.readableListening=this.listenerCount("readable")>0,X.flowing!==!1&&this.resume()):E==="readable"&&!X.endEmitted&&!X.readableListening&&(X.readableListening=X.needReadable=!0,X.flowing=!1,X.emittedReadable=!1,c("on readable",X.length,X.reading),X.length?U(this):X.reading||process.nextTick(K,this)),z},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(E,_){var z=t.prototype.removeListener.call(this,E,_);return E==="readable"&&process.nextTick(H,this),z},S.prototype.removeAllListeners=function(E){var _=t.prototype.removeAllListeners.apply(this,arguments);return(E==="readable"||E===void 0)&&process.nextTick(H,this),_};function H(E){var _=E._readableState;_.readableListening=E.listenerCount("readable")>0,_.resumeScheduled&&!_.paused?_.flowing=!0:E.listenerCount("data")>0&&E.resume()}function K(E){c("readable nexttick read 0"),E.read(0)}S.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!E.readableListening,N(this,E)),E.paused=!1,this};function N(E,_){_.resumeScheduled||(_.resumeScheduled=!0,process.nextTick(W,E,_))}function W(E,_){c("resume",_.reading),_.reading||E.read(0),_.resumeScheduled=!1,E.emit("resume"),j(E),_.flowing&&!_.reading&&E.read(0)}S.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function j(E){var _=E._readableState;for(c("flow",_.flowing);_.flowing&&E.read()!==null;);}S.prototype.wrap=function(E){var _=this,z=this._readableState,X=!1;E.on("end",function(){if(c("wrapped end"),z.decoder&&!z.ended){var oe=z.decoder.end();oe&&oe.length&&_.push(oe)}_.push(null)}),E.on("data",function(oe){if(c("wrapped data"),z.decoder&&(oe=z.decoder.write(oe)),!(z.objectMode&&oe==null)&&!(!z.objectMode&&(!oe||!oe.length))){var se=_.push(oe);se||(X=!0,E.pause())}});for(var ne in E)this[ne]===void 0&&typeof E[ne]=="function"&&(this[ne]=function(se){return function(){return E[se].apply(E,arguments)}}(ne));for(var ee=0;ee<O.length;ee++)E.on(O[ee],this.emit.bind(this,O[ee]));return this._read=function(oe){c("wrapped _read",oe),X&&(X=!1,E.resume())},this},typeof Symbol=="function"&&(S.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=requireAsync_iterator()),y(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(_){this._readableState&&(this._readableState.flowing=_)}}),S._fromList=A,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function A(E,_){if(_.length===0)return null;var z;return _.objectMode?z=_.buffer.shift():!E||E>=_.length?(_.decoder?z=_.buffer.join(""):_.buffer.length===1?z=_.buffer.first():z=_.buffer.concat(_.length),_.buffer.clear()):z=_.buffer.consume(E,_.decoder),z}function $(E){var _=E._readableState;c("endReadable",_.endEmitted),_.endEmitted||(_.ended=!0,process.nextTick(Z,_,E))}function Z(E,_){if(c("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,_.readable=!1,_.emit("end"),E.autoDestroy)){var z=_._writableState;(!z||z.autoDestroy&&z.finished)&&_.destroy()}}typeof Symbol=="function"&&(S.from=function(E,_){return x===void 0&&(x=requireFromBrowser()),x(S,E,_)});function Q(E,_){for(var z=0,X=E.length;z<X;z++)if(E[z]===_)return z;return-1}return _stream_readable}var _stream_transform=Transform$1,_require$codes$1=errorsBrowser.codes,ERR_METHOD_NOT_IMPLEMENTED=_require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes$1.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=require_stream_duplex();inherits_browser.exports(Transform$1,Duplex);function afterTransform(e,n){var t=this._transformState;t.transforming=!1;var o=t.writecb;if(o===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);t.writechunk=null,t.writecb=null,n!=null&&this.push(n),o(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function Transform$1(e){if(!(this instanceof Transform$1))return new Transform$1(e);Duplex.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(n,t){done(e,n,t)}):done(this,null,null)}Transform$1.prototype.push=function(e,n){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,e,n)},Transform$1.prototype._transform=function(e,n,t){t(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))},Transform$1.prototype._write=function(e,n,t){var o=this._transformState;if(o.writecb=t,o.writechunk=e,o.writeencoding=n,!o.transforming){var r=this._readableState;(o.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},Transform$1.prototype._read=function(e){var n=this._transformState;n.writechunk!==null&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0},Transform$1.prototype._destroy=function(e,n){Duplex.prototype._destroy.call(this,e,function(t){n(t)})};function done(e,n,t){if(n)return e.emit("error",n);if(t!=null&&e.push(t),e._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(e._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return e.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform;inherits_browser.exports(PassThrough,Transform);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);Transform.call(this,e)}PassThrough.prototype._transform=function(e,n,t){t(null,e)};var eos;function once(e){var n=!1;return function(){n||(n=!0,e.apply(void 0,arguments))}}var _require$codes=errorsBrowser.codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop$1(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort=="function"}function destroyer(e,n,t,o){o=once(o);var r=!1;e.on("close",function(){r=!0}),eos===void 0&&(eos=endOfStream),eos(e,{readable:n,writable:t},function(s){if(s)return o(s);r=!0,o()});var a=!1;return function(s){if(!r&&!a){if(a=!0,isRequest(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();o(s||new ERR_STREAM_DESTROYED("pipe"))}}}function call(e){e()}function pipe(e,n){return e.pipe(n)}function popCallback(e){return!e.length||typeof e[e.length-1]!="function"?noop$1:e.pop()}function pipeline(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o=popCallback(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new ERR_MISSING_ARGS("streams");var r,a=n.map(function(s,l){var c=l<n.length-1,u=l>0;return destroyer(s,c,u,function(d){r||(r=d),d&&a.forEach(call),!c&&(a.forEach(call),o(r))})});return n.reduce(pipe)}var pipeline_1=pipeline;(function(e,n){n=e.exports=require_stream_readable(),n.Stream=n,n.Readable=n,n.Writable=require_stream_writable(),n.Duplex=require_stream_duplex(),n.Transform=_stream_transform,n.PassThrough=_stream_passthrough,n.finished=endOfStream,n.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports),Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReadableWebToNodeStream=void 0;const readable_stream_1=readableBrowser.exports;class ReadableWebToNodeStream extends readable_stream_1.Readable{constructor(n){super(),this.bytesRead=0,this.released=!1,this.reader=n.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const n=await this.pendingRead;delete this.pendingRead,n.done||this.released?this.push(null):(this.bytesRead+=n.value.length,this.push(n.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}lib$2.ReadableWebToNodeStream=ReadableWebToNodeStream;var lib$1={},ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(e,n,t,o,r){var a,s,l=r*8-o-1,c=(1<<l)-1,u=c>>1,d=-7,f=t?r-1:0,m=t?-1:1,p=e[n+f];for(f+=m,a=p&(1<<-d)-1,p>>=-d,d+=l;d>0;a=a*256+e[n+f],f+=m,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=s*256+e[n+f],f+=m,d-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,o),a=a-u}return(p?-1:1)*s*Math.pow(2,a-o)},ieee754.write=function(e,n,t,o,r,a){var s,l,c,u=a*8-r-1,d=(1<<u)-1,f=d>>1,m=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:a-1,g=o?1:-1,v=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,s=d):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?n+=m/c:n+=m*Math.pow(2,1-f),n*c>=2&&(s++,c/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(n*c-1)*Math.pow(2,r),s=s+f):(l=n*Math.pow(2,f-1)*Math.pow(2,r),s=0));r>=8;e[t+p]=l&255,p+=g,l/=256,r-=8);for(s=s<<r|l,u+=r;u>0;e[t+p]=s&255,p+=g,s/=256,u-=8);e[t+p-g]|=v*128},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const n=ieee754;function t(c){return new DataView(c.buffer,c.byteOffset)}e.UINT8={len:1,get(c,u){return t(c).getUint8(u)},put(c,u,d){return t(c).setUint8(u,d),u+1}},e.UINT16_LE={len:2,get(c,u){return t(c).getUint16(u,!0)},put(c,u,d){return t(c).setUint16(u,d,!0),u+2}},e.UINT16_BE={len:2,get(c,u){return t(c).getUint16(u)},put(c,u,d){return t(c).setUint16(u,d),u+2}},e.UINT24_LE={len:3,get(c,u){const d=t(c);return d.getUint8(u)+(d.getUint16(u+1,!0)<<8)},put(c,u,d){const f=t(c);return f.setUint8(u,d&255),f.setUint16(u+1,d>>8,!0),u+3}},e.UINT24_BE={len:3,get(c,u){const d=t(c);return(d.getUint16(u)<<8)+d.getUint8(u+2)},put(c,u,d){const f=t(c);return f.setUint16(u,d>>8),f.setUint8(u+2,d&255),u+3}},e.UINT32_LE={len:4,get(c,u){return t(c).getUint32(u,!0)},put(c,u,d){return t(c).setUint32(u,d,!0),u+4}},e.UINT32_BE={len:4,get(c,u){return t(c).getUint32(u)},put(c,u,d){return t(c).setUint32(u,d),u+4}},e.INT8={len:1,get(c,u){return t(c).getInt8(u)},put(c,u,d){return t(c).setInt8(u,d),u+1}},e.INT16_BE={len:2,get(c,u){return t(c).getInt16(u)},put(c,u,d){return t(c).setInt16(u,d),u+2}},e.INT16_LE={len:2,get(c,u){return t(c).getInt16(u,!0)},put(c,u,d){return t(c).setInt16(u,d,!0),u+2}},e.INT24_LE={len:3,get(c,u){const d=e.UINT24_LE.get(c,u);return d>8388607?d-16777216:d},put(c,u,d){const f=t(c);return f.setUint8(u,d&255),f.setUint16(u+1,d>>8,!0),u+3}},e.INT24_BE={len:3,get(c,u){const d=e.UINT24_BE.get(c,u);return d>8388607?d-16777216:d},put(c,u,d){const f=t(c);return f.setUint16(u,d>>8),f.setUint8(u+2,d&255),u+3}},e.INT32_BE={len:4,get(c,u){return t(c).getInt32(u)},put(c,u,d){return t(c).setInt32(u,d),u+4}},e.INT32_LE={len:4,get(c,u){return t(c).getInt32(u,!0)},put(c,u,d){return t(c).setInt32(u,d,!0),u+4}},e.UINT64_LE={len:8,get(c,u){return t(c).getBigUint64(u,!0)},put(c,u,d){return t(c).setBigUint64(u,d,!0),u+8}},e.INT64_LE={len:8,get(c,u){return t(c).getBigInt64(u,!0)},put(c,u,d){return t(c).setBigInt64(u,d,!0),u+8}},e.UINT64_BE={len:8,get(c,u){return t(c).getBigUint64(u)},put(c,u,d){return t(c).setBigUint64(u,d),u+8}},e.INT64_BE={len:8,get(c,u){return t(c).getBigInt64(u)},put(c,u,d){return t(c).setBigInt64(u,d),u+8}},e.Float16_BE={len:2,get(c,u){return n.read(c,u,!1,10,this.len)},put(c,u,d){return n.write(c,d,u,!1,10,this.len),u+this.len}},e.Float16_LE={len:2,get(c,u){return n.read(c,u,!0,10,this.len)},put(c,u,d){return n.write(c,d,u,!0,10,this.len),u+this.len}},e.Float32_BE={len:4,get(c,u){return t(c).getFloat32(u)},put(c,u,d){return t(c).setFloat32(u,d),u+4}},e.Float32_LE={len:4,get(c,u){return t(c).getFloat32(u,!0)},put(c,u,d){return t(c).setFloat32(u,d,!0),u+4}},e.Float64_BE={len:8,get(c,u){return t(c).getFloat64(u)},put(c,u,d){return t(c).setFloat64(u,d),u+8}},e.Float64_LE={len:8,get(c,u){return t(c).getFloat64(u,!0)},put(c,u,d){return t(c).setFloat64(u,d,!0),u+8}},e.Float80_BE={len:10,get(c,u){return n.read(c,u,!1,63,this.len)},put(c,u,d){return n.write(c,d,u,!1,63,this.len),u+this.len}},e.Float80_LE={len:10,get(c,u){return n.read(c,u,!0,63,this.len)},put(c,u,d){return n.write(c,d,u,!0,63,this.len),u+this.len}};class o{constructor(u){this.len=u}get(u,d){}}e.IgnoreType=o;class r{constructor(u){this.len=u}get(u,d){return u.subarray(d,d+this.len)}}e.Uint8ArrayType=r;class a{constructor(u){this.len=u}get(u,d){return Buffer.from(u.subarray(d,d+this.len))}}e.BufferType=a;class s{constructor(u,d){this.len=u,this.encoding=d}get(u,d){return Buffer.from(u).toString(this.encoding,d,d+this.len)}}e.StringType=s;class l{constructor(u){this.len=u}static decode(u,d,f){let m="";for(let p=d;p<f;++p)m+=l.codePointToString(l.singleByteDecoder(u[p]));return m}static inRange(u,d,f){return d<=u&&u<=f}static codePointToString(u){return u<=65535?String.fromCharCode(u):(u-=65536,String.fromCharCode((u>>10)+55296,(u&1023)+56320))}static singleByteDecoder(u){if(l.inRange(u,0,127))return u;const d=l.windows1252[u-128];if(d===null)throw Error("invaliding encoding");return d}get(u,d=0){return l.decode(u,d,d+this.len)}}e.AnsiStringType=l,l.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}(lib$1);var core$1={},ReadStreamTokenizer$1={},AbstractTokenizer$1={},lib={},EndOfFileStream={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";class n extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=n})(EndOfFileStream);var StreamReader={},Deferred$1={};Object.defineProperty(Deferred$1,"__esModule",{value:!0}),Deferred$1.Deferred=void 0;class Deferred{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise((n,t)=>{this.reject=t,this.resolve=n})}}Deferred$1.Deferred=Deferred,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;const n=EndOfFileStream,t=Deferred$1;var o=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});const r=1*1024*1024;class a{constructor(l){if(this.s=l,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!l.read||!l.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",()=>this.reject(new n.EndOfStreamError)),this.s.once("error",c=>this.reject(c)),this.s.once("close",()=>this.reject(new Error("Stream closed")))}async peek(l,c,u){const d=await this.read(l,c,u);return this.peekQueue.push(l.subarray(c,c+d)),d}async read(l,c,u){if(u===0)return 0;if(this.peekQueue.length===0&&this.endOfStream)throw new n.EndOfStreamError;let d=u,f=0;for(;this.peekQueue.length>0&&d>0;){const m=this.peekQueue.pop();if(!m)throw new Error("peekData should be defined");const p=Math.min(m.length,d);l.set(m.subarray(0,p),c+f),f+=p,d-=p,p<m.length&&this.peekQueue.push(m.subarray(p))}for(;d>0&&!this.endOfStream;){const m=Math.min(d,r),p=await this.readFromStream(l,c+f,m);if(f+=p,p<m)break;d-=p}return f}async readFromStream(l,c,u){const d=this.s.read(u);if(d)return l.set(d,c),d.length;{const f={buffer:l,offset:c,length:u,deferred:new t.Deferred};return this.deferred=f.deferred,this.s.once("readable",()=>{this.readDeferred(f)}),f.deferred.promise}}readDeferred(l){const c=this.s.read(l.length);c?(l.buffer.set(c,l.offset),l.deferred.resolve(c.length),this.deferred=null):this.s.once("readable",()=>{this.readDeferred(l)})}reject(l){this.endOfStream=!0,this.deferred&&(this.deferred.reject(l),this.deferred=null)}}e.StreamReader=a}(StreamReader),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var t=StreamReader;Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return t.StreamReader}})}(lib),Object.defineProperty(AbstractTokenizer$1,"__esModule",{value:!0}),AbstractTokenizer$1.AbstractTokenizer=void 0;const peek_readable_1$2=lib;class AbstractTokenizer{constructor(n){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=n||{}}async readToken(n,t=this.position){const o=Buffer.alloc(n.len);if(await this.readBuffer(o,{position:t})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(o,0)}async peekToken(n,t=this.position){const o=Buffer.alloc(n.len);if(await this.peekBuffer(o,{position:t})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(o,0)}async readNumber(n){if(await this.readBuffer(this.numBuffer,{length:n.len})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(this.numBuffer,0)}async peekNumber(n){if(await this.peekBuffer(this.numBuffer,{length:n.len})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(this.numBuffer,0)}async ignore(n){if(this.fileInfo.size!==void 0){const t=this.fileInfo.size-this.position;if(n>t)return this.position+=t,t}return this.position+=n,n}async close(){}normalizeOptions(n,t){if(t&&t.position!==void 0&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return t?{mayBeLess:t.mayBeLess===!0,offset:t.offset?t.offset:0,length:t.length?t.length:n.length-(t.offset?t.offset:0),position:t.position?t.position:this.position}:{mayBeLess:!1,offset:0,length:n.length,position:this.position}}}AbstractTokenizer$1.AbstractTokenizer=AbstractTokenizer,Object.defineProperty(ReadStreamTokenizer$1,"__esModule",{value:!0}),ReadStreamTokenizer$1.ReadStreamTokenizer=void 0;const AbstractTokenizer_1$1=AbstractTokenizer$1,peek_readable_1$1=lib,maxBufferSize=256e3;class ReadStreamTokenizer extends AbstractTokenizer_1$1.AbstractTokenizer{constructor(n,t){super(t),this.streamReader=new peek_readable_1$1.StreamReader(n)}async getFileInfo(){return this.fileInfo}async readBuffer(n,t){const o=this.normalizeOptions(n,t),r=o.position-this.position;if(r>0)return await this.ignore(r),this.readBuffer(n,t);if(r<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(o.length===0)return 0;const a=await this.streamReader.read(n,o.offset,o.length);if(this.position+=a,(!t||!t.mayBeLess)&&a<o.length)throw new peek_readable_1$1.EndOfStreamError;return a}async peekBuffer(n,t){const o=this.normalizeOptions(n,t);let r=0;if(o.position){const a=o.position-this.position;if(a>0){const s=new Uint8Array(o.length+a);return r=await this.peekBuffer(s,{mayBeLess:o.mayBeLess}),n.set(s.subarray(a),o.offset),r-a}else if(a<0)throw new Error("Cannot peek from a negative offset in a stream")}if(o.length>0){try{r=await this.streamReader.peek(n,o.offset,o.length)}catch(a){if(t&&t.mayBeLess&&a instanceof peek_readable_1$1.EndOfStreamError)return 0;throw a}if(!o.mayBeLess&&r<o.length)throw new peek_readable_1$1.EndOfStreamError}return r}async ignore(n){const t=Math.min(maxBufferSize,n),o=new Uint8Array(t);let r=0;for(;r<n;){const a=n-r,s=await this.readBuffer(o,{length:Math.min(t,a)});if(s<0)return s;r+=s}return r}}ReadStreamTokenizer$1.ReadStreamTokenizer=ReadStreamTokenizer;var BufferTokenizer$1={};Object.defineProperty(BufferTokenizer$1,"__esModule",{value:!0}),BufferTokenizer$1.BufferTokenizer=void 0;const peek_readable_1=lib,AbstractTokenizer_1=AbstractTokenizer$1;class BufferTokenizer extends AbstractTokenizer_1.AbstractTokenizer{constructor(n,t){super(t),this.uint8Array=n,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:n.length}async readBuffer(n,t){if(t&&t.position){if(t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=t.position}const o=await this.peekBuffer(n,t);return this.position+=o,o}async peekBuffer(n,t){const o=this.normalizeOptions(n,t),r=Math.min(this.uint8Array.length-o.position,o.length);if(!o.mayBeLess&&r<o.length)throw new peek_readable_1.EndOfStreamError;return n.set(this.uint8Array.subarray(o.position,o.position+r),o.offset),r}async close(){}}BufferTokenizer$1.BufferTokenizer=BufferTokenizer,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;const n=ReadStreamTokenizer$1,t=BufferTokenizer$1;var o=lib;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});function r(s,l){return l=l||{},new n.ReadStreamTokenizer(s,l)}e.fromStream=r;function a(s,l){return new t.BufferTokenizer(s,l)}e.fromBuffer=a}(core$1);var util$1={};util$1.stringToBytes=e=>[...e].map(n=>n.charCodeAt(0)),util$1.tarHeaderChecksumMatches=(e,n=0)=>{const t=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(t))return!1;let o=8*32;for(let r=n;r<n+148;r++)o+=e[r];for(let r=n+156;r<n+512;r++)o+=e[r];return t===o},util$1.uint32SyncSafeToken={get:(e,n)=>e[n+3]&127|e[n+2]<<7|e[n+1]<<14|e[n]<<21,len:4};var supported$1={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]};const Token=lib$1,strtok3=core$1,{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=util$1,supported=supported$1,minimumBytes=4100;async function fromStream(e){const n=await strtok3.fromStream(e);try{return await fromTokenizer(n)}finally{await n.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const n=e instanceof Buffer?e:Buffer.from(e);if(!(n&&n.length>1))return;const t=strtok3.fromBuffer(n);return fromTokenizer(t)}function _check(e,n,t){t={offset:0,...t};for(const[o,r]of n.entries())if(t.mask){if(r!==(t.mask[o]&e[o+t.offset]))return!1}else if(r!==e[o+t.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(n){if(!(n instanceof strtok3.EndOfStreamError))throw n}}async function _fromTokenizer(e){let n=Buffer.alloc(minimumBytes);const t=12,o=(a,s)=>_check(n,a,s),r=(a,s)=>o(stringToBytes(a),s);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(n,{length:t,mayBeLess:!0}),o([66,77]))return{ext:"bmp",mime:"image/bmp"};if(o([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(o([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(o([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(o([37,33]))return await e.peekBuffer(n,{length:24,mayBeLess:!0}),r("PS-Adobe-",{offset:2})&&r(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(o([31,160])||o([31,157]))return{ext:"Z",mime:"application/x-compress"};if(o([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(o([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(o([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(o([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r("ID3")){await e.ignore(6);const a=await e.readToken(uint32SyncSafeToken);return e.position+a>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(a),fromTokenizer(e))}if(r("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((n[0]===67||n[0]===70)&&o([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(o([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r("FLIF"))return{ext:"flif",mime:"image/flif"};if(r("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(r("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(r("FORM"))return{ext:"aif",mime:"audio/aiff"};if(r("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(o([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(n,{length:30});const a={compressedSize:n.readUInt32LE(18),uncompressedSize:n.readUInt32LE(22),filenameLength:n.readUInt16LE(26),extraFieldLength:n.readUInt16LE(28)};if(a.filename=await e.readToken(new Token.StringType(a.filenameLength,"utf-8")),await e.ignore(a.extraFieldLength),a.filename==="META-INF/mozilla.rsa")return{ext:"xpi",mime:"application/x-xpinstall"};if(a.filename.endsWith(".rels")||a.filename.endsWith(".xml"))switch(a.filename.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};default:break}if(a.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(a.filename.startsWith("3D/")&&a.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if(a.filename==="mimetype"&&a.compressedSize===a.uncompressedSize)switch(await e.readToken(new Token.StringType(a.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};default:}if(a.compressedSize===0){let s=-1;for(;s<0&&e.position<e.fileInfo.size;)await e.peekBuffer(n,{mayBeLess:!0}),s=n.indexOf("504B0304",0,"hex"),await e.ignore(s>=0?s:n.length)}else await e.ignore(a.compressedSize)}}catch(a){if(!(a instanceof strtok3.EndOfStreamError))throw a}return{ext:"zip",mime:"application/zip"}}if(r("OggS")){await e.ignore(28);const a=Buffer.alloc(8);return await e.readBuffer(a),_check(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(o([80,75])&&(n[2]===3||n[2]===5||n[2]===7)&&(n[3]===4||n[3]===6||n[3]===8))return{ext:"zip",mime:"application/zip"};if(r("ftyp",{offset:4})&&(n[8]&96)!==0){const a=n.toString("binary",8,12).replace("\0"," ").trim();switch(a){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return a.startsWith("3g")?a.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(r("MThd"))return{ext:"mid",mime:"audio/midi"};if(r("wOFF")&&(o([0,1,0,0],{offset:4})||r("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(r("wOF2")&&(o([0,1,0,0],{offset:4})||r("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(o([212,195,178,161])||o([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(r("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(r("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(r("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(o([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(r("%PDF")){await e.ignore(1350);const a=10*1024*1024,s=Buffer.alloc(Math.min(a,e.fileInfo.size));return await e.readBuffer(s,{mayBeLess:!0}),s.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(o([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(o([73,73,42,0]))return r("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:o([28,0,254,0],{offset:8})||o([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:o([8,0,0,0],{offset:4})&&(o([45,0,254,0],{offset:8})||o([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(n=Buffer.alloc(24),await e.peekBuffer(n),(o([16,251,134,1],{offset:4})||o([8,0,0,0],{offset:4}))&&o([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(o([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r("MAC "))return{ext:"ape",mime:"audio/ape"};if(o([26,69,223,163])){async function a(){const d=await e.peekNumber(Token.UINT8);let f=128,m=0;for(;(d&f)===0&&f!==0;)++m,f>>=1;const p=Buffer.alloc(m+1);return await e.readBuffer(p),p}async function s(){const d=await a(),f=await a();f[0]^=128>>f.length-1;const m=Math.min(6,f.length);return{id:d.readUIntBE(0,d.length),len:f.readUIntBE(f.length-m,m)}}async function l(d,f){for(;f>0;){const m=await s();if(m.id===17026)return e.readToken(new Token.StringType(m.len,"utf-8"));await e.ignore(m.len),--f}}const c=await s();switch(await l(1,c.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(o([82,73,70,70])){if(o([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(o([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(o([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(o([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r("MSCF")||r("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(o([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(o([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(o([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(o([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(r("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(o([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r("IMPM"))return{ext:"it",mime:"audio/x-it"};if(r("-lh0-",{offset:2})||r("-lh1-",{offset:2})||r("-lh2-",{offset:2})||r("-lh3-",{offset:2})||r("-lh4-",{offset:2})||r("-lh5-",{offset:2})||r("-lh6-",{offset:2})||r("-lh7-",{offset:2})||r("-lzs-",{offset:2})||r("-lz4-",{offset:2})||r("-lz5-",{offset:2})||r("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(o([0,0,1,186])){if(o([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(o([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(r("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(o([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r("<?xml "))return{ext:"xml",mime:"application/xml"};if(o([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(o([82,97,114,33,26,7])&&(n[6]===0||n[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r("solid "))return{ext:"stl",mime:"model/stl"};if(r("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(r("!<arch>"))return await e.ignore(8),await e.readToken(new Token.StringType(13,"ascii"))==="debian-binary"?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(o([137,80,78,71,13,10,26,10])){await e.ignore(8);async function a(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}do{const s=await a();if(s.length<0)return;switch(s.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(s.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(o([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(o([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(o([102,114,101,101],{offset:4})||o([109,100,97,116],{offset:4})||o([109,111,111,118],{offset:4})||o([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(o([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(r("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(o([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(o([48,38,178,117,142,102,207,17,166,217])){async function a(){const s=Buffer.alloc(16);return await e.readBuffer(s),{id:s,size:Number(await e.readToken(Token.UINT64_LE))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const s=await a();let l=s.size-24;if(_check(s.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const c=Buffer.alloc(16);if(l-=await e.readBuffer(c),_check(c,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(c,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(l)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(o([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((o([126,16,4])||o([126,24,4]))&&o([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(o([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(o([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(o([255,10])||o([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(o([0,0,1,186])||o([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(o([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(o([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(o([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(o([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(n,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),r("BEGIN:")){if(r("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(r("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(r("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(r("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(r("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(o([4,0,0,0])&&n.length>=16){const a=n.readUInt32LE(12);if(a>12&&n.length>=a+16)try{const s=n.slice(16,a+16).toString();if(JSON.parse(s).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(o([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(o([71],{offset:4})&&(o([71],{offset:192})||o([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(o([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(o([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(o([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(o([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(o([76,80],{offset:34})&&(o([0,0,1],{offset:8})||o([1,0,2],{offset:8})||o([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(o([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(n,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(n))return{ext:"tar",mime:"application/x-tar"};if(o([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(r("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(n.length>=2&&o([255,224],{offset:0,mask:[255,224]})){if(o([16],{offset:1,mask:[22]}))return o([8],{offset:1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(o([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(o([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(o([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",async()=>{const e=new stream.PassThrough;let n;stream.pipeline?n=stream.pipeline(readableStream,e,()=>{}):n=readableStream.pipe(e);const t=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const o=await fromBuffer(t);e.fileType=o}catch(o){reject(o)}resolve(n)})}),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,"mimeTypes",{get(){return new Set(supported.mimeTypes)}});var core=fileType;(function(e){const{ReadableWebToNodeStream:n}=lib$2,t=core;async function o(s){const l=new n(s),c=await t.fromStream(l);return await l.close(),c}async function r(s){const l=await a(s);return t.fromBuffer(Buffer.from(l))}function a(s){return s.arrayBuffer?s.arrayBuffer():new Promise((l,c)=>{const u=new FileReader;u.addEventListener("loadend",d=>{l(d.target.result)}),u.addEventListener("error",d=>{c(new Error(d.message))}),u.addEventListener("abort",d=>{c(new Error(d.type))}),u.readAsArrayBuffer(s)})}Object.assign(e.exports,t,{fromStream:o,fromBlob:r})})(browser$1);const FileType=browser$1.exports;function getFilesize(e){const t=require$$0.Buffer.from(e,"base64").length/1e3;return`${Math.round((t+Number.EPSILON)*100)/100} KB`}async function getMimeType(e){const n=await FileType.fromBuffer(require$$0.Buffer.from(e,"base64"));return n||{mime:"text/plain",ext:"txt"}}const toBase64=e=>new Promise((n,t)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=r=>n(r.target.result.split(",")[1]),o.onerror=r=>t(r)});function openBase64InNewTab(e,n){for(var t=atob(e),o=new Array(t.length),r=0;r<t.length;r++)o[r]=t.charCodeAt(r);var a=new Uint8Array(o),s=new Blob([a],{type:n+";base64"}),l=URL.createObjectURL(s);window.open(l)}const Image=e=>{const{ooui:n}=e,{required:t,id:o}=n,r=iconMapper(o);return r?jsxRuntime.jsx(r,{}):jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(ImageInput,{ooui:n})})},ImageInput=e=>{const{ooui:n,value:t,onChange:o}=e,{readOnly:r}=n,a=React.useRef(null),{t:s}=React.useContext(LocaleContext),l=f=>{o==null||o(f)};async function c(){const f=await getMimeType(t),m=`data:${f==null?void 0:f.mime};base64,${t}`,p=document.createElement("a");p.href=m,p.download=`image.${f==null?void 0:f.ext}`,p.click()}async function u(f){f.stopPropagation(),f.preventDefault();const m=f.target.files[0],p=await toBase64(m);l(p)}function d(){l(void 0)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,justify:"center",children:[t&&jsxRuntime.jsx("img",{src:`data:image/*;base64,${t}`,style:{maxWidth:"100px"}}),jsxRuntime.jsx("input",{type:"file",id:"file",ref:a,accept:"image/*",style:{display:"none"},onChange:u})]}),jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,justify:"center",className:"pt-5",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:s("uploadNewImage"),icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:r,onClick:()=>{a.current.click()}}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:s("download"),disabled:!t,onClick:c,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:s("clear"),disabled:r||!t,onClick:d,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})},FiberGrid=e=>{const{ooui:n}=e,{id:t,readOnly:o,required:r}=n;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(FiberGridInput,{})})},FiberGridInput=e=>{const{value:n,onChange:t}=e;if(!n)return null;try{JSON.parse(n)}catch(o){return console.log(o),null}return jsxRuntime.jsx(fiberDiagram.GridUi,{inputJson:n,onChange:o=>{t&&t(o)}})},readObjectValues=async e=>{const{items:n,model:t,formFields:o,treeFields:r,context:a={}}=e,s=n.filter(m=>m.operation!=="original"),l=n.filter(m=>m.operation==="original").map(m=>m.id),c=await ConnectionProvider.getHandler().readObjects({model:t,ids:l,fields:{...o,...r},context:a}),u=c.map(m=>{const p={};return Object.keys(m).forEach(g=>{(o.hasOwnProperty(g)||g==="id")&&(p[g]=m[g])}),p}),d=c.map(m=>{const p={};return Object.keys(m).forEach(g=>{(r.hasOwnProperty(g)||g==="id")&&(p[g]=m[g])}),p});return n.map(m=>{const p=u.find(v=>v.id===m.id),g=d.find(v=>v.id===m.id);return{...m,values:p,treeValues:g}}).concat(s)},getNextPendingId=e=>{const n=e.filter(t=>t.id&&t.id<0).map(t=>t.id);return n.length===0?-1:Math.min(...n)-1},Timeline=e=>{const{ooui:n}=e,{relation:t,context:o,views:r}=n,[a,s]=React.useState(!0),[l,c]=React.useState(),[u,d]=React.useState(new Map),f=React.useContext(FormContext$1),{getContext:m}=f||{};useDeepCompareEffect__default.default(()=>{g()},[n]);const p=async v=>r&&r[v]?r[v]:await ConnectionProvider.getHandler().getView({model:t,type:v,context:{...m==null?void 0:m(),...o}}),g=async()=>{s(!0),c(void 0);try{const v=await p("form"),C=await p("tree");u.set("form",v),u.set("tree",C),d(u)}catch(v){c(v)}finally{s(!1)}};return a?jsxRuntime.jsx(antd.Spin,{}):l?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:l,type:"error",banner:!0}):jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TimelineInput,{ooui:n,views:u})})},TimelineInput=e=>{const{value:n,views:t,ooui:o,onChange:r}=e,{items:a=[]}=n||{},[s,l]=React.useState(!1),[c,u]=React.useState(),[d,f]=React.useState(!1),[m,p]=React.useState(),{relation:g,context:v,readOnly:C,summaryField:I,titleField:h}=o,y=a.filter(b=>b.values),x=React.useContext(FormContext$1),{getContext:w}=x||{};useDeepCompareEffect__default.default(()=>{F()},[a]);const O=b=>{r==null||r({items:b})};async function F(){l(!0),u(void 0);try{const b=await readObjectValues({treeFields:t.get("tree").fields,formFields:t.get("form").fields,model:g,items:a,context:{...w==null?void 0:w(),...v}});O(b)}catch(b){u(b)}finally{l(!1)}}return c?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:c,type:"error",banner:!0}):s?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Timeline,{style:{padding:"1rem"},children:y.map((b,S)=>{var T,k;return jsxRuntime.jsx("div",{children:jsxRuntime.jsxs(antd.Timeline.Item,{children:[jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{p(y.find(L=>b.id===L.id)),f(!0)},children:jsxRuntime.jsx("strong",{children:(T=b.values)==null?void 0:T[h]})}),jsxRuntime.jsx("br",{}),jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{p(y.find(L=>b.id===L.id)),f(!0)},children:(k=b.values)==null?void 0:k[I]})]},S)},S)})}),jsxRuntime.jsx(FormModal,{formView:t.get("form"),model:g,id:m==null?void 0:m.id,values:m==null?void 0:m.values,defaultValues:m==null?void 0:m.defaultValues,visible:d,onSubmitSucceed:()=>{f(!1)},parentContext:{...w==null?void 0:w(),...v},onCancel:()=>{f(!1)},readOnly:C,postSaveAction:F})]})},Indicator=e=>{const{ooui:n}=e;return jsxRuntime.jsx(Field$1,{ooui:n,children:jsxRuntime.jsx(IndicatorInput,{ooui:n})})},IndicatorInput=e=>{const{ooui:n,value:t}=e,o=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{children:[n.label," "]}),n.tooltip&&jsxRuntime.jsx(antd.Tooltip,{title:n.tooltip,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"text-xs text-blue-400 pr-1"})})]}),r=iconMapper(n.icon);let a=t;n.selectionValues.size?a=n.selectionValues.get(t):Array.isArray(t)&&(a=t[1]);const s=jsxRuntime.jsx(antd.Statistic,{title:o,prefix:r&&jsxRuntime.jsx(r,{}),suffix:n.suffix,value:a});return n.card?jsxRuntime.jsx(antd.Card,{children:s}):s},filteredValues=(e,n)=>{if(!n)return e;const t={};return Object.keys(e).forEach(o=>{if(n[o]===void 0)t[o]=e[o];else if(!(e[o]===!1&&n[o].type!=="boolean"))if(n[o].type==="boolean"){const r=e[o];r===0?t[o]=!1:r===1?t[o]=!0:t[o]=e[o]}else t[o]=e[o]}),t},processValues=(e,n)=>filteredValues(e,n),getTouchedValues=({source:e,target:n,fields:t})=>{const o={};return Object.keys(n).forEach(r=>{var s,l;if(t[r]?t[r].type==="one2many"||t[r].type==="many2many":!1){const c=JSON.stringify(e[r]),u=JSON.stringify(n[r]);if(c===u)return;(((l=(s=n[r])==null?void 0:s.items)==null?void 0:l.filter(f=>f.operation!=="original"))||[]).length>0&&(o[r]=n[r])}else if(Array.isArray(n[r]))if(e[r]===void 0)o[r]=n[r];else if(t[r].type==="many2one")if(Array.isArray(e[r])){const c=JSON.stringify(e[r]),u=JSON.stringify(n[r]);c!==u&&(o[r]=n[r])}else{const c=e[r],[u]=n[r];c!==u&&(o[r]=n[r])}else{const c=JSON.stringify(e[r]),u=JSON.stringify(n[r]);c!==u&&(o[r]=n[r])}else e[r]!==n[r]&&(n[r]===void 0?o[r]=null:o[r]=n[r])}),o},checkFieldsType=({changedFields:e,fields:n,types:t})=>e.map(r=>{var a;return t.includes((a=n[r])==null?void 0:a.type)}).some(r=>r===!0),mergeFieldsDomain=({fieldsDomain:e,fields:n})=>{const t={};return Object.keys(n).forEach(o=>{t[o]=n[o],e[o]&&(t[o].domain=e[o])}),t},getValuesForDomain=e=>{const n={};return!e||!Array.isArray(e)||(e==null?void 0:e.length)===0?{}:(e.forEach(t=>{(t==null?void 0:t[1])==="="&&(n[t[0]]=t[2])}),n)},getOnChangePayload=({onChangeFieldActionArgs:e,values:n})=>{const t={};return e.forEach(o=>{n[o]?t[o]=n[o]:o[0]==="'"?t[o]=o.replace(/'/g,""):t[o]=!1}),t},mergeSearchFields=e=>{const n={primary:[],secondary:[]};return e.forEach(t=>{!t||(n.primary=n.primary.concat(t.primary),n.secondary=n.secondary.concat(t.secondary))}),{primary:n.primary.filter(onlyUnique),secondary:n.secondary.filter(onlyUnique)}};function onlyUnique(e,n,t){return t.indexOf(e)===n}const transformPlainMany2Ones=({values:e,fields:n})=>{let t={};return Object.keys(e).forEach(o=>{const r=e[o];n[o]&&n[o].type==="many2one"&&r&&Array.isArray(r)&&r.length===2?t[o]=r[0]:t[o]=r}),t},colorFromString=e=>{let n=0;for(let r=0;r<e.length;r++)n=e.charCodeAt(r)+((n<<5)-n);let t="#";for(let r=0;r<3;r++){var o=n>>r*8&255;t+=("00"+o.toString(16)).slice(-2)}return t},Tags=e=>{const{ooui:n}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TagsInput,{ooui:n})})},TagsInput=e=>{const{value:n,ooui:t,onChange:o}=e,{items:r=[]}=n||{},a=r.filter(O=>O.operation!=="pendingRemove").map(O=>O.id),[s,l]=React.useState([]),[c,u]=React.useState(),[d,f]=React.useState(!1),{relation:m,context:p,readOnly:g,field:v}=t,C=React.useContext(FormContext$1),{getContext:I}=C||{};useDeepCompareEffect__default.default(()=>{y()},[r]);const h=O=>{o==null||o({items:O})};async function y(){f(!0);let O=[];try{if(g&&(O=[["id","in",a]]),t.domain){const S=await ConnectionProvider.getHandler().evalDomain({domain:t.domain,values:C.getPlainValues(),context:C.getContext()});O=[...O,...S]}const b=(await ConnectionProvider.getHandler().search({model:m,params:O,fields:[v],context:{...I==null?void 0:I(),...p}})).map(S=>{const T=S[v];let k=T;return Array.isArray(T)&&(k=T[1]),{label:k,value:S.id}});l(b)}catch(F){u(F)}finally{f(!1)}}const x=O=>{const F=r.map(S=>O.includes(S.id)?S.operation=="pendingRemove"?{...S,operation:"pendingLink"}:S:{id:S.id,operation:"pendingRemove"}),b=F.map(S=>S.id);O.filter(S=>!b.includes(S)).map(S=>{F.push({id:S,operation:"pendingLink"})}),h(F)},w=O=>{const{label:F,closable:b,onClose:S}=O,T=k=>{k.preventDefault(),k.stopPropagation()};return jsxRuntime.jsx(antd.Tag,{color:colorFromString(F),onMouseDown:T,style:{margin:"5px"},closable:b,onClose:S,children:F})};return c?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:c,type:"error",banner:!0}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Select,{mode:"multiple",value:s.length?a:[],tagRender:w,bordered:!g,disabled:g,options:s,onChange:x,loading:d})})})},getWidgetType=e=>{switch(e){case"form":return Form$1;case"tree":return Tree;case"notebook":return Notebook;case"group":return Group;case"label":return Label;case"char":return Char;case"text":return Text$2;case"button":return Button;case"buttonGroup":return ButtonGroup;case"selection":return Selection;case"many2one":return Many2one;case"boolean":return Boolean$1;case"integer":return Integer;case"float":return Float;case"progressbar":return ProgressBar;case"date":return Date$1;case"datetime":return DateTime;case"one2many":case"one2many_list":case"many2many":return One2many;case"separator":return Separator;case"reference":return Reference;case"binary":return Binary;case"image":return Image;case"url":return Url;case"email":return Email;case"float_time":return FloatTime;case"fiber_grid":return FiberGrid;case"timeline":return Timeline;case"indicator":return Indicator;case"tags":return Tags;case"multicheckbox":return MultiCheckbox;case"radio":return Radio;case"switch":return Switch;case"steps":return Steps;case"codeeditor":return CodeEditor;default:return}},createReactWidget=e=>{const{ooui:n}=e,{type:t}=n,o=getWidgetType(t);return o?React__default.default.createElement(o,e):null},getSpanStyleForItem=({item:e,responsiveBehaviour:n})=>({gridColumnStart:"span "+(n?1:e.colspan)}),fillRowWithEmptiesToFit=({row:e,mustFillWithEmpties:n,numberOfColumns:t})=>{const o=[];let r=0;const a=s=>s+1===e.length&&r<t&&!n;return e.map((s,l)=>{if(r+=s.colspan,a(l)){const c=t-r;s.colspan=s.colspan+c,r+=c}if(o.push(s),a(l)){const c=t-r;for(let u=0;u<c;u+=1)o.push(new ooui.Label({string:""}))}}),o},expandWidgetsIfNeeded=({row:e,numberOfColumns:n})=>e.map(t=>(t._mustExpand&&(t.colspan=n),t)),getSingleRowTemplateColumns=(e,n)=>{const t=e.map(o=>o instanceof ooui.Label&&o.fieldForLabel||o instanceof ooui.Container?"auto":"1fr");if(t.length<n){const o=n-t.length;for(let r=0;r<o;r++)t.push("1fr")}return t.join(" ")},getTemplateColumns=(e,n)=>{const t=n?"1fr":"auto",o="auto";let r="";for(let a=0;a<e;a++)r+=a%2?t:o,a+1<e&&(r+=" ");return r},getMaxColspanForRows=e=>e.map(t=>t.reduce((o,r)=>o+r.colspan,0)).reduce((t,o)=>Math.max(t,o)),Container=e=>{const{container:n,responsiveBehaviour:t}=e,{rows:o}=n;let{columns:r}=n;const a=getMaxColspanForRows(o);a<r&&(r=a);let s=!1,l=[];const c=o.map((f,m)=>{const p=f.filter(C=>!C.invisible),g=expandWidgetsIfNeeded({row:p,numberOfColumns:r});let v=g;return(m===0||!(f.length===1&&f.some(C=>C.type==="group")))&&(v=fillRowWithEmptiesToFit({row:g,numberOfColumns:r,mustFillWithEmpties:t}),l=l.concat(v)),v.map(C=>(C instanceof ooui.Label&&C.fieldForLabel&&(s=!0),jsxRuntime.jsx("div",{style:{...getSpanStyleForItem({item:C,responsiveBehaviour:t}),minWidth:0},children:createReactWidget({ooui:C,responsiveBehaviour:t})},C.key)))}),u=o.length===1?getSingleRowTemplateColumns(l,r):getTemplateColumns(r,s),d={display:"grid",gridTemplateColumns:t?"auto":u,gap:"1rem",minHeight:0,minWidth:0};return jsxRuntime.jsx("div",{style:d,children:c})},{confirm:confirm$3}=antd.Modal,showDialog$6=({onOk:e,onCancel:n,lang:t})=>{confirm$3({title:tForLang("unsavedChanges",t),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmCloseWithoutSave",t),okText:tForLang("closeWithoutSaving",t),onOk:e,onCancel:n,cancelText:tForLang("cancel",t)})},{error:error$1}=antd.Modal,showDialog$5=e=>{error$1({title:tForLang("formHasErrors",e),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("fillRequiredFields",e)})},{warning}=antd.Modal,showDialog$4=(e,n,t)=>{warning({title:e,icon:jsxRuntime.jsx(Icon.WarningOutlined,{}),centered:!0,content:n,onOk:t})},FormModalContext=React__default.default.createContext(null),FormModalProvider=e=>{const{children:n,setTitle:t}=e;return jsxRuntime.jsx(FormModalContext.Provider,{value:{setTitle:t},children:n})},ActionViewContext=React__default.default.createContext(null),ActionViewProvider=e=>{const[n,t]=React.useState(!1),[o,r]=React.useState(!1),[a,s]=React.useState(!1),[l,c]=React.useState(!1),[u,d]=React.useState(!0),[f,m]=React.useState([]),[p,g]=React.useState(!1),[v,C]=React.useState([]),[I,h]=React.useState(!1),{children:y,currentView:x,title:w,setCurrentView:O,availableViews:F,formRef:b,searchTreeRef:S,onNewClicked:T,currentId:k,setCurrentId:L,setResults:D,results:P,currentItemIndex:M,setCurrentItemIndex:q,currentModel:U,toolbar:B,setToolbar:V,sorter:G,setSorter:Y,totalItems:H,setTotalItems:K,setSelectedRowItems:N,selectedRowItems:W,searchTreeNameSearch:j,setSearchTreeNameSearch:A,goToResourceId:$}=e;React.useEffect(()=>{P&&P.length>0&&!M&&(q==null||q(0),L==null||L(P[0].id))},[P]);const Z=()=>{var Q;(Q=b.current)==null||Q.submitForm()};return jsxRuntime.jsx(ActionViewContext.Provider,{value:{title:w,currentView:x,setCurrentView:O,availableViews:F,formIsSaving:n,setFormIsSaving:t,formHasChanges:o,setFormHasChanges:r,formRef:b,searchTreeRef:S,onFormSave:Z,onNewClicked:T,currentId:k,setCurrentId:L,currentItemIndex:M,setCurrentItemIndex:q,results:P,setResults:D,currentModel:U,removingItem:a,setRemovingItem:s,formIsLoading:l,setFormIsLoading:c,treeIsLoading:u,setTreeIsLoading:d,toolbar:B,setToolbar:V,attachments:f,setAttachments:m,selectedRowItems:W,setSelectedRowItems:N,duplicatingItem:p,setDuplicatingItem:g,setSearchParams:C,searchParams:v,searchVisible:I,setSearchVisible:h,sorter:G,setSorter:Y,totalItems:H,setTotalItems:K,searchTreeNameSearch:j,setSearchTreeNameSearch:A,goToResourceId:$},children:y})},TabManagerContext=React__default.default.createContext(null),TabManagerProvider=e=>{const{children:n,openAction:t,openRelate:o,openDefaultActionForModel:r,openShortcut:a,activeKey:s,onChangeTab:l,onRemoveTab:c,tabs:u}=e,[d,f]=React.useState(),[m,p]=React.useState();return jsxRuntime.jsx(TabManagerContext.Provider,{value:{openAction:t,openRelate:o,openDefaultActionForModel:r,activeKey:s,openShortcut:a,onChangeTab:l,onRemoveTab:c,tabs:u,currentId:m,currentView:d,setCurrentId:p,setCurrentView:f},children:n})},ContentRootContext=React__default.default.createContext(null),ContentRootProvider=(e,n)=>{const{children:t,globalValues:o={}}=e,r=React.useRef(),a=React.useRef(),[s,l]=React.useState(!1),c=React.useContext(TabManagerContext),{openAction:u}=c||{},d=React.useRef(),{t:f}=React.useContext(LocaleContext);React.useImperativeHandle(n,()=>({openActionModal:x}));const[m,p]=React.useState(!1),[g,v]=React.useState({context:{}});async function C(F){const{reportData:b,fields:S,values:T,context:k={}}=F,{context:L,model:D,datas:P={},report_name:M,type:q}=b;if(q!=="ir.actions.report.xml"){showDialog$8(`${q} action not supported`);return}const{ids:U}=P||{};let B=U||[];const V=typeof L=="string"?ooui.parseContext({context:L,fields:S,values:T}):L;try{const G=await ConnectionProvider.getHandler().createReport({model:D,name:M,datas:P,ids:B,context:{...k,...V}});l(!0),a.current=!0,r.current=setInterval(()=>{I(G)},1e3)}catch(G){a.current=!1,clearInterval(r.current),showDialog$8(G),l(!1)}}async function I(F){let b;try{if(b=await ConnectionProvider.getHandler().getReport({id:F}),b.state&&a.current===!0){a.current=!1,clearInterval(r.current),l(!1);const S=await getMimeType(b.result);openBase64InNewTab(b.result,S.mime)}}catch(S){a.current=!1,clearInterval(r.current),l(!1),showDialog$8(S.exception||S)}}async function h({actionData:F,fields:b,values:S,context:T,onRefreshParentValues:k}){const{type:L}=F;return d.current=k,L==="ir.actions.report.xml"?await C({reportData:F,fields:b,values:S,context:T}):L==="ir.actions.act_window"?await y({actionData:F,fields:b,values:S,context:T}):(showDialog$8(`${L} action not supported`),{})}async function y({actionData:F,fields:b={},values:S={},context:T={}}){var M;let k=F;F.res_model||(k=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.act_window",ids:[parseInt(F.id)],context:T}))[0]);const D={...typeof(k==null?void 0:k.context)=="string"?ooui.parseContext({context:k.context,fields:b,values:{...S,...o}}):k.context,...T};let P=[];if(k.domain&&(P=await ConnectionProvider.getHandler().evalDomain({domain:k.domain,values:{...S,...o},context:D})),k.target==="new"){const q=await ConnectionProvider.getHandler().getView({model:k.res_model,type:"form",id:((M=k==null?void 0:k.view_id)==null?void 0:M[0])||void 0,context:D});return x({domain:P,model:k.res_model,formView:q,context:D}),{}}else{let q;const U=k.view_mode.split(","),B=[];for(const V of U){const G=await ConnectionProvider.getHandler().getView({model:k.res_model,type:V,context:D});B.push([G.view_id,V])}if(k.view_id)q={id:k.view_id,type:k.view_mode.split(",")[0]};else{const V=k.view_mode.split(",")[0],[G]=B.find(([Y,H])=>H===V);q={id:G,type:V}}return u==null||u({target:"current",context:D,domain:P,model:k.res_model,views:B,title:k.name,initialView:q,action_id:k.id,action_type:k.type}),{closeParent:!0}}}function x({domain:F,model:b,formView:S,context:T,actionData:k}){m?w({domain:F,model:b,formView:S,context:T,actionData:k}):(v({domain:F,model:b,context:T,formView:S,actionData:k}),p(!0))}async function w({domain:F,model:b,formView:S,context:T,actionData:k}){v({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0}),p(!1),await new Promise(L=>setTimeout(L,300)),v({domain:F,model:b,context:T,formView:S,actionData:k}),p(!0)}async function O(){var F;(F=d.current)==null||F.call(d),p(!1),v({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})}return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(ContentRootContext.Provider,{value:{processAction:h,globalValues:o},children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,jsxRuntime.jsx(antd.Modal,{title:f("generatingReport"),visible:s,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})}),jsxRuntime.jsx(FormModal,{buttonModal:!0,parentContext:g.context,model:g.model,formView:g.formView,visible:m,onSubmitSucceed:O,onCancel:()=>{var F;(F=d.current)==null||F.call(d),p(!1),v({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})},showFooter:!1,actionDomain:g.domain,isMenuAction:(g==null?void 0:g.actionData)!==void 0,actionData:g==null?void 0:g.actionData})]})})})},ContentRootProvider$1=React.forwardRef(ContentRootProvider),WIDTH_BREAKPOINT=800;function Form(e,n){const{model:t,id:o,onCancel:r,onSubmitSucceed:a,showFooter:s=!1,getDataFromAction:l=!1,onFieldsChange:c,onSubmitError:u,readOnly:d=!1,mustClearAfterSave:f=!1,submitMode:m="api",values:p,formView:g,postSaveAction:v,insideButtonModal:C=!1,parentContext:I={},actionDomain:h,visible:y=!0,rootForm:x=!1,defaultValues:w,forcedValues:O={}}=e,{lang:F}=React.useContext(LocaleContext),[b,S]=React.useState(!1),[T,k]=React.useState(),[L,D]=React.useState(),[P]=antd.Form.useForm(),[M,q]=React.useState(),[U,B]=React.useState(),V=React.useContext(FormModalContext),[G,Y]=React.useState(),[H,K]=React.useState(!1),N=React.useRef(),W=React.useRef({}),j=React.useRef({}),A=React.useRef(!1),$=React.useRef(!1),Z=G<WIDTH_BREAKPOINT,Q=React.useContext(FormContext$1),{activeId:E}=Q||{},_=React.useContext(ActionViewContext),{setFormIsSaving:z=void 0,setFormHasChanges:X=void 0,setCurrentId:ne=void 0,setFormIsLoading:ee=void 0,setAttachments:oe=void 0}=(x?_:{})||{},se=React.useContext(ContentRootContext),{processAction:ie,globalValues:ce}=se||{};React.useImperativeHandle(n,()=>({submitForm:Ne,getFields:Fe,getValues:ye,getPlainValues:_e,getContext:Ee,fetchValues:Se,cancelUnsavedChanges:Me,clearAndReload:()=>{N.current=void 0,D(void 0),Te()}})),React.useEffect(()=>{if(k(void 0),!(!t&&!g)){if(!y){N.current=void 0,D(void 0);return}(o===void 0&&U||o!==void 0&&U&&o<0)&&(N.current=void 0,D(void 0)),Te()}},[o,t,p,g,y]),React.useEffect(()=>{H&&(qe({elementHasLostFocus:!0}),K(!1))},[H]);const pe=(J,te,le)=>{X==null||X(!1),z==null||z(!1),a==null||a(J,te,le),ne==null||ne(J)},ve=()=>{z==null||z(!1),r==null||r()},Re=J=>{z==null||z(!1),u==null||u(J)};function he(){return o||N.current}function Fe(){return U}function ye(){const J={...me(U),...re()};for(const te in J)J[te]===void 0&&delete J[te];return J}function _e(){const J=ye(),te=Fe();let le={};return Object.keys(J).forEach(fe=>{const we=J[fe];te[fe]&&te[fe].type==="many2one"&&we&&Array.isArray(we)&&we.length===2?le[fe]=we[0]:te[fe]&&(te[fe].type==="one2many"||te[fe].type==="many2many")&&we&&we.items?le[fe]=we.items.filter(Le=>Le.operation!=="pendingRemove").map(Le=>Le.id):le[fe]=we}),le}function xe(){const J={...me(U)};for(const te in J)J[te]===void 0&&delete J[te];return J}function Ee(){return{...I,...L==null?void 0:L.context}}function re(){return{id:he(),active_id:he(),active_ids:[he()],parent_id:E,...ce}}const ae=async J=>{const te=he()?L==null?void 0:L.context:{};return await ConnectionProvider.getHandler().defaultGet({model:t,fields:J,context:{...I,...te},extraValues:w})},Ie=()=>Object.keys(getTouchedValues({source:W.current,target:me(U),fields:U})).length!==0,me=J=>{const te=P.getFieldsValue(!0);return processValues(te,J)},ue=(J,te)=>{je({values:{...processValues(P.getFieldsValue(!0),U),[J]:te},fields:U,reset:!1})},ge=J=>P.getFieldsValue(!0)[J];async function be(){try{return await P.validateFields(),!1}catch{return!0}}const Te=async()=>{k(void 0),ee==null||ee(!0);let J;try{g?J={arch:g.arch,fields:g.fields}:J=await De();const{fields:te,arch:le}=J;B(te),q(le),await Se({fields:te,arch:le})}catch(te){k(te!=null&&te.message?te.message+te.stack:te),ee==null||ee(!1)}},Se=async J=>{let te,le,fe,we;ee==null||ee(!0),k(void 0),J?(le=J.fields,fe=J.arch):(le=U,fe=M),p?te=p:{values:te,defaultGetCalled:we}=await Ve({fields:le,arch:fe}),h&&(te={...getValuesForDomain(h),...te}),W.current=processValues(te,le),je({values:te,fields:le,reset:!0,isDefaultGet:we}),$e({fields:le,arch:fe,values:te}),ee==null||ee(!1),X==null||X(!1),we&&K(!0)};function Pe(J,te){W.current[J]=te,X==null||X(Ie())}const Me=async()=>new Promise(async J=>{Ie()?showDialog$6({lang:F,onOk:()=>{ve==null||ve(),J(!0)},onCancel:()=>{J(!1)}}):(ve==null||ve(),J(!0))}),De=async()=>{if(l){const J=await ConnectionProvider.getHandler().getActionStringForModel(t);return(await ConnectionProvider.getHandler().getViewsForAction({action:J,context:I})).views.get("form")}return await ConnectionProvider.getHandler().getView({model:t,type:"form",context:I})},je=({values:J,fields:te,reset:le,isDefaultGet:fe=!1})=>{const Le={...le?{}:P.getFieldsValue(!0),...J},Ze=processValues(Le,te),Qe=Object.keys(te).map(Xe=>{const Je=Ze[Xe]!==void 0?Ze[Xe]:void 0;return{name:Xe,touched:!1,value:Je}});fe||(j.current=Ze),P.setFields(Qe)},Ve=async({fields:J,arch:te})=>{let le={},fe=!1;if(he()){le=(await ConnectionProvider.getHandler().readObjects({model:t,ids:[he()],fields:J,context:I}))[0];const we=await ConnectionProvider.getHandler().search({params:[["res_model","=",t],["res_id","=",he()]],fields:["id","name"],context:Ee(),model:"ir.attachment"});oe==null||oe(we)}else oe==null||oe([]),le=await ae(J),fe=!0;return{values:le,defaultGetCalled:fe}},He=async J=>{const{callOnSubmitSucceed:te=!0}=J||{};if(he()){const le=getTouchedValues({source:W.current,target:me(U),fields:U});await ConnectionProvider.getHandler().update({model:t,id:he(),values:{...le,...O},fields:U,context:{...I,...L==null?void 0:L.context}}),W.current=me(U)}else{const le=me(U),fe=await ConnectionProvider.getHandler().create({model:t,values:{...le,...O},fields:U,context:{...I,...L==null?void 0:L.context}});N.current=fe,W.current=le}v&&await v([he()]),!C&&te&&(pe==null||pe(he(),ye(),xe()))},We=async J=>{const{callOnSubmitSucceed:te=!0}=J||{};!C&&te&&(pe==null||pe(he(),ye(),xe()))},Ne=async J=>{let te=!1;const{callOnSubmitSucceed:le=!0}=J||{};if($.current=!0,k(void 0),!Ie()&&he()&&le)return $.current=!1,X==null||X(!1),ve==null||ve(),!0;if(await be())return $.current=!1,showDialog$5(F),!1;S(!0),z==null||z(!0);try{m==="api"?await He(J):await We(J),f&&(N.current=void 0,je({values:{},fields:U,reset:!0})),await Se(),te=!0}catch(fe){$.current=!1,S(!1),z==null||z(!1),Re==null||Re(fe),k(fe!=null&&fe.message?fe.message:fe)}finally{$.current=!1,z==null||z(!1),S(!1)}return te},$e=({fields:J,arch:te,values:le})=>{var we;const fe=new ooui.Form(J);fe.parse(te,{readOnly:d,values:{...le,...re()}}),D(fe),V&&fe.string&&((we=V.setTitle)==null||we.call(V,fe.string))},qe=async({elementHasLostFocus:J=!1})=>{if($.current)return;const te=getTouchedValues({source:j.current,target:me(U),fields:U}),le=Object.keys(te);if(le.length!==0){if(checkFieldsType({changedFields:le,fields:U,types:["text","codeeditor","email","url","char","float","float_time","integer","many2one"]})&&J!==!0)return;{const fe=processValues(P.getFieldsValue(!0),U);j.current=fe,c==null||c(fe),X==null||X(!0),Ge(le)}}},ze=debounce_1(qe,100),Ge=async J=>{try{for(let te=0;te<J.length;te+=1){const le=J[te];await Ye(le)}}catch(te){showDialog$8(te)}},Ye=async J=>{const te=L==null?void 0:L.onChangeFields[J];if(!te){$e({fields:U,arch:M,values:me(U)});return}const le=getOnChangePayload({values:{...me(U),context:{...I,...L==null?void 0:L.context}},onChangeFieldActionArgs:te.args}),fe=await ConnectionProvider.getHandler().executeOnChange({model:t,action:te.method,ids:he()?[he()]:[],payload:le,fields:U});if(fe.value){const we={...me(U),...fe.value};$e({fields:U,arch:M,values:we}),je({values:we,fields:U,reset:!1})}if(fe.warning&&fe.warning.title&&fe.warning.message&&!A.current){const{title:we,message:Le}=fe.warning;A.current=!0,showDialog$4(we,Le,()=>{A.current=!1})}if(fe.domain&&Object.keys(fe.domain).length>0){const we=mergeFieldsDomain({fieldsDomain:fe.domain,fields:U});$e({fields:we,arch:M,values:me(we)}),B(we)}};async function Ke({action:J,context:te}){const le=await ConnectionProvider.getHandler().execute({model:t,action:J,payload:[he()],context:{...te,...L==null?void 0:L.context,...I}});if(typeof le=="object"&&le!==null&&Object.keys(le).length===0&&C)pe==null||pe(he(),ye(),xe());else if(le.type&&le.type==="ir.actions.act_window_close")pe==null||pe(he(),ye(),xe());else if(le.type){let fe={};le.context&&(fe=ooui.parseContext({context:le.context,fields:U,values:ye()})),await Oe({actionData:le,context:{...te,...fe}})}else await Se()}async function de({action:J}){const te=await ConnectionProvider.getHandler().executeWorkflow({model:t,action:J,payload:he()});te.type&&te.type==="ir.actions.act_window_close"?pe==null||pe(he(),ye(),xe()):await Se()}async function Ce({action:J,context:te}){const le=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.actions",ids:[parseInt(J)],context:I}))[0];await Oe({actionData:le,context:te})}async function Oe({actionData:J,context:te}){const{closeParent:le}=await(ie==null?void 0:ie({actionData:J,fields:U,values:ye(),context:{...I,...L==null?void 0:L.context,...te},onRefreshParentValues:()=>{Se()}}))||{};!x&&le&&(pe==null||pe(he(),ye(),xe()))}function ke(){qe({elementHasLostFocus:!0})}async function Ae({type:J,action:te,context:le}){if(J==="cancel"){ve==null||ve();return}if(await be()){showDialog$5(F);return}try{await Ne({callOnSubmitSucceed:!1}),J==="object"?await Ke({action:te,context:le}):J==="workflow"?await de({action:te}):J==="action"&&await Ce({action:te,context:le})}catch(fe){showDialog$8(fe)}}const Ue=()=>!L&&!T?jsxRuntime.jsx(antd.Spin,{}):!t&&!g||!y?null:jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(FormProvider$1,{getValues:ye,getPlainValues:_e,getFields:Fe,domain:h,activeId:o,activeModel:t,setFieldValue:ue,getFieldValue:ge,executeButtonAction:Ae,getContext:Ee,setOriginalValue:Pe,submitForm:Ne,fetchValues:Se,formHasChanges:Ie,elementHasLostFocus:ke,children:jsxRuntime.jsx(antd.Form,{form:P,onFieldsChange:()=>{ze({elementHasLostFocus:!1})},component:!1,children:L&&jsxRuntime.jsx(Container,{container:L.container,responsiveBehaviour:Z})})})}),Be=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),disabled:b,onClick:async()=>{await Me()},children:"Cancel"}),jsxRuntime.jsx(antd.Button,{disabled:b||d,loading:b,icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:async()=>{await Ne()},type:"primary",children:"OK"})]})})]});return y?jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:J=>{var te;Y((te=J.bounds)==null?void 0:te.width)},children:({measureRef:J})=>jsxRuntime.jsxs("div",{className:"pb-2",ref:J,children:[T&&jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:JSON.stringify(T),type:"error",banner:!0}),Ue(),s&&Be()]})}):null}const Form$1=React.forwardRef(Form),FormModal=e=>{const{visible:n,id:t,title:o,buttonModal:r=!1,onCancel:a,isMenuAction:s=!1,actionData:l,...c}=e,{modalWidth:u}=useWindowDimensions(),[d,f]=React.useState(o),[m,p]=React.useState(!1),[g,v]=React.useState();React.useEffect(()=>{s&&C()},[l,s]);async function C(){const{action_id:y,res_id:x,action_type:w,view_id:O}=l,F=await ConnectionProvider.getHandler().isShortcutFavorite({action_id:y,action_type:w,view_id:O,res_id:x||!1});p(F!==!1),F!==!1&&v(F)}async function I(){if(m&&g)await ConnectionProvider.getHandler().removeFavourite({shortcut_id:g});else{const{action_id:y,res_id:x,action_type:w,view_id:O}=l;await ConnectionProvider.getHandler().addFavourite({action_id:y,action_type:w,view_id:O,res_id:x||!1})}p(!m)}function h(){return jsxRuntime.jsxs(antd.Row,{align:"middle",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{type:m?"primary":"default",icon:m?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:30},onClick:I})}),jsxRuntime.jsx(antd.Col,{style:{paddingLeft:10},children:d})]})}return jsxRuntime.jsx(FormModalProvider,{setTitle:f,children:jsxRuntime.jsx(antd.Modal,{title:s?h():d,centered:!0,width:u,visible:n,footer:null,destroyOnClose:!0,onCancel:a,maskClosable:!1,children:jsxRuntime.jsx(Form$1,{id:t,showFooter:!0,insideButtonModal:r,onCancel:a,...c})})})},DateRangePicker=e=>jsxRuntime.jsx(Field$1,{...e,layout:"vertical",children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{allowEmpty:[!0,!0],format:"DD/MM/YYYY"})}),DateTimeRangePicker=e=>{const{ooui:n,showLabel:t=!1}=e,{label:o,id:r}=n,a=[new ooui.Field({name:r+"#date",label:""}),new ooui.Field({name:r+"#time",label:""})];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:r+"_label",string:o,help:n.tooltip,fieldForLabel:r}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"p-0",children:[jsxRuntime.jsx(antd.Col,{className:"mr-2",children:jsxRuntime.jsx(Field$1,{...e,ooui:a[0],showLabel:!1,children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"DD/MM/YYYY"})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(Field$1,{...e,ooui:a[1],showLabel:!1,children:jsxRuntime.jsx(antd.TimePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"HH:mm"})})})]})]})},Float=e=>{const{ooui:n}=e,{id:t,decimalDigits:o,readOnly:r,required:a}=n,s=a&&!r?Config.requiredClass:void 0,l=React.useContext(FormContext$1),{elementHasLostFocus:c}=l||{};return jsxRuntime.jsx(Field$1,{required:a,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{disabled:r,className:"w-full "+s,id:t,precision:o,formatter:u=>`${u}`.replace(/[^0-9\.\-]+/g,""),defaultValue:0,decimalSeparator:".",onBlur:c})})},Integer=e=>{const{ooui:n,onChange:t}=e,{id:o,readOnly:r,required:a}=n,s=a&&!r?Config.requiredClass:void 0,l=React.useContext(FormContext$1),{elementHasLostFocus:c}=l||{};return jsxRuntime.jsx(Field$1,{required:a,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{id:o,className:"w-full "+s,disabled:r,formatter:u=>`${u}`.replace(/[^0-9\-]+/g,""),onChange:u=>{const d=u;t==null||t(d)},defaultValue:0,onBlur:c})})};function PairFields(e){const{ooui:n,showLabel:t}=e,{id:o,label:r,tooltip:a}=n,s=n instanceof ooui.Integer?Integer:Float,l=c=>jsxRuntime.jsx(s,{ooui:{...n,id:o+c,label:"",tooltip:void 0},layout:"vertical"});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:o+"_label",string:r,help:a,fieldForLabel:o}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"mt-0",wrap:!1,children:[jsxRuntime.jsx(antd.Col,{children:l("#from")}),jsxRuntime.jsx(antd.Col,{className:"pb-1",children:jsxRuntime.jsx("span",{className:"pl-2 pr-2 h-full",children:" - "})}),jsxRuntime.jsx(antd.Col,{children:l("#to")})]})]})}const{Option}=antd.Select,MultiSelection=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(MultiSelectionInput,{...e})})},MultiSelectionInput=e=>{const{ooui:n,onChange:t,value:o}=e,{selectionValues:r,readOnly:a,required:s}=n,l=Array.from(r.entries()),c=l&&l.length&&l.filter(f=>{const[m]=f;return o?!o.includes(m):!0}).map(f=>{const[m,p]=f;return jsxRuntime.jsx(Option,{value:p,children:p},m)}),u=s&&!a?RequiredSelect:antd.Select;function d(f){const m=f.map(p=>{const g=l.find(([v,C])=>p===C);return g&&g[0]});if(m.length===0){t==null||t(void 0);return}t==null||t(m)}return jsxRuntime.jsx(u,{disabled:a,onChange:d,value:o==null?void 0:o.map(f=>r.get(f)),mode:"multiple",showArrow:!0,children:c})},RequiredSelect=styled__default.default(antd.Select)`
103
+ `;function isObject$3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var isObject_1=isObject$3,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=_root,now$2=function(){return root$1.Date.now()},now_1=now$2,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var n=e.length;n--&&reWhitespace.test(e.charAt(n)););return n}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(e){var n=hasOwnProperty.call(e,symToStringTag$1),t=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var o=!0}catch{}var r=nativeObjectToString$1.call(e);return o&&(n?e[symToStringTag$1]=t:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag$1(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$2(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$1=isObject_1,now$1=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,n,t){var o,r,a,s,l,c,u=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);n=toNumber(n)||0,isObject$1(t)&&(d=!!t.leading,f="maxWait"in t,a=f?nativeMax(toNumber(t.maxWait)||0,n):a,m="trailing"in t?!!t.trailing:m);function p(O){var F=o,b=r;return o=r=void 0,u=O,s=e.apply(b,F),s}function h(O){return u=O,l=setTimeout(I,n),d?p(O):s}function v(O){var F=O-c,b=O-u,_=n-F;return f?nativeMin(_,a-b):_}function C(O){var F=O-c,b=O-u;return c===void 0||F>=n||F<0||f&&b>=a}function I(){var O=now$1();if(C(O))return g(O);l=setTimeout(I,v(O))}function g(O){return l=void 0,m&&o?p(O):(o=r=void 0,s)}function y(){l!==void 0&&clearTimeout(l),u=0,o=c=r=l=void 0}function x(){return l===void 0?s:g(now$1())}function w(){var O=now$1(),F=C(O);if(o=arguments,r=this,c=O,F){if(l===void 0)return h(c);if(f)return clearTimeout(l),l=setTimeout(I,n),p(c)}return l===void 0&&(l=setTimeout(I,n)),s}return w.cancel=y,w.flush=x,w}var debounce_1=debounce,browser$1={exports:{}},lib$2={},readableBrowser={exports:{}},events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(n,t,o){return Function.prototype.apply.call(n,t,o)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:ReflectOwnKeys=function(n){return Object.getOwnPropertyNames(n)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}var NumberIsNaN=Number.isNaN||function(n){return n!==n};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter,events.exports.once=once$2,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if(typeof e!="number"||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||NumberIsNaN(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function _getMaxListeners(e){return e._maxListeners===void 0?EventEmitter.defaultMaxListeners:e._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(n){for(var t=[],o=1;o<arguments.length;o++)t.push(arguments[o]);var r=n==="error",a=this._events;if(a!==void 0)r=r&&a.error===void 0;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var c=a[n];if(c===void 0)return!1;if(typeof c=="function")ReflectApply(c,this,t);else for(var u=c.length,d=arrayClone(c,u),o=0;o<u;++o)ReflectApply(d[o],this,t);return!0};function _addListener(e,n,t,o){var r,a,s;if(checkListener(t),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",n,t.listener?t.listener:t),a=e._events),s=a[n]),s===void 0)s=a[n]=t,++e._eventsCount;else if(typeof s=="function"?s=a[n]=o?[t,s]:[s,t]:o?s.unshift(t):s.push(t),r=_getMaxListeners(e),r>0&&s.length>r&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=n,l.count=s.length,ProcessEmitWarning(l)}return e}EventEmitter.prototype.addListener=function(n,t){return _addListener(this,n,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(n,t){return _addListener(this,n,t,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,n,t){var o={fired:!1,wrapFn:void 0,target:e,type:n,listener:t},r=onceWrapper.bind(o);return r.listener=t,o.wrapFn=r,r}EventEmitter.prototype.once=function(n,t){return checkListener(t),this.on(n,_onceWrap(this,n,t)),this},EventEmitter.prototype.prependOnceListener=function(n,t){return checkListener(t),this.prependListener(n,_onceWrap(this,n,t)),this},EventEmitter.prototype.removeListener=function(n,t){var o,r,a,s,l;if(checkListener(t),r=this._events,r===void 0)return this;if(o=r[n],o===void 0)return this;if(o===t||o.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[n],r.removeListener&&this.emit("removeListener",n,o.listener||t));else if(typeof o!="function"){for(a=-1,s=o.length-1;s>=0;s--)if(o[s]===t||o[s].listener===t){l=o[s].listener,a=s;break}if(a<0)return this;a===0?o.shift():spliceOne(o,a),o.length===1&&(r[n]=o[0]),r.removeListener!==void 0&&this.emit("removeListener",n,l||t)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(n){var t,o,r;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[n]),this;if(arguments.length===0){var a=Object.keys(o),s;for(r=0;r<a.length;++r)s=a[r],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=o[n],typeof t=="function")this.removeListener(n,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(n,t[r]);return this};function _listeners(e,n,t){var o=e._events;if(o===void 0)return[];var r=o[n];return r===void 0?[]:typeof r=="function"?t?[r.listener||r]:[r]:t?unwrapListeners(r):arrayClone(r,r.length)}EventEmitter.prototype.listeners=function(n){return _listeners(this,n,!0)},EventEmitter.prototype.rawListeners=function(n){return _listeners(this,n,!1)},EventEmitter.listenerCount=function(e,n){return typeof e.listenerCount=="function"?e.listenerCount(n):listenerCount.call(e,n)},EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(e){var n=this._events;if(n!==void 0){var t=n[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(e,n){for(var t=new Array(n),o=0;o<n;++o)t[o]=e[o];return t}function spliceOne(e,n){for(;n+1<e.length;n++)e[n]=e[n+1];e.pop()}function unwrapListeners(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}function once$2(e,n){return new Promise(function(t,o){function r(s){e.removeListener(n,a),o(s)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",r),t([].slice.call(arguments))}eventTargetAgnosticAddListener(e,n,a,{once:!0}),n!=="error"&&addErrorHandlerIfEventEmitter(e,r,{once:!0})})}function addErrorHandlerIfEventEmitter(e,n,t){typeof e.on=="function"&&eventTargetAgnosticAddListener(e,"error",n,t)}function eventTargetAgnosticAddListener(e,n,t,o){if(typeof e.on=="function")o.once?e.once(n,t):e.on(n,t);else if(typeof e.addEventListener=="function")e.addEventListener(n,function r(a){o.once&&e.removeEventListener(n,r),t(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var streamBrowser=events.exports.EventEmitter;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(__viteBrowserExternal$1);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function e(m,p){var h=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);p&&(v=v.filter(function(C){return Object.getOwnPropertyDescriptor(m,C).enumerable})),h.push.apply(h,v)}return h}function n(m){for(var p=1;p<arguments.length;p++){var h=arguments[p]!=null?arguments[p]:{};p%2?e(Object(h),!0).forEach(function(v){t(m,v,h[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(v){Object.defineProperty(m,v,Object.getOwnPropertyDescriptor(h,v))})}return m}function t(m,p,h){return p in m?Object.defineProperty(m,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[p]=h,m}function o(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function r(m,p){for(var h=0;h<p.length;h++){var v=p[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function a(m,p,h){return p&&r(m.prototype,p),h&&r(m,h),m}var s=require$$0__default.default,l=s.Buffer,c=require$$3,u=c.inspect,d=u&&u.custom||"inspect";function f(m,p,h){l.prototype.copy.call(m,p,h)}return buffer_list=function(){function m(){o(this,m),this.head=null,this.tail=null,this.length=0}return a(m,[{key:"push",value:function(h){var v={data:h,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(h){var v={data:h,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var v=this.head,C=""+v.data;v=v.next;)C+=h+v.data;return C}},{key:"concat",value:function(h){if(this.length===0)return l.alloc(0);for(var v=l.allocUnsafe(h>>>0),C=this.head,I=0;C;)f(C.data,v,I),I+=C.data.length,C=C.next;return v}},{key:"consume",value:function(h,v){var C;return h<this.head.data.length?(C=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?C=this.shift():C=v?this._getString(h):this._getBuffer(h),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var v=this.head,C=1,I=v.data;for(h-=I.length;v=v.next;){var g=v.data,y=h>g.length?g.length:h;if(y===g.length?I+=g:I+=g.slice(0,h),h-=y,h===0){y===g.length?(++C,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=g.slice(y));break}++C}return this.length-=C,I}},{key:"_getBuffer",value:function(h){var v=l.allocUnsafe(h),C=this.head,I=1;for(C.data.copy(v),h-=C.data.length;C=C.next;){var g=C.data,y=h>g.length?g.length:h;if(g.copy(v,v.length-h,0,y),h-=y,h===0){y===g.length?(++I,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=g.slice(y));break}++I}return this.length-=I,v}},{key:d,value:function(h,v){return u(this,n({},v,{depth:0,customInspect:!1}))}}]),m}(),buffer_list}function destroy(e,n){var t=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(n?n(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,e)):process.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!n&&a?t._writableState?t._writableState.errorEmitted?process.nextTick(emitCloseNT,t):(t._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,t,a)):process.nextTick(emitErrorAndCloseNT,t,a):n?(process.nextTick(emitCloseNT,t),n(a)):process.nextTick(emitCloseNT,t)}),this)}function emitErrorAndCloseNT(e,n){emitErrorNT(e,n),emitCloseNT(e)}function emitCloseNT(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,n){e.emit("error",n)}function errorOrDestroy(e,n){var t=e._readableState,o=e._writableState;t&&t.autoDestroy||o&&o.autoDestroy?e.destroy(n):e.emit("error",n)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var codes={};function createErrorType(e,n,t){t||(t=Error);function o(a,s,l){return typeof n=="string"?n:n(a,s,l)}var r=function(a){_inheritsLoose(s,a);function s(l,c,u){return a.call(this,o(l,c,u))||this}return s}(t);r.prototype.name=t.name,r.prototype.code=e,codes[e]=r}function oneOf(e,n){if(Array.isArray(e)){var t=e.length;return e=e.map(function(o){return String(o)}),t>2?"one of ".concat(n," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(n," ").concat(e[0]," or ").concat(e[1]):"of ".concat(n," ").concat(e[0])}else return"of ".concat(n," ").concat(String(e))}function startsWith(e,n,t){return e.substr(!t||t<0?0:+t,n.length)===n}function endsWith(e,n,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-n.length,t)===n}function includes(e,n,t){return typeof t!="number"&&(t=0),t+n.length>e.length?!1:e.indexOf(n,t)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(e,n){return'The value "'+n+'" is invalid for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,n,t){var o;typeof n=="string"&&startsWith(n,"not ")?(o="must not be",n=n.replace(/^not /,"")):o="must be";var r;if(endsWith(e," argument"))r="The ".concat(e," ").concat(o," ").concat(oneOf(n,"type"));else{var a=includes(e,".")?"property":"argument";r='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(oneOf(n,"type"))}return r+=". Received type ".concat(typeof t),r},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,n,t){return e.highWaterMark!=null?e.highWaterMark:n?e[t]:null}function getHighWaterMark(e,n,t,o){var r=highWaterMarkFrom(n,o,t);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var a=o?t:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(a,r)}return Math.floor(r)}return e.objectMode?16:16*1024}var state={getHighWaterMark},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,t){if(t){n.super_=t;var o=function(){};o.prototype=t.prototype,n.prototype=new o,n.prototype.constructor=n}};var browser=deprecate$1;function deprecate$1(e,n){if(config("noDeprecation"))return e;var t=!1;function o(){if(!t){if(config("throwDeprecation"))throw new Error(n);config("traceDeprecation")?console.trace(n):console.warn(n),t=!0}return e.apply(this,arguments)}return o}function config(e){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var n=commonjsGlobal.localStorage[e];return n==null?!1:String(n).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=b;function e(M){var A=this;this.next=null,this.entry=null,this.finish=function(){V(A,M)}}var n;b.WritableState=O;var t={deprecate:browser},o=streamBrowser,r=require$$0__default.default.Buffer,a=commonjsGlobal.Uint8Array||function(){};function s(M){return r.from(M)}function l(M){return r.isBuffer(M)||M instanceof a}var c=destroy_1,u=state,d=u.getHighWaterMark,f=errorsBrowser.codes,m=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,C=f.ERR_STREAM_DESTROYED,I=f.ERR_STREAM_NULL_VALUES,g=f.ERR_STREAM_WRITE_AFTER_END,y=f.ERR_UNKNOWN_ENCODING,x=c.errorOrDestroy;inherits_browser.exports(b,o);function w(){}function O(M,A,U){n=n||require_stream_duplex(),M=M||{},typeof U!="boolean"&&(U=A instanceof n),this.objectMode=!!M.objectMode,U&&(this.objectMode=this.objectMode||!!M.writableObjectMode),this.highWaterMark=d(this,M,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=M.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){$(A,Q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}O.prototype.getBuffer=function(){for(var A=this.bufferedRequest,U=[];A;)U.push(A),A=A.next;return U},function(){try{Object.defineProperty(O.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var F;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(F=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(A){return F.call(this,A)?!0:this!==b?!1:A&&A._writableState instanceof O}})):F=function(A){return A instanceof this};function b(M){n=n||require_stream_duplex();var A=this instanceof n;if(!A&&!F.call(b,this))return new b(M);this._writableState=new O(M,this,A),this.writable=!0,M&&(typeof M.write=="function"&&(this._write=M.write),typeof M.writev=="function"&&(this._writev=M.writev),typeof M.destroy=="function"&&(this._destroy=M.destroy),typeof M.final=="function"&&(this._final=M.final)),o.call(this)}b.prototype.pipe=function(){x(this,new v)};function _(M,A){var U=new g;x(M,U),process.nextTick(A,U)}function T(M,A,U,K){var Q;return U===null?Q=new I:typeof U!="string"&&!A.objectMode&&(Q=new m("chunk",["string","Buffer"],U)),Q?(x(M,Q),process.nextTick(K,Q),!1):!0}b.prototype.write=function(M,A,U){var K=this._writableState,Q=!1,E=!K.objectMode&&l(M);return E&&!r.isBuffer(M)&&(M=s(M)),typeof A=="function"&&(U=A,A=null),E?A="buffer":A||(A=K.defaultEncoding),typeof U!="function"&&(U=w),K.ending?_(this,U):(E||T(this,K,M,U))&&(K.pendingcb++,Q=N(this,K,E,M,A,U)),Q},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,!M.writing&&!M.corked&&!M.bufferProcessing&&M.bufferedRequest&&H(this,M))},b.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=A.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((A+"").toLowerCase())>-1))throw new y(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(b.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function k(M,A,U){return!M.objectMode&&M.decodeStrings!==!1&&typeof A=="string"&&(A=r.from(A,U)),A}Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(M,A,U,K,Q,E){if(!U){var S=k(A,K,Q);K!==S&&(U=!0,Q="buffer",K=S)}var z=A.objectMode?1:K.length;A.length+=z;var X=A.length<A.highWaterMark;if(X||(A.needDrain=!0),A.writing||A.corked){var ne=A.lastBufferedRequest;A.lastBufferedRequest={chunk:K,encoding:Q,isBuf:U,callback:E,next:null},ne?ne.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else D(M,A,!1,z,K,Q,E);return X}function D(M,A,U,K,Q,E,S){A.writelen=K,A.writecb=S,A.writing=!0,A.sync=!0,A.destroyed?A.onwrite(new C("write")):U?M._writev(Q,A.onwrite):M._write(Q,E,A.onwrite),A.sync=!1}function P(M,A,U,K,Q){--A.pendingcb,U?(process.nextTick(Q,K),process.nextTick(Z,M,A),M._writableState.errorEmitted=!0,x(M,K)):(Q(K),M._writableState.errorEmitted=!0,x(M,K),Z(M,A))}function j(M){M.writing=!1,M.writecb=null,M.length-=M.writelen,M.writelen=0}function $(M,A){var U=M._writableState,K=U.sync,Q=U.writecb;if(typeof Q!="function")throw new h;if(j(U),A)P(M,U,K,A,Q);else{var E=G(U)||M.destroyed;!E&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&H(M,U),K?process.nextTick(q,M,U,E,Q):q(M,U,E,Q)}}function q(M,A,U,K){U||B(M,A),A.pendingcb--,K(),Z(M,A)}function B(M,A){A.length===0&&A.needDrain&&(A.needDrain=!1,M.emit("drain"))}function H(M,A){A.bufferProcessing=!0;var U=A.bufferedRequest;if(M._writev&&U&&U.next){var K=A.bufferedRequestCount,Q=new Array(K),E=A.corkedRequestsFree;E.entry=U;for(var S=0,z=!0;U;)Q[S]=U,U.isBuf||(z=!1),U=U.next,S+=1;Q.allBuffers=z,D(M,A,!0,A.length,Q,"",E.finish),A.pendingcb++,A.lastBufferedRequest=null,E.next?(A.corkedRequestsFree=E.next,E.next=null):A.corkedRequestsFree=new e(A),A.bufferedRequestCount=0}else{for(;U;){var X=U.chunk,ne=U.encoding,ee=U.callback,re=A.objectMode?1:X.length;if(D(M,A,!1,re,X,ne,ee),U=U.next,A.bufferedRequestCount--,A.writing)break}U===null&&(A.lastBufferedRequest=null)}A.bufferedRequest=U,A.bufferProcessing=!1}b.prototype._write=function(M,A,U){U(new p("_write()"))},b.prototype._writev=null,b.prototype.end=function(M,A,U){var K=this._writableState;return typeof M=="function"?(U=M,M=null,A=null):typeof A=="function"&&(U=A,A=null),M!=null&&this.write(M,A),K.corked&&(K.corked=1,this.uncork()),K.ending||L(this,K,U),this},Object.defineProperty(b.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function G(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function Y(M,A){M._final(function(U){A.pendingcb--,U&&x(M,U),A.prefinished=!0,M.emit("prefinish"),Z(M,A)})}function W(M,A){!A.prefinished&&!A.finalCalled&&(typeof M._final=="function"&&!A.destroyed?(A.pendingcb++,A.finalCalled=!0,process.nextTick(Y,M,A)):(A.prefinished=!0,M.emit("prefinish")))}function Z(M,A){var U=G(A);if(U&&(W(M,A),A.pendingcb===0&&(A.finished=!0,M.emit("finish"),A.autoDestroy))){var K=M._readableState;(!K||K.autoDestroy&&K.endEmitted)&&M.destroy()}return U}function L(M,A,U){A.ending=!0,Z(M,A),U&&(A.finished?process.nextTick(U):M.once("finish",U)),A.ended=!0,M.writable=!1}function V(M,A,U){var K=M.entry;for(M.entry=null;K;){var Q=K.callback;A.pendingcb--,Q(U),K=K.next}A.corkedRequestsFree.next=M}return Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(A){!this._writableState||(this._writableState.destroyed=A)}}),b.prototype.destroy=c.destroy,b.prototype._undestroy=c.undestroy,b.prototype._destroy=function(M,A){A(M)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(u){var d=[];for(var f in u)d.push(f);return d};_stream_duplex=s;var n=require_stream_readable(),t=require_stream_writable();inherits_browser.exports(s,n);for(var o=e(t.prototype),r=0;r<o.length;r++){var a=o[r];s.prototype[a]||(s.prototype[a]=t.prototype[a])}function s(u){if(!(this instanceof s))return new s(u);n.call(this,u),t.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),_stream_duplex}var string_decoder={},safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,n){var t=require$$0__default.default,o=t.Buffer;function r(s,l){for(var c in s)l[c]=s[c]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=t:(r(t,n),n.Buffer=a);function a(s,l,c){return o(s,l,c)}r(o,a),a.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return o(s,l,c)},a.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var u=o(s);return l!==void 0?typeof c=="string"?u.fill(l,c):u.fill(l):u.fill(0),u},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return o(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(s)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,n=e.isEncoding||function(I){switch(I=""+I,I&&I.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(I){if(!I)return"utf8";for(var g;;)switch(I){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return I;default:if(g)return;I=(""+I).toLowerCase(),g=!0}}function o(I){var g=t(I);if(typeof g!="string"&&(e.isEncoding===n||!n(I)))throw new Error("Unknown encoding: "+I);return g||I}string_decoder.StringDecoder=r;function r(I){this.encoding=o(I);var g;switch(this.encoding){case"utf16le":this.text=f,this.end=m,g=4;break;case"utf8":this.fillLast=c,g=4;break;case"base64":this.text=p,this.end=h,g=3;break;default:this.write=v,this.end=C;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(g)}r.prototype.write=function(I){if(I.length===0)return"";var g,y;if(this.lastNeed){if(g=this.fillLast(I),g===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<I.length?g?g+this.text(I,y):this.text(I,y):g||""},r.prototype.end=d,r.prototype.text=u,r.prototype.fillLast=function(I){if(this.lastNeed<=I.length)return I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,I.length),this.lastNeed-=I.length};function a(I){return I<=127?0:I>>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function s(I,g,y){var x=g.length-1;if(x<y)return 0;var w=a(g[x]);return w>=0?(w>0&&(I.lastNeed=w-1),w):--x<y||w===-2?0:(w=a(g[x]),w>=0?(w>0&&(I.lastNeed=w-2),w):--x<y||w===-2?0:(w=a(g[x]),w>=0?(w>0&&(w===2?w=0:I.lastNeed=w-3),w):0))}function l(I,g,y){if((g[0]&192)!==128)return I.lastNeed=0,"\uFFFD";if(I.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return I.lastNeed=1,"\uFFFD";if(I.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return I.lastNeed=2,"\uFFFD"}}function c(I){var g=this.lastTotal-this.lastNeed,y=l(this,I);if(y!==void 0)return y;if(this.lastNeed<=I.length)return I.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,g,0,I.length),this.lastNeed-=I.length}function u(I,g){var y=s(this,I,g);if(!this.lastNeed)return I.toString("utf8",g);this.lastTotal=y;var x=I.length-(y-this.lastNeed);return I.copy(this.lastChar,0,x),I.toString("utf8",g,x)}function d(I){var g=I&&I.length?this.write(I):"";return this.lastNeed?g+"\uFFFD":g}function f(I,g){if((I.length-g)%2===0){var y=I.toString("utf16le",g);if(y){var x=y.charCodeAt(y.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",g,I.length-1)}function m(I){var g=I&&I.length?this.write(I):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,y)}return g}function p(I,g){var y=(I.length-g)%3;return y===0?I.toString("base64",g):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",g,I.length-y))}function h(I){var g=I&&I.length?this.write(I):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function v(I){return I.toString(this.encoding)}function C(I){return I&&I.length?this.write(I):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(e){var n=!1;return function(){if(!n){n=!0;for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];e.apply(this,o)}}}function noop$2(){}function isRequest$1(e){return e.setHeader&&typeof e.abort=="function"}function eos$1(e,n,t){if(typeof n=="function")return eos$1(e,null,n);n||(n={}),t=once$1(t||noop$2);var o=n.readable||n.readable!==!1&&e.readable,r=n.writable||n.writable!==!1&&e.writable,a=function(){e.writable||l()},s=e._writableState&&e._writableState.finished,l=function(){r=!1,s=!0,o||t.call(e)},c=e._readableState&&e._readableState.endEmitted,u=function(){o=!1,c=!0,r||t.call(e)},d=function(h){t.call(e,h)},f=function(){var h;if(o&&!c)return(!e._readableState||!e._readableState.ended)&&(h=new ERR_STREAM_PREMATURE_CLOSE),t.call(e,h);if(r&&!s)return(!e._writableState||!e._writableState.ended)&&(h=new ERR_STREAM_PREMATURE_CLOSE),t.call(e,h)},m=function(){e.req.on("finish",l)};return isRequest$1(e)?(e.on("complete",l),e.on("abort",f),e.req?m():e.on("request",m)):r&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",u),e.on("finish",l),n.error!==!1&&e.on("error",d),e.on("close",f),function(){e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",m),e.req&&e.req.removeListener("finish",l),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",l),e.removeListener("end",u),e.removeListener("error",d),e.removeListener("close",f)}}var endOfStream=eos$1,async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var e;function n(I,g,y){return g in I?Object.defineProperty(I,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):I[g]=y,I}var t=endOfStream,o=Symbol("lastResolve"),r=Symbol("lastReject"),a=Symbol("error"),s=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),u=Symbol("stream");function d(I,g){return{value:I,done:g}}function f(I){var g=I[o];if(g!==null){var y=I[u].read();y!==null&&(I[l]=null,I[o]=null,I[r]=null,g(d(y,!1)))}}function m(I){process.nextTick(f,I)}function p(I,g){return function(y,x){I.then(function(){if(g[s]){y(d(void 0,!0));return}g[c](y,x)},x)}}var h=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[u]},next:function(){var g=this,y=this[a];if(y!==null)return Promise.reject(y);if(this[s])return Promise.resolve(d(void 0,!0));if(this[u].destroyed)return new Promise(function(F,b){process.nextTick(function(){g[a]?b(g[a]):F(d(void 0,!0))})});var x=this[l],w;if(x)w=new Promise(p(x,this));else{var O=this[u].read();if(O!==null)return Promise.resolve(d(O,!1));w=new Promise(this[c])}return this[l]=w,w}},n(e,Symbol.asyncIterator,function(){return this}),n(e,"return",function(){var g=this;return new Promise(function(y,x){g[u].destroy(null,function(w){if(w){x(w);return}y(d(void 0,!0))})})}),e),h),C=function(g){var y,x=Object.create(v,(y={},n(y,u,{value:g,writable:!0}),n(y,o,{value:null,writable:!0}),n(y,r,{value:null,writable:!0}),n(y,a,{value:null,writable:!0}),n(y,s,{value:g._readableState.endEmitted,writable:!0}),n(y,c,{value:function(O,F){var b=x[u].read();b?(x[l]=null,x[o]=null,x[r]=null,O(d(b,!1))):(x[o]=O,x[r]=F)},writable:!0}),y));return x[l]=null,t(g,function(w){if(w&&w.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=x[r];O!==null&&(x[l]=null,x[o]=null,x[r]=null,O(w)),x[a]=w;return}var F=x[o];F!==null&&(x[l]=null,x[o]=null,x[r]=null,F(d(void 0,!0))),x[s]=!0}),g.on("readable",m.bind(null,x)),x};return async_iterator=C,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=_;var e;_.ReadableState=b,events.exports.EventEmitter;var n=function(S,z){return S.listeners(z).length},t=streamBrowser,o=require$$0__default.default.Buffer,r=commonjsGlobal.Uint8Array||function(){};function a(E){return o.from(E)}function s(E){return o.isBuffer(E)||E instanceof r}var l=require$$3,c;l&&l.debuglog?c=l.debuglog("stream"):c=function(){};var u=requireBuffer_list(),d=destroy_1,f=state,m=f.getHighWaterMark,p=errorsBrowser.codes,h=p.ERR_INVALID_ARG_TYPE,v=p.ERR_STREAM_PUSH_AFTER_EOF,C=p.ERR_METHOD_NOT_IMPLEMENTED,I=p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,g,y,x;inherits_browser.exports(_,t);var w=d.errorOrDestroy,O=["error","close","destroy","pause","resume"];function F(E,S,z){if(typeof E.prependListener=="function")return E.prependListener(S,z);!E._events||!E._events[S]?E.on(S,z):Array.isArray(E._events[S])?E._events[S].unshift(z):E._events[S]=[z,E._events[S]]}function b(E,S,z){e=e||require_stream_duplex(),E=E||{},typeof z!="boolean"&&(z=S instanceof e),this.objectMode=!!E.objectMode,z&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=m(this,E,"readableHighWaterMark",z),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(g||(g=requireString_decoder().StringDecoder),this.decoder=new g(E.encoding),this.encoding=E.encoding)}function _(E){if(e=e||require_stream_duplex(),!(this instanceof _))return new _(E);var S=this instanceof e;this._readableState=new b(E,this,S),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),t.call(this)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(S){!this._readableState||(this._readableState.destroyed=S)}}),_.prototype.destroy=d.destroy,_.prototype._undestroy=d.undestroy,_.prototype._destroy=function(E,S){S(E)},_.prototype.push=function(E,S){var z=this._readableState,X;return z.objectMode?X=!0:typeof E=="string"&&(S=S||z.defaultEncoding,S!==z.encoding&&(E=o.from(E,S),S=""),X=!0),T(this,E,S,!1,X)},_.prototype.unshift=function(E){return T(this,E,null,!0,!1)};function T(E,S,z,X,ne){c("readableAddChunk",S);var ee=E._readableState;if(S===null)ee.reading=!1,$(E,ee);else{var re;if(ne||(re=N(ee,S)),re)w(E,re);else if(ee.objectMode||S&&S.length>0)if(typeof S!="string"&&!ee.objectMode&&Object.getPrototypeOf(S)!==o.prototype&&(S=a(S)),X)ee.endEmitted?w(E,new I):k(E,ee,S,!0);else if(ee.ended)w(E,new v);else{if(ee.destroyed)return!1;ee.reading=!1,ee.decoder&&!z?(S=ee.decoder.write(S),ee.objectMode||S.length!==0?k(E,ee,S,!1):H(E,ee)):k(E,ee,S,!1)}else X||(ee.reading=!1,H(E,ee))}return!ee.ended&&(ee.length<ee.highWaterMark||ee.length===0)}function k(E,S,z,X){S.flowing&&S.length===0&&!S.sync?(S.awaitDrain=0,E.emit("data",z)):(S.length+=S.objectMode?1:z.length,X?S.buffer.unshift(z):S.buffer.push(z),S.needReadable&&q(E)),H(E,S)}function N(E,S){var z;return!s(S)&&typeof S!="string"&&S!==void 0&&!E.objectMode&&(z=new h("chunk",["string","Buffer","Uint8Array"],S)),z}_.prototype.isPaused=function(){return this._readableState.flowing===!1},_.prototype.setEncoding=function(E){g||(g=requireString_decoder().StringDecoder);var S=new g(E);this._readableState.decoder=S,this._readableState.encoding=this._readableState.decoder.encoding;for(var z=this._readableState.buffer.head,X="";z!==null;)X+=S.write(z.data),z=z.next;return this._readableState.buffer.clear(),X!==""&&this._readableState.buffer.push(X),this._readableState.length=X.length,this};var D=1073741824;function P(E){return E>=D?E=D:(E--,E|=E>>>1,E|=E>>>2,E|=E>>>4,E|=E>>>8,E|=E>>>16,E++),E}function j(E,S){return E<=0||S.length===0&&S.ended?0:S.objectMode?1:E!==E?S.flowing&&S.length?S.buffer.head.data.length:S.length:(E>S.highWaterMark&&(S.highWaterMark=P(E)),E<=S.length?E:S.ended?S.length:(S.needReadable=!0,0))}_.prototype.read=function(E){c("read",E),E=parseInt(E,10);var S=this._readableState,z=E;if(E!==0&&(S.emittedReadable=!1),E===0&&S.needReadable&&((S.highWaterMark!==0?S.length>=S.highWaterMark:S.length>0)||S.ended))return c("read: emitReadable",S.length,S.ended),S.length===0&&S.ended?U(this):q(this),null;if(E=j(E,S),E===0&&S.ended)return S.length===0&&U(this),null;var X=S.needReadable;c("need readable",X),(S.length===0||S.length-E<S.highWaterMark)&&(X=!0,c("length less than watermark",X)),S.ended||S.reading?(X=!1,c("reading or ended",X)):X&&(c("do read"),S.reading=!0,S.sync=!0,S.length===0&&(S.needReadable=!0),this._read(S.highWaterMark),S.sync=!1,S.reading||(E=j(z,S)));var ne;return E>0?ne=A(E,S):ne=null,ne===null?(S.needReadable=S.length<=S.highWaterMark,E=0):(S.length-=E,S.awaitDrain=0),S.length===0&&(S.ended||(S.needReadable=!0),z!==E&&S.ended&&U(this)),ne!==null&&this.emit("data",ne),ne};function $(E,S){if(c("onEofChunk"),!S.ended){if(S.decoder){var z=S.decoder.end();z&&z.length&&(S.buffer.push(z),S.length+=S.objectMode?1:z.length)}S.ended=!0,S.sync?q(E):(S.needReadable=!1,S.emittedReadable||(S.emittedReadable=!0,B(E)))}}function q(E){var S=E._readableState;c("emitReadable",S.needReadable,S.emittedReadable),S.needReadable=!1,S.emittedReadable||(c("emitReadable",S.flowing),S.emittedReadable=!0,process.nextTick(B,E))}function B(E){var S=E._readableState;c("emitReadable_",S.destroyed,S.length,S.ended),!S.destroyed&&(S.length||S.ended)&&(E.emit("readable"),S.emittedReadable=!1),S.needReadable=!S.flowing&&!S.ended&&S.length<=S.highWaterMark,M(E)}function H(E,S){S.readingMore||(S.readingMore=!0,process.nextTick(G,E,S))}function G(E,S){for(;!S.reading&&!S.ended&&(S.length<S.highWaterMark||S.flowing&&S.length===0);){var z=S.length;if(c("maybeReadMore read 0"),E.read(0),z===S.length)break}S.readingMore=!1}_.prototype._read=function(E){w(this,new C("_read()"))},_.prototype.pipe=function(E,S){var z=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=E;break;case 1:X.pipes=[X.pipes,E];break;default:X.pipes.push(E);break}X.pipesCount+=1,c("pipe count=%d opts=%j",X.pipesCount,S);var ne=(!S||S.end!==!1)&&E!==process.stdout&&E!==process.stderr,ee=ne?ae:ve;X.endEmitted?process.nextTick(ee):z.once("end",ee),E.on("unpipe",re);function re(Se,xe){c("onunpipe"),Se===z&&xe&&xe.hasUnpiped===!1&&(xe.hasUnpiped=!0,pe())}function ae(){c("onend"),E.end()}var ie=Y(z);E.on("drain",ie);var ce=!1;function pe(){c("cleanup"),E.removeListener("close",Ie),E.removeListener("finish",Fe),E.removeListener("drain",ie),E.removeListener("error",Re),E.removeListener("unpipe",re),z.removeListener("end",ae),z.removeListener("end",ve),z.removeListener("data",ge),ce=!0,X.awaitDrain&&(!E._writableState||E._writableState.needDrain)&&ie()}z.on("data",ge);function ge(Se){c("ondata");var xe=E.write(Se);c("dest.write",xe),xe===!1&&((X.pipesCount===1&&X.pipes===E||X.pipesCount>1&&Q(X.pipes,E)!==-1)&&!ce&&(c("false write response, pause",X.awaitDrain),X.awaitDrain++),z.pause())}function Re(Se){c("onerror",Se),ve(),E.removeListener("error",Re),n(E,"error")===0&&w(E,Se)}F(E,"error",Re);function Ie(){E.removeListener("finish",Fe),ve()}E.once("close",Ie);function Fe(){c("onfinish"),E.removeListener("close",Ie),ve()}E.once("finish",Fe);function ve(){c("unpipe"),z.unpipe(E)}return E.emit("pipe",z),X.flowing||(c("pipe resume"),z.resume()),E};function Y(E){return function(){var z=E._readableState;c("pipeOnDrain",z.awaitDrain),z.awaitDrain&&z.awaitDrain--,z.awaitDrain===0&&n(E,"data")&&(z.flowing=!0,M(E))}}_.prototype.unpipe=function(E){var S=this._readableState,z={hasUnpiped:!1};if(S.pipesCount===0)return this;if(S.pipesCount===1)return E&&E!==S.pipes?this:(E||(E=S.pipes),S.pipes=null,S.pipesCount=0,S.flowing=!1,E&&E.emit("unpipe",this,z),this);if(!E){var X=S.pipes,ne=S.pipesCount;S.pipes=null,S.pipesCount=0,S.flowing=!1;for(var ee=0;ee<ne;ee++)X[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var re=Q(S.pipes,E);return re===-1?this:(S.pipes.splice(re,1),S.pipesCount-=1,S.pipesCount===1&&(S.pipes=S.pipes[0]),E.emit("unpipe",this,z),this)},_.prototype.on=function(E,S){var z=t.prototype.on.call(this,E,S),X=this._readableState;return E==="data"?(X.readableListening=this.listenerCount("readable")>0,X.flowing!==!1&&this.resume()):E==="readable"&&!X.endEmitted&&!X.readableListening&&(X.readableListening=X.needReadable=!0,X.flowing=!1,X.emittedReadable=!1,c("on readable",X.length,X.reading),X.length?q(this):X.reading||process.nextTick(Z,this)),z},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(E,S){var z=t.prototype.removeListener.call(this,E,S);return E==="readable"&&process.nextTick(W,this),z},_.prototype.removeAllListeners=function(E){var S=t.prototype.removeAllListeners.apply(this,arguments);return(E==="readable"||E===void 0)&&process.nextTick(W,this),S};function W(E){var S=E._readableState;S.readableListening=E.listenerCount("readable")>0,S.resumeScheduled&&!S.paused?S.flowing=!0:E.listenerCount("data")>0&&E.resume()}function Z(E){c("readable nexttick read 0"),E.read(0)}_.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!E.readableListening,L(this,E)),E.paused=!1,this};function L(E,S){S.resumeScheduled||(S.resumeScheduled=!0,process.nextTick(V,E,S))}function V(E,S){c("resume",S.reading),S.reading||E.read(0),S.resumeScheduled=!1,E.emit("resume"),M(E),S.flowing&&!S.reading&&E.read(0)}_.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function M(E){var S=E._readableState;for(c("flow",S.flowing);S.flowing&&E.read()!==null;);}_.prototype.wrap=function(E){var S=this,z=this._readableState,X=!1;E.on("end",function(){if(c("wrapped end"),z.decoder&&!z.ended){var re=z.decoder.end();re&&re.length&&S.push(re)}S.push(null)}),E.on("data",function(re){if(c("wrapped data"),z.decoder&&(re=z.decoder.write(re)),!(z.objectMode&&re==null)&&!(!z.objectMode&&(!re||!re.length))){var ae=S.push(re);ae||(X=!0,E.pause())}});for(var ne in E)this[ne]===void 0&&typeof E[ne]=="function"&&(this[ne]=function(ae){return function(){return E[ae].apply(E,arguments)}}(ne));for(var ee=0;ee<O.length;ee++)E.on(O[ee],this.emit.bind(this,O[ee]));return this._read=function(re){c("wrapped _read",re),X&&(X=!1,E.resume())},this},typeof Symbol=="function"&&(_.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=requireAsync_iterator()),y(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(S){this._readableState&&(this._readableState.flowing=S)}}),_._fromList=A,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function A(E,S){if(S.length===0)return null;var z;return S.objectMode?z=S.buffer.shift():!E||E>=S.length?(S.decoder?z=S.buffer.join(""):S.buffer.length===1?z=S.buffer.first():z=S.buffer.concat(S.length),S.buffer.clear()):z=S.buffer.consume(E,S.decoder),z}function U(E){var S=E._readableState;c("endReadable",S.endEmitted),S.endEmitted||(S.ended=!0,process.nextTick(K,S,E))}function K(E,S){if(c("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,S.readable=!1,S.emit("end"),E.autoDestroy)){var z=S._writableState;(!z||z.autoDestroy&&z.finished)&&S.destroy()}}typeof Symbol=="function"&&(_.from=function(E,S){return x===void 0&&(x=requireFromBrowser()),x(_,E,S)});function Q(E,S){for(var z=0,X=E.length;z<X;z++)if(E[z]===S)return z;return-1}return _stream_readable}var _stream_transform=Transform$1,_require$codes$1=errorsBrowser.codes,ERR_METHOD_NOT_IMPLEMENTED=_require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes$1.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=require_stream_duplex();inherits_browser.exports(Transform$1,Duplex);function afterTransform(e,n){var t=this._transformState;t.transforming=!1;var o=t.writecb;if(o===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);t.writechunk=null,t.writecb=null,n!=null&&this.push(n),o(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function Transform$1(e){if(!(this instanceof Transform$1))return new Transform$1(e);Duplex.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(n,t){done(e,n,t)}):done(this,null,null)}Transform$1.prototype.push=function(e,n){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,e,n)},Transform$1.prototype._transform=function(e,n,t){t(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))},Transform$1.prototype._write=function(e,n,t){var o=this._transformState;if(o.writecb=t,o.writechunk=e,o.writeencoding=n,!o.transforming){var r=this._readableState;(o.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},Transform$1.prototype._read=function(e){var n=this._transformState;n.writechunk!==null&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0},Transform$1.prototype._destroy=function(e,n){Duplex.prototype._destroy.call(this,e,function(t){n(t)})};function done(e,n,t){if(n)return e.emit("error",n);if(t!=null&&e.push(t),e._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(e._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return e.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform;inherits_browser.exports(PassThrough,Transform);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);Transform.call(this,e)}PassThrough.prototype._transform=function(e,n,t){t(null,e)};var eos;function once(e){var n=!1;return function(){n||(n=!0,e.apply(void 0,arguments))}}var _require$codes=errorsBrowser.codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop$1(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort=="function"}function destroyer(e,n,t,o){o=once(o);var r=!1;e.on("close",function(){r=!0}),eos===void 0&&(eos=endOfStream),eos(e,{readable:n,writable:t},function(s){if(s)return o(s);r=!0,o()});var a=!1;return function(s){if(!r&&!a){if(a=!0,isRequest(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();o(s||new ERR_STREAM_DESTROYED("pipe"))}}}function call(e){e()}function pipe(e,n){return e.pipe(n)}function popCallback(e){return!e.length||typeof e[e.length-1]!="function"?noop$1:e.pop()}function pipeline(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o=popCallback(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new ERR_MISSING_ARGS("streams");var r,a=n.map(function(s,l){var c=l<n.length-1,u=l>0;return destroyer(s,c,u,function(d){r||(r=d),d&&a.forEach(call),!c&&(a.forEach(call),o(r))})});return n.reduce(pipe)}var pipeline_1=pipeline;(function(e,n){n=e.exports=require_stream_readable(),n.Stream=n,n.Readable=n,n.Writable=require_stream_writable(),n.Duplex=require_stream_duplex(),n.Transform=_stream_transform,n.PassThrough=_stream_passthrough,n.finished=endOfStream,n.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports),Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReadableWebToNodeStream=void 0;const readable_stream_1=readableBrowser.exports;class ReadableWebToNodeStream extends readable_stream_1.Readable{constructor(n){super(),this.bytesRead=0,this.released=!1,this.reader=n.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const n=await this.pendingRead;delete this.pendingRead,n.done||this.released?this.push(null):(this.bytesRead+=n.value.length,this.push(n.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}lib$2.ReadableWebToNodeStream=ReadableWebToNodeStream;var lib$1={},ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(e,n,t,o,r){var a,s,l=r*8-o-1,c=(1<<l)-1,u=c>>1,d=-7,f=t?r-1:0,m=t?-1:1,p=e[n+f];for(f+=m,a=p&(1<<-d)-1,p>>=-d,d+=l;d>0;a=a*256+e[n+f],f+=m,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=o;d>0;s=s*256+e[n+f],f+=m,d-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,o),a=a-u}return(p?-1:1)*s*Math.pow(2,a-o)},ieee754.write=function(e,n,t,o,r,a){var s,l,c,u=a*8-r-1,d=(1<<u)-1,f=d>>1,m=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:a-1,h=o?1:-1,v=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,s=d):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?n+=m/c:n+=m*Math.pow(2,1-f),n*c>=2&&(s++,c/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(n*c-1)*Math.pow(2,r),s=s+f):(l=n*Math.pow(2,f-1)*Math.pow(2,r),s=0));r>=8;e[t+p]=l&255,p+=h,l/=256,r-=8);for(s=s<<r|l,u+=r;u>0;e[t+p]=s&255,p+=h,s/=256,u-=8);e[t+p-h]|=v*128},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const n=ieee754;function t(c){return new DataView(c.buffer,c.byteOffset)}e.UINT8={len:1,get(c,u){return t(c).getUint8(u)},put(c,u,d){return t(c).setUint8(u,d),u+1}},e.UINT16_LE={len:2,get(c,u){return t(c).getUint16(u,!0)},put(c,u,d){return t(c).setUint16(u,d,!0),u+2}},e.UINT16_BE={len:2,get(c,u){return t(c).getUint16(u)},put(c,u,d){return t(c).setUint16(u,d),u+2}},e.UINT24_LE={len:3,get(c,u){const d=t(c);return d.getUint8(u)+(d.getUint16(u+1,!0)<<8)},put(c,u,d){const f=t(c);return f.setUint8(u,d&255),f.setUint16(u+1,d>>8,!0),u+3}},e.UINT24_BE={len:3,get(c,u){const d=t(c);return(d.getUint16(u)<<8)+d.getUint8(u+2)},put(c,u,d){const f=t(c);return f.setUint16(u,d>>8),f.setUint8(u+2,d&255),u+3}},e.UINT32_LE={len:4,get(c,u){return t(c).getUint32(u,!0)},put(c,u,d){return t(c).setUint32(u,d,!0),u+4}},e.UINT32_BE={len:4,get(c,u){return t(c).getUint32(u)},put(c,u,d){return t(c).setUint32(u,d),u+4}},e.INT8={len:1,get(c,u){return t(c).getInt8(u)},put(c,u,d){return t(c).setInt8(u,d),u+1}},e.INT16_BE={len:2,get(c,u){return t(c).getInt16(u)},put(c,u,d){return t(c).setInt16(u,d),u+2}},e.INT16_LE={len:2,get(c,u){return t(c).getInt16(u,!0)},put(c,u,d){return t(c).setInt16(u,d,!0),u+2}},e.INT24_LE={len:3,get(c,u){const d=e.UINT24_LE.get(c,u);return d>8388607?d-16777216:d},put(c,u,d){const f=t(c);return f.setUint8(u,d&255),f.setUint16(u+1,d>>8,!0),u+3}},e.INT24_BE={len:3,get(c,u){const d=e.UINT24_BE.get(c,u);return d>8388607?d-16777216:d},put(c,u,d){const f=t(c);return f.setUint16(u,d>>8),f.setUint8(u+2,d&255),u+3}},e.INT32_BE={len:4,get(c,u){return t(c).getInt32(u)},put(c,u,d){return t(c).setInt32(u,d),u+4}},e.INT32_LE={len:4,get(c,u){return t(c).getInt32(u,!0)},put(c,u,d){return t(c).setInt32(u,d,!0),u+4}},e.UINT64_LE={len:8,get(c,u){return t(c).getBigUint64(u,!0)},put(c,u,d){return t(c).setBigUint64(u,d,!0),u+8}},e.INT64_LE={len:8,get(c,u){return t(c).getBigInt64(u,!0)},put(c,u,d){return t(c).setBigInt64(u,d,!0),u+8}},e.UINT64_BE={len:8,get(c,u){return t(c).getBigUint64(u)},put(c,u,d){return t(c).setBigUint64(u,d),u+8}},e.INT64_BE={len:8,get(c,u){return t(c).getBigInt64(u)},put(c,u,d){return t(c).setBigInt64(u,d),u+8}},e.Float16_BE={len:2,get(c,u){return n.read(c,u,!1,10,this.len)},put(c,u,d){return n.write(c,d,u,!1,10,this.len),u+this.len}},e.Float16_LE={len:2,get(c,u){return n.read(c,u,!0,10,this.len)},put(c,u,d){return n.write(c,d,u,!0,10,this.len),u+this.len}},e.Float32_BE={len:4,get(c,u){return t(c).getFloat32(u)},put(c,u,d){return t(c).setFloat32(u,d),u+4}},e.Float32_LE={len:4,get(c,u){return t(c).getFloat32(u,!0)},put(c,u,d){return t(c).setFloat32(u,d,!0),u+4}},e.Float64_BE={len:8,get(c,u){return t(c).getFloat64(u)},put(c,u,d){return t(c).setFloat64(u,d),u+8}},e.Float64_LE={len:8,get(c,u){return t(c).getFloat64(u,!0)},put(c,u,d){return t(c).setFloat64(u,d,!0),u+8}},e.Float80_BE={len:10,get(c,u){return n.read(c,u,!1,63,this.len)},put(c,u,d){return n.write(c,d,u,!1,63,this.len),u+this.len}},e.Float80_LE={len:10,get(c,u){return n.read(c,u,!0,63,this.len)},put(c,u,d){return n.write(c,d,u,!0,63,this.len),u+this.len}};class o{constructor(u){this.len=u}get(u,d){}}e.IgnoreType=o;class r{constructor(u){this.len=u}get(u,d){return u.subarray(d,d+this.len)}}e.Uint8ArrayType=r;class a{constructor(u){this.len=u}get(u,d){return Buffer.from(u.subarray(d,d+this.len))}}e.BufferType=a;class s{constructor(u,d){this.len=u,this.encoding=d}get(u,d){return Buffer.from(u).toString(this.encoding,d,d+this.len)}}e.StringType=s;class l{constructor(u){this.len=u}static decode(u,d,f){let m="";for(let p=d;p<f;++p)m+=l.codePointToString(l.singleByteDecoder(u[p]));return m}static inRange(u,d,f){return d<=u&&u<=f}static codePointToString(u){return u<=65535?String.fromCharCode(u):(u-=65536,String.fromCharCode((u>>10)+55296,(u&1023)+56320))}static singleByteDecoder(u){if(l.inRange(u,0,127))return u;const d=l.windows1252[u-128];if(d===null)throw Error("invaliding encoding");return d}get(u,d=0){return l.decode(u,d,d+this.len)}}e.AnsiStringType=l,l.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}(lib$1);var core$1={},ReadStreamTokenizer$1={},AbstractTokenizer$1={},lib={},EndOfFileStream={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";class n extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=n})(EndOfFileStream);var StreamReader={},Deferred$1={};Object.defineProperty(Deferred$1,"__esModule",{value:!0}),Deferred$1.Deferred=void 0;class Deferred{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise((n,t)=>{this.reject=t,this.resolve=n})}}Deferred$1.Deferred=Deferred,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;const n=EndOfFileStream,t=Deferred$1;var o=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});const r=1*1024*1024;class a{constructor(l){if(this.s=l,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!l.read||!l.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",()=>this.reject(new n.EndOfStreamError)),this.s.once("error",c=>this.reject(c)),this.s.once("close",()=>this.reject(new Error("Stream closed")))}async peek(l,c,u){const d=await this.read(l,c,u);return this.peekQueue.push(l.subarray(c,c+d)),d}async read(l,c,u){if(u===0)return 0;if(this.peekQueue.length===0&&this.endOfStream)throw new n.EndOfStreamError;let d=u,f=0;for(;this.peekQueue.length>0&&d>0;){const m=this.peekQueue.pop();if(!m)throw new Error("peekData should be defined");const p=Math.min(m.length,d);l.set(m.subarray(0,p),c+f),f+=p,d-=p,p<m.length&&this.peekQueue.push(m.subarray(p))}for(;d>0&&!this.endOfStream;){const m=Math.min(d,r),p=await this.readFromStream(l,c+f,m);if(f+=p,p<m)break;d-=p}return f}async readFromStream(l,c,u){const d=this.s.read(u);if(d)return l.set(d,c),d.length;{const f={buffer:l,offset:c,length:u,deferred:new t.Deferred};return this.deferred=f.deferred,this.s.once("readable",()=>{this.readDeferred(f)}),f.deferred.promise}}readDeferred(l){const c=this.s.read(l.length);c?(l.buffer.set(c,l.offset),l.deferred.resolve(c.length),this.deferred=null):this.s.once("readable",()=>{this.readDeferred(l)})}reject(l){this.endOfStream=!0,this.deferred&&(this.deferred.reject(l),this.deferred=null)}}e.StreamReader=a}(StreamReader),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var n=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var t=StreamReader;Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return t.StreamReader}})}(lib),Object.defineProperty(AbstractTokenizer$1,"__esModule",{value:!0}),AbstractTokenizer$1.AbstractTokenizer=void 0;const peek_readable_1$2=lib;class AbstractTokenizer{constructor(n){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=n||{}}async readToken(n,t=this.position){const o=Buffer.alloc(n.len);if(await this.readBuffer(o,{position:t})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(o,0)}async peekToken(n,t=this.position){const o=Buffer.alloc(n.len);if(await this.peekBuffer(o,{position:t})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(o,0)}async readNumber(n){if(await this.readBuffer(this.numBuffer,{length:n.len})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(this.numBuffer,0)}async peekNumber(n){if(await this.peekBuffer(this.numBuffer,{length:n.len})<n.len)throw new peek_readable_1$2.EndOfStreamError;return n.get(this.numBuffer,0)}async ignore(n){if(this.fileInfo.size!==void 0){const t=this.fileInfo.size-this.position;if(n>t)return this.position+=t,t}return this.position+=n,n}async close(){}normalizeOptions(n,t){if(t&&t.position!==void 0&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return t?{mayBeLess:t.mayBeLess===!0,offset:t.offset?t.offset:0,length:t.length?t.length:n.length-(t.offset?t.offset:0),position:t.position?t.position:this.position}:{mayBeLess:!1,offset:0,length:n.length,position:this.position}}}AbstractTokenizer$1.AbstractTokenizer=AbstractTokenizer,Object.defineProperty(ReadStreamTokenizer$1,"__esModule",{value:!0}),ReadStreamTokenizer$1.ReadStreamTokenizer=void 0;const AbstractTokenizer_1$1=AbstractTokenizer$1,peek_readable_1$1=lib,maxBufferSize=256e3;class ReadStreamTokenizer extends AbstractTokenizer_1$1.AbstractTokenizer{constructor(n,t){super(t),this.streamReader=new peek_readable_1$1.StreamReader(n)}async getFileInfo(){return this.fileInfo}async readBuffer(n,t){const o=this.normalizeOptions(n,t),r=o.position-this.position;if(r>0)return await this.ignore(r),this.readBuffer(n,t);if(r<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(o.length===0)return 0;const a=await this.streamReader.read(n,o.offset,o.length);if(this.position+=a,(!t||!t.mayBeLess)&&a<o.length)throw new peek_readable_1$1.EndOfStreamError;return a}async peekBuffer(n,t){const o=this.normalizeOptions(n,t);let r=0;if(o.position){const a=o.position-this.position;if(a>0){const s=new Uint8Array(o.length+a);return r=await this.peekBuffer(s,{mayBeLess:o.mayBeLess}),n.set(s.subarray(a),o.offset),r-a}else if(a<0)throw new Error("Cannot peek from a negative offset in a stream")}if(o.length>0){try{r=await this.streamReader.peek(n,o.offset,o.length)}catch(a){if(t&&t.mayBeLess&&a instanceof peek_readable_1$1.EndOfStreamError)return 0;throw a}if(!o.mayBeLess&&r<o.length)throw new peek_readable_1$1.EndOfStreamError}return r}async ignore(n){const t=Math.min(maxBufferSize,n),o=new Uint8Array(t);let r=0;for(;r<n;){const a=n-r,s=await this.readBuffer(o,{length:Math.min(t,a)});if(s<0)return s;r+=s}return r}}ReadStreamTokenizer$1.ReadStreamTokenizer=ReadStreamTokenizer;var BufferTokenizer$1={};Object.defineProperty(BufferTokenizer$1,"__esModule",{value:!0}),BufferTokenizer$1.BufferTokenizer=void 0;const peek_readable_1=lib,AbstractTokenizer_1=AbstractTokenizer$1;class BufferTokenizer extends AbstractTokenizer_1.AbstractTokenizer{constructor(n,t){super(t),this.uint8Array=n,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:n.length}async readBuffer(n,t){if(t&&t.position){if(t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=t.position}const o=await this.peekBuffer(n,t);return this.position+=o,o}async peekBuffer(n,t){const o=this.normalizeOptions(n,t),r=Math.min(this.uint8Array.length-o.position,o.length);if(!o.mayBeLess&&r<o.length)throw new peek_readable_1.EndOfStreamError;return n.set(this.uint8Array.subarray(o.position,o.position+r),o.offset),r}async close(){}}BufferTokenizer$1.BufferTokenizer=BufferTokenizer,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;const n=ReadStreamTokenizer$1,t=BufferTokenizer$1;var o=lib;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});function r(s,l){return l=l||{},new n.ReadStreamTokenizer(s,l)}e.fromStream=r;function a(s,l){return new t.BufferTokenizer(s,l)}e.fromBuffer=a}(core$1);var util$1={};util$1.stringToBytes=e=>[...e].map(n=>n.charCodeAt(0)),util$1.tarHeaderChecksumMatches=(e,n=0)=>{const t=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(t))return!1;let o=8*32;for(let r=n;r<n+148;r++)o+=e[r];for(let r=n+156;r<n+512;r++)o+=e[r];return t===o},util$1.uint32SyncSafeToken={get:(e,n)=>e[n+3]&127|e[n+2]<<7|e[n+1]<<14|e[n]<<21,len:4};var supported$1={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]};const Token=lib$1,strtok3=core$1,{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=util$1,supported=supported$1,minimumBytes=4100;async function fromStream(e){const n=await strtok3.fromStream(e);try{return await fromTokenizer(n)}finally{await n.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const n=e instanceof Buffer?e:Buffer.from(e);if(!(n&&n.length>1))return;const t=strtok3.fromBuffer(n);return fromTokenizer(t)}function _check(e,n,t){t={offset:0,...t};for(const[o,r]of n.entries())if(t.mask){if(r!==(t.mask[o]&e[o+t.offset]))return!1}else if(r!==e[o+t.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(n){if(!(n instanceof strtok3.EndOfStreamError))throw n}}async function _fromTokenizer(e){let n=Buffer.alloc(minimumBytes);const t=12,o=(a,s)=>_check(n,a,s),r=(a,s)=>o(stringToBytes(a),s);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(n,{length:t,mayBeLess:!0}),o([66,77]))return{ext:"bmp",mime:"image/bmp"};if(o([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(o([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(o([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(o([37,33]))return await e.peekBuffer(n,{length:24,mayBeLess:!0}),r("PS-Adobe-",{offset:2})&&r(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(o([31,160])||o([31,157]))return{ext:"Z",mime:"application/x-compress"};if(o([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(o([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(o([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(o([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r("ID3")){await e.ignore(6);const a=await e.readToken(uint32SyncSafeToken);return e.position+a>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(a),fromTokenizer(e))}if(r("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((n[0]===67||n[0]===70)&&o([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(o([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r("FLIF"))return{ext:"flif",mime:"image/flif"};if(r("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(r("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(r("FORM"))return{ext:"aif",mime:"audio/aiff"};if(r("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(o([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(n,{length:30});const a={compressedSize:n.readUInt32LE(18),uncompressedSize:n.readUInt32LE(22),filenameLength:n.readUInt16LE(26),extraFieldLength:n.readUInt16LE(28)};if(a.filename=await e.readToken(new Token.StringType(a.filenameLength,"utf-8")),await e.ignore(a.extraFieldLength),a.filename==="META-INF/mozilla.rsa")return{ext:"xpi",mime:"application/x-xpinstall"};if(a.filename.endsWith(".rels")||a.filename.endsWith(".xml"))switch(a.filename.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};default:break}if(a.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(a.filename.startsWith("3D/")&&a.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if(a.filename==="mimetype"&&a.compressedSize===a.uncompressedSize)switch(await e.readToken(new Token.StringType(a.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};default:}if(a.compressedSize===0){let s=-1;for(;s<0&&e.position<e.fileInfo.size;)await e.peekBuffer(n,{mayBeLess:!0}),s=n.indexOf("504B0304",0,"hex"),await e.ignore(s>=0?s:n.length)}else await e.ignore(a.compressedSize)}}catch(a){if(!(a instanceof strtok3.EndOfStreamError))throw a}return{ext:"zip",mime:"application/zip"}}if(r("OggS")){await e.ignore(28);const a=Buffer.alloc(8);return await e.readBuffer(a),_check(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(o([80,75])&&(n[2]===3||n[2]===5||n[2]===7)&&(n[3]===4||n[3]===6||n[3]===8))return{ext:"zip",mime:"application/zip"};if(r("ftyp",{offset:4})&&(n[8]&96)!==0){const a=n.toString("binary",8,12).replace("\0"," ").trim();switch(a){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return a.startsWith("3g")?a.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(r("MThd"))return{ext:"mid",mime:"audio/midi"};if(r("wOFF")&&(o([0,1,0,0],{offset:4})||r("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(r("wOF2")&&(o([0,1,0,0],{offset:4})||r("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(o([212,195,178,161])||o([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(r("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(r("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(r("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(o([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(r("%PDF")){await e.ignore(1350);const a=10*1024*1024,s=Buffer.alloc(Math.min(a,e.fileInfo.size));return await e.readBuffer(s,{mayBeLess:!0}),s.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(o([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(o([73,73,42,0]))return r("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:o([28,0,254,0],{offset:8})||o([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:o([8,0,0,0],{offset:4})&&(o([45,0,254,0],{offset:8})||o([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(n=Buffer.alloc(24),await e.peekBuffer(n),(o([16,251,134,1],{offset:4})||o([8,0,0,0],{offset:4}))&&o([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(o([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r("MAC "))return{ext:"ape",mime:"audio/ape"};if(o([26,69,223,163])){async function a(){const d=await e.peekNumber(Token.UINT8);let f=128,m=0;for(;(d&f)===0&&f!==0;)++m,f>>=1;const p=Buffer.alloc(m+1);return await e.readBuffer(p),p}async function s(){const d=await a(),f=await a();f[0]^=128>>f.length-1;const m=Math.min(6,f.length);return{id:d.readUIntBE(0,d.length),len:f.readUIntBE(f.length-m,m)}}async function l(d,f){for(;f>0;){const m=await s();if(m.id===17026)return e.readToken(new Token.StringType(m.len,"utf-8"));await e.ignore(m.len),--f}}const c=await s();switch(await l(1,c.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(o([82,73,70,70])){if(o([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(o([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(o([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(o([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r("MSCF")||r("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(o([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(o([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(o([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(o([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(r("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(o([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r("IMPM"))return{ext:"it",mime:"audio/x-it"};if(r("-lh0-",{offset:2})||r("-lh1-",{offset:2})||r("-lh2-",{offset:2})||r("-lh3-",{offset:2})||r("-lh4-",{offset:2})||r("-lh5-",{offset:2})||r("-lh6-",{offset:2})||r("-lh7-",{offset:2})||r("-lzs-",{offset:2})||r("-lz4-",{offset:2})||r("-lz5-",{offset:2})||r("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(o([0,0,1,186])){if(o([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(o([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(r("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(o([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r("<?xml "))return{ext:"xml",mime:"application/xml"};if(o([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(o([82,97,114,33,26,7])&&(n[6]===0||n[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r("solid "))return{ext:"stl",mime:"model/stl"};if(r("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(r("!<arch>"))return await e.ignore(8),await e.readToken(new Token.StringType(13,"ascii"))==="debian-binary"?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(o([137,80,78,71,13,10,26,10])){await e.ignore(8);async function a(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}do{const s=await a();if(s.length<0)return;switch(s.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(s.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(o([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(o([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(o([102,114,101,101],{offset:4})||o([109,100,97,116],{offset:4})||o([109,111,111,118],{offset:4})||o([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(o([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(r("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(o([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(o([48,38,178,117,142,102,207,17,166,217])){async function a(){const s=Buffer.alloc(16);return await e.readBuffer(s),{id:s,size:Number(await e.readToken(Token.UINT64_LE))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const s=await a();let l=s.size-24;if(_check(s.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const c=Buffer.alloc(16);if(l-=await e.readBuffer(c),_check(c,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(c,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(l)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(o([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((o([126,16,4])||o([126,24,4]))&&o([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(o([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(o([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(o([255,10])||o([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(o([0,0,1,186])||o([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(o([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(o([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(o([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(o([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(n,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),r("BEGIN:")){if(r("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(r("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(r("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(r("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(r("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(o([4,0,0,0])&&n.length>=16){const a=n.readUInt32LE(12);if(a>12&&n.length>=a+16)try{const s=n.slice(16,a+16).toString();if(JSON.parse(s).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(o([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(o([71],{offset:4})&&(o([71],{offset:192})||o([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(o([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(o([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(o([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(o([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(o([76,80],{offset:34})&&(o([0,0,1],{offset:8})||o([1,0,2],{offset:8})||o([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(o([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(n,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(n))return{ext:"tar",mime:"application/x-tar"};if(o([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(r("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(n.length>=2&&o([255,224],{offset:0,mask:[255,224]})){if(o([16],{offset:1,mask:[22]}))return o([8],{offset:1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(o([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(o([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(o([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",async()=>{const e=new stream.PassThrough;let n;stream.pipeline?n=stream.pipeline(readableStream,e,()=>{}):n=readableStream.pipe(e);const t=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const o=await fromBuffer(t);e.fileType=o}catch(o){reject(o)}resolve(n)})}),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,"mimeTypes",{get(){return new Set(supported.mimeTypes)}});var core=fileType;(function(e){const{ReadableWebToNodeStream:n}=lib$2,t=core;async function o(s){const l=new n(s),c=await t.fromStream(l);return await l.close(),c}async function r(s){const l=await a(s);return t.fromBuffer(Buffer.from(l))}function a(s){return s.arrayBuffer?s.arrayBuffer():new Promise((l,c)=>{const u=new FileReader;u.addEventListener("loadend",d=>{l(d.target.result)}),u.addEventListener("error",d=>{c(new Error(d.message))}),u.addEventListener("abort",d=>{c(new Error(d.type))}),u.readAsArrayBuffer(s)})}Object.assign(e.exports,t,{fromStream:o,fromBlob:r})})(browser$1);const FileType=browser$1.exports;function getFilesize(e){const t=require$$0.Buffer.from(e,"base64").length/1e3;return`${Math.round((t+Number.EPSILON)*100)/100} KB`}async function getMimeType(e){const n=await FileType.fromBuffer(require$$0.Buffer.from(e,"base64"));return n||{mime:"text/plain",ext:"txt"}}const toBase64=e=>new Promise((n,t)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=r=>n(r.target.result.split(",")[1]),o.onerror=r=>t(r)});function openBase64InNewTab(e,n){for(var t=atob(e),o=new Array(t.length),r=0;r<t.length;r++)o[r]=t.charCodeAt(r);var a=new Uint8Array(o),s=new Blob([a],{type:n+";base64"}),l=URL.createObjectURL(s);window.open(l)}const Image=e=>{const{ooui:n}=e,{required:t,id:o}=n,r=iconMapper(o);return r?jsxRuntime.jsx(r,{}):jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(ImageInput,{ooui:n})})},ImageInput=e=>{const{ooui:n,value:t,onChange:o}=e,{readOnly:r}=n,a=React.useRef(null),{t:s}=React.useContext(LocaleContext),l=f=>{o==null||o(f)};async function c(){const f=await getMimeType(t),m=`data:${f==null?void 0:f.mime};base64,${t}`,p=document.createElement("a");p.href=m,p.download=`image.${f==null?void 0:f.ext}`,p.click()}async function u(f){f.stopPropagation(),f.preventDefault();const m=f.target.files[0],p=await toBase64(m);l(p)}function d(){l(void 0)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,justify:"center",children:[t&&jsxRuntime.jsx("img",{src:`data:image/*;base64,${t}`,style:{maxWidth:"100px"}}),jsxRuntime.jsx("input",{type:"file",id:"file",ref:a,accept:"image/*",style:{display:"none"},onChange:u})]}),jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,justify:"center",className:"pt-5",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:s("uploadNewImage"),icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:r,onClick:()=>{a.current.click()}}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:s("download"),disabled:!t,onClick:c,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:s("clear"),disabled:r||!t,onClick:d,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})},FiberGrid=e=>{const{ooui:n}=e,{id:t,readOnly:o,required:r}=n;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(FiberGridInput,{})})},FiberGridInput=e=>{const{value:n,onChange:t}=e;if(!n)return null;try{JSON.parse(n)}catch(o){return console.log(o),null}return jsxRuntime.jsx(fiberDiagram.GridUi,{inputJson:n,onChange:o=>{t&&t(o)}})},readObjectValues=async e=>{const{items:n,model:t,formFields:o,treeFields:r,context:a={}}=e,s=n.filter(m=>m.operation!=="original"),l=n.filter(m=>m.operation==="original").map(m=>m.id),c=await ConnectionProvider.getHandler().readObjects({model:t,ids:l,fields:{...o,...r},context:a}),u=c.map(m=>{const p={};return Object.keys(m).forEach(h=>{(o.hasOwnProperty(h)||h==="id")&&(p[h]=m[h])}),p}),d=c.map(m=>{const p={};return Object.keys(m).forEach(h=>{(r.hasOwnProperty(h)||h==="id")&&(p[h]=m[h])}),p});return n.map(m=>{const p=u.find(v=>v.id===m.id),h=d.find(v=>v.id===m.id);return{...m,values:p,treeValues:h}}).concat(s)},getNextPendingId=e=>{const n=e.filter(t=>t.id&&t.id<0).map(t=>t.id);return n.length===0?-1:Math.min(...n)-1},Timeline=e=>{const{ooui:n}=e,{relation:t,context:o,views:r}=n,[a,s]=React.useState(!0),[l,c]=React.useState(),[u,d]=React.useState(new Map),f=React.useContext(FormContext$1),{getContext:m}=f||{};useDeepCompareEffect__default.default(()=>{h()},[n]);const p=async v=>r&&r[v]?r[v]:await ConnectionProvider.getHandler().getView({model:t,type:v,context:{...m==null?void 0:m(),...o}}),h=async()=>{s(!0),c(void 0);try{const v=await p("form"),C=await p("tree");u.set("form",v),u.set("tree",C),d(u)}catch(v){c(v)}finally{s(!1)}};return a?jsxRuntime.jsx(antd.Spin,{}):l?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:l,type:"error",banner:!0}):jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TimelineInput,{ooui:n,views:u})})},TimelineInput=e=>{const{value:n,views:t,ooui:o,onChange:r}=e,{items:a=[]}=n||{},[s,l]=React.useState(!1),[c,u]=React.useState(),[d,f]=React.useState(!1),[m,p]=React.useState(),{relation:h,context:v,readOnly:C,summaryField:I,titleField:g}=o,y=a.filter(b=>b.values),x=React.useContext(FormContext$1),{getContext:w}=x||{};useDeepCompareEffect__default.default(()=>{F()},[a]);const O=b=>{r==null||r({items:b})};async function F(){l(!0),u(void 0);try{const b=await readObjectValues({treeFields:t.get("tree").fields,formFields:t.get("form").fields,model:h,items:a,context:{...w==null?void 0:w(),...v}});O(b)}catch(b){u(b)}finally{l(!1)}}return c?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:c,type:"error",banner:!0}):s?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Timeline,{style:{padding:"1rem"},children:y.map((b,_)=>{var T,k;return jsxRuntime.jsx("div",{children:jsxRuntime.jsxs(antd.Timeline.Item,{children:[jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{p(y.find(N=>b.id===N.id)),f(!0)},children:jsxRuntime.jsx("strong",{children:(T=b.values)==null?void 0:T[g]})}),jsxRuntime.jsx("br",{}),jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{p(y.find(N=>b.id===N.id)),f(!0)},children:(k=b.values)==null?void 0:k[I]})]},_)},_)})}),jsxRuntime.jsx(FormModal,{formView:t.get("form"),model:h,id:m==null?void 0:m.id,values:m==null?void 0:m.values,defaultValues:m==null?void 0:m.defaultValues,visible:d,onSubmitSucceed:()=>{f(!1)},parentContext:{...w==null?void 0:w(),...v},onCancel:()=>{f(!1)},readOnly:C,postSaveAction:F})]})},Indicator=e=>{const{ooui:n}=e;return jsxRuntime.jsx(Field$1,{ooui:n,children:jsxRuntime.jsx(IndicatorInput,{ooui:n})})},IndicatorInput=e=>{const{ooui:n,value:t}=e,o=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{children:[n.label," "]}),n.tooltip&&jsxRuntime.jsx(antd.Tooltip,{title:n.tooltip,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"text-xs text-blue-400 pr-1"})})]}),r=iconMapper(n.icon);let a=t;n.selectionValues.size?a=n.selectionValues.get(t):Array.isArray(t)&&(a=t[1]);const s=jsxRuntime.jsx(antd.Statistic,{title:o,prefix:r&&jsxRuntime.jsx(r,{}),suffix:n.suffix,value:a});return n.card?jsxRuntime.jsx(antd.Card,{children:s}):s},filteredValues=(e,n)=>{if(!n)return e;const t={};return Object.keys(e).forEach(o=>{if(n[o]===void 0)t[o]=e[o];else if(!(e[o]===!1&&n[o].type!=="boolean"))if(n[o].type==="boolean"){const r=e[o];r===0?t[o]=!1:r===1?t[o]=!0:t[o]=e[o]}else t[o]=e[o]}),t},processValues=(e,n)=>filteredValues(e,n),getTouchedValues=({source:e,target:n,fields:t})=>{const o={};return Object.keys(n).forEach(r=>{var s,l;if(t[r]?t[r].type==="one2many"||t[r].type==="many2many":!1){const c=JSON.stringify(e[r]),u=JSON.stringify(n[r]);if(c===u)return;(((l=(s=n[r])==null?void 0:s.items)==null?void 0:l.filter(f=>f.operation!=="original"))||[]).length>0&&(o[r]=n[r])}else if(Array.isArray(n[r]))if(e[r]===void 0)o[r]=n[r];else if(t[r].type==="many2one")if(Array.isArray(e[r])){const c=JSON.stringify(e[r]),u=JSON.stringify(n[r]);c!==u&&(o[r]=n[r])}else{const c=e[r],[u]=n[r];c!==u&&(o[r]=n[r])}else{const c=JSON.stringify(e[r]),u=JSON.stringify(n[r]);c!==u&&(o[r]=n[r])}else e[r]!==n[r]&&(n[r]===void 0?o[r]=null:o[r]=n[r])}),o},checkFieldsType=({changedFields:e,fields:n,types:t})=>e.map(r=>{var a;return t.includes((a=n[r])==null?void 0:a.type)}).some(r=>r===!0),mergeFieldsDomain=({fieldsDomain:e,fields:n})=>{const t={};return Object.keys(n).forEach(o=>{t[o]=n[o],e[o]&&(t[o].domain=e[o])}),t},getValuesForDomain=e=>{const n={};return!e||!Array.isArray(e)||(e==null?void 0:e.length)===0?{}:(e.forEach(t=>{(t==null?void 0:t[1])==="="&&(n[t[0]]=t[2])}),n)},getOnChangePayload=({onChangeFieldActionArgs:e,values:n})=>{const t={};return e.forEach(o=>{n[o]?t[o]=n[o]:o[0]==="'"?t[o]=o.replace(/'/g,""):t[o]=!1}),t},mergeSearchFields=e=>{const n={primary:[],secondary:[]};return e.forEach(t=>{!t||(n.primary=n.primary.concat(t.primary),n.secondary=n.secondary.concat(t.secondary))}),{primary:n.primary.filter(onlyUnique),secondary:n.secondary.filter(onlyUnique)}};function onlyUnique(e,n,t){return t.indexOf(e)===n}const transformPlainMany2Ones=({values:e,fields:n})=>{let t={};return Object.keys(e).forEach(o=>{const r=e[o];n[o]&&n[o].type==="many2one"&&r&&Array.isArray(r)&&r.length===2?t[o]=r[0]:t[o]=r}),t},colorFromString=e=>{let n=0;for(let r=0;r<e.length;r++)n=e.charCodeAt(r)+((n<<5)-n);let t="#";for(let r=0;r<3;r++){var o=n>>r*8&255;t+=("00"+o.toString(16)).slice(-2)}return t},Tags=e=>{const{ooui:n}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TagsInput,{ooui:n})})},TagsInput=e=>{const{value:n,ooui:t,onChange:o}=e,{items:r=[]}=n||{},a=r.filter(O=>O.operation!=="pendingRemove").map(O=>O.id),[s,l]=React.useState([]),[c,u]=React.useState(),[d,f]=React.useState(!1),{relation:m,context:p,readOnly:h,field:v}=t,C=React.useContext(FormContext$1),{getContext:I}=C||{};useDeepCompareEffect__default.default(()=>{y()},[r]);const g=O=>{o==null||o({items:O})};async function y(){f(!0);let O=[];try{if(h&&(O=[["id","in",a]]),t.domain){const _=await ConnectionProvider.getHandler().evalDomain({domain:t.domain,values:transformPlainMany2Ones({fields:C==null?void 0:C.getFields(),values:C.getPlainValues()}),context:C.getContext()});O=[...O,..._]}const b=(await ConnectionProvider.getHandler().search({model:m,params:O,fields:[v],context:{...I==null?void 0:I(),...p}})).map(_=>{const T=_[v];let k=T;return Array.isArray(T)&&(k=T[1]),{label:k,value:_.id}});l(b)}catch(F){u(F)}finally{f(!1)}}const x=O=>{const F=r.map(_=>O.includes(_.id)?_.operation=="pendingRemove"?{..._,operation:"pendingLink"}:_:{id:_.id,operation:"pendingRemove"}),b=F.map(_=>_.id);O.filter(_=>!b.includes(_)).map(_=>{F.push({id:_,operation:"pendingLink"})}),g(F)},w=O=>{const{label:F,closable:b,onClose:_}=O,T=k=>{k.preventDefault(),k.stopPropagation()};return jsxRuntime.jsx(antd.Tag,{color:colorFromString(F),onMouseDown:T,style:{margin:"5px"},closable:b,onClose:_,children:F})};return c?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:c,type:"error",banner:!0}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Select,{mode:"multiple",value:s.length?a:[],tagRender:w,bordered:!h,disabled:h,options:s,onChange:x,loading:d})})})},getWidgetType=e=>{switch(e){case"form":return Form$1;case"tree":return Tree;case"notebook":return Notebook;case"group":return Group;case"label":return Label;case"char":return Char;case"text":return Text$2;case"button":return Button;case"buttonGroup":return ButtonGroup;case"selection":return Selection;case"many2one":return Many2one;case"boolean":return Boolean$1;case"integer":return Integer;case"float":return Float;case"progressbar":return ProgressBar;case"date":return Date$1;case"datetime":return DateTime;case"one2many":case"one2many_list":case"many2many":return One2many;case"separator":return Separator;case"reference":return Reference;case"binary":return Binary;case"image":return Image;case"url":return Url;case"email":return Email;case"float_time":return FloatTime;case"fiber_grid":return FiberGrid;case"timeline":return Timeline;case"indicator":return Indicator;case"tags":return Tags;case"multicheckbox":return MultiCheckbox;case"radio":return Radio;case"switch":return Switch;case"steps":return Steps;case"codeeditor":return CodeEditor;default:return}},createReactWidget=e=>{const{ooui:n}=e,{type:t}=n,o=getWidgetType(t);return o?React__default.default.createElement(o,e):null},getSpanStyleForItem=({item:e,responsiveBehaviour:n})=>({gridColumnStart:"span "+(n?1:e.colspan)}),fillRowWithEmptiesToFit=({row:e,mustFillWithEmpties:n,numberOfColumns:t})=>{const o=[];let r=0;const a=s=>s+1===e.length&&r<t&&!n;return e.map((s,l)=>{if(r+=s.colspan,a(l)){const c=t-r;s.colspan=s.colspan+c,r+=c}if(o.push(s),a(l)){const c=t-r;for(let u=0;u<c;u+=1)o.push(new ooui.Label({string:""}))}}),o},expandWidgetsIfNeeded=({row:e,numberOfColumns:n})=>e.map(t=>(t._mustExpand&&(t.colspan=n),t)),getSingleRowTemplateColumns=(e,n)=>{const t=e.map(o=>o instanceof ooui.Label&&o.fieldForLabel||o instanceof ooui.Container?"auto":"1fr");if(t.length<n){const o=n-t.length;for(let r=0;r<o;r++)t.push("1fr")}return t.join(" ")},getTemplateColumns=(e,n)=>{const t=n?"1fr":"auto",o="auto";let r="";for(let a=0;a<e;a++)r+=a%2?t:o,a+1<e&&(r+=" ");return r},getMaxColspanForRows=e=>e.map(t=>t.reduce((o,r)=>o+r.colspan,0)).reduce((t,o)=>Math.max(t,o)),Container=e=>{const{container:n,responsiveBehaviour:t}=e,{rows:o}=n;let{columns:r}=n;const a=getMaxColspanForRows(o);a<r&&(r=a);let s=!1,l=[];const c=o.map((f,m)=>{const p=f.filter(C=>!C.invisible),h=expandWidgetsIfNeeded({row:p,numberOfColumns:r});let v=h;return(m===0||!(f.length===1&&f.some(C=>C.type==="group")))&&(v=fillRowWithEmptiesToFit({row:h,numberOfColumns:r,mustFillWithEmpties:t}),l=l.concat(v)),v.map(C=>(C instanceof ooui.Label&&C.fieldForLabel&&(s=!0),jsxRuntime.jsx("div",{style:{...getSpanStyleForItem({item:C,responsiveBehaviour:t}),minWidth:0},children:createReactWidget({ooui:C,responsiveBehaviour:t})},C.key)))}),u=o.length===1?getSingleRowTemplateColumns(l,r):getTemplateColumns(r,s),d={display:"grid",gridTemplateColumns:t?"auto":u,gap:"1rem",minHeight:0,minWidth:0};return jsxRuntime.jsx("div",{style:d,children:c})},{confirm:confirm$3}=antd.Modal,showDialog$6=({onOk:e,onCancel:n,lang:t})=>{confirm$3({title:tForLang("unsavedChanges",t),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmCloseWithoutSave",t),okText:tForLang("closeWithoutSaving",t),onOk:e,onCancel:n,cancelText:tForLang("cancel",t)})},{error:error$1}=antd.Modal,showDialog$5=e=>{error$1({title:tForLang("formHasErrors",e),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("fillRequiredFields",e)})},{warning}=antd.Modal,showDialog$4=(e,n,t)=>{warning({title:e,icon:jsxRuntime.jsx(Icon.WarningOutlined,{}),centered:!0,content:n,onOk:t})},FormModalContext=React__default.default.createContext(null),FormModalProvider=e=>{const{children:n,setTitle:t}=e;return jsxRuntime.jsx(FormModalContext.Provider,{value:{setTitle:t},children:n})},ActionViewContext=React__default.default.createContext(null),ActionViewProvider=e=>{const[n,t]=React.useState(!1),[o,r]=React.useState(!1),[a,s]=React.useState(!1),[l,c]=React.useState(!1),[u,d]=React.useState(!0),[f,m]=React.useState([]),[p,h]=React.useState(!1),[v,C]=React.useState([]),[I,g]=React.useState(!1),{children:y,currentView:x,title:w,setCurrentView:O,availableViews:F,formRef:b,searchTreeRef:_,onNewClicked:T,currentId:k,setCurrentId:N,setResults:D,results:P,currentItemIndex:j,setCurrentItemIndex:$,currentModel:q,toolbar:B,setToolbar:H,sorter:G,setSorter:Y,totalItems:W,setTotalItems:Z,setSelectedRowItems:L,selectedRowItems:V,searchTreeNameSearch:M,setSearchTreeNameSearch:A,goToResourceId:U}=e;React.useEffect(()=>{P&&P.length>0&&!j&&($==null||$(0),N==null||N(P[0].id))},[P]);const K=()=>{var Q;(Q=b.current)==null||Q.submitForm()};return jsxRuntime.jsx(ActionViewContext.Provider,{value:{title:w,currentView:x,setCurrentView:O,availableViews:F,formIsSaving:n,setFormIsSaving:t,formHasChanges:o,setFormHasChanges:r,formRef:b,searchTreeRef:_,onFormSave:K,onNewClicked:T,currentId:k,setCurrentId:N,currentItemIndex:j,setCurrentItemIndex:$,results:P,setResults:D,currentModel:q,removingItem:a,setRemovingItem:s,formIsLoading:l,setFormIsLoading:c,treeIsLoading:u,setTreeIsLoading:d,toolbar:B,setToolbar:H,attachments:f,setAttachments:m,selectedRowItems:V,setSelectedRowItems:L,duplicatingItem:p,setDuplicatingItem:h,setSearchParams:C,searchParams:v,searchVisible:I,setSearchVisible:g,sorter:G,setSorter:Y,totalItems:W,setTotalItems:Z,searchTreeNameSearch:M,setSearchTreeNameSearch:A,goToResourceId:U},children:y})},TabManagerContext=React__default.default.createContext(null),TabManagerProvider=e=>{const{children:n,openAction:t,openRelate:o,openDefaultActionForModel:r,openShortcut:a,activeKey:s,onChangeTab:l,onRemoveTab:c,tabs:u}=e,[d,f]=React.useState(),[m,p]=React.useState();return jsxRuntime.jsx(TabManagerContext.Provider,{value:{openAction:t,openRelate:o,openDefaultActionForModel:r,activeKey:s,openShortcut:a,onChangeTab:l,onRemoveTab:c,tabs:u,currentId:m,currentView:d,setCurrentId:p,setCurrentView:f},children:n})},ContentRootContext=React__default.default.createContext(null),ContentRootProvider=(e,n)=>{const{children:t,globalValues:o={}}=e,r=React.useRef(),a=React.useRef(),[s,l]=React.useState(!1),c=React.useContext(TabManagerContext),{openAction:u}=c||{},d=React.useRef(),{t:f}=React.useContext(LocaleContext);React.useImperativeHandle(n,()=>({openActionModal:x}));const[m,p]=React.useState(!1),[h,v]=React.useState({context:{}});async function C(F){const{reportData:b,fields:_,values:T,context:k={}}=F,{context:N,model:D,datas:P={},report_name:j,type:$}=b;if($!=="ir.actions.report.xml"){showDialog$8(`${$} action not supported`);return}const{ids:q}=P||{};let B=q||[];const H=typeof N=="string"?ooui.parseContext({context:N,fields:_,values:T}):N;try{const G=await ConnectionProvider.getHandler().createReport({model:D,name:j,datas:P,ids:B,context:{...k,...H}});l(!0),a.current=!0,r.current=setInterval(()=>{I(G)},1e3)}catch(G){a.current=!1,clearInterval(r.current),showDialog$8(G),l(!1)}}async function I(F){let b;try{if(b=await ConnectionProvider.getHandler().getReport({id:F}),b.state&&a.current===!0){a.current=!1,clearInterval(r.current),l(!1);const _=await getMimeType(b.result);openBase64InNewTab(b.result,_.mime)}}catch(_){a.current=!1,clearInterval(r.current),l(!1),showDialog$8(_.exception||_)}}async function g({actionData:F,fields:b,values:_,context:T,onRefreshParentValues:k}){const{type:N}=F;return d.current=k,N==="ir.actions.report.xml"?await C({reportData:F,fields:b,values:_,context:T}):N==="ir.actions.act_window"?await y({actionData:F,fields:b,values:_,context:T}):(showDialog$8(`${N} action not supported`),{})}async function y({actionData:F,fields:b={},values:_={},context:T={}}){var j;let k=F;F.res_model||(k=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.act_window",ids:[parseInt(F.id)],context:T}))[0]);const D={...typeof(k==null?void 0:k.context)=="string"?ooui.parseContext({context:k.context,fields:b,values:{..._,...o}}):k.context,...T};let P=[];if(k.domain&&(P=await ConnectionProvider.getHandler().evalDomain({domain:k.domain,values:transformPlainMany2Ones({fields:b,values:{..._,...o}}),context:D})),k.target==="new"){const $=await ConnectionProvider.getHandler().getView({model:k.res_model,type:"form",id:((j=k==null?void 0:k.view_id)==null?void 0:j[0])||void 0,context:D});return x({domain:P,model:k.res_model,formView:$,context:D}),{}}else{let $;const q=k.view_mode.split(","),B=[];for(const H of q){const G=await ConnectionProvider.getHandler().getView({model:k.res_model,type:H,context:D});B.push([G.view_id,H])}if(k.view_id)$={id:k.view_id,type:k.view_mode.split(",")[0]};else{const H=k.view_mode.split(",")[0],[G]=B.find(([Y,W])=>W===H);$={id:G,type:H}}return u==null||u({target:"current",context:D,domain:P,model:k.res_model,views:B,title:k.name,initialView:$,action_id:k.id,action_type:k.type}),{closeParent:!0}}}function x({domain:F,model:b,formView:_,context:T,actionData:k}){m?w({domain:F,model:b,formView:_,context:T,actionData:k}):(v({domain:F,model:b,context:T,formView:_,actionData:k}),p(!0))}async function w({domain:F,model:b,formView:_,context:T,actionData:k}){v({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0}),p(!1),await new Promise(N=>setTimeout(N,300)),v({domain:F,model:b,context:T,formView:_,actionData:k}),p(!0)}async function O(){var F;(F=d.current)==null||F.call(d),p(!1),v({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})}return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(ContentRootContext.Provider,{value:{processAction:g,globalValues:o},children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t,jsxRuntime.jsx(antd.Modal,{title:f("generatingReport"),visible:s,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})}),jsxRuntime.jsx(FormModal,{buttonModal:!0,parentContext:h.context,model:h.model,formView:h.formView,visible:m,onSubmitSucceed:O,onCancel:()=>{var F;(F=d.current)==null||F.call(d),p(!1),v({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})},showFooter:!1,actionDomain:h.domain,isMenuAction:(h==null?void 0:h.actionData)!==void 0,actionData:h==null?void 0:h.actionData})]})})})},ContentRootProvider$1=React.forwardRef(ContentRootProvider),WIDTH_BREAKPOINT=800;function Form(e,n){const{model:t,id:o,onCancel:r,onSubmitSucceed:a,showFooter:s=!1,getDataFromAction:l=!1,onFieldsChange:c,onSubmitError:u,readOnly:d=!1,mustClearAfterSave:f=!1,submitMode:m="api",values:p,formView:h,postSaveAction:v,insideButtonModal:C=!1,parentContext:I={},actionDomain:g,visible:y=!0,rootForm:x=!1,defaultValues:w,forcedValues:O={}}=e,{lang:F}=React.useContext(LocaleContext),[b,_]=React.useState(!1),[T,k]=React.useState(),[N,D]=React.useState(),[P]=antd.Form.useForm(),[j,$]=React.useState(),[q,B]=React.useState(),H=React.useContext(FormModalContext),[G,Y]=React.useState(),[W,Z]=React.useState(!1),L=React.useRef(),V=React.useRef({}),M=React.useRef({}),A=React.useRef(!1),U=React.useRef(!1),K=G<WIDTH_BREAKPOINT,Q=React.useContext(FormContext$1),{activeId:E}=Q||{},S=React.useContext(ActionViewContext),{setFormIsSaving:z=void 0,setFormHasChanges:X=void 0,setCurrentId:ne=void 0,setFormIsLoading:ee=void 0,setAttachments:re=void 0}=(x?S:{})||{},ae=React.useContext(ContentRootContext),{processAction:ie,globalValues:ce}=ae||{};React.useImperativeHandle(n,()=>({submitForm:Ne,getFields:Fe,getValues:ve,getPlainValues:Se,getContext:Ee,fetchValues:Te,cancelUnsavedChanges:ke,clearAndReload:()=>{L.current=void 0,D(void 0),be()}})),React.useEffect(()=>{if(k(void 0),!(!t&&!h)){if(!y){L.current=void 0,D(void 0);return}(o===void 0&&q||o!==void 0&&q&&o<0)&&(L.current=void 0,D(void 0)),be()}},[o,t,p,h,y]),React.useEffect(()=>{W&&(qe({elementHasLostFocus:!0}),Z(!1))},[W]);const pe=(J,te,ue)=>{X==null||X(!1),z==null||z(!1),a==null||a(J,te,ue),ne==null||ne(J)},ge=()=>{z==null||z(!1),r==null||r()},Re=J=>{z==null||z(!1),u==null||u(J)};function Ie(){return o||L.current}function Fe(){return q}function ve(){const J={...he(q),..._e()};for(const te in J)J[te]===void 0&&delete J[te];return J}function Se(){const J=ve(),te=Fe();let ue={};return Object.keys(J).forEach(fe=>{const we=J[fe];te[fe]&&te[fe].type==="many2one"&&we&&Array.isArray(we)&&we.length===2?ue[fe]=we[0]:te[fe]&&(te[fe].type==="one2many"||te[fe].type==="many2many")&&we&&we.items?ue[fe]=we.items.filter(Le=>Le.operation!=="pendingRemove").map(Le=>Le.id):ue[fe]=we}),ue}function xe(){const J={...he(q)};for(const te in J)J[te]===void 0&&delete J[te];return J}function Ee(){return{...I,...N==null?void 0:N.context}}function _e(){return{id:Ie(),active_id:Ie(),active_ids:[Ie()],parent_id:E,...ce}}const oe=async J=>{const te=Ie()?N==null?void 0:N.context:{};return await ConnectionProvider.getHandler().defaultGet({model:t,fields:J,context:{...I,...te},extraValues:w})},le=()=>Object.keys(getTouchedValues({source:V.current,target:he(q),fields:q})).length!==0,he=J=>{const te=P.getFieldsValue(!0);return processValues(te,J)},se=(J,te)=>{Me({values:{...processValues(P.getFieldsValue(!0),q),[J]:te},fields:q,reset:!1})},me=J=>P.getFieldsValue(!0)[J];async function ye(){try{return await P.validateFields(),!1}catch{return!0}}const be=async()=>{k(void 0),ee==null||ee(!0);let J;try{h?J={arch:h.arch,fields:h.fields}:J=await De();const{fields:te,arch:ue}=J;B(te),$(ue),await Te({fields:te,arch:ue})}catch(te){k(te!=null&&te.message?te.message+te.stack:te),ee==null||ee(!1)}},Te=async J=>{let te,ue,fe,we;ee==null||ee(!0),k(void 0),J?(ue=J.fields,fe=J.arch):(ue=q,fe=j),p?te=p:{values:te,defaultGetCalled:we}=await Ve({fields:ue,arch:fe}),g&&(te={...getValuesForDomain(g),...te}),V.current=processValues(te,ue),Me({values:te,fields:ue,reset:!0,isDefaultGet:we}),$e({fields:ue,arch:fe,values:te}),ee==null||ee(!1),X==null||X(!1),we&&Z(!0)};function Pe(J,te){V.current[J]=te,X==null||X(le())}const ke=async()=>new Promise(async J=>{le()?showDialog$6({lang:F,onOk:()=>{ge==null||ge(),J(!0)},onCancel:()=>{J(!1)}}):(ge==null||ge(),J(!0))}),De=async()=>{if(l){const J=await ConnectionProvider.getHandler().getActionStringForModel(t);return(await ConnectionProvider.getHandler().getViewsForAction({action:J,context:I})).views.get("form")}return await ConnectionProvider.getHandler().getView({model:t,type:"form",context:I})},Me=({values:J,fields:te,reset:ue,isDefaultGet:fe=!1})=>{const Le={...ue?{}:P.getFieldsValue(!0),...J},Ze=processValues(Le,te),Qe=Object.keys(te).map(Xe=>{const Je=Ze[Xe]!==void 0?Ze[Xe]:void 0;return{name:Xe,touched:!1,value:Je}});fe||(M.current=Ze),P.setFields(Qe)},Ve=async({fields:J,arch:te})=>{let ue={},fe=!1;if(Ie()){ue=(await ConnectionProvider.getHandler().readObjects({model:t,ids:[Ie()],fields:J,context:I}))[0];const we=await ConnectionProvider.getHandler().search({params:[["res_model","=",t],["res_id","=",Ie()]],fields:["id","name"],context:Ee(),model:"ir.attachment"});re==null||re(we)}else re==null||re([]),ue=await oe(J),fe=!0;return{values:ue,defaultGetCalled:fe}},He=async J=>{const{callOnSubmitSucceed:te=!0}=J||{};if(Ie()){const ue=getTouchedValues({source:V.current,target:he(q),fields:q});await ConnectionProvider.getHandler().update({model:t,id:Ie(),values:{...ue,...O},fields:q,context:{...I,...N==null?void 0:N.context}}),V.current=he(q)}else{const ue=he(q),fe=await ConnectionProvider.getHandler().create({model:t,values:{...ue,...O},fields:q,context:{...I,...N==null?void 0:N.context}});L.current=fe,V.current=ue}v&&await v([Ie()]),!C&&te&&(pe==null||pe(Ie(),ve(),xe()))},We=async J=>{const{callOnSubmitSucceed:te=!0}=J||{};!C&&te&&(pe==null||pe(Ie(),ve(),xe()))},Ne=async J=>{let te=!1;const{callOnSubmitSucceed:ue=!0}=J||{};if(U.current=!0,k(void 0),!le()&&Ie()&&ue)return U.current=!1,X==null||X(!1),ge==null||ge(),!0;if(await ye())return U.current=!1,showDialog$5(F),!1;_(!0),z==null||z(!0);try{m==="api"?await He(J):await We(J),f&&(L.current=void 0,Me({values:{},fields:q,reset:!0})),await Te(),te=!0}catch(fe){U.current=!1,_(!1),z==null||z(!1),Re==null||Re(fe),k(fe!=null&&fe.message?fe.message:fe)}finally{U.current=!1,z==null||z(!1),_(!1)}return te},$e=({fields:J,arch:te,values:ue})=>{var we;const fe=new ooui.Form(J);fe.parse(te,{readOnly:d,values:{...ue,..._e()}}),D(fe),H&&fe.string&&((we=H.setTitle)==null||we.call(H,fe.string))},qe=async({elementHasLostFocus:J=!1})=>{if(U.current)return;const te=getTouchedValues({source:M.current,target:he(q),fields:q}),ue=Object.keys(te);if(ue.length!==0){if(checkFieldsType({changedFields:ue,fields:q,types:["text","codeeditor","email","url","char","float","float_time","integer","many2one"]})&&J!==!0)return;{const fe=processValues(P.getFieldsValue(!0),q);M.current=fe,c==null||c(fe),X==null||X(!0),Ge(ue)}}},ze=debounce_1(qe,100),Ge=async J=>{try{for(let te=0;te<J.length;te+=1){const ue=J[te];await Ye(ue)}}catch(te){showDialog$8(te)}},Ye=async J=>{const te=N==null?void 0:N.onChangeFields[J];if(!te){$e({fields:q,arch:j,values:he(q)});return}const ue=getOnChangePayload({values:{...he(q),context:{...I,...N==null?void 0:N.context}},onChangeFieldActionArgs:te.args}),fe=await ConnectionProvider.getHandler().executeOnChange({model:t,action:te.method,ids:Ie()?[Ie()]:[],payload:ue,fields:q});if(fe.value){const we={...he(q),...fe.value};$e({fields:q,arch:j,values:we}),Me({values:we,fields:q,reset:!1})}if(fe.warning&&fe.warning.title&&fe.warning.message&&!A.current){const{title:we,message:Le}=fe.warning;A.current=!0,showDialog$4(we,Le,()=>{A.current=!1})}if(fe.domain&&Object.keys(fe.domain).length>0){const we=mergeFieldsDomain({fieldsDomain:fe.domain,fields:q});$e({fields:we,arch:j,values:he(we)}),B(we)}};async function Ke({action:J,context:te}){const ue=await ConnectionProvider.getHandler().execute({model:t,action:J,payload:[Ie()],context:{...te,...N==null?void 0:N.context,...I}});if(typeof ue=="object"&&ue!==null&&Object.keys(ue).length===0&&C)pe==null||pe(Ie(),ve(),xe());else if(ue.type&&ue.type==="ir.actions.act_window_close")pe==null||pe(Ie(),ve(),xe());else if(ue.type){let fe={};ue.context&&(fe=ooui.parseContext({context:ue.context,fields:q,values:ve()})),await Oe({actionData:ue,context:{...te,...fe}})}else await Te()}async function de({action:J}){const te=await ConnectionProvider.getHandler().executeWorkflow({model:t,action:J,payload:Ie()});te.type&&te.type==="ir.actions.act_window_close"?pe==null||pe(Ie(),ve(),xe()):await Te()}async function Ce({action:J,context:te}){const ue=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.actions",ids:[parseInt(J)],context:I}))[0];await Oe({actionData:ue,context:te})}async function Oe({actionData:J,context:te}){const{closeParent:ue}=await(ie==null?void 0:ie({actionData:J,fields:q,values:ve(),context:{...I,...N==null?void 0:N.context,...te},onRefreshParentValues:()=>{Te()}}))||{};!x&&ue&&(pe==null||pe(Ie(),ve(),xe()))}function je(){qe({elementHasLostFocus:!0})}async function Ae({type:J,action:te,context:ue}){if(J==="cancel"){ge==null||ge();return}if(await ye()){showDialog$5(F);return}try{await Ne({callOnSubmitSucceed:!1}),J==="object"?await Ke({action:te,context:ue}):J==="workflow"?await de({action:te}):J==="action"&&await Ce({action:te,context:ue})}catch(fe){showDialog$8(fe)}}const Ue=()=>!N&&!T?jsxRuntime.jsx(antd.Spin,{}):!t&&!h||!y?null:jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(FormProvider$1,{getValues:ve,getPlainValues:Se,getFields:Fe,domain:g,activeId:o,activeModel:t,setFieldValue:se,getFieldValue:me,executeButtonAction:Ae,getContext:Ee,setOriginalValue:Pe,submitForm:Ne,fetchValues:Te,formHasChanges:le,elementHasLostFocus:je,children:jsxRuntime.jsx(antd.Form,{form:P,onFieldsChange:()=>{ze({elementHasLostFocus:!1})},component:!1,children:N&&jsxRuntime.jsx(Container,{container:N.container,responsiveBehaviour:K})})})}),Be=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),disabled:b,onClick:async()=>{await ke()},children:"Cancel"}),jsxRuntime.jsx(antd.Button,{disabled:b||d,loading:b,icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:async()=>{await Ne()},type:"primary",children:"OK"})]})})]});return y?jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:J=>{var te;Y((te=J.bounds)==null?void 0:te.width)},children:({measureRef:J})=>jsxRuntime.jsxs("div",{className:"pb-2",ref:J,children:[T&&jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:JSON.stringify(T),type:"error",banner:!0}),Ue(),s&&Be()]})}):null}const Form$1=React.forwardRef(Form),FormModal=e=>{const{visible:n,id:t,title:o,buttonModal:r=!1,onCancel:a,isMenuAction:s=!1,actionData:l,...c}=e,{modalWidth:u}=useWindowDimensions(),[d,f]=React.useState(o),[m,p]=React.useState(!1),[h,v]=React.useState();React.useEffect(()=>{s&&C()},[l,s]);async function C(){const{action_id:y,res_id:x,action_type:w,view_id:O}=l,F=await ConnectionProvider.getHandler().isShortcutFavorite({action_id:y,action_type:w,view_id:O,res_id:x||!1});p(F!==!1),F!==!1&&v(F)}async function I(){if(m&&h)await ConnectionProvider.getHandler().removeFavourite({shortcut_id:h});else{const{action_id:y,res_id:x,action_type:w,view_id:O}=l;await ConnectionProvider.getHandler().addFavourite({action_id:y,action_type:w,view_id:O,res_id:x||!1})}p(!m)}function g(){return jsxRuntime.jsxs(antd.Row,{align:"middle",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{type:m?"primary":"default",icon:m?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:30},onClick:I})}),jsxRuntime.jsx(antd.Col,{style:{paddingLeft:10},children:d})]})}return jsxRuntime.jsx(FormModalProvider,{setTitle:f,children:jsxRuntime.jsx(antd.Modal,{title:s?g():d,centered:!0,width:u,visible:n,footer:null,destroyOnClose:!0,onCancel:a,maskClosable:!1,children:jsxRuntime.jsx(Form$1,{id:t,showFooter:!0,insideButtonModal:r,onCancel:a,...c})})})},DateRangePicker=e=>jsxRuntime.jsx(Field$1,{...e,layout:"vertical",children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{allowEmpty:[!0,!0],format:"DD/MM/YYYY"})}),DateTimeRangePicker=e=>{const{ooui:n,showLabel:t=!1}=e,{label:o,id:r}=n,a=[new ooui.Field({name:r+"#date",label:""}),new ooui.Field({name:r+"#time",label:""})];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:r+"_label",string:o,help:n.tooltip,fieldForLabel:r}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"p-0",children:[jsxRuntime.jsx(antd.Col,{className:"mr-2",children:jsxRuntime.jsx(Field$1,{...e,ooui:a[0],showLabel:!1,children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"DD/MM/YYYY"})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(Field$1,{...e,ooui:a[1],showLabel:!1,children:jsxRuntime.jsx(antd.TimePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"HH:mm"})})})]})]})},Float=e=>{const{ooui:n}=e,{id:t,decimalDigits:o,readOnly:r,required:a}=n,s=a&&!r?Config.requiredClass:void 0,l=React.useContext(FormContext$1),{elementHasLostFocus:c}=l||{};return jsxRuntime.jsx(Field$1,{required:a,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{disabled:r,className:"w-full "+s,id:t,precision:o,formatter:u=>`${u}`.replace(/[^0-9\.\-]+/g,""),defaultValue:0,decimalSeparator:".",onBlur:c})})},Integer=e=>{const{ooui:n,onChange:t}=e,{id:o,readOnly:r,required:a}=n,s=a&&!r?Config.requiredClass:void 0,l=React.useContext(FormContext$1),{elementHasLostFocus:c}=l||{};return jsxRuntime.jsx(Field$1,{required:a,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{id:o,className:"w-full "+s,disabled:r,formatter:u=>`${u}`.replace(/[^0-9\-]+/g,""),onChange:u=>{const d=u;t==null||t(d)},defaultValue:0,onBlur:c})})};function PairFields(e){const{ooui:n,showLabel:t}=e,{id:o,label:r,tooltip:a}=n,s=n instanceof ooui.Integer?Integer:Float,l=c=>jsxRuntime.jsx(s,{ooui:{...n,id:o+c,label:"",tooltip:void 0},layout:"vertical"});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:o+"_label",string:r,help:a,fieldForLabel:o}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"mt-0",wrap:!1,children:[jsxRuntime.jsx(antd.Col,{children:l("#from")}),jsxRuntime.jsx(antd.Col,{className:"pb-1",children:jsxRuntime.jsx("span",{className:"pl-2 pr-2 h-full",children:" - "})}),jsxRuntime.jsx(antd.Col,{children:l("#to")})]})]})}const{Option}=antd.Select,MultiSelection=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(MultiSelectionInput,{...e})})},MultiSelectionInput=e=>{const{ooui:n,onChange:t,value:o}=e,{selectionValues:r,readOnly:a,required:s}=n,l=Array.from(r.entries()),c=l&&l.length&&l.filter(f=>{const[m]=f;return o?!o.includes(m):!0}).map(f=>{const[m,p]=f;return jsxRuntime.jsx(Option,{value:p,children:p},m)}),u=s&&!a?RequiredSelect:antd.Select;function d(f){const m=f.map(p=>{const h=l.find(([v,C])=>p===C);return h&&h[0]});if(m.length===0){t==null||t(void 0);return}t==null||t(m)}return jsxRuntime.jsx(u,{disabled:a,onChange:d,value:o==null?void 0:o.map(f=>r.get(f)),mode:"multiple",showArrow:!0,children:c})},RequiredSelect=styled__default.default(antd.Select)`
104
104
  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
105
105
  background-color: ${Config.requiredColor};
106
106
  }
107
- `,types$1={text:"text",many2one:"many2one",char:"char",boolean:"boolean",selection:"selection",float:"float",float_time:"float_time",progressbar:"progressbar",integer:"integer",date:"date",datetime:"datetime"};function SearchField(e){const{field:n}=e;n.readOnly=!1,n.required=!1;const{t}=React.useContext(LocaleContext);switch(n.type){case types$1.boolean:{const r=new ooui.Selection({name:n._id,string:n.label,selection:[["true",t("true")],["false",t("false")]]});return jsxRuntime.jsx(Selection,{layout:"vertical",ooui:r,showLabel:!0})}case types$1.float:case types$1.progressbar:case types$1.float_time:case types$1.integer:return jsxRuntime.jsx(PairFields,{ooui:n,showLabel:!0});case types$1.date:return jsxRuntime.jsx(DateRangePicker,{ooui:n,layout:"vertical",showLabel:!0});case types$1.datetime:return jsxRuntime.jsx(DateTimeRangePicker,{ooui:n,layout:"vertical",showLabel:!0});case types$1.selection:return jsxRuntime.jsx(MultiSelection,{layout:"vertical",ooui:n,showLabel:!0});default:return jsxRuntime.jsx(Char,{ooui:n,layout:"vertical",showLabel:!0,isSearchField:!0})}}function SearchBottomBar(e){const{onAdvancedFilterToggle:n,advancedFilter:t,onClear:o,isSearching:r}=e,{t:a}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,className:"text-left pt-4 pb-2 pl-2",children:jsxRuntime.jsxs("a",{className:"text-xs",onClick:n,children:[t?jsxRuntime.jsx(Icon.UpOutlined,{className:"pr-1"}):jsxRuntime.jsx(Icon.DownOutlined,{className:"pr-1"}),a(t?"simple_search":"advanced_search")]})}),jsxRuntime.jsxs(antd.Col,{span:12,className:"text-right pb-2",children:[jsxRuntime.jsx(antd.Button,{className:"mr-5",icon:jsxRuntime.jsx(Icon.ClearOutlined,{}),onClick:o,children:a("clear")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),loading:r,className:"mr-2",type:"primary",htmlType:"submit",children:a("search")})]})]})}function SearchParams(e){const{onLimitChange:n}=e,{t}=React.useContext(LocaleContext),o=new ooui.Integer({name:"limit"}),r=new ooui.Integer({name:"offset"});return jsxRuntime.jsxs("div",{className:"pl-2 pt-2",children:[jsxRuntime.jsx(antd.Row,{children:t("parameters")},"count_params"),jsxRuntime.jsxs(antd.Space,{align:"center",children:[t("limit")+" :",jsxRuntime.jsx(Integer,{ooui:o,onChange:a=>{n==null||n(a)}}),t("first")+" :",jsxRuntime.jsx(Integer,{ooui:r})]})]})}const convertBooleanParamIfNeeded=e=>typeof e=="string"&&e==="true"||e==="false"?e==="true":e,getParamsForFields=(e,n)=>{const t=removeUndefinedFields(e),o=groupDateTimeValuesIfNeeded(t),r=ungroupDateValuesIfNeeded(o,n);return[...Object.keys(r).map(l=>getParamForField(l,r[l],n))].reduce((l,c)=>Array.isArray(c[0])?l.concat(c):[...l,c],[])},getParamForField=(e,n,t)=>{const o=e.split("#")[0],r=t[o].type;if(r==="char"||r==="text"||r==="many2one"||r==="many2many"||r==="one2many")return[e,"ilike",n];if(r==="float"||r==="integer"||r==="float_time"||r==="progressbar"){const a=e.indexOf("#from")!==-1?">=":"<=";return[o,a,n]}else if(r==="date"){const a=e.indexOf("#from")!==-1?">=":"<=";return[o,a,n.format("YYYY-MM-DD")]}else if(r==="datetime"){const a=[];return n[0]&&a.push([o,">=",n[0]]),n[1]&&a.push([o,"<=",n[1]]),a}else return r==="selection"?[e,"in",n.map(a=>convertBooleanParamIfNeeded(a))]:[e,"=",convertBooleanParamIfNeeded(n)]},getDatetimeDateFields=e=>Object.keys(e).filter(n=>n.indexOf("#date")!==-1),removeDateTimeSingleFields=e=>{const n={...e};return Object.keys(n).forEach(t=>(t.indexOf("#time")!==-1||t.indexOf("#date")!==-1)&&delete n[t]),n},groupDateTimeValuesIfNeeded=e=>{const n={...removeDateTimeSingleFields(e)};return getDatetimeDateFields(e).forEach(o=>{const r=e[o],a=o.split("#")[0],s=a+"#time",l=e[s];let c,u;if(r[0]!==null&&(c=r[0].format("YYYY-MM-DD"),l&&l[0]!==null)){const f=l[0].format("HH:mm:ss");c=c+" "+f}if(r[1]!==null&&(u=r[1].format("YYYY-MM-DD"),l&&l[1]!==null)){const f=l[1].format("HH:mm:ss");u=u+" "+f}n[a+"#datetime"]=[c,u]}),n},ungroupDateValuesIfNeeded=(e,n)=>{const t=Object.keys(e).filter(r=>n[r]&&n[r].type==="date");let o={...e};return t.forEach(r=>{delete o[r],e[r][0]!==null&&(o[r+"#from"]=e[r][0]),e[r][1]!==null&&(o[r+"#to"]=e[r][1])}),o},removeUndefinedFields=e=>{const n={...e};return Object.keys(n).forEach(t=>(n[t]===void 0||n[t]===null||n[t]==="")&&delete n[t]),n};function SearchFilter(e){const{fields:n,searchFields:t={primary:[],secondary:[]},onClear:o,onSubmit:r,isSearching:a,offset:s,limit:l,onLimitChange:c}=e,[u,d]=React.useState(),[f,m]=React.useState(),[p,g]=React.useState(!1),[v]=antd.Form.useForm(),C=()=>{if(!f)return;const y=p?f:u,x=y==null?void 0:y.rows;return x==null?void 0:x.map((w,O)=>jsxRuntime.jsx(antd.Row,{children:w.map((F,b)=>jsxRuntime.jsx(antd.Col,{xs:24,className:"p-2",xl:6,children:jsxRuntime.jsx(SearchField,{field:F})},b))},O))};useDeepCompareEffect__default.default(()=>{g(!1);const y=new ooui.SearchFilter(t,n);y.parse(),d(y._simpleSearchContainer),m(y._advancedSearchContainer)},[n,t]);const I=C(),h=y=>{const{limit:x,offset:w}=y;delete y.offset,delete y.limit;const O=getParamsForFields(y,n);r({params:O,offset:w,limit:x})};return jsxRuntime.jsxs(antd.Form,{className:"bg-gray-50 rounded p-3 shadow-md",form:v,onFinish:h,initialValues:{offset:s,limit:l},children:[I,p&&jsxRuntime.jsx(SearchParams,{onLimitChange:c}),jsxRuntime.jsx(SearchBottomBar,{advancedFilter:p,onAdvancedFilterToggle:()=>{g(!p)},onClear:()=>{v.resetFields(),o()},isSearching:a})]})}const getTree=e=>{const n=e.arch,t=e.fields,o=new ooui.Tree(t);return o.parse(n),o},getTableColumns=(e,n)=>e.columns.map(o=>{const r=o.type,a=o.id,s=n==null?void 0:n[r];let l;return s&&(l=c=>s(c)),{key:a,dataIndex:a,title:o.label,render:l,sorter:(c,u)=>{var m,p;let d=c[a]||"",f=u[a]||"";return r==="many2one"&&(d=((m=c[a])==null?void 0:m.value)||"",f=((p=u[a])==null?void 0:p.value)||""),d<f?-1:d>f?1:0}}}),getTableItems=(e,n)=>n.map(o=>{const r={};return Object.keys(o).map(a=>{if(a==="id")r[a]=o[a];else{const s=e.findById(a);if(s instanceof ooui.Selection){const l=s;r[a]=l.selectionValues.get(o[a])}else s instanceof ooui.Many2one?r[a]=o[a]&&Array.isArray(o[a])&&o[a].length===2&&{model:s.relation,id:o[a][0],value:o[a][1]}:s instanceof ooui.Boolean?r[a]=o[a]:s?r[a]=o[a]===!1?"":o[a]:r[a]=o[a]}}),r});function getColorMap(e){if(!e)return;const n={};return e.forEach(t=>{n[t.id]=t.colors}),n}function sortResults({resultsToSort:e,sorter:n,fields:t}){if(!n)return e;const{id:o,desc:r}=n,a=r===!1?"ascend":"descend",s=t[o].type,l=(c,u)=>{var m,p;let d=c[o]||"",f=u[o]||"";return s==="many2one"&&(d=((m=c[o])==null?void 0:m[1])||"",f=((p=u[o])==null?void 0:p[1])||""),d===f?0:a==="ascend"?d>f?1:-1:d<f?1:-1};return e.sort(l)}const Many2oneSuffixModal=e=>{const{visible:n,onCancel:t,items:o=[],onItemClicked:r}=e,{t:a}=React.useContext(LocaleContext);return jsxRuntime.jsx(antd.Modal,{title:a("selectAction"),centered:!0,visible:n,footer:null,destroyOnClose:!0,onCancel:t,maskClosable:!1,children:jsxRuntime.jsx(antd.Space,{direction:"vertical",className:"w-full",children:o.map(s=>jsxRuntime.jsx(antd.Button,{className:"w-full",onClick:()=>{r(s)},children:s.name}))})})},Many2oneSuffix=e=>{var b,S;const{id:n,model:t,context:o={}}=e,[r,a]=React.useState(!1),[s,l]=React.useState(!1),[c,u]=React.useState(!1),[d,f]=React.useState(),[m,p]=React.useState(),{t:g}=React.useContext(LocaleContext),v=React.useContext(TabManagerContext),{openRelate:C}=v||{},I=React.useContext(ContentRootContext),{processAction:h}=I||{};if(!n)return null;async function y(){u(!0);try{const T=await ConnectionProvider.getHandler().getView({model:t,type:"form",context:o});f(T);const{fields:k,arch:L}=T,D=(await ConnectionProvider.getHandler().readObjects({model:t,ids:[n],fields:k,context:o}))[0];p({...processValues(D,k),active_id:n}),u(!1)}catch(T){u(!1),showDialog$8(T);return}}function x(){var k;if(c)return jsxRuntime.jsx(antd.Menu,{children:jsxRuntime.jsx("div",{style:{padding:15},children:jsxRuntime.jsx(antd.Spin,{})})});if(!d||!d.toolbar)return jsxRuntime.jsx(antd.Menu,{});const T=(k=d==null?void 0:d.toolbar)==null?void 0:k.relate.map(L=>jsxRuntime.jsx(antd.Menu.Item,{children:L.name},L.id));return jsxRuntime.jsx(antd.Menu,{onClick:w,children:[jsxRuntime.jsx(antd.Menu.Item,{disabled:!d.toolbar.action||d.toolbar.action.length===0,icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),children:g("action")},"action"),jsxRuntime.jsx(antd.Menu.Item,{disabled:!d.toolbar.print||d.toolbar.print.length===0,icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),children:g("report")},"print"),jsxRuntime.jsx(antd.Menu.Divider,{}),jsxRuntime.jsx(antd.Menu.ItemGroup,{title:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Icon.EnterOutlined,{})," ",jsxRuntime.jsxs("span",{children:[" ",g("related")]})]}),children:T})]})}function w(T){if(T.key==="action")a(!0);else if(T.key==="print")l(!0);else{const k=d.toolbar.relate.find(L=>L.id===parseInt(T.key));if(!k)return;C({relateData:k,values:m,fields:d.fields,action_id:k.id,action_type:k.type})}}function O(T){a(!1),h==null||h({actionData:T,values:m,fields:d.fields,context:{active_id:n,active_ids:[n]}})}function F(T){l(!1),h==null||h({actionData:{...T,datas:{...T.datas||{},ids:[n]}},values:m,fields:d.fields})}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Dropdown,{overlay:x(),trigger:["click"],children:jsxRuntime.jsx(Icon.RightCircleOutlined,{style:{color:"rgba(0,0,0,.45)"},onClick:T=>{T.preventDefault(),y()}})}),jsxRuntime.jsx(Many2oneSuffixModal,{visible:r,items:(b=d==null?void 0:d.toolbar)==null?void 0:b.action,onItemClicked:O,onCancel:()=>a(!1)}),jsxRuntime.jsx(Many2oneSuffixModal,{visible:s,items:(S=d==null?void 0:d.toolbar)==null?void 0:S.print,onItemClicked:F,onCancel:()=>l(!1)})]})},getTextWidth$1=(e,n="14px -apple-system")=>{const o=document.createElement("canvas").getContext("2d");o.font=n;const r=o.measureText(e);return Math.round((r.width+80)*1.5)},calculateColumnsWidth=(e,n,t=500)=>{if(e.length===0)return e;const o=e.map(a=>Object.assign(a,{width:getTextWidth$1(a.title)}));n.map(a=>{o.map((s,l)=>{const c=s.width,u=a[s.key]||"";let d=getTextWidth$1(u);d<c&&(d=c),d>t&&(d=t),o[l].width=d})});const r=o.map(a=>a.width).reduce((a,s)=>a+s);return{columns:o,source:n,tableWidth:r}};function parseStringToFloat(e){if(!!e)try{if(e.includes(":")){const n=e.trim().split(":");return Math.round((parseInt(n[0])+parseInt(n[1])/60)*1e4)/1e4}else return parseFloat(e.trim())}catch{return 0}}function parseFloatToString(e){if(e===void 0)return;let n,t=Math.floor(Math.abs(e)),o=Math.round(Math.abs(e)%1*100)/100;o>=1?(t=t+1,o=0):o=o*60;const r=t.toLocaleString("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0,useGrouping:!1}),a=o.toLocaleString("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0,useGrouping:!1});return n=`${r}:${a}`,e<0&&(n="-"+n),n}const ProgressBar=e=>jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(ProgressBarInput,{})}),ProgressBarInput=({value:e})=>{const n=`${(e||0).toLocaleString("en-US",{minimumIntegerDigits:1,maximumFractionDigits:4,useGrouping:!1})}%`;return jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[jsxRuntime.jsx(StyledProgress,{percent:e}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:n})]})},StyledProgress=styled__default.default(antd.Progress)`
107
+ `,types$1={text:"text",many2one:"many2one",char:"char",boolean:"boolean",selection:"selection",float:"float",float_time:"float_time",progressbar:"progressbar",integer:"integer",date:"date",datetime:"datetime"};function SearchField(e){const{field:n}=e;n.readOnly=!1,n.required=!1;const{t}=React.useContext(LocaleContext);switch(n.type){case types$1.boolean:{const r=new ooui.Selection({name:n._id,string:n.label,selection:[["true",t("true")],["false",t("false")]]});return jsxRuntime.jsx(Selection,{layout:"vertical",ooui:r,showLabel:!0})}case types$1.float:case types$1.progressbar:case types$1.float_time:case types$1.integer:return jsxRuntime.jsx(PairFields,{ooui:n,showLabel:!0});case types$1.date:return jsxRuntime.jsx(DateRangePicker,{ooui:n,layout:"vertical",showLabel:!0});case types$1.datetime:return jsxRuntime.jsx(DateTimeRangePicker,{ooui:n,layout:"vertical",showLabel:!0});case types$1.selection:return jsxRuntime.jsx(MultiSelection,{layout:"vertical",ooui:n,showLabel:!0});default:return jsxRuntime.jsx(Char,{ooui:n,layout:"vertical",showLabel:!0,isSearchField:!0})}}function SearchBottomBar(e){const{onAdvancedFilterToggle:n,advancedFilter:t,onClear:o,isSearching:r}=e,{t:a}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,className:"text-left pt-4 pb-2 pl-2",children:jsxRuntime.jsxs("a",{className:"text-xs",onClick:n,children:[t?jsxRuntime.jsx(Icon.UpOutlined,{className:"pr-1"}):jsxRuntime.jsx(Icon.DownOutlined,{className:"pr-1"}),a(t?"simple_search":"advanced_search")]})}),jsxRuntime.jsxs(antd.Col,{span:12,className:"text-right pb-2",children:[jsxRuntime.jsx(antd.Button,{className:"mr-5",icon:jsxRuntime.jsx(Icon.ClearOutlined,{}),onClick:o,children:a("clear")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),loading:r,className:"mr-2",type:"primary",htmlType:"submit",children:a("search")})]})]})}function SearchParams(e){const{onLimitChange:n}=e,{t}=React.useContext(LocaleContext),o=new ooui.Integer({name:"limit"}),r=new ooui.Integer({name:"offset"});return jsxRuntime.jsxs("div",{className:"pl-2 pt-2",children:[jsxRuntime.jsx(antd.Row,{children:t("parameters")},"count_params"),jsxRuntime.jsxs(antd.Space,{align:"center",children:[t("limit")+" :",jsxRuntime.jsx(Integer,{ooui:o,onChange:a=>{n==null||n(a)}}),t("first")+" :",jsxRuntime.jsx(Integer,{ooui:r})]})]})}const convertBooleanParamIfNeeded=e=>typeof e=="string"&&e==="true"||e==="false"?e==="true":e,getParamsForFields=(e,n)=>{const t=removeUndefinedFields(e),o=groupDateTimeValuesIfNeeded(t),r=ungroupDateValuesIfNeeded(o,n);return[...Object.keys(r).map(l=>getParamForField(l,r[l],n))].reduce((l,c)=>Array.isArray(c[0])?l.concat(c):[...l,c],[])},getParamForField=(e,n,t)=>{const o=e.split("#")[0],r=t[o].type;if(r==="char"||r==="text"||r==="many2one"||r==="many2many"||r==="one2many")return[e,"ilike",n];if(r==="float"||r==="integer"||r==="float_time"||r==="progressbar"){const a=e.indexOf("#from")!==-1?">=":"<=";return[o,a,n]}else if(r==="date"){const a=e.indexOf("#from")!==-1?">=":"<=";return[o,a,n.format("YYYY-MM-DD")]}else if(r==="datetime"){const a=[];return n[0]&&a.push([o,">=",n[0]]),n[1]&&a.push([o,"<=",n[1]]),a}else return r==="selection"?[e,"in",n.map(a=>convertBooleanParamIfNeeded(a))]:[e,"=",convertBooleanParamIfNeeded(n)]},getDatetimeDateFields=e=>Object.keys(e).filter(n=>n.indexOf("#date")!==-1),removeDateTimeSingleFields=e=>{const n={...e};return Object.keys(n).forEach(t=>(t.indexOf("#time")!==-1||t.indexOf("#date")!==-1)&&delete n[t]),n},groupDateTimeValuesIfNeeded=e=>{const n={...removeDateTimeSingleFields(e)};return getDatetimeDateFields(e).forEach(o=>{const r=e[o],a=o.split("#")[0],s=a+"#time",l=e[s];let c,u;if(r[0]!==null&&(c=r[0].format("YYYY-MM-DD"),l&&l[0]!==null)){const f=l[0].format("HH:mm:ss");c=c+" "+f}if(r[1]!==null&&(u=r[1].format("YYYY-MM-DD"),l&&l[1]!==null)){const f=l[1].format("HH:mm:ss");u=u+" "+f}n[a+"#datetime"]=[c,u]}),n},ungroupDateValuesIfNeeded=(e,n)=>{const t=Object.keys(e).filter(r=>n[r]&&n[r].type==="date");let o={...e};return t.forEach(r=>{delete o[r],e[r][0]!==null&&(o[r+"#from"]=e[r][0]),e[r][1]!==null&&(o[r+"#to"]=e[r][1])}),o},removeUndefinedFields=e=>{const n={...e};return Object.keys(n).forEach(t=>(n[t]===void 0||n[t]===null||n[t]==="")&&delete n[t]),n};function SearchFilter(e){const{fields:n,searchFields:t={primary:[],secondary:[]},onClear:o,onSubmit:r,isSearching:a,offset:s,limit:l,onLimitChange:c}=e,[u,d]=React.useState(),[f,m]=React.useState(),[p,h]=React.useState(!1),[v]=antd.Form.useForm(),C=()=>{if(!f)return;const y=p?f:u,x=y==null?void 0:y.rows;return x==null?void 0:x.map((w,O)=>jsxRuntime.jsx(antd.Row,{children:w.map((F,b)=>jsxRuntime.jsx(antd.Col,{xs:24,className:"p-2",xl:6,children:jsxRuntime.jsx(SearchField,{field:F})},b))},O))};useDeepCompareEffect__default.default(()=>{h(!1);const y=new ooui.SearchFilter(t,n);y.parse(),d(y._simpleSearchContainer),m(y._advancedSearchContainer)},[n,t]);const I=C(),g=y=>{const{limit:x,offset:w}=y;delete y.offset,delete y.limit;const O=getParamsForFields(y,n);r({params:O,offset:w,limit:x})};return jsxRuntime.jsxs(antd.Form,{className:"bg-gray-50 rounded p-3 shadow-md",form:v,onFinish:g,initialValues:{offset:s,limit:l},children:[I,p&&jsxRuntime.jsx(SearchParams,{onLimitChange:c}),jsxRuntime.jsx(SearchBottomBar,{advancedFilter:p,onAdvancedFilterToggle:()=>{h(!p)},onClear:()=>{v.resetFields(),o()},isSearching:a})]})}const getTree=e=>{const n=e.arch,t=e.fields,o=new ooui.Tree(t);return o.parse(n),o},getTableColumns=(e,n)=>e.columns.map(o=>{const r=o.type,a=o.id,s=n==null?void 0:n[r];let l;return s&&(l=c=>s(c)),{key:a,dataIndex:a,title:o.label,render:l,sorter:(c,u)=>{var m,p;let d=c[a]||"",f=u[a]||"";return r==="many2one"&&(d=((m=c[a])==null?void 0:m.value)||"",f=((p=u[a])==null?void 0:p.value)||""),d<f?-1:d>f?1:0}}}),getTableItems=(e,n)=>n.map(o=>{const r={};return Object.keys(o).map(a=>{if(a==="id")r[a]=o[a];else{const s=e.findById(a);if(s instanceof ooui.Selection){const l=s;r[a]=l.selectionValues.get(o[a])}else s instanceof ooui.Many2one?r[a]=o[a]&&Array.isArray(o[a])&&o[a].length===2&&{model:s.relation,id:o[a][0],value:o[a][1]}:s instanceof ooui.Boolean?r[a]=o[a]:s?r[a]=o[a]===!1?"":o[a]:r[a]=o[a]}}),r});function getColorMap(e){if(!e)return;const n={};return e.forEach(t=>{n[t.id]=t.colors}),n}function sortResults({resultsToSort:e,sorter:n,fields:t}){if(!n)return e;const{id:o,desc:r}=n,a=r===!1?"ascend":"descend",s=t[o].type,l=(c,u)=>{var m,p;let d=c[o]||"",f=u[o]||"";return s==="many2one"&&(d=((m=c[o])==null?void 0:m[1])||"",f=((p=u[o])==null?void 0:p[1])||""),d===f?0:a==="ascend"?d>f?1:-1:d<f?1:-1};return e.sort(l)}const Many2oneSuffixModal=e=>{const{visible:n,onCancel:t,items:o=[],onItemClicked:r}=e,{t:a}=React.useContext(LocaleContext);return jsxRuntime.jsx(antd.Modal,{title:a("selectAction"),centered:!0,visible:n,footer:null,destroyOnClose:!0,onCancel:t,maskClosable:!1,children:jsxRuntime.jsx(antd.Space,{direction:"vertical",className:"w-full",children:o.map(s=>jsxRuntime.jsx(antd.Button,{className:"w-full",onClick:()=>{r(s)},children:s.name}))})})},Many2oneSuffix=e=>{var b,_;const{id:n,model:t,context:o={}}=e,[r,a]=React.useState(!1),[s,l]=React.useState(!1),[c,u]=React.useState(!1),[d,f]=React.useState(),[m,p]=React.useState(),{t:h}=React.useContext(LocaleContext),v=React.useContext(TabManagerContext),{openRelate:C}=v||{},I=React.useContext(ContentRootContext),{processAction:g}=I||{};if(!n)return null;async function y(){u(!0);try{const T=await ConnectionProvider.getHandler().getView({model:t,type:"form",context:o});f(T);const{fields:k,arch:N}=T,D=(await ConnectionProvider.getHandler().readObjects({model:t,ids:[n],fields:k,context:o}))[0];p({...processValues(D,k),active_id:n}),u(!1)}catch(T){u(!1),showDialog$8(T);return}}function x(){var k;if(c)return jsxRuntime.jsx(antd.Menu,{children:jsxRuntime.jsx("div",{style:{padding:15},children:jsxRuntime.jsx(antd.Spin,{})})});if(!d||!d.toolbar)return jsxRuntime.jsx(antd.Menu,{});const T=(k=d==null?void 0:d.toolbar)==null?void 0:k.relate.map(N=>jsxRuntime.jsx(antd.Menu.Item,{children:N.name},N.id));return jsxRuntime.jsx(antd.Menu,{onClick:w,children:[jsxRuntime.jsx(antd.Menu.Item,{disabled:!d.toolbar.action||d.toolbar.action.length===0,icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),children:h("action")},"action"),jsxRuntime.jsx(antd.Menu.Item,{disabled:!d.toolbar.print||d.toolbar.print.length===0,icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),children:h("report")},"print"),jsxRuntime.jsx(antd.Menu.Divider,{}),jsxRuntime.jsx(antd.Menu.ItemGroup,{title:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Icon.EnterOutlined,{})," ",jsxRuntime.jsxs("span",{children:[" ",h("related")]})]}),children:T})]})}function w(T){if(T.key==="action")a(!0);else if(T.key==="print")l(!0);else{const k=d.toolbar.relate.find(N=>N.id===parseInt(T.key));if(!k)return;C({relateData:k,values:m,fields:d.fields,action_id:k.id,action_type:k.type})}}function O(T){a(!1),g==null||g({actionData:T,values:m,fields:d.fields,context:{active_id:n,active_ids:[n]}})}function F(T){l(!1),g==null||g({actionData:{...T,datas:{...T.datas||{},ids:[n]}},values:m,fields:d.fields})}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Dropdown,{overlay:x(),trigger:["click"],children:jsxRuntime.jsx(Icon.RightCircleOutlined,{style:{color:"rgba(0,0,0,.45)"},onClick:T=>{T.preventDefault(),y()}})}),jsxRuntime.jsx(Many2oneSuffixModal,{visible:r,items:(b=d==null?void 0:d.toolbar)==null?void 0:b.action,onItemClicked:O,onCancel:()=>a(!1)}),jsxRuntime.jsx(Many2oneSuffixModal,{visible:s,items:(_=d==null?void 0:d.toolbar)==null?void 0:_.print,onItemClicked:F,onCancel:()=>l(!1)})]})},getTextWidth$1=(e,n="14px -apple-system")=>{const o=document.createElement("canvas").getContext("2d");o.font=n;const r=o.measureText(e);return Math.round((r.width+80)*1.5)},calculateColumnsWidth=(e,n,t=500)=>{if(e.length===0)return e;const o=e.map(a=>Object.assign(a,{width:getTextWidth$1(a.title)}));n.map(a=>{o.map((s,l)=>{const c=s.width,u=a[s.key]||"";let d=getTextWidth$1(u);d<c&&(d=c),d>t&&(d=t),o[l].width=d})});const r=o.map(a=>a.width).reduce((a,s)=>a+s);return{columns:o,source:n,tableWidth:r}};function parseStringToFloat(e){if(!!e)try{if(e.includes(":")){const n=e.trim().split(":");return Math.round((parseInt(n[0])+parseInt(n[1])/60)*1e4)/1e4}else return parseFloat(e.trim())}catch{return 0}}function parseFloatToString(e){if(e===void 0)return;let n,t=Math.floor(Math.abs(e)),o=Math.round(Math.abs(e)%1*100)/100;o>=1?(t=t+1,o=0):o=o*60;const r=t.toLocaleString("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0,useGrouping:!1}),a=o.toLocaleString("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0,useGrouping:!1});return n=`${r}:${a}`,e<0&&(n="-"+n),n}const ProgressBar=e=>jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(ProgressBarInput,{})}),ProgressBarInput=({value:e})=>{const n=`${(e||0).toLocaleString("en-US",{minimumIntegerDigits:1,maximumFractionDigits:4,useGrouping:!1})}%`;return jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[jsxRuntime.jsx(StyledProgress,{percent:e}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:n})]})},StyledProgress=styled__default.default(antd.Progress)`
108
108
  .ant-progress-outer {
109
109
  margin-right: 0px;
110
110
  padding-right: 0px;
@@ -112,11 +112,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
112
112
  .ant-progress-text {
113
113
  display: none;
114
114
  }
115
- `,booleanComponentFn=e=>jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",alignContent:"center"},children:jsxRuntime.jsx(antd.Checkbox,{checked:e,disabled:!0})}),many2OneComponentFn=e=>e?jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.value}),jsxRuntime.jsx(Many2oneSuffix,{id:e.id,model:e.model})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{}),textComponentFn=e=>jsxRuntime.jsx("div",{style:{whiteSpace:"pre-line"},children:e}),one2ManyComponentFn=e=>{const n=Array.isArray(e==null?void 0:e.items)?e==null?void 0:e.items.length:0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`( ${n} )`})},progressBarComponentFn=e=>jsxRuntime.jsx(ProgressBarInput,{value:e}),floatTimeComponent=e=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:parseFloatToString(e)}),numberComponent=e=>jsxRuntime.jsx("div",{style:{textAlign:"right"},children:e}),imageComponent=e=>jsxRuntime.jsx("img",{src:`data:image/*;base64,${e}`,style:{maxWidth:"50px",padding:"5px"}});function Tree(e){const{page:n=1,limit:t,total:o,treeView:r,results:a,onRequestPageChange:s,loading:l,onRowClicked:c,showPagination:u=!0,rowSelection:d,scrollY:f,colorsForResults:m={},onChangeSort:p,sorter:g,onFetchChildrenForRecord:v,childField:C}=e,[I,h]=React.useState([]),[y,x]=React.useState([]),w=React.useRef(!1),O=React.useRef(null),{t:F}=React.useContext(LocaleContext);React.useEffect(()=>{O.current=getTree(r);const M=getTableColumns(O.current,{boolean:booleanComponentFn,many2one:many2OneComponentFn,text:textComponentFn,one2many:one2ManyComponentFn,many2many:one2ManyComponentFn,progressbar:progressBarComponentFn,float_time:floatTimeComponent,image:imageComponent,integer:numberComponent,float:numberComponent});x(M)},[r]),React.useEffect(()=>{w.current=!1;const M=getTableItems(O.current,a);h(M)},[a]);const b=(n-1)*t+1,S=b-1+I.length,T=o===void 0?null:o===0?F("no_results"):F("summary").replace("{from}",b==null?void 0:b.toString()).replace("{to}",S==null?void 0:S.toString()).replace("{total}",o==null?void 0:o.toString()),k=()=>!u||r.isExpandable||l?null:o===void 0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"pb-4",children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Pagination,{total:o,pageSize:t,current:n,showSizeChanger:!1,onChange:s})}),jsxRuntime.jsx(antd.Col,{span:12,className:"text-right",children:T})]});function L(){var V;const q=O.current.columns.filter(G=>G.sum!==void 0).map(G=>({label:G.sum,field:G.id}));if(!q||q.length===0)return null;let U=[],B=((V=d==null?void 0:d.selectedRowKeys)==null?void 0:V.length)>0?I.filter(G=>d==null?void 0:d.selectedRowKeys.includes(G.id)):I;return q.forEach(G=>{const Y=B.reduce((H,K)=>K[G.field]&&!isNaN(K[G.field])?H+K[G.field]:H,0);U.push(`${G.label}: ${Math.round(Y*100)/100}`)}),jsxRuntime.jsx("div",{className:"p-1 pb-0 pl-2 mt-2 bg-gray-50",children:U.join(", ")})}let D,P=f;if(O.current!==null){D=calculateColumnsWidth(y,I,600);const q=O.current;f&&q.columns.some(U=>U.sum!==void 0)&&(P=f-30)}return O.current===null?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):jsxRuntime.jsxs("div",{children:[k(),jsxRuntime.jsx(reactFormigaTable.Table,{height:P,columns:D.columns,dataSource:I,loading:l,loadingComponent:jsxRuntime.jsx(antd.Spin,{}),onRowStyle:M=>{if(m[M.id])return{color:m[M.id]}},onRowDoubleClick:c,onRowSelectionChange:d==null?void 0:d.onChange,onChangeSort:p,sorter:g,expandableOpts:v?{expandIcon:Icon.PlusSquareOutlined,collapseIcon:Icon.MinusSquareOutlined,loadingIcon:Icon.LoadingOutlined,onFetchChildrenForRecord:v,childField:C}:void 0}),L()]})}const DEFAULT_SEARCH_LIMIT$1=80;function SearchTree(e,n){const{model:t,formView:o,treeView:r,onRowClicked:a,nameSearch:s,treeScrollY:l,domain:c=[],visible:u=!0,rootTree:d=!1,parentContext:f={},onChangeSelectedRowKeys:m,limit:p}=e,[g,v]=React.useState(!1),[C,I]=React.useState(!1),h=React.useRef(!1),y=React.useRef(p||DEFAULT_SEARCH_LIMIT$1),[x,w]=React.useState(),[O,F]=React.useState(),[b,S]=React.useState(),[T,k]=React.useState(1),[L,D]=React.useState(0),[P,M]=React.useState(p||DEFAULT_SEARCH_LIMIT$1),q=React.useRef([]),[U,B]=React.useState(),[V,G]=React.useState([]),[Y,H]=React.useState(void 0),[K,N]=React.useState(!1),[W,j]=React.useState(),[A,$]=React.useState(),[Z,Q]=React.useState(!1),E=React.useRef([]),[_,z]=React.useState(200),X=React.useRef([]),ne=React.useRef(),{height:ee}=useWindowDimensions(),oe=React.useContext(ActionViewContext),{setResults:se=void 0,setCurrentItemIndex:ie=void 0,currentId:ce=void 0,results:pe=void 0,selectedRowItems:ve=void 0,setSelectedRowItems:Re=void 0,setSearchParams:he=void 0,searchVisible:Fe=!0,setSearchVisible:ye=void 0,sorter:_e=void 0,setSorter:xe=void 0,setTotalItems:Ee=void 0,setSearchTreeNameSearch:re=void 0,setTreeIsLoading:ae=void 0}=(d?oe:{})||{},Ie=React.useContext(ContentRootContext),{processAction:me}=Ie||{};React.useImperativeHandle(n,()=>({refreshResults:()=>{h.current=!1,De()}}));const ue=de=>{Q(!0),k(de),D((de-1)*P)};function ge(de){se==null||se([...de]),G([...de])}const be=React.useCallback(()=>pe||V,[pe,V]),Te=async()=>{const de=await ConnectionProvider.getHandler().nameSearch({model:x,payload:s,limit:y.current,attrs:E.current.length>0?E.current:c,context:f});if(B(de.length),Ee==null||Ee(de.length),de.length>0){const Ce=de.map(J=>J==null?void 0:J[0]),{colors:Oe}=getTree(O),ke=await ConnectionProvider.getHandler().readEvalUiObjects({model:x,ids:Ce,arch:O==null?void 0:O.arch,fields:O.field_parent?{...O.fields,[O.field_parent]:{}}:O.fields,context:f,attrs:Oe&&{colors:Oe}}),Ae=ke[0];X.current=[...Ae],H(getColorMap(ke[1]));const Ue=Ae.map(J=>J.id),Be=_e!==void 0?sortResults({resultsToSort:Ae,sorter:_e,fields:{...O.fields,...b.fields}}):[...X.current];ge(Be),Ue.length>0?ie==null||ie(0):ie==null||ie(void 0)}else ge([]),ie==null||ie(void 0);h.current=!0},Se=de=>{const Ce={};return de.forEach(Oe=>{Array.isArray(Oe)&&Oe[0]?Ce[Oe[0]]=!0:Ce[Oe]=!0}),Object.keys(Ce)},Pe=(de,Ce)=>{const Oe=de,ke=Se(de);return Ce.forEach(Ae=>{Array.isArray(Ae)&&Ae[0]?ke.includes(Ae[0])||Oe.push(Ae):ke.includes(Ae)||Oe.push(Ae)}),Oe},Me=async()=>{const de=E.current.length>0?E.current:c,Ce=Pe(q.current,de),{colors:Oe}=getTree(O),{totalItems:ke,results:Ae,attrsEvaluated:Ue}=await ConnectionProvider.getHandler().searchForTree({params:Ce,limit:P,offset:L,model:x,fields:O.field_parent?{...O.fields,[O.field_parent]:{}}:O.fields,context:f,attrs:Oe&&{colors:Oe}});H(getColorMap(Ue)),X.current=[...Ae];const Be=_e!==void 0?sortResults({resultsToSort:Ae,sorter:_e,fields:{...O.fields,...b.fields}}):[...X.current];if(ke.then(J=>{B(J),Ee==null||Ee(J)}),ge(Be),pe&&Be.length>0){const J=Be.findIndex(te=>ce===te.id);J===-1?ie==null||ie(0):ie==null||ie(J)}else ie==null||ie(void 0)},De=async()=>{try{Q(!0),ae==null||ae(!0),s&&!h.current?await Te():await Me()}catch(de){j(de)}finally{Q(!1),N(!1),ae==null||ae(!1)}};async function je(de){const Ce=de[(O==null?void 0:O.field_parent)||"child_id"],Oe=await ConnectionProvider.getHandler().readObjects({model:x,ids:Ce,fields:O.field_parent?{...O.fields,[O.field_parent]:{}}:O.fields,context:f});return ge([...be(),...Oe]),getTableItems(getTree(O),Oe)}React.useEffect(()=>{!C||u&&(h.current=!1,De())},[T,P,L,C,u,s]);const Ve=async()=>{I(!1),v(!0),$(void 0),ae==null||ae(!0);try{await He(),I(!0)}catch(de){$(de)}finally{v(!1),ae==null||ae(!1)}},He=async()=>{w(t);let de=o;o||(de=await ConnectionProvider.getHandler().getView({model:t,type:"form",context:f}));let Ce=r;r||(Ce=await ConnectionProvider.getHandler().getView({model:t,type:"tree",context:f})),S(de),F(Ce),M(p||DEFAULT_SEARCH_LIMIT$1)};React.useEffect(()=>{Ve()},[t]);const We=()=>{Z||(re==null||re(void 0),q.current=[],he==null||he([]),j(void 0),D(0),k(1),M(p||DEFAULT_SEARCH_LIMIT$1))},Ne=({params:de,limit:Ce,offset:Oe})=>{Z||(q.current=de,re==null||re(void 0),Re==null||Re([]),he==null||he(de),ye==null||ye(!1),N(!0),j(void 0),k(1),Ce&&M(Ce),Oe&&D(Oe),De())},$e=de=>{y.current=de},qe=async de=>{const{id:Ce}=de;ne.current||(ne.current=await ConnectionProvider.getHandler().treeButOpen({id:O.view_id,model:x,context:f}));const Oe=ne.current[0][2];await(me==null?void 0:me({actionData:Oe,fields:O.fields,values:{active_id:Ce,...de},context:f}))},ze=async de=>{const{id:Ce}=de;if(O!=null&&O.isExpandable){try{await qe(de)}catch(Oe){showDialog$8(Oe)}return}a({id:Ce,model:x,formView:b,treeView:O})};function Ge(de){const Ce=be().filter(Oe=>de.includes(Oe.id));Re==null||Re(Ce),m==null||m(de)}function Ye(){return O!=null&&O.isExpandable?ee-160:ee-(_+210)}const Ke=()=>!O||!b?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:de=>{var Ce;z((Ce=de.bounds)==null?void 0:Ce.height)},children:({measureRef:de})=>jsxRuntime.jsx("div",{ref:de,children:jsxRuntime.jsxs("div",{style:{display:Fe?"block":"none"},children:[jsxRuntime.jsx(SearchFilter,{fields:{...O.fields,...b.fields},searchFields:mergeSearchFields([b.search_fields,O.search_fields]),onClear:We,limit:P,offset:L,isSearching:K,onSubmit:Ne,onLimitChange:$e}),W&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:W,type:"error",banner:!0}),jsxRuntime.jsx("div",{className:"pb-5"})]})})}),jsxRuntime.jsx(Tree,{total:U,limit:P,page:T,treeView:O,results:be(),onRequestPageChange:ue,loading:Z,onRowClicked:ze,scrollY:l||Ye(),colorsForResults:Y,rowSelection:{selectedRowKeys:ve==null?void 0:ve.map(de=>de.id),onChange:Ge},sorter:_e,onChangeSort:de=>{xe==null||xe(de);const Ce=de!==void 0?sortResults({resultsToSort:be(),sorter:de,fields:{...O.fields,...b.fields}}):[...X.current];ge(Ce)},onFetchChildrenForRecord:O.isExpandable?je:void 0,childField:O.field_parent})]});return A?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:A,type:"error",banner:!0}):jsxRuntime.jsx("div",{style:u?{}:{display:"none"},children:g?jsxRuntime.jsx(antd.Spin,{}):Ke()})}const SearchTree$1=React.forwardRef(SearchTree),SearchModal=e=>{const{visible:n,onCloseModal:t,onSelectValues:o,model:r,nameSearch:a,domain:s,context:l={}}=e,[c,u]=React.useState(!1),{modalWidth:d,modalHeight:f}=useWindowDimensions(),{t:m}=React.useContext(LocaleContext),[p,g]=React.useState([]),v=async()=>{await new Promise(y=>setTimeout(y,5)),t()},C=async y=>{const{id:x}=y;o([x])};function I(){if(p.length===0){v();return}o(p)}const h=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchTree$1,{model:r,nameSearch:a,onRowClicked:C,treeScrollY:f*.3,domain:s,parentContext:l,onChangeSelectedRowKeys:y=>{g(y)}}),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),onClick:()=>{u(!0)},children:m("new")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{I()},type:"primary",children:m("ok")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:v,children:m("cancel")})]})})]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Modal,{title:m("search"),centered:!0,width:d,visible:n&&!c,closable:!0,onCancel:v,footer:null,destroyOnClose:!0,maskClosable:!1,children:h()}),jsxRuntime.jsx(FormModal,{model:r,visible:c,parentContext:l,onSubmitSucceed:y=>{u(!1),v(),o([y])},onCancel:()=>{u(!1),v()}})]})},{error}=antd.Modal,showDialog$3=e=>{error({title:"Error",icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:e})},Many2one=e=>{const{ooui:n}=e,{required:t}=n,o=async(r,a)=>{if(!a)throw new Error;if(!Array.isArray(a))throw new Error;if(Array.isArray(a)&&!a[0])throw new Error};return jsxRuntime.jsx(Field$1,{required:t,type:"array",validator:o,...e,children:jsxRuntime.jsx(Many2oneInput,{ooui:n})})},Many2oneInput=e=>{const{value:n,onChange:t,ooui:o}=e,{required:r,relation:a,readOnly:s,context:l,id:c,domain:u}=o,d=r&&!s?Config.requiredClass:void 0,[f,m]=React.useState(!1),[p,g]=React.useState(!1),[v,C]=React.useState(!1),[I,h]=React.useState(),y=React.useRef(!1),[x,w]=React.useState(""),O=React.useRef(),F=React.useContext(FormContext$1),{domain:b,getValues:S,getFields:T,getContext:k,setOriginalValue:L,elementHasLostFocus:D}=F||{},P=React.useRef([]),[M,q]=React.useState([]),U=n&&n[0]||void 0,B=n&&n[1]||"";React.useEffect(()=>{!Array.isArray(n)&&n&&K(n)},[n]),React.useEffect(()=>{U&&B.length===0?K(U):U&&B.length>0?w(B):!U&&!B&&w(O.current||"")},[n]);const V=A=>{t==null||t(A),D==null||D()},G=A=>{O.current=A.target.value,V([void 0,""])},Y=async()=>{if(!v&&x!==B){if(await new Promise(A=>setTimeout(A,100)),y.current){V([void 0,""]);return}C(!0);try{if(P.current&&P.current.length>0)H(O.current);else{const A=await ConnectionProvider.getHandler().nameSearch({model:a,payload:O.current,context:{...k==null?void 0:k(),...l}});A.length===1?(O.current=void 0,V(A[0])):H(O.current)}}catch(A){showDialog$3(A)}finally{C(!1)}}},H=async A=>{if(await N(),P.current&&P.current.length>0){const $=await ConnectionProvider.getHandler().searchAllIds({params:P.current,model:a,context:{...k==null?void 0:k(),...l},totalItems:2});$.length===1?K($[0],!0):(h(A),m(!0));return}h(A),m(!0)},K=async(A,$)=>{C(!0);try{const Z=await ConnectionProvider.getHandler().execute({action:"name_get",payload:[A],model:a,context:{...k==null?void 0:k(),...l}});V([A,Z[0][1]]),$&&L(o.id,[A,Z[0][1]])}catch(Z){showDialog$3(Z)}finally{C(!1)}};async function N(){u&&(P.current=await ConnectionProvider.getHandler().evalDomain({domain:u,values:transformPlainMany2Ones({fields:T(),values:S()}),context:k()})),b&&b.length>0&&(P.current=P.current.concat(ooui.transformDomainForChildWidget({domain:b,widgetFieldName:c}))),q(P.current)}async function W(A){A.code==="Enter"?(A.preventDefault(),A.stopPropagation(),await Y()):A.code==="Backspace"&&U!==void 0&&(A.preventDefault(),A.stopPropagation(),V([void 0,""]))}const j=r&&!s?RequiredInput:antd.Input;return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(j,{type:"text",value:x,disabled:s,onChange:G,className:d,onBlur:Y,onKeyDown:W,suffix:jsxRuntime.jsx(Many2oneSuffix,{id:U,model:a,context:{...k==null?void 0:k(),...l}})})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:U===void 0||B===""||x===void 0,onClick:()=>{g(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:v?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:s||v,onClick:()=>{y.current=!0,H(B)},tabIndex:-1})}),jsxRuntime.jsx(SearchModal,{model:a,domain:M,context:{...k==null?void 0:k(),...l},visible:f,nameSearch:U?void 0:I,onSelectValues:A=>{m(!1),K(A[0]),y.current=!1,O.current=void 0},onCloseModal:()=>{m(!1),y.current=!1}}),jsxRuntime.jsx(FormModal,{model:a,parentContext:{...k==null?void 0:k(),...l},id:n&&n[0],visible:p,onSubmitSucceed:A=>{g(!1),K(A)},onCancel:()=>{g(!1)},mustClearAfterSave:!0,readOnly:s})]})},RequiredInput=styled__default.default(antd.Input)`
115
+ `,booleanComponentFn=e=>jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",alignContent:"center"},children:jsxRuntime.jsx(antd.Checkbox,{checked:e,disabled:!0})}),many2OneComponentFn=e=>e?jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.value}),jsxRuntime.jsx(Many2oneSuffix,{id:e.id,model:e.model})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{}),textComponentFn=e=>jsxRuntime.jsx("div",{style:{whiteSpace:"pre-line"},children:e}),one2ManyComponentFn=e=>{const n=Array.isArray(e==null?void 0:e.items)?e==null?void 0:e.items.length:0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`( ${n} )`})},progressBarComponentFn=e=>jsxRuntime.jsx(ProgressBarInput,{value:e}),floatTimeComponent=e=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:parseFloatToString(e)}),numberComponent=e=>jsxRuntime.jsx("div",{style:{textAlign:"right"},children:e}),imageComponent=e=>jsxRuntime.jsx("img",{src:`data:image/*;base64,${e}`,style:{maxWidth:"50px",padding:"5px"}});function Tree(e){const{page:n=1,limit:t,total:o,treeView:r,results:a,onRequestPageChange:s,loading:l,onRowClicked:c,showPagination:u=!0,rowSelection:d,scrollY:f,colorsForResults:m={},onChangeSort:p,sorter:h,onFetchChildrenForRecord:v,childField:C}=e,[I,g]=React.useState([]),[y,x]=React.useState([]),w=React.useRef(!1),O=React.useRef(null),{t:F}=React.useContext(LocaleContext);React.useEffect(()=>{O.current=getTree(r);const j=getTableColumns(O.current,{boolean:booleanComponentFn,many2one:many2OneComponentFn,text:textComponentFn,one2many:one2ManyComponentFn,many2many:one2ManyComponentFn,progressbar:progressBarComponentFn,float_time:floatTimeComponent,image:imageComponent,integer:numberComponent,float:numberComponent});x(j)},[r]),React.useEffect(()=>{w.current=!1;const j=getTableItems(O.current,a);g(j)},[a]);const b=(n-1)*t+1,_=b-1+I.length,T=o===void 0?null:o===0?F("no_results"):F("summary").replace("{from}",b==null?void 0:b.toString()).replace("{to}",_==null?void 0:_.toString()).replace("{total}",o==null?void 0:o.toString()),k=()=>!u||r.isExpandable||l?null:o===void 0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"pb-4",children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Pagination,{total:o,pageSize:t,current:n,showSizeChanger:!1,onChange:s})}),jsxRuntime.jsx(antd.Col,{span:12,className:"text-right",children:T})]});function N(){var H;const $=O.current.columns.filter(G=>G.sum!==void 0).map(G=>({label:G.sum,field:G.id}));if(!$||$.length===0)return null;let q=[],B=((H=d==null?void 0:d.selectedRowKeys)==null?void 0:H.length)>0?I.filter(G=>d==null?void 0:d.selectedRowKeys.includes(G.id)):I;return $.forEach(G=>{const Y=B.reduce((W,Z)=>Z[G.field]&&!isNaN(Z[G.field])?W+Z[G.field]:W,0);q.push(`${G.label}: ${Math.round(Y*100)/100}`)}),jsxRuntime.jsx("div",{className:"p-1 pb-0 pl-2 mt-2 bg-gray-50",children:q.join(", ")})}let D,P=f;if(O.current!==null){D=calculateColumnsWidth(y,I,600);const $=O.current;f&&$.columns.some(q=>q.sum!==void 0)&&(P=f-30)}return O.current===null?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):jsxRuntime.jsxs("div",{children:[k(),jsxRuntime.jsx(reactFormigaTable.Table,{height:P,columns:D.columns,dataSource:I,loading:l,loadingComponent:jsxRuntime.jsx(antd.Spin,{}),onRowStyle:j=>{if(m[j.id])return{color:m[j.id]}},onRowDoubleClick:c,onRowSelectionChange:d==null?void 0:d.onChange,onChangeSort:p,sorter:h,expandableOpts:v?{expandIcon:Icon.PlusSquareOutlined,collapseIcon:Icon.MinusSquareOutlined,loadingIcon:Icon.LoadingOutlined,onFetchChildrenForRecord:v,childField:C}:void 0}),N()]})}const DEFAULT_SEARCH_LIMIT$1=80;function SearchTree(e,n){const{model:t,formView:o,treeView:r,onRowClicked:a,nameSearch:s,treeScrollY:l,domain:c=[],visible:u=!0,rootTree:d=!1,parentContext:f={},onChangeSelectedRowKeys:m,limit:p}=e,[h,v]=React.useState(!1),[C,I]=React.useState(!1),g=React.useRef(!1),y=React.useRef(p||DEFAULT_SEARCH_LIMIT$1),[x,w]=React.useState(),[O,F]=React.useState(),[b,_]=React.useState(),[T,k]=React.useState(1),[N,D]=React.useState(0),[P,j]=React.useState(p||DEFAULT_SEARCH_LIMIT$1),$=React.useRef([]),[q,B]=React.useState(),[H,G]=React.useState([]),[Y,W]=React.useState(void 0),[Z,L]=React.useState(!1),[V,M]=React.useState(),[A,U]=React.useState(),[K,Q]=React.useState(!1),E=React.useRef([]),[S,z]=React.useState(200),X=React.useRef([]),ne=React.useRef(),{height:ee}=useWindowDimensions(),re=React.useContext(ActionViewContext),{setResults:ae=void 0,setCurrentItemIndex:ie=void 0,currentId:ce=void 0,results:pe=void 0,selectedRowItems:ge=void 0,setSelectedRowItems:Re=void 0,setSearchParams:Ie=void 0,searchVisible:Fe=!0,setSearchVisible:ve=void 0,sorter:Se=void 0,setSorter:xe=void 0,setTotalItems:Ee=void 0,setSearchTreeNameSearch:_e=void 0,setTreeIsLoading:oe=void 0}=(d?re:{})||{},le=React.useContext(ContentRootContext),{processAction:he}=le||{};React.useImperativeHandle(n,()=>({refreshResults:()=>{g.current=!1,De()}}));const se=de=>{Q(!0),k(de),D((de-1)*P)};function me(de){ae==null||ae([...de]),G([...de])}const ye=React.useCallback(()=>pe||H,[pe,H]),be=async()=>{const de=await ConnectionProvider.getHandler().nameSearch({model:x,payload:s,limit:y.current,attrs:E.current.length>0?E.current:c,context:f});if(B(de.length),Ee==null||Ee(de.length),de.length>0){const Ce=de.map(J=>J==null?void 0:J[0]),{colors:Oe}=getTree(O),je=await ConnectionProvider.getHandler().readEvalUiObjects({model:x,ids:Ce,arch:O==null?void 0:O.arch,fields:O.field_parent?{...O.fields,[O.field_parent]:{}}:O.fields,context:f,attrs:Oe&&{colors:Oe}}),Ae=je[0];X.current=[...Ae],W(getColorMap(je[1]));const Ue=Ae.map(J=>J.id),Be=Se!==void 0?sortResults({resultsToSort:Ae,sorter:Se,fields:{...O.fields,...b.fields}}):[...X.current];me(Be),Ue.length>0?ie==null||ie(0):ie==null||ie(void 0)}else me([]),ie==null||ie(void 0);g.current=!0},Te=de=>{const Ce={};return de.forEach(Oe=>{Array.isArray(Oe)&&Oe[0]?Ce[Oe[0]]=!0:Ce[Oe]=!0}),Object.keys(Ce)},Pe=(de,Ce)=>{const Oe=de,je=Te(de);return Ce.forEach(Ae=>{Array.isArray(Ae)&&Ae[0]?je.includes(Ae[0])||Oe.push(Ae):je.includes(Ae)||Oe.push(Ae)}),Oe},ke=async()=>{const de=E.current.length>0?E.current:c,Ce=Pe($.current,de),{colors:Oe}=getTree(O),{totalItems:je,results:Ae,attrsEvaluated:Ue}=await ConnectionProvider.getHandler().searchForTree({params:Ce,limit:P,offset:N,model:x,fields:O.field_parent?{...O.fields,[O.field_parent]:{}}:O.fields,context:f,attrs:Oe&&{colors:Oe}});W(getColorMap(Ue)),X.current=[...Ae];const Be=Se!==void 0?sortResults({resultsToSort:Ae,sorter:Se,fields:{...O.fields,...b.fields}}):[...X.current];if(je.then(J=>{B(J),Ee==null||Ee(J)}),me(Be),pe&&Be.length>0){const J=Be.findIndex(te=>ce===te.id);J===-1?ie==null||ie(0):ie==null||ie(J)}else ie==null||ie(void 0)},De=async()=>{try{Q(!0),oe==null||oe(!0),s&&!g.current?await be():await ke()}catch(de){M(de)}finally{Q(!1),L(!1),oe==null||oe(!1)}};async function Me(de){const Ce=de[(O==null?void 0:O.field_parent)||"child_id"],Oe=await ConnectionProvider.getHandler().readObjects({model:x,ids:Ce,fields:O.field_parent?{...O.fields,[O.field_parent]:{}}:O.fields,context:f});return me([...ye(),...Oe]),getTableItems(getTree(O),Oe)}React.useEffect(()=>{!C||u&&(g.current=!1,De())},[T,P,N,C,u,s]);const Ve=async()=>{I(!1),v(!0),U(void 0),oe==null||oe(!0);try{await He(),I(!0)}catch(de){U(de)}finally{v(!1),oe==null||oe(!1)}},He=async()=>{w(t);let de=o;o||(de=await ConnectionProvider.getHandler().getView({model:t,type:"form",context:f}));let Ce=r;r||(Ce=await ConnectionProvider.getHandler().getView({model:t,type:"tree",context:f})),_(de),F(Ce),j(p||DEFAULT_SEARCH_LIMIT$1)};React.useEffect(()=>{Ve()},[t]);const We=()=>{K||(_e==null||_e(void 0),$.current=[],Ie==null||Ie([]),M(void 0),D(0),k(1),j(p||DEFAULT_SEARCH_LIMIT$1))},Ne=({params:de,limit:Ce,offset:Oe})=>{K||($.current=de,_e==null||_e(void 0),Re==null||Re([]),Ie==null||Ie(de),ve==null||ve(!1),L(!0),M(void 0),k(1),Ce&&j(Ce),Oe&&D(Oe),De())},$e=de=>{y.current=de},qe=async de=>{const{id:Ce}=de;ne.current||(ne.current=await ConnectionProvider.getHandler().treeButOpen({id:O.view_id,model:x,context:f}));const Oe=ne.current[0][2];await(he==null?void 0:he({actionData:Oe,fields:O.fields,values:{active_id:Ce,...de},context:f}))},ze=async de=>{const{id:Ce}=de;if(O!=null&&O.isExpandable){try{await qe(de)}catch(Oe){showDialog$8(Oe)}return}a({id:Ce,model:x,formView:b,treeView:O})};function Ge(de){const Ce=ye().filter(Oe=>de.includes(Oe.id));Re==null||Re(Ce),m==null||m(de)}function Ye(){return O!=null&&O.isExpandable?ee-160:ee-(S+210)}const Ke=()=>!O||!b?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:de=>{var Ce;z((Ce=de.bounds)==null?void 0:Ce.height)},children:({measureRef:de})=>jsxRuntime.jsx("div",{ref:de,children:jsxRuntime.jsxs("div",{style:{display:Fe?"block":"none"},children:[jsxRuntime.jsx(SearchFilter,{fields:{...O.fields,...b.fields},searchFields:mergeSearchFields([b.search_fields,O.search_fields]),onClear:We,limit:P,offset:N,isSearching:Z,onSubmit:Ne,onLimitChange:$e}),V&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:V,type:"error",banner:!0}),jsxRuntime.jsx("div",{className:"pb-5"})]})})}),jsxRuntime.jsx(Tree,{total:q,limit:P,page:T,treeView:O,results:ye(),onRequestPageChange:se,loading:K,onRowClicked:ze,scrollY:l||Ye(),colorsForResults:Y,rowSelection:{selectedRowKeys:ge==null?void 0:ge.map(de=>de.id),onChange:Ge},sorter:Se,onChangeSort:de=>{xe==null||xe(de);const Ce=de!==void 0?sortResults({resultsToSort:ye(),sorter:de,fields:{...O.fields,...b.fields}}):[...X.current];me(Ce)},onFetchChildrenForRecord:O.isExpandable?Me:void 0,childField:O.field_parent})]});return A?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:A,type:"error",banner:!0}):jsxRuntime.jsx("div",{style:u?{}:{display:"none"},children:h?jsxRuntime.jsx(antd.Spin,{}):Ke()})}const SearchTree$1=React.forwardRef(SearchTree),SearchModal=e=>{const{visible:n,onCloseModal:t,onSelectValues:o,model:r,nameSearch:a,domain:s,context:l={}}=e,[c,u]=React.useState(!1),{modalWidth:d,modalHeight:f}=useWindowDimensions(),{t:m}=React.useContext(LocaleContext),[p,h]=React.useState([]),v=async()=>{await new Promise(y=>setTimeout(y,5)),t()},C=async y=>{const{id:x}=y;o([x])};function I(){if(p.length===0){v();return}o(p)}const g=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchTree$1,{model:r,nameSearch:a,onRowClicked:C,treeScrollY:f*.3,domain:s,parentContext:l,onChangeSelectedRowKeys:y=>{h(y)}}),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),onClick:()=>{u(!0)},children:m("new")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{I()},type:"primary",children:m("ok")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:v,children:m("cancel")})]})})]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Modal,{title:m("search"),centered:!0,width:d,visible:n&&!c,closable:!0,onCancel:v,footer:null,destroyOnClose:!0,maskClosable:!1,children:g()}),jsxRuntime.jsx(FormModal,{model:r,visible:c,parentContext:l,onSubmitSucceed:y=>{u(!1),v(),o([y])},onCancel:()=>{u(!1),v()}})]})},{error}=antd.Modal,showDialog$3=e=>{error({title:"Error",icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:e})},Many2one=e=>{const{ooui:n}=e,{required:t}=n,o=async(r,a)=>{if(!a)throw new Error;if(!Array.isArray(a))throw new Error;if(Array.isArray(a)&&!a[0])throw new Error};return jsxRuntime.jsx(Field$1,{required:t,type:"array",validator:o,...e,children:jsxRuntime.jsx(Many2oneInput,{ooui:n})})},Many2oneInput=e=>{const{value:n,onChange:t,ooui:o}=e,{required:r,relation:a,readOnly:s,context:l,id:c,domain:u}=o,d=r&&!s?Config.requiredClass:void 0,[f,m]=React.useState(!1),[p,h]=React.useState(!1),[v,C]=React.useState(!1),[I,g]=React.useState(),y=React.useRef(!1),[x,w]=React.useState(""),O=React.useRef(),F=React.useContext(FormContext$1),{domain:b,getValues:_,getFields:T,getContext:k,setOriginalValue:N,elementHasLostFocus:D}=F||{},P=React.useRef([]),[j,$]=React.useState([]),q=n&&n[0]||void 0,B=n&&n[1]||"";React.useEffect(()=>{!Array.isArray(n)&&n&&Z(n)},[n]),React.useEffect(()=>{q&&B.length===0?Z(q):q&&B.length>0?w(B):!q&&!B&&w(O.current||"")},[n]);const H=A=>{t==null||t(A),D==null||D()},G=A=>{O.current=A.target.value,H([void 0,""])},Y=async()=>{if(!v&&x!==B){if(await new Promise(A=>setTimeout(A,100)),y.current){H([void 0,""]);return}C(!0);try{if(P.current&&P.current.length>0)W(O.current);else{const A=await ConnectionProvider.getHandler().nameSearch({model:a,payload:O.current,context:{...k==null?void 0:k(),...l}});A.length===1?(O.current=void 0,H(A[0])):W(O.current)}}catch(A){showDialog$3(A)}finally{C(!1)}}},W=async A=>{if(await L(),P.current&&P.current.length>0){const U=await ConnectionProvider.getHandler().searchAllIds({params:P.current,model:a,context:{...k==null?void 0:k(),...l},totalItems:2});U.length===1?Z(U[0],!0):(g(A),m(!0));return}g(A),m(!0)},Z=async(A,U)=>{C(!0);try{const K=await ConnectionProvider.getHandler().execute({action:"name_get",payload:[A],model:a,context:{...k==null?void 0:k(),...l}});H([A,K[0][1]]),U&&N(o.id,[A,K[0][1]])}catch(K){showDialog$3(K)}finally{C(!1)}};async function L(){u&&(P.current=await ConnectionProvider.getHandler().evalDomain({domain:u,values:transformPlainMany2Ones({fields:T(),values:_()}),context:k()})),b&&b.length>0&&(P.current=P.current.concat(ooui.transformDomainForChildWidget({domain:b,widgetFieldName:c}))),$(P.current)}async function V(A){A.code==="Enter"?(A.preventDefault(),A.stopPropagation(),await Y()):A.code==="Backspace"&&q!==void 0&&(A.preventDefault(),A.stopPropagation(),H([void 0,""]))}const M=r&&!s?RequiredInput:antd.Input;return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(M,{type:"text",value:x,disabled:s,onChange:G,className:d,onBlur:Y,onKeyDown:V,suffix:jsxRuntime.jsx(Many2oneSuffix,{id:q,model:a,context:{...k==null?void 0:k(),...l}})})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:q===void 0||B===""||x===void 0,onClick:()=>{h(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:v?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:s||v,onClick:()=>{y.current=!0,W(B)},tabIndex:-1})}),jsxRuntime.jsx(SearchModal,{model:a,domain:j,context:{...k==null?void 0:k(),...l},visible:f,nameSearch:q?void 0:I,onSelectValues:A=>{m(!1),Z(A[0]),y.current=!1,O.current=void 0},onCloseModal:()=>{m(!1),y.current=!1}}),jsxRuntime.jsx(FormModal,{model:a,parentContext:{...k==null?void 0:k(),...l},id:n&&n[0],visible:p,onSubmitSucceed:A=>{h(!1),Z(A)},onCancel:()=>{h(!1)},mustClearAfterSave:!0,readOnly:s})]})},RequiredInput=styled__default.default(antd.Input)`
116
116
  .ant-input {
117
117
  background-color: ${Config.requiredColor};
118
118
  }
119
- `,One2manyContext=React__default.default.createContext(null),One2manyProvider=({children:e,initialView:n})=>{const[t,o]=React.useState(n),[r,a]=React.useState(0),[s,l]=React.useState(!1);return jsxRuntime.jsx(One2manyContext.Provider,{value:{currentView:t,setCurrentView:o,itemIndex:r,setItemIndex:a,manualTriggerChange:s,setManualTriggerChange:l},children:e})};var Title$3={},Base={},toArray$1={},hasRequiredToArray;function requireToArray(){if(hasRequiredToArray)return toArray$1;hasRequiredToArray=1;var e=interopRequireDefault.exports;Object.defineProperty(toArray$1,"__esModule",{value:!0}),toArray$1.default=o;var n=e(React__default.default),t=requireReactIs();function o(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=[];return n.default.Children.forEach(r,function(l){l==null&&!a.keepEmpty||(Array.isArray(l)?s=s.concat(o(l)):(0,t.isFragment)(l)&&l.props?s=s.concat(o(l.props.children,a)):s.push(l))}),s}return toArray$1}var toggleSelection,hasRequiredToggleSelection;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],o=0;o<e.rangeCount;o++)t.push(e.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(r){e.addRange(r)}),n&&n.focus()}}),toggleSelection}var copyToClipboard,hasRequiredCopyToClipboard;function requireCopyToClipboard(){if(hasRequiredCopyToClipboard)return copyToClipboard;hasRequiredCopyToClipboard=1;var e=requireToggleSelection(),n={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function o(a){var s=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,s)}function r(a,s){var l,c,u,d,f,m,p=!1;s||(s={}),l=s.debug||!1;try{u=e(),d=document.createRange(),f=document.getSelection(),m=document.createElement("span"),m.textContent=a,m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(v){if(v.stopPropagation(),s.format)if(v.preventDefault(),typeof v.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var C=n[s.format]||n.default;window.clipboardData.setData(C,a)}else v.clipboardData.clearData(),v.clipboardData.setData(s.format,a);s.onCopy&&(v.preventDefault(),s.onCopy(v.clipboardData))}),document.body.appendChild(m),d.selectNodeContents(m),f.addRange(d);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!0}catch(v){l&&console.error("unable to copy using execCommand: ",v),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",a),s.onCopy&&s.onCopy(window.clipboardData),p=!0}catch(C){l&&console.error("unable to copy using clipboardData: ",C),l&&console.error("falling back to prompt"),c=o("message"in s?s.message:t),window.prompt(c,a)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),m&&document.body.removeChild(m),u()}return p}return copyToClipboard=r,copyToClipboard}var EditOutlined$2={exports:{}},EditOutlined$1={},EditOutlined={},hasRequiredEditOutlined$2;function requireEditOutlined$2(){if(hasRequiredEditOutlined$2)return EditOutlined;hasRequiredEditOutlined$2=1,Object.defineProperty(EditOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};return EditOutlined.default=e,EditOutlined}var hasRequiredEditOutlined$1;function requireEditOutlined$1(){if(hasRequiredEditOutlined$1)return EditOutlined$1;hasRequiredEditOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(EditOutlined$1,"__esModule",{value:!0}),EditOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireEditOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="EditOutlined";var l=o.forwardRef(s);return EditOutlined$1.default=l,EditOutlined$1}var hasRequiredEditOutlined;function requireEditOutlined(){return hasRequiredEditOutlined||(hasRequiredEditOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireEditOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(EditOutlined$2,EditOutlined$2.exports)),EditOutlined$2.exports}var CheckOutlined$2={exports:{}},CheckOutlined$1={},CheckOutlined={},hasRequiredCheckOutlined$2;function requireCheckOutlined$2(){if(hasRequiredCheckOutlined$2)return CheckOutlined;hasRequiredCheckOutlined$2=1,Object.defineProperty(CheckOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return CheckOutlined.default=e,CheckOutlined}var hasRequiredCheckOutlined$1;function requireCheckOutlined$1(){if(hasRequiredCheckOutlined$1)return CheckOutlined$1;hasRequiredCheckOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CheckOutlined$1,"__esModule",{value:!0}),CheckOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCheckOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CheckOutlined";var l=o.forwardRef(s);return CheckOutlined$1.default=l,CheckOutlined$1}var hasRequiredCheckOutlined;function requireCheckOutlined(){return hasRequiredCheckOutlined||(hasRequiredCheckOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCheckOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CheckOutlined$2,CheckOutlined$2.exports)),CheckOutlined$2.exports}var CopyOutlined$2={exports:{}},CopyOutlined$1={},CopyOutlined={},hasRequiredCopyOutlined$2;function requireCopyOutlined$2(){if(hasRequiredCopyOutlined$2)return CopyOutlined;hasRequiredCopyOutlined$2=1,Object.defineProperty(CopyOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return CopyOutlined.default=e,CopyOutlined}var hasRequiredCopyOutlined$1;function requireCopyOutlined$1(){if(hasRequiredCopyOutlined$1)return CopyOutlined$1;hasRequiredCopyOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CopyOutlined$1,"__esModule",{value:!0}),CopyOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCopyOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CopyOutlined";var l=o.forwardRef(s);return CopyOutlined$1.default=l,CopyOutlined$1}var hasRequiredCopyOutlined;function requireCopyOutlined(){return hasRequiredCopyOutlined||(hasRequiredCopyOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCopyOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CopyOutlined$2,CopyOutlined$2.exports)),CopyOutlined$2.exports}const require$$18=getAugmentedNamespace(es$4);var transButton={},KeyCode={},hasRequiredKeyCode;function requireKeyCode(){if(hasRequiredKeyCode)return KeyCode;hasRequiredKeyCode=1,Object.defineProperty(KeyCode,"__esModule",{value:!0}),KeyCode.default=void 0;var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(o){var r=o.keyCode;if(o.altKey&&!o.ctrlKey||o.metaKey||r>=e.F1&&r<=e.F12)return!1;switch(r){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(o){if(o>=e.ZERO&&o<=e.NINE||o>=e.NUM_ZERO&&o<=e.NUM_MULTIPLY||o>=e.A&&o<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&o===0)return!0;switch(o){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},n=e;return KeyCode.default=n,KeyCode}var hasRequiredTransButton;function requireTransButton(){return hasRequiredTransButton||(hasRequiredTransButton=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=n(React__default.default),a=t(requireKeyCode()),s=function(d,f){var m={};for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&f.indexOf(p)<0&&(m[p]=d[p]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,p=Object.getOwnPropertySymbols(d);g<p.length;g++)f.indexOf(p[g])<0&&Object.prototype.propertyIsEnumerable.call(d,p[g])&&(m[p[g]]=d[p[g]]);return m},l={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},c=r.forwardRef(function(d,f){var m=function(x){var w=x.keyCode;w===a.default.ENTER&&x.preventDefault()},p=function(x){var w=x.keyCode,O=d.onClick;w===a.default.ENTER&&O&&O()},g=d.style,v=d.noStyle,C=d.disabled,I=s(d,["style","noStyle","disabled"]),h={};return v||(h=(0,o.default)({},l)),C&&(h.pointerEvents="none"),h=(0,o.default)((0,o.default)({},h),g),r.createElement("div",(0,o.default)({role:"button",tabIndex:0,ref:f},I,{onKeyDown:m,onKeyUp:p,style:h}))}),u=c;e.default=u}(transButton)),transButton}var raf$1={},raf={},hasRequiredRaf$1;function requireRaf$1(){if(hasRequiredRaf$1)return raf;hasRequiredRaf$1=1,Object.defineProperty(raf,"__esModule",{value:!0}),raf.default=t;var e=function(r){return+setTimeout(r,16)},n=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(r){return window.requestAnimationFrame(r)},n=function(r){return window.cancelAnimationFrame(r)});function t(o){return e(o)}return t.cancel=n,raf}var hasRequiredRaf;function requireRaf(){return hasRequiredRaf||(hasRequiredRaf=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=n(requireRaf$1()),o=0,r={};function a(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,c=o++,u=l;function d(){u-=1,u<=0?(s(),delete r[c]):r[c]=(0,t.default)(d)}return r[c]=(0,t.default)(d),c}a.cancel=function(l){l!==void 0&&(t.default.cancel(r[l]),delete r[l])},a.ids=r}(raf$1)),raf$1}var styleChecker={},canUseDom={},hasRequiredCanUseDom;function requireCanUseDom(){if(hasRequiredCanUseDom)return canUseDom;hasRequiredCanUseDom=1,Object.defineProperty(canUseDom,"__esModule",{value:!0}),canUseDom.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom}var hasRequiredStyleChecker;function requireStyleChecker(){if(hasRequiredStyleChecker)return styleChecker;hasRequiredStyleChecker=1;var e=interopRequireDefault.exports;Object.defineProperty(styleChecker,"__esModule",{value:!0}),styleChecker.detectFlexGapSupported=styleChecker.isStyleSupport=styleChecker.canUseDocElement=void 0;var n=e(requireCanUseDom()),t=function(){return(0,n.default)()&&window.document.documentElement};styleChecker.canUseDocElement=t;var o=function(l){if(t()){var c=Array.isArray(l)?l:[l],u=window.document.documentElement;return c.some(function(d){return d in u.style})}return!1};styleChecker.isStyleSupport=o;var r,a=function(){if(!t())return!1;if(r!==void 0)return r;var l=document.createElement("div");return l.style.display="flex",l.style.flexDirection="column",l.style.rowGap="1px",l.appendChild(document.createElement("div")),l.appendChild(document.createElement("div")),document.body.appendChild(l),r=l.scrollHeight===1,document.body.removeChild(l),r};return styleChecker.detectFlexGapSupported=a,styleChecker}var tooltip={};function contains(e,n){return e?e.contains(n):!1}function addEventListenerWrap(e,n,t,o){var r=ReactDOM__default.default.unstable_batchedUpdates?function(s){ReactDOM__default.default.unstable_batchedUpdates(t,s)}:t;return e.addEventListener&&e.addEventListener(n,r,o),{remove:function(){e.removeEventListener&&e.removeEventListener(n,r)}}}var Portal=React.forwardRef(function(e,n){var t=e.didUpdate,o=e.getContainer,r=e.children,a=React.useRef();React.useImperativeHandle(n,function(){return{}});var s=React.useRef(!1);return!s.current&&canUseDom$1()&&(a.current=o(),s.current=!0),React.useEffect(function(){t==null||t(e)}),React.useEffect(function(){return function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current)}},[]),a.current?ReactDOM__default.default.createPortal(r,a.current):null});function isPointsEq(e,n,t){return t?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function getAlignFromPlacement(e,n,t){var o=e[n]||{};return _objectSpread2$1(_objectSpread2$1({},o),t)}function getAlignPopupClassName(e,n,t,o){for(var r=t.points,a=Object.keys(e),s=0;s<a.length;s+=1){var l=a[s];if(isPointsEq(e[l].points,r,o))return"".concat(n,"-placement-").concat(l)}return""}const isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))};function getMotion(e){var n=e.prefixCls,t=e.motion,o=e.animation,r=e.transitionName;return t||(o?{motionName:"".concat(n,"-").concat(o)}:r?{motionName:r}:null)}function Mask(e){var n=e.prefixCls,t=e.visible,o=e.zIndex,r=e.mask,a=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!r)return null;var c={};return(a||l||s)&&(c=_objectSpread2$1({motionAppear:!0},getMotion({motion:a,prefixCls:n,transitionName:l,animation:s}))),jsxRuntime.jsx(CSSMotion,{...c,visible:t,removeOnLeave:!0,children:function(u){var d=u.className;return jsxRuntime.jsx("div",{style:{zIndex:o},className:classnamesExports("".concat(n,"-mask"),d)})}})}const isVisible=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var n=e.getBBox();if(n.width||n.height)return!0}if(e.getBoundingClientRect){var t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function _typeof(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}function _defineProperty(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(t,!0).forEach(function(o){_defineProperty(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(t).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}var vendorPrefix,jsCssMap={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function getVendorPrefix(){if(vendorPrefix!==void 0)return vendorPrefix;vendorPrefix="";var e=document.createElement("p").style,n="Transform";for(var t in jsCssMap)t+n in e&&(vendorPrefix=t);return vendorPrefix}function getTransitionName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"TransitionProperty"):"transitionProperty"}function getTransformName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"Transform"):"transform"}function setTransitionProperty(e,n){var t=getTransitionName();t&&(e.style[t]=n,t!=="transitionProperty"&&(e.style.transitionProperty=n))}function setTransform(e,n){var t=getTransformName();t&&(e.style[t]=n,t!=="transform"&&(e.style.transform=n))}function getTransitionProperty(e){return e.style.transitionProperty||e.style[getTransitionName()]}function getTransformXY(e){var n=window.getComputedStyle(e,null),t=n.getPropertyValue("transform")||n.getPropertyValue(getTransformName());if(t&&t!=="none"){var o=t.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}var matrix2d=/matrix\((.*)\)/,matrix3d=/matrix3d\((.*)\)/;function setTransformXY(e,n){var t=window.getComputedStyle(e,null),o=t.getPropertyValue("transform")||t.getPropertyValue(getTransformName());if(o&&o!=="none"){var r,a=o.match(matrix2d);if(a)a=a[1],r=a.split(",").map(function(l){return parseFloat(l,10)}),r[4]=n.x,r[5]=n.y,setTransform(e,"matrix(".concat(r.join(","),")"));else{var s=o.match(matrix3d)[1];r=s.split(",").map(function(l){return parseFloat(l,10)}),r[12]=n.x,r[13]=n.y,setTransform(e,"matrix3d(".concat(r.join(","),")"))}}else setTransform(e,"translateX(".concat(n.x,"px) translateY(").concat(n.y,"px) translateZ(0)"))}var RE_NUM=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,getComputedStyleX;function forceRelayout(e){var n=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=n}function css(e,n,t){var o=t;if(_typeof(n)==="object"){for(var r in n)n.hasOwnProperty(r)&&css(e,r,n[r]);return}if(typeof o<"u"){typeof o=="number"&&(o="".concat(o,"px")),e.style[n]=o;return}return getComputedStyleX(e,n)}function getClientPosition(e){var n,t,o,r=e.ownerDocument,a=r.body,s=r&&r.documentElement;return n=e.getBoundingClientRect(),t=n.left,o=n.top,t-=s.clientLeft||a.clientLeft||0,o-=s.clientTop||a.clientTop||0,{left:t,top:o}}function getScroll(e,n){var t=e["page".concat(n?"Y":"X","Offset")],o="scroll".concat(n?"Top":"Left");if(typeof t!="number"){var r=e.document;t=r.documentElement[o],typeof t!="number"&&(t=r.body[o])}return t}function getScrollLeft(e){return getScroll(e)}function getScrollTop(e){return getScroll(e,!0)}function getOffset(e){var n=getClientPosition(e),t=e.ownerDocument,o=t.defaultView||t.parentWindow;return n.left+=getScrollLeft(o),n.top+=getScrollTop(o),n}function isWindow(e){return e!=null&&e==e.window}function getDocument(e){return isWindow(e)?e.document:e.nodeType===9?e:e.ownerDocument}function _getComputedStyle(e,n,t){var o=t,r="",a=getDocument(e);return o=o||a.defaultView.getComputedStyle(e,null),o&&(r=o.getPropertyValue(n)||o[n]),r}var _RE_NUM_NO_PX=new RegExp("^(".concat(RE_NUM,")(?!px)[a-z%]+$"),"i"),RE_POS=/^(top|right|bottom|left)$/,CURRENT_STYLE="currentStyle",RUNTIME_STYLE="runtimeStyle",LEFT="left",PX="px";function _getComputedStyleIE(e,n){var t=e[CURRENT_STYLE]&&e[CURRENT_STYLE][n];if(_RE_NUM_NO_PX.test(t)&&!RE_POS.test(n)){var o=e.style,r=o[LEFT],a=e[RUNTIME_STYLE][LEFT];e[RUNTIME_STYLE][LEFT]=e[CURRENT_STYLE][LEFT],o[LEFT]=n==="fontSize"?"1em":t||0,t=o.pixelLeft+PX,o[LEFT]=r,e[RUNTIME_STYLE][LEFT]=a}return t===""?"auto":t}typeof window<"u"&&(getComputedStyleX=window.getComputedStyle?_getComputedStyle:_getComputedStyleIE);function getOffsetDirection(e,n){return e==="left"?n.useCssRight?"right":e:n.useCssBottom?"bottom":e}function oppositeOffsetDirection(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function setLeftTop(e,n,t){css(e,"position")==="static"&&(e.style.position="relative");var o=-999,r=-999,a=getOffsetDirection("left",t),s=getOffsetDirection("top",t),l=oppositeOffsetDirection(a),c=oppositeOffsetDirection(s);a!=="left"&&(o=999),s!=="top"&&(r=999);var u="",d=getOffset(e);("left"in n||"top"in n)&&(u=getTransitionProperty(e)||"",setTransitionProperty(e,"none")),"left"in n&&(e.style[l]="",e.style[a]="".concat(o,"px")),"top"in n&&(e.style[c]="",e.style[s]="".concat(r,"px")),forceRelayout(e);var f=getOffset(e),m={};for(var p in n)if(n.hasOwnProperty(p)){var g=getOffsetDirection(p,t),v=p==="left"?o:r,C=d[p]-f[p];g===p?m[g]=v+C:m[g]=v-C}css(e,m),forceRelayout(e),("left"in n||"top"in n)&&setTransitionProperty(e,u);var I={};for(var h in n)if(n.hasOwnProperty(h)){var y=getOffsetDirection(h,t),x=n[h]-d[h];h===y?I[y]=m[y]+x:I[y]=m[y]-x}css(e,I)}function setTransform$1(e,n){var t=getOffset(e),o=getTransformXY(e),r={x:o.x,y:o.y};"left"in n&&(r.x=o.x+n.left-t.left),"top"in n&&(r.y=o.y+n.top-t.top),setTransformXY(e,r)}function setOffset(e,n,t){if(t.ignoreShake){var o=getOffset(e),r=o.left.toFixed(0),a=o.top.toFixed(0),s=n.left.toFixed(0),l=n.top.toFixed(0);if(r===s&&a===l)return}t.useCssRight||t.useCssBottom?setLeftTop(e,n,t):t.useCssTransform&&getTransformName()in document.body.style?setTransform$1(e,n):setLeftTop(e,n,t)}function each(e,n){for(var t=0;t<e.length;t++)n(e[t])}function isBorderBoxFn(e){return getComputedStyleX(e,"boxSizing")==="border-box"}var BOX_MODELS=["margin","border","padding"],CONTENT_INDEX=-1,PADDING_INDEX=2,BORDER_INDEX=1,MARGIN_INDEX=0;function swap(e,n,t){var o={},r=e.style,a;for(a in n)n.hasOwnProperty(a)&&(o[a]=r[a],r[a]=n[a]);t.call(e);for(a in n)n.hasOwnProperty(a)&&(r[a]=o[a])}function getPBMWidth(e,n,t){var o=0,r,a,s;for(a=0;a<n.length;a++)if(r=n[a],r)for(s=0;s<t.length;s++){var l=void 0;r==="border"?l="".concat(r).concat(t[s],"Width"):l=r+t[s],o+=parseFloat(getComputedStyleX(e,l))||0}return o}var domUtils={getParent:function e(n){var t=n;do t.nodeType===11&&t.host?t=t.host:t=t.parentNode;while(t&&t.nodeType!==1&&t.nodeType!==9);return t}};each(["Width","Height"],function(e){domUtils["doc".concat(e)]=function(n){var t=n.document;return Math.max(t.documentElement["scroll".concat(e)],t.body["scroll".concat(e)],domUtils["viewport".concat(e)](t))},domUtils["viewport".concat(e)]=function(n){var t="client".concat(e),o=n.document,r=o.body,a=o.documentElement,s=a[t];return o.compatMode==="CSS1Compat"&&s||r&&r[t]||s}});function getWH(e,n,t){var o=t;if(isWindow(e))return n==="width"?domUtils.viewportWidth(e):domUtils.viewportHeight(e);if(e.nodeType===9)return n==="width"?domUtils.docWidth(e):domUtils.docHeight(e);var r=n==="width"?["Left","Right"]:["Top","Bottom"],a=n==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height;getComputedStyleX(e);var s=isBorderBoxFn(e),l=0;(a==null||a<=0)&&(a=void 0,l=getComputedStyleX(e,n),(l==null||Number(l)<0)&&(l=e.style[n]||0),l=parseFloat(l)||0),o===void 0&&(o=s?BORDER_INDEX:CONTENT_INDEX);var c=a!==void 0||s,u=a||l;return o===CONTENT_INDEX?c?u-getPBMWidth(e,["border","padding"],r):l:c?o===BORDER_INDEX?u:u+(o===PADDING_INDEX?-getPBMWidth(e,["border"],r):getPBMWidth(e,["margin"],r)):l+getPBMWidth(e,BOX_MODELS.slice(o),r)}var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o,r=n[0];return r.offsetWidth!==0?o=getWH.apply(void 0,n):swap(r,cssShow,function(){o=getWH.apply(void 0,n)}),o}each(["width","height"],function(e){var n=e.charAt(0).toUpperCase()+e.slice(1);domUtils["outer".concat(n)]=function(o,r){return o&&getWHIgnoreDisplay(o,e,r?MARGIN_INDEX:BORDER_INDEX)};var t=e==="width"?["Left","Right"]:["Top","Bottom"];domUtils[e]=function(o,r){var a=r;if(a!==void 0){if(o){getComputedStyleX(o);var s=isBorderBoxFn(o);return s&&(a+=getPBMWidth(o,["padding","border"],t)),css(o,e,a)}return}return o&&getWHIgnoreDisplay(o,e,CONTENT_INDEX)}});function mix(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}var utils={getWindow:function e(n){if(n&&n.document&&n.setTimeout)return n;var t=n.ownerDocument||n;return t.defaultView||t.parentWindow},getDocument,offset:function e(n,t,o){if(typeof t<"u")setOffset(n,t,o||{});else return getOffset(n)},isWindow,each,css,clone:function e(n){var t,o={};for(t in n)n.hasOwnProperty(t)&&(o[t]=n[t]);var r=n.overflow;if(r)for(t in n)n.hasOwnProperty(t)&&(o.overflow[t]=n.overflow[t]);return o},mix,getWindowScrollLeft:function e(n){return getScrollLeft(n)},getWindowScrollTop:function e(n){return getScrollTop(n)},merge:function e(){for(var n={},t=0;t<arguments.length;t++)utils.mix(n,t<0||arguments.length<=t?void 0:arguments[t]);return n},viewportWidth:0,viewportHeight:0};mix(utils,domUtils);var getParent=utils.getParent;function getOffsetParent(e){if(utils.isWindow(e)||e.nodeType===9)return null;var n=utils.getDocument(e),t=n.body,o,r=utils.css(e,"position"),a=r==="fixed"||r==="absolute";if(!a)return e.nodeName.toLowerCase()==="html"?null:getParent(e);for(o=getParent(e);o&&o!==t&&o.nodeType!==9;o=getParent(o))if(r=utils.css(o,"position"),r!=="static")return o;return null}var getParent$1=utils.getParent;function isAncestorFixed(e){if(utils.isWindow(e)||e.nodeType===9)return!1;var n=utils.getDocument(e),t=n.body,o=null;for(o=getParent$1(e);o&&o!==t;o=getParent$1(o)){var r=utils.css(o,"position");if(r==="fixed")return!0}return!1}function getVisibleRectForElement(e,n){for(var t={left:0,right:1/0,top:0,bottom:1/0},o=getOffsetParent(e),r=utils.getDocument(e),a=r.defaultView||r.parentWindow,s=r.body,l=r.documentElement;o;){if((navigator.userAgent.indexOf("MSIE")===-1||o.clientWidth!==0)&&o!==s&&o!==l&&utils.css(o,"overflow")!=="visible"){var c=utils.offset(o);c.left+=o.clientLeft,c.top+=o.clientTop,t.top=Math.max(t.top,c.top),t.right=Math.min(t.right,c.left+o.clientWidth),t.bottom=Math.min(t.bottom,c.top+o.clientHeight),t.left=Math.max(t.left,c.left)}else if(o===s||o===l)break;o=getOffsetParent(o)}var u=null;if(!utils.isWindow(e)&&e.nodeType!==9){u=e.style.position;var d=utils.css(e,"position");d==="absolute"&&(e.style.position="fixed")}var f=utils.getWindowScrollLeft(a),m=utils.getWindowScrollTop(a),p=utils.viewportWidth(a),g=utils.viewportHeight(a),v=l.scrollWidth,C=l.scrollHeight,I=window.getComputedStyle(s);if(I.overflowX==="hidden"&&(v=a.innerWidth),I.overflowY==="hidden"&&(C=a.innerHeight),e.style&&(e.style.position=u),n||isAncestorFixed(e))t.left=Math.max(t.left,f),t.top=Math.max(t.top,m),t.right=Math.min(t.right,f+p),t.bottom=Math.min(t.bottom,m+g);else{var h=Math.max(v,f+p);t.right=Math.min(t.right,h);var y=Math.max(C,m+g);t.bottom=Math.min(t.bottom,y)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function adjustForViewport(e,n,t,o){var r=utils.clone(e),a={width:n.width,height:n.height};return o.adjustX&&r.left<t.left&&(r.left=t.left),o.resizeWidth&&r.left>=t.left&&r.left+a.width>t.right&&(a.width-=r.left+a.width-t.right),o.adjustX&&r.left+a.width>t.right&&(r.left=Math.max(t.right-a.width,t.left)),o.adjustY&&r.top<t.top&&(r.top=t.top),o.resizeHeight&&r.top>=t.top&&r.top+a.height>t.bottom&&(a.height-=r.top+a.height-t.bottom),o.adjustY&&r.top+a.height>t.bottom&&(r.top=Math.max(t.bottom-a.height,t.top)),utils.mix(r,a)}function getRegion(e){var n,t,o;if(!utils.isWindow(e)&&e.nodeType!==9)n=utils.offset(e),t=utils.outerWidth(e),o=utils.outerHeight(e);else{var r=utils.getWindow(e);n={left:utils.getWindowScrollLeft(r),top:utils.getWindowScrollTop(r)},t=utils.viewportWidth(r),o=utils.viewportHeight(r)}return n.width=t,n.height=o,n}function getAlignOffset(e,n){var t=n.charAt(0),o=n.charAt(1),r=e.width,a=e.height,s=e.left,l=e.top;return t==="c"?l+=a/2:t==="b"&&(l+=a),o==="c"?s+=r/2:o==="r"&&(s+=r),{left:s,top:l}}function getElFuturePos(e,n,t,o,r){var a=getAlignOffset(n,t[1]),s=getAlignOffset(e,t[0]),l=[s.left-a.left,s.top-a.top];return{left:Math.round(e.left-l[0]+o[0]-r[0]),top:Math.round(e.top-l[1]+o[1]-r[1])}}function isFailX(e,n,t){return e.left<t.left||e.left+n.width>t.right}function isFailY(e,n,t){return e.top<t.top||e.top+n.height>t.bottom}function isCompleteFailX(e,n,t){return e.left>t.right||e.left+n.width<t.left}function isCompleteFailY(e,n,t){return e.top>t.bottom||e.top+n.height<t.top}function flip(e,n,t){var o=[];return utils.each(e,function(r){o.push(r.replace(n,function(a){return t[a]}))}),o}function flipOffset(e,n){return e[n]=-e[n],e}function convertOffset(e,n){var t;return/%$/.test(e)?t=parseInt(e.substring(0,e.length-1),10)/100*n:t=parseInt(e,10),t||0}function normalizeOffset(e,n){e[0]=convertOffset(e[0],n.width),e[1]=convertOffset(e[1],n.height)}function doAlign(e,n,t,o){var r=t.points,a=t.offset||[0,0],s=t.targetOffset||[0,0],l=t.overflow,c=t.source||e;a=[].concat(a),s=[].concat(s),l=l||{};var u={},d=0,f=!!(l&&l.alwaysByViewport),m=getVisibleRectForElement(c,f),p=getRegion(c);normalizeOffset(a,p),normalizeOffset(s,n);var g=getElFuturePos(p,n,r,a,s),v=utils.merge(p,g);if(m&&(l.adjustX||l.adjustY)&&o){if(l.adjustX&&isFailX(g,p,m)){var C=flip(r,/[lr]/gi,{l:"r",r:"l"}),I=flipOffset(a,0),h=flipOffset(s,0),y=getElFuturePos(p,n,C,I,h);isCompleteFailX(y,p,m)||(d=1,r=C,a=I,s=h)}if(l.adjustY&&isFailY(g,p,m)){var x=flip(r,/[tb]/gi,{t:"b",b:"t"}),w=flipOffset(a,1),O=flipOffset(s,1),F=getElFuturePos(p,n,x,w,O);isCompleteFailY(F,p,m)||(d=1,r=x,a=w,s=O)}d&&(g=getElFuturePos(p,n,r,a,s),utils.mix(v,g));var b=isFailX(g,p,m),S=isFailY(g,p,m);if(b||S){var T=r;b&&(T=flip(r,/[lr]/gi,{l:"r",r:"l"})),S&&(T=flip(r,/[tb]/gi,{t:"b",b:"t"})),r=T,a=t.offset||[0,0],s=t.targetOffset||[0,0]}u.adjustX=l.adjustX&&b,u.adjustY=l.adjustY&&S,(u.adjustX||u.adjustY)&&(v=adjustForViewport(g,p,m,u))}return v.width!==p.width&&utils.css(c,"width",utils.width(c)+v.width-p.width),v.height!==p.height&&utils.css(c,"height",utils.height(c)+v.height-p.height),utils.offset(c,{left:v.left,top:v.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:r,offset:a,targetOffset:s,overflow:u}}function isOutOfVisibleRect(e,n){var t=getVisibleRectForElement(e,n),o=getRegion(e);return!t||o.left+o.width<=t.left||o.top+o.height<=t.top||o.left>=t.right||o.top>=t.bottom}function alignElement(e,n,t){var o=t.target||n,r=getRegion(o),a=!isOutOfVisibleRect(o,t.overflow&&t.overflow.alwaysByViewport);return doAlign(e,r,t,a)}alignElement.__getOffsetParent=getOffsetParent,alignElement.__getVisibleRectForElement=getVisibleRectForElement;function alignPoint(e,n,t){var o,r,a=utils.getDocument(e),s=a.defaultView||a.parentWindow,l=utils.getWindowScrollLeft(s),c=utils.getWindowScrollTop(s),u=utils.viewportWidth(s),d=utils.viewportHeight(s);"pageX"in n?o=n.pageX:o=l+n.clientX,"pageY"in n?r=n.pageY:r=c+n.clientY;var f={left:o,top:r,width:0,height:0},m=o>=0&&o<=l+u&&r>=0&&r<=c+d,p=[t.points[0],"cc"];return doAlign(e,f,_objectSpread2({},t,{points:p}),m)}function isSamePoint(e,n){return e===n?!0:!e||!n?!1:"pageX"in n&&"pageY"in n?e.pageX===n.pageX&&e.pageY===n.pageY:"clientX"in n&&"clientY"in n?e.clientX===n.clientX&&e.clientY===n.clientY:!1}function restoreFocus(e,n){e!==document.activeElement&&contains(n,e)&&typeof e.focus=="function"&&e.focus()}function monitorResize(e,n){var t=null,o=null;function r(s){var l=_slicedToArray(s,1),c=l[0].target;if(!!document.documentElement.contains(c)){var u=c.getBoundingClientRect(),d=u.width,f=u.height,m=Math.floor(d),p=Math.floor(f);(t!==m||o!==p)&&Promise.resolve().then(function(){n({width:m,height:p})}),t=m,o=p}}var a=new index(r);return e&&a.observe(e),function(){a.disconnect()}}const useBuffer=function(e,n){var t=React__default.default.useRef(!1),o=React__default.default.useRef(null);function r(){window.clearTimeout(o.current)}function a(s){if(!t.current||s===!0){if(e()===!1)return;t.current=!0,r(),o.current=window.setTimeout(function(){t.current=!1},n)}else r(),o.current=window.setTimeout(function(){t.current=!1,a()},n)}return[a,function(){t.current=!1,r()}]};function getElement(e){return typeof e!="function"?null:e()}function getPoint(e){return _typeof$1(e)!=="object"||!e?null:e}var Align=function e(n,t){var o=n.children,r=n.disabled,a=n.target,s=n.align,l=n.onAlign,c=n.monitorWindowResize,u=n.monitorBufferTime,d=u===void 0?0:u,f=React__default.default.useRef({}),m=React__default.default.useRef(),p=React__default.default.Children.only(o),g=React__default.default.useRef({});g.current.disabled=r,g.current.target=a,g.current.onAlign=l;var v=useBuffer(function(){var O=g.current,F=O.disabled,b=O.target,S=O.onAlign;if(!F&&b){var T=m.current,k,L=getElement(b),D=getPoint(b);f.current.element=L,f.current.point=D;var P=document,M=P.activeElement;return L&&isVisible(L)?k=alignElement(T,L,s):D&&(k=alignPoint(T,D,s)),restoreFocus(M,T),S&&k&&S(T,k),!0}return!1},d),C=_slicedToArray(v,2),I=C[0],h=C[1],y=React__default.default.useRef({cancel:function(){}}),x=React__default.default.useRef({cancel:function(){}});React__default.default.useEffect(function(){var O=getElement(a),F=getPoint(a);m.current!==x.current.element&&(x.current.cancel(),x.current.element=m.current,x.current.cancel=monitorResize(m.current,I)),(f.current.element!==O||!isSamePoint(f.current.point,F))&&(I(),y.current.element!==O&&(y.current.cancel(),y.current.element=O,y.current.cancel=monitorResize(O,I)))}),React__default.default.useEffect(function(){r?h():I()},[r]);var w=React__default.default.useRef(null);return React__default.default.useEffect(function(){c?w.current||(w.current=addEventListenerWrap(window,"resize",I)):w.current&&(w.current.remove(),w.current=null)},[c]),React__default.default.useEffect(function(){return function(){y.current.cancel(),x.current.cancel(),w.current&&w.current.remove(),h()}},[]),React__default.default.useImperativeHandle(t,function(){return{forceAlign:function(){return I(!0)}}}),React__default.default.isValidElement(p)&&(p=React__default.default.cloneElement(p,{ref:composeRef(p.ref,m)})),p},RefAlign=React__default.default.forwardRef(Align);RefAlign.displayName="Align";var StatusQueue=["measure","align",null,"motion"];const useVisibleStatus=function(e,n){var t=React.useState(null),o=_slicedToArray(t,2),r=o[0],a=o[1],s=React.useRef(),l=React.useRef(!1);function c(f){l.current||a(f)}function u(){wrapperRaf.cancel(s.current)}function d(f){u(),s.current=wrapperRaf(function(){c(function(m){switch(r){case"align":return"motion";case"motion":return"stable"}return m}),f==null||f()})}return React.useEffect(function(){c("measure")},[e]),React.useEffect(function(){switch(r){case"measure":n();break}r&&(s.current=wrapperRaf(_asyncToGenerator(regeneratorExports.mark(function f(){var m,p;return regeneratorExports.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:m=StatusQueue.indexOf(r),p=StatusQueue[m+1],p&&m!==-1&&c(p);case 3:case"end":return v.stop()}},f)}))))},[r]),React.useEffect(function(){return function(){l.current=!0,u()}},[]),[r,d]},useStretchStyle=function(e){var n=React__namespace.useState({width:0,height:0}),t=_slicedToArray(n,2),o=t[0],r=t[1];function a(l){r({width:l.offsetWidth,height:l.offsetHeight})}var s=React__namespace.useMemo(function(){var l={};if(e){var c=o.width,u=o.height;e.indexOf("height")!==-1&&u?l.height=u:e.indexOf("minHeight")!==-1&&u&&(l.minHeight=u),e.indexOf("width")!==-1&&c?l.width=c:e.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[e,o]);return[s,a]};var PopupInner=React__namespace.forwardRef(function(e,n){var t=e.visible,o=e.prefixCls,r=e.className,a=e.style,s=e.children,l=e.zIndex,c=e.stretch,u=e.destroyPopupOnHide,d=e.align,f=e.point,m=e.getRootDomNode,p=e.getClassNameFromAlign,g=e.onAlign,v=e.onMouseEnter,C=e.onMouseLeave,I=e.onMouseDown,h=e.onTouchStart,y=React.useRef(),x=React.useRef(),w=React.useState(),O=_slicedToArray(w,2),F=O[0],b=O[1],S=useStretchStyle(c),T=_slicedToArray(S,2),k=T[0],L=T[1];function D(){c&&L(m())}var P=useVisibleStatus(t,D),M=_slicedToArray(P,2),q=M[0],U=M[1],B=React.useRef();function V(){return f||m}function G(){var A;(A=y.current)===null||A===void 0||A.forceAlign()}function Y(A,$){if(q==="align"){var Z=p($);b(Z),F!==Z?Promise.resolve().then(function(){G()}):U(function(){var Q;(Q=B.current)===null||Q===void 0||Q.call(B)}),g==null||g(A,$)}}var H=_objectSpread2$1({},getMotion(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(A){var $=H[A];H[A]=function(Z,Q){return U(),$==null?void 0:$(Z,Q)}});function K(){return new Promise(function(A){B.current=A})}React__namespace.useEffect(function(){!H.motionName&&q==="motion"&&U()},[H.motionName,q]),React__namespace.useImperativeHandle(n,function(){return{forceAlign:G,getElement:function(){return x.current}}});var N=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},k),{},{zIndex:l},a),{},{opacity:q==="motion"||q==="stable"||!t?void 0:0,pointerEvents:q==="stable"?void 0:"none"}),W=!0;(d==null?void 0:d.points)&&(q==="align"||q==="stable")&&(W=!1);var j=s;return React__namespace.Children.count(s)>1&&(j=jsxRuntime.jsx("div",{className:"".concat(o,"-content"),children:s})),jsxRuntime.jsx(CSSMotion,{visible:t,ref:x,leavedClassName:"".concat(o,"-hidden"),...H,onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:u,children:function(A,$){var Z=A.className,Q=A.style,E=classnamesExports(o,r,F,Z);return jsxRuntime.jsx(RefAlign,{target:V(),ref:y,monitorWindowResize:!0,disabled:W,align:d,onAlign:Y,children:jsxRuntime.jsx("div",{ref:$,className:E,onMouseEnter:v,onMouseLeave:C,onMouseDown:I,onTouchStart:h,style:_objectSpread2$1(_objectSpread2$1({},Q),N),children:j})},"popup")}})});PopupInner.displayName="PopupInner";var MobilePopupInner=React__namespace.forwardRef(function(e,n){var t=e.prefixCls,o=e.visible,r=e.zIndex,a=e.children,s=e.mobile;s=s===void 0?{}:s;var l=s.popupClassName,c=s.popupStyle,u=s.popupMotion,d=u===void 0?{}:u,f=s.popupRender,m=React__namespace.useRef();React__namespace.useImperativeHandle(n,function(){return{forceAlign:function(){},getElement:function(){return m.current}}});var p=_objectSpread2$1({zIndex:r},c),g=a;return React__namespace.Children.count(a)>1&&(g=jsxRuntime.jsx("div",{className:"".concat(t,"-content"),children:a})),f&&(g=f(g)),jsxRuntime.jsx(CSSMotion,{visible:o,ref:m,removeOnLeave:!0,...d,children:function(v,C){var I=v.className,h=v.style,y=classnamesExports(t,l,I);return jsxRuntime.jsx("div",{ref:C,className:y,style:_objectSpread2$1(_objectSpread2$1({},h),p),children:g})}})});MobilePopupInner.displayName="MobilePopupInner";var Popup=React__namespace.forwardRef(function(e,n){var t=e.visible,o=e.mobile,r=_objectWithoutProperties(e,["visible","mobile"]),a=React.useState(t),s=_slicedToArray(a,2),l=s[0],c=s[1],u=React.useState(!1),d=_slicedToArray(u,2),f=d[0],m=d[1],p=_objectSpread2$1(_objectSpread2$1({},r),{},{visible:l});React.useEffect(function(){c(t),t&&o&&m(isMobile())},[t,o]);var g=f?jsxRuntime.jsx(MobilePopupInner,{...p,mobile:o,ref:n}):jsxRuntime.jsx(PopupInner,{...p,ref:n});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Mask,{...p}),g]})});Popup.displayName="Popup";var TriggerContext=React__namespace.createContext(null);function noop(){}function returnEmptyString(){return""}function returnDocument(e){return e?e.ownerDocument:window.document}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function generateTrigger(e){var n=function(t){_inherits(r,t);var o=_createSuper(r);function r(a){var s;_classCallCheck(this,r),s=o.call(this,a),s.popupRef=React__namespace.createRef(),s.triggerRef=React__namespace.createRef(),s.onMouseEnter=function(c){var u=s.props.mouseEnterDelay;s.fireEvents("onMouseEnter",c),s.delaySetPopupVisible(!0,u,u?null:c)},s.onMouseMove=function(c){s.fireEvents("onMouseMove",c),s.setPoint(c)},s.onMouseLeave=function(c){s.fireEvents("onMouseLeave",c),s.delaySetPopupVisible(!1,s.props.mouseLeaveDelay)},s.onPopupMouseEnter=function(){s.clearDelayTimer()},s.onPopupMouseLeave=function(c){var u;c.relatedTarget&&!c.relatedTarget.setTimeout&&contains((u=s.popupRef.current)===null||u===void 0?void 0:u.getElement(),c.relatedTarget)||s.delaySetPopupVisible(!1,s.props.mouseLeaveDelay)},s.onFocus=function(c){s.fireEvents("onFocus",c),s.clearDelayTimer(),s.isFocusToShow()&&(s.focusTime=Date.now(),s.delaySetPopupVisible(!0,s.props.focusDelay))},s.onMouseDown=function(c){s.fireEvents("onMouseDown",c),s.preClickTime=Date.now()},s.onTouchStart=function(c){s.fireEvents("onTouchStart",c),s.preTouchTime=Date.now()},s.onBlur=function(c){s.fireEvents("onBlur",c),s.clearDelayTimer(),s.isBlurToHide()&&s.delaySetPopupVisible(!1,s.props.blurDelay)},s.onContextMenu=function(c){c.preventDefault(),s.fireEvents("onContextMenu",c),s.setPopupVisible(!0,c)},s.onContextMenuClose=function(){s.isContextMenuToShow()&&s.close()},s.onClick=function(c){if(s.fireEvents("onClick",c),s.focusTime){var u;if(s.preClickTime&&s.preTouchTime?u=Math.min(s.preClickTime,s.preTouchTime):s.preClickTime?u=s.preClickTime:s.preTouchTime&&(u=s.preTouchTime),Math.abs(u-s.focusTime)<20)return;s.focusTime=0}s.preClickTime=0,s.preTouchTime=0,s.isClickToShow()&&(s.isClickToHide()||s.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var d=!s.state.popupVisible;(s.isClickToHide()&&!d||d&&s.isClickToShow())&&s.setPopupVisible(!s.state.popupVisible,c)},s.onPopupMouseDown=function(){if(s.hasPopupMouseDown=!0,clearTimeout(s.mouseDownTimeout),s.mouseDownTimeout=window.setTimeout(function(){s.hasPopupMouseDown=!1},0),s.context){var c;(c=s.context).onPopupMouseDown.apply(c,arguments)}},s.onDocumentClick=function(c){if(!(s.props.mask&&!s.props.maskClosable)){var u=c.target,d=s.getRootDomNode(),f=s.getPopupDomNode();!contains(d,u)&&!contains(f,u)&&!s.hasPopupMouseDown&&s.close()}},s.getRootDomNode=function(){var c=s.props.getTriggerDOMNode;if(c)return c(s.triggerRef.current);try{var u=findDOMNode(s.triggerRef.current);if(u)return u}catch{}return ReactDOM__default.default.findDOMNode(_assertThisInitialized(s))},s.getPopupClassNameFromAlign=function(c){var u=[],d=s.props,f=d.popupPlacement,m=d.builtinPlacements,p=d.prefixCls,g=d.alignPoint,v=d.getPopupClassNameFromAlign;return f&&m&&u.push(getAlignPopupClassName(m,p,c,g)),v&&u.push(v(c)),u.join(" ")},s.getComponent=function(){var c=s.props,u=c.prefixCls,d=c.destroyPopupOnHide,f=c.popupClassName,m=c.onPopupAlign,p=c.popupMotion,g=c.popupAnimation,v=c.popupTransitionName,C=c.popupStyle,I=c.mask,h=c.maskAnimation,y=c.maskTransitionName,x=c.maskMotion,w=c.zIndex,O=c.popup,F=c.stretch,b=c.alignPoint,S=c.mobile,T=s.state,k=T.popupVisible,L=T.point,D=s.getPopupAlign(),P={};return s.isMouseEnterToShow()&&(P.onMouseEnter=s.onPopupMouseEnter),s.isMouseLeaveToHide()&&(P.onMouseLeave=s.onPopupMouseLeave),P.onMouseDown=s.onPopupMouseDown,P.onTouchStart=s.onPopupMouseDown,jsxRuntime.jsx(Popup,{prefixCls:u,destroyPopupOnHide:d,visible:k,point:b&&L,className:f,align:D,onAlign:m,animation:g,getClassNameFromAlign:s.getPopupClassNameFromAlign,...P,stretch:F,getRootDomNode:s.getRootDomNode,style:C,mask:I,zIndex:w,transitionName:v,maskAnimation:h,maskTransitionName:y,maskMotion:x,ref:s.popupRef,motion:p,mobile:S,children:typeof O=="function"?O():O})},s.attachParent=function(c){wrapperRaf.cancel(s.attachId);var u=s.props,d=u.getPopupContainer,f=u.getDocument,m=s.getRootDomNode(),p;d?(m||d.length===0)&&(p=d(m)):p=f(s.getRootDomNode()).body,p?p.appendChild(c):s.attachId=wrapperRaf(function(){s.attachParent(c)})},s.getContainer=function(){var c=s.props.getDocument,u=c(s.getRootDomNode()).createElement("div");return u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.width="100%",s.attachParent(u),u},s.setPoint=function(c){var u=s.props.alignPoint;!u||!c||s.setState({point:{pageX:c.pageX,pageY:c.pageY}})},s.handlePortalUpdate=function(){s.state.prevPopupVisible!==s.state.popupVisible&&s.props.afterPopupVisibleChange(s.state.popupVisible)};var l;return"popupVisible"in a?l=!!a.popupVisible:l=!!a.defaultPopupVisible,s.state={prevPopupVisible:l,popupVisible:l},ALL_HANDLERS.forEach(function(c){s["fire".concat(c)]=function(u){s.fireEvents(c,u)}}),s}return _createClass(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var s=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=s.getDocument(this.getRootDomNode()),this.clickOutsideHandler=addEventListenerWrap(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||s.getDocument(this.getRootDomNode()),this.touchOutsideHandler=addEventListenerWrap(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||s.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=addEventListenerWrap(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=addEventListenerWrap(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wrapperRaf.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var s;return((s=this.popupRef.current)===null||s===void 0?void 0:s.getElement())||null}},{key:"getPopupAlign",value:function(){var s=this.props,l=s.popupPlacement,c=s.popupAlign,u=s.builtinPlacements;return l&&u?getAlignFromPlacement(u,l,c):c}},{key:"setPopupVisible",value:function(s,l){var c=this.props.alignPoint,u=this.state.popupVisible;this.clearDelayTimer(),u!==s&&("popupVisible"in this.props||this.setState({popupVisible:s,prevPopupVisible:u}),this.props.onPopupVisibleChange(s)),c&&l&&s&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(s,l,c){var u=this,d=l*1e3;if(this.clearDelayTimer(),d){var f=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){u.setPopupVisible(s,f),u.clearDelayTimer()},d)}else this.setPopupVisible(s,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(s){var l=this.props.children.props,c=this.props;return l[s]&&c[s]?this["fire".concat(s)]:l[s]||c[s]}},{key:"isClickToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var s=this.props,l=s.action,c=s.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var s=this.props,l=s.action,c=s.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var s=this.props,l=s.action,c=s.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var s;(s=this.popupRef.current)===null||s===void 0||s.forceAlign()}}},{key:"fireEvents",value:function(s,l){var c=this.props.children.props[s];c&&c(l);var u=this.props[s];u&&u(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var s=this.state.popupVisible,l=this.props,c=l.children,u=l.forceRender,d=l.alignPoint,f=l.className,m=l.autoDestroy,p=React__namespace.Children.only(c),g={key:"trigger"};this.isContextMenuToShow()?g.onContextMenu=this.onContextMenu:g.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(g.onClick=this.onClick,g.onMouseDown=this.onMouseDown,g.onTouchStart=this.onTouchStart):(g.onClick=this.createTwoChains("onClick"),g.onMouseDown=this.createTwoChains("onMouseDown"),g.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(g.onMouseEnter=this.onMouseEnter,d&&(g.onMouseMove=this.onMouseMove)):g.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?g.onMouseLeave=this.onMouseLeave:g.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(g.onFocus=this.onFocus,g.onBlur=this.onBlur):(g.onFocus=this.createTwoChains("onFocus"),g.onBlur=this.createTwoChains("onBlur"));var v=classnamesExports(p&&p.props&&p.props.className,f);v&&(g.className=v);var C=_objectSpread2$1({},g);supportRef(p)&&(C.ref=composeRef(this.triggerRef,p.ref));var I=React__namespace.cloneElement(p,C),h;return(s||this.popupRef.current||u)&&(h=jsxRuntime.jsx(e,{getContainer:this.getContainer,didUpdate:this.handlePortalUpdate,children:this.getComponent()},"portal")),!s&&m&&(h=null),jsxRuntime.jsxs(TriggerContext.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown},children:[I,h]})}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.popupVisible,u={};return c!==void 0&&l.popupVisible!==c&&(u.popupVisible=c,u.prevPopupVisible=l.popupVisible),u}}]),r}(React__namespace.Component);return n.contextType=TriggerContext,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:returnEmptyString,getDocument:returnDocument,onPopupVisibleChange:noop,afterPopupVisibleChange:noop,onPopupAlign:noop,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},n}const Trigger=generateTrigger(Portal);var autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset}},Content$2=function e(n){var t=n.overlay,o=n.prefixCls,r=n.id,a=n.overlayInnerStyle;return jsxRuntime.jsx("div",{className:"".concat(o,"-inner"),id:r,role:"tooltip",style:a,children:typeof t=="function"?t():t})},Tooltip=function e(n,t){var o=n.overlayClassName,r=n.trigger,a=r===void 0?["hover"]:r,s=n.mouseEnterDelay,l=s===void 0?0:s,c=n.mouseLeaveDelay,u=c===void 0?.1:c,d=n.overlayStyle,f=n.prefixCls,m=f===void 0?"rc-tooltip":f,p=n.children,g=n.onVisibleChange,v=n.afterVisibleChange,C=n.transitionName,I=n.animation,h=n.placement,y=h===void 0?"right":h,x=n.align,w=x===void 0?{}:x,O=n.destroyTooltipOnHide,F=O===void 0?!1:O,b=n.defaultVisible,S=n.getTooltipContainer,T=n.overlayInnerStyle,k=_objectWithoutProperties(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=React.useRef(null);React.useImperativeHandle(t,function(){return L.current});var D=_objectSpread2$1({},k);"visible"in n&&(D.popupVisible=n.visible);var P=function(){var V=n.arrowContent,G=V===void 0?null:V,Y=n.overlay,H=n.id;return[jsxRuntime.jsx("div",{className:"".concat(m,"-arrow"),children:G},"arrow"),jsxRuntime.jsx(Content$2,{prefixCls:m,id:H,overlay:Y,overlayInnerStyle:T},"content")]},M=!1,q=!1;if(typeof F=="boolean")M=F;else if(F&&_typeof$1(F)==="object"){var U=F.keepParent;M=U===!0,q=U===!1}return jsxRuntime.jsx(Trigger,{...Object.assign({popupClassName:o,prefixCls:m,popup:P,action:a,builtinPlacements:placements$2,popupPlacement:y,ref:L,popupAlign:w,getPopupContainer:S,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:C,popupAnimation:I,defaultPopupVisible:b,destroyPopupOnHide:M,autoDestroy:q,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l},D),children:p})};const Tooltip$1=React.forwardRef(Tooltip),es=Object.freeze(Object.defineProperty({__proto__:null,default:Tooltip$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(es);var placements$1={},placements={},hasRequiredPlacements$1;function requirePlacements$1(){if(hasRequiredPlacements$1)return placements;hasRequiredPlacements$1=1,Object.defineProperty(placements,"__esModule",{value:!0}),placements.default=placements.placements=void 0;var e={adjustX:1,adjustY:1},n=[0,0],t={left:{points:["cr","cl"],overflow:e,offset:[-4,0],targetOffset:n},right:{points:["cl","cr"],overflow:e,offset:[4,0],targetOffset:n},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:n},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:n},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:n},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0],targetOffset:n},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:n},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0],targetOffset:n},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:n},rightBottom:{points:["bl","br"],overflow:e,offset:[4,0],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:n},leftBottom:{points:["br","bl"],overflow:e,offset:[-4,0],targetOffset:n}};placements.placements=t;var o=t;return placements.default=o,placements}var hasRequiredPlacements;function requirePlacements(){return hasRequiredPlacements||(hasRequiredPlacements=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getOverflowOptions=l,e.default=c;var t=n(require_extends()),o=requirePlacements$1(),r={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},s=[0,0];function l(u){return typeof u=="boolean"?u?r:a:(0,t.default)((0,t.default)({},a),u)}function c(u){var d=u.arrowWidth,f=d===void 0?5:d,m=u.horizontalArrowShift,p=m===void 0?16:m,g=u.verticalArrowShift,v=g===void 0?8:g,C=u.autoAdjustOverflow,I={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(p+f),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(v+f)]},topRight:{points:["br","tc"],offset:[p+f,-4]},rightTop:{points:["tl","cr"],offset:[4,-(v+f)]},bottomRight:{points:["tr","bc"],offset:[p+f,4]},rightBottom:{points:["bl","cr"],offset:[4,v+f]},bottomLeft:{points:["tl","bc"],offset:[-(p+f),4]},leftBottom:{points:["br","cl"],offset:[-4,v+f]}};return Object.keys(I).forEach(function(h){I[h]=u.arrowPointAtCenter?(0,t.default)((0,t.default)({},I[h]),{overflow:l(C),targetOffset:s}):(0,t.default)((0,t.default)({},o.placements[h]),{overflow:l(C)}),I[h].ignoreShake=!0}),I}}(placements$1)),placements$1}var colors={},hasRequiredColors;function requireColors(){if(hasRequiredColors)return colors;hasRequiredColors=1,Object.defineProperty(colors,"__esModule",{value:!0}),colors.PresetColorTypes=colors.PresetStatusColorTypes=void 0;var e=requireType(),n=(0,e.tuple)("success","processing","error","default","warning");colors.PresetStatusColorTypes=n;var t=(0,e.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");return colors.PresetColorTypes=t,colors}var hasRequiredTooltip;function requireTooltip(){return hasRequiredTooltip||(hasRequiredTooltip=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(requireDefineProperty()),r=t(requireSlicedToArray()),a=t(require_extends()),s=n(React__default.default),l=t(require$$6),c=t(requireClassnames()),u=t(requirePlacements()),d=requireReactNode(),f=requireConfigProvider(),m=requireColors(),p=function(y,x){var w={},O=(0,a.default)({},y);return x.forEach(function(F){y&&F in y&&(w[F]=y[F],delete O[F])}),{picked:w,omitted:O}},g=new RegExp("^(".concat(m.PresetColorTypes.join("|"),")(-inverse)?$"));function v(h,y){var x=h.type;if((x.__ANT_BUTTON===!0||x.__ANT_SWITCH===!0||x.__ANT_CHECKBOX===!0||h.type==="button")&&h.props.disabled){var w=p(h.props.style,["position","left","right","top","bottom","float","display","zIndex"]),O=w.picked,F=w.omitted,b=(0,a.default)((0,a.default)({display:"inline-block"},O),{cursor:"not-allowed",width:h.props.block?"100%":null}),S=(0,a.default)((0,a.default)({},F),{pointerEvents:"none"}),T=(0,d.cloneElement)(h,{style:S,className:null});return s.createElement("span",{style:b,className:(0,c.default)(h.props.className,"".concat(y,"-disabled-compatible-wrapper"))},T)}return h}var C=s.forwardRef(function(h,y){var x,w=s.useContext(f.ConfigContext),O=w.getPopupContainer,F=w.getPrefixCls,b=w.direction,S=s.useState(!!h.visible||!!h.defaultVisible),T=(0,r.default)(S,2),k=T[0],L=T[1];s.useEffect(function(){"visible"in h&&L(h.visible)},[h.visible]);var D=function(){var ne=h.title,ee=h.overlay;return!ne&&!ee&&ne!==0},P=function(ne){"visible"in h||L(D()?!1:ne),h.onVisibleChange&&!D()&&h.onVisibleChange(ne)},M=function(){var ne=h.builtinPlacements,ee=h.arrowPointAtCenter,oe=h.autoAdjustOverflow;return ne||(0,u.default)({arrowPointAtCenter:ee,autoAdjustOverflow:oe})},q=function(ne,ee){var oe=M(),se=Object.keys(oe).filter(function(pe){return oe[pe].points[0]===ee.points[0]&&oe[pe].points[1]===ee.points[1]})[0];if(!!se){var ie=ne.getBoundingClientRect(),ce={top:"50%",left:"50%"};se.indexOf("top")>=0||se.indexOf("Bottom")>=0?ce.top="".concat(ie.height-ee.offset[1],"px"):(se.indexOf("Top")>=0||se.indexOf("bottom")>=0)&&(ce.top="".concat(-ee.offset[1],"px")),se.indexOf("left")>=0||se.indexOf("Right")>=0?ce.left="".concat(ie.width-ee.offset[0],"px"):(se.indexOf("right")>=0||se.indexOf("Left")>=0)&&(ce.left="".concat(-ee.offset[0],"px")),ne.style.transformOrigin="".concat(ce.left," ").concat(ce.top)}},U=function(){var ne=h.title,ee=h.overlay;return ne===0?ne:ee||ne||""},B=h.prefixCls,V=h.openClassName,G=h.getPopupContainer,Y=h.getTooltipContainer,H=h.overlayClassName,K=h.color,N=h.overlayInnerStyle,W=h.children,j=F("tooltip",B),A=k;!("visible"in h)&&D()&&(A=!1);var $=v((0,d.isValidElement)(W)?W:s.createElement("span",null,W),j),Z=$.props,Q=(0,c.default)(Z.className,(0,o.default)({},V||"".concat(j,"-open"),!0)),E=(0,c.default)(H,(x={},(0,o.default)(x,"".concat(j,"-rtl"),b==="rtl"),(0,o.default)(x,"".concat(j,"-").concat(K),K&&g.test(K)),x)),_=N,z;return K&&!g.test(K)&&(_=(0,a.default)((0,a.default)({},N),{background:K}),z={background:K}),s.createElement(l.default,(0,a.default)({},h,{prefixCls:j,overlayClassName:E,getTooltipContainer:G||Y||O,ref:y,builtinPlacements:M(),overlay:U(),visible:A,onVisibleChange:P,onPopupAlign:q,overlayInnerStyle:_,arrowContent:s.createElement("span",{className:"".concat(j,"-arrow-content"),style:z})}),A?(0,d.cloneElement)($,{className:Q}):$)});C.displayName="Tooltip",C.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var I=C;e.default=I}(tooltip)),tooltip}var Typography={},ref={},hasRequiredRef;function requireRef(){if(hasRequiredRef)return ref;hasRequiredRef=1;var e=interopRequireDefault.exports;Object.defineProperty(ref,"__esModule",{value:!0}),ref.fillRef=o,ref.composeRef=r,ref.supportRef=a;var n=e(_typeof$2.exports),t=requireReactIs();function o(s,l){typeof s=="function"?s(l):(0,n.default)(s)==="object"&&s&&"current"in s&&(s.current=l)}function r(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return function(u){l.forEach(function(d){o(d,u)})}}function a(s){var l,c,u=(0,t.isMemo)(s)?s.type.type:s.type;return!(typeof u=="function"&&!(!((l=u.prototype)===null||l===void 0)&&l.render)||typeof s=="function"&&!(!((c=s.prototype)===null||c===void 0)&&c.render))}return ref}var hasRequiredTypography;function requireTypography(){return hasRequiredTypography||(hasRequiredTypography=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=t(requireDefineProperty()),a=n(React__default.default),s=t(requireClassnames()),l=requireRef(),c=requireConfigProvider(),u=t(requireDevWarning()),d=function(v,C){var I={};for(var h in v)Object.prototype.hasOwnProperty.call(v,h)&&C.indexOf(h)<0&&(I[h]=v[h]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,h=Object.getOwnPropertySymbols(v);y<h.length;y++)C.indexOf(h[y])<0&&Object.prototype.propertyIsEnumerable.call(v,h[y])&&(I[h[y]]=v[h[y]]);return I},f=function(C,I){var h=C.prefixCls,y=C.component,x=y===void 0?"article":y,w=C.className,O=C["aria-label"],F=C.setContentRef,b=C.children,S=d(C,["prefixCls","component","className","aria-label","setContentRef","children"]),T=I;return F&&((0,u.default)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),T=(0,l.composeRef)(I,F)),a.createElement(c.ConfigConsumer,null,function(k){var L=k.getPrefixCls,D=k.direction,P=x,M=L("typography",h),q=(0,s.default)(M,(0,r.default)({},"".concat(M,"-rtl"),D==="rtl"),w);return a.createElement(P,(0,o.default)({className:q,"aria-label":O,ref:T},S),b)})},m=a.forwardRef(f);m.displayName="Typography";var p=m,g=p;e.default=g}(Typography)),Typography}var Editable={},EnterOutlined$2={exports:{}},EnterOutlined$1={},EnterOutlined={},hasRequiredEnterOutlined$2;function requireEnterOutlined$2(){if(hasRequiredEnterOutlined$2)return EnterOutlined;hasRequiredEnterOutlined$2=1,Object.defineProperty(EnterOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};return EnterOutlined.default=e,EnterOutlined}var hasRequiredEnterOutlined$1;function requireEnterOutlined$1(){if(hasRequiredEnterOutlined$1)return EnterOutlined$1;hasRequiredEnterOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(EnterOutlined$1,"__esModule",{value:!0}),EnterOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireEnterOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="EnterOutlined";var l=o.forwardRef(s);return EnterOutlined$1.default=l,EnterOutlined$1}var hasRequiredEnterOutlined;function requireEnterOutlined(){return hasRequiredEnterOutlined||(hasRequiredEnterOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireEnterOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(EnterOutlined$2,EnterOutlined$2.exports)),EnterOutlined$2.exports}var hasRequiredEditable;function requireEditable(){return hasRequiredEditable||(hasRequiredEditable=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(requireDefineProperty()),r=t(requireSlicedToArray()),a=n(React__default.default),s=t(requireClassnames()),l=t(requireKeyCode()),c=t(requireEnterOutlined()),u=t(TextArea$3),d=function(p){var g=p.prefixCls,v=p["aria-label"],C=p.className,I=p.style,h=p.direction,y=p.maxLength,x=p.autoSize,w=x===void 0?!0:x,O=p.value,F=p.onSave,b=p.onCancel,S=a.useRef(),T=a.useRef(!1),k=a.useRef(),L=a.useState(O),D=(0,r.default)(L,2),P=D[0],M=D[1];a.useEffect(function(){M(O)},[O]),a.useEffect(function(){if(S.current&&S.current.resizableTextArea){var N=S.current.resizableTextArea.textArea;N.focus();var W=N.value.length;N.setSelectionRange(W,W)}},[]);var q=function(W){var j=W.target;M(j.value.replace(/[\n\r]/g,""))},U=function(){T.current=!0},B=function(){T.current=!1},V=function(W){var j=W.keyCode;T.current||(k.current=j)},G=function(){F(P.trim())},Y=function(W){var j=W.keyCode,A=W.ctrlKey,$=W.altKey,Z=W.metaKey,Q=W.shiftKey;k.current===j&&!T.current&&!A&&!$&&!Z&&!Q&&(j===l.default.ENTER?G():j===l.default.ESC&&b())},H=function(){G()},K=(0,s.default)(g,"".concat(g,"-edit-content"),(0,o.default)({},"".concat(g,"-rtl"),h==="rtl"),C);return a.createElement("div",{className:K,style:I},a.createElement(u.default,{ref:S,maxLength:y,value:P,onChange:q,onKeyDown:V,onKeyUp:Y,onCompositionStart:U,onCompositionEnd:B,onBlur:H,"aria-label":v,autoSize:w}),a.createElement(c.default,{className:"".concat(g,"-edit-content-confirm")}))},f=d;e.default=f}(Editable)),Editable}var util={},hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var n=interopRequireDefault.exports,t=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=ReactDOM__default.default,r=t(React__default.default),a=n(requireToArray()),s=1,l=3,c=8,u,d={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function f(v){if(!v)return 0;var C=v.match(/^\d*(\.\d*)?/);return C?Number(C[0]):0}function m(v){var C=Array.prototype.slice.apply(v);return C.map(function(I){return"".concat(I,": ").concat(v.getPropertyValue(I),";")}).join("")}function p(v){var C=[];return v.forEach(function(I){var h=C[C.length-1];typeof I=="string"&&typeof h=="string"?C[C.length-1]+=I:C.push(I)}),C}var g=function(C,I,h,y,x){u||(u=document.createElement("div"),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));var w=I.rows,O=I.suffix,F=O===void 0?"":O,b=window.getComputedStyle(C),S=m(b),T=f(b.lineHeight),k=Math.round(T*(w+1)+f(b.paddingTop)+f(b.paddingBottom));u.setAttribute("style",S),u.style.position="fixed",u.style.left="0",u.style.height="auto",u.style.minHeight="auto",u.style.maxHeight="auto",u.style.top="-999999px",u.style.zIndex="-1000",u.style.textOverflow="clip",u.style.whiteSpace="normal",u.style.webkitLineClamp="none";var L=p((0,a.default)(h));(0,o.render)(r.createElement("div",{style:d},r.createElement("span",{style:d},L,F),r.createElement("span",{style:d},y)),u);function D(){return u.offsetHeight<k}if(D())return(0,o.unmountComponentAtNode)(u),{content:h,text:u.innerHTML,ellipsis:!1};var P=Array.prototype.slice.apply(u.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(H){var K=H.nodeType;return K!==c}),M=Array.prototype.slice.apply(u.childNodes[0].childNodes[1].cloneNode(!0).childNodes);(0,o.unmountComponentAtNode)(u);var q=[];u.innerHTML="";var U=document.createElement("span");u.appendChild(U);var B=document.createTextNode(x+F);U.appendChild(B),M.forEach(function(H){u.appendChild(H)});function V(H){U.insertBefore(H,B)}function G(H,K){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:K.length,j=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,A=Math.floor((N+W)/2),$=K.slice(0,A);if(H.textContent=$,N>=W-1)for(var Z=W;Z>=N;Z-=1){var Q=K.slice(0,Z);if(H.textContent=Q,D()||!Q)return Z===K.length?{finished:!1,reactNode:K}:{finished:!0,reactNode:Q}}return D()?G(H,K,A,W,A):G(H,K,N,A,j)}function Y(H,K){var N=H.nodeType;if(N===s)return V(H),D()?{finished:!1,reactNode:L[K]}:(U.removeChild(H),{finished:!0,reactNode:null});if(N===l){var W=H.textContent||"",j=document.createTextNode(W);return V(j),G(j,W)}return{finished:!1,reactNode:null}}return P.some(function(H,K){var N=Y(H,K),W=N.finished,j=N.reactNode;return j&&q.push(j),W}),{content:q,text:u.innerHTML,ellipsis:!0}};e.default=g}(util)),util}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(requireDefineProperty()),r=t(requireToConsumableArray()),a=t(_typeof$2.exports),s=t(require_extends()),l=t(requireClassCallCheck()),c=t(requireCreateClass()),u=t(requireInherits()),d=t(requireCreateSuper()),f=n(React__default.default),m=t(requireClassnames()),p=t(requireToArray()),g=t(requireCopyToClipboard()),v=t(requireOmit()),C=t(requireEditOutlined()),I=t(requireCheckOutlined()),h=t(requireCopyOutlined()),y=t(require$$18),x=requireConfigProvider(),w=t(requireLocaleReceiver()),O=t(requireDevWarning()),F=t(requireTransButton()),b=t(requireRaf()),S=requireStyleChecker(),T=t(requireTooltip()),k=t(requireTypography()),L=t(requireEditable()),D=t(requireUtil()),P=function(Y,H){var K={};for(var N in Y)Object.prototype.hasOwnProperty.call(Y,N)&&H.indexOf(N)<0&&(K[N]=Y[N]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,N=Object.getOwnPropertySymbols(Y);W<N.length;W++)H.indexOf(N[W])<0&&Object.prototype.propertyIsEnumerable.call(Y,N[W])&&(K[N[W]]=Y[N[W]]);return K},M=(0,S.isStyleSupport)("webkitLineClamp"),q=(0,S.isStyleSupport)("textOverflow");function U(Y,H){var K=Y.mark,N=Y.code,W=Y.underline,j=Y.delete,A=Y.strong,$=Y.keyboard,Z=H;function Q(E,_){!E||(Z=f.createElement(_,{},Z))}return Q(A,"strong"),Q(W,"u"),Q(j,"del"),Q(N,"code"),Q(K,"mark"),Q($,"kbd"),Z}var B="...",V=function(Y){(0,u.default)(K,Y);var H=(0,d.default)(K);function K(){var N;return(0,l.default)(this,K),N=H.apply(this,arguments),N.contentRef=f.createRef(),N.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},N.getPrefixCls=function(){var W=N.props.prefixCls,j=N.context.getPrefixCls;return j("typography",W)},N.onExpandClick=function(W){var j=N.getEllipsis(),A=j.onExpand;N.setState({expanded:!0}),A&&A(W)},N.onEditClick=function(){N.triggerEdit(!0)},N.onEditChange=function(W){var j=N.getEditable(),A=j.onChange;A&&A(W),N.triggerEdit(!1)},N.onEditCancel=function(){N.triggerEdit(!1)},N.onCopyClick=function(W){W.preventDefault();var j=N.props,A=j.children,$=j.copyable,Z=(0,s.default)({},(0,a.default)($)==="object"?$:null);Z.text===void 0&&(Z.text=String(A)),(0,g.default)(Z.text||""),N.setState({copied:!0},function(){Z.onCopy&&Z.onCopy(),N.copyId=window.setTimeout(function(){N.setState({copied:!1})},3e3)})},N.setEditRef=function(W){N.editIcon=W},N.triggerEdit=function(W){var j=N.getEditable(),A=j.onStart;W&&A&&A(),N.setState({edit:W},function(){!W&&N.editIcon&&N.editIcon.focus()})},N.resizeOnNextFrame=function(){b.default.cancel(N.rafId),N.rafId=(0,b.default)(function(){N.syncEllipsis()})},N}return(0,c.default)(K,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(W){var j=this.props.children,A=this.getEllipsis(),$=this.getEllipsis(W);(j!==W.children||A.rows!==$.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),b.default.cancel(this.rafId)}},{key:"getEditable",value:function(W){var j=this.state.edit,A=W||this.props,$=A.editable;return $?(0,s.default)({editing:j},(0,a.default)($)==="object"?$:null):{editing:j}}},{key:"getEllipsis",value:function(W){var j=W||this.props,A=j.ellipsis;return A?(0,s.default)({rows:1,expandable:!1},(0,a.default)(A)==="object"?A:null):{}}},{key:"canUseCSSEllipsis",value:function(){var W=this.state.clientRendered,j=this.props,A=j.editable,$=j.copyable,Z=this.getEllipsis(),Q=Z.rows,E=Z.expandable,_=Z.suffix,z=Z.onEllipsis,X=Z.tooltip;return _||X||A||$||E||!W||z?!1:Q===1?q:M}},{key:"syncEllipsis",value:function(){var W=this.state,j=W.ellipsisText,A=W.isEllipsis,$=W.expanded,Z=this.getEllipsis(),Q=Z.rows,E=Z.suffix,_=Z.onEllipsis,z=this.props.children;if(!(!Q||Q<0||!this.contentRef.current||$)&&!this.canUseCSSEllipsis()){(0,O.default)((0,p.default)(z).every(function(se){return typeof se=="string"}),"Typography","`ellipsis` should use string as children only.");var X=(0,D.default)(this.contentRef.current,{rows:Q,suffix:E},z,this.renderOperations(!0),B),ne=X.content,ee=X.text,oe=X.ellipsis;(j!==ee||A!==oe)&&(this.setState({ellipsisText:ee,ellipsisContent:ne,isEllipsis:oe}),A!==oe&&_&&_(oe))}}},{key:"renderExpand",value:function(W){var j=this.getEllipsis(),A=j.expandable,$=j.symbol,Z=this.state,Q=Z.expanded,E=Z.isEllipsis;if(!A||!W&&(Q||!E))return null;var _;return $?_=$:_=this.expandStr,f.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},_)}},{key:"renderEdit",value:function(){var W=this.props.editable;if(!!W){var j=W.icon,A=W.tooltip,$=(0,p.default)(A)[0]||this.editStr,Z=typeof $=="string"?$:"";return f.createElement(T.default,{key:"edit",title:A===!1?"":$},f.createElement(F.default,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Z},j||f.createElement(C.default,{role:"button"})))}}},{key:"renderCopy",value:function(){var W=this.state.copied,j=this.props.copyable;if(!!j){var A=this.getPrefixCls(),$=j.tooltips,Z=(0,p.default)($);Z.length===0&&(Z=[this.copyStr,this.copiedStr]);var Q=W?Z[1]:Z[0],E=typeof Q=="string"?Q:"",_=(0,p.default)(j.icon);return f.createElement(T.default,{key:"copy",title:$===!1?"":Q},f.createElement(F.default,{className:(0,m.default)("".concat(A,"-copy"),W&&"".concat(A,"-copy-success")),onClick:this.onCopyClick,"aria-label":E},W?_[1]||f.createElement(I.default,null):_[0]||f.createElement(h.default,null)))}}},{key:"renderEditInput",value:function(){var W=this.props,j=W.children,A=W.className,$=W.style,Z=this.context.direction,Q=this.getEditable(),E=Q.maxLength,_=Q.autoSize;return f.createElement(L.default,{value:typeof j=="string"?j:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:A,style:$,direction:Z,maxLength:E,autoSize:_})}},{key:"renderOperations",value:function(W){return[this.renderExpand(W),this.renderEdit(),this.renderCopy()].filter(function(j){return j})}},{key:"renderContent",value:function(){var W=this,j=this.state,A=j.ellipsisContent,$=j.isEllipsis,Z=j.expanded,Q=this.props,E=Q.component,_=Q.children,z=Q.className,X=Q.type,ne=Q.disabled,ee=Q.style,oe=P(Q,["component","children","className","type","disabled","style"]),se=this.context.direction,ie=this.getEllipsis(),ce=ie.rows,pe=ie.suffix,ve=ie.tooltip,Re=this.getPrefixCls(),he=(0,v.default)(oe,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat((0,r.default)(x.configConsumerProps))),Fe=this.canUseCSSEllipsis(),ye=ce===1&&Fe,_e=ce&&ce>1&&Fe,xe=_;if(ce&&$&&!Z&&!Fe){var Ee=oe.title,re=Ee||"";!Ee&&(typeof _=="string"||typeof _=="number")&&(re=String(_)),re=re==null?void 0:re.slice(String(A||"").length),xe=f.createElement(f.Fragment,null,A,f.createElement("span",{title:re,"aria-hidden":"true"},B),pe),ve&&(xe=f.createElement(T.default,{title:ve===!0?_:ve},f.createElement("span",null,xe)))}else xe=f.createElement(f.Fragment,null,_,pe);return xe=U(this.props,xe),f.createElement(w.default,{componentName:"Text"},function(ae){var Ie,me=ae.edit,ue=ae.copy,ge=ae.copied,be=ae.expand;return W.editStr=me,W.copyStr=ue,W.copiedStr=ge,W.expandStr=be,f.createElement(y.default,{onResize:W.resizeOnNextFrame,disabled:!ce},f.createElement(k.default,(0,s.default)({className:(0,m.default)((Ie={},(0,o.default)(Ie,"".concat(Re,"-").concat(X),X),(0,o.default)(Ie,"".concat(Re,"-disabled"),ne),(0,o.default)(Ie,"".concat(Re,"-ellipsis"),ce),(0,o.default)(Ie,"".concat(Re,"-ellipsis-single-line"),ye),(0,o.default)(Ie,"".concat(Re,"-ellipsis-multiple-line"),_e),Ie),z),style:(0,s.default)((0,s.default)({},ee),{WebkitLineClamp:_e?ce:void 0}),component:E,ref:W.contentRef,direction:se},he),xe,W.renderOperations()))})}},{key:"render",value:function(){var W=this.getEditable(),j=W.editing;return j?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(W){var j=W.children,A=W.editable;return(0,O.default)(!A||typeof j=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),K}(f.Component);V.contextType=x.ConfigContext,V.defaultProps={children:""};var G=V;e.default=G}(Base)),Base}(function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=n(React__default.default),a=t(requireDevWarning()),s=t(requireBase()),l=requireType(),c=function(m,p){var g={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&p.indexOf(v)<0&&(g[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(m);C<v.length;C++)p.indexOf(v[C])<0&&Object.prototype.propertyIsEnumerable.call(m,v[C])&&(g[v[C]]=m[v[C]]);return g},u=(0,l.tupleNum)(1,2,3,4,5),d=function(p){var g=p.level,v=g===void 0?1:g,C=c(p,["level"]),I;return u.indexOf(v)!==-1?I="h".concat(v):((0,a.default)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),I="h1"),r.createElement(s.default,(0,o.default)({},C,{component:I}))},f=d;e.default=f})(Title$3);const Title$2=getDefaultExportFromCjs(Title$3),{getValueForOperator}=ooui.graphProcessor,fontGrowFactor=.7,minFontSize=30,GraphIndicator=e=>{const{model:n,domain:t,context:o,colorCondition:r,totalDomain:a,showPercent:s=!1,icon:l,suffix:c,field:u,operator:d}=e,[f,m]=React.useState(!1),[p,g]=React.useState(),[v,C]=React.useState(),[I,h]=React.useState(),[y,x]=React.useState(0),[w,O]=React.useState(0),[F,b]=React.useState(),[S,T]=React.useState(),[k,L]=React.useState();React.useEffect(()=>{P()},[n,r]);async function D(M){if(u&&d){const q=await ConnectionProvider.getHandler().searchAllIds({params:M,model:n,context:o}),U=await ConnectionProvider.getHandler().readObjects({model:n,ids:q,fieldsToRetrieve:[u],context:o});return getValueForOperator({values:U.map(B=>B[u]),operator:d})}else return await ConnectionProvider.getHandler().searchCount({model:n,params:M,context:o})}async function P(){m(!0);let M,q;try{const U=await D(t);if(g(U),a){const B=await ConnectionProvider.getHandler().evalDomain({domain:a,values:{},context:o});M=await D(B),h(M)}if(M?(q=Math.round(U/M*100*100)/100,C(q)):C(0),r){const B=await ConnectionProvider.getHandler().parseCondition({condition:r,values:{value:U,percent:q},context:o});b(B)}if(l)if(l.indexOf(":")!==-1){const B=await ConnectionProvider.getHandler().parseCondition({condition:l,values:{value:U,percent:q},context:o});T(B)}else T(l)}catch(U){L(JSON.stringify(U))}m(!1)}return k?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:k,type:"error",banner:!0}):f?jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})}):jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:M=>{var q,U;x((q=M.bounds)==null?void 0:q.height),O((U=M.bounds)==null?void 0:U.width)},children:({measureRef:M})=>s?jsxRuntime.jsx(PercentageIndicator,{value:p,total:I,percent:v,measureRef:M,height:y,width:w,color:F,icon:S,suffix:c}):jsxRuntime.jsx(CommonIndicator,{value:p,total:I,measureRef:M,height:y,width:w,color:F,icon:S,suffix:c})})};function getTextWidth(e,n){const o=document.createElement("canvas").getContext("2d");return o.font=n||getComputedStyle(document.body).font,o.measureText(e).width}function CommonIndicator({measureRef:e,width:n,height:t,total:o,value:r,color:a,icon:s,suffix:l}){let c=t*fontGrowFactor<minFontSize?minFontSize:t*fontGrowFactor,u=o?`${r}/${o}`:`${r}`;l&&(u+=" "+l);let d=getTextWidth(u,`bold ${Math.floor(c*1.03)}px sans-serif`);s&&(d=d*2),d>=n*.85&&(c=n*.85/d*c);const f=s&&iconMapper(s);return jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:jsxRuntime.jsxs(Title$2,{style:{fontSize:c,margin:0,color:a},children:[f&&jsxRuntime.jsx(f,{style:{fontSize:c*.7}}),f?` ${u}`:u]})})}function PercentageIndicator({measureRef:e,height:n,width:t,percent:o,total:r,value:a,color:s,icon:l,suffix:c}){const u=n*.65;let d=u*fontGrowFactor<minFontSize?minFontSize:u*fontGrowFactor,f=r?`${a}/${r}`:`${a}`;c&&(f+=" "+c);const m=`${o}%`;let p=getTextWidth(m,`bold ${Math.floor(d*1.03)}px sans-serif`);l&&(p=p*1.5);const g=l&&iconMapper(l);return(p>=t*.85||d*2<u)&&(d=t*.85/p*d),jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexDirection:"column",padding:"0.2rem"},children:jsxRuntime.jsxs(antd.Row,{align:"middle",children:[g&&jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(g,{style:{fontSize:d*1,color:s,paddingRight:"10px"}})}),jsxRuntime.jsxs(antd.Col,{children:[jsxRuntime.jsx(Title$2,{style:{fontSize:d*.8,margin:0,color:s},children:g?` ${o}%`:`${o}%`}),jsxRuntime.jsx(Title$2,{style:{fontSize:d*.4,margin:0,color:s,textAlign:"center"},children:f})]})]})})}const DefaultGraphOptions={default:{padding:"auto",xAxis:{tickCount:5},legend:{maxWidthRatio:.5,maxItemWidth:1e3}},pie:{appendPadding:10,radius:.9,label:{type:"inner",offset:"-30%",content:({percent:e})=>`${(e*100).toFixed(0)}%`,style:{fontSize:14,textAlign:"center"}},legend:{maxWidthRatio:.5,maxItemWidth:1e3},interactions:[{type:"element-active"}]},barGrouped:{isGroup:!0,legend:{maxWidthRatio:.5,maxItemWidth:1e3},label:{position:"middle",layout:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"}]}}},{processGraphData}=ooui.graphProcessor,{getFieldsToRetrieve}=ooui.graphFieldUtils,useGraphData=e=>{const{model:n,domain:t=[],context:o={},xml:r,limit:a,uninformedString:s}=e,[l,c]=React.useState(!1),[u,d]=React.useState(),[f,m]=React.useState(),[p,g]=React.useState("line");return useDeepCompareEffect__default.default(()=>{(async()=>{c(!0),d(void 0);const v=ooui.parseGraph(r);g(v.type||"line");const C=getFieldsToRetrieve({ooui:v});let I,h;try{({values:I,fields:h}=await retrieveData({model:n,domain:t,context:o,limit:a,order:v.timerange?v.x.name:null,fields:C}))}catch(y){d("Error fetching graph data values: "+JSON.stringify(y)),c(!1);return}try{if(!I||!h){d("No values or fields returned"),c(!1);return}const y=processGraphData({ooui:v,values:I,fields:h,options:{uninformedString:s}});m(y)}catch(y){d("Error processing graph data: "+y),c(!1);return}c(!1)})()},[r,n,a,o,t]),{loading:l,error:u,type:p,values:f}};async function getFieldsForModel({model:e,context:n,fields:t}){return await ConnectionProvider.getHandler().getFields({model:e,context:n,fields:t})}async function retrieveData({fields:e,model:n,domain:t,context:o,order:r,limit:a}){const s=await ConnectionProvider.getHandler().search({model:n,params:t,fields:e,context:o,limit:a,order:r}),l=await getFieldsForModel({model:n,context:o,fields:e});return{values:s,fields:l}}const types={line:plots.Line,bar:plots.Column,pie:plots.Pie},GraphChart=e=>{const{model:n,domain:t,context:o,xml:r,limit:a}=e,{t:s}=React.useContext(LocaleContext),{error:l,loading:c,values:u,type:d}=useGraphData({model:n,xml:r,limit:a,domain:t,context:o,uninformedString:s("uninformed")});if(l)return jsxRuntime.jsx(antd.Alert,{message:l,type:"error",banner:!0});if(c)return jsxRuntime.jsx(antd.Spin,{});if(!u)return jsxRuntime.jsx(antd.Alert,{message:"No data to display",type:"info"});const{data:f,isGroup:m,isStack:p}=u,g=types[d];return g?jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(g,{...getGraphProps({type:d,data:f,isGroup:m,isStack:p})})}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Unknown graph type: ${d}`})};function getGraphProps(e){const{type:n,data:t,isGroup:o,isStack:r}=e;let a=DefaultGraphOptions[n];return a||(a=DefaultGraphOptions.default),a.data=t,n==="pie"?(a.colorField="x",a.angleField="value"):(a.xField="x",a.yField="value",a.seriesField="type",a.isGroup=o,r&&(a.isStack=!0,a.groupField="stacked")),a}const Graph=e=>{const{view_id:n,model:t,context:o,domain:r,limit:a}=e,[s,l]=React.useState(!1),[c,u]=React.useState(),[d,f]=React.useState();React.useEffect(()=>{m()},[n]);async function m(){l(!0);try{const p=await ConnectionProvider.getHandler().getView({model:t,id:n,type:"graph",context:o});f(p.arch);const g=ooui.parseGraph(p.arch);u(g)}catch(p){return console.error(p),jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(p)})}l(!1)}if(s)return jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})});if(!c)return null;switch(c.type){case"indicatorField":case"indicator":{const p=c,g=p.type==="indicatorField"?{field:p.field,operator:p.operator}:{};return jsxRuntime.jsx(GraphIndicator,{showPercent:p.showPercent,totalDomain:p.totalDomain,colorCondition:p.color,model:t,context:o,domain:r,icon:p.icon,suffix:p.suffix,...g})}case"line":case"bar":case"pie":return jsxRuntime.jsx(GraphChart,{model:t,context:o,domain:r,xml:d,limit:a});default:return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Graph ${c.type} not implemented`})}},{confirm:confirm$2}=antd.Modal,showDialog$2=({onOk:e,lang:n})=>{confirm$2({title:tForLang("removeItems",n),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRemove",n),okText:tForLang("yesConfirmRemove",n),onOk:e,cancelText:tForLang("cancel",n)})},{confirm:confirm$1}=antd.Modal,showDialog$1=({onOk:e,lang:n})=>{confirm$1({title:tForLang("unlinkItems",n),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmUnlink",n),okText:tForLang("yesConfirmUnlink",n),onOk:e,cancelText:tForLang("cancel",n)})},One2manyTopBar=e=>{const{title:n,readOnly:t,onCreateItem:o,onToggleViewMode:r,mode:a,onDelete:s,totalItems:l,currentItemIndex:c,onPreviousItem:u,onNextItem:d,isMany2Many:f,onSearchItem:m,selectedRowKeys:p,showCreateButton:g,showToggleButton:v}=e;function C(){return jsxRuntime.jsx("div",{className:"inline-block w-3"})}function I(){return jsxRuntime.jsx("div",{className:"h-8 flex flex-grow bg-gray-700 text-gray-200",children:jsxRuntime.jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsxRuntime.jsx("span",{className:"pl-2 font-bold",children:n})})})}function h(){return jsxRuntime.jsx(ButtonWithTooltip,{tooltip:f?"Unlink":"Delete",icon:f?jsxRuntime.jsx(Icon.ApiOutlined,{}):jsxRuntime.jsx(Icon.DeleteOutlined,{}),onClick:s,disabled:l===0||t||a!=="form"&&p.length===0})}function y(){let w="_";return l===0?w="_":w=(c+1).toString(),jsxRuntime.jsxs("span",{className:"pl-1 pr-1",children:["(",w,"/",l,")"]})}function x(){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Previous item",icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),onClick:u}),y(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Next item",icon:jsxRuntime.jsx(Icon.RightOutlined,{}),onClick:d})]})}return jsxRuntime.jsxs("div",{className:"flex mb-2",children:[I(),jsxRuntime.jsxs("div",{className:"h-8 flex-none pl-2",children:[a!=="graph"&&g&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Create new item",icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),disabled:t,onClick:o}),f&&g&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Search existing item",icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:t,onClick:m}),a!=="graph"&&C(),a!=="graph"&&h(),a==="form"&&x(),C(),v&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Toggle view mode",icon:jsxRuntime.jsx(Icon.AlignLeftOutlined,{}),onClick:r})]})]})},ViewObjects={form:ooui.Form,tree:ooui.Tree,graph:Graph};function filterDuplicateItems(e){const n=e.map(o=>o.id);return e.filter((o,r)=>{const{id:a}=o;return!n.includes(a,r+1)})}const One2manyInput=e=>{var Ee;const{value:n,onChange:t,ooui:o,views:r}=e,{items:a=[]}=n||{},{currentView:s,setCurrentView:l,itemIndex:c,setItemIndex:u}=React.useContext(One2manyContext),d=React.useContext(FormContext$1),{activeId:f,getValues:m,getContext:p,domain:g}=d||{},{lang:v,t:C}=React.useContext(LocaleContext),I=React.useRef(),[h,y]=React.useState(!1),[x,w]=React.useState(!1),[O,F]=React.useState(),[b,S]=React.useState(!1),[T,k]=React.useState(!1),[L,D]=React.useState(),[P,M]=React.useState([]),[q,U]=React.useState(!1),B=React.useRef([]),[V,G]=React.useState(),Y=React.useRef(),{readOnly:H,relation:K,context:N,domain:W}=o,j=o.type==="many2many",{id:A}=o,$=a.filter(re=>re.values&&re.operation!=="pendingRemove");React.useEffect(()=>{a.some(re=>!re.values)&&Q()},[a]),React.useEffect(()=>{_()},[g]);const Z=re=>{var ae,Ie;t==null||t({fields:((ae=r.get("form"))==null?void 0:ae.fields)||((Ie=r.get("tree"))==null?void 0:Ie.fields),items:filterDuplicateItems(re)})},Q=async()=>{await E(),c>$.length-1&&c!==0&&u(0)},E=async()=>{var re;w(!0),y(!1),F(void 0);try{const ae=await readObjectValues({treeFields:r.get("tree").fields,formFields:((re=r.get("form"))==null?void 0:re.fields)||{},model:K,items:a,context:{...p==null?void 0:p(),...N}});Y.current||(Y.current=ae.map(Ie=>Ie.id)),Z(ae)}catch(ae){F(ae)}finally{w(!1)}};async function _(){W&&(B.current=ooui.transformDomainForChildWidget({domain:await ConnectionProvider.getHandler().evalDomain({domain:W,values:m(),context:p()}),widgetFieldName:A})),g&&g.length>0&&(B.current=B.current.concat(ooui.transformDomainForChildWidget({domain:g,widgetFieldName:A})))}const z=()=>{const re=Array.from(r.keys()),ae=re[(re.indexOf(s)+1)%re.length];s==="form"?oe(()=>{l(ae)}):l(ae)},X=()=>{c>0&&(s==="form"?oe(()=>{u(c-1)}):u(c-1))},ne=()=>{const re=$.length;c<re-1&&(s==="form"?oe(()=>{u(c+1)}):u(c+1))},ee=async()=>{const re=$[c].id,ae=(await ConnectionProvider.getHandler().readObjects({model:K,ids:[re],fields:r.get("form").fields,context:{...p==null?void 0:p(),...N}}))[0],Ie=(await ConnectionProvider.getHandler().readObjects({model:K,ids:[re],fields:r.get("tree").fields,context:{...p==null?void 0:p(),...N}}))[0],me=a.map(ue=>ue.id===re?{...ue,operation:"original",values:ae,treeValues:Ie}:ue);Z(me)},oe=re=>{h?showDialog$6({lang:v,onOk:()=>{ee(),re(),y(!1)}}):re()},se=()=>{if(j){showDialog$1({lang:v,onOk:()=>{s==="form"?pe():ve()}});return}showDialog$2({lang:v,onOk:()=>{s==="form"?pe():ve()}})},ie=async()=>{const{inv_field:re}=o;let ae;re&&f&&(ae={[re]:f}),s==="form"?oe(()=>{U(!0),D({defaultValues:ae}),S(!0)}):(U(!0),D({defaultValues:ae}),S(!0))},ce=async()=>{s==="form"?oe(()=>{k(!0)}):k(!0)},pe=async()=>{w(!0),y(!1),F(void 0);try{if($[c].id>0){const re=a.map(ae=>ae.id===$[c].id?{...ae,operation:"pendingRemove"}:ae);Z(re)}else Z(a.filter(re=>re.id!==$[c].id))}catch(re){F(re)}u(0),w(!1)},ve=async()=>{const re=$.filter(ae=>P.includes(ae.id));w(!0),y(!1),F(void 0);try{const ae=re.map(me=>me.id),Ie=a.filter(me=>!(ae.includes(me.id)&&me.id<0)).map(me=>ae.includes(me.id)?{...me,operation:"pendingRemove"}:me);Z(Ie)}catch(ae){F(ae)}u(0),w(!1)},Re=(re,ae,Ie)=>{let me;if(re)me=a.map(ue=>ue.id===re?{id:re,operation:re>0?"pendingUpdate":"pendingCreate",values:{...Ie,id:re},treeValues:{...Ie,id:re}}:ue);else{const ue=getNextPendingId(a);me=a.concat({id:ue,operation:"pendingCreate",values:{...Ie,id:ue},treeValues:{...Ie,id:ue}})}Z(me),q||S(!1)},he=re=>{const{id:ae}=re;D(a.find(Ie=>Ie.id===ae)),U(!1),S(!0)},Fe=async re=>{w(!0);let ae=a;const Ie=re.filter(me=>!a.find(ue=>ue.id===me));try{for(const me of Ie){const ue=(await ConnectionProvider.getHandler().readObjects({model:K,ids:[me],fields:r.get("form").fields,context:{...p==null?void 0:p(),...N}}))[0],ge=(await ConnectionProvider.getHandler().readObjects({model:K,ids:[me],fields:r.get("tree").fields,context:{...p==null?void 0:p(),...N}}))[0];ae.push({id:me,operation:"pendingLink",values:ue,treeValues:ge})}Z(ae)}catch(me){F(me)}finally{w(!1)}};function ye(){const re=ViewObjects[s];if(s==="graph")return ooui.parseGraph(r.get("graph").arch).string;{const ae=new re(r.get(s).fields);return ae.parse(r.get(s).arch),ae.string}}const _e=()=>{var ae,Ie,me,ue;if(s==="form")return $.length===0?C("noCurrentEntries"):jsxRuntime.jsx(Form$1,{formView:r.get("form"),values:(ae=$[c])==null?void 0:ae.values,parentContext:{...p==null?void 0:p(),...N},ref:I,model:K,id:(Ie=$[c])==null?void 0:Ie.id,submitMode:"values",onFieldsChange:ge=>{var Se;const be=(Se=$[c])==null?void 0:Se.id,Te=a.map(Pe=>Pe.id===be?{...Pe,operation:Pe.operation==="original"?"pendingUpdate":Pe.operation,values:{...ge,id:be},treeValues:{...ge,id:be}}:Pe);Z(Te),y(!0)},readOnly:H});const re=V?sortResults({resultsToSort:$.map(ge=>ge.treeValues),sorter:V,fields:{...r.get("tree").fields,...((me=r.get("form"))==null?void 0:me.fields)||{}}}):$.map(ge=>ge.treeValues);if(s==="tree")return jsxRuntime.jsx(Tree,{total:$.length,limit:$.length,treeView:r.get("tree"),results:re,loading:x,onRowClicked:((ue=r.get("form"))==null?void 0:ue.fields)!==void 0?he:void 0,showPagination:!1,rowSelection:{selectedRowKeys:P,onChange:M},sorter:V,onChangeSort:G});if(s==="graph"){const ge=[[`${o.inv_field}`,"=",f]];return jsxRuntime.jsx(Graph,{view_id:r.get("graph").view_id,model:o.relation,domain:ge,context:{...p==null?void 0:p(),...N},limit:0})}};if(O)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:O,type:"error",banner:!0});const xe=q;return x?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(One2manyTopBar,{mode:s,title:ye(),readOnly:H,isMany2Many:j,formHasChanges:h,totalItems:$.length,currentItemIndex:c,onDelete:se,onCreateItem:ie,onToggleViewMode:z,onPreviousItem:X,onNextItem:ne,onSearchItem:ce,selectedRowKeys:P,showCreateButton:((Ee=r.get("form"))==null?void 0:Ee.fields)!==void 0,showToggleButton:r.size>1}),_e(),jsxRuntime.jsx(FormModal,{formView:r.get("form"),model:K,id:L==null?void 0:L.id,submitMode:"values",values:L==null?void 0:L.values,defaultValues:L==null?void 0:L.defaultValues,visible:b,onSubmitSucceed:Re,parentContext:{...p==null?void 0:p(),...N},onCancel:()=>{U(!1),S(!1)},readOnly:H,mustClearAfterSave:xe}),jsxRuntime.jsx(SearchModal,{domain:B.current,model:K,context:{...p==null?void 0:p(),...N},visible:T,onSelectValues:async re=>{k(!1),Fe(re)},onCloseModal:()=>{k(!1)}})]})},One2many=e=>{const{ooui:n}=e,{mode:t,relation:o,views:r,required:a,context:s}=n;let l;const[c,u]=React.useState(!0),[d,f]=React.useState(),[m,p]=React.useState(new Map),g=React.useContext(FormContext$1),{getContext:v}=g||{};useDeepCompareEffect__default.default(()=>{I()},[n]);const C=async y=>r&&r[y]?r[y]:await ConnectionProvider.getHandler().getView({model:o,type:y,context:{...v==null?void 0:v(),...s}}),I=async()=>{u(!0),f(void 0);try{if(t&&t.length>0){for(const y of t){const x=await C(y);m.set(y,x)}p(m)}else{const y=await C("form"),x=await C("tree");m.set("form",y),m.set("tree",x),p(m)}}catch(y){f(JSON.stringify(y))}finally{u(!1)}};if(t&&t.length>0?l=t[0]:l="tree",c)return jsxRuntime.jsx(antd.Spin,{});if(d)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:d,type:"error",banner:!0});const h=async(y,x)=>{if(!x)throw new Error;if(!x.items)throw new Error;if(!Array.isArray(x.items))throw new Error;if(x.items.length===0)throw new Error};return jsxRuntime.jsx(One2manyProvider,{initialView:l,children:jsxRuntime.jsx(Field$1,{required:a,type:"array",validator:h,...e,children:jsxRuntime.jsx(One2manyInput,{ooui:n,views:m})})})},FloatTime=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"number",...e,children:jsxRuntime.jsx(FloatTimeInput,{ooui:n})})},FloatTimeInput=e=>{const{ooui:n,value:t,onChange:o}=e,{id:r,readOnly:a,required:s}=n,l=s&&!a?Config.requiredClass:void 0,c=React.useRef(),[u,d]=React.useState(),f=React.useContext(FormContext$1),{elementHasLostFocus:m}=f||{};React.useEffect(()=>{d(parseFloatToString(t))},[t]);const p=C=>{o==null||o(C)};function g(C){c.current=C.target.value,d(C.target.value)}async function v(){p(parseStringToFloat(u)),await new Promise(C=>setTimeout(C,300)),m==null||m()}return jsxRuntime.jsx(antd.Input,{value:u,disabled:a,className:"w-full "+l,id:r,placeholder:"00:00",onChange:g,onBlur:v})},Fieldset=e=>{const{label:n,children:t}=e;return jsxRuntime.jsxs("fieldset",{className:"p-2 border-gray-400 border border-solid font-sans",children:[jsxRuntime.jsx("legend",{style:{all:"initial",marginLeft:"1em",paddingLeft:"0.5em",paddingRight:"0.5em",fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"},children:n}),t]})};function Group(e){const{ooui:n,showLabel:t=!0,responsiveBehaviour:o}=e;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:n.label&&t?jsxRuntime.jsx(Fieldset,{label:n.label,children:jsxRuntime.jsx(Container,{container:n.container,responsiveBehaviour:o})}):jsxRuntime.jsx(Container,{container:n.container,responsiveBehaviour:o})})}const{TabPane}=antd.Tabs;function Notebook(e){const{ooui:n,responsiveBehaviour:t}=e,o=n.pages;function r(a){if(a){const s=iconMapper(a);return s&&jsxRuntime.jsx(s,{})}}return jsxRuntime.jsx(antd.Tabs,{defaultActiveKey:"1",tabPosition:n.tabPosition,children:o.filter(a=>!a.invisible).map(a=>jsxRuntime.jsx(TabPane,{tab:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r(a.icon)," ",a.label]}),children:jsxRuntime.jsx(Group,{ooui:a,showLabel:!1,responsiveBehaviour:t})},a.label))})}const{TextArea}=antd.Input,Text$2=e=>{const{ooui:n}=e,{id:t,readOnly:o,required:r,height:a,translatable:s}=n,l=r&&!o?Config.requiredClass:void 0,c=React.useContext(FormContext$1),{elementHasLostFocus:u}=c||{};return jsxRuntime.jsx(Field$1,{required:r,...e,children:s?jsxRuntime.jsx(TranslatableText,{field:t,requiredClass:l,height:a}):jsxRuntime.jsx(TextArea,{disabled:o||s,className:l,style:{height:a?a+"px":"100%"},rows:4,onBlur:u})})},TranslatableText=({value:e,field:n,requiredClass:t,onChange:o,height:r})=>{const a=React.useContext(FormContext$1),{activeId:s,activeModel:l,fetchValues:c,formHasChanges:u,elementHasLostFocus:d}=a||{},[f,m]=React.useState(!1),{t:p}=React.useContext(LocaleContext);return s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(u!=null&&u()){showDialog$7(p("saveBeforeTranslate"));return}f||m(!0)},children:jsxRuntime.jsx(TextArea,{value:e,onChange:g=>{o==null||o(g.target.value)},style:{height:r?r+"px":"100%",cursor:"pointer"},id:n,disabled:!0,className:t,rows:4,onBlur:d})}),jsxRuntime.jsx(TranslationModal,{id:s,model:l,field:n,visible:f,onCloseModal:()=>{m(!1)},onSubmitSucceed:()=>{m(!1),c==null||c()}})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,children:jsxRuntime.jsx(TextArea,{value:e,onChange:g=>{o==null||o(g.target.value)},style:{height:r?r+"px":"100%"},id:n,className:t,rows:4,onBlur:d})}),jsxRuntime.jsx(antd.Row,{justify:"end",style:{paddingTop:5},children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:p("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{u!=null&&u()?showDialog$7(p("saveBeforeTranslate")):showDialog$7(p("enterTextBeforeTranslate"))},children:p("translate")})})]})},Separator=e=>{const{ooui:n}=e,{label:t}=n;return jsxRuntime.jsx(antd.Divider,{orientation:"left",className:"text-sm",children:t})};//! moment.js
119
+ `,One2manyContext=React__default.default.createContext(null),One2manyProvider=({children:e,initialView:n})=>{const[t,o]=React.useState(n),[r,a]=React.useState(0),[s,l]=React.useState(!1);return jsxRuntime.jsx(One2manyContext.Provider,{value:{currentView:t,setCurrentView:o,itemIndex:r,setItemIndex:a,manualTriggerChange:s,setManualTriggerChange:l},children:e})};var Title$3={},Base={},toArray$1={},hasRequiredToArray;function requireToArray(){if(hasRequiredToArray)return toArray$1;hasRequiredToArray=1;var e=interopRequireDefault.exports;Object.defineProperty(toArray$1,"__esModule",{value:!0}),toArray$1.default=o;var n=e(React__default.default),t=requireReactIs();function o(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=[];return n.default.Children.forEach(r,function(l){l==null&&!a.keepEmpty||(Array.isArray(l)?s=s.concat(o(l)):(0,t.isFragment)(l)&&l.props?s=s.concat(o(l.props.children,a)):s.push(l))}),s}return toArray$1}var toggleSelection,hasRequiredToggleSelection;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],o=0;o<e.rangeCount;o++)t.push(e.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(r){e.addRange(r)}),n&&n.focus()}}),toggleSelection}var copyToClipboard,hasRequiredCopyToClipboard;function requireCopyToClipboard(){if(hasRequiredCopyToClipboard)return copyToClipboard;hasRequiredCopyToClipboard=1;var e=requireToggleSelection(),n={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function o(a){var s=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,s)}function r(a,s){var l,c,u,d,f,m,p=!1;s||(s={}),l=s.debug||!1;try{u=e(),d=document.createRange(),f=document.getSelection(),m=document.createElement("span"),m.textContent=a,m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(v){if(v.stopPropagation(),s.format)if(v.preventDefault(),typeof v.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var C=n[s.format]||n.default;window.clipboardData.setData(C,a)}else v.clipboardData.clearData(),v.clipboardData.setData(s.format,a);s.onCopy&&(v.preventDefault(),s.onCopy(v.clipboardData))}),document.body.appendChild(m),d.selectNodeContents(m),f.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");p=!0}catch(v){l&&console.error("unable to copy using execCommand: ",v),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",a),s.onCopy&&s.onCopy(window.clipboardData),p=!0}catch(C){l&&console.error("unable to copy using clipboardData: ",C),l&&console.error("falling back to prompt"),c=o("message"in s?s.message:t),window.prompt(c,a)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),m&&document.body.removeChild(m),u()}return p}return copyToClipboard=r,copyToClipboard}var EditOutlined$2={exports:{}},EditOutlined$1={},EditOutlined={},hasRequiredEditOutlined$2;function requireEditOutlined$2(){if(hasRequiredEditOutlined$2)return EditOutlined;hasRequiredEditOutlined$2=1,Object.defineProperty(EditOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};return EditOutlined.default=e,EditOutlined}var hasRequiredEditOutlined$1;function requireEditOutlined$1(){if(hasRequiredEditOutlined$1)return EditOutlined$1;hasRequiredEditOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(EditOutlined$1,"__esModule",{value:!0}),EditOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireEditOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="EditOutlined";var l=o.forwardRef(s);return EditOutlined$1.default=l,EditOutlined$1}var hasRequiredEditOutlined;function requireEditOutlined(){return hasRequiredEditOutlined||(hasRequiredEditOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireEditOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(EditOutlined$2,EditOutlined$2.exports)),EditOutlined$2.exports}var CheckOutlined$2={exports:{}},CheckOutlined$1={},CheckOutlined={},hasRequiredCheckOutlined$2;function requireCheckOutlined$2(){if(hasRequiredCheckOutlined$2)return CheckOutlined;hasRequiredCheckOutlined$2=1,Object.defineProperty(CheckOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return CheckOutlined.default=e,CheckOutlined}var hasRequiredCheckOutlined$1;function requireCheckOutlined$1(){if(hasRequiredCheckOutlined$1)return CheckOutlined$1;hasRequiredCheckOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CheckOutlined$1,"__esModule",{value:!0}),CheckOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCheckOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CheckOutlined";var l=o.forwardRef(s);return CheckOutlined$1.default=l,CheckOutlined$1}var hasRequiredCheckOutlined;function requireCheckOutlined(){return hasRequiredCheckOutlined||(hasRequiredCheckOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCheckOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CheckOutlined$2,CheckOutlined$2.exports)),CheckOutlined$2.exports}var CopyOutlined$2={exports:{}},CopyOutlined$1={},CopyOutlined={},hasRequiredCopyOutlined$2;function requireCopyOutlined$2(){if(hasRequiredCopyOutlined$2)return CopyOutlined;hasRequiredCopyOutlined$2=1,Object.defineProperty(CopyOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return CopyOutlined.default=e,CopyOutlined}var hasRequiredCopyOutlined$1;function requireCopyOutlined$1(){if(hasRequiredCopyOutlined$1)return CopyOutlined$1;hasRequiredCopyOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(CopyOutlined$1,"__esModule",{value:!0}),CopyOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireCopyOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="CopyOutlined";var l=o.forwardRef(s);return CopyOutlined$1.default=l,CopyOutlined$1}var hasRequiredCopyOutlined;function requireCopyOutlined(){return hasRequiredCopyOutlined||(hasRequiredCopyOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireCopyOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(CopyOutlined$2,CopyOutlined$2.exports)),CopyOutlined$2.exports}const require$$18=getAugmentedNamespace(es$4);var transButton={},KeyCode={},hasRequiredKeyCode;function requireKeyCode(){if(hasRequiredKeyCode)return KeyCode;hasRequiredKeyCode=1,Object.defineProperty(KeyCode,"__esModule",{value:!0}),KeyCode.default=void 0;var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(o){var r=o.keyCode;if(o.altKey&&!o.ctrlKey||o.metaKey||r>=e.F1&&r<=e.F12)return!1;switch(r){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(o){if(o>=e.ZERO&&o<=e.NINE||o>=e.NUM_ZERO&&o<=e.NUM_MULTIPLY||o>=e.A&&o<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&o===0)return!0;switch(o){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},n=e;return KeyCode.default=n,KeyCode}var hasRequiredTransButton;function requireTransButton(){return hasRequiredTransButton||(hasRequiredTransButton=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=n(React__default.default),a=t(requireKeyCode()),s=function(d,f){var m={};for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&f.indexOf(p)<0&&(m[p]=d[p]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,p=Object.getOwnPropertySymbols(d);h<p.length;h++)f.indexOf(p[h])<0&&Object.prototype.propertyIsEnumerable.call(d,p[h])&&(m[p[h]]=d[p[h]]);return m},l={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},c=r.forwardRef(function(d,f){var m=function(x){var w=x.keyCode;w===a.default.ENTER&&x.preventDefault()},p=function(x){var w=x.keyCode,O=d.onClick;w===a.default.ENTER&&O&&O()},h=d.style,v=d.noStyle,C=d.disabled,I=s(d,["style","noStyle","disabled"]),g={};return v||(g=(0,o.default)({},l)),C&&(g.pointerEvents="none"),g=(0,o.default)((0,o.default)({},g),h),r.createElement("div",(0,o.default)({role:"button",tabIndex:0,ref:f},I,{onKeyDown:m,onKeyUp:p,style:g}))}),u=c;e.default=u}(transButton)),transButton}var raf$1={},raf={},hasRequiredRaf$1;function requireRaf$1(){if(hasRequiredRaf$1)return raf;hasRequiredRaf$1=1,Object.defineProperty(raf,"__esModule",{value:!0}),raf.default=t;var e=function(r){return+setTimeout(r,16)},n=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(r){return window.requestAnimationFrame(r)},n=function(r){return window.cancelAnimationFrame(r)});function t(o){return e(o)}return t.cancel=n,raf}var hasRequiredRaf;function requireRaf(){return hasRequiredRaf||(hasRequiredRaf=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=n(requireRaf$1()),o=0,r={};function a(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,c=o++,u=l;function d(){u-=1,u<=0?(s(),delete r[c]):r[c]=(0,t.default)(d)}return r[c]=(0,t.default)(d),c}a.cancel=function(l){l!==void 0&&(t.default.cancel(r[l]),delete r[l])},a.ids=r}(raf$1)),raf$1}var styleChecker={},canUseDom={},hasRequiredCanUseDom;function requireCanUseDom(){if(hasRequiredCanUseDom)return canUseDom;hasRequiredCanUseDom=1,Object.defineProperty(canUseDom,"__esModule",{value:!0}),canUseDom.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom}var hasRequiredStyleChecker;function requireStyleChecker(){if(hasRequiredStyleChecker)return styleChecker;hasRequiredStyleChecker=1;var e=interopRequireDefault.exports;Object.defineProperty(styleChecker,"__esModule",{value:!0}),styleChecker.detectFlexGapSupported=styleChecker.isStyleSupport=styleChecker.canUseDocElement=void 0;var n=e(requireCanUseDom()),t=function(){return(0,n.default)()&&window.document.documentElement};styleChecker.canUseDocElement=t;var o=function(l){if(t()){var c=Array.isArray(l)?l:[l],u=window.document.documentElement;return c.some(function(d){return d in u.style})}return!1};styleChecker.isStyleSupport=o;var r,a=function(){if(!t())return!1;if(r!==void 0)return r;var l=document.createElement("div");return l.style.display="flex",l.style.flexDirection="column",l.style.rowGap="1px",l.appendChild(document.createElement("div")),l.appendChild(document.createElement("div")),document.body.appendChild(l),r=l.scrollHeight===1,document.body.removeChild(l),r};return styleChecker.detectFlexGapSupported=a,styleChecker}var tooltip={};function contains(e,n){return e?e.contains(n):!1}function addEventListenerWrap(e,n,t,o){var r=ReactDOM__default.default.unstable_batchedUpdates?function(s){ReactDOM__default.default.unstable_batchedUpdates(t,s)}:t;return e.addEventListener&&e.addEventListener(n,r,o),{remove:function(){e.removeEventListener&&e.removeEventListener(n,r)}}}var Portal=React.forwardRef(function(e,n){var t=e.didUpdate,o=e.getContainer,r=e.children,a=React.useRef();React.useImperativeHandle(n,function(){return{}});var s=React.useRef(!1);return!s.current&&canUseDom$1()&&(a.current=o(),s.current=!0),React.useEffect(function(){t==null||t(e)}),React.useEffect(function(){return function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current)}},[]),a.current?ReactDOM__default.default.createPortal(r,a.current):null});function isPointsEq(e,n,t){return t?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function getAlignFromPlacement(e,n,t){var o=e[n]||{};return _objectSpread2$1(_objectSpread2$1({},o),t)}function getAlignPopupClassName(e,n,t,o){for(var r=t.points,a=Object.keys(e),s=0;s<a.length;s+=1){var l=a[s];if(isPointsEq(e[l].points,r,o))return"".concat(n,"-placement-").concat(l)}return""}const isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))};function getMotion(e){var n=e.prefixCls,t=e.motion,o=e.animation,r=e.transitionName;return t||(o?{motionName:"".concat(n,"-").concat(o)}:r?{motionName:r}:null)}function Mask(e){var n=e.prefixCls,t=e.visible,o=e.zIndex,r=e.mask,a=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!r)return null;var c={};return(a||l||s)&&(c=_objectSpread2$1({motionAppear:!0},getMotion({motion:a,prefixCls:n,transitionName:l,animation:s}))),jsxRuntime.jsx(CSSMotion,{...c,visible:t,removeOnLeave:!0,children:function(u){var d=u.className;return jsxRuntime.jsx("div",{style:{zIndex:o},className:classnamesExports("".concat(n,"-mask"),d)})}})}const isVisible=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var n=e.getBBox();if(n.width||n.height)return!0}if(e.getBoundingClientRect){var t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function _typeof(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(e)}function _defineProperty(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(t,!0).forEach(function(o){_defineProperty(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(t).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}var vendorPrefix,jsCssMap={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function getVendorPrefix(){if(vendorPrefix!==void 0)return vendorPrefix;vendorPrefix="";var e=document.createElement("p").style,n="Transform";for(var t in jsCssMap)t+n in e&&(vendorPrefix=t);return vendorPrefix}function getTransitionName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"TransitionProperty"):"transitionProperty"}function getTransformName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"Transform"):"transform"}function setTransitionProperty(e,n){var t=getTransitionName();t&&(e.style[t]=n,t!=="transitionProperty"&&(e.style.transitionProperty=n))}function setTransform(e,n){var t=getTransformName();t&&(e.style[t]=n,t!=="transform"&&(e.style.transform=n))}function getTransitionProperty(e){return e.style.transitionProperty||e.style[getTransitionName()]}function getTransformXY(e){var n=window.getComputedStyle(e,null),t=n.getPropertyValue("transform")||n.getPropertyValue(getTransformName());if(t&&t!=="none"){var o=t.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}var matrix2d=/matrix\((.*)\)/,matrix3d=/matrix3d\((.*)\)/;function setTransformXY(e,n){var t=window.getComputedStyle(e,null),o=t.getPropertyValue("transform")||t.getPropertyValue(getTransformName());if(o&&o!=="none"){var r,a=o.match(matrix2d);if(a)a=a[1],r=a.split(",").map(function(l){return parseFloat(l,10)}),r[4]=n.x,r[5]=n.y,setTransform(e,"matrix(".concat(r.join(","),")"));else{var s=o.match(matrix3d)[1];r=s.split(",").map(function(l){return parseFloat(l,10)}),r[12]=n.x,r[13]=n.y,setTransform(e,"matrix3d(".concat(r.join(","),")"))}}else setTransform(e,"translateX(".concat(n.x,"px) translateY(").concat(n.y,"px) translateZ(0)"))}var RE_NUM=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,getComputedStyleX;function forceRelayout(e){var n=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=n}function css(e,n,t){var o=t;if(_typeof(n)==="object"){for(var r in n)n.hasOwnProperty(r)&&css(e,r,n[r]);return}if(typeof o<"u"){typeof o=="number"&&(o="".concat(o,"px")),e.style[n]=o;return}return getComputedStyleX(e,n)}function getClientPosition(e){var n,t,o,r=e.ownerDocument,a=r.body,s=r&&r.documentElement;return n=e.getBoundingClientRect(),t=n.left,o=n.top,t-=s.clientLeft||a.clientLeft||0,o-=s.clientTop||a.clientTop||0,{left:t,top:o}}function getScroll(e,n){var t=e["page".concat(n?"Y":"X","Offset")],o="scroll".concat(n?"Top":"Left");if(typeof t!="number"){var r=e.document;t=r.documentElement[o],typeof t!="number"&&(t=r.body[o])}return t}function getScrollLeft(e){return getScroll(e)}function getScrollTop(e){return getScroll(e,!0)}function getOffset(e){var n=getClientPosition(e),t=e.ownerDocument,o=t.defaultView||t.parentWindow;return n.left+=getScrollLeft(o),n.top+=getScrollTop(o),n}function isWindow(e){return e!=null&&e==e.window}function getDocument(e){return isWindow(e)?e.document:e.nodeType===9?e:e.ownerDocument}function _getComputedStyle(e,n,t){var o=t,r="",a=getDocument(e);return o=o||a.defaultView.getComputedStyle(e,null),o&&(r=o.getPropertyValue(n)||o[n]),r}var _RE_NUM_NO_PX=new RegExp("^(".concat(RE_NUM,")(?!px)[a-z%]+$"),"i"),RE_POS=/^(top|right|bottom|left)$/,CURRENT_STYLE="currentStyle",RUNTIME_STYLE="runtimeStyle",LEFT="left",PX="px";function _getComputedStyleIE(e,n){var t=e[CURRENT_STYLE]&&e[CURRENT_STYLE][n];if(_RE_NUM_NO_PX.test(t)&&!RE_POS.test(n)){var o=e.style,r=o[LEFT],a=e[RUNTIME_STYLE][LEFT];e[RUNTIME_STYLE][LEFT]=e[CURRENT_STYLE][LEFT],o[LEFT]=n==="fontSize"?"1em":t||0,t=o.pixelLeft+PX,o[LEFT]=r,e[RUNTIME_STYLE][LEFT]=a}return t===""?"auto":t}typeof window<"u"&&(getComputedStyleX=window.getComputedStyle?_getComputedStyle:_getComputedStyleIE);function getOffsetDirection(e,n){return e==="left"?n.useCssRight?"right":e:n.useCssBottom?"bottom":e}function oppositeOffsetDirection(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function setLeftTop(e,n,t){css(e,"position")==="static"&&(e.style.position="relative");var o=-999,r=-999,a=getOffsetDirection("left",t),s=getOffsetDirection("top",t),l=oppositeOffsetDirection(a),c=oppositeOffsetDirection(s);a!=="left"&&(o=999),s!=="top"&&(r=999);var u="",d=getOffset(e);("left"in n||"top"in n)&&(u=getTransitionProperty(e)||"",setTransitionProperty(e,"none")),"left"in n&&(e.style[l]="",e.style[a]="".concat(o,"px")),"top"in n&&(e.style[c]="",e.style[s]="".concat(r,"px")),forceRelayout(e);var f=getOffset(e),m={};for(var p in n)if(n.hasOwnProperty(p)){var h=getOffsetDirection(p,t),v=p==="left"?o:r,C=d[p]-f[p];h===p?m[h]=v+C:m[h]=v-C}css(e,m),forceRelayout(e),("left"in n||"top"in n)&&setTransitionProperty(e,u);var I={};for(var g in n)if(n.hasOwnProperty(g)){var y=getOffsetDirection(g,t),x=n[g]-d[g];g===y?I[y]=m[y]+x:I[y]=m[y]-x}css(e,I)}function setTransform$1(e,n){var t=getOffset(e),o=getTransformXY(e),r={x:o.x,y:o.y};"left"in n&&(r.x=o.x+n.left-t.left),"top"in n&&(r.y=o.y+n.top-t.top),setTransformXY(e,r)}function setOffset(e,n,t){if(t.ignoreShake){var o=getOffset(e),r=o.left.toFixed(0),a=o.top.toFixed(0),s=n.left.toFixed(0),l=n.top.toFixed(0);if(r===s&&a===l)return}t.useCssRight||t.useCssBottom?setLeftTop(e,n,t):t.useCssTransform&&getTransformName()in document.body.style?setTransform$1(e,n):setLeftTop(e,n,t)}function each(e,n){for(var t=0;t<e.length;t++)n(e[t])}function isBorderBoxFn(e){return getComputedStyleX(e,"boxSizing")==="border-box"}var BOX_MODELS=["margin","border","padding"],CONTENT_INDEX=-1,PADDING_INDEX=2,BORDER_INDEX=1,MARGIN_INDEX=0;function swap(e,n,t){var o={},r=e.style,a;for(a in n)n.hasOwnProperty(a)&&(o[a]=r[a],r[a]=n[a]);t.call(e);for(a in n)n.hasOwnProperty(a)&&(r[a]=o[a])}function getPBMWidth(e,n,t){var o=0,r,a,s;for(a=0;a<n.length;a++)if(r=n[a],r)for(s=0;s<t.length;s++){var l=void 0;r==="border"?l="".concat(r).concat(t[s],"Width"):l=r+t[s],o+=parseFloat(getComputedStyleX(e,l))||0}return o}var domUtils={getParent:function e(n){var t=n;do t.nodeType===11&&t.host?t=t.host:t=t.parentNode;while(t&&t.nodeType!==1&&t.nodeType!==9);return t}};each(["Width","Height"],function(e){domUtils["doc".concat(e)]=function(n){var t=n.document;return Math.max(t.documentElement["scroll".concat(e)],t.body["scroll".concat(e)],domUtils["viewport".concat(e)](t))},domUtils["viewport".concat(e)]=function(n){var t="client".concat(e),o=n.document,r=o.body,a=o.documentElement,s=a[t];return o.compatMode==="CSS1Compat"&&s||r&&r[t]||s}});function getWH(e,n,t){var o=t;if(isWindow(e))return n==="width"?domUtils.viewportWidth(e):domUtils.viewportHeight(e);if(e.nodeType===9)return n==="width"?domUtils.docWidth(e):domUtils.docHeight(e);var r=n==="width"?["Left","Right"]:["Top","Bottom"],a=n==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height;getComputedStyleX(e);var s=isBorderBoxFn(e),l=0;(a==null||a<=0)&&(a=void 0,l=getComputedStyleX(e,n),(l==null||Number(l)<0)&&(l=e.style[n]||0),l=parseFloat(l)||0),o===void 0&&(o=s?BORDER_INDEX:CONTENT_INDEX);var c=a!==void 0||s,u=a||l;return o===CONTENT_INDEX?c?u-getPBMWidth(e,["border","padding"],r):l:c?o===BORDER_INDEX?u:u+(o===PADDING_INDEX?-getPBMWidth(e,["border"],r):getPBMWidth(e,["margin"],r)):l+getPBMWidth(e,BOX_MODELS.slice(o),r)}var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o,r=n[0];return r.offsetWidth!==0?o=getWH.apply(void 0,n):swap(r,cssShow,function(){o=getWH.apply(void 0,n)}),o}each(["width","height"],function(e){var n=e.charAt(0).toUpperCase()+e.slice(1);domUtils["outer".concat(n)]=function(o,r){return o&&getWHIgnoreDisplay(o,e,r?MARGIN_INDEX:BORDER_INDEX)};var t=e==="width"?["Left","Right"]:["Top","Bottom"];domUtils[e]=function(o,r){var a=r;if(a!==void 0){if(o){getComputedStyleX(o);var s=isBorderBoxFn(o);return s&&(a+=getPBMWidth(o,["padding","border"],t)),css(o,e,a)}return}return o&&getWHIgnoreDisplay(o,e,CONTENT_INDEX)}});function mix(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}var utils={getWindow:function e(n){if(n&&n.document&&n.setTimeout)return n;var t=n.ownerDocument||n;return t.defaultView||t.parentWindow},getDocument,offset:function e(n,t,o){if(typeof t<"u")setOffset(n,t,o||{});else return getOffset(n)},isWindow,each,css,clone:function e(n){var t,o={};for(t in n)n.hasOwnProperty(t)&&(o[t]=n[t]);var r=n.overflow;if(r)for(t in n)n.hasOwnProperty(t)&&(o.overflow[t]=n.overflow[t]);return o},mix,getWindowScrollLeft:function e(n){return getScrollLeft(n)},getWindowScrollTop:function e(n){return getScrollTop(n)},merge:function e(){for(var n={},t=0;t<arguments.length;t++)utils.mix(n,t<0||arguments.length<=t?void 0:arguments[t]);return n},viewportWidth:0,viewportHeight:0};mix(utils,domUtils);var getParent=utils.getParent;function getOffsetParent(e){if(utils.isWindow(e)||e.nodeType===9)return null;var n=utils.getDocument(e),t=n.body,o,r=utils.css(e,"position"),a=r==="fixed"||r==="absolute";if(!a)return e.nodeName.toLowerCase()==="html"?null:getParent(e);for(o=getParent(e);o&&o!==t&&o.nodeType!==9;o=getParent(o))if(r=utils.css(o,"position"),r!=="static")return o;return null}var getParent$1=utils.getParent;function isAncestorFixed(e){if(utils.isWindow(e)||e.nodeType===9)return!1;var n=utils.getDocument(e),t=n.body,o=null;for(o=getParent$1(e);o&&o!==t;o=getParent$1(o)){var r=utils.css(o,"position");if(r==="fixed")return!0}return!1}function getVisibleRectForElement(e,n){for(var t={left:0,right:1/0,top:0,bottom:1/0},o=getOffsetParent(e),r=utils.getDocument(e),a=r.defaultView||r.parentWindow,s=r.body,l=r.documentElement;o;){if((navigator.userAgent.indexOf("MSIE")===-1||o.clientWidth!==0)&&o!==s&&o!==l&&utils.css(o,"overflow")!=="visible"){var c=utils.offset(o);c.left+=o.clientLeft,c.top+=o.clientTop,t.top=Math.max(t.top,c.top),t.right=Math.min(t.right,c.left+o.clientWidth),t.bottom=Math.min(t.bottom,c.top+o.clientHeight),t.left=Math.max(t.left,c.left)}else if(o===s||o===l)break;o=getOffsetParent(o)}var u=null;if(!utils.isWindow(e)&&e.nodeType!==9){u=e.style.position;var d=utils.css(e,"position");d==="absolute"&&(e.style.position="fixed")}var f=utils.getWindowScrollLeft(a),m=utils.getWindowScrollTop(a),p=utils.viewportWidth(a),h=utils.viewportHeight(a),v=l.scrollWidth,C=l.scrollHeight,I=window.getComputedStyle(s);if(I.overflowX==="hidden"&&(v=a.innerWidth),I.overflowY==="hidden"&&(C=a.innerHeight),e.style&&(e.style.position=u),n||isAncestorFixed(e))t.left=Math.max(t.left,f),t.top=Math.max(t.top,m),t.right=Math.min(t.right,f+p),t.bottom=Math.min(t.bottom,m+h);else{var g=Math.max(v,f+p);t.right=Math.min(t.right,g);var y=Math.max(C,m+h);t.bottom=Math.min(t.bottom,y)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function adjustForViewport(e,n,t,o){var r=utils.clone(e),a={width:n.width,height:n.height};return o.adjustX&&r.left<t.left&&(r.left=t.left),o.resizeWidth&&r.left>=t.left&&r.left+a.width>t.right&&(a.width-=r.left+a.width-t.right),o.adjustX&&r.left+a.width>t.right&&(r.left=Math.max(t.right-a.width,t.left)),o.adjustY&&r.top<t.top&&(r.top=t.top),o.resizeHeight&&r.top>=t.top&&r.top+a.height>t.bottom&&(a.height-=r.top+a.height-t.bottom),o.adjustY&&r.top+a.height>t.bottom&&(r.top=Math.max(t.bottom-a.height,t.top)),utils.mix(r,a)}function getRegion(e){var n,t,o;if(!utils.isWindow(e)&&e.nodeType!==9)n=utils.offset(e),t=utils.outerWidth(e),o=utils.outerHeight(e);else{var r=utils.getWindow(e);n={left:utils.getWindowScrollLeft(r),top:utils.getWindowScrollTop(r)},t=utils.viewportWidth(r),o=utils.viewportHeight(r)}return n.width=t,n.height=o,n}function getAlignOffset(e,n){var t=n.charAt(0),o=n.charAt(1),r=e.width,a=e.height,s=e.left,l=e.top;return t==="c"?l+=a/2:t==="b"&&(l+=a),o==="c"?s+=r/2:o==="r"&&(s+=r),{left:s,top:l}}function getElFuturePos(e,n,t,o,r){var a=getAlignOffset(n,t[1]),s=getAlignOffset(e,t[0]),l=[s.left-a.left,s.top-a.top];return{left:Math.round(e.left-l[0]+o[0]-r[0]),top:Math.round(e.top-l[1]+o[1]-r[1])}}function isFailX(e,n,t){return e.left<t.left||e.left+n.width>t.right}function isFailY(e,n,t){return e.top<t.top||e.top+n.height>t.bottom}function isCompleteFailX(e,n,t){return e.left>t.right||e.left+n.width<t.left}function isCompleteFailY(e,n,t){return e.top>t.bottom||e.top+n.height<t.top}function flip(e,n,t){var o=[];return utils.each(e,function(r){o.push(r.replace(n,function(a){return t[a]}))}),o}function flipOffset(e,n){return e[n]=-e[n],e}function convertOffset(e,n){var t;return/%$/.test(e)?t=parseInt(e.substring(0,e.length-1),10)/100*n:t=parseInt(e,10),t||0}function normalizeOffset(e,n){e[0]=convertOffset(e[0],n.width),e[1]=convertOffset(e[1],n.height)}function doAlign(e,n,t,o){var r=t.points,a=t.offset||[0,0],s=t.targetOffset||[0,0],l=t.overflow,c=t.source||e;a=[].concat(a),s=[].concat(s),l=l||{};var u={},d=0,f=!!(l&&l.alwaysByViewport),m=getVisibleRectForElement(c,f),p=getRegion(c);normalizeOffset(a,p),normalizeOffset(s,n);var h=getElFuturePos(p,n,r,a,s),v=utils.merge(p,h);if(m&&(l.adjustX||l.adjustY)&&o){if(l.adjustX&&isFailX(h,p,m)){var C=flip(r,/[lr]/gi,{l:"r",r:"l"}),I=flipOffset(a,0),g=flipOffset(s,0),y=getElFuturePos(p,n,C,I,g);isCompleteFailX(y,p,m)||(d=1,r=C,a=I,s=g)}if(l.adjustY&&isFailY(h,p,m)){var x=flip(r,/[tb]/gi,{t:"b",b:"t"}),w=flipOffset(a,1),O=flipOffset(s,1),F=getElFuturePos(p,n,x,w,O);isCompleteFailY(F,p,m)||(d=1,r=x,a=w,s=O)}d&&(h=getElFuturePos(p,n,r,a,s),utils.mix(v,h));var b=isFailX(h,p,m),_=isFailY(h,p,m);if(b||_){var T=r;b&&(T=flip(r,/[lr]/gi,{l:"r",r:"l"})),_&&(T=flip(r,/[tb]/gi,{t:"b",b:"t"})),r=T,a=t.offset||[0,0],s=t.targetOffset||[0,0]}u.adjustX=l.adjustX&&b,u.adjustY=l.adjustY&&_,(u.adjustX||u.adjustY)&&(v=adjustForViewport(h,p,m,u))}return v.width!==p.width&&utils.css(c,"width",utils.width(c)+v.width-p.width),v.height!==p.height&&utils.css(c,"height",utils.height(c)+v.height-p.height),utils.offset(c,{left:v.left,top:v.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:r,offset:a,targetOffset:s,overflow:u}}function isOutOfVisibleRect(e,n){var t=getVisibleRectForElement(e,n),o=getRegion(e);return!t||o.left+o.width<=t.left||o.top+o.height<=t.top||o.left>=t.right||o.top>=t.bottom}function alignElement(e,n,t){var o=t.target||n,r=getRegion(o),a=!isOutOfVisibleRect(o,t.overflow&&t.overflow.alwaysByViewport);return doAlign(e,r,t,a)}alignElement.__getOffsetParent=getOffsetParent,alignElement.__getVisibleRectForElement=getVisibleRectForElement;function alignPoint(e,n,t){var o,r,a=utils.getDocument(e),s=a.defaultView||a.parentWindow,l=utils.getWindowScrollLeft(s),c=utils.getWindowScrollTop(s),u=utils.viewportWidth(s),d=utils.viewportHeight(s);"pageX"in n?o=n.pageX:o=l+n.clientX,"pageY"in n?r=n.pageY:r=c+n.clientY;var f={left:o,top:r,width:0,height:0},m=o>=0&&o<=l+u&&r>=0&&r<=c+d,p=[t.points[0],"cc"];return doAlign(e,f,_objectSpread2({},t,{points:p}),m)}function isSamePoint(e,n){return e===n?!0:!e||!n?!1:"pageX"in n&&"pageY"in n?e.pageX===n.pageX&&e.pageY===n.pageY:"clientX"in n&&"clientY"in n?e.clientX===n.clientX&&e.clientY===n.clientY:!1}function restoreFocus(e,n){e!==document.activeElement&&contains(n,e)&&typeof e.focus=="function"&&e.focus()}function monitorResize(e,n){var t=null,o=null;function r(s){var l=_slicedToArray(s,1),c=l[0].target;if(!!document.documentElement.contains(c)){var u=c.getBoundingClientRect(),d=u.width,f=u.height,m=Math.floor(d),p=Math.floor(f);(t!==m||o!==p)&&Promise.resolve().then(function(){n({width:m,height:p})}),t=m,o=p}}var a=new index(r);return e&&a.observe(e),function(){a.disconnect()}}const useBuffer=function(e,n){var t=React__default.default.useRef(!1),o=React__default.default.useRef(null);function r(){window.clearTimeout(o.current)}function a(s){if(!t.current||s===!0){if(e()===!1)return;t.current=!0,r(),o.current=window.setTimeout(function(){t.current=!1},n)}else r(),o.current=window.setTimeout(function(){t.current=!1,a()},n)}return[a,function(){t.current=!1,r()}]};function getElement(e){return typeof e!="function"?null:e()}function getPoint(e){return _typeof$1(e)!=="object"||!e?null:e}var Align=function e(n,t){var o=n.children,r=n.disabled,a=n.target,s=n.align,l=n.onAlign,c=n.monitorWindowResize,u=n.monitorBufferTime,d=u===void 0?0:u,f=React__default.default.useRef({}),m=React__default.default.useRef(),p=React__default.default.Children.only(o),h=React__default.default.useRef({});h.current.disabled=r,h.current.target=a,h.current.onAlign=l;var v=useBuffer(function(){var O=h.current,F=O.disabled,b=O.target,_=O.onAlign;if(!F&&b){var T=m.current,k,N=getElement(b),D=getPoint(b);f.current.element=N,f.current.point=D;var P=document,j=P.activeElement;return N&&isVisible(N)?k=alignElement(T,N,s):D&&(k=alignPoint(T,D,s)),restoreFocus(j,T),_&&k&&_(T,k),!0}return!1},d),C=_slicedToArray(v,2),I=C[0],g=C[1],y=React__default.default.useRef({cancel:function(){}}),x=React__default.default.useRef({cancel:function(){}});React__default.default.useEffect(function(){var O=getElement(a),F=getPoint(a);m.current!==x.current.element&&(x.current.cancel(),x.current.element=m.current,x.current.cancel=monitorResize(m.current,I)),(f.current.element!==O||!isSamePoint(f.current.point,F))&&(I(),y.current.element!==O&&(y.current.cancel(),y.current.element=O,y.current.cancel=monitorResize(O,I)))}),React__default.default.useEffect(function(){r?g():I()},[r]);var w=React__default.default.useRef(null);return React__default.default.useEffect(function(){c?w.current||(w.current=addEventListenerWrap(window,"resize",I)):w.current&&(w.current.remove(),w.current=null)},[c]),React__default.default.useEffect(function(){return function(){y.current.cancel(),x.current.cancel(),w.current&&w.current.remove(),g()}},[]),React__default.default.useImperativeHandle(t,function(){return{forceAlign:function(){return I(!0)}}}),React__default.default.isValidElement(p)&&(p=React__default.default.cloneElement(p,{ref:composeRef(p.ref,m)})),p},RefAlign=React__default.default.forwardRef(Align);RefAlign.displayName="Align";var StatusQueue=["measure","align",null,"motion"];const useVisibleStatus=function(e,n){var t=React.useState(null),o=_slicedToArray(t,2),r=o[0],a=o[1],s=React.useRef(),l=React.useRef(!1);function c(f){l.current||a(f)}function u(){wrapperRaf.cancel(s.current)}function d(f){u(),s.current=wrapperRaf(function(){c(function(m){switch(r){case"align":return"motion";case"motion":return"stable"}return m}),f==null||f()})}return React.useEffect(function(){c("measure")},[e]),React.useEffect(function(){switch(r){case"measure":n();break}r&&(s.current=wrapperRaf(_asyncToGenerator(regeneratorExports.mark(function f(){var m,p;return regeneratorExports.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:m=StatusQueue.indexOf(r),p=StatusQueue[m+1],p&&m!==-1&&c(p);case 3:case"end":return v.stop()}},f)}))))},[r]),React.useEffect(function(){return function(){l.current=!0,u()}},[]),[r,d]},useStretchStyle=function(e){var n=React__namespace.useState({width:0,height:0}),t=_slicedToArray(n,2),o=t[0],r=t[1];function a(l){r({width:l.offsetWidth,height:l.offsetHeight})}var s=React__namespace.useMemo(function(){var l={};if(e){var c=o.width,u=o.height;e.indexOf("height")!==-1&&u?l.height=u:e.indexOf("minHeight")!==-1&&u&&(l.minHeight=u),e.indexOf("width")!==-1&&c?l.width=c:e.indexOf("minWidth")!==-1&&c&&(l.minWidth=c)}return l},[e,o]);return[s,a]};var PopupInner=React__namespace.forwardRef(function(e,n){var t=e.visible,o=e.prefixCls,r=e.className,a=e.style,s=e.children,l=e.zIndex,c=e.stretch,u=e.destroyPopupOnHide,d=e.align,f=e.point,m=e.getRootDomNode,p=e.getClassNameFromAlign,h=e.onAlign,v=e.onMouseEnter,C=e.onMouseLeave,I=e.onMouseDown,g=e.onTouchStart,y=React.useRef(),x=React.useRef(),w=React.useState(),O=_slicedToArray(w,2),F=O[0],b=O[1],_=useStretchStyle(c),T=_slicedToArray(_,2),k=T[0],N=T[1];function D(){c&&N(m())}var P=useVisibleStatus(t,D),j=_slicedToArray(P,2),$=j[0],q=j[1],B=React.useRef();function H(){return f||m}function G(){var A;(A=y.current)===null||A===void 0||A.forceAlign()}function Y(A,U){if($==="align"){var K=p(U);b(K),F!==K?Promise.resolve().then(function(){G()}):q(function(){var Q;(Q=B.current)===null||Q===void 0||Q.call(B)}),h==null||h(A,U)}}var W=_objectSpread2$1({},getMotion(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(A){var U=W[A];W[A]=function(K,Q){return q(),U==null?void 0:U(K,Q)}});function Z(){return new Promise(function(A){B.current=A})}React__namespace.useEffect(function(){!W.motionName&&$==="motion"&&q()},[W.motionName,$]),React__namespace.useImperativeHandle(n,function(){return{forceAlign:G,getElement:function(){return x.current}}});var L=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},k),{},{zIndex:l},a),{},{opacity:$==="motion"||$==="stable"||!t?void 0:0,pointerEvents:$==="stable"?void 0:"none"}),V=!0;(d==null?void 0:d.points)&&($==="align"||$==="stable")&&(V=!1);var M=s;return React__namespace.Children.count(s)>1&&(M=jsxRuntime.jsx("div",{className:"".concat(o,"-content"),children:s})),jsxRuntime.jsx(CSSMotion,{visible:t,ref:x,leavedClassName:"".concat(o,"-hidden"),...W,onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:u,children:function(A,U){var K=A.className,Q=A.style,E=classnamesExports(o,r,F,K);return jsxRuntime.jsx(RefAlign,{target:H(),ref:y,monitorWindowResize:!0,disabled:V,align:d,onAlign:Y,children:jsxRuntime.jsx("div",{ref:U,className:E,onMouseEnter:v,onMouseLeave:C,onMouseDown:I,onTouchStart:g,style:_objectSpread2$1(_objectSpread2$1({},Q),L),children:M})},"popup")}})});PopupInner.displayName="PopupInner";var MobilePopupInner=React__namespace.forwardRef(function(e,n){var t=e.prefixCls,o=e.visible,r=e.zIndex,a=e.children,s=e.mobile;s=s===void 0?{}:s;var l=s.popupClassName,c=s.popupStyle,u=s.popupMotion,d=u===void 0?{}:u,f=s.popupRender,m=React__namespace.useRef();React__namespace.useImperativeHandle(n,function(){return{forceAlign:function(){},getElement:function(){return m.current}}});var p=_objectSpread2$1({zIndex:r},c),h=a;return React__namespace.Children.count(a)>1&&(h=jsxRuntime.jsx("div",{className:"".concat(t,"-content"),children:a})),f&&(h=f(h)),jsxRuntime.jsx(CSSMotion,{visible:o,ref:m,removeOnLeave:!0,...d,children:function(v,C){var I=v.className,g=v.style,y=classnamesExports(t,l,I);return jsxRuntime.jsx("div",{ref:C,className:y,style:_objectSpread2$1(_objectSpread2$1({},g),p),children:h})}})});MobilePopupInner.displayName="MobilePopupInner";var Popup=React__namespace.forwardRef(function(e,n){var t=e.visible,o=e.mobile,r=_objectWithoutProperties(e,["visible","mobile"]),a=React.useState(t),s=_slicedToArray(a,2),l=s[0],c=s[1],u=React.useState(!1),d=_slicedToArray(u,2),f=d[0],m=d[1],p=_objectSpread2$1(_objectSpread2$1({},r),{},{visible:l});React.useEffect(function(){c(t),t&&o&&m(isMobile())},[t,o]);var h=f?jsxRuntime.jsx(MobilePopupInner,{...p,mobile:o,ref:n}):jsxRuntime.jsx(PopupInner,{...p,ref:n});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Mask,{...p}),h]})});Popup.displayName="Popup";var TriggerContext=React__namespace.createContext(null);function noop(){}function returnEmptyString(){return""}function returnDocument(e){return e?e.ownerDocument:window.document}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function generateTrigger(e){var n=function(t){_inherits(r,t);var o=_createSuper(r);function r(a){var s;_classCallCheck(this,r),s=o.call(this,a),s.popupRef=React__namespace.createRef(),s.triggerRef=React__namespace.createRef(),s.onMouseEnter=function(c){var u=s.props.mouseEnterDelay;s.fireEvents("onMouseEnter",c),s.delaySetPopupVisible(!0,u,u?null:c)},s.onMouseMove=function(c){s.fireEvents("onMouseMove",c),s.setPoint(c)},s.onMouseLeave=function(c){s.fireEvents("onMouseLeave",c),s.delaySetPopupVisible(!1,s.props.mouseLeaveDelay)},s.onPopupMouseEnter=function(){s.clearDelayTimer()},s.onPopupMouseLeave=function(c){var u;c.relatedTarget&&!c.relatedTarget.setTimeout&&contains((u=s.popupRef.current)===null||u===void 0?void 0:u.getElement(),c.relatedTarget)||s.delaySetPopupVisible(!1,s.props.mouseLeaveDelay)},s.onFocus=function(c){s.fireEvents("onFocus",c),s.clearDelayTimer(),s.isFocusToShow()&&(s.focusTime=Date.now(),s.delaySetPopupVisible(!0,s.props.focusDelay))},s.onMouseDown=function(c){s.fireEvents("onMouseDown",c),s.preClickTime=Date.now()},s.onTouchStart=function(c){s.fireEvents("onTouchStart",c),s.preTouchTime=Date.now()},s.onBlur=function(c){s.fireEvents("onBlur",c),s.clearDelayTimer(),s.isBlurToHide()&&s.delaySetPopupVisible(!1,s.props.blurDelay)},s.onContextMenu=function(c){c.preventDefault(),s.fireEvents("onContextMenu",c),s.setPopupVisible(!0,c)},s.onContextMenuClose=function(){s.isContextMenuToShow()&&s.close()},s.onClick=function(c){if(s.fireEvents("onClick",c),s.focusTime){var u;if(s.preClickTime&&s.preTouchTime?u=Math.min(s.preClickTime,s.preTouchTime):s.preClickTime?u=s.preClickTime:s.preTouchTime&&(u=s.preTouchTime),Math.abs(u-s.focusTime)<20)return;s.focusTime=0}s.preClickTime=0,s.preTouchTime=0,s.isClickToShow()&&(s.isClickToHide()||s.isBlurToHide())&&c&&c.preventDefault&&c.preventDefault();var d=!s.state.popupVisible;(s.isClickToHide()&&!d||d&&s.isClickToShow())&&s.setPopupVisible(!s.state.popupVisible,c)},s.onPopupMouseDown=function(){if(s.hasPopupMouseDown=!0,clearTimeout(s.mouseDownTimeout),s.mouseDownTimeout=window.setTimeout(function(){s.hasPopupMouseDown=!1},0),s.context){var c;(c=s.context).onPopupMouseDown.apply(c,arguments)}},s.onDocumentClick=function(c){if(!(s.props.mask&&!s.props.maskClosable)){var u=c.target,d=s.getRootDomNode(),f=s.getPopupDomNode();!contains(d,u)&&!contains(f,u)&&!s.hasPopupMouseDown&&s.close()}},s.getRootDomNode=function(){var c=s.props.getTriggerDOMNode;if(c)return c(s.triggerRef.current);try{var u=findDOMNode(s.triggerRef.current);if(u)return u}catch{}return ReactDOM__default.default.findDOMNode(_assertThisInitialized(s))},s.getPopupClassNameFromAlign=function(c){var u=[],d=s.props,f=d.popupPlacement,m=d.builtinPlacements,p=d.prefixCls,h=d.alignPoint,v=d.getPopupClassNameFromAlign;return f&&m&&u.push(getAlignPopupClassName(m,p,c,h)),v&&u.push(v(c)),u.join(" ")},s.getComponent=function(){var c=s.props,u=c.prefixCls,d=c.destroyPopupOnHide,f=c.popupClassName,m=c.onPopupAlign,p=c.popupMotion,h=c.popupAnimation,v=c.popupTransitionName,C=c.popupStyle,I=c.mask,g=c.maskAnimation,y=c.maskTransitionName,x=c.maskMotion,w=c.zIndex,O=c.popup,F=c.stretch,b=c.alignPoint,_=c.mobile,T=s.state,k=T.popupVisible,N=T.point,D=s.getPopupAlign(),P={};return s.isMouseEnterToShow()&&(P.onMouseEnter=s.onPopupMouseEnter),s.isMouseLeaveToHide()&&(P.onMouseLeave=s.onPopupMouseLeave),P.onMouseDown=s.onPopupMouseDown,P.onTouchStart=s.onPopupMouseDown,jsxRuntime.jsx(Popup,{prefixCls:u,destroyPopupOnHide:d,visible:k,point:b&&N,className:f,align:D,onAlign:m,animation:h,getClassNameFromAlign:s.getPopupClassNameFromAlign,...P,stretch:F,getRootDomNode:s.getRootDomNode,style:C,mask:I,zIndex:w,transitionName:v,maskAnimation:g,maskTransitionName:y,maskMotion:x,ref:s.popupRef,motion:p,mobile:_,children:typeof O=="function"?O():O})},s.attachParent=function(c){wrapperRaf.cancel(s.attachId);var u=s.props,d=u.getPopupContainer,f=u.getDocument,m=s.getRootDomNode(),p;d?(m||d.length===0)&&(p=d(m)):p=f(s.getRootDomNode()).body,p?p.appendChild(c):s.attachId=wrapperRaf(function(){s.attachParent(c)})},s.getContainer=function(){var c=s.props.getDocument,u=c(s.getRootDomNode()).createElement("div");return u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.width="100%",s.attachParent(u),u},s.setPoint=function(c){var u=s.props.alignPoint;!u||!c||s.setState({point:{pageX:c.pageX,pageY:c.pageY}})},s.handlePortalUpdate=function(){s.state.prevPopupVisible!==s.state.popupVisible&&s.props.afterPopupVisibleChange(s.state.popupVisible)};var l;return"popupVisible"in a?l=!!a.popupVisible:l=!!a.defaultPopupVisible,s.state={prevPopupVisible:l,popupVisible:l},ALL_HANDLERS.forEach(function(c){s["fire".concat(c)]=function(u){s.fireEvents(c,u)}}),s}return _createClass(r,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var s=this.props,l=this.state;if(l.popupVisible){var c;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(c=s.getDocument(this.getRootDomNode()),this.clickOutsideHandler=addEventListenerWrap(c,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(c=c||s.getDocument(this.getRootDomNode()),this.touchOutsideHandler=addEventListenerWrap(c,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(c=c||s.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=addEventListenerWrap(c,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=addEventListenerWrap(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wrapperRaf.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var s;return((s=this.popupRef.current)===null||s===void 0?void 0:s.getElement())||null}},{key:"getPopupAlign",value:function(){var s=this.props,l=s.popupPlacement,c=s.popupAlign,u=s.builtinPlacements;return l&&u?getAlignFromPlacement(u,l,c):c}},{key:"setPopupVisible",value:function(s,l){var c=this.props.alignPoint,u=this.state.popupVisible;this.clearDelayTimer(),u!==s&&("popupVisible"in this.props||this.setState({popupVisible:s,prevPopupVisible:u}),this.props.onPopupVisibleChange(s)),c&&l&&s&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(s,l,c){var u=this,d=l*1e3;if(this.clearDelayTimer(),d){var f=c?{pageX:c.pageX,pageY:c.pageY}:null;this.delayTimer=window.setTimeout(function(){u.setPopupVisible(s,f),u.clearDelayTimer()},d)}else this.setPopupVisible(s,c)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(s){var l=this.props.children.props,c=this.props;return l[s]&&c[s]?this["fire".concat(s)]:l[s]||c[s]}},{key:"isClickToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("contextMenu")!==-1||c.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var s=this.props,l=s.action,c=s.hideAction;return l.indexOf("click")!==-1||c.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("hover")!==-1||c.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var s=this.props,l=s.action,c=s.hideAction;return l.indexOf("hover")!==-1||c.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var s=this.props,l=s.action,c=s.showAction;return l.indexOf("focus")!==-1||c.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var s=this.props,l=s.action,c=s.hideAction;return l.indexOf("focus")!==-1||c.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var s;(s=this.popupRef.current)===null||s===void 0||s.forceAlign()}}},{key:"fireEvents",value:function(s,l){var c=this.props.children.props[s];c&&c(l);var u=this.props[s];u&&u(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var s=this.state.popupVisible,l=this.props,c=l.children,u=l.forceRender,d=l.alignPoint,f=l.className,m=l.autoDestroy,p=React__namespace.Children.only(c),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,d&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var v=classnamesExports(p&&p.props&&p.props.className,f);v&&(h.className=v);var C=_objectSpread2$1({},h);supportRef(p)&&(C.ref=composeRef(this.triggerRef,p.ref));var I=React__namespace.cloneElement(p,C),g;return(s||this.popupRef.current||u)&&(g=jsxRuntime.jsx(e,{getContainer:this.getContainer,didUpdate:this.handlePortalUpdate,children:this.getComponent()},"portal")),!s&&m&&(g=null),jsxRuntime.jsxs(TriggerContext.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown},children:[I,g]})}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.popupVisible,u={};return c!==void 0&&l.popupVisible!==c&&(u.popupVisible=c,u.prevPopupVisible=l.popupVisible),u}}]),r}(React__namespace.Component);return n.contextType=TriggerContext,n.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:returnEmptyString,getDocument:returnDocument,onPopupVisibleChange:noop,afterPopupVisibleChange:noop,onPopupAlign:noop,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},n}const Trigger=generateTrigger(Portal);var autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset}},Content$2=function e(n){var t=n.overlay,o=n.prefixCls,r=n.id,a=n.overlayInnerStyle;return jsxRuntime.jsx("div",{className:"".concat(o,"-inner"),id:r,role:"tooltip",style:a,children:typeof t=="function"?t():t})},Tooltip=function e(n,t){var o=n.overlayClassName,r=n.trigger,a=r===void 0?["hover"]:r,s=n.mouseEnterDelay,l=s===void 0?0:s,c=n.mouseLeaveDelay,u=c===void 0?.1:c,d=n.overlayStyle,f=n.prefixCls,m=f===void 0?"rc-tooltip":f,p=n.children,h=n.onVisibleChange,v=n.afterVisibleChange,C=n.transitionName,I=n.animation,g=n.placement,y=g===void 0?"right":g,x=n.align,w=x===void 0?{}:x,O=n.destroyTooltipOnHide,F=O===void 0?!1:O,b=n.defaultVisible,_=n.getTooltipContainer,T=n.overlayInnerStyle,k=_objectWithoutProperties(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),N=React.useRef(null);React.useImperativeHandle(t,function(){return N.current});var D=_objectSpread2$1({},k);"visible"in n&&(D.popupVisible=n.visible);var P=function(){var H=n.arrowContent,G=H===void 0?null:H,Y=n.overlay,W=n.id;return[jsxRuntime.jsx("div",{className:"".concat(m,"-arrow"),children:G},"arrow"),jsxRuntime.jsx(Content$2,{prefixCls:m,id:W,overlay:Y,overlayInnerStyle:T},"content")]},j=!1,$=!1;if(typeof F=="boolean")j=F;else if(F&&_typeof$1(F)==="object"){var q=F.keepParent;j=q===!0,$=q===!1}return jsxRuntime.jsx(Trigger,{...Object.assign({popupClassName:o,prefixCls:m,popup:P,action:a,builtinPlacements:placements$2,popupPlacement:y,ref:N,popupAlign:w,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:C,popupAnimation:I,defaultPopupVisible:b,destroyPopupOnHide:j,autoDestroy:$,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l},D),children:p})};const Tooltip$1=React.forwardRef(Tooltip),es=Object.freeze(Object.defineProperty({__proto__:null,default:Tooltip$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(es);var placements$1={},placements={},hasRequiredPlacements$1;function requirePlacements$1(){if(hasRequiredPlacements$1)return placements;hasRequiredPlacements$1=1,Object.defineProperty(placements,"__esModule",{value:!0}),placements.default=placements.placements=void 0;var e={adjustX:1,adjustY:1},n=[0,0],t={left:{points:["cr","cl"],overflow:e,offset:[-4,0],targetOffset:n},right:{points:["cl","cr"],overflow:e,offset:[4,0],targetOffset:n},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:n},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:n},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:n},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0],targetOffset:n},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:n},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0],targetOffset:n},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:n},rightBottom:{points:["bl","br"],overflow:e,offset:[4,0],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:n},leftBottom:{points:["br","bl"],overflow:e,offset:[-4,0],targetOffset:n}};placements.placements=t;var o=t;return placements.default=o,placements}var hasRequiredPlacements;function requirePlacements(){return hasRequiredPlacements||(hasRequiredPlacements=1,function(e){var n=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getOverflowOptions=l,e.default=c;var t=n(require_extends()),o=requirePlacements$1(),r={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},s=[0,0];function l(u){return typeof u=="boolean"?u?r:a:(0,t.default)((0,t.default)({},a),u)}function c(u){var d=u.arrowWidth,f=d===void 0?5:d,m=u.horizontalArrowShift,p=m===void 0?16:m,h=u.verticalArrowShift,v=h===void 0?8:h,C=u.autoAdjustOverflow,I={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(p+f),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(v+f)]},topRight:{points:["br","tc"],offset:[p+f,-4]},rightTop:{points:["tl","cr"],offset:[4,-(v+f)]},bottomRight:{points:["tr","bc"],offset:[p+f,4]},rightBottom:{points:["bl","cr"],offset:[4,v+f]},bottomLeft:{points:["tl","bc"],offset:[-(p+f),4]},leftBottom:{points:["br","cl"],offset:[-4,v+f]}};return Object.keys(I).forEach(function(g){I[g]=u.arrowPointAtCenter?(0,t.default)((0,t.default)({},I[g]),{overflow:l(C),targetOffset:s}):(0,t.default)((0,t.default)({},o.placements[g]),{overflow:l(C)}),I[g].ignoreShake=!0}),I}}(placements$1)),placements$1}var colors={},hasRequiredColors;function requireColors(){if(hasRequiredColors)return colors;hasRequiredColors=1,Object.defineProperty(colors,"__esModule",{value:!0}),colors.PresetColorTypes=colors.PresetStatusColorTypes=void 0;var e=requireType(),n=(0,e.tuple)("success","processing","error","default","warning");colors.PresetStatusColorTypes=n;var t=(0,e.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");return colors.PresetColorTypes=t,colors}var hasRequiredTooltip;function requireTooltip(){return hasRequiredTooltip||(hasRequiredTooltip=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(requireDefineProperty()),r=t(requireSlicedToArray()),a=t(require_extends()),s=n(React__default.default),l=t(require$$6),c=t(requireClassnames()),u=t(requirePlacements()),d=requireReactNode(),f=requireConfigProvider(),m=requireColors(),p=function(y,x){var w={},O=(0,a.default)({},y);return x.forEach(function(F){y&&F in y&&(w[F]=y[F],delete O[F])}),{picked:w,omitted:O}},h=new RegExp("^(".concat(m.PresetColorTypes.join("|"),")(-inverse)?$"));function v(g,y){var x=g.type;if((x.__ANT_BUTTON===!0||x.__ANT_SWITCH===!0||x.__ANT_CHECKBOX===!0||g.type==="button")&&g.props.disabled){var w=p(g.props.style,["position","left","right","top","bottom","float","display","zIndex"]),O=w.picked,F=w.omitted,b=(0,a.default)((0,a.default)({display:"inline-block"},O),{cursor:"not-allowed",width:g.props.block?"100%":null}),_=(0,a.default)((0,a.default)({},F),{pointerEvents:"none"}),T=(0,d.cloneElement)(g,{style:_,className:null});return s.createElement("span",{style:b,className:(0,c.default)(g.props.className,"".concat(y,"-disabled-compatible-wrapper"))},T)}return g}var C=s.forwardRef(function(g,y){var x,w=s.useContext(f.ConfigContext),O=w.getPopupContainer,F=w.getPrefixCls,b=w.direction,_=s.useState(!!g.visible||!!g.defaultVisible),T=(0,r.default)(_,2),k=T[0],N=T[1];s.useEffect(function(){"visible"in g&&N(g.visible)},[g.visible]);var D=function(){var ne=g.title,ee=g.overlay;return!ne&&!ee&&ne!==0},P=function(ne){"visible"in g||N(D()?!1:ne),g.onVisibleChange&&!D()&&g.onVisibleChange(ne)},j=function(){var ne=g.builtinPlacements,ee=g.arrowPointAtCenter,re=g.autoAdjustOverflow;return ne||(0,u.default)({arrowPointAtCenter:ee,autoAdjustOverflow:re})},$=function(ne,ee){var re=j(),ae=Object.keys(re).filter(function(pe){return re[pe].points[0]===ee.points[0]&&re[pe].points[1]===ee.points[1]})[0];if(!!ae){var ie=ne.getBoundingClientRect(),ce={top:"50%",left:"50%"};ae.indexOf("top")>=0||ae.indexOf("Bottom")>=0?ce.top="".concat(ie.height-ee.offset[1],"px"):(ae.indexOf("Top")>=0||ae.indexOf("bottom")>=0)&&(ce.top="".concat(-ee.offset[1],"px")),ae.indexOf("left")>=0||ae.indexOf("Right")>=0?ce.left="".concat(ie.width-ee.offset[0],"px"):(ae.indexOf("right")>=0||ae.indexOf("Left")>=0)&&(ce.left="".concat(-ee.offset[0],"px")),ne.style.transformOrigin="".concat(ce.left," ").concat(ce.top)}},q=function(){var ne=g.title,ee=g.overlay;return ne===0?ne:ee||ne||""},B=g.prefixCls,H=g.openClassName,G=g.getPopupContainer,Y=g.getTooltipContainer,W=g.overlayClassName,Z=g.color,L=g.overlayInnerStyle,V=g.children,M=F("tooltip",B),A=k;!("visible"in g)&&D()&&(A=!1);var U=v((0,d.isValidElement)(V)?V:s.createElement("span",null,V),M),K=U.props,Q=(0,c.default)(K.className,(0,o.default)({},H||"".concat(M,"-open"),!0)),E=(0,c.default)(W,(x={},(0,o.default)(x,"".concat(M,"-rtl"),b==="rtl"),(0,o.default)(x,"".concat(M,"-").concat(Z),Z&&h.test(Z)),x)),S=L,z;return Z&&!h.test(Z)&&(S=(0,a.default)((0,a.default)({},L),{background:Z}),z={background:Z}),s.createElement(l.default,(0,a.default)({},g,{prefixCls:M,overlayClassName:E,getTooltipContainer:G||Y||O,ref:y,builtinPlacements:j(),overlay:q(),visible:A,onVisibleChange:P,onPopupAlign:$,overlayInnerStyle:S,arrowContent:s.createElement("span",{className:"".concat(M,"-arrow-content"),style:z})}),A?(0,d.cloneElement)(U,{className:Q}):U)});C.displayName="Tooltip",C.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var I=C;e.default=I}(tooltip)),tooltip}var Typography={},ref={},hasRequiredRef;function requireRef(){if(hasRequiredRef)return ref;hasRequiredRef=1;var e=interopRequireDefault.exports;Object.defineProperty(ref,"__esModule",{value:!0}),ref.fillRef=o,ref.composeRef=r,ref.supportRef=a;var n=e(_typeof$2.exports),t=requireReactIs();function o(s,l){typeof s=="function"?s(l):(0,n.default)(s)==="object"&&s&&"current"in s&&(s.current=l)}function r(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return function(u){l.forEach(function(d){o(d,u)})}}function a(s){var l,c,u=(0,t.isMemo)(s)?s.type.type:s.type;return!(typeof u=="function"&&!(!((l=u.prototype)===null||l===void 0)&&l.render)||typeof s=="function"&&!(!((c=s.prototype)===null||c===void 0)&&c.render))}return ref}var hasRequiredTypography;function requireTypography(){return hasRequiredTypography||(hasRequiredTypography=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=t(requireDefineProperty()),a=n(React__default.default),s=t(requireClassnames()),l=requireRef(),c=requireConfigProvider(),u=t(requireDevWarning()),d=function(v,C){var I={};for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&C.indexOf(g)<0&&(I[g]=v[g]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,g=Object.getOwnPropertySymbols(v);y<g.length;y++)C.indexOf(g[y])<0&&Object.prototype.propertyIsEnumerable.call(v,g[y])&&(I[g[y]]=v[g[y]]);return I},f=function(C,I){var g=C.prefixCls,y=C.component,x=y===void 0?"article":y,w=C.className,O=C["aria-label"],F=C.setContentRef,b=C.children,_=d(C,["prefixCls","component","className","aria-label","setContentRef","children"]),T=I;return F&&((0,u.default)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),T=(0,l.composeRef)(I,F)),a.createElement(c.ConfigConsumer,null,function(k){var N=k.getPrefixCls,D=k.direction,P=x,j=N("typography",g),$=(0,s.default)(j,(0,r.default)({},"".concat(j,"-rtl"),D==="rtl"),w);return a.createElement(P,(0,o.default)({className:$,"aria-label":O,ref:T},_),b)})},m=a.forwardRef(f);m.displayName="Typography";var p=m,h=p;e.default=h}(Typography)),Typography}var Editable={},EnterOutlined$2={exports:{}},EnterOutlined$1={},EnterOutlined={},hasRequiredEnterOutlined$2;function requireEnterOutlined$2(){if(hasRequiredEnterOutlined$2)return EnterOutlined;hasRequiredEnterOutlined$2=1,Object.defineProperty(EnterOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};return EnterOutlined.default=e,EnterOutlined}var hasRequiredEnterOutlined$1;function requireEnterOutlined$1(){if(hasRequiredEnterOutlined$1)return EnterOutlined$1;hasRequiredEnterOutlined$1=1;var e=interopRequireWildcard.exports,n=interopRequireDefault.exports;Object.defineProperty(EnterOutlined$1,"__esModule",{value:!0}),EnterOutlined$1.default=void 0;var t=n(requireObjectSpread2()),o=e(React__default.default),r=n(requireEnterOutlined$2()),a=n(requireAntdIcon()),s=function(u,d){return o.createElement(a.default,(0,t.default)((0,t.default)({},u),{},{ref:d,icon:r.default}))};s.displayName="EnterOutlined";var l=o.forwardRef(s);return EnterOutlined$1.default=l,EnterOutlined$1}var hasRequiredEnterOutlined;function requireEnterOutlined(){return hasRequiredEnterOutlined||(hasRequiredEnterOutlined=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o(requireEnterOutlined$1());function o(a){return a&&a.__esModule?a:{default:a}}var r=t;n.default=r,e.exports=r}(EnterOutlined$2,EnterOutlined$2.exports)),EnterOutlined$2.exports}var hasRequiredEditable;function requireEditable(){return hasRequiredEditable||(hasRequiredEditable=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(requireDefineProperty()),r=t(requireSlicedToArray()),a=n(React__default.default),s=t(requireClassnames()),l=t(requireKeyCode()),c=t(requireEnterOutlined()),u=t(TextArea$3),d=function(p){var h=p.prefixCls,v=p["aria-label"],C=p.className,I=p.style,g=p.direction,y=p.maxLength,x=p.autoSize,w=x===void 0?!0:x,O=p.value,F=p.onSave,b=p.onCancel,_=a.useRef(),T=a.useRef(!1),k=a.useRef(),N=a.useState(O),D=(0,r.default)(N,2),P=D[0],j=D[1];a.useEffect(function(){j(O)},[O]),a.useEffect(function(){if(_.current&&_.current.resizableTextArea){var L=_.current.resizableTextArea.textArea;L.focus();var V=L.value.length;L.setSelectionRange(V,V)}},[]);var $=function(V){var M=V.target;j(M.value.replace(/[\n\r]/g,""))},q=function(){T.current=!0},B=function(){T.current=!1},H=function(V){var M=V.keyCode;T.current||(k.current=M)},G=function(){F(P.trim())},Y=function(V){var M=V.keyCode,A=V.ctrlKey,U=V.altKey,K=V.metaKey,Q=V.shiftKey;k.current===M&&!T.current&&!A&&!U&&!K&&!Q&&(M===l.default.ENTER?G():M===l.default.ESC&&b())},W=function(){G()},Z=(0,s.default)(h,"".concat(h,"-edit-content"),(0,o.default)({},"".concat(h,"-rtl"),g==="rtl"),C);return a.createElement("div",{className:Z,style:I},a.createElement(u.default,{ref:_,maxLength:y,value:P,onChange:$,onKeyDown:H,onKeyUp:Y,onCompositionStart:q,onCompositionEnd:B,onBlur:W,"aria-label":v,autoSize:w}),a.createElement(c.default,{className:"".concat(h,"-edit-content-confirm")}))},f=d;e.default=f}(Editable)),Editable}var util={},hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var n=interopRequireDefault.exports,t=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=ReactDOM__default.default,r=t(React__default.default),a=n(requireToArray()),s=1,l=3,c=8,u,d={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function f(v){if(!v)return 0;var C=v.match(/^\d*(\.\d*)?/);return C?Number(C[0]):0}function m(v){var C=Array.prototype.slice.apply(v);return C.map(function(I){return"".concat(I,": ").concat(v.getPropertyValue(I),";")}).join("")}function p(v){var C=[];return v.forEach(function(I){var g=C[C.length-1];typeof I=="string"&&typeof g=="string"?C[C.length-1]+=I:C.push(I)}),C}var h=function(C,I,g,y,x){u||(u=document.createElement("div"),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));var w=I.rows,O=I.suffix,F=O===void 0?"":O,b=window.getComputedStyle(C),_=m(b),T=f(b.lineHeight),k=Math.round(T*(w+1)+f(b.paddingTop)+f(b.paddingBottom));u.setAttribute("style",_),u.style.position="fixed",u.style.left="0",u.style.height="auto",u.style.minHeight="auto",u.style.maxHeight="auto",u.style.top="-999999px",u.style.zIndex="-1000",u.style.textOverflow="clip",u.style.whiteSpace="normal",u.style.webkitLineClamp="none";var N=p((0,a.default)(g));(0,o.render)(r.createElement("div",{style:d},r.createElement("span",{style:d},N,F),r.createElement("span",{style:d},y)),u);function D(){return u.offsetHeight<k}if(D())return(0,o.unmountComponentAtNode)(u),{content:g,text:u.innerHTML,ellipsis:!1};var P=Array.prototype.slice.apply(u.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(W){var Z=W.nodeType;return Z!==c}),j=Array.prototype.slice.apply(u.childNodes[0].childNodes[1].cloneNode(!0).childNodes);(0,o.unmountComponentAtNode)(u);var $=[];u.innerHTML="";var q=document.createElement("span");u.appendChild(q);var B=document.createTextNode(x+F);q.appendChild(B),j.forEach(function(W){u.appendChild(W)});function H(W){q.insertBefore(W,B)}function G(W,Z){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Z.length,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,A=Math.floor((L+V)/2),U=Z.slice(0,A);if(W.textContent=U,L>=V-1)for(var K=V;K>=L;K-=1){var Q=Z.slice(0,K);if(W.textContent=Q,D()||!Q)return K===Z.length?{finished:!1,reactNode:Z}:{finished:!0,reactNode:Q}}return D()?G(W,Z,A,V,A):G(W,Z,L,A,M)}function Y(W,Z){var L=W.nodeType;if(L===s)return H(W),D()?{finished:!1,reactNode:N[Z]}:(q.removeChild(W),{finished:!0,reactNode:null});if(L===l){var V=W.textContent||"",M=document.createTextNode(V);return H(M),G(M,V)}return{finished:!1,reactNode:null}}return P.some(function(W,Z){var L=Y(W,Z),V=L.finished,M=L.reactNode;return M&&$.push(M),V}),{content:$,text:u.innerHTML,ellipsis:!0}};e.default=h}(util)),util}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(requireDefineProperty()),r=t(requireToConsumableArray()),a=t(_typeof$2.exports),s=t(require_extends()),l=t(requireClassCallCheck()),c=t(requireCreateClass()),u=t(requireInherits()),d=t(requireCreateSuper()),f=n(React__default.default),m=t(requireClassnames()),p=t(requireToArray()),h=t(requireCopyToClipboard()),v=t(requireOmit()),C=t(requireEditOutlined()),I=t(requireCheckOutlined()),g=t(requireCopyOutlined()),y=t(require$$18),x=requireConfigProvider(),w=t(requireLocaleReceiver()),O=t(requireDevWarning()),F=t(requireTransButton()),b=t(requireRaf()),_=requireStyleChecker(),T=t(requireTooltip()),k=t(requireTypography()),N=t(requireEditable()),D=t(requireUtil()),P=function(Y,W){var Z={};for(var L in Y)Object.prototype.hasOwnProperty.call(Y,L)&&W.indexOf(L)<0&&(Z[L]=Y[L]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,L=Object.getOwnPropertySymbols(Y);V<L.length;V++)W.indexOf(L[V])<0&&Object.prototype.propertyIsEnumerable.call(Y,L[V])&&(Z[L[V]]=Y[L[V]]);return Z},j=(0,_.isStyleSupport)("webkitLineClamp"),$=(0,_.isStyleSupport)("textOverflow");function q(Y,W){var Z=Y.mark,L=Y.code,V=Y.underline,M=Y.delete,A=Y.strong,U=Y.keyboard,K=W;function Q(E,S){!E||(K=f.createElement(S,{},K))}return Q(A,"strong"),Q(V,"u"),Q(M,"del"),Q(L,"code"),Q(Z,"mark"),Q(U,"kbd"),K}var B="...",H=function(Y){(0,u.default)(Z,Y);var W=(0,d.default)(Z);function Z(){var L;return(0,l.default)(this,Z),L=W.apply(this,arguments),L.contentRef=f.createRef(),L.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},L.getPrefixCls=function(){var V=L.props.prefixCls,M=L.context.getPrefixCls;return M("typography",V)},L.onExpandClick=function(V){var M=L.getEllipsis(),A=M.onExpand;L.setState({expanded:!0}),A&&A(V)},L.onEditClick=function(){L.triggerEdit(!0)},L.onEditChange=function(V){var M=L.getEditable(),A=M.onChange;A&&A(V),L.triggerEdit(!1)},L.onEditCancel=function(){L.triggerEdit(!1)},L.onCopyClick=function(V){V.preventDefault();var M=L.props,A=M.children,U=M.copyable,K=(0,s.default)({},(0,a.default)(U)==="object"?U:null);K.text===void 0&&(K.text=String(A)),(0,h.default)(K.text||""),L.setState({copied:!0},function(){K.onCopy&&K.onCopy(),L.copyId=window.setTimeout(function(){L.setState({copied:!1})},3e3)})},L.setEditRef=function(V){L.editIcon=V},L.triggerEdit=function(V){var M=L.getEditable(),A=M.onStart;V&&A&&A(),L.setState({edit:V},function(){!V&&L.editIcon&&L.editIcon.focus()})},L.resizeOnNextFrame=function(){b.default.cancel(L.rafId),L.rafId=(0,b.default)(function(){L.syncEllipsis()})},L}return(0,c.default)(Z,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(V){var M=this.props.children,A=this.getEllipsis(),U=this.getEllipsis(V);(M!==V.children||A.rows!==U.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),b.default.cancel(this.rafId)}},{key:"getEditable",value:function(V){var M=this.state.edit,A=V||this.props,U=A.editable;return U?(0,s.default)({editing:M},(0,a.default)(U)==="object"?U:null):{editing:M}}},{key:"getEllipsis",value:function(V){var M=V||this.props,A=M.ellipsis;return A?(0,s.default)({rows:1,expandable:!1},(0,a.default)(A)==="object"?A:null):{}}},{key:"canUseCSSEllipsis",value:function(){var V=this.state.clientRendered,M=this.props,A=M.editable,U=M.copyable,K=this.getEllipsis(),Q=K.rows,E=K.expandable,S=K.suffix,z=K.onEllipsis,X=K.tooltip;return S||X||A||U||E||!V||z?!1:Q===1?$:j}},{key:"syncEllipsis",value:function(){var V=this.state,M=V.ellipsisText,A=V.isEllipsis,U=V.expanded,K=this.getEllipsis(),Q=K.rows,E=K.suffix,S=K.onEllipsis,z=this.props.children;if(!(!Q||Q<0||!this.contentRef.current||U)&&!this.canUseCSSEllipsis()){(0,O.default)((0,p.default)(z).every(function(ae){return typeof ae=="string"}),"Typography","`ellipsis` should use string as children only.");var X=(0,D.default)(this.contentRef.current,{rows:Q,suffix:E},z,this.renderOperations(!0),B),ne=X.content,ee=X.text,re=X.ellipsis;(M!==ee||A!==re)&&(this.setState({ellipsisText:ee,ellipsisContent:ne,isEllipsis:re}),A!==re&&S&&S(re))}}},{key:"renderExpand",value:function(V){var M=this.getEllipsis(),A=M.expandable,U=M.symbol,K=this.state,Q=K.expanded,E=K.isEllipsis;if(!A||!V&&(Q||!E))return null;var S;return U?S=U:S=this.expandStr,f.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},S)}},{key:"renderEdit",value:function(){var V=this.props.editable;if(!!V){var M=V.icon,A=V.tooltip,U=(0,p.default)(A)[0]||this.editStr,K=typeof U=="string"?U:"";return f.createElement(T.default,{key:"edit",title:A===!1?"":U},f.createElement(F.default,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":K},M||f.createElement(C.default,{role:"button"})))}}},{key:"renderCopy",value:function(){var V=this.state.copied,M=this.props.copyable;if(!!M){var A=this.getPrefixCls(),U=M.tooltips,K=(0,p.default)(U);K.length===0&&(K=[this.copyStr,this.copiedStr]);var Q=V?K[1]:K[0],E=typeof Q=="string"?Q:"",S=(0,p.default)(M.icon);return f.createElement(T.default,{key:"copy",title:U===!1?"":Q},f.createElement(F.default,{className:(0,m.default)("".concat(A,"-copy"),V&&"".concat(A,"-copy-success")),onClick:this.onCopyClick,"aria-label":E},V?S[1]||f.createElement(I.default,null):S[0]||f.createElement(g.default,null)))}}},{key:"renderEditInput",value:function(){var V=this.props,M=V.children,A=V.className,U=V.style,K=this.context.direction,Q=this.getEditable(),E=Q.maxLength,S=Q.autoSize;return f.createElement(N.default,{value:typeof M=="string"?M:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:A,style:U,direction:K,maxLength:E,autoSize:S})}},{key:"renderOperations",value:function(V){return[this.renderExpand(V),this.renderEdit(),this.renderCopy()].filter(function(M){return M})}},{key:"renderContent",value:function(){var V=this,M=this.state,A=M.ellipsisContent,U=M.isEllipsis,K=M.expanded,Q=this.props,E=Q.component,S=Q.children,z=Q.className,X=Q.type,ne=Q.disabled,ee=Q.style,re=P(Q,["component","children","className","type","disabled","style"]),ae=this.context.direction,ie=this.getEllipsis(),ce=ie.rows,pe=ie.suffix,ge=ie.tooltip,Re=this.getPrefixCls(),Ie=(0,v.default)(re,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat((0,r.default)(x.configConsumerProps))),Fe=this.canUseCSSEllipsis(),ve=ce===1&&Fe,Se=ce&&ce>1&&Fe,xe=S;if(ce&&U&&!K&&!Fe){var Ee=re.title,_e=Ee||"";!Ee&&(typeof S=="string"||typeof S=="number")&&(_e=String(S)),_e=_e==null?void 0:_e.slice(String(A||"").length),xe=f.createElement(f.Fragment,null,A,f.createElement("span",{title:_e,"aria-hidden":"true"},B),pe),ge&&(xe=f.createElement(T.default,{title:ge===!0?S:ge},f.createElement("span",null,xe)))}else xe=f.createElement(f.Fragment,null,S,pe);return xe=q(this.props,xe),f.createElement(w.default,{componentName:"Text"},function(oe){var le,he=oe.edit,se=oe.copy,me=oe.copied,ye=oe.expand;return V.editStr=he,V.copyStr=se,V.copiedStr=me,V.expandStr=ye,f.createElement(y.default,{onResize:V.resizeOnNextFrame,disabled:!ce},f.createElement(k.default,(0,s.default)({className:(0,m.default)((le={},(0,o.default)(le,"".concat(Re,"-").concat(X),X),(0,o.default)(le,"".concat(Re,"-disabled"),ne),(0,o.default)(le,"".concat(Re,"-ellipsis"),ce),(0,o.default)(le,"".concat(Re,"-ellipsis-single-line"),ve),(0,o.default)(le,"".concat(Re,"-ellipsis-multiple-line"),Se),le),z),style:(0,s.default)((0,s.default)({},ee),{WebkitLineClamp:Se?ce:void 0}),component:E,ref:V.contentRef,direction:ae},Ie),xe,V.renderOperations()))})}},{key:"render",value:function(){var V=this.getEditable(),M=V.editing;return M?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(V){var M=V.children,A=V.editable;return(0,O.default)(!A||typeof M=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),Z}(f.Component);H.contextType=x.ConfigContext,H.defaultProps={children:""};var G=H;e.default=G}(Base)),Base}(function(e){var n=interopRequireWildcard.exports,t=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(require_extends()),r=n(React__default.default),a=t(requireDevWarning()),s=t(requireBase()),l=requireType(),c=function(m,p){var h={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&p.indexOf(v)<0&&(h[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(m);C<v.length;C++)p.indexOf(v[C])<0&&Object.prototype.propertyIsEnumerable.call(m,v[C])&&(h[v[C]]=m[v[C]]);return h},u=(0,l.tupleNum)(1,2,3,4,5),d=function(p){var h=p.level,v=h===void 0?1:h,C=c(p,["level"]),I;return u.indexOf(v)!==-1?I="h".concat(v):((0,a.default)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),I="h1"),r.createElement(s.default,(0,o.default)({},C,{component:I}))},f=d;e.default=f})(Title$3);const Title$2=getDefaultExportFromCjs(Title$3),{getValueForOperator}=ooui.graphProcessor,fontGrowFactor=.7,minFontSize=30,GraphIndicator=e=>{const{model:n,domain:t,context:o,colorCondition:r,totalDomain:a,showPercent:s=!1,icon:l,suffix:c,field:u,operator:d}=e,[f,m]=React.useState(!1),[p,h]=React.useState(),[v,C]=React.useState(),[I,g]=React.useState(),[y,x]=React.useState(0),[w,O]=React.useState(0),[F,b]=React.useState(),[_,T]=React.useState(),[k,N]=React.useState();React.useEffect(()=>{P()},[n,r]);async function D(j){if(u&&d){const $=await ConnectionProvider.getHandler().searchAllIds({params:j,model:n,context:o}),q=await ConnectionProvider.getHandler().readObjects({model:n,ids:$,fieldsToRetrieve:[u],context:o});return getValueForOperator({values:q.map(B=>B[u]),operator:d})}else return await ConnectionProvider.getHandler().searchCount({model:n,params:j,context:o})}async function P(){m(!0);let j,$;try{const q=await D(t);if(h(q),a){const B=await ConnectionProvider.getHandler().evalDomain({domain:a,values:{},context:o});j=await D(B),g(j)}if(j?($=Math.round(q/j*100*100)/100,C($)):C(0),r){const B=await ConnectionProvider.getHandler().parseCondition({condition:r,values:{value:q,percent:$},context:o});b(B)}if(l)if(l.indexOf(":")!==-1){const B=await ConnectionProvider.getHandler().parseCondition({condition:l,values:{value:q,percent:$},context:o});T(B)}else T(l)}catch(q){N(JSON.stringify(q))}m(!1)}return k?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:k,type:"error",banner:!0}):f?jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})}):jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:j=>{var $,q;x(($=j.bounds)==null?void 0:$.height),O((q=j.bounds)==null?void 0:q.width)},children:({measureRef:j})=>s?jsxRuntime.jsx(PercentageIndicator,{value:p,total:I,percent:v,measureRef:j,height:y,width:w,color:F,icon:_,suffix:c}):jsxRuntime.jsx(CommonIndicator,{value:p,total:I,measureRef:j,height:y,width:w,color:F,icon:_,suffix:c})})};function getTextWidth(e,n){const o=document.createElement("canvas").getContext("2d");return o.font=n||getComputedStyle(document.body).font,o.measureText(e).width}function CommonIndicator({measureRef:e,width:n,height:t,total:o,value:r,color:a,icon:s,suffix:l}){let c=t*fontGrowFactor<minFontSize?minFontSize:t*fontGrowFactor,u=o?`${r}/${o}`:`${r}`;l&&(u+=" "+l);let d=getTextWidth(u,`bold ${Math.floor(c*1.03)}px sans-serif`);s&&(d=d*2),d>=n*.85&&(c=n*.85/d*c);const f=s&&iconMapper(s);return jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:jsxRuntime.jsxs(Title$2,{style:{fontSize:c,margin:0,color:a},children:[f&&jsxRuntime.jsx(f,{style:{fontSize:c*.7}}),f?` ${u}`:u]})})}function PercentageIndicator({measureRef:e,height:n,width:t,percent:o,total:r,value:a,color:s,icon:l,suffix:c}){const u=n*.65;let d=u*fontGrowFactor<minFontSize?minFontSize:u*fontGrowFactor,f=r?`${a}/${r}`:`${a}`;c&&(f+=" "+c);const m=`${o}%`;let p=getTextWidth(m,`bold ${Math.floor(d*1.03)}px sans-serif`);l&&(p=p*1.5);const h=l&&iconMapper(l);return(p>=t*.85||d*2<u)&&(d=t*.85/p*d),jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexDirection:"column",padding:"0.2rem"},children:jsxRuntime.jsxs(antd.Row,{align:"middle",children:[h&&jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(h,{style:{fontSize:d*1,color:s,paddingRight:"10px"}})}),jsxRuntime.jsxs(antd.Col,{children:[jsxRuntime.jsx(Title$2,{style:{fontSize:d*.8,margin:0,color:s},children:h?` ${o}%`:`${o}%`}),jsxRuntime.jsx(Title$2,{style:{fontSize:d*.4,margin:0,color:s,textAlign:"center"},children:f})]})]})})}const DefaultGraphOptions={default:{padding:"auto",xAxis:{tickCount:5},legend:{maxWidthRatio:.5,maxItemWidth:1e3}},pie:{appendPadding:10,radius:.9,label:{type:"inner",offset:"-30%",content:({percent:e})=>`${(e*100).toFixed(0)}%`,style:{fontSize:14,textAlign:"center"}},legend:{maxWidthRatio:.5,maxItemWidth:1e3},interactions:[{type:"element-active"}]},barGrouped:{isGroup:!0,legend:{maxWidthRatio:.5,maxItemWidth:1e3},label:{position:"middle",layout:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"}]}}},{processGraphData}=ooui.graphProcessor,{getFieldsToRetrieve}=ooui.graphFieldUtils,useGraphData=e=>{const{model:n,domain:t=[],context:o={},xml:r,limit:a,uninformedString:s}=e,[l,c]=React.useState(!1),[u,d]=React.useState(),[f,m]=React.useState(),[p,h]=React.useState("line");return useDeepCompareEffect__default.default(()=>{(async()=>{c(!0),d(void 0);const v=ooui.parseGraph(r);h(v.type||"line");const C=getFieldsToRetrieve({ooui:v});let I,g;try{({values:I,fields:g}=await retrieveData({model:n,domain:t,context:o,limit:a,order:v.timerange?v.x.name:null,fields:C}))}catch(y){d("Error fetching graph data values: "+JSON.stringify(y)),c(!1);return}try{if(!I||!g){d("No values or fields returned"),c(!1);return}const y=processGraphData({ooui:v,values:I,fields:g,options:{uninformedString:s}});m(y)}catch(y){d("Error processing graph data: "+y),c(!1);return}c(!1)})()},[r,n,a,o,t]),{loading:l,error:u,type:p,values:f}};async function getFieldsForModel({model:e,context:n,fields:t}){return await ConnectionProvider.getHandler().getFields({model:e,context:n,fields:t})}async function retrieveData({fields:e,model:n,domain:t,context:o,order:r,limit:a}){const s=await ConnectionProvider.getHandler().search({model:n,params:t,fields:e,context:o,limit:a,order:r}),l=await getFieldsForModel({model:n,context:o,fields:e});return{values:s,fields:l}}const types={line:plots.Line,bar:plots.Column,pie:plots.Pie},GraphChart=e=>{const{model:n,domain:t,context:o,xml:r,limit:a}=e,{t:s}=React.useContext(LocaleContext),{error:l,loading:c,values:u,type:d}=useGraphData({model:n,xml:r,limit:a,domain:t,context:o,uninformedString:s("uninformed")});if(l)return jsxRuntime.jsx(antd.Alert,{message:l,type:"error",banner:!0});if(c)return jsxRuntime.jsx(antd.Spin,{});if(!u)return jsxRuntime.jsx(antd.Alert,{message:"No data to display",type:"info"});const{data:f,isGroup:m,isStack:p}=u,h=types[d];return h?jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(h,{...getGraphProps({type:d,data:f,isGroup:m,isStack:p})})}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Unknown graph type: ${d}`})};function getGraphProps(e){const{type:n,data:t,isGroup:o,isStack:r}=e;let a=DefaultGraphOptions[n];return a||(a=DefaultGraphOptions.default),a.data=t,n==="pie"?(a.colorField="x",a.angleField="value"):(a.xField="x",a.yField="value",a.seriesField="type",a.isGroup=o,r&&(a.isStack=!0,a.groupField="stacked")),a}const Graph=e=>{const{view_id:n,model:t,context:o,domain:r,limit:a}=e,[s,l]=React.useState(!1),[c,u]=React.useState(),[d,f]=React.useState();React.useEffect(()=>{m()},[n]);async function m(){l(!0);try{const p=await ConnectionProvider.getHandler().getView({model:t,id:n,type:"graph",context:o});f(p.arch);const h=ooui.parseGraph(p.arch);u(h)}catch(p){return console.error(p),jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(p)})}l(!1)}if(s)return jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})});if(!c)return null;switch(c.type){case"indicatorField":case"indicator":{const p=c,h=p.type==="indicatorField"?{field:p.field,operator:p.operator}:{};return jsxRuntime.jsx(GraphIndicator,{showPercent:p.showPercent,totalDomain:p.totalDomain,colorCondition:p.color,model:t,context:o,domain:r,icon:p.icon,suffix:p.suffix,...h})}case"line":case"bar":case"pie":return jsxRuntime.jsx(GraphChart,{model:t,context:o,domain:r,xml:d,limit:a});default:return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Graph ${c.type} not implemented`})}},{confirm:confirm$2}=antd.Modal,showDialog$2=({onOk:e,lang:n})=>{confirm$2({title:tForLang("removeItems",n),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRemove",n),okText:tForLang("yesConfirmRemove",n),onOk:e,cancelText:tForLang("cancel",n)})},{confirm:confirm$1}=antd.Modal,showDialog$1=({onOk:e,lang:n})=>{confirm$1({title:tForLang("unlinkItems",n),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmUnlink",n),okText:tForLang("yesConfirmUnlink",n),onOk:e,cancelText:tForLang("cancel",n)})},One2manyTopBar=e=>{const{title:n,readOnly:t,onCreateItem:o,onToggleViewMode:r,mode:a,onDelete:s,totalItems:l,currentItemIndex:c,onPreviousItem:u,onNextItem:d,isMany2Many:f,onSearchItem:m,selectedRowKeys:p,showCreateButton:h,showToggleButton:v}=e;function C(){return jsxRuntime.jsx("div",{className:"inline-block w-3"})}function I(){return jsxRuntime.jsx("div",{className:"h-8 flex flex-grow bg-gray-700 text-gray-200",children:jsxRuntime.jsx("div",{className:"h-full flex flex-col justify-center items-center",children:jsxRuntime.jsx("span",{className:"pl-2 font-bold",children:n})})})}function g(){return jsxRuntime.jsx(ButtonWithTooltip,{tooltip:f?"Unlink":"Delete",icon:f?jsxRuntime.jsx(Icon.ApiOutlined,{}):jsxRuntime.jsx(Icon.DeleteOutlined,{}),onClick:s,disabled:l===0||t||a!=="form"&&p.length===0})}function y(){let w="_";return l===0?w="_":w=(c+1).toString(),jsxRuntime.jsxs("span",{className:"pl-1 pr-1",children:["(",w,"/",l,")"]})}function x(){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Previous item",icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),onClick:u}),y(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Next item",icon:jsxRuntime.jsx(Icon.RightOutlined,{}),onClick:d})]})}return jsxRuntime.jsxs("div",{className:"flex mb-2",children:[I(),jsxRuntime.jsxs("div",{className:"h-8 flex-none pl-2",children:[a!=="graph"&&h&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Create new item",icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),disabled:t,onClick:o}),f&&h&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Search existing item",icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:t,onClick:m}),a!=="graph"&&C(),a!=="graph"&&g(),a==="form"&&x(),C(),v&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Toggle view mode",icon:jsxRuntime.jsx(Icon.AlignLeftOutlined,{}),onClick:r})]})]})},ViewObjects={form:ooui.Form,tree:ooui.Tree,graph:Graph};function filterDuplicateItems(e){const n=e.map(o=>o.id);return e.filter((o,r)=>{const{id:a}=o;return!n.includes(a,r+1)})}const One2manyInput=e=>{var _e;const{value:n,onChange:t,ooui:o,views:r}=e,{items:a=[]}=n||{},{currentView:s,setCurrentView:l,itemIndex:c,setItemIndex:u}=React.useContext(One2manyContext),d=React.useContext(FormContext$1),{activeId:f,getFields:m,getValues:p,getContext:h,domain:v}=d||{},{lang:C,t:I}=React.useContext(LocaleContext),g=React.useRef(),[y,x]=React.useState(!1),[w,O]=React.useState(!1),[F,b]=React.useState(),[_,T]=React.useState(!1),[k,N]=React.useState(!1),[D,P]=React.useState(),[j,$]=React.useState([]),[q,B]=React.useState(!1),H=React.useRef([]),[G,Y]=React.useState(),W=React.useRef(),{readOnly:Z,relation:L,context:V,domain:M}=o,A=o.type==="many2many",{id:U}=o,K=a.filter(oe=>oe.values&&oe.operation!=="pendingRemove");React.useEffect(()=>{a.some(oe=>!oe.values)&&E()},[a]),React.useEffect(()=>{z()},[v]);const Q=oe=>{var le,he;t==null||t({fields:((le=r.get("form"))==null?void 0:le.fields)||((he=r.get("tree"))==null?void 0:he.fields),items:filterDuplicateItems(oe)})},E=async()=>{await S(),c>K.length-1&&c!==0&&u(0)},S=async()=>{var oe;O(!0),x(!1),b(void 0);try{const le=await readObjectValues({treeFields:r.get("tree").fields,formFields:((oe=r.get("form"))==null?void 0:oe.fields)||{},model:L,items:a,context:{...h==null?void 0:h(),...V}});W.current||(W.current=le.map(he=>he.id)),Q(le)}catch(le){b(le)}finally{O(!1)}};async function z(){M&&(H.current=ooui.transformDomainForChildWidget({domain:await ConnectionProvider.getHandler().evalDomain({domain:M,values:transformPlainMany2Ones({fields:m(),values:p()}),context:h()}),widgetFieldName:U})),v&&v.length>0&&(H.current=H.current.concat(ooui.transformDomainForChildWidget({domain:v,widgetFieldName:U})))}const X=()=>{const oe=Array.from(r.keys()),le=oe[(oe.indexOf(s)+1)%oe.length];s==="form"?ae(()=>{l(le)}):l(le)},ne=()=>{c>0&&(s==="form"?ae(()=>{u(c-1)}):u(c-1))},ee=()=>{const oe=K.length;c<oe-1&&(s==="form"?ae(()=>{u(c+1)}):u(c+1))},re=async()=>{const oe=K[c].id,le=(await ConnectionProvider.getHandler().readObjects({model:L,ids:[oe],fields:r.get("form").fields,context:{...h==null?void 0:h(),...V}}))[0],he=(await ConnectionProvider.getHandler().readObjects({model:L,ids:[oe],fields:r.get("tree").fields,context:{...h==null?void 0:h(),...V}}))[0],se=a.map(me=>me.id===oe?{...me,operation:"original",values:le,treeValues:he}:me);Q(se)},ae=oe=>{y?showDialog$6({lang:C,onOk:()=>{re(),oe(),x(!1)}}):oe()},ie=()=>{if(A){showDialog$1({lang:C,onOk:()=>{s==="form"?ge():Re()}});return}showDialog$2({lang:C,onOk:()=>{s==="form"?ge():Re()}})},ce=async()=>{const{inv_field:oe}=o;let le;oe&&f&&(le={[oe]:f}),s==="form"?ae(()=>{B(!0),P({defaultValues:le}),T(!0)}):(B(!0),P({defaultValues:le}),T(!0))},pe=async()=>{s==="form"?ae(()=>{N(!0)}):N(!0)},ge=async()=>{O(!0),x(!1),b(void 0);try{if(K[c].id>0){const oe=a.map(le=>le.id===K[c].id?{...le,operation:"pendingRemove"}:le);Q(oe)}else Q(a.filter(oe=>oe.id!==K[c].id))}catch(oe){b(oe)}u(0),O(!1)},Re=async()=>{const oe=K.filter(le=>j.includes(le.id));O(!0),x(!1),b(void 0);try{const le=oe.map(se=>se.id),he=a.filter(se=>!(le.includes(se.id)&&se.id<0)).map(se=>le.includes(se.id)?{...se,operation:"pendingRemove"}:se);Q(he)}catch(le){b(le)}u(0),O(!1)},Ie=(oe,le,he)=>{let se;if(oe)se=a.map(me=>me.id===oe?{id:oe,operation:oe>0?"pendingUpdate":"pendingCreate",values:{...he,id:oe},treeValues:{...he,id:oe}}:me);else{const me=getNextPendingId(a);se=a.concat({id:me,operation:"pendingCreate",values:{...he,id:me},treeValues:{...he,id:me}})}Q(se),q||T(!1)},Fe=oe=>{const{id:le}=oe;P(a.find(he=>he.id===le)),B(!1),T(!0)},ve=async oe=>{O(!0);let le=a;const he=oe.filter(se=>!a.find(me=>me.id===se));try{for(const se of he){const me=(await ConnectionProvider.getHandler().readObjects({model:L,ids:[se],fields:r.get("form").fields,context:{...h==null?void 0:h(),...V}}))[0],ye=(await ConnectionProvider.getHandler().readObjects({model:L,ids:[se],fields:r.get("tree").fields,context:{...h==null?void 0:h(),...V}}))[0];le.push({id:se,operation:"pendingLink",values:me,treeValues:ye})}Q(le)}catch(se){b(se)}finally{O(!1)}};function Se(){const oe=ViewObjects[s];if(s==="graph")return ooui.parseGraph(r.get("graph").arch).string;{const le=new oe(r.get(s).fields);return le.parse(r.get(s).arch),le.string}}const xe=()=>{var le,he,se,me;if(s==="form")return K.length===0?I("noCurrentEntries"):jsxRuntime.jsx(Form$1,{formView:r.get("form"),values:(le=K[c])==null?void 0:le.values,parentContext:{...h==null?void 0:h(),...V},ref:g,model:L,id:(he=K[c])==null?void 0:he.id,submitMode:"values",onFieldsChange:ye=>{var Pe;const be=(Pe=K[c])==null?void 0:Pe.id,Te=a.map(ke=>ke.id===be?{...ke,operation:ke.operation==="original"?"pendingUpdate":ke.operation,values:{...ye,id:be},treeValues:{...ye,id:be}}:ke);Q(Te),x(!0)},readOnly:Z});const oe=G?sortResults({resultsToSort:K.map(ye=>ye.treeValues),sorter:G,fields:{...r.get("tree").fields,...((se=r.get("form"))==null?void 0:se.fields)||{}}}):K.map(ye=>ye.treeValues);if(s==="tree")return jsxRuntime.jsx(Tree,{total:K.length,limit:K.length,treeView:r.get("tree"),results:oe,loading:w,onRowClicked:((me=r.get("form"))==null?void 0:me.fields)!==void 0?Fe:void 0,showPagination:!1,rowSelection:{selectedRowKeys:j,onChange:$},sorter:G,onChangeSort:Y});if(s==="graph"){const ye=[[`${o.inv_field}`,"=",f]];return jsxRuntime.jsx(Graph,{view_id:r.get("graph").view_id,model:o.relation,domain:ye,context:{...h==null?void 0:h(),...V},limit:0})}};if(F)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:F,type:"error",banner:!0});const Ee=q;return w?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(One2manyTopBar,{mode:s,title:Se(),readOnly:Z,isMany2Many:A,formHasChanges:y,totalItems:K.length,currentItemIndex:c,onDelete:ie,onCreateItem:ce,onToggleViewMode:X,onPreviousItem:ne,onNextItem:ee,onSearchItem:pe,selectedRowKeys:j,showCreateButton:((_e=r.get("form"))==null?void 0:_e.fields)!==void 0,showToggleButton:r.size>1}),xe(),jsxRuntime.jsx(FormModal,{formView:r.get("form"),model:L,id:D==null?void 0:D.id,submitMode:"values",values:D==null?void 0:D.values,defaultValues:D==null?void 0:D.defaultValues,visible:_,onSubmitSucceed:Ie,parentContext:{...h==null?void 0:h(),...V},onCancel:()=>{B(!1),T(!1)},readOnly:Z,mustClearAfterSave:Ee}),jsxRuntime.jsx(SearchModal,{domain:H.current,model:L,context:{...h==null?void 0:h(),...V},visible:k,onSelectValues:async oe=>{N(!1),ve(oe)},onCloseModal:()=>{N(!1)}})]})},One2many=e=>{const{ooui:n}=e,{mode:t,relation:o,views:r,required:a,context:s}=n;let l;const[c,u]=React.useState(!0),[d,f]=React.useState(),[m,p]=React.useState(new Map),h=React.useContext(FormContext$1),{getContext:v}=h||{};useDeepCompareEffect__default.default(()=>{I()},[n]);const C=async y=>r&&r[y]?r[y]:await ConnectionProvider.getHandler().getView({model:o,type:y,context:{...v==null?void 0:v(),...s}}),I=async()=>{u(!0),f(void 0);try{if(t&&t.length>0){for(const y of t){const x=await C(y);m.set(y,x)}p(m)}else{const y=await C("form"),x=await C("tree");m.set("form",y),m.set("tree",x),p(m)}}catch(y){f(JSON.stringify(y))}finally{u(!1)}};if(t&&t.length>0?l=t[0]:l="tree",c)return jsxRuntime.jsx(antd.Spin,{});if(d)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:d,type:"error",banner:!0});const g=async(y,x)=>{if(!x)throw new Error;if(!x.items)throw new Error;if(!Array.isArray(x.items))throw new Error;if(x.items.length===0)throw new Error};return jsxRuntime.jsx(One2manyProvider,{initialView:l,children:jsxRuntime.jsx(Field$1,{required:a,type:"array",validator:g,...e,children:jsxRuntime.jsx(One2manyInput,{ooui:n,views:m})})})},FloatTime=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"number",...e,children:jsxRuntime.jsx(FloatTimeInput,{ooui:n})})},FloatTimeInput=e=>{const{ooui:n,value:t,onChange:o}=e,{id:r,readOnly:a,required:s}=n,l=s&&!a?Config.requiredClass:void 0,c=React.useRef(),[u,d]=React.useState(),f=React.useContext(FormContext$1),{elementHasLostFocus:m}=f||{};React.useEffect(()=>{d(parseFloatToString(t))},[t]);const p=C=>{o==null||o(C)};function h(C){c.current=C.target.value,d(C.target.value)}async function v(){p(parseStringToFloat(u)),await new Promise(C=>setTimeout(C,300)),m==null||m()}return jsxRuntime.jsx(antd.Input,{value:u,disabled:a,className:"w-full "+l,id:r,placeholder:"00:00",onChange:h,onBlur:v})},Fieldset=e=>{const{label:n,children:t}=e;return jsxRuntime.jsxs("fieldset",{className:"p-2 border-gray-400 border border-solid font-sans",children:[jsxRuntime.jsx("legend",{style:{all:"initial",marginLeft:"1em",paddingLeft:"0.5em",paddingRight:"0.5em",fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"},children:n}),t]})};function Group(e){const{ooui:n,showLabel:t=!0,responsiveBehaviour:o}=e;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:n.label&&t?jsxRuntime.jsx(Fieldset,{label:n.label,children:jsxRuntime.jsx(Container,{container:n.container,responsiveBehaviour:o})}):jsxRuntime.jsx(Container,{container:n.container,responsiveBehaviour:o})})}const{TabPane}=antd.Tabs;function Notebook(e){const{ooui:n,responsiveBehaviour:t}=e,o=n.pages;function r(a){if(a){const s=iconMapper(a);return s&&jsxRuntime.jsx(s,{})}}return jsxRuntime.jsx(antd.Tabs,{defaultActiveKey:"1",tabPosition:n.tabPosition,children:o.filter(a=>!a.invisible).map(a=>jsxRuntime.jsx(TabPane,{tab:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r(a.icon)," ",a.label]}),children:jsxRuntime.jsx(Group,{ooui:a,showLabel:!1,responsiveBehaviour:t})},a.label))})}const{TextArea}=antd.Input,Text$2=e=>{const{ooui:n}=e,{id:t,readOnly:o,required:r,height:a,translatable:s}=n,l=r&&!o?Config.requiredClass:void 0,c=React.useContext(FormContext$1),{elementHasLostFocus:u}=c||{};return jsxRuntime.jsx(Field$1,{required:r,...e,children:s?jsxRuntime.jsx(TranslatableText,{field:t,requiredClass:l,height:a}):jsxRuntime.jsx(TextArea,{disabled:o||s,className:l,style:{height:a?a+"px":"100%"},rows:4,onBlur:u})})},TranslatableText=({value:e,field:n,requiredClass:t,onChange:o,height:r})=>{const a=React.useContext(FormContext$1),{activeId:s,activeModel:l,fetchValues:c,formHasChanges:u,elementHasLostFocus:d}=a||{},[f,m]=React.useState(!1),{t:p}=React.useContext(LocaleContext);return s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(u!=null&&u()){showDialog$7(p("saveBeforeTranslate"));return}f||m(!0)},children:jsxRuntime.jsx(TextArea,{value:e,onChange:h=>{o==null||o(h.target.value)},style:{height:r?r+"px":"100%",cursor:"pointer"},id:n,disabled:!0,className:t,rows:4,onBlur:d})}),jsxRuntime.jsx(TranslationModal,{id:s,model:l,field:n,visible:f,onCloseModal:()=>{m(!1)},onSubmitSucceed:()=>{m(!1),c==null||c()}})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,children:jsxRuntime.jsx(TextArea,{value:e,onChange:h=>{o==null||o(h.target.value)},style:{height:r?r+"px":"100%"},id:n,className:t,rows:4,onBlur:d})}),jsxRuntime.jsx(antd.Row,{justify:"end",style:{paddingTop:5},children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:p("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{u!=null&&u()?showDialog$7(p("saveBeforeTranslate")):showDialog$7(p("enterTextBeforeTranslate"))},children:p("translate")})})]})},Separator=e=>{const{ooui:n}=e,{label:t}=n;return jsxRuntime.jsx(antd.Divider,{orientation:"left",className:"text-sm",children:t})};//! moment.js
120
120
  //! version : 2.29.4
121
121
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
122
122
  //! license : MIT
@@ -125,6 +125,6 @@ var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}func
125
125
  [`+a+"] ";for(s in arguments[0])hasOwnProp(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];o.push(r)}warn(e+`
126
126
  Arguments: `+Array.prototype.slice.call(o).join("")+`
127
127
  `+new Error().stack),t=!1}return n.apply(this,arguments)},n)}var deprecations={};function deprecateSimple(e,n){hooks.deprecationHandler!=null&&hooks.deprecationHandler(e,n),deprecations[e]||(warn(n),deprecations[e]=!0)}hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null;function isFunction(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function set(e){var n,t;for(t in e)hasOwnProp(e,t)&&(n=e[t],isFunction(n)?this[t]=n:this["_"+t]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(e,n){var t=extend({},e),o;for(o in n)hasOwnProp(n,o)&&(isObject(e[o])&&isObject(n[o])?(t[o]={},extend(t[o],e[o]),extend(t[o],n[o])):n[o]!=null?t[o]=n[o]:delete t[o]);for(o in e)hasOwnProp(e,o)&&!hasOwnProp(n,o)&&isObject(e[o])&&(t[o]=extend({},t[o]));return t}function Locale(e){e!=null&&this.set(e)}var keys;Object.keys?keys=Object.keys:keys=function(e){var n,t=[];for(n in e)hasOwnProp(e,n)&&t.push(n);return t};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(e,n,t){var o=this._calendar[e]||this._calendar.sameElse;return isFunction(o)?o.call(n,t):o}function zeroFill(e,n,t){var o=""+Math.abs(e),r=n-o.length,a=e>=0;return(a?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(e,n,t,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(formatTokenFunctions[e]=r),n&&(formatTokenFunctions[n[0]]=function(){return zeroFill(r.apply(this,arguments),n[1],n[2])}),t&&(formatTokenFunctions[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function removeFormattingTokens(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function makeFormatFunction(e){var n=e.match(formattingTokens),t,o;for(t=0,o=n.length;t<o;t++)formatTokenFunctions[n[t]]?n[t]=formatTokenFunctions[n[t]]:n[t]=removeFormattingTokens(n[t]);return function(r){var a="",s;for(s=0;s<o;s++)a+=isFunction(n[s])?n[s].call(r,e):n[s];return a}}function formatMoment(e,n){return e.isValid()?(n=expandFormat(n,e.localeData()),formatFunctions[n]=formatFunctions[n]||makeFormatFunction(n),formatFunctions[n](e)):e.localeData().invalidDate()}function expandFormat(e,n){var t=5;function o(r){return n.longDateFormat(r)||r}for(localFormattingTokens.lastIndex=0;t>=0&&localFormattingTokens.test(e);)e=e.replace(localFormattingTokens,o),localFormattingTokens.lastIndex=0,t-=1;return e}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(e){var n=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return n||!t?n:(this._longDateFormat[e]=t.match(formattingTokens).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(e){return this._ordinal.replace("%d",e)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(e,n,t,o){var r=this._relativeTime[t];return isFunction(r)?r(e,n,t,o):r.replace(/%d/i,e)}function pastFuture(e,n){var t=this._relativeTime[e>0?"future":"past"];return isFunction(t)?t(n):t.replace(/%s/i,n)}var aliases={};function addUnitAlias(e,n){var t=e.toLowerCase();aliases[t]=aliases[t+"s"]=aliases[n]=e}function normalizeUnits(e){return typeof e=="string"?aliases[e]||aliases[e.toLowerCase()]:void 0}function normalizeObjectUnits(e){var n={},t,o;for(o in e)hasOwnProp(e,o)&&(t=normalizeUnits(o),t&&(n[t]=e[o]));return n}var priorities={};function addUnitPriority(e,n){priorities[e]=n}function getPrioritizedUnits(e){var n=[],t;for(t in e)hasOwnProp(e,t)&&n.push({unit:t,priority:priorities[t]});return n.sort(function(o,r){return o.priority-r.priority}),n}function isLeapYear(e){return e%4===0&&e%100!==0||e%400===0}function absFloor(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function toInt(e){var n=+e,t=0;return n!==0&&isFinite(n)&&(t=absFloor(n)),t}function makeGetSet(e,n){return function(t){return t!=null?(set$1(this,e,t),hooks.updateOffset(this,n),this):get(this,e)}}function get(e,n){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+n]():NaN}function set$1(e,n,t){e.isValid()&&!isNaN(t)&&(n==="FullYear"&&isLeapYear(e.year())&&e.month()===1&&e.date()===29?(t=toInt(t),e._d["set"+(e._isUTC?"UTC":"")+n](t,e.month(),daysInMonth(t,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+n](t))}function stringGet(e){return e=normalizeUnits(e),isFunction(this[e])?this[e]():this}function stringSet(e,n){if(typeof e=="object"){e=normalizeObjectUnits(e);var t=getPrioritizedUnits(e),o,r=t.length;for(o=0;o<r;o++)this[t[o].unit](e[t[o].unit])}else if(e=normalizeUnits(e),isFunction(this[e]))return this[e](n);return this}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes;regexes={};function addRegexToken(e,n,t){regexes[e]=isFunction(n)?n:function(o,r){return o&&t?t:n}}function getParseRegexForToken(e,n){return hasOwnProp(regexes,e)?regexes[e](n._strict,n._locale):new RegExp(unescapeFormat(e))}function unescapeFormat(e){return regexEscape(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,o,r,a){return t||o||r||a}))}function regexEscape(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(e,n){var t,o=n,r;for(typeof e=="string"&&(e=[e]),isNumber(n)&&(o=function(a,s){s[n]=toInt(a)}),r=e.length,t=0;t<r;t++)tokens[e[t]]=o}function addWeekParseToken(e,n){addParseToken(e,function(t,o,r,a){r._w=r._w||{},n(t,r._w,r,a)})}function addTimeToArrayFromToken(e,n,t){n!=null&&hasOwnProp(tokens,e)&&tokens[e](n,t._a,t,e)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function mod(e,n){return(e%n+n)%n}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1};function daysInMonth(e,n){if(isNaN(e)||isNaN(n))return NaN;var t=mod(n,12);return e+=(n-t)/12,t===1?isLeapYear(e)?29:28:31-t%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),addFormatToken("MMMM",0,0,function(e){return this.localeData().months(this,e)}),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",function(e,n){return n.monthsShortRegex(e)}),addRegexToken("MMMM",function(e,n){return n.monthsRegex(e)}),addParseToken(["M","MM"],function(e,n){n[MONTH]=toInt(e)-1}),addParseToken(["MMM","MMMM"],function(e,n,t,o){var r=t._locale.monthsParse(e,o,t._strict);r!=null?n[MONTH]=r:getParsingFlags(t).invalidMonth=e});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(e,n){return e?isArray(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(n)?"format":"standalone"][e.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(e,n){return e?isArray(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(n)?"format":"standalone"][e.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(e,n,t){var o,r,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)a=createUTC([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(a,"").toLocaleLowerCase();return t?n==="MMM"?(r=indexOf.call(this._shortMonthsParse,s),r!==-1?r:null):(r=indexOf.call(this._longMonthsParse,s),r!==-1?r:null):n==="MMM"?(r=indexOf.call(this._shortMonthsParse,s),r!==-1?r:(r=indexOf.call(this._longMonthsParse,s),r!==-1?r:null)):(r=indexOf.call(this._longMonthsParse,s),r!==-1?r:(r=indexOf.call(this._shortMonthsParse,s),r!==-1?r:null))}function localeMonthsParse(e,n,t){var o,r,a;if(this._monthsParseExact)return handleStrictParse.call(this,e,n,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=createUTC([2e3,o]),t&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!t&&!this._monthsParse[o]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(a.replace(".",""),"i")),t&&n==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(t&&n==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!t&&this._monthsParse[o].test(e))return o}}function setMonth(e,n){var t;if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=toInt(n);else if(n=e.localeData().monthsParse(n),!isNumber(n))return e}return t=Math.min(e.date(),daysInMonth(e.year(),n)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](n,t),e}function getSetMonth(e){return e!=null?(setMonth(this,e),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function e(s,l){return l.length-s.length}var n=[],t=[],o=[],r,a;for(r=0;r<12;r++)a=createUTC([2e3,r]),n.push(this.monthsShort(a,"")),t.push(this.months(a,"")),o.push(this.months(a,"")),o.push(this.monthsShort(a,""));for(n.sort(e),t.sort(e),o.sort(e),r=0;r<12;r++)n[r]=regexEscape(n[r]),t[r]=regexEscape(t[r]);for(r=0;r<24;r++)o[r]=regexEscape(o[r]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}addFormatToken("Y",0,0,function(){var e=this.year();return e<=9999?zeroFill(e,4):"+"+e}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",function(e,n){n[YEAR]=e.length===2?hooks.parseTwoDigitYear(e):toInt(e)}),addParseToken("YY",function(e,n){n[YEAR]=hooks.parseTwoDigitYear(e)}),addParseToken("Y",function(e,n){n[YEAR]=parseInt(e,10)});function daysInYear(e){return isLeapYear(e)?366:365}hooks.parseTwoDigitYear=function(e){return toInt(e)+(toInt(e)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(e,n,t,o,r,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,n,t,o,r,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,n,t,o,r,a,s),l}function createUTCDate(e){var n,t;return e<100&&e>=0?(t=Array.prototype.slice.call(arguments),t[0]=e+400,n=new Date(Date.UTC.apply(null,t)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function firstWeekOffset(e,n,t){var o=7+n-t,r=(7+createUTCDate(e,0,o).getUTCDay()-n)%7;return-r+o-1}function dayOfYearFromWeeks(e,n,t,o,r){var a=(7+t-o)%7,s=firstWeekOffset(e,o,r),l=1+7*(n-1)+a+s,c,u;return l<=0?(c=e-1,u=daysInYear(c)+l):l>daysInYear(e)?(c=e+1,u=l-daysInYear(e)):(c=e,u=l),{year:c,dayOfYear:u}}function weekOfYear(e,n,t){var o=firstWeekOffset(e.year(),n,t),r=Math.floor((e.dayOfYear()-o-1)/7)+1,a,s;return r<1?(s=e.year()-1,a=r+weeksInYear(s,n,t)):r>weeksInYear(e.year(),n,t)?(a=r-weeksInYear(e.year(),n,t),s=e.year()+1):(s=e.year(),a=r),{week:a,year:s}}function weeksInYear(e,n,t){var o=firstWeekOffset(e,n,t),r=firstWeekOffset(e+1,n,t);return(daysInYear(e)-o+r)/7}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],function(e,n,t,o){n[o.substr(0,1)]=toInt(e)});function localeWeek(e){return weekOfYear(e,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function getSetISOWeek(e){var n=weekOfYear(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),addFormatToken("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),addFormatToken("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",function(e,n){return n.weekdaysMinRegex(e)}),addRegexToken("ddd",function(e,n){return n.weekdaysShortRegex(e)}),addRegexToken("dddd",function(e,n){return n.weekdaysRegex(e)}),addWeekParseToken(["dd","ddd","dddd"],function(e,n,t,o){var r=t._locale.weekdaysParse(e,o,t._strict);r!=null?n.d=r:getParsingFlags(t).invalidWeekday=e}),addWeekParseToken(["d","e","E"],function(e,n,t,o){n[o]=toInt(e)});function parseWeekday(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function parseIsoWeekday(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function shiftWeekdays(e,n){return e.slice(n,7).concat(e.slice(0,n))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(e,n){var t=isArray(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===!0?shiftWeekdays(t,this._week.dow):e?t[e.day()]:t}function localeWeekdaysShort(e){return e===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function localeWeekdaysMin(e){return e===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function handleStrictParse$1(e,n,t){var o,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)a=createUTC([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(a,"").toLocaleLowerCase();return t?n==="dddd"?(r=indexOf.call(this._weekdaysParse,s),r!==-1?r:null):n==="ddd"?(r=indexOf.call(this._shortWeekdaysParse,s),r!==-1?r:null):(r=indexOf.call(this._minWeekdaysParse,s),r!==-1?r:null):n==="dddd"?(r=indexOf.call(this._weekdaysParse,s),r!==-1||(r=indexOf.call(this._shortWeekdaysParse,s),r!==-1)?r:(r=indexOf.call(this._minWeekdaysParse,s),r!==-1?r:null)):n==="ddd"?(r=indexOf.call(this._shortWeekdaysParse,s),r!==-1||(r=indexOf.call(this._weekdaysParse,s),r!==-1)?r:(r=indexOf.call(this._minWeekdaysParse,s),r!==-1?r:null)):(r=indexOf.call(this._minWeekdaysParse,s),r!==-1||(r=indexOf.call(this._weekdaysParse,s),r!==-1)?r:(r=indexOf.call(this._shortWeekdaysParse,s),r!==-1?r:null))}function localeWeekdaysParse(e,n,t){var o,r,a;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,e,n,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=createUTC([2e3,1]).day(o),t&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(a.replace(".",""),"i")),t&&n==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(t&&n==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(t&&n==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!t&&this._weekdaysParse[o].test(e))return o}}function getSetDayOfWeek(e){if(!this.isValid())return e!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=parseWeekday(e,this.localeData()),this.add(e-n,"d")):n}function getSetLocaleDayOfWeek(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function getSetISODayOfWeek(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=parseIsoWeekday(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function weekdaysRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function e(d,f){return f.length-d.length}var n=[],t=[],o=[],r=[],a,s,l,c,u;for(a=0;a<7;a++)s=createUTC([2e3,1]).day(a),l=regexEscape(this.weekdaysMin(s,"")),c=regexEscape(this.weekdaysShort(s,"")),u=regexEscape(this.weekdays(s,"")),n.push(l),t.push(c),o.push(u),r.push(l),r.push(c),r.push(u);n.sort(e),t.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(e,n){addFormatToken(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13);function matchMeridiem(e,n){return n._meridiemParse}addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],function(e,n,t){var o=toInt(e);n[HOUR]=o===24?0:o}),addParseToken(["a","A"],function(e,n,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),addParseToken(["h","hh"],function(e,n,t){n[HOUR]=toInt(e),getParsingFlags(t).bigHour=!0}),addParseToken("hmm",function(e,n,t){var o=e.length-2;n[HOUR]=toInt(e.substr(0,o)),n[MINUTE]=toInt(e.substr(o)),getParsingFlags(t).bigHour=!0}),addParseToken("hmmss",function(e,n,t){var o=e.length-4,r=e.length-2;n[HOUR]=toInt(e.substr(0,o)),n[MINUTE]=toInt(e.substr(o,2)),n[SECOND]=toInt(e.substr(r)),getParsingFlags(t).bigHour=!0}),addParseToken("Hmm",function(e,n,t){var o=e.length-2;n[HOUR]=toInt(e.substr(0,o)),n[MINUTE]=toInt(e.substr(o))}),addParseToken("Hmmss",function(e,n,t){var o=e.length-4,r=e.length-2;n[HOUR]=toInt(e.substr(0,o)),n[MINUTE]=toInt(e.substr(o,2)),n[SECOND]=toInt(e.substr(r))});function localeIsPM(e){return(e+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(e,n,t){return e>11?t?"pm":"PM":t?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(e,n){var t,o=Math.min(e.length,n.length);for(t=0;t<o;t+=1)if(e[t]!==n[t])return t;return o}function normalizeLocale(e){return e&&e.toLowerCase().replace("_","-")}function chooseLocale(e){for(var n=0,t,o,r,a;n<e.length;){for(a=normalizeLocale(e[n]).split("-"),t=a.length,o=normalizeLocale(e[n+1]),o=o?o.split("-"):null;t>0;){if(r=loadLocale(a.slice(0,t).join("-")),r)return r;if(o&&o.length>=t&&commonPrefix(a,o)>=t-1)break;t--}n++}return globalLocale}function isLocaleNameSane(e){return e.match("^[^/\\\\]*$")!=null}function loadLocale(e){var n=null,t;if(locales[e]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(e))try{n=globalLocale._abbr,t=require,t("./locale/"+e),getSetGlobalLocale(n)}catch{locales[e]=null}return locales[e]}function getSetGlobalLocale(e,n){var t;return e&&(isUndefined(n)?t=getLocale(e):t=defineLocale(e,n),t?globalLocale=t:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(e,n){if(n!==null){var t,o=baseConfig;if(n.abbr=e,locales[e]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=locales[e]._config;else if(n.parentLocale!=null)if(locales[n.parentLocale]!=null)o=locales[n.parentLocale]._config;else if(t=loadLocale(n.parentLocale),t!=null)o=t._config;else return localeFamilies[n.parentLocale]||(localeFamilies[n.parentLocale]=[]),localeFamilies[n.parentLocale].push({name:e,config:n}),null;return locales[e]=new Locale(mergeConfigs(o,n)),localeFamilies[e]&&localeFamilies[e].forEach(function(r){defineLocale(r.name,r.config)}),getSetGlobalLocale(e),locales[e]}else return delete locales[e],null}function updateLocale(e,n){if(n!=null){var t,o,r=baseConfig;locales[e]!=null&&locales[e].parentLocale!=null?locales[e].set(mergeConfigs(locales[e]._config,n)):(o=loadLocale(e),o!=null&&(r=o._config),n=mergeConfigs(r,n),o==null&&(n.abbr=e),t=new Locale(n),t.parentLocale=locales[e],locales[e]=t),getSetGlobalLocale(e)}else locales[e]!=null&&(locales[e].parentLocale!=null?(locales[e]=locales[e].parentLocale,e===getSetGlobalLocale()&&getSetGlobalLocale(e)):locales[e]!=null&&delete locales[e]);return locales[e]}function getLocale(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return globalLocale;if(!isArray(e)){if(n=loadLocale(e),n)return n;e=[e]}return chooseLocale(e)}function listLocales(){return keys(locales)}function checkOverflow(e){var n,t=e._a;return t&&getParsingFlags(e).overflow===-2&&(n=t[MONTH]<0||t[MONTH]>11?MONTH:t[DATE]<1||t[DATE]>daysInMonth(t[YEAR],t[MONTH])?DATE:t[HOUR]<0||t[HOUR]>24||t[HOUR]===24&&(t[MINUTE]!==0||t[SECOND]!==0||t[MILLISECOND]!==0)?HOUR:t[MINUTE]<0||t[MINUTE]>59?MINUTE:t[SECOND]<0||t[SECOND]>59?SECOND:t[MILLISECOND]<0||t[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(e)._overflowDayOfYear&&(n<YEAR||n>DATE)&&(n=DATE),getParsingFlags(e)._overflowWeeks&&n===-1&&(n=WEEK),getParsingFlags(e)._overflowWeekday&&n===-1&&(n=WEEKDAY),getParsingFlags(e).overflow=n),e}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(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{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(e){var n,t,o=e._i,r=extendedIsoRegex.exec(o)||basicIsoRegex.exec(o),a,s,l,c,u=isoDates.length,d=isoTimes.length;if(r){for(getParsingFlags(e).iso=!0,n=0,t=u;n<t;n++)if(isoDates[n][1].exec(r[1])){s=isoDates[n][0],a=isoDates[n][2]!==!1;break}if(s==null){e._isValid=!1;return}if(r[3]){for(n=0,t=d;n<t;n++)if(isoTimes[n][1].exec(r[3])){l=(r[2]||" ")+isoTimes[n][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(r[4])if(tzRegex.exec(r[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),configFromStringAndFormat(e)}else e._isValid=!1}function extractFromRFC2822Strings(e,n,t,o,r,a){var s=[untruncateYear(e),defaultLocaleMonthsShort.indexOf(n),parseInt(t,10),parseInt(o,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}function untruncateYear(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(e,n,t){if(e){var o=defaultLocaleWeekdaysShort.indexOf(e),r=new Date(n[0],n[1],n[2]).getDay();if(o!==r)return getParsingFlags(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function calculateOffset(e,n,t){if(e)return obsOffsets[e];if(n)return 0;var o=parseInt(t,10),r=o%100,a=(o-r)/100;return a*60+r}function configFromRFC2822(e){var n=rfc2822.exec(preprocessRFC2822(e._i)),t;if(n){if(t=extractFromRFC2822Strings(n[4],n[3],n[2],n[5],n[6],n[7]),!checkWeekday(n[1],t,e))return;e._a=t,e._tzm=calculateOffset(n[8],n[9],n[10]),e._d=createUTCDate.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),getParsingFlags(e).rfc2822=!0}else e._isValid=!1}function configFromString(e){var n=aspNetJsonRegex.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(configFromISO(e),e._isValid===!1)delete e._isValid;else return;if(configFromRFC2822(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:hooks.createFromInputFallback(e)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function defaults(e,n,t){return e!=null?e:n!=null?n:t}function currentDateArray(e){var n=new Date(hooks.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function configFromArray(e){var n,t,o=[],r,a,s;if(!e._d){for(r=currentDateArray(e),e._w&&e._a[DATE]==null&&e._a[MONTH]==null&&dayOfYearFromWeekInfo(e),e._dayOfYear!=null&&(s=defaults(e._a[YEAR],r[YEAR]),(e._dayOfYear>daysInYear(s)||e._dayOfYear===0)&&(getParsingFlags(e)._overflowDayOfYear=!0),t=createUTCDate(s,0,e._dayOfYear),e._a[MONTH]=t.getUTCMonth(),e._a[DATE]=t.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=o[n]=r[n];for(;n<7;n++)e._a[n]=o[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[HOUR]===24&&e._a[MINUTE]===0&&e._a[SECOND]===0&&e._a[MILLISECOND]===0&&(e._nextDay=!0,e._a[HOUR]=0),e._d=(e._useUTC?createUTCDate:createDate).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[HOUR]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(getParsingFlags(e).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(e){var n,t,o,r,a,s,l,c,u;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(a=1,s=4,t=defaults(n.GG,e._a[YEAR],weekOfYear(createLocal(),1,4).year),o=defaults(n.W,1),r=defaults(n.E,1),(r<1||r>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=weekOfYear(createLocal(),a,s),t=defaults(n.gg,e._a[YEAR],u.year),o=defaults(n.w,u.week),n.d!=null?(r=n.d,(r<0||r>6)&&(c=!0)):n.e!=null?(r=n.e+a,(n.e<0||n.e>6)&&(c=!0)):r=a),o<1||o>weeksInYear(t,a,s)?getParsingFlags(e)._overflowWeeks=!0:c!=null?getParsingFlags(e)._overflowWeekday=!0:(l=dayOfYearFromWeeks(t,o,r,a,s),e._a[YEAR]=l.year,e._dayOfYear=l.dayOfYear)}hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};function configFromStringAndFormat(e){if(e._f===hooks.ISO_8601){configFromISO(e);return}if(e._f===hooks.RFC_2822){configFromRFC2822(e);return}e._a=[],getParsingFlags(e).empty=!0;var n=""+e._i,t,o,r,a,s,l=n.length,c=0,u,d;for(r=expandFormat(e._f,e._locale).match(formattingTokens)||[],d=r.length,t=0;t<d;t++)a=r[t],o=(n.match(getParseRegexForToken(a,e))||[])[0],o&&(s=n.substr(0,n.indexOf(o)),s.length>0&&getParsingFlags(e).unusedInput.push(s),n=n.slice(n.indexOf(o)+o.length),c+=o.length),formatTokenFunctions[a]?(o?getParsingFlags(e).empty=!1:getParsingFlags(e).unusedTokens.push(a),addTimeToArrayFromToken(a,o,e)):e._strict&&!o&&getParsingFlags(e).unusedTokens.push(a);getParsingFlags(e).charsLeftOver=l-c,n.length>0&&getParsingFlags(e).unusedInput.push(n),e._a[HOUR]<=12&&getParsingFlags(e).bigHour===!0&&e._a[HOUR]>0&&(getParsingFlags(e).bigHour=void 0),getParsingFlags(e).parsedDateParts=e._a.slice(0),getParsingFlags(e).meridiem=e._meridiem,e._a[HOUR]=meridiemFixWrap(e._locale,e._a[HOUR],e._meridiem),u=getParsingFlags(e).era,u!==null&&(e._a[YEAR]=e._locale.erasConvertYear(u,e._a[YEAR])),configFromArray(e),checkOverflow(e)}function meridiemFixWrap(e,n,t){var o;return t==null?n:e.meridiemHour!=null?e.meridiemHour(n,t):(e.isPM!=null&&(o=e.isPM(t),o&&n<12&&(n+=12),!o&&n===12&&(n=0)),n)}function configFromStringAndArray(e){var n,t,o,r,a,s,l=!1,c=e._f.length;if(c===0){getParsingFlags(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<c;r++)a=0,s=!1,n=copyConfig({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[r],configFromStringAndFormat(n),isValid(n)&&(s=!0),a+=getParsingFlags(n).charsLeftOver,a+=getParsingFlags(n).unusedTokens.length*10,getParsingFlags(n).score=a,l?a<o&&(o=a,t=n):(o==null||a<o||s)&&(o=a,t=n,s&&(l=!0));extend(e,t||n)}function configFromObject(e){if(!e._d){var n=normalizeObjectUnits(e._i),t=n.day===void 0?n.date:n.day;e._a=map([n.year,n.month,t,n.hour,n.minute,n.second,n.millisecond],function(o){return o&&parseInt(o,10)}),configFromArray(e)}}function createFromConfig(e){var n=new Moment(checkOverflow(prepareConfig(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function prepareConfig(e){var n=e._i,t=e._f;return e._locale=e._locale||getLocale(e._l),n===null||t===void 0&&n===""?createInvalid({nullInput:!0}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),isMoment(n)?new Moment(checkOverflow(n)):(isDate(n)?e._d=n:isArray(t)?configFromStringAndArray(e):t?configFromStringAndFormat(e):configFromInput(e),isValid(e)||(e._d=null),e))}function configFromInput(e){var n=e._i;isUndefined(n)?e._d=new Date(hooks.now()):isDate(n)?e._d=new Date(n.valueOf()):typeof n=="string"?configFromString(e):isArray(n)?(e._a=map(n.slice(0),function(t){return parseInt(t,10)}),configFromArray(e)):isObject(n)?configFromObject(e):isNumber(n)?e._d=new Date(n):hooks.createFromInputFallback(e)}function createLocalOrUTC(e,n,t,o,r){var a={};return(n===!0||n===!1)&&(o=n,n=void 0),(t===!0||t===!1)&&(o=t,t=void 0),(isObject(e)&&isObjectEmpty(e)||isArray(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=t,a._i=e,a._f=n,a._strict=o,createFromConfig(a)}function createLocal(e,n,t,o){return createLocalOrUTC(e,n,t,o,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=createLocal.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=createLocal.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:createInvalid()});function pickBy(e,n){var t,o;if(n.length===1&&isArray(n[0])&&(n=n[0]),!n.length)return createLocal();for(t=n[0],o=1;o<n.length;++o)(!n[o].isValid()||n[o][e](t))&&(t=n[o]);return t}function min(){var e=[].slice.call(arguments,0);return pickBy("isBefore",e)}function max(){var e=[].slice.call(arguments,0);return pickBy("isAfter",e)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(e){var n,t=!1,o,r=ordering.length;for(n in e)if(hasOwnProp(e,n)&&!(indexOf.call(ordering,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return!1;for(o=0;o<r;++o)if(e[ordering[o]]){if(t)return!1;parseFloat(e[ordering[o]])!==toInt(e[ordering[o]])&&(t=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(e){var n=normalizeObjectUnits(e),t=n.year||0,o=n.quarter||0,r=n.month||0,a=n.week||n.isoWeek||0,s=n.day||0,l=n.hour||0,c=n.minute||0,u=n.second||0,d=n.millisecond||0;this._isValid=isDurationValid(n),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+r+o*3+t*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(e){return e instanceof Duration}function absRound(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function compareArrays(e,n,t){var o=Math.min(e.length,n.length),r=Math.abs(e.length-n.length),a=0,s;for(s=0;s<o;s++)(t&&e[s]!==n[s]||!t&&toInt(e[s])!==toInt(n[s]))&&a++;return a+r}function offset(e,n){addFormatToken(e,0,0,function(){var t=this.utcOffset(),o="+";return t<0&&(t=-t,o="-"),o+zeroFill(~~(t/60),2)+n+zeroFill(~~t%60,2)})}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],function(e,n,t){t._useUTC=!0,t._tzm=offsetFromString(matchShortOffset,e)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(e,n){var t=(n||"").match(e),o,r,a;return t===null?null:(o=t[t.length-1]||[],r=(o+"").match(chunkOffset)||["-",0,0],a=+(r[1]*60)+toInt(r[2]),a===0?0:r[0]==="+"?a:-a)}function cloneWithOffset(e,n){var t,o;return n._isUTC?(t=n.clone(),o=(isMoment(e)||isDate(e)?e.valueOf():createLocal(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+o),hooks.updateOffset(t,!1),t):createLocal(e).local()}function getDateOffset(e){return-Math.round(e._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(e,n,t){var o=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=offsetFromString(matchShortOffset,e),e===null)return this}else Math.abs(e)<16&&!t&&(e=e*60);return!this._isUTC&&n&&(r=getDateOffset(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!n||this._changeInProgress?addSubtract(this,createDuration(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:getDateOffset(this)}function getSetZone(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function setOffsetToUTC(e){return this.utcOffset(0,e)}function setOffsetToLocal(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=offsetFromString(matchOffset,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(e){return this.isValid()?(e=e?createLocal(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var e={},n;return copyConfig(e,this),e=prepareConfig(e),e._a?(n=e._isUTC?createUTC(e._a):createLocal(e._a),this._isDSTShifted=this.isValid()&&compareArrays(e._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(e,n){var t=e,o=null,r,a,s;return isDuration(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:isNumber(e)||!isNaN(+e)?(t={},n?t[n]=+e:t.milliseconds=+e):(o=aspNetRegex.exec(e))?(r=o[1]==="-"?-1:1,t={y:0,d:toInt(o[DATE])*r,h:toInt(o[HOUR])*r,m:toInt(o[MINUTE])*r,s:toInt(o[SECOND])*r,ms:toInt(absRound(o[MILLISECOND]*1e3))*r}):(o=isoRegex.exec(e))?(r=o[1]==="-"?-1:1,t={y:parseIso(o[2],r),M:parseIso(o[3],r),w:parseIso(o[4],r),d:parseIso(o[5],r),h:parseIso(o[6],r),m:parseIso(o[7],r),s:parseIso(o[8],r)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(s=momentsDifference(createLocal(t.from),createLocal(t.to)),t={},t.ms=s.milliseconds,t.M=s.months),a=new Duration(t),isDuration(e)&&hasOwnProp(e,"_locale")&&(a._locale=e._locale),isDuration(e)&&hasOwnProp(e,"_isValid")&&(a._isValid=e._isValid),a}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;function parseIso(e,n){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function positiveMomentsDifference(e,n){var t={};return t.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(t.months,"M").isAfter(n)&&--t.months,t.milliseconds=+n-+e.clone().add(t.months,"M"),t}function momentsDifference(e,n){var t;return e.isValid()&&n.isValid()?(n=cloneWithOffset(n,e),e.isBefore(n)?t=positiveMomentsDifference(e,n):(t=positiveMomentsDifference(n,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function createAdder(e,n){return function(t,o){var r,a;return o!==null&&!isNaN(+o)&&(deprecateSimple(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=t,t=o,o=a),r=createDuration(t,o),addSubtract(this,r,e),this}}function addSubtract(e,n,t,o){var r=n._milliseconds,a=absRound(n._days),s=absRound(n._months);!e.isValid()||(o=o==null?!0:o,s&&setMonth(e,get(e,"Month")+s*t),a&&set$1(e,"Date",get(e,"Date")+a*t),r&&e._d.setTime(e._d.valueOf()+r*t),o&&hooks.updateOffset(e,a||s))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(e){return typeof e=="string"||e instanceof String}function isMomentInput(e){return isMoment(e)||isDate(e)||isString(e)||isNumber(e)||isNumberOrStringArray(e)||isMomentInputObject(e)||e===null||e===void 0}function isMomentInputObject(e){var n=isObject(e)&&!isObjectEmpty(e),t=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,s=o.length;for(r=0;r<s;r+=1)a=o[r],t=t||hasOwnProp(e,a);return n&&t}function isNumberOrStringArray(e){var n=isArray(e),t=!1;return n&&(t=e.filter(function(o){return!isNumber(o)&&isString(e)}).length===0),n&&t}function isCalendarSpec(e){var n=isObject(e)&&!isObjectEmpty(e),t=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<o.length;r+=1)a=o[r],t=t||hasOwnProp(e,a);return n&&t}function getCalendarFormat(e,n){var t=e.diff(n,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function calendar$1(e,n){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(e=arguments[0],n=void 0):isCalendarSpec(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var t=e||createLocal(),o=cloneWithOffset(t,this).startOf("day"),r=hooks.calendarFormat(this,o)||"sameElse",a=n&&(isFunction(n[r])?n[r].call(this,t):n[r]);return this.format(a||this.localeData().calendar(r,this,createLocal(t)))}function clone(){return new Moment(this)}function isAfter(e,n){var t=isMoment(e)?e:createLocal(e);return this.isValid()&&t.isValid()?(n=normalizeUnits(n)||"millisecond",n==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(n).valueOf()):!1}function isBefore(e,n){var t=isMoment(e)?e:createLocal(e);return this.isValid()&&t.isValid()?(n=normalizeUnits(n)||"millisecond",n==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(n).valueOf()<t.valueOf()):!1}function isBetween(e,n,t,o){var r=isMoment(e)?e:createLocal(e),a=isMoment(n)?n:createLocal(n);return this.isValid()&&r.isValid()&&a.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(r,t):!this.isBefore(r,t))&&(o[1]===")"?this.isBefore(a,t):!this.isAfter(a,t))):!1}function isSame(e,n){var t=isMoment(e)?e:createLocal(e),o;return this.isValid()&&t.isValid()?(n=normalizeUnits(n)||"millisecond",n==="millisecond"?this.valueOf()===t.valueOf():(o=t.valueOf(),this.clone().startOf(n).valueOf()<=o&&o<=this.clone().endOf(n).valueOf())):!1}function isSameOrAfter(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function isSameOrBefore(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function diff(e,n,t){var o,r,a;if(!this.isValid())return NaN;if(o=cloneWithOffset(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,n=normalizeUnits(n),n){case"year":a=monthDiff(this,o)/12;break;case"month":a=monthDiff(this,o);break;case"quarter":a=monthDiff(this,o)/3;break;case"second":a=(this-o)/1e3;break;case"minute":a=(this-o)/6e4;break;case"hour":a=(this-o)/36e5;break;case"day":a=(this-o-r)/864e5;break;case"week":a=(this-o-r)/6048e5;break;default:a=this-o}return t?a:absFloor(a)}function monthDiff(e,n){if(e.date()<n.date())return-monthDiff(n,e);var t=(n.year()-e.year())*12+(n.month()-e.month()),o=e.clone().add(t,"months"),r,a;return n-o<0?(r=e.clone().add(t-1,"months"),a=(n-o)/(o-r)):(r=e.clone().add(t+1,"months"),a=(n-o)/(r-o)),-(t+a)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(e){if(!this.isValid())return null;var n=e!==!0,t=n?this.clone().utc():this;return t.year()<0||t.year()>9999?formatMoment(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(t,"Z")):formatMoment(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="",t,o,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),t="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=n+'[")]',this.format(t+o+r+a)}function format(e){e||(e=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var n=formatMoment(this,e);return this.localeData().postformat(n)}function from(e,n){return this.isValid()&&(isMoment(e)&&e.isValid()||createLocal(e).isValid())?createDuration({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function fromNow(e){return this.from(createLocal(),e)}function to(e,n){return this.isValid()&&(isMoment(e)&&e.isValid()||createLocal(e).isValid())?createDuration({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function toNow(e){return this.to(createLocal(),e)}function locale(e){var n;return e===void 0?this._locale._abbr:(n=getLocale(e),n!=null&&(this._locale=n),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(e,n){return(e%n+n)%n}function localStartOfDate(e,n,t){return e<100&&e>=0?new Date(e+400,n,t)-MS_PER_400_YEARS:new Date(e,n,t).valueOf()}function utcStartOfDate(e,n,t){return e<100&&e>=0?Date.UTC(e+400,n,t)-MS_PER_400_YEARS:Date.UTC(e,n,t)}function startOf(e){var n,t;if(e=normalizeUnits(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?utcStartOfDate:localStartOfDate,e){case"year":n=t(this.year(),0,1);break;case"quarter":n=t(this.year(),this.month()-this.month()%3,1);break;case"month":n=t(this.year(),this.month(),1);break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=t(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=mod$1(n+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":n=this._d.valueOf(),n-=mod$1(n,MS_PER_MINUTE);break;case"second":n=this._d.valueOf(),n-=mod$1(n,MS_PER_SECOND);break}return this._d.setTime(n),hooks.updateOffset(this,!0),this}function endOf(e){var n,t;if(e=normalizeUnits(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?utcStartOfDate:localStartOfDate,e){case"year":n=t(this.year()+1,0,1)-1;break;case"quarter":n=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=t(this.year(),this.month()+1,1)-1;break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=MS_PER_HOUR-mod$1(n+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":n=this._d.valueOf(),n+=MS_PER_MINUTE-mod$1(n,MS_PER_MINUTE)-1;break;case"second":n=this._d.valueOf(),n+=MS_PER_SECOND-mod$1(n,MS_PER_SECOND)-1;break}return this._d.setTime(n),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function toObject(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(e,n,t,o){var r=t._locale.erasParse(e,o,t._strict);r?getParsingFlags(t).era=r:getParsingFlags(t).invalidEra=e}),addRegexToken("y",matchUnsigned),addRegexToken("yy",matchUnsigned),addRegexToken("yyy",matchUnsigned),addRegexToken("yyyy",matchUnsigned),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],YEAR),addParseToken(["yo"],function(e,n,t,o){var r;t._locale._eraYearOrdinalRegex&&(r=e.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?n[YEAR]=t._locale.eraYearOrdinalParse(e,r):n[YEAR]=parseInt(e,10)});function localeEras(e,n){var t,o,r,a=this._eras||getLocale("en")._eras;for(t=0,o=a.length;t<o;++t){switch(typeof a[t].since){case"string":r=hooks(a[t].since).startOf("day"),a[t].since=r.valueOf();break}switch(typeof a[t].until){case"undefined":a[t].until=1/0;break;case"string":r=hooks(a[t].until).startOf("day").valueOf(),a[t].until=r.valueOf();break}}return a}function localeErasParse(e,n,t){var o,r,a=this.eras(),s,l,c;for(e=e.toUpperCase(),o=0,r=a.length;o<r;++o)if(s=a[o].name.toUpperCase(),l=a[o].abbr.toUpperCase(),c=a[o].narrow.toUpperCase(),t)switch(n){case"N":case"NN":case"NNN":if(l===e)return a[o];break;case"NNNN":if(s===e)return a[o];break;case"NNNNN":if(c===e)return a[o];break}else if([s,l,c].indexOf(e)>=0)return a[o]}function localeErasConvertYear(e,n){var t=e.since<=e.until?1:-1;return n===void 0?hooks(e.since).year():hooks(e.since).year()+(n-e.offset)*t}function getEraName(){var e,n,t,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=this.clone().startOf("day").valueOf(),o[e].since<=t&&t<=o[e].until||o[e].until<=t&&t<=o[e].since)return o[e].name;return""}function getEraNarrow(){var e,n,t,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=this.clone().startOf("day").valueOf(),o[e].since<=t&&t<=o[e].until||o[e].until<=t&&t<=o[e].since)return o[e].narrow;return""}function getEraAbbr(){var e,n,t,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=this.clone().startOf("day").valueOf(),o[e].since<=t&&t<=o[e].until||o[e].until<=t&&t<=o[e].since)return o[e].abbr;return""}function getEraYear(){var e,n,t,o,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e)if(t=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-hooks(r[e].since).year())*t+r[e].offset;return this.year()}function erasNameRegex(e){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),e?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(e){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),e?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(e){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),e?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(e,n){return n.erasAbbrRegex(e)}function matchEraName(e,n){return n.erasNameRegex(e)}function matchEraNarrow(e,n){return n.erasNarrowRegex(e)}function matchEraYearOrdinal(e,n){return n._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var e=[],n=[],t=[],o=[],r,a,s=this.eras();for(r=0,a=s.length;r<a;++r)n.push(regexEscape(s[r].name)),e.push(regexEscape(s[r].abbr)),t.push(regexEscape(s[r].narrow)),o.push(regexEscape(s[r].name)),o.push(regexEscape(s[r].abbr)),o.push(regexEscape(s[r].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(e,n){addFormatToken(0,[e,e.length],0,n)}addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,o){n[o.substr(0,2)]=toInt(e)}),addWeekParseToken(["gg","GG"],function(e,n,t,o){n[o]=hooks.parseTwoDigitYear(e)});function getSetWeekYear(e){return getSetWeekYearHelper.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(e){return getSetWeekYearHelper.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var e=this.localeData()._week;return weeksInYear(this.year(),e.dow,e.doy)}function getWeeksInWeekYear(){var e=this.localeData()._week;return weeksInYear(this.weekYear(),e.dow,e.doy)}function getSetWeekYearHelper(e,n,t,o,r){var a;return e==null?weekOfYear(this,o,r).year:(a=weeksInYear(e,o,r),n>a&&(n=a),setWeekAll.call(this,e,n,t,o,r))}function setWeekAll(e,n,t,o,r){var a=dayOfYearFromWeeks(e,n,t,o,r),s=createUTCDate(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",function(e,n){n[MONTH]=(toInt(e)-1)*3});function getSetQuarter(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),addParseToken(["D","DD"],DATE),addParseToken("Do",function(e,n){n[DATE]=toInt(e.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],function(e,n,t){t._dayOfYear=toInt(e)});function getSetDayOfYear(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10}),addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100}),addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(e,n){n[MILLISECOND]=toInt(("0."+e)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add,proto.calendar=calendar$1,proto.clone=clone,proto.diff=diff,proto.endOf=endOf,proto.format=format,proto.from=from,proto.fromNow=fromNow,proto.to=to,proto.toNow=toNow,proto.get=stringGet,proto.invalidAt=invalidAt,proto.isAfter=isAfter,proto.isBefore=isBefore,proto.isBetween=isBetween,proto.isSame=isSame,proto.isSameOrAfter=isSameOrAfter,proto.isSameOrBefore=isSameOrBefore,proto.isValid=isValid$2,proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=parsingFlags,proto.set=stringSet,proto.startOf=startOf,proto.subtract=subtract,proto.toArray=toArray,proto.toObject=toObject,proto.toDate=toDate,proto.toISOString=toISOString,proto.inspect=inspect,typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),proto.toJSON=toJSON,proto.toString=toString,proto.unix=unix,proto.valueOf=valueOf,proto.creationData=creationData,proto.eraName=getEraName,proto.eraNarrow=getEraNarrow,proto.eraAbbr=getEraAbbr,proto.eraYear=getEraYear,proto.year=getSetYear,proto.isLeapYear=getIsLeapYear,proto.weekYear=getSetWeekYear,proto.isoWeekYear=getSetISOWeekYear,proto.quarter=proto.quarters=getSetQuarter,proto.month=getSetMonth,proto.daysInMonth=getDaysInMonth,proto.week=proto.weeks=getSetWeek,proto.isoWeek=proto.isoWeeks=getSetISOWeek,proto.weeksInYear=getWeeksInYear,proto.weeksInWeekYear=getWeeksInWeekYear,proto.isoWeeksInYear=getISOWeeksInYear,proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,proto.date=getSetDayOfMonth,proto.day=proto.days=getSetDayOfWeek,proto.weekday=getSetLocaleDayOfWeek,proto.isoWeekday=getSetISODayOfWeek,proto.dayOfYear=getSetDayOfYear,proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=getSetOffset,proto.utc=setOffsetToUTC,proto.local=setOffsetToLocal,proto.parseZone=setOffsetToParsedOffset,proto.hasAlignedHourOffset=hasAlignedHourOffset,proto.isDST=isDaylightSavingTime,proto.isLocal=isLocal,proto.isUtcOffset=isUtcOffset,proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=getZoneAbbr,proto.zoneName=getZoneName,proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(e){return createLocal(e*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(e){return e}var proto$1=Locale.prototype;proto$1.calendar=calendar,proto$1.longDateFormat=longDateFormat,proto$1.invalidDate=invalidDate,proto$1.ordinal=ordinal,proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=relativeTime,proto$1.pastFuture=pastFuture,proto$1.set=set,proto$1.eras=localeEras,proto$1.erasParse=localeErasParse,proto$1.erasConvertYear=localeErasConvertYear,proto$1.erasAbbrRegex=erasAbbrRegex,proto$1.erasNameRegex=erasNameRegex,proto$1.erasNarrowRegex=erasNarrowRegex,proto$1.months=localeMonths,proto$1.monthsShort=localeMonthsShort,proto$1.monthsParse=localeMonthsParse,proto$1.monthsRegex=monthsRegex,proto$1.monthsShortRegex=monthsShortRegex,proto$1.week=localeWeek,proto$1.firstDayOfYear=localeFirstDayOfYear,proto$1.firstDayOfWeek=localeFirstDayOfWeek,proto$1.weekdays=localeWeekdays,proto$1.weekdaysMin=localeWeekdaysMin,proto$1.weekdaysShort=localeWeekdaysShort,proto$1.weekdaysParse=localeWeekdaysParse,proto$1.weekdaysRegex=weekdaysRegex,proto$1.weekdaysShortRegex=weekdaysShortRegex,proto$1.weekdaysMinRegex=weekdaysMinRegex,proto$1.isPM=localeIsPM,proto$1.meridiem=localeMeridiem;function get$1(e,n,t,o){var r=getLocale(),a=createUTC().set(o,n);return r[t](a,e)}function listMonthsImpl(e,n,t){if(isNumber(e)&&(n=e,e=void 0),e=e||"",n!=null)return get$1(e,n,t,"month");var o,r=[];for(o=0;o<12;o++)r[o]=get$1(e,o,t,"month");return r}function listWeekdaysImpl(e,n,t,o){typeof e=="boolean"?(isNumber(n)&&(t=n,n=void 0),n=n||""):(n=e,t=n,e=!1,isNumber(n)&&(t=n,n=void 0),n=n||"");var r=getLocale(),a=e?r._week.dow:0,s,l=[];if(t!=null)return get$1(n,(t+a)%7,o,"day");for(s=0;s<7;s++)l[s]=get$1(n,(s+a)%7,o,"day");return l}function listMonths(e,n){return listMonthsImpl(e,n,"months")}function listMonthsShort(e,n){return listMonthsImpl(e,n,"monthsShort")}function listWeekdays(e,n,t){return listWeekdaysImpl(e,n,t,"weekdays")}function listWeekdaysShort(e,n,t){return listWeekdaysImpl(e,n,t,"weekdaysShort")}function listWeekdaysMin(e,n,t){return listWeekdaysImpl(e,n,t,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10,t=toInt(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+t}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var e=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),e.milliseconds=mathAbs(e.milliseconds),e.seconds=mathAbs(e.seconds),e.minutes=mathAbs(e.minutes),e.hours=mathAbs(e.hours),e.months=mathAbs(e.months),e.years=mathAbs(e.years),this}function addSubtract$1(e,n,t,o){var r=createDuration(n,t);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function add$1(e,n){return addSubtract$1(this,e,n,1)}function subtract$1(e,n){return addSubtract$1(this,e,n,-1)}function absCeil(e){return e<0?Math.floor(e):Math.ceil(e)}function bubble(){var e=this._milliseconds,n=this._days,t=this._months,o=this._data,r,a,s,l,c;return e>=0&&n>=0&&t>=0||e<=0&&n<=0&&t<=0||(e+=absCeil(monthsToDays(t)+n)*864e5,n=0,t=0),o.milliseconds=e%1e3,r=absFloor(e/1e3),o.seconds=r%60,a=absFloor(r/60),o.minutes=a%60,s=absFloor(a/60),o.hours=s%24,n+=absFloor(s/24),c=absFloor(daysToMonths(n)),t+=c,n-=absCeil(monthsToDays(c)),l=absFloor(t/12),t%=12,o.days=n,o.months=t,o.years=l,this}function daysToMonths(e){return e*4800/146097}function monthsToDays(e){return e*146097/4800}function as(e){if(!this.isValid())return NaN;var n,t,o=this._milliseconds;if(e=normalizeUnits(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+o/864e5,t=this._months+daysToMonths(n),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(n=this._days+Math.round(monthsToDays(this._months)),e){case"week":return n/7+o/6048e5;case"day":return n+o/864e5;case"hour":return n*24+o/36e5;case"minute":return n*1440+o/6e4;case"second":return n*86400+o/1e3;case"millisecond":return Math.floor(n*864e5)+o;default:throw new Error("Unknown unit "+e)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(e){return function(){return this.as(e)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1(){return createDuration(this)}function get$2(e){return e=normalizeUnits(e),this.isValid()?this[e+"s"]():NaN}function makeGetter(e){return function(){return this.isValid()?this._data[e]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(e,n,t,o,r){return r.relativeTime(n||1,!!t,e,o)}function relativeTime$1(e,n,t,o){var r=createDuration(e).abs(),a=round(r.as("s")),s=round(r.as("m")),l=round(r.as("h")),c=round(r.as("d")),u=round(r.as("M")),d=round(r.as("w")),f=round(r.as("y")),m=a<=t.ss&&["s",a]||a<t.s&&["ss",a]||s<=1&&["m"]||s<t.m&&["mm",s]||l<=1&&["h"]||l<t.h&&["hh",l]||c<=1&&["d"]||c<t.d&&["dd",c];return t.w!=null&&(m=m||d<=1&&["w"]||d<t.w&&["ww",d]),m=m||u<=1&&["M"]||u<t.M&&["MM",u]||f<=1&&["y"]||["yy",f],m[2]=n,m[3]=+e>0,m[4]=o,substituteTimeAgo.apply(null,m)}function getSetRelativeTimeRounding(e){return e===void 0?round:typeof e=="function"?(round=e,!0):!1}function getSetRelativeTimeThreshold(e,n){return thresholds[e]===void 0?!1:n===void 0?thresholds[e]:(thresholds[e]=n,e==="s"&&(thresholds.ss=n-1),!0)}function humanize(e,n){if(!this.isValid())return this.localeData().invalidDate();var t=!1,o=thresholds,r,a;return typeof e=="object"&&(n=e,e=!1),typeof e=="boolean"&&(t=e),typeof n=="object"&&(o=Object.assign({},thresholds,n),n.s!=null&&n.ss==null&&(o.ss=n.s-1)),r=this.localeData(),a=relativeTime$1(this,!t,o,r),t&&(a=r.pastFuture(+this,a)),r.postformat(a)}var abs$1=Math.abs;function sign(e){return(e>0)-(e<0)||+e}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var e=abs$1(this._milliseconds)/1e3,n=abs$1(this._days),t=abs$1(this._months),o,r,a,s,l=this.asSeconds(),c,u,d,f;return l?(o=absFloor(e/60),r=absFloor(o/60),e%=60,o%=60,a=absFloor(t/12),t%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=sign(this._months)!==sign(l)?"-":"",d=sign(this._days)!==sign(l)?"-":"",f=sign(this._milliseconds)!==sign(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(t?u+t+"M":"")+(n?d+n+"D":"")+(r||o||e?"T":"")+(r?f+r+"H":"")+(o?f+o+"M":"")+(e?f+s+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1,proto$2.abs=abs,proto$2.add=add$1,proto$2.subtract=subtract$1,proto$2.as=as,proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asQuarters=asQuarters,proto$2.asYears=asYears,proto$2.valueOf=valueOf$1,proto$2._bubble=bubble,proto$2.clone=clone$1,proto$2.get=get$2,proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=weeks,proto$2.months=months,proto$2.years=years,proto$2.humanize=humanize,proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",matchTimestamp),addParseToken("X",function(e,n,t){t._d=new Date(parseFloat(e)*1e3)}),addParseToken("x",function(e,n,t){t._d=new Date(toInt(e))});//! moment.js
128
- hooks.version="2.29.4",setHookCallback(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const DatePickerConfig={date:{placeholder:"__/__/____",dateDisplayFormat:"YYYY-MM-DD",dateInternalFormat:"YYYY-MM-DD"},time:{placeholder:"__/__/____ __:__:__",dateDisplayFormat:"YYYY-MM-DD HH:mm:ss",dateInternalFormat:"YYYY-MM-DD HH:mm:ss"}},DatePicker=e=>{const{ooui:n,showTime:t=!1}=e,{required:o}=n;return jsxRuntime.jsx(Field$1,{required:o,...e,children:jsxRuntime.jsx(DatePickerInput,{ooui:n,showTime:t})})},DatePickerInput=e=>{const{value:n,onChange:t,ooui:o,showTime:r}=e,{id:a,readOnly:s,required:l}=o,c=l&&!s?Config.requiredClass:void 0,u=r?"time":"date",d=g=>{t==null||t(g)},f=g=>{if(g===null){d(void 0);return}d(g.format(DatePickerConfig[u].dateInternalFormat))},m=r?{defaultValue:hooks("00:00:00","HH:mm:ss")}:void 0,p=n?hooks(n,DatePickerConfig[u].dateInternalFormat):void 0;return jsxRuntime.jsx(antd.DatePicker,{style:{width:"100%"},placeholder:r?DatePickerConfig.time.placeholder:DatePickerConfig.date.placeholder,disabled:s,id:a,showTime:m,className:c,format:DatePickerConfig[u].dateDisplayFormat,value:p,onChange:f})},Date$1=e=>{const{ooui:n}=e;return jsxRuntime.jsx(DatePicker,{ooui:n})},DateTime=e=>{const{ooui:n}=e;return jsxRuntime.jsx(DatePicker,{ooui:n,showTime:!0})},Reference=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(ReferenceInput,{ooui:n})})},ReferenceInput=e=>{const{value:n,onChange:t,ooui:o}=e,{required:r,selectionValues:a,readOnly:s}=o,l=n==null?void 0:n.split(","),[c,u]=React.useState([]),[d,f]=React.useState();return React.useEffect(()=>{if(!n)return;const m=n&&l&&l[0],p=n&&l&&l[1]&&parseInt(l[1]);u([p,void 0]),f(m)},[n]),jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"1",children:jsxRuntime.jsx(SelectionInput$1,{ooui:new ooui.Selection({name:"model_selection",selection:a,readOnly:s,required:r}),onChange:m=>{f(m),u([]),t==null||t(void 0)},value:d})}),jsxRuntime.jsx(antd.Col,{flex:"3",children:jsxRuntime.jsx(Many2oneInput,{ooui:new ooui.Many2one({name:"object_value",relation:d,readOnly:s,required:r}),value:c,onChange:m=>{u(m);const p=`${d},${m[0]}`;p!==n&&(t==null||t(p))}})})]})},Binary=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(BinaryInput,{ooui:n})})},BinaryInput=e=>{const{ooui:n,value:t,onChange:o}=e,{readOnly:r,required:a,filenameField:s}=n,l=a&&!r?Config.requiredClass:void 0,c=React.useRef(null),{setFieldValue:u,getFieldValue:d}=React.useContext(FormContext$1)||{},{t:f}=React.useContext(LocaleContext),m=t?getFilesize(t):"",p=h=>{o==null||o(h)};async function g(){const h=await getMimeType(t),y=`data:${h==null?void 0:h.mime};base64,${t}`,x=document.createElement("a"),w=d(s),O=d("name");x.href=y,x.download=w||O,x.click()}async function v(){const h=await getMimeType(t);openBase64InNewTab(t,h.mime)}async function C(h){h.stopPropagation(),h.preventDefault();const y=h.target.files[0],x=await toBase64(y);p(x),s&&u(s,y.name)}function I(){u(s,void 0),p(void 0)}return jsxRuntime.jsxs(antd.Row,{gutter:8,children:[jsxRuntime.jsxs(antd.Col,{style:{paddingBottom:5},children:[jsxRuntime.jsx("input",{type:"file",id:"file",ref:c,style:{display:"none"},onChange:C}),jsxRuntime.jsx(antd.Input,{type:"text",disabled:!0,className:l,value:m})]}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:r,onClick:()=>{c.current.click()},children:"Select"}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EyeOutlined,{}),disabled:!t,onClick:v,children:f("open")}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:f("download"),disabled:!t,onClick:g,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:f("clear"),disabled:r||!t,onClick:I,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})};function getIconForView(e){return e?e.type==="tree"?jsxRuntime.jsx(Icon.TableOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{}):null}function ChangeViewButton(e){const{currentView:n,availableViews:t,onChangeView:o,disabled:r=!1,formHasChanges:a=!1}=e,{t:s,lang:l}=React.useContext(LocaleContext),[c,u]=React.useState();React.useEffect(()=>{t.length===1?u(t[0]):u(t.filter(p=>p.id!==n.id)[0])},[t]);function d(){const p=t.map(g=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:jsxRuntime.jsx(Icon.CheckOutlined,{style:{opacity:n===g?1:0}})}),jsxRuntime.jsx(antd.Col,{flex:"auto",style:{paddingRight:20},children:g.type.charAt(0).toUpperCase()+g.type.slice(1)}),jsxRuntime.jsx(antd.Col,{flex:"none",children:getIconForView(g)})]})},g.id));return jsxRuntime.jsx(antd.Menu,{onClick:m,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:s("viewAs"),children:p})})}function f(p){if(a){showDialog$6({lang:l,onOk:()=>{p()}});return}p()}function m(p){f(()=>{u(n);const g=p.key;o(g)})}return n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:c?s("viewAs")+" "+s(c.type):"",icon:getIconForView(c),style:{width:50},onClick:()=>{m({key:c})},disabled:r||t.length===1}),jsxRuntime.jsx(antd.Dropdown,{overlay:d(),disabled:r||t.length===1,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:p=>p.preventDefault()})})]}):null}function DropdownButton(e){const{icon:n,tooltip:t,items:o=[],onItemClick:r,label:a,disabled:s=!1}=e;function l(){const u=o==null?void 0:o.map((d,f)=>d.name==="divider"?jsxRuntime.jsx(antd.Menu.Divider,{},"divider"+f):jsxRuntime.jsx(antd.Menu.Item,{children:d.name},d.id));return jsxRuntime.jsx(antd.Menu,{onClick:c,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:t,children:u})})}function c(u){const d=o.find(f=>isNaN(u.key)?f.id===u.key:f.id===parseInt(u.key));r(d)}return jsxRuntime.jsx(antd.Dropdown,{overlay:l(),disabled:s||!o||o.length===0,children:jsxRuntime.jsxs(antd.Button,{children:[n," ",a," ",jsxRuntime.jsx(Icon.DownOutlined,{})]})})}function ActionButton(e){const{onClick:n,disabled:t=!1,loading:o=!1,tooltip:r,icon:a,label:s,type:l="default"}=e,c=o?jsxRuntime.jsx(Icon.LoadingOutlined,{}):a;return jsxRuntime.jsxs(ButtonWithTooltip,{type:l,tooltip:r,onClick:n,disabled:t,children:[c,s]})}function NewButton(e){const{disabled:n=!1}=e,{formHasChanges:t,onNewClicked:o}=React.useContext(ActionViewContext),{t:r,lang:a}=React.useContext(LocaleContext),s=()=>{if(t){showDialog$6({lang:a,onOk:()=>{o()}});return}o()};return jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),tooltip:r("new"),onClick:s,disabled:n})}const{confirm}=antd.Modal,showDialog=({onOk:e,onCancel:n,lang:t})=>{confirm({title:tForLang("unsavedChanges",t),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRefreshWithoutSave",t),okText:tForLang("discardAndRefresh",t),cancelText:tForLang("cancel",t),onOk:e,onCancel:n})};async function showLogInfo(e,n,t){const o=(await ConnectionProvider.getHandler().getLogInfo({model:e,ids:[n]}))[0],{create_date:r,create_uid:a,id:s,write_date:l,write_uid:c}=o;showDialog$7(jsxRuntime.jsxs("div",{children:["ID: "+s," ",jsxRuntime.jsx("br",{}),t("createdBy")+": "+a[1]," ",jsxRuntime.jsx("br",{}),t("creationDate")+": "+r," ",jsxRuntime.jsx("br",{}),t("lastUpdatedBy")+": "+c[1]," ",jsxRuntime.jsx("br",{}),t("lastUpdatedDate")+": "+l]}))}const AttachmentsButtonWrapper=e=>{const{numberOfAttachments:n,disabled:t}=e,{t:o}=React.useContext(LocaleContext),[r,a]=React.useState(!1),s=jsxRuntime.jsxs(antd.Button,{disabled:t,children:[jsxRuntime.jsx(Icon.LinkOutlined,{}),`(${n})`,jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:12}})]});return t?s:jsxRuntime.jsx(antd.Popover,{onVisibleChange:l=>a(l),visible:r,placement:"bottom",content:Content$1(e,a),title:o("attachments"),arrowContent:null,children:s})},Content$1=(e,n)=>{const{attachments:t=[],loading:o,onAddNewAttachment:r,onopenAttachmentLink:a,onOpenAttachmentDetail:s,onListAllAttachments:l}=e,{t:c}=React.useContext(LocaleContext);return o?jsxRuntime.jsx(antd.Spin,{style:{padding:20}}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("a",{style:{display:"block",paddingBottom:5},href:"#",onClick:()=>{n(!1),l()},children:[jsxRuntime.jsx(Icon.TableOutlined,{})," ",c("listAllAttachments")]}),jsxRuntime.jsxs("a",{style:{display:"block"},href:"#",onClick:()=>{n(!1),r()},children:[jsxRuntime.jsx(Icon.FileAddOutlined,{})," ",c("addNewAttachment")]}),t.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("li",{className:" ant-dropdown-menu-item-divider"}),t.map(u=>{const d=u.link?Icon.LinkOutlined:Icon.DownloadOutlined;return jsxRuntime.jsxs(antd.Row,{style:{paddingTop:4,paddingBottom:4},wrap:!1,align:"middle",children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:u.name}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:(u.datas_fname||u.link)&&jsxRuntime.jsx(antd.Tooltip,{title:u.link?c("openAttachmentLink"):c("download"),children:jsxRuntime.jsx(d,{style:{cursor:"pointer"},onClick:()=>{n(!1),a(u)}})})}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:jsxRuntime.jsx(antd.Tooltip,{title:c("openAttachment"),children:jsxRuntime.jsx(Icon.FormOutlined,{style:{cursor:"pointer"},onClick:()=>{n(!1),s(u)}})})})]},u.id)})]})]})};function AttachmentsButton(e){const{attachments:n,disabled:t=!1,onAddNewAttachment:o,onListAllAttachments:r,onViewAttachmentDetails:a}=e,{formRef:s}=React.useContext(ActionViewContext),[l,c]=React.useState(!1),[u,d]=React.useState([]),[f,m]=React.useState(!1),{t:p}=React.useContext(LocaleContext),g=React.useCallback(async()=>{c(!0);try{const I=await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:n.map(h=>h.id),fieldsToRetrieve:["name","datas_fname","link"],context:s.current.getContext()});d(I.map(h=>({id:h.id,name:h.name,datas_fname:h.datas_fname,link:h.link})))}catch(I){showDialog$8(I)}c(!1)},n),v=React.useCallback(async I=>{if(I.link){window.open(I.link);return}m(!0);let h;try{h=(await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:[I.id],context:s.current.getContext()}))[0]}catch(y){showDialog$8(y)}if(m(!1),!!h)if(h.datas){const y=await getMimeType(h.datas);openBase64InNewTab(h.datas,y.mime)}else a(h)},[]),C=React.useCallback(async I=>{a(I)},[]);return React.useEffect(()=>{g()},[g]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(AttachmentsButtonWrapper,{numberOfAttachments:n.length,attachments:u,disabled:t,loading:l,onAddNewAttachment:o,onListAllAttachments:r,onopenAttachmentLink:v,onOpenAttachmentDetail:C}),jsxRuntime.jsx(antd.Modal,{title:p("downloadingAttachment"),visible:f,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})})]})}function FormActionBar(){const{availableViews:e,currentView:n,setCurrentView:t,onFormSave:o,formHasChanges:r,formIsSaving:a,currentId:s,results:l,setCurrentItemIndex:c,currentItemIndex:u,setCurrentId:d,currentModel:f,setRemovingItem:m,removingItem:p,duplicatingItem:g,setDuplicatingItem:v,setResults:C,formIsLoading:I,toolbar:h,attachments:y,formRef:x,setFormHasChanges:w,searchTreeRef:O,goToResourceId:F}=React.useContext(ActionViewContext),{t:b,lang:S}=React.useContext(LocaleContext),T=React.useContext(ContentRootContext),{processAction:k}=T||{},L=React.useContext(TabManagerContext),{openRelate:D,openDefaultActionForModel:P}=L||{};function M(N){if(r){showDialog({lang:S,onOk:()=>{N()}});return}N()}function q(N){if(r){showDialog$6({lang:S,onOk:()=>{N()}});return}N()}function U(){l&&l.length>u+1?(c==null||c(u+1),d==null||d(l[u+1].id)):l&&u+1===l.length&&(c==null||c(0),d==null||d(l[0].id))}function B(){l&&u>0?(c==null||c(u-1),d==null||d(l[u-1].id)):l&&u===0&&(c==null||c(l.length-1),d==null||d(l[l.length-1].id))}function V(){showDialog$9({confirmMessage:b("confirmRemoveItem"),lang:S,onOk:()=>{G()}})}async function G(){try{m==null||m(!0),await ConnectionProvider.getHandler().delete({model:f,ids:[s]});const N=l==null?void 0:l.filter(j=>j.id!==s);C==null||C(N);let W=0;u>0&&u<=l.length-1&&(W=u-1),N!=null&&N[W]?(d==null||d(N==null?void 0:N[W].id),c==null||c(W)):(d==null||d(void 0),c==null||c(void 0))}catch(N){showDialog$3(JSON.stringify(N))}finally{m==null||m(!1)}}async function Y(){try{v==null||v(!0);const N=await ConnectionProvider.getHandler().duplicate({id:s,model:f,context:x.current.getContext()});N&&await(F==null?void 0:F(N))}catch(N){showDialog$3(JSON.stringify(N))}finally{v==null||v(!1)}}const H=a||p||I||g;function K(N){k==null||k({actionData:N,values:x.current.getValues(),fields:x.current.getFields(),context:x.current.getContext(),onRefreshParentValues:()=>{x.current.fetchValues()}})}return n?jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Spin,{}),separator$2(),separator$2()]}),jsxRuntime.jsx(NewButton,{disabled:a||I||p||g}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SaveOutlined,{}),tooltip:b("save"),disabled:!r||H,loading:a,onClick:o}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:b("duplicate"),disabled:r||a||s===void 0||g||I,loading:g,onClick:Y}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:b("delete"),disabled:a||s===void 0||p||g||I,loading:p,onClick:V}),separator$2(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:b("showLogs"),disabled:a||s===void 0||p||g||I,loading:!1,onClick:()=>{showLogInfo(f,s,b)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:b("refresh"),disabled:a||s===void 0||p||g||I,loading:!1,onClick:()=>{M(()=>{x.current.fetchValues()})}}),separator$2(),jsxRuntime.jsx(ChangeViewButton,{currentView:n,availableViews:e.filter(N=>N.type==="tree"||N.type==="form"),onChangeView:N=>{w==null||w(!1),t==null||t(N)},disabled:H,formHasChanges:r}),separator$2(),jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),tooltip:b("previous"),disabled:H,loading:!1,onClick:()=>{q(B)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.RightOutlined,{}),tooltip:b("next"),disabled:H,loading:!1,onClick:()=>{q(U)}})]}),separator$2(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:H,tooltip:b("actions"),items:h==null?void 0:h.action,onItemClick:N=>{!N||K(N)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:H,tooltip:b("reports"),items:h==null?void 0:h.print,onItemClick:N=>{!N||K({...N,datas:{...N.datas||{},ids:[s]}})}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.EnterOutlined,{}),disabled:H,tooltip:b("related"),items:h==null?void 0:h.relate,onItemClick:async N=>{!N||D({relateData:N,values:x.current.getValues(),fields:x.current.getFields(),action_id:N.id,action_type:N.type})}}),jsxRuntime.jsx(AttachmentsButton,{disabled:H,attachments:y,onAddNewAttachment:()=>{const N=s,W=f;P({model:"ir.attachment",values:{selection_associated_object:`${W},${N}`},forced_values:{res_model:W,res_id:N},initialViewType:"form"})},onListAllAttachments:()=>{const N=s;P({model:"ir.attachment",domain:[["res_model","=",`${f}`],["res_id","=",`${N}`]],initialViewType:"tree"})},onViewAttachmentDetails:N=>{P({model:"ir.attachment",res_id:N.id,initialViewType:"form"})}})]}):null}function separator$2(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}var isURL$1={exports:{}},assertString={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function t(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(r)}function o(r){var a=typeof r=="string"||r instanceof String;if(!a){var s=t(r);throw r===null?s="null":s==="object"&&(s=r.constructor.name),new TypeError("Expected a string but received a ".concat(s))}}e.exports=n.default,e.exports.default=n.default})(assertString,assertString.exports);var isFQDN={exports:{}},merge={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;function t(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;for(var a in r)typeof o[a]>"u"&&(o[a]=r[a]);return o}e.exports=n.default,e.exports.default=n.default})(merge,merge.exports),function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var t=r(assertString.exports),o=r(merge.exports);function r(l){return l&&l.__esModule?l:{default:l}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function s(l,c){(0,t.default)(l),c=(0,o.default)(c,a),c.allow_trailing_dot&&l[l.length-1]==="."&&(l=l.substring(0,l.length-1)),c.allow_wildcard===!0&&l.indexOf("*.")===0&&(l=l.substring(2));var u=l.split("."),d=u[u.length-1];return c.require_tld&&(u.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(d)||/\s/.test(d))||!c.allow_numeric_tld&&/^\d+$/.test(d)?!1:u.every(function(f){return!(f.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(f)||/[\uff01-\uff5e]/.test(f)||/^-|-$/.test(f)||!c.allow_underscores&&/_/.test(f))})}e.exports=n.default,e.exports.default=n.default}(isFQDN,isFQDN.exports);var isIP={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var t=o(assertString.exports);function o(d){return d&&d.__esModule?d:{default:d}}var r="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(r,"[.]){3}").concat(r),s=new RegExp("^".concat(a,"$")),l="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(a,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(a,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(a,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(a,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(a,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(a,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(a,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,t.default)(d),f=String(f),!f)return u(d,4)||u(d,6);if(f==="4"){if(!s.test(d))return!1;var m=d.split(".").sort(function(p,g){return p-g});return m[3]<=255}return f==="6"?!!c.test(d):!1}e.exports=n.default,e.exports.default=n.default})(isIP,isIP.exports),function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=I;var t=s(assertString.exports),o=s(isFQDN.exports),r=s(isIP.exports),a=s(merge.exports);function s(h){return h&&h.__esModule?h:{default:h}}function l(h,y){return m(h)||f(h,y)||u(h,y)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
129
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(h,y){if(!!h){if(typeof h=="string")return d(h,y);var x=Object.prototype.toString.call(h).slice(8,-1);if(x==="Object"&&h.constructor&&(x=h.constructor.name),x==="Map"||x==="Set")return Array.from(h);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return d(h,y)}}function d(h,y){(y==null||y>h.length)&&(y=h.length);for(var x=0,w=new Array(y);x<y;x++)w[x]=h[x];return w}function f(h,y){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(h)))){var x=[],w=!0,O=!1,F=void 0;try{for(var b=h[Symbol.iterator](),S;!(w=(S=b.next()).done)&&(x.push(S.value),!(y&&x.length===y));w=!0);}catch(T){O=!0,F=T}finally{try{!w&&b.return!=null&&b.return()}finally{if(O)throw F}}return x}}function m(h){if(Array.isArray(h))return h}var p={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},g=/^\[([^\]]+)\](?::([0-9]+))?$/;function v(h){return Object.prototype.toString.call(h)==="[object RegExp]"}function C(h,y){for(var x=0;x<y.length;x++){var w=y[x];if(h===w||v(w)&&w.test(h))return!0}return!1}function I(h,y){if((0,t.default)(h),!h||/[\s<>]/.test(h)||h.indexOf("mailto:")===0||(y=(0,a.default)(y,p),y.validate_length&&h.length>=2083)||!y.allow_fragments&&h.includes("#")||!y.allow_query_components&&(h.includes("?")||h.includes("&")))return!1;var x,w,O,F,b,S,T,k;if(T=h.split("#"),h=T.shift(),T=h.split("?"),h=T.shift(),T=h.split("://"),T.length>1){if(x=T.shift().toLowerCase(),y.require_valid_protocol&&y.protocols.indexOf(x)===-1)return!1}else{if(y.require_protocol)return!1;if(h.substr(0,2)==="//"){if(!y.allow_protocol_relative_urls)return!1;T[0]=h.substr(2)}}if(h=T.join("://"),h==="")return!1;if(T=h.split("/"),h=T.shift(),h===""&&!y.require_host)return!0;if(T=h.split("@"),T.length>1){if(y.disallow_auth||T[0]===""||(w=T.shift(),w.indexOf(":")>=0&&w.split(":").length>2))return!1;var L=w.split(":"),D=l(L,2),P=D[0],M=D[1];if(P===""&&M==="")return!1}F=T.join("@"),S=null,k=null;var q=F.match(g);if(q?(O="",k=q[1],S=q[2]||null):(T=F.split(":"),O=T.shift(),T.length&&(S=T.join(":"))),S!==null&&S.length>0){if(b=parseInt(S,10),!/^[0-9]+$/.test(S)||b<=0||b>65535)return!1}else if(y.require_port)return!1;return y.host_whitelist?C(O,y.host_whitelist):!(!(0,r.default)(O)&&!(0,o.default)(O,y)&&(!k||!(0,r.default)(k,6))||(O=O||k,y.host_blacklist&&C(O,y.host_blacklist)))}e.exports=n.default,e.exports.default=n.default}(isURL$1,isURL$1.exports);const isURL=getDefaultExportFromCjs(isURL$1.exports),LinkInput=e=>{const{ooui:n,value:t,onChange:o,valueValidator:r,linkPrefix:a=""}=e,{id:s,readOnly:l,required:c}=n,u=c&&!l?Config.requiredClass:void 0,d=React.useContext(FormContext$1),{elementHasLostFocus:f}=d||{},[m,p]=React.useState(!1),[g,v]=React.useState(!1);React.useEffect(()=>{l&&!m&&v(!1),!t&&!l&&(p(!0),v(!0))},[m,l]);const C=I=>{o==null||o(I.target.value)};return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,align:"middle",children:[l?null:jsxRuntime.jsx(antd.Col,{flex:"32px",children:m?jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{r(t)&&(p(!1),v(!1))},tabIndex:-1}):jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EditOutlined,{}),onClick:()=>{p(!0),v(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:g?jsxRuntime.jsx(antd.Input,{id:s,onChange:C,className:u,value:t,onBlur:()=>{r(t)&&(p(!1),v(!1),f==null||f())}}):jsxRuntime.jsx("a",{href:`${a}${t}`,style:{color:"#1890ff",paddingRight:15},target:"_blank",children:t})})]})},Url=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(LinkInput,{ooui:n,valueValidator:o=>o?isURL(o):!1})})};var isEmail$1={exports:{}},isByteLength={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var t=o(assertString.exports);function o(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(c){return typeof c}:r=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r(s)}function a(s,l){(0,t.default)(s);var c,u;r(l)==="object"?(c=l.min||0,u=l.max):(c=arguments[1],u=arguments[2]);var d=encodeURI(s).split(/%..|./).length-1;return d>=c&&(typeof u>"u"||d<=u)}e.exports=n.default,e.exports.default=n.default})(isByteLength,isByteLength.exports),function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=I;var t=l(assertString.exports),o=l(merge.exports),r=l(isByteLength.exports),a=l(isFQDN.exports),s=l(isIP.exports);function l(h){return h&&h.__esModule?h:{default:h}}var c={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,v=254;function C(h){var y=h.replace(/^"(.+)"$/,"$1");if(!y.trim())return!1;var x=/[\.";<>]/.test(y);if(x){if(y===h)return!1;var w=y.split('"').length===y.split('\\"').length;if(!w)return!1}return!0}function I(h,y){if((0,t.default)(h),y=(0,o.default)(y,c),y.require_display_name||y.allow_display_name){var x=h.match(u);if(x){var w=x[1];if(h=h.replace(w,"").replace(/(^<|>$)/g,""),w.endsWith(" ")&&(w=w.substr(0,w.length-1)),!C(w))return!1}else if(y.require_display_name)return!1}if(!y.ignore_max_length&&h.length>v)return!1;var O=h.split("@"),F=O.pop(),b=F.toLowerCase();if(y.host_blacklist.includes(b))return!1;var S=O.join("@");if(y.domain_specific_validation&&(b==="gmail.com"||b==="googlemail.com")){S=S.toLowerCase();var T=S.split("+")[0];if(!(0,r.default)(T.replace(/\./g,""),{min:6,max:30}))return!1;for(var k=T.split("."),L=0;L<k.length;L++)if(!f.test(k[L]))return!1}if(y.ignore_max_length===!1&&(!(0,r.default)(S,{max:64})||!(0,r.default)(F,{max:254})))return!1;if(!(0,a.default)(F,{require_tld:y.require_tld})){if(!y.allow_ip_domain)return!1;if(!(0,s.default)(F)){if(!F.startsWith("[")||!F.endsWith("]"))return!1;var D=F.substr(1,F.length-2);if(D.length===0||!(0,s.default)(D))return!1}}if(S[0]==='"')return S=S.slice(1,S.length-1),y.allow_utf8_local_part?g.test(S):m.test(S);for(var P=y.allow_utf8_local_part?p:d,M=S.split("."),q=0;q<M.length;q++)if(!P.test(M[q]))return!1;return!(y.blacklisted_chars&&S.search(new RegExp("[".concat(y.blacklisted_chars,"]+"),"g"))!==-1)}e.exports=n.default,e.exports.default=n.default}(isEmail$1,isEmail$1.exports);const isEmail=getDefaultExportFromCjs(isEmail$1.exports),Email=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(LinkInput,{ooui:n,linkPrefix:"mailto:",valueValidator:o=>o?isEmail(o):!1})})},{Title:Title$1,Text:Text$1}=antd.Typography;function TitleHeader(e){const{children:n}=e,{title:t,currentView:o,currentId:r,currentItemIndex:a,results:s,totalItems:l,selectedRowItems:c}=React.useContext(ActionViewContext),{t:u}=React.useContext(LocaleContext);function d(){if((o==null?void 0:o.type)==="form")return r?l===0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u("editingDocument")," (id: ",jsxRuntime.jsx(Text$1,{copyable:!0,children:r}),")"]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u("register")," ",a===void 0?1:a+1," /"," ",s.length," ",u("of")," ",l," - ",u("editingDocument")," (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:r}),")"]}):"";if((o==null?void 0:o.type)==="tree"&&c){if(c.length===1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["1 ",u("selectedRegisters")," - (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:c[0].id}),")"]});if(c.length>1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c.length," ",u("selectedRegisters"),jsxRuntime.jsx(Text$1,{copyable:{text:c.map(f=>f.id).join(", ")}})]})}return null}return jsxRuntime.jsxs("div",{style:{position:"sticky",top:80,zIndex:3},children:[jsxRuntime.jsxs(antd.Row,{className:"bg-blueGray-100 shadow-md rounded",style:{padding:"1em"},align:"middle",children:[jsxRuntime.jsxs(antd.Col,{flex:2,children:[jsxRuntime.jsx(Title$1,{level:3,style:{marginBottom:0},children:t}),d()]}),jsxRuntime.jsx(antd.Col,{flex:3,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:n})})]}),jsxRuntime.jsx("div",{className:"pb-5"})]})}function ButtonWithBadge(e){const{badgeNumber:n=0,...t}=e;return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[n>0&&jsxRuntime.jsx("div",{style:{position:"absolute",left:-10,top:-10,zIndex:2},children:jsxRuntime.jsx("span",{style:{display:"inline-block",minWidth:"22px",padding:"2px",borderRadius:"50%",fontSize:"12px",textAlign:"center",background:"#1890FF",color:"#fefefe"},children:n})}),jsxRuntime.jsx(ButtonWithTooltip,{...t,style:{width:46,zIndex:0}})]})}function SearchBar(e){const{onSearch:n,disabled:t=!1,searchText:o}=e,{t:r}=React.useContext(LocaleContext),[a]=antd.Form.useForm(),[s,l]=React.useState(!1);function c(d){n(d.search)}React.useEffect(()=>{a.setFieldsValue({search:o})},[o]);function u(){l(!1),a.setFieldsValue({search:void 0}),n(void 0)}return jsxRuntime.jsx(antd.Form,{form:a,onFinish:c,autoComplete:"off",children:jsxRuntime.jsxs(antd.Row,{align:"middle",justify:"end",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Form.Item,{name:"search",noStyle:!0,children:jsxRuntime.jsx(antd.Input,{autoFocus:!0,disabled:t,onChange:d=>{l(d.target.value.length>0)},suffix:(s||o&&o.length>0)&&jsxRuntime.jsx(antd.Tooltip,{title:r("clear"),children:jsxRuntime.jsx(Icon.CloseCircleFilled,{style:{color:"rgba(0,0,0,.45)"},onClick:u})})})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{htmlType:"submit",disabled:t,children:r("search")})})]})})}function TreeActionBar(e){const{availableViews:n,currentView:t,setCurrentView:o,selectedRowItems:r,setRemovingItem:a,removingItem:s,duplicatingItem:l,setDuplicatingItem:c,currentModel:u,searchTreeRef:d,setCurrentId:f,setCurrentItemIndex:m,toolbar:p,searchParams:g,searchVisible:v,setSearchVisible:C,setSearchTreeNameSearch:I,searchTreeNameSearch:h,treeIsLoading:y}=React.useContext(ActionViewContext),{parentContext:x={},treeExpandable:w}=e,{t:O,lang:F}=React.useContext(LocaleContext),b=React.useContext(ContentRootContext),{processAction:S}=b||{};function T(){showDialog$9({confirmMessage:O("confirmRemove"),lang:F,onOk:()=>{k()}})}async function k(){var P;try{a==null||a(!0),await ConnectionProvider.getHandler().delete({model:u,ids:r.map(M=>M.id)}),f==null||f(void 0),m==null||m(void 0),(P=d==null?void 0:d.current)==null||P.refreshResults()}catch(M){showDialog$8(M)}finally{a==null||a(!1)}}async function L(){var P;try{c==null||c(!0);const M=r[0].id;await ConnectionProvider.getHandler().duplicate({id:M,model:u,context:{...x}})&&((P=d==null?void 0:d.current)==null||P.refreshResults())}catch(M){showDialog$8(M)}finally{c==null||c(!1)}}function D(P){S==null||S({actionData:P,values:{active_id:r==null?void 0:r.map(M=>M.id)[0],active_ids:r==null?void 0:r.map(M=>M.id)},fields:{},context:{...x,active_id:r==null?void 0:r.map(M=>M.id)[0],active_ids:r==null?void 0:r.map(M=>M.id)},onRefreshParentValues:()=>{var M;(M=d==null?void 0:d.current)==null||M.refreshResults()}})}return t?jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[w?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchBar,{disabled:l||s||y,searchText:h,onSearch:P=>{P&&P.trim().length>0?I==null||I(P):I==null||I(void 0)}}),separator$1(),jsxRuntime.jsx(NewButton,{disabled:y}),separator$1(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:O("duplicate"),disabled:!r||(r==null?void 0:r.length)!==1||l||y,loading:l,onClick:L}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:O("delete"),disabled:!(r&&(r==null?void 0:r.length)>0)||y,loading:s,onClick:T}),separator$1()]}),!w&&jsxRuntime.jsx(ButtonWithBadge,{icon:jsxRuntime.jsx(Icon.FilterOutlined,{style:{color:v?"white":void 0}}),tooltip:O("advanced_search"),type:v?"primary":"default",onClick:()=>{C==null||C(!v)},disabled:l||s||y,badgeNumber:g==null?void 0:g.length}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:O("showLogs"),disabled:!(r&&(r==null?void 0:r.length)>0)||y,loading:!1,onClick:()=>{showLogInfo(u,r[0].id,O)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:O("refresh"),disabled:l||s||y,loading:!1,onClick:()=>{var P;(P=d==null?void 0:d.current)==null||P.refreshResults()}}),!w&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[separator$1(),jsxRuntime.jsx(ChangeViewButton,{currentView:t,availableViews:n.filter(P=>P.type==="tree"||P.type==="form"),onChangeView:o,disabled:y})]}),separator$1(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:!(r&&(r==null?void 0:r.length)>0)||y,tooltip:O("actions"),items:p==null?void 0:p.action,onItemClick:P=>{!P||D(P)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:!(r&&(r==null?void 0:r.length)>0)||y,tooltip:O("reports"),items:p==null?void 0:p.print,onItemClick:P=>{!P||D({...P,datas:{...P.datas||{},ids:r.map(M=>M.id)}})}})]}):null}function separator$1(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const GoToResourceModal=e=>{const{visible:n,onIdSubmitted:t,onCancel:o,isSearching:r}=e,{t:a}=React.useContext(LocaleContext);function s(l){t(l.id)}return jsxRuntime.jsx(antd.Modal,{title:a("goToResourceId"),centered:!0,visible:n,footer:null,destroyOnClose:!0,onCancel:o,maskClosable:!1,children:jsxRuntime.jsxs(antd.Form,{layout:"vertical",onFinish:s,autoComplete:"off",children:[jsxRuntime.jsx(antd.Form.Item,{name:"id",label:a("searchId"),rules:[{required:!0,type:"number"}],children:jsxRuntime.jsx(antd.InputNumber,{style:{width:"100%"},autoFocus:!0})}),jsxRuntime.jsx(antd.Row,{align:"middle",justify:"end",children:jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),htmlType:"button",onClick:o,disabled:r,children:a("cancel")}),jsxRuntime.jsx(antd.Button,{loading:r,style:{marginLeft:15},icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),htmlType:"submit",type:"primary",disabled:r,children:a("ok")})]})})})]})})},DashboardActionContext=React__default.default.createContext(null),DashboardActionProvider=e=>{const[n,t]=React.useState(!1),[o,r]=React.useState(!1),{children:a,dashboardRef:s,openAction:l}=e;return jsxRuntime.jsx(DashboardActionContext.Provider,{value:{isLoading:n,setIsLoading:t,dashboardRef:s,openAction:l,moveItemsEnabled:o,setMoveItemsEnabled:r},children:a})};function DashboardActionBar(){const{isLoading:e,dashboardRef:n,moveItemsEnabled:t,setMoveItemsEnabled:o}=React.useContext(DashboardActionContext),{t:r}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.BorderOuterOutlined,{style:{color:t?"white":void 0}}),type:t?"primary":"default",tooltip:r("moveDashboard"),disabled:e,loading:!1,onClick:()=>{o(!t)}}),separator(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SettingOutlined,{}),tooltip:r("configDashboard"),disabled:e,loading:!1,onClick:()=>{n==null||n.current.configDashboard()}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:r("refresh"),disabled:e,loading:!1,onClick:()=>{n==null||n.current.refresh()}})]})}function separator(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}function ActionView(e,n){const{domain:t,model:o,context:r,views:a,title:s,setCanWeClose:l,tabKey:c,initialView:u,formDefaultValues:d,formForcedValues:f={},res_id:m=!1,action_id:p,action_type:g,treeExpandable:v=!1,limit:C}=e,[I,h]=React.useState(),[y,x]=React.useState([]),[w,O]=React.useState(),[F,b]=React.useState(),[S,T]=React.useState(),[k,L]=React.useState(!0),D=m||void 0,[P,M]=React.useState(D),[q,U]=React.useState([]),[B,V]=React.useState(),[G,Y]=React.useState([]),[H,K]=React.useState(),[N,W]=React.useState(),[j,A]=React.useState(0),[$,Z]=React.useState(!1),[Q,E]=React.useState(!1),[_,z]=React.useState(),{t:X}=React.useContext(LocaleContext),ne=React.useRef(),ee=React.useRef(),oe=React.useRef(),se=React.useContext(TabManagerContext),{openShortcut:ie,setCurrentView:ce,setCurrentId:pe,tabs:ve,activeKey:Re,openAction:he}=se||{};reactHotkeysHook.useHotkeys("ctrl+g,command+g",ue=>{ue.preventDefault(),Ee()},[Re,ve,I,B,G]);function Fe(ue){M(ue),pe==null||pe(ue)}function ye(ue){h(ue),ce==null||ce(ue)}React.useImperativeHandle(n,()=>({canWeClose:xe}));const _e=async()=>{L(!0);const ue=[];for(const ge of a){const[be,Te]=ge;try{if(Te==="dashboard"){const Pe=a.find(De=>{const[,je]=De;return je==="form"});let Me;Pe&&(Me={action_id:p,action_type:g,name:s,res_id:r.active_id,res_model:o,view_id:Pe[0],view_type:Pe[1]}),T({id:r.active_id,model:o,context:r,configAction:Me}),ue.push({id:be,type:Te})}const Se=await ConnectionProvider.getHandler().getView({model:o,type:Te,id:be,context:r});Te==="tree"?O({...Se,isExpandable:v}):Te==="form"&&(b(Se),K(Se==null?void 0:Se.toolbar)),ue.push({id:be,type:Te})}catch(Se){console.error(`${o} - ${Te}\xA0- ${JSON.stringify(Se,null,2)}`)}}!u&&ue.find(ge=>ge.type==="tree")?ye(ue.find(ge=>ge.type==="tree")):ye(u||ue.find(ge=>ge.type==="form")),x(ue),L(!1)};l({tabKey:c,canWeClose:xe}),React.useEffect(()=>{ye(u||y.find(ue=>ue.type==="tree")),m?pe==null||pe(D):(Fe(void 0),V(void 0)),_e()},[o,a,m]),React.useEffect(()=>{Re===c&&(pe==null||pe(P),ce==null||ce(I))},[ve,Re]);async function xe(){return I.type==="form"?await ne.current.cancelUnsavedChanges():!0}async function Ee(){Re===c&&(I.type==="form"&&!await ne.current.cancelUnsavedChanges()||Z(!0))}async function re(ue){var Se;E(!0);const ge=G.findIndex(Pe=>Pe.id===ue);let be;if(ge===-1){try{be=(Se=await ConnectionProvider.getHandler().readObjects({model:o,ids:[ue],context:r}))==null?void 0:Se[0]}catch{}if(!be){E(!1),Z(!1),showDialog$7(X("idNotFound"));return}}else be=G[ge];E(!1),Z(!1);const Te=a.find(Pe=>Pe[1]==="form");he({domain:[],context:r,model:o,views:a,title:s,target:"current",initialView:{id:Te[0],type:"form"},action_id:p,action_type:g,res_id:ue})}function ae(){return k?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Form$1,{rootForm:!0,visible:I.type==="form",ref:ne,model:o,defaultValues:d,forcedValues:f,formView:F,actionDomain:t,id:P,parentContext:r,onSubmitSucceed:(ue,ge)=>{G.findIndex(Te=>Te.id===ue)===-1&&(G.push(ge),Y(G),V(G.length-1))}}),jsxRuntime.jsx(SearchTree$1,{visible:I.type==="tree",ref:ee,rootTree:!0,model:o,limit:C,parentContext:r,nameSearch:_,formView:F,treeView:w,domain:t,onRowClicked:ue=>{const{id:ge}=ue;Fe(ge);const be=G.findIndex(Te=>Te.id===ge);V(be),ye(y.find(Te=>Te.type==="form"))}})]})}function Ie(){P===void 0&&I.type==="form"?ne.current.clearAndReload():(Fe(void 0),ye(y.find(ue=>ue.type==="form")))}if(!I)return null;function me(){return I.type==="dashboard"?S?jsxRuntime.jsxs(DashboardActionProvider,{dashboardRef:oe,openAction:ue=>{ie(ue)},children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(DashboardActionBar,{})}),jsxRuntime.jsx(Dashboard$1,{ref:oe,model:S.model,id:S.id,context:S==null?void 0:S.context,configAction:S==null?void 0:S.configAction})]}):null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{children:I.type==="form"?jsxRuntime.jsx(FormActionBar,{}):jsxRuntime.jsx(TreeActionBar,{parentContext:r,treeExpandable:(w==null?void 0:w.isExpandable)||!1})}),ae(),jsxRuntime.jsx(GoToResourceModal,{visible:$,onIdSubmitted:re,isSearching:Q,onCancel:()=>{Z(!1)}})]})}return jsxRuntime.jsx(ActionViewProvider,{title:s,currentView:I,setCurrentView:ye,availableViews:y,formRef:ne,searchTreeRef:ee,onNewClicked:Ie,currentId:P,setCurrentId:Fe,setCurrentItemIndex:V,currentItemIndex:B,results:G,setResults:Y,currentModel:o,toolbar:H,setToolbar:K,sorter:N,setSorter:W,totalItems:j,setTotalItems:A,selectedRowItems:q,setSelectedRowItems:U,setSearchTreeNameSearch:z,searchTreeNameSearch:_,goToResourceId:re,children:me()})}const ActionView$1=React.forwardRef(ActionView);var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return typeof e=="string"&&REGEX.test(e)}for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(byteToHex[e[n+0]]+byteToHex[e[n+1]]+byteToHex[e[n+2]]+byteToHex[e[n+3]]+"-"+byteToHex[e[n+4]]+byteToHex[e[n+5]]+"-"+byteToHex[e[n+6]]+byteToHex[e[n+7]]+"-"+byteToHex[e[n+8]]+byteToHex[e[n+9]]+"-"+byteToHex[e[n+10]]+byteToHex[e[n+11]]+byteToHex[e[n+12]]+byteToHex[e[n+13]]+byteToHex[e[n+14]]+byteToHex[e[n+15]]).toLowerCase();if(!validate(t))throw TypeError("Stringified UUID is invalid");return t}function v4(e,n,t){e=e||{};var o=e.random||(e.rng||rng)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){t=t||0;for(var r=0;r<16;++r)n[t+r]=o[r];return n}return stringify(o)}async function fetchAction({actionId:e,rootContext:n={},globalValues:t={}}){const o="ir.actions.act_window",r=`${o},${e}`,a=await ConnectionProvider.getHandler().getActionData({action:r,context:n}),s=ooui.parseContext({context:a.context,values:t,fields:{}}),l=a.domain?await ConnectionProvider.getHandler().evalDomain({domain:a.domain,values:t,context:{...n,...s}}):[],{res_model:c,views:u,name:d,limit:f,view_type:m}=a,p=m==="tree",g=[];for(const h of u){const[y,x]=h;if(y)g.push(h);else{const{view_id:w}=await ConnectionProvider.getHandler().getView({model:c,type:x,id:y,context:{...n,...s}});g.push([w,x])}}const[v,C]=g[0],I={id:v,type:C};return{title:d,actionId:e,actionType:o,key:v4(),views:u,model:c,context:{...n,...s},domain:l,initialView:I,limit:f,treeExpandable:p}}const styles$1="",styles="",ResponsiveReactGridLayout=reactGridLayout.WidthProvider(reactGridLayout.Responsive),DashboardGrid=e=>{const{children:n=[],onPositionItemsChanged:t}=e,o=React__default.default.Children.map(n,r=>{const{parms:a,id:s}=r.props;return jsxRuntime.jsx("div",{"data-grid":a,children:r},s)});return jsxRuntime.jsx(ResponsiveReactGridLayout,{className:"layout",cols:{lg:12,md:10,sm:6,xs:4,xxs:2},draggableHandle:".draggable-head",rowHeight:30,onLayoutChange:r=>{t==null||t(r.map(a=>({id:parseInt(a.i.replace(".$",""),10),x:a.x,y:a.y,w:a.w,h:a.h})))},children:o})},{Text}=antd.Typography,DashboardGridItem=e=>{const{id:n,title:t,children:o,action:r,openAction:a}=e;return jsxRuntime.jsxs("div",{className:"shadow-md rounded",style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid #eee",backgroundColor:"white"},children:[jsxRuntime.jsxs(antd.Row,{className:"bg-blueGray-100",align:"middle",style:{borderBottom:"1px solid #ddd"},wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",className:"draggable-head",style:{fontWeight:"bold",padding:"0.5rem",cursor:"grab",overflow:"hidden"},children:jsxRuntime.jsx(Text,{ellipsis:!0,children:t})}),r&&jsxRuntime.jsx(antd.Col,{flex:"25px",style:{padding:"0.5rem"},children:jsxRuntime.jsx(antd.Row,{justify:"end",align:"middle",children:jsxRuntime.jsx(Icon.ExportOutlined,{style:{cursor:"pointer"},onClick:()=>{a==null||a(r)}})})})]}),o]})},DEFAULT_SEARCH_LIMIT=80;function DashboardTree(e){const{action:n,model:t,view_id:o,onRowClicked:r,domain:a=[],visible:s=!0,parentContext:l={}}=e,[c,u]=React.useState(!1),[d,f]=React.useState(!1),[m,p]=React.useState(),[g,v]=React.useState(),[C,I]=React.useState(),[h,y]=React.useState(1),[x,w]=React.useState(0),O=React.useRef(DEFAULT_SEARCH_LIMIT),F=React.useRef([]),[b,S]=React.useState(0),[T,k]=React.useState([]),[L,D]=React.useState(void 0),[P,M]=React.useState(),[q,U]=React.useState(),[B,V]=React.useState(),[G,Y]=React.useState(!1),H=React.useRef([]),K=z=>{Y(!0),y(z),w((z-1)*O.current)},N=z=>{const X={};return z.forEach(ne=>{Array.isArray(ne)&&ne[0]&&(X[ne[0]]=!0)}),Object.keys(X)},W=(z,X)=>{const ne=z,ee=N(z);return X.forEach(oe=>{Array.isArray(oe)&&oe[0]&&(ee.includes(oe[0])||ne.push(oe))}),ne},j=async()=>{const z=H.current.length>0?H.current:a,X=W(F.current,z),{colors:ne}=getTree(g),{totalItems:ee,results:oe,attrsEvaluated:se}=await ConnectionProvider.getHandler().searchForTree({params:X,limit:O.current,offset:x,model:m,fields:g.fields,context:l,attrs:ne&&{colors:ne}});S(ee),D(getColorMap(se));const ie=sortResults({resultsToSort:oe,sorter:P,fields:{...g.fields,...C.fields}});k(ie)},A=async()=>{try{Y(!0),await j()}catch(z){U(JSON.stringify(z))}finally{Y(!1)}};React.useEffect(()=>{!d||s&&A()},[h,x,d,s]);const $=async z=>{f(!1),u(!0),V(void 0);try{z==="action"?await Z():await Q(),f(!0)}catch(X){V(X)}finally{u(!1)}},Z=async()=>{const z=await ConnectionProvider.getHandler().getViewsForAction({action:n,context:l});H.current=z.domain,I(z.views.get("form")),v(z.views.get("tree")),p(z.model),O.current=z.limit},Q=async()=>{p(t);const z=await ConnectionProvider.getHandler().getView({model:t,type:"form",context:l});I(z);const X=await ConnectionProvider.getHandler().getView({model:t,type:"tree",id:o,context:l});v(X)};React.useEffect(()=>{n?$("action"):t&&$("model")},[n,t]);const E=z=>{const{id:X}=z;r({id:X,model:m,treeView:g})},_=()=>!g||!C?null:jsxRuntime.jsxs("div",{style:{overflowY:"scroll"},children:[q&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:q,type:"error",banner:!0}),jsxRuntime.jsx(Tree,{showPagination:!1,total:b,limit:O.current,page:h,treeView:g,results:T,onRequestPageChange:K,loading:G,onRowClicked:E,colorsForResults:L,sorter:P,onChangeSort:z=>{M==null||M(z);const X=sortResults({resultsToSort:T,sorter:z,fields:{...g.fields,...C.fields}});k(X)}})]});return B?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:B,type:"error",banner:!0}):c?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):_()}const DashboardForm=e=>{const{model:n}=e,[t,o]=React.useState();React.useEffect(()=>{r()},[n]);async function r(){const a=await ConnectionProvider.getHandler().search({params:[],model:n,limit:1});a.length>0&&o(a[0].id)}return jsxRuntime.jsx("div",{style:{padding:"0.5rem",overflowY:"scroll"},children:jsxRuntime.jsx(Form$1,{...e,model:n,id:t,readOnly:!0})})},itemsField="line_ids";function Dashboard(e,n){const{model:t,context:o={},id:r,configAction:a}=e,[s,l]=React.useState([]),[c,u]=React.useState(!1),[d,f]=React.useState(),{setIsLoading:m,openAction:p,moveItemsEnabled:g}=React.useContext(DashboardActionContext),v=React.useRef(),C=React.useRef();React.useEffect(()=>{I()},[t,r,o]),React.useImperativeHandle(n,()=>({refresh:()=>{I()},configDashboard:F}));async function I(){u(!0),m(!0),f(void 0);try{const b=await h(),S=await x(b),T=b.fields[itemsField].relation,k=S[itemsField].items;C.current=b.fields;const L=await y({items:k,model:T,context:o}),D=await w(L);l(D),u(!1),m(!1)}catch(b){f(JSON.stringify(b))}}async function h(){return await ConnectionProvider.getHandler().getView({model:t,type:"form",context:o})}async function y({items:b,model:S,context:T}){return v.current=(await ConnectionProvider.getHandler().getView({model:S,type:"form",context:T})).fields,await readObjectValues({treeFields:v.current,formFields:v.current,model:S,items:b,context:T})}async function x(b){return(await ConnectionProvider.getHandler().readObjects({model:t,ids:[r],fields:b.fields,context:o}))[0]}async function w(b){const S=[];for(const T of b){const{values:k}=T;if(k.action_id&&k.action_id.length>0){const L=parseInt(k.action_id[0],10),D=await fetchAction({actionId:L,rootContext:o});S.push({...T,actionData:D})}}return S}async function O(b){if(!g)return;const S=b.filter(D=>{const P=s.find(q=>q.id===D.id);if(!P)return!1;if(!P.position)return!0;const M={...JSON.parse(P.position.replace(/'/g,'"')),id:P.id};return JSON.stringify(D)!==JSON.stringify(M)});if(S.length===0)return;const k=s.filter(D=>S.map(P=>P.id).includes(D.id)).map(D=>{const P={...S.find(M=>M.id===D.id)};return delete P.id,{...D},{...D,operation:"pendingUpdate",values:{...D.values,position:JSON.stringify(P).replace(/"/g,"'")}}}),L={fields:v.current,items:k};await ConnectionProvider.getHandler().update({model:t,id:r,values:{[itemsField]:L},fields:C.current,context:o})}async function F(){p(a)}return d?jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:d,type:"error",banner:!0}):c?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(DashboardGrid,{onPositionItemsChanged:O,children:s.map((b,S)=>{const{actionData:T,values:k}=b,{position:L,id:D}=k,{actionId:P,actionType:M,key:q,title:U,views:B,model:V,context:G,domain:Y,initialView:H,limit:K}=T;let N={};try{N=JSON.parse(L.replace(/'/g,'"'))}catch{N={x:S*2,y:0,w:2,h:3}}let W=null;(H==null?void 0:H.type)==="graph"?W=jsxRuntime.jsx(Graph,{view_id:B.filter($=>$[1]==="graph")[0][0],model:V,context:G,domain:Y,limit:K}):(H==null?void 0:H.type)==="form"?W=jsxRuntime.jsx(DashboardForm,{model:V,actionDomain:Y}):(H==null?void 0:H.type)==="tree"?W=jsxRuntime.jsx(DashboardTree,{model:V,domain:Y,view_id:B.filter($=>$[1]==="tree")[0][0],onRowClicked:$=>{const Z=B.find(Q=>{const[,E]=Q;return E==="form"});if(Z){const[Q,E]=Z,{actionId:_,actionType:z,title:X,model:ne}=T,ee={action_id:_,action_type:z,name:X,res_id:$.id,res_model:ne,view_id:Q,view_type:E};p(ee)}}}):H!==void 0&&(W=jsxRuntime.jsx(ActionView$1,{action_id:P,action_type:M,tabKey:q,title:U,views:B,model:V,context:G,domain:Y,setCanWeClose:()=>{},initialView:H}));let j;const A=B.find($=>{const[,Z]=$;return Z==="tree"});if(A){const[$,Z]=A,{actionId:Q,actionType:E,title:_,model:z}=T;j={action_id:Q,action_type:E,name:_,res_id:!1,res_model:z,view_id:$,view_type:Z}}return jsxRuntime.jsx(DashboardGridItem,{id:D,title:U,parms:N,action:j,openAction:p,children:W},D)})})}const Dashboard$1=React.forwardRef(Dashboard),MultiCheckbox=e=>{const{ooui:n}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(MultiCheckboxInput,{ooui:n})})},MultiCheckboxInput=e=>{const{value:n,ooui:t,onChange:o}=e,{items:r=[]}=n||{},a=r.filter(b=>b.operation!=="pendingRemove").map(b=>b.id),[s,l]=React.useState([]),[c,u]=React.useState(),[d,f]=React.useState(!1),{relation:m,context:p,readOnly:g,field:v,columns:C}=t,I=React.useContext(FormContext$1),{getContext:h}=I||{};useDeepCompareEffect__default.default(()=>{x()},[r]);const y=b=>{o==null||o({items:b})};async function x(){f(!0);let b=[];if(t.domain){const S=await ConnectionProvider.getHandler().evalDomain({domain:t.domain,values:I.getPlainValues(),context:I.getContext()});b=[...b,...S]}try{const T=(await ConnectionProvider.getHandler().search({model:m,params:b,fields:[v],context:{...h==null?void 0:h(),...p}})).map(k=>{const L=k[v];let D=L;return Array.isArray(L)&&(D=L[1]),{label:D,value:k.id}});l(T)}catch(S){u(S)}finally{f(!1)}if(c)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:c,type:"error",banner:!0})}const w=()=>{F(s.map(b=>b.value))},O=()=>{F([])},F=b=>{const S=r.map(k=>b.includes(k.id)?k.operation=="pendingRemove"?{...k,operation:"original"}:k:{id:k.id,operation:"pendingRemove"}),T=S.map(k=>k.id);b.filter(k=>!T.includes(k)).map(k=>{S.push({id:k,operation:"pendingLink"})}),y(S)};return d&&s.length===0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:"flex flex-row",children:[jsxRuntime.jsx(antd.Checkbox.Group,{value:s.length?a:[],disabled:g,onChange:F,style:{width:"100%"},children:jsxRuntime.jsx(antd.Row,{children:s.map(b=>jsxRuntime.jsx(antd.Col,{span:Math.floor(24/C),children:jsxRuntime.jsx(antd.Checkbox,{value:b.value,children:b.label})}))})}),!g&&jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{onClick:w,disabled:a.length==s.length,children:"Check all"}),jsxRuntime.jsx(antd.Button,{onClick:O,disabled:a.length===0,children:"Uncheck all"})]})]})})},Radio=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(SelectionInput,{...e})})},SelectionInput=e=>{const{ooui:n,onChange:t,value:o}=e,{selectionValues:r,readOnly:a,direction:s}=n,l=Array.from(r.entries()),c=l&&l.length&&l.map(u=>{const[d,f]=u;return jsxRuntime.jsx(antd.Radio,{value:d,children:f},d)});return jsxRuntime.jsx(antd.Radio.Group,{disabled:a,onChange:t,value:o,children:jsxRuntime.jsx(antd.Space,{direction:s,children:c})})},Switch=e=>{const{ooui:n}=e,{id:t,readOnly:o,required:r}=n;return jsxRuntime.jsx(Field$1,{...e,valuePropName:"checked",children:jsxRuntime.jsx(SwitchInput,{id:t,readOnly:o,required:r})})},SwitchInput=e=>{const{required:n,readOnly:t,...o}=e;return jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Switch,{disabled:t,...o})})},Steps=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(StepsInput,{...e})})},StepsInput=e=>{const{ooui:n,value:t}=e,{selectionValues:o,errorField:r}=n,a=React.useContext(FormContext$1),s=Array.from(o.entries()),l=s.map(d=>d[0]).indexOf(t);let c="process",u="";return r&&(u=a.getFieldValue(r),u&&(c="error")),jsxRuntime.jsx(antd.Steps,{current:l,status:c,children:s.map((d,f)=>jsxRuntime.jsx(antd.Steps.Step,{title:d[1],description:f===l&&c==="error"?u:null}))})},CodeEditor=e=>{const{ooui:n}=e,{lang:t,height:o}=n,r=React.useContext(FormContext$1),{elementHasLostFocus:a}=r||{},s=l=>{l.onDidBlurEditorWidget(a)};return jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(Editor__default.default,{defaultLanguage:t||"",height:o||300,onMount:s})})},{Content}=antd.Layout,{Title}=antd.Typography;function Welcome(){const{t:e}=React.useContext(LocaleContext);return jsxRuntime.jsx(Content,{className:"m-5 select-none",children:jsxRuntime.jsx(Title,{level:5,children:e("welcome")})})}function RootView(e,n){const{children:t,globalValues:o={},rootContext:r={},lang:a}=e,[s,l]=React.useState("welcome"),[c,u]=React.useState([{title:tForLang("welcome",a),key:"welcome",closable:!0,content:jsxRuntime.jsx(Welcome,{})}]),d=React.useRef(new Map),f=React.useRef();React.useImperativeHandle(n,()=>({retrieveAndOpenAction:g,openShortcut:I}));function m(x){if(x===s){const w=c.findIndex(O=>O.key===x);c[w-1]&&l(c[w-1].key),c[w+1]&&l(c[w+1].key)}u(c.filter(w=>w.key!==x)),d.current.delete(x)}function p({tabKey:x,canWeClose:w}){d.current.set(x,w)}async function g({action:x,values:w,forced_values:O,initialViewType:F,res_id:b,domain:S=[]}){const T=await ConnectionProvider.getHandler().getActionData({action:x,context:r});if(T.type==="ir.actions.wizard"){showDialog$8("Action type not supported");return}const[k,L]=x.split(","),D=parseInt(L),P=ooui.parseContext({context:T.context,values:o,fields:{}}),M=T.domain?await ConnectionProvider.getHandler().evalDomain({domain:T.domain,values:o,context:{...r,...P}}):[],{res_model:q,views:U,name:B,target:V,view_type:G,limit:Y}=T,H=G==="tree",K=[];for(const W of U){const[j,A]=W;if(j)K.push(W);else if(A==="dashboard")K.push([void 0,"dashboard"]);else{const{view_id:$}=await ConnectionProvider.getHandler().getView({model:q,type:A,id:j,context:{...r,...P}});K.push([$,A])}}let N;if(F){const[W,j]=K.find(([A,$])=>$===F);N={id:W,type:j}}else{const[W,j]=K[0];N={id:W,type:j}}y({domain:[...M,...S],context:{...r,...P},model:q,views:K,title:B,target:V,initialView:N,action_type:k,action_id:D,values:w,forced_values:O,res_id:b,treeExpandable:H,limit:Y})}function v({title:x,content:w,key:O,action:F}){let b=[...c];c.length===1&&c[0].key==="welcome"&&(b=[...c.filter(S=>S.key!=="welcome")]),u([...b,{title:x,key:O,closable:!0,content:w,action:F}]),l(O)}async function C({relateData:x,fields:w,values:O,action_id:F,action_type:b}){const{res_model:S,context:T,domain:k,views:L,target:D,string:P,limit:M}=x,[q,U]=L[0],B={id:q,type:U},V=ooui.parseContext({context:T,values:{...O,...o},fields:w}),G=k?await ConnectionProvider.getHandler().evalDomain({domain:k,values:{...O,...o},context:{...r,...V}}):[];y({model:S,target:D,views:L,context:{...r,...V},domain:G,title:P,initialView:B,action_id:F,action_type:b,limit:M})}async function I(x){const{action_id:w,action_type:O,res_id:F,view_id:b}=x,S=`${O},${w}`,T=await ConnectionProvider.getHandler().getActionData({action:S,context:r}),k=ooui.parseContext({context:T.context,values:o,fields:{}}),L=T.domain?await ConnectionProvider.getHandler().evalDomain({domain:T.domain,values:o,context:{...r,...k}}):[],{res_model:D,views:P,name:M,target:q,view_type:U,limit:B}=T,V=U==="tree",G=[];for(const N of P){const[W,j]=N;if(W)G.push(N);else if(j==="dashboard")G.push([void 0,"dashboard"]);else{const{view_id:A}=await ConnectionProvider.getHandler().getView({model:D,type:j,id:W,context:{...r,...k}});G.push([A,j])}}let Y,H;if(b==null){const N=G.find(W=>W[0]===void 0);Y=void 0,H=N[1]}else[Y,H]=G.find(N=>N[0]===void 0?!1:N[0]===b);const K={id:Y,type:H};y({domain:L,context:{...r,...k},model:D,views:G,title:M,target:q,initialView:K,action_id:w,action_type:O,res_id:F,treeExpandable:V,limit:B})}async function h({model:x,values:w,forced_values:O,initialViewType:F,res_id:b,domain:S}){const T=await ConnectionProvider.getHandler().getActionStringForModel(x);await g({action:T,values:w,forced_values:O,initialViewType:F,res_id:b,domain:S})}async function y({domain:x,context:w,model:O,views:F,title:b,target:S,initialView:T,action_id:k,action_type:L,res_id:D,values:P,forced_values:M,treeExpandable:q=!1,limit:U}){const B=v4();if(S!=="current"){const V=await ConnectionProvider.getHandler().getView({model:O,type:"form",id:T.type==="form"?T.id:void 0,context:{...r,...w}});f.current.openActionModal({domain:x,model:O,formView:V,context:{...r,...w},actionData:{action_id:k,action_type:L,res_id:D,view_id:V.view_id}})}else v({title:b,action:{id:k,type:L},content:jsxRuntime.jsx(ActionView$1,{action_id:k,action_type:L,tabKey:B,title:b,views:F,model:O,context:{...r,...w},domain:x,setCanWeClose:p,initialView:T,res_id:D,formDefaultValues:P,formForcedValues:M,treeExpandable:q,limit:U}),key:B})}return jsxRuntime.jsx(LocaleContextProvider,{lang:a,children:jsxRuntime.jsx(TabManagerProvider,{openShortcut:I,openAction:y,openRelate:C,openDefaultActionForModel:h,tabs:c,activeKey:s,onRemoveTab:async x=>{const w=d.current.get(x);(await(w==null?void 0:w())||s==="welcome")&&m(x)},onChangeTab:x=>{l(x)},children:jsxRuntime.jsx(ContentRootProvider$1,{ref:f,globalValues:o,children:t})})})}const RootView$1=React.forwardRef(RootView);function Tab(e){const{label:n,onClose:t,tabKey:o,isActive:r,onSelected:a}=e,s=r?"#ffffff":"#F1F5F9";return jsxRuntime.jsxs("div",{onClick:()=>{!r&&a(o)},style:{cursor:"pointer",height:40,paddingTop:7,paddingBottom:5,paddingLeft:10,paddingRight:10,backgroundColor:s,display:"inline-flex",flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",borderTopLeftRadius:8,borderTopRightRadius:8,marginLeft:2},children:[jsxRuntime.jsx("div",{style:{color:r?"#001529":"#ADB0B3",userSelect:"none",height:40,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:5,paddingRight:5,marginBottom:2},children:n}),jsxRuntime.jsx("div",{style:{paddingLeft:5,height:40,display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntime.jsx(Icon.CloseOutlined,{style:{color:r?"#001529":"#ADB0B3"},onClick:l=>{l.stopPropagation(),t(o)}})})]})}function TabSelector(){const e=React.useContext(TabManagerContext),{activeKey:n,tabs:t,onRemoveTab:o,onChangeTab:r}=e||{};return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.map(a=>jsxRuntime.jsx(Tab,{tabKey:a.key,label:a.title,onClose:o,isActive:n===a.key,onSelected:r},a.key))})}function TabContent(e){const{tab:n}=e,t=React.useContext(TabManagerContext),{activeKey:o}=t||{},r={display:"none"};return jsxRuntime.jsx("div",{style:n.key!==o?r:void 0,children:n.content})}const TabContent$1=React__default.default.memo(TabContent,()=>!0);function CurrentTabContent(){const e=React.useContext(TabManagerContext),{tabs:n}=e||{},t=(n==null?void 0:n.map(o=>jsxRuntime.jsx(TabContent$1,{tab:o},o.key)))||null;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t})}const FavouriteButton=e=>{const{onRetrieveShortcuts:n,onCheckIsFavourite:t,onAddFavourite:o,onRemoveFavourite:r}=e,[a,s]=React.useState(!1),[l,c]=React.useState(!1),[u,d]=React.useState([]),[f,m]=React.useState(!0),[p,g]=React.useState(),{t:v}=React.useContext(LocaleContext),C=React.useContext(TabManagerContext),{openShortcut:I,tabs:h,activeKey:y,currentView:x,currentId:w,openDefaultActionForModel:O}=C||{};React.useEffect(()=>{F()},[]),React.useEffect(()=>{T()},[h,y,x,w]);async function F(){try{m(!0);const M=await n();d(M)}catch(M){showDialog$8(M)}finally{m(!1)}}function b(M){const{key:q}=M,U=u.find(B=>B.id===Number(q));(U==null?void 0:U.action_type)!=="ir.actions.wizard"&&(U&&I(U),c(!1))}function S(M){M&&F(),c(M)}async function T(){if(!x)return;const M=h.find(Y=>Y.key===y),{id:q,type:U}=(M==null?void 0:M.action)||{};if(!q||!U){s(!1);return}const B=x.id;let V=!1;x.type==="form"&&(V=w||!1);const G=await t({action_id:q,action_type:U,view_id:B,res_id:V});G!==!1&&g(G),s(G!==!1)}async function k(){c(!1),O==null||O({model:"ir.ui.view_sc"})}const L=jsxRuntime.jsxs(antd.Menu,{onClick:b,children:[jsxRuntime.jsxs("div",{style:{width:300,padding:5,display:"flex"},children:[jsxRuntime.jsx("div",{style:{paddingLeft:15,color:"#ccc"},children:v("favorites").toUpperCase()}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:jsxRuntime.jsx(antd.Tooltip,{title:v("edit_favorites"),children:jsxRuntime.jsx(Icon.EditOutlined,{style:{color:"#1890FF",cursor:"pointer"},onClick:k})})})]}),jsxRuntime.jsx(antd.Menu.Divider,{}),f?jsxRuntime.jsx(antd.Spin,{style:{padding:"1rem"}}):u.length>0?jsxRuntime.jsx(jsxRuntime.Fragment,{children:u.map(M=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsx(D,{title:M.name,type:M.view_type})},M.id))}):jsxRuntime.jsx("div",{style:{width:300,padding:5,paddingLeft:15},children:v("no_favorites")})]});function D({title:M,type:q}){const U=q==="tree"?jsxRuntime.jsx(Icon.TableOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{});return jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:U}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:M})]})}async function P(){if(a&&p)await r(p);else{if(!x)return;const M=h.find(G=>G.key===y),{id:q,type:U}=(M==null?void 0:M.action)||{},B=x.id;let V=!1;if(!q||!U){s(!1);return}x.type==="form"&&(V=w||!1),await o({action_id:q,action_type:U,view_id:B,res_id:V})}await F(),s(!a)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Button,{type:a?"primary":"default",icon:a?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:50},onClick:P}),jsxRuntime.jsx(antd.Dropdown,{overlay:L,onVisibleChange:S,visible:l,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:M=>M.preventDefault()})})]})};exports.ActionBar=FormActionBar,exports.Binary=Binary,exports.Boolean=Boolean$1,exports.Button=Button,exports.ButtonGroup=ButtonGroup,exports.Char=Char,exports.CodeEditor=CodeEditor,exports.ConnectionProvider=ConnectionProvider,exports.ContentRootProvider=ContentRootProvider$1,exports.CurrentTabContent=CurrentTabContent,exports.Dashboard=Dashboard$1,exports.DashboardGrid=DashboardGrid,exports.DashboardGridItem=DashboardGridItem,exports.Date=Date$1,exports.DateTime=DateTime,exports.Email=Email,exports.FavouriteButton=FavouriteButton,exports.Float=Float,exports.FloatTime=FloatTime,exports.Form=Form$1,exports.FormModal=FormModal,exports.GraphIndicator=GraphIndicator,exports.Group=Group,exports.Image=Image,exports.Integer=Integer,exports.Label=Label,exports.Many2one=Many2one,exports.MultiCheckbox=MultiCheckbox,exports.Notebook=Notebook,exports.One2many=One2many,exports.ProgressBar=ProgressBar,exports.Radio=Radio,exports.Reference=Reference,exports.RootView=RootView$1,exports.SearchFilter=SearchFilter,exports.SearchModal=SearchModal,exports.SearchTree=SearchTree$1,exports.Selection=Selection,exports.Separator=Separator,exports.Steps=Steps,exports.Switch=Switch,exports.TabSelector=TabSelector,exports.Tags=Tags,exports.Text=Text$2,exports.Tree=Tree,exports.Url=Url,exports.iconMapper=iconMapper,exports.showConfirmDialog=showDialog$9,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
128
+ hooks.version="2.29.4",setHookCallback(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const DatePickerConfig={date:{placeholder:"__/__/____",dateDisplayFormat:"YYYY-MM-DD",dateInternalFormat:"YYYY-MM-DD"},time:{placeholder:"__/__/____ __:__:__",dateDisplayFormat:"YYYY-MM-DD HH:mm:ss",dateInternalFormat:"YYYY-MM-DD HH:mm:ss"}},DatePicker=e=>{const{ooui:n,showTime:t=!1}=e,{required:o}=n;return jsxRuntime.jsx(Field$1,{required:o,...e,children:jsxRuntime.jsx(DatePickerInput,{ooui:n,showTime:t})})},DatePickerInput=e=>{const{value:n,onChange:t,ooui:o,showTime:r}=e,{id:a,readOnly:s,required:l}=o,c=l&&!s?Config.requiredClass:void 0,u=r?"time":"date",d=h=>{t==null||t(h)},f=h=>{if(h===null){d(void 0);return}d(h.format(DatePickerConfig[u].dateInternalFormat))},m=r?{defaultValue:hooks("00:00:00","HH:mm:ss")}:void 0,p=n?hooks(n,DatePickerConfig[u].dateInternalFormat):void 0;return jsxRuntime.jsx(antd.DatePicker,{style:{width:"100%"},placeholder:r?DatePickerConfig.time.placeholder:DatePickerConfig.date.placeholder,disabled:s,id:a,showTime:m,className:c,format:DatePickerConfig[u].dateDisplayFormat,value:p,onChange:f})},Date$1=e=>{const{ooui:n}=e;return jsxRuntime.jsx(DatePicker,{ooui:n})},DateTime=e=>{const{ooui:n}=e;return jsxRuntime.jsx(DatePicker,{ooui:n,showTime:!0})},Reference=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(ReferenceInput,{ooui:n})})},ReferenceInput=e=>{const{value:n,onChange:t,ooui:o}=e,{required:r,selectionValues:a,readOnly:s}=o,l=n==null?void 0:n.split(","),[c,u]=React.useState([]),[d,f]=React.useState();return React.useEffect(()=>{if(!n)return;const m=n&&l&&l[0],p=n&&l&&l[1]&&parseInt(l[1]);u([p,void 0]),f(m)},[n]),jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"1",children:jsxRuntime.jsx(SelectionInput$1,{ooui:new ooui.Selection({name:"model_selection",selection:a,readOnly:s,required:r}),onChange:m=>{f(m),u([]),t==null||t(void 0)},value:d})}),jsxRuntime.jsx(antd.Col,{flex:"3",children:jsxRuntime.jsx(Many2oneInput,{ooui:new ooui.Many2one({name:"object_value",relation:d,readOnly:s,required:r}),value:c,onChange:m=>{u(m);const p=`${d},${m[0]}`;p!==n&&(t==null||t(p))}})})]})},Binary=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(BinaryInput,{ooui:n})})},BinaryInput=e=>{const{ooui:n,value:t,onChange:o}=e,{readOnly:r,required:a,filenameField:s}=n,l=a&&!r?Config.requiredClass:void 0,c=React.useRef(null),{setFieldValue:u,getFieldValue:d}=React.useContext(FormContext$1)||{},{t:f}=React.useContext(LocaleContext),m=t?getFilesize(t):"",p=g=>{o==null||o(g)};async function h(){const g=await getMimeType(t),y=`data:${g==null?void 0:g.mime};base64,${t}`,x=document.createElement("a"),w=d(s),O=d("name");x.href=y,x.download=w||O,x.click()}async function v(){const g=await getMimeType(t);openBase64InNewTab(t,g.mime)}async function C(g){g.stopPropagation(),g.preventDefault();const y=g.target.files[0],x=await toBase64(y);p(x),s&&u(s,y.name)}function I(){u(s,void 0),p(void 0)}return jsxRuntime.jsxs(antd.Row,{gutter:8,children:[jsxRuntime.jsxs(antd.Col,{style:{paddingBottom:5},children:[jsxRuntime.jsx("input",{type:"file",id:"file",ref:c,style:{display:"none"},onChange:C}),jsxRuntime.jsx(antd.Input,{type:"text",disabled:!0,className:l,value:m})]}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:r,onClick:()=>{c.current.click()},children:"Select"}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EyeOutlined,{}),disabled:!t,onClick:v,children:f("open")}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:f("download"),disabled:!t,onClick:h,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:f("clear"),disabled:r||!t,onClick:I,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})};function getIconForView(e){return e?e.type==="tree"?jsxRuntime.jsx(Icon.TableOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{}):null}function ChangeViewButton(e){const{currentView:n,availableViews:t,onChangeView:o,disabled:r=!1,formHasChanges:a=!1}=e,{t:s,lang:l}=React.useContext(LocaleContext),[c,u]=React.useState();React.useEffect(()=>{t.length===1?u(t[0]):u(t.filter(p=>p.id!==n.id)[0])},[t]);function d(){const p=t.map(h=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:jsxRuntime.jsx(Icon.CheckOutlined,{style:{opacity:n===h?1:0}})}),jsxRuntime.jsx(antd.Col,{flex:"auto",style:{paddingRight:20},children:h.type.charAt(0).toUpperCase()+h.type.slice(1)}),jsxRuntime.jsx(antd.Col,{flex:"none",children:getIconForView(h)})]})},h.id));return jsxRuntime.jsx(antd.Menu,{onClick:m,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:s("viewAs"),children:p})})}function f(p){if(a){showDialog$6({lang:l,onOk:()=>{p()}});return}p()}function m(p){f(()=>{u(n);const h=p.key;o(h)})}return n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:c?s("viewAs")+" "+s(c.type):"",icon:getIconForView(c),style:{width:50},onClick:()=>{m({key:c})},disabled:r||t.length===1}),jsxRuntime.jsx(antd.Dropdown,{overlay:d(),disabled:r||t.length===1,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:p=>p.preventDefault()})})]}):null}function DropdownButton(e){const{icon:n,tooltip:t,items:o=[],onItemClick:r,label:a,disabled:s=!1}=e;function l(){const u=o==null?void 0:o.map((d,f)=>d.name==="divider"?jsxRuntime.jsx(antd.Menu.Divider,{},"divider"+f):jsxRuntime.jsx(antd.Menu.Item,{children:d.name},d.id));return jsxRuntime.jsx(antd.Menu,{onClick:c,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:t,children:u})})}function c(u){const d=o.find(f=>isNaN(u.key)?f.id===u.key:f.id===parseInt(u.key));r(d)}return jsxRuntime.jsx(antd.Dropdown,{overlay:l(),disabled:s||!o||o.length===0,children:jsxRuntime.jsxs(antd.Button,{children:[n," ",a," ",jsxRuntime.jsx(Icon.DownOutlined,{})]})})}function ActionButton(e){const{onClick:n,disabled:t=!1,loading:o=!1,tooltip:r,icon:a,label:s,type:l="default"}=e,c=o?jsxRuntime.jsx(Icon.LoadingOutlined,{}):a;return jsxRuntime.jsxs(ButtonWithTooltip,{type:l,tooltip:r,onClick:n,disabled:t,children:[c,s]})}function NewButton(e){const{disabled:n=!1}=e,{formHasChanges:t,onNewClicked:o}=React.useContext(ActionViewContext),{t:r,lang:a}=React.useContext(LocaleContext),s=()=>{if(t){showDialog$6({lang:a,onOk:()=>{o()}});return}o()};return jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),tooltip:r("new"),onClick:s,disabled:n})}const{confirm}=antd.Modal,showDialog=({onOk:e,onCancel:n,lang:t})=>{confirm({title:tForLang("unsavedChanges",t),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRefreshWithoutSave",t),okText:tForLang("discardAndRefresh",t),cancelText:tForLang("cancel",t),onOk:e,onCancel:n})};async function showLogInfo(e,n,t){const o=(await ConnectionProvider.getHandler().getLogInfo({model:e,ids:[n]}))[0],{create_date:r,create_uid:a,id:s,write_date:l,write_uid:c}=o;showDialog$7(jsxRuntime.jsxs("div",{children:["ID: "+s," ",jsxRuntime.jsx("br",{}),t("createdBy")+": "+a[1]," ",jsxRuntime.jsx("br",{}),t("creationDate")+": "+r," ",jsxRuntime.jsx("br",{}),t("lastUpdatedBy")+": "+c[1]," ",jsxRuntime.jsx("br",{}),t("lastUpdatedDate")+": "+l]}))}const AttachmentsButtonWrapper=e=>{const{numberOfAttachments:n,disabled:t}=e,{t:o}=React.useContext(LocaleContext),[r,a]=React.useState(!1),s=jsxRuntime.jsxs(antd.Button,{disabled:t,children:[jsxRuntime.jsx(Icon.LinkOutlined,{}),`(${n})`,jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:12}})]});return t?s:jsxRuntime.jsx(antd.Popover,{onVisibleChange:l=>a(l),visible:r,placement:"bottom",content:Content$1(e,a),title:o("attachments"),arrowContent:null,children:s})},Content$1=(e,n)=>{const{attachments:t=[],loading:o,onAddNewAttachment:r,onopenAttachmentLink:a,onOpenAttachmentDetail:s,onListAllAttachments:l}=e,{t:c}=React.useContext(LocaleContext);return o?jsxRuntime.jsx(antd.Spin,{style:{padding:20}}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("a",{style:{display:"block",paddingBottom:5},href:"#",onClick:()=>{n(!1),l()},children:[jsxRuntime.jsx(Icon.TableOutlined,{})," ",c("listAllAttachments")]}),jsxRuntime.jsxs("a",{style:{display:"block"},href:"#",onClick:()=>{n(!1),r()},children:[jsxRuntime.jsx(Icon.FileAddOutlined,{})," ",c("addNewAttachment")]}),t.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("li",{className:" ant-dropdown-menu-item-divider"}),t.map(u=>{const d=u.link?Icon.LinkOutlined:Icon.DownloadOutlined;return jsxRuntime.jsxs(antd.Row,{style:{paddingTop:4,paddingBottom:4},wrap:!1,align:"middle",children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:u.name}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:(u.datas_fname||u.link)&&jsxRuntime.jsx(antd.Tooltip,{title:u.link?c("openAttachmentLink"):c("download"),children:jsxRuntime.jsx(d,{style:{cursor:"pointer"},onClick:()=>{n(!1),a(u)}})})}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:jsxRuntime.jsx(antd.Tooltip,{title:c("openAttachment"),children:jsxRuntime.jsx(Icon.FormOutlined,{style:{cursor:"pointer"},onClick:()=>{n(!1),s(u)}})})})]},u.id)})]})]})};function AttachmentsButton(e){const{attachments:n,disabled:t=!1,onAddNewAttachment:o,onListAllAttachments:r,onViewAttachmentDetails:a}=e,{formRef:s}=React.useContext(ActionViewContext),[l,c]=React.useState(!1),[u,d]=React.useState([]),[f,m]=React.useState(!1),{t:p}=React.useContext(LocaleContext),h=React.useCallback(async()=>{c(!0);try{const I=await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:n.map(g=>g.id),fieldsToRetrieve:["name","datas_fname","link"],context:s.current.getContext()});d(I.map(g=>({id:g.id,name:g.name,datas_fname:g.datas_fname,link:g.link})))}catch(I){showDialog$8(I)}c(!1)},n),v=React.useCallback(async I=>{if(I.link){window.open(I.link);return}m(!0);let g;try{g=(await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:[I.id],context:s.current.getContext()}))[0]}catch(y){showDialog$8(y)}if(m(!1),!!g)if(g.datas){const y=await getMimeType(g.datas);openBase64InNewTab(g.datas,y.mime)}else a(g)},[]),C=React.useCallback(async I=>{a(I)},[]);return React.useEffect(()=>{h()},[h]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(AttachmentsButtonWrapper,{numberOfAttachments:n.length,attachments:u,disabled:t,loading:l,onAddNewAttachment:o,onListAllAttachments:r,onopenAttachmentLink:v,onOpenAttachmentDetail:C}),jsxRuntime.jsx(antd.Modal,{title:p("downloadingAttachment"),visible:f,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})})]})}function FormActionBar(){const{availableViews:e,currentView:n,setCurrentView:t,onFormSave:o,formHasChanges:r,formIsSaving:a,currentId:s,results:l,setCurrentItemIndex:c,currentItemIndex:u,setCurrentId:d,currentModel:f,setRemovingItem:m,removingItem:p,duplicatingItem:h,setDuplicatingItem:v,setResults:C,formIsLoading:I,toolbar:g,attachments:y,formRef:x,setFormHasChanges:w,searchTreeRef:O,goToResourceId:F}=React.useContext(ActionViewContext),{t:b,lang:_}=React.useContext(LocaleContext),T=React.useContext(ContentRootContext),{processAction:k}=T||{},N=React.useContext(TabManagerContext),{openRelate:D,openDefaultActionForModel:P}=N||{};function j(L){if(r){showDialog({lang:_,onOk:()=>{L()}});return}L()}function $(L){if(r){showDialog$6({lang:_,onOk:()=>{L()}});return}L()}function q(){l&&l.length>u+1?(c==null||c(u+1),d==null||d(l[u+1].id)):l&&u+1===l.length&&(c==null||c(0),d==null||d(l[0].id))}function B(){l&&u>0?(c==null||c(u-1),d==null||d(l[u-1].id)):l&&u===0&&(c==null||c(l.length-1),d==null||d(l[l.length-1].id))}function H(){showDialog$9({confirmMessage:b("confirmRemoveItem"),lang:_,onOk:()=>{G()}})}async function G(){try{m==null||m(!0),await ConnectionProvider.getHandler().delete({model:f,ids:[s]});const L=l==null?void 0:l.filter(M=>M.id!==s);C==null||C(L);let V=0;u>0&&u<=l.length-1&&(V=u-1),L!=null&&L[V]?(d==null||d(L==null?void 0:L[V].id),c==null||c(V)):(d==null||d(void 0),c==null||c(void 0))}catch(L){showDialog$3(JSON.stringify(L))}finally{m==null||m(!1)}}async function Y(){try{v==null||v(!0);const L=await ConnectionProvider.getHandler().duplicate({id:s,model:f,context:x.current.getContext()});L&&await(F==null?void 0:F(L))}catch(L){showDialog$3(JSON.stringify(L))}finally{v==null||v(!1)}}const W=a||p||I||h;function Z(L){k==null||k({actionData:L,values:x.current.getValues(),fields:x.current.getFields(),context:x.current.getContext(),onRefreshParentValues:()=>{x.current.fetchValues()}})}return n?jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[I&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Spin,{}),separator$2(),separator$2()]}),jsxRuntime.jsx(NewButton,{disabled:a||I||p||h}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SaveOutlined,{}),tooltip:b("save"),disabled:!r||W,loading:a,onClick:o}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:b("duplicate"),disabled:r||a||s===void 0||h||I,loading:h,onClick:Y}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:b("delete"),disabled:a||s===void 0||p||h||I,loading:p,onClick:H}),separator$2(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:b("showLogs"),disabled:a||s===void 0||p||h||I,loading:!1,onClick:()=>{showLogInfo(f,s,b)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:b("refresh"),disabled:a||s===void 0||p||h||I,loading:!1,onClick:()=>{j(()=>{x.current.fetchValues()})}}),separator$2(),jsxRuntime.jsx(ChangeViewButton,{currentView:n,availableViews:e.filter(L=>L.type==="tree"||L.type==="form"),onChangeView:L=>{w==null||w(!1),t==null||t(L)},disabled:W,formHasChanges:r}),separator$2(),jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),tooltip:b("previous"),disabled:W,loading:!1,onClick:()=>{$(B)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.RightOutlined,{}),tooltip:b("next"),disabled:W,loading:!1,onClick:()=>{$(q)}})]}),separator$2(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:W,tooltip:b("actions"),items:g==null?void 0:g.action,onItemClick:L=>{!L||Z(L)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:W,tooltip:b("reports"),items:g==null?void 0:g.print,onItemClick:L=>{!L||Z({...L,datas:{...L.datas||{},ids:[s]}})}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.EnterOutlined,{}),disabled:W,tooltip:b("related"),items:g==null?void 0:g.relate,onItemClick:async L=>{!L||D({relateData:L,values:x.current.getValues(),fields:x.current.getFields(),action_id:L.id,action_type:L.type})}}),jsxRuntime.jsx(AttachmentsButton,{disabled:W,attachments:y,onAddNewAttachment:()=>{const L=s,V=f;P({model:"ir.attachment",values:{selection_associated_object:`${V},${L}`},forced_values:{res_model:V,res_id:L},initialViewType:"form"})},onListAllAttachments:()=>{const L=s;P({model:"ir.attachment",domain:[["res_model","=",`${f}`],["res_id","=",`${L}`]],initialViewType:"tree"})},onViewAttachmentDetails:L=>{P({model:"ir.attachment",res_id:L.id,initialViewType:"form"})}})]}):null}function separator$2(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}var isURL$1={exports:{}},assertString={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function t(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(r)}function o(r){var a=typeof r=="string"||r instanceof String;if(!a){var s=t(r);throw r===null?s="null":s==="object"&&(s=r.constructor.name),new TypeError("Expected a string but received a ".concat(s))}}e.exports=n.default,e.exports.default=n.default})(assertString,assertString.exports);var isFQDN={exports:{}},merge={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;function t(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;for(var a in r)typeof o[a]>"u"&&(o[a]=r[a]);return o}e.exports=n.default,e.exports.default=n.default})(merge,merge.exports),function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var t=r(assertString.exports),o=r(merge.exports);function r(l){return l&&l.__esModule?l:{default:l}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function s(l,c){(0,t.default)(l),c=(0,o.default)(c,a),c.allow_trailing_dot&&l[l.length-1]==="."&&(l=l.substring(0,l.length-1)),c.allow_wildcard===!0&&l.indexOf("*.")===0&&(l=l.substring(2));var u=l.split("."),d=u[u.length-1];return c.require_tld&&(u.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(d)||/\s/.test(d))||!c.allow_numeric_tld&&/^\d+$/.test(d)?!1:u.every(function(f){return!(f.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(f)||/[\uff01-\uff5e]/.test(f)||/^-|-$/.test(f)||!c.allow_underscores&&/_/.test(f))})}e.exports=n.default,e.exports.default=n.default}(isFQDN,isFQDN.exports);var isIP={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var t=o(assertString.exports);function o(d){return d&&d.__esModule?d:{default:d}}var r="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(r,"[.]){3}").concat(r),s=new RegExp("^".concat(a,"$")),l="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(l,":){7}(?:").concat(l,"|:)|")+"(?:".concat(l,":){6}(?:").concat(a,"|:").concat(l,"|:)|")+"(?:".concat(l,":){5}(?::").concat(a,"|(:").concat(l,"){1,2}|:)|")+"(?:".concat(l,":){4}(?:(:").concat(l,"){0,1}:").concat(a,"|(:").concat(l,"){1,3}|:)|")+"(?:".concat(l,":){3}(?:(:").concat(l,"){0,2}:").concat(a,"|(:").concat(l,"){1,4}|:)|")+"(?:".concat(l,":){2}(?:(:").concat(l,"){0,3}:").concat(a,"|(:").concat(l,"){1,5}|:)|")+"(?:".concat(l,":){1}(?:(:").concat(l,"){0,4}:").concat(a,"|(:").concat(l,"){1,6}|:)|")+"(?::((?::".concat(l,"){0,5}:").concat(a,"|(?::").concat(l,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,t.default)(d),f=String(f),!f)return u(d,4)||u(d,6);if(f==="4"){if(!s.test(d))return!1;var m=d.split(".").sort(function(p,h){return p-h});return m[3]<=255}return f==="6"?!!c.test(d):!1}e.exports=n.default,e.exports.default=n.default})(isIP,isIP.exports),function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=I;var t=s(assertString.exports),o=s(isFQDN.exports),r=s(isIP.exports),a=s(merge.exports);function s(g){return g&&g.__esModule?g:{default:g}}function l(g,y){return m(g)||f(g,y)||u(g,y)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
129
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(g,y){if(!!g){if(typeof g=="string")return d(g,y);var x=Object.prototype.toString.call(g).slice(8,-1);if(x==="Object"&&g.constructor&&(x=g.constructor.name),x==="Map"||x==="Set")return Array.from(g);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return d(g,y)}}function d(g,y){(y==null||y>g.length)&&(y=g.length);for(var x=0,w=new Array(y);x<y;x++)w[x]=g[x];return w}function f(g,y){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(g)))){var x=[],w=!0,O=!1,F=void 0;try{for(var b=g[Symbol.iterator](),_;!(w=(_=b.next()).done)&&(x.push(_.value),!(y&&x.length===y));w=!0);}catch(T){O=!0,F=T}finally{try{!w&&b.return!=null&&b.return()}finally{if(O)throw F}}return x}}function m(g){if(Array.isArray(g))return g}var p={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},h=/^\[([^\]]+)\](?::([0-9]+))?$/;function v(g){return Object.prototype.toString.call(g)==="[object RegExp]"}function C(g,y){for(var x=0;x<y.length;x++){var w=y[x];if(g===w||v(w)&&w.test(g))return!0}return!1}function I(g,y){if((0,t.default)(g),!g||/[\s<>]/.test(g)||g.indexOf("mailto:")===0||(y=(0,a.default)(y,p),y.validate_length&&g.length>=2083)||!y.allow_fragments&&g.includes("#")||!y.allow_query_components&&(g.includes("?")||g.includes("&")))return!1;var x,w,O,F,b,_,T,k;if(T=g.split("#"),g=T.shift(),T=g.split("?"),g=T.shift(),T=g.split("://"),T.length>1){if(x=T.shift().toLowerCase(),y.require_valid_protocol&&y.protocols.indexOf(x)===-1)return!1}else{if(y.require_protocol)return!1;if(g.substr(0,2)==="//"){if(!y.allow_protocol_relative_urls)return!1;T[0]=g.substr(2)}}if(g=T.join("://"),g==="")return!1;if(T=g.split("/"),g=T.shift(),g===""&&!y.require_host)return!0;if(T=g.split("@"),T.length>1){if(y.disallow_auth||T[0]===""||(w=T.shift(),w.indexOf(":")>=0&&w.split(":").length>2))return!1;var N=w.split(":"),D=l(N,2),P=D[0],j=D[1];if(P===""&&j==="")return!1}F=T.join("@"),_=null,k=null;var $=F.match(h);if($?(O="",k=$[1],_=$[2]||null):(T=F.split(":"),O=T.shift(),T.length&&(_=T.join(":"))),_!==null&&_.length>0){if(b=parseInt(_,10),!/^[0-9]+$/.test(_)||b<=0||b>65535)return!1}else if(y.require_port)return!1;return y.host_whitelist?C(O,y.host_whitelist):!(!(0,r.default)(O)&&!(0,o.default)(O,y)&&(!k||!(0,r.default)(k,6))||(O=O||k,y.host_blacklist&&C(O,y.host_blacklist)))}e.exports=n.default,e.exports.default=n.default}(isURL$1,isURL$1.exports);const isURL=getDefaultExportFromCjs(isURL$1.exports),LinkInput=e=>{const{ooui:n,value:t,onChange:o,valueValidator:r,linkPrefix:a=""}=e,{id:s,readOnly:l,required:c}=n,u=c&&!l?Config.requiredClass:void 0,d=React.useContext(FormContext$1),{elementHasLostFocus:f}=d||{},[m,p]=React.useState(!1),[h,v]=React.useState(!1);React.useEffect(()=>{l&&!m&&v(!1),!t&&!l&&(p(!0),v(!0))},[m,l]);const C=I=>{o==null||o(I.target.value)};return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,align:"middle",children:[l?null:jsxRuntime.jsx(antd.Col,{flex:"32px",children:m?jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{r(t)&&(p(!1),v(!1))},tabIndex:-1}):jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EditOutlined,{}),onClick:()=>{p(!0),v(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:h?jsxRuntime.jsx(antd.Input,{id:s,onChange:C,className:u,value:t,onBlur:()=>{r(t)&&(p(!1),v(!1),f==null||f())}}):jsxRuntime.jsx("a",{href:`${a}${t}`,style:{color:"#1890ff",paddingRight:15},target:"_blank",children:t})})]})},Url=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(LinkInput,{ooui:n,valueValidator:o=>o?isURL(o):!1})})};var isEmail$1={exports:{}},isByteLength={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=a;var t=o(assertString.exports);function o(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(c){return typeof c}:r=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},r(s)}function a(s,l){(0,t.default)(s);var c,u;r(l)==="object"?(c=l.min||0,u=l.max):(c=arguments[1],u=arguments[2]);var d=encodeURI(s).split(/%..|./).length-1;return d>=c&&(typeof u>"u"||d<=u)}e.exports=n.default,e.exports.default=n.default})(isByteLength,isByteLength.exports),function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=I;var t=l(assertString.exports),o=l(merge.exports),r=l(isByteLength.exports),a=l(isFQDN.exports),s=l(isIP.exports);function l(g){return g&&g.__esModule?g:{default:g}}var c={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,v=254;function C(g){var y=g.replace(/^"(.+)"$/,"$1");if(!y.trim())return!1;var x=/[\.";<>]/.test(y);if(x){if(y===g)return!1;var w=y.split('"').length===y.split('\\"').length;if(!w)return!1}return!0}function I(g,y){if((0,t.default)(g),y=(0,o.default)(y,c),y.require_display_name||y.allow_display_name){var x=g.match(u);if(x){var w=x[1];if(g=g.replace(w,"").replace(/(^<|>$)/g,""),w.endsWith(" ")&&(w=w.substr(0,w.length-1)),!C(w))return!1}else if(y.require_display_name)return!1}if(!y.ignore_max_length&&g.length>v)return!1;var O=g.split("@"),F=O.pop(),b=F.toLowerCase();if(y.host_blacklist.includes(b))return!1;var _=O.join("@");if(y.domain_specific_validation&&(b==="gmail.com"||b==="googlemail.com")){_=_.toLowerCase();var T=_.split("+")[0];if(!(0,r.default)(T.replace(/\./g,""),{min:6,max:30}))return!1;for(var k=T.split("."),N=0;N<k.length;N++)if(!f.test(k[N]))return!1}if(y.ignore_max_length===!1&&(!(0,r.default)(_,{max:64})||!(0,r.default)(F,{max:254})))return!1;if(!(0,a.default)(F,{require_tld:y.require_tld})){if(!y.allow_ip_domain)return!1;if(!(0,s.default)(F)){if(!F.startsWith("[")||!F.endsWith("]"))return!1;var D=F.substr(1,F.length-2);if(D.length===0||!(0,s.default)(D))return!1}}if(_[0]==='"')return _=_.slice(1,_.length-1),y.allow_utf8_local_part?h.test(_):m.test(_);for(var P=y.allow_utf8_local_part?p:d,j=_.split("."),$=0;$<j.length;$++)if(!P.test(j[$]))return!1;return!(y.blacklisted_chars&&_.search(new RegExp("[".concat(y.blacklisted_chars,"]+"),"g"))!==-1)}e.exports=n.default,e.exports.default=n.default}(isEmail$1,isEmail$1.exports);const isEmail=getDefaultExportFromCjs(isEmail$1.exports),Email=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,...e,children:jsxRuntime.jsx(LinkInput,{ooui:n,linkPrefix:"mailto:",valueValidator:o=>o?isEmail(o):!1})})},{Title:Title$1,Text:Text$1}=antd.Typography;function TitleHeader(e){const{children:n}=e,{title:t,currentView:o,currentId:r,currentItemIndex:a,results:s,totalItems:l,selectedRowItems:c}=React.useContext(ActionViewContext),{t:u}=React.useContext(LocaleContext);function d(){if((o==null?void 0:o.type)==="form")return r?l===0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u("editingDocument")," (id: ",jsxRuntime.jsx(Text$1,{copyable:!0,children:r}),")"]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u("register")," ",a===void 0?1:a+1," /"," ",s.length," ",u("of")," ",l," - ",u("editingDocument")," (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:r}),")"]}):"";if((o==null?void 0:o.type)==="tree"&&c){if(c.length===1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["1 ",u("selectedRegisters")," - (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:c[0].id}),")"]});if(c.length>1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c.length," ",u("selectedRegisters"),jsxRuntime.jsx(Text$1,{copyable:{text:c.map(f=>f.id).join(", ")}})]})}return null}return jsxRuntime.jsxs("div",{style:{position:"sticky",top:80,zIndex:3},children:[jsxRuntime.jsxs(antd.Row,{className:"bg-blueGray-100 shadow-md rounded",style:{padding:"1em"},align:"middle",children:[jsxRuntime.jsxs(antd.Col,{flex:2,children:[jsxRuntime.jsx(Title$1,{level:3,style:{marginBottom:0},children:t}),d()]}),jsxRuntime.jsx(antd.Col,{flex:3,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:n})})]}),jsxRuntime.jsx("div",{className:"pb-5"})]})}function ButtonWithBadge(e){const{badgeNumber:n=0,...t}=e;return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[n>0&&jsxRuntime.jsx("div",{style:{position:"absolute",left:-10,top:-10,zIndex:2},children:jsxRuntime.jsx("span",{style:{display:"inline-block",minWidth:"22px",padding:"2px",borderRadius:"50%",fontSize:"12px",textAlign:"center",background:"#1890FF",color:"#fefefe"},children:n})}),jsxRuntime.jsx(ButtonWithTooltip,{...t,style:{width:46,zIndex:0}})]})}function SearchBar(e){const{onSearch:n,disabled:t=!1,searchText:o}=e,{t:r}=React.useContext(LocaleContext),[a]=antd.Form.useForm(),[s,l]=React.useState(!1);function c(d){n(d.search)}React.useEffect(()=>{a.setFieldsValue({search:o})},[o]);function u(){l(!1),a.setFieldsValue({search:void 0}),n(void 0)}return jsxRuntime.jsx(antd.Form,{form:a,onFinish:c,autoComplete:"off",children:jsxRuntime.jsxs(antd.Row,{align:"middle",justify:"end",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Form.Item,{name:"search",noStyle:!0,children:jsxRuntime.jsx(antd.Input,{autoFocus:!0,disabled:t,onChange:d=>{l(d.target.value.length>0)},suffix:(s||o&&o.length>0)&&jsxRuntime.jsx(antd.Tooltip,{title:r("clear"),children:jsxRuntime.jsx(Icon.CloseCircleFilled,{style:{color:"rgba(0,0,0,.45)"},onClick:u})})})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{htmlType:"submit",disabled:t,children:r("search")})})]})})}function TreeActionBar(e){const{availableViews:n,currentView:t,setCurrentView:o,selectedRowItems:r,setRemovingItem:a,removingItem:s,duplicatingItem:l,setDuplicatingItem:c,currentModel:u,searchTreeRef:d,setCurrentId:f,setCurrentItemIndex:m,toolbar:p,searchParams:h,searchVisible:v,setSearchVisible:C,setSearchTreeNameSearch:I,searchTreeNameSearch:g,treeIsLoading:y}=React.useContext(ActionViewContext),{parentContext:x={},treeExpandable:w}=e,{t:O,lang:F}=React.useContext(LocaleContext),b=React.useContext(ContentRootContext),{processAction:_}=b||{};function T(){showDialog$9({confirmMessage:O("confirmRemove"),lang:F,onOk:()=>{k()}})}async function k(){var P;try{a==null||a(!0),await ConnectionProvider.getHandler().delete({model:u,ids:r.map(j=>j.id)}),f==null||f(void 0),m==null||m(void 0),(P=d==null?void 0:d.current)==null||P.refreshResults()}catch(j){showDialog$8(j)}finally{a==null||a(!1)}}async function N(){var P;try{c==null||c(!0);const j=r[0].id;await ConnectionProvider.getHandler().duplicate({id:j,model:u,context:{...x}})&&((P=d==null?void 0:d.current)==null||P.refreshResults())}catch(j){showDialog$8(j)}finally{c==null||c(!1)}}function D(P){_==null||_({actionData:P,values:{active_id:r==null?void 0:r.map(j=>j.id)[0],active_ids:r==null?void 0:r.map(j=>j.id)},fields:{},context:{...x,active_id:r==null?void 0:r.map(j=>j.id)[0],active_ids:r==null?void 0:r.map(j=>j.id)},onRefreshParentValues:()=>{var j;(j=d==null?void 0:d.current)==null||j.refreshResults()}})}return t?jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[w?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchBar,{disabled:l||s||y,searchText:g,onSearch:P=>{P&&P.trim().length>0?I==null||I(P):I==null||I(void 0)}}),separator$1(),jsxRuntime.jsx(NewButton,{disabled:y}),separator$1(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:O("duplicate"),disabled:!r||(r==null?void 0:r.length)!==1||l||y,loading:l,onClick:N}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:O("delete"),disabled:!(r&&(r==null?void 0:r.length)>0)||y,loading:s,onClick:T}),separator$1()]}),!w&&jsxRuntime.jsx(ButtonWithBadge,{icon:jsxRuntime.jsx(Icon.FilterOutlined,{style:{color:v?"white":void 0}}),tooltip:O("advanced_search"),type:v?"primary":"default",onClick:()=>{C==null||C(!v)},disabled:l||s||y,badgeNumber:h==null?void 0:h.length}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:O("showLogs"),disabled:!(r&&(r==null?void 0:r.length)>0)||y,loading:!1,onClick:()=>{showLogInfo(u,r[0].id,O)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:O("refresh"),disabled:l||s||y,loading:!1,onClick:()=>{var P;(P=d==null?void 0:d.current)==null||P.refreshResults()}}),!w&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[separator$1(),jsxRuntime.jsx(ChangeViewButton,{currentView:t,availableViews:n.filter(P=>P.type==="tree"||P.type==="form"),onChangeView:o,disabled:y})]}),separator$1(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:!(r&&(r==null?void 0:r.length)>0)||y,tooltip:O("actions"),items:p==null?void 0:p.action,onItemClick:P=>{!P||D(P)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:!(r&&(r==null?void 0:r.length)>0)||y,tooltip:O("reports"),items:p==null?void 0:p.print,onItemClick:P=>{!P||D({...P,datas:{...P.datas||{},ids:r.map(j=>j.id)}})}})]}):null}function separator$1(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const GoToResourceModal=e=>{const{visible:n,onIdSubmitted:t,onCancel:o,isSearching:r}=e,{t:a}=React.useContext(LocaleContext);function s(l){t(l.id)}return jsxRuntime.jsx(antd.Modal,{title:a("goToResourceId"),centered:!0,visible:n,footer:null,destroyOnClose:!0,onCancel:o,maskClosable:!1,children:jsxRuntime.jsxs(antd.Form,{layout:"vertical",onFinish:s,autoComplete:"off",children:[jsxRuntime.jsx(antd.Form.Item,{name:"id",label:a("searchId"),rules:[{required:!0,type:"number"}],children:jsxRuntime.jsx(antd.InputNumber,{style:{width:"100%"},autoFocus:!0})}),jsxRuntime.jsx(antd.Row,{align:"middle",justify:"end",children:jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),htmlType:"button",onClick:o,disabled:r,children:a("cancel")}),jsxRuntime.jsx(antd.Button,{loading:r,style:{marginLeft:15},icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),htmlType:"submit",type:"primary",disabled:r,children:a("ok")})]})})})]})})},DashboardActionContext=React__default.default.createContext(null),DashboardActionProvider=e=>{const[n,t]=React.useState(!1),[o,r]=React.useState(!1),{children:a,dashboardRef:s,openAction:l}=e;return jsxRuntime.jsx(DashboardActionContext.Provider,{value:{isLoading:n,setIsLoading:t,dashboardRef:s,openAction:l,moveItemsEnabled:o,setMoveItemsEnabled:r},children:a})};function DashboardActionBar(){const{isLoading:e,dashboardRef:n,moveItemsEnabled:t,setMoveItemsEnabled:o}=React.useContext(DashboardActionContext),{t:r}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.BorderOuterOutlined,{style:{color:t?"white":void 0}}),type:t?"primary":"default",tooltip:r("moveDashboard"),disabled:e,loading:!1,onClick:()=>{o(!t)}}),separator(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SettingOutlined,{}),tooltip:r("configDashboard"),disabled:e,loading:!1,onClick:()=>{n==null||n.current.configDashboard()}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:r("refresh"),disabled:e,loading:!1,onClick:()=>{n==null||n.current.refresh()}})]})}function separator(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}function ActionView(e,n){const{domain:t,model:o,context:r,views:a,title:s,setCanWeClose:l,tabKey:c,initialView:u,formDefaultValues:d,formForcedValues:f={},res_id:m=!1,action_id:p,action_type:h,treeExpandable:v=!1,limit:C}=e,[I,g]=React.useState(),[y,x]=React.useState([]),[w,O]=React.useState(),[F,b]=React.useState(),[_,T]=React.useState(),[k,N]=React.useState(!0),D=m||void 0,[P,j]=React.useState(D),[$,q]=React.useState([]),[B,H]=React.useState(),[G,Y]=React.useState([]),[W,Z]=React.useState(),[L,V]=React.useState(),[M,A]=React.useState(0),[U,K]=React.useState(!1),[Q,E]=React.useState(!1),[S,z]=React.useState(),{t:X}=React.useContext(LocaleContext),ne=React.useRef(),ee=React.useRef(),re=React.useRef(),ae=React.useContext(TabManagerContext),{openShortcut:ie,setCurrentView:ce,setCurrentId:pe,tabs:ge,activeKey:Re,openAction:Ie}=ae||{};reactHotkeysHook.useHotkeys("ctrl+g,command+g",se=>{se.preventDefault(),Ee()},[Re,ge,I,B,G]);function Fe(se){j(se),pe==null||pe(se)}function ve(se){g(se),ce==null||ce(se)}React.useImperativeHandle(n,()=>({canWeClose:xe}));const Se=async()=>{N(!0);const se=[];for(const me of a){const[ye,be]=me;try{if(be==="dashboard"){const Pe=a.find(De=>{const[,Me]=De;return Me==="form"});let ke;Pe&&(ke={action_id:p,action_type:h,name:s,res_id:r.active_id,res_model:o,view_id:Pe[0],view_type:Pe[1]}),T({id:r.active_id,model:o,context:r,configAction:ke}),se.push({id:ye,type:be})}const Te=await ConnectionProvider.getHandler().getView({model:o,type:be,id:ye,context:r});be==="tree"?O({...Te,isExpandable:v}):be==="form"&&(b(Te),Z(Te==null?void 0:Te.toolbar)),se.push({id:ye,type:be})}catch(Te){console.error(`${o} - ${be}\xA0- ${JSON.stringify(Te,null,2)}`)}}!u&&se.find(me=>me.type==="tree")?ve(se.find(me=>me.type==="tree")):ve(u||se.find(me=>me.type==="form")),x(se),N(!1)};l({tabKey:c,canWeClose:xe}),React.useEffect(()=>{ve(u||y.find(se=>se.type==="tree")),m?pe==null||pe(D):(Fe(void 0),H(void 0)),Se()},[o,a,m]),React.useEffect(()=>{Re===c&&(pe==null||pe(P),ce==null||ce(I))},[ge,Re]);async function xe(){return I.type==="form"?await ne.current.cancelUnsavedChanges():!0}async function Ee(){Re===c&&(I.type==="form"&&!await ne.current.cancelUnsavedChanges()||K(!0))}async function _e(se){var Te;E(!0);const me=G.findIndex(Pe=>Pe.id===se);let ye;if(me===-1){try{ye=(Te=await ConnectionProvider.getHandler().readObjects({model:o,ids:[se],context:r}))==null?void 0:Te[0]}catch{}if(!ye){E(!1),K(!1),showDialog$7(X("idNotFound"));return}}else ye=G[me];E(!1),K(!1);const be=a.find(Pe=>Pe[1]==="form");Ie({domain:[],context:r,model:o,views:a,title:s,target:"current",initialView:{id:be[0],type:"form"},action_id:p,action_type:h,res_id:se})}function oe(){return k?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Form$1,{rootForm:!0,visible:I.type==="form",ref:ne,model:o,defaultValues:d,forcedValues:f,formView:F,actionDomain:t,id:P,parentContext:r,onSubmitSucceed:(se,me)=>{G.findIndex(be=>be.id===se)===-1&&(G.push(me),Y(G),H(G.length-1))}}),jsxRuntime.jsx(SearchTree$1,{visible:I.type==="tree",ref:ee,rootTree:!0,model:o,limit:C,parentContext:r,nameSearch:S,formView:F,treeView:w,domain:t,onRowClicked:se=>{const{id:me}=se;Fe(me);const ye=G.findIndex(be=>be.id===me);H(ye),ve(y.find(be=>be.type==="form"))}})]})}function le(){P===void 0&&I.type==="form"?ne.current.clearAndReload():(Fe(void 0),ve(y.find(se=>se.type==="form")))}if(!I)return null;function he(){return I.type==="dashboard"?_?jsxRuntime.jsxs(DashboardActionProvider,{dashboardRef:re,openAction:se=>{ie(se)},children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(DashboardActionBar,{})}),jsxRuntime.jsx(Dashboard$1,{ref:re,model:_.model,id:_.id,context:_==null?void 0:_.context,configAction:_==null?void 0:_.configAction})]}):null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{children:I.type==="form"?jsxRuntime.jsx(FormActionBar,{}):jsxRuntime.jsx(TreeActionBar,{parentContext:r,treeExpandable:(w==null?void 0:w.isExpandable)||!1})}),oe(),jsxRuntime.jsx(GoToResourceModal,{visible:U,onIdSubmitted:_e,isSearching:Q,onCancel:()=>{K(!1)}})]})}return jsxRuntime.jsx(ActionViewProvider,{title:s,currentView:I,setCurrentView:ve,availableViews:y,formRef:ne,searchTreeRef:ee,onNewClicked:le,currentId:P,setCurrentId:Fe,setCurrentItemIndex:H,currentItemIndex:B,results:G,setResults:Y,currentModel:o,toolbar:W,setToolbar:Z,sorter:L,setSorter:V,totalItems:M,setTotalItems:A,selectedRowItems:$,setSelectedRowItems:q,setSearchTreeNameSearch:z,searchTreeNameSearch:S,goToResourceId:_e,children:he()})}const ActionView$1=React.forwardRef(ActionView);var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return typeof e=="string"&&REGEX.test(e)}for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(byteToHex[e[n+0]]+byteToHex[e[n+1]]+byteToHex[e[n+2]]+byteToHex[e[n+3]]+"-"+byteToHex[e[n+4]]+byteToHex[e[n+5]]+"-"+byteToHex[e[n+6]]+byteToHex[e[n+7]]+"-"+byteToHex[e[n+8]]+byteToHex[e[n+9]]+"-"+byteToHex[e[n+10]]+byteToHex[e[n+11]]+byteToHex[e[n+12]]+byteToHex[e[n+13]]+byteToHex[e[n+14]]+byteToHex[e[n+15]]).toLowerCase();if(!validate(t))throw TypeError("Stringified UUID is invalid");return t}function v4(e,n,t){e=e||{};var o=e.random||(e.rng||rng)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){t=t||0;for(var r=0;r<16;++r)n[t+r]=o[r];return n}return stringify(o)}async function fetchAction({actionId:e,rootContext:n={},globalValues:t={}}){const o="ir.actions.act_window",r=`${o},${e}`,a=await ConnectionProvider.getHandler().getActionData({action:r,context:n}),s=ooui.parseContext({context:a.context,values:t,fields:{}}),l=a.domain?await ConnectionProvider.getHandler().evalDomain({domain:a.domain,values:t,context:{...n,...s}}):[],{res_model:c,views:u,name:d,limit:f,view_type:m}=a,p=m==="tree",h=[];for(const g of u){const[y,x]=g;if(y)h.push(g);else{const{view_id:w}=await ConnectionProvider.getHandler().getView({model:c,type:x,id:y,context:{...n,...s}});h.push([w,x])}}const[v,C]=h[0],I={id:v,type:C};return{title:d,actionId:e,actionType:o,key:v4(),views:u,model:c,context:{...n,...s},domain:l,initialView:I,limit:f,treeExpandable:p}}const styles$1="",styles="",ResponsiveReactGridLayout=reactGridLayout.WidthProvider(reactGridLayout.Responsive),DashboardGrid=e=>{const{children:n=[],onPositionItemsChanged:t}=e,o=React__default.default.Children.map(n,r=>{const{parms:a,id:s}=r.props;return jsxRuntime.jsx("div",{"data-grid":a,children:r},s)});return jsxRuntime.jsx(ResponsiveReactGridLayout,{className:"layout",cols:{lg:12,md:10,sm:6,xs:4,xxs:2},draggableHandle:".draggable-head",rowHeight:30,onLayoutChange:r=>{t==null||t(r.map(a=>({id:parseInt(a.i.replace(".$",""),10),x:a.x,y:a.y,w:a.w,h:a.h})))},children:o})},{Text}=antd.Typography,DashboardGridItem=e=>{const{id:n,title:t,children:o,action:r,openAction:a}=e;return jsxRuntime.jsxs("div",{className:"shadow-md rounded",style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid #eee",backgroundColor:"white"},children:[jsxRuntime.jsxs(antd.Row,{className:"bg-blueGray-100",align:"middle",style:{borderBottom:"1px solid #ddd"},wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",className:"draggable-head",style:{fontWeight:"bold",padding:"0.5rem",cursor:"grab",overflow:"hidden"},children:jsxRuntime.jsx(Text,{ellipsis:!0,children:t})}),r&&jsxRuntime.jsx(antd.Col,{flex:"25px",style:{padding:"0.5rem"},children:jsxRuntime.jsx(antd.Row,{justify:"end",align:"middle",children:jsxRuntime.jsx(Icon.ExportOutlined,{style:{cursor:"pointer"},onClick:()=>{a==null||a(r)}})})})]}),o]})},DEFAULT_SEARCH_LIMIT=80;function DashboardTree(e){const{action:n,model:t,view_id:o,onRowClicked:r,domain:a=[],visible:s=!0,parentContext:l={}}=e,[c,u]=React.useState(!1),[d,f]=React.useState(!1),[m,p]=React.useState(),[h,v]=React.useState(),[C,I]=React.useState(),[g,y]=React.useState(1),[x,w]=React.useState(0),O=React.useRef(DEFAULT_SEARCH_LIMIT),F=React.useRef([]),[b,_]=React.useState(0),[T,k]=React.useState([]),[N,D]=React.useState(void 0),[P,j]=React.useState(),[$,q]=React.useState(),[B,H]=React.useState(),[G,Y]=React.useState(!1),W=React.useRef([]),Z=z=>{Y(!0),y(z),w((z-1)*O.current)},L=z=>{const X={};return z.forEach(ne=>{Array.isArray(ne)&&ne[0]&&(X[ne[0]]=!0)}),Object.keys(X)},V=(z,X)=>{const ne=z,ee=L(z);return X.forEach(re=>{Array.isArray(re)&&re[0]&&(ee.includes(re[0])||ne.push(re))}),ne},M=async()=>{const z=W.current.length>0?W.current:a,X=V(F.current,z),{colors:ne}=getTree(h),{totalItems:ee,results:re,attrsEvaluated:ae}=await ConnectionProvider.getHandler().searchForTree({params:X,limit:O.current,offset:x,model:m,fields:h.fields,context:l,attrs:ne&&{colors:ne}});_(ee),D(getColorMap(ae));const ie=sortResults({resultsToSort:re,sorter:P,fields:{...h.fields,...C.fields}});k(ie)},A=async()=>{try{Y(!0),await M()}catch(z){q(JSON.stringify(z))}finally{Y(!1)}};React.useEffect(()=>{!d||s&&A()},[g,x,d,s]);const U=async z=>{f(!1),u(!0),H(void 0);try{z==="action"?await K():await Q(),f(!0)}catch(X){H(X)}finally{u(!1)}},K=async()=>{const z=await ConnectionProvider.getHandler().getViewsForAction({action:n,context:l});W.current=z.domain,I(z.views.get("form")),v(z.views.get("tree")),p(z.model),O.current=z.limit},Q=async()=>{p(t);const z=await ConnectionProvider.getHandler().getView({model:t,type:"form",context:l});I(z);const X=await ConnectionProvider.getHandler().getView({model:t,type:"tree",id:o,context:l});v(X)};React.useEffect(()=>{n?U("action"):t&&U("model")},[n,t]);const E=z=>{const{id:X}=z;r({id:X,model:m,treeView:h})},S=()=>!h||!C?null:jsxRuntime.jsxs("div",{style:{overflowY:"scroll"},children:[$&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:$,type:"error",banner:!0}),jsxRuntime.jsx(Tree,{showPagination:!1,total:b,limit:O.current,page:g,treeView:h,results:T,onRequestPageChange:Z,loading:G,onRowClicked:E,colorsForResults:N,sorter:P,onChangeSort:z=>{j==null||j(z);const X=sortResults({resultsToSort:T,sorter:z,fields:{...h.fields,...C.fields}});k(X)}})]});return B?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:B,type:"error",banner:!0}):c?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):S()}const DashboardForm=e=>{const{model:n}=e,[t,o]=React.useState();React.useEffect(()=>{r()},[n]);async function r(){const a=await ConnectionProvider.getHandler().search({params:[],model:n,limit:1});a.length>0&&o(a[0].id)}return jsxRuntime.jsx("div",{style:{padding:"0.5rem",overflowY:"scroll"},children:jsxRuntime.jsx(Form$1,{...e,model:n,id:t,readOnly:!0})})},itemsField="line_ids";function Dashboard(e,n){const{model:t,context:o={},id:r,configAction:a}=e,[s,l]=React.useState([]),[c,u]=React.useState(!1),[d,f]=React.useState(),{setIsLoading:m,openAction:p,moveItemsEnabled:h}=React.useContext(DashboardActionContext),v=React.useRef(),C=React.useRef();React.useEffect(()=>{I()},[t,r,o]),React.useImperativeHandle(n,()=>({refresh:()=>{I()},configDashboard:F}));async function I(){u(!0),m(!0),f(void 0);try{const b=await g(),_=await x(b),T=b.fields[itemsField].relation,k=_[itemsField].items;C.current=b.fields;const N=await y({items:k,model:T,context:o}),D=await w(N);l(D),u(!1),m(!1)}catch(b){f(JSON.stringify(b))}}async function g(){return await ConnectionProvider.getHandler().getView({model:t,type:"form",context:o})}async function y({items:b,model:_,context:T}){return v.current=(await ConnectionProvider.getHandler().getView({model:_,type:"form",context:T})).fields,await readObjectValues({treeFields:v.current,formFields:v.current,model:_,items:b,context:T})}async function x(b){return(await ConnectionProvider.getHandler().readObjects({model:t,ids:[r],fields:b.fields,context:o}))[0]}async function w(b){const _=[];for(const T of b){const{values:k}=T;if(k.action_id&&k.action_id.length>0){const N=parseInt(k.action_id[0],10),D=await fetchAction({actionId:N,rootContext:o});_.push({...T,actionData:D})}}return _}async function O(b){if(!h)return;const _=b.filter(D=>{const P=s.find($=>$.id===D.id);if(!P)return!1;if(!P.position)return!0;const j={...JSON.parse(P.position.replace(/'/g,'"')),id:P.id};return JSON.stringify(D)!==JSON.stringify(j)});if(_.length===0)return;const k=s.filter(D=>_.map(P=>P.id).includes(D.id)).map(D=>{const P={..._.find(j=>j.id===D.id)};return delete P.id,{...D},{...D,operation:"pendingUpdate",values:{...D.values,position:JSON.stringify(P).replace(/"/g,"'")}}}),N={fields:v.current,items:k};await ConnectionProvider.getHandler().update({model:t,id:r,values:{[itemsField]:N},fields:C.current,context:o})}async function F(){p(a)}return d?jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:d,type:"error",banner:!0}):c?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(DashboardGrid,{onPositionItemsChanged:O,children:s.map((b,_)=>{const{actionData:T,values:k}=b,{position:N,id:D}=k,{actionId:P,actionType:j,key:$,title:q,views:B,model:H,context:G,domain:Y,initialView:W,limit:Z}=T;let L={};try{L=JSON.parse(N.replace(/'/g,'"'))}catch{L={x:_*2,y:0,w:2,h:3}}let V=null;(W==null?void 0:W.type)==="graph"?V=jsxRuntime.jsx(Graph,{view_id:B.filter(U=>U[1]==="graph")[0][0],model:H,context:G,domain:Y,limit:Z}):(W==null?void 0:W.type)==="form"?V=jsxRuntime.jsx(DashboardForm,{model:H,actionDomain:Y}):(W==null?void 0:W.type)==="tree"?V=jsxRuntime.jsx(DashboardTree,{model:H,domain:Y,view_id:B.filter(U=>U[1]==="tree")[0][0],onRowClicked:U=>{const K=B.find(Q=>{const[,E]=Q;return E==="form"});if(K){const[Q,E]=K,{actionId:S,actionType:z,title:X,model:ne}=T,ee={action_id:S,action_type:z,name:X,res_id:U.id,res_model:ne,view_id:Q,view_type:E};p(ee)}}}):W!==void 0&&(V=jsxRuntime.jsx(ActionView$1,{action_id:P,action_type:j,tabKey:$,title:q,views:B,model:H,context:G,domain:Y,setCanWeClose:()=>{},initialView:W}));let M;const A=B.find(U=>{const[,K]=U;return K==="tree"});if(A){const[U,K]=A,{actionId:Q,actionType:E,title:S,model:z}=T;M={action_id:Q,action_type:E,name:S,res_id:!1,res_model:z,view_id:U,view_type:K}}return jsxRuntime.jsx(DashboardGridItem,{id:D,title:q,parms:L,action:M,openAction:p,children:V},D)})})}const Dashboard$1=React.forwardRef(Dashboard),MultiCheckbox=e=>{const{ooui:n}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(MultiCheckboxInput,{ooui:n})})},MultiCheckboxInput=e=>{const{value:n,ooui:t,onChange:o}=e,{items:r=[]}=n||{},a=r.filter(b=>b.operation!=="pendingRemove").map(b=>b.id),[s,l]=React.useState([]),[c,u]=React.useState(),[d,f]=React.useState(!1),{relation:m,context:p,readOnly:h,field:v,columns:C}=t,I=React.useContext(FormContext$1),{getContext:g}=I||{};useDeepCompareEffect__default.default(()=>{x()},[r]);const y=b=>{o==null||o({items:b})};async function x(){f(!0);let b=[];if(t.domain){const _=await ConnectionProvider.getHandler().evalDomain({domain:t.domain,values:transformPlainMany2Ones({fields:I==null?void 0:I.getFields(),values:I.getPlainValues()}),context:I.getContext()});b=[...b,..._]}try{const T=(await ConnectionProvider.getHandler().search({model:m,params:b,fields:[v],context:{...g==null?void 0:g(),...p}})).map(k=>{const N=k[v];let D=N;return Array.isArray(N)&&(D=N[1]),{label:D,value:k.id}});l(T)}catch(_){u(_)}finally{f(!1)}if(c)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:c,type:"error",banner:!0})}const w=()=>{F(s.map(b=>b.value))},O=()=>{F([])},F=b=>{const _=r.map(k=>b.includes(k.id)?k.operation=="pendingRemove"?{...k,operation:"original"}:k:{id:k.id,operation:"pendingRemove"}),T=_.map(k=>k.id);b.filter(k=>!T.includes(k)).map(k=>{_.push({id:k,operation:"pendingLink"})}),y(_)};return d&&s.length===0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:"flex flex-row",children:[jsxRuntime.jsx(antd.Checkbox.Group,{value:s.length?a:[],disabled:h,onChange:F,style:{width:"100%"},children:jsxRuntime.jsx(antd.Row,{children:s.map(b=>jsxRuntime.jsx(antd.Col,{span:Math.floor(24/C),children:jsxRuntime.jsx(antd.Checkbox,{value:b.value,children:b.label})}))})}),!h&&jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{onClick:w,disabled:a.length==s.length,children:"Check all"}),jsxRuntime.jsx(antd.Button,{onClick:O,disabled:a.length===0,children:"Uncheck all"})]})]})})},Radio=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(SelectionInput,{...e})})},SelectionInput=e=>{const{ooui:n,onChange:t,value:o}=e,{selectionValues:r,readOnly:a,direction:s}=n,l=Array.from(r.entries()),c=l&&l.length&&l.map(u=>{const[d,f]=u;return jsxRuntime.jsx(antd.Radio,{value:d,children:f},d)});return jsxRuntime.jsx(antd.Radio.Group,{disabled:a,onChange:t,value:o,children:jsxRuntime.jsx(antd.Space,{direction:s,children:c})})},Switch=e=>{const{ooui:n}=e,{id:t,readOnly:o,required:r}=n;return jsxRuntime.jsx(Field$1,{...e,valuePropName:"checked",children:jsxRuntime.jsx(SwitchInput,{id:t,readOnly:o,required:r})})},SwitchInput=e=>{const{required:n,readOnly:t,...o}=e;return jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Switch,{disabled:t,...o})})},Steps=e=>{const{ooui:n}=e,{required:t}=n;return jsxRuntime.jsx(Field$1,{required:t,type:"any",...e,children:jsxRuntime.jsx(StepsInput,{...e})})},StepsInput=e=>{const{ooui:n,value:t}=e,{selectionValues:o,errorField:r}=n,a=React.useContext(FormContext$1),s=Array.from(o.entries()),l=s.map(d=>d[0]).indexOf(t);let c="process",u="";return r&&(u=a.getFieldValue(r),u&&(c="error")),jsxRuntime.jsx(antd.Steps,{current:l,status:c,children:s.map((d,f)=>jsxRuntime.jsx(antd.Steps.Step,{title:d[1],description:f===l&&c==="error"?u:null}))})},CodeEditor=e=>{const{ooui:n}=e,{lang:t,height:o}=n,r=React.useContext(FormContext$1),{elementHasLostFocus:a}=r||{},s=l=>{l.onDidBlurEditorWidget(a)};return jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(Editor__default.default,{defaultLanguage:t||"",height:o||300,onMount:s})})},{Content}=antd.Layout,{Title}=antd.Typography;function Welcome(){const{t:e}=React.useContext(LocaleContext);return jsxRuntime.jsx(Content,{className:"m-5 select-none",children:jsxRuntime.jsx(Title,{level:5,children:e("welcome")})})}function RootView(e,n){const{children:t,globalValues:o={},rootContext:r={},lang:a}=e,[s,l]=React.useState("welcome"),[c,u]=React.useState([{title:tForLang("welcome",a),key:"welcome",closable:!0,content:jsxRuntime.jsx(Welcome,{})}]),d=React.useRef(new Map),f=React.useRef();React.useImperativeHandle(n,()=>({retrieveAndOpenAction:h,openShortcut:I}));function m(x){if(x===s){const w=c.findIndex(O=>O.key===x);c[w-1]&&l(c[w-1].key),c[w+1]&&l(c[w+1].key)}u(c.filter(w=>w.key!==x)),d.current.delete(x)}function p({tabKey:x,canWeClose:w}){d.current.set(x,w)}async function h({action:x,values:w,forced_values:O,initialViewType:F,res_id:b,domain:_=[]}){const T=await ConnectionProvider.getHandler().getActionData({action:x,context:r});if(T.type==="ir.actions.wizard"){showDialog$8("Action type not supported");return}const[k,N]=x.split(","),D=parseInt(N),P=ooui.parseContext({context:T.context,values:o,fields:{}}),j=T.domain?await ConnectionProvider.getHandler().evalDomain({domain:T.domain,values:o,context:{...r,...P}}):[],{res_model:$,views:q,name:B,target:H,view_type:G,limit:Y}=T,W=G==="tree",Z=[];for(const V of q){const[M,A]=V;if(M)Z.push(V);else if(A==="dashboard")Z.push([void 0,"dashboard"]);else{const{view_id:U}=await ConnectionProvider.getHandler().getView({model:$,type:A,id:M,context:{...r,...P}});Z.push([U,A])}}let L;if(F){const[V,M]=Z.find(([A,U])=>U===F);L={id:V,type:M}}else{const[V,M]=Z[0];L={id:V,type:M}}y({domain:[...j,..._],context:{...r,...P},model:$,views:Z,title:B,target:H,initialView:L,action_type:k,action_id:D,values:w,forced_values:O,res_id:b,treeExpandable:W,limit:Y})}function v({title:x,content:w,key:O,action:F}){let b=[...c];c.length===1&&c[0].key==="welcome"&&(b=[...c.filter(_=>_.key!=="welcome")]),u([...b,{title:x,key:O,closable:!0,content:w,action:F}]),l(O)}async function C({relateData:x,fields:w,values:O,action_id:F,action_type:b}){const{res_model:_,context:T,domain:k,views:N,target:D,string:P,limit:j}=x,[$,q]=N[0],B={id:$,type:q},H=ooui.parseContext({context:T,values:{...O,...o},fields:w}),G=k?await ConnectionProvider.getHandler().evalDomain({domain:k,values:transformPlainMany2Ones({fields:w,values:{...O,...o}}),context:{...r,...H}}):[];y({model:_,target:D,views:N,context:{...r,...H},domain:G,title:P,initialView:B,action_id:F,action_type:b,limit:j})}async function I(x){const{action_id:w,action_type:O,res_id:F,view_id:b}=x,_=`${O},${w}`,T=await ConnectionProvider.getHandler().getActionData({action:_,context:r}),k=ooui.parseContext({context:T.context,values:o,fields:{}}),N=T.domain?await ConnectionProvider.getHandler().evalDomain({domain:T.domain,values:o,context:{...r,...k}}):[],{res_model:D,views:P,name:j,target:$,view_type:q,limit:B}=T,H=q==="tree",G=[];for(const L of P){const[V,M]=L;if(V)G.push(L);else if(M==="dashboard")G.push([void 0,"dashboard"]);else{const{view_id:A}=await ConnectionProvider.getHandler().getView({model:D,type:M,id:V,context:{...r,...k}});G.push([A,M])}}let Y,W;if(b==null){const L=G.find(V=>V[0]===void 0);Y=void 0,W=L[1]}else[Y,W]=G.find(L=>L[0]===void 0?!1:L[0]===b);const Z={id:Y,type:W};y({domain:N,context:{...r,...k},model:D,views:G,title:j,target:$,initialView:Z,action_id:w,action_type:O,res_id:F,treeExpandable:H,limit:B})}async function g({model:x,values:w,forced_values:O,initialViewType:F,res_id:b,domain:_}){const T=await ConnectionProvider.getHandler().getActionStringForModel(x);await h({action:T,values:w,forced_values:O,initialViewType:F,res_id:b,domain:_})}async function y({domain:x,context:w,model:O,views:F,title:b,target:_,initialView:T,action_id:k,action_type:N,res_id:D,values:P,forced_values:j,treeExpandable:$=!1,limit:q}){const B=v4();if(_!=="current"){const H=await ConnectionProvider.getHandler().getView({model:O,type:"form",id:T.type==="form"?T.id:void 0,context:{...r,...w}});f.current.openActionModal({domain:x,model:O,formView:H,context:{...r,...w},actionData:{action_id:k,action_type:N,res_id:D,view_id:H.view_id}})}else v({title:b,action:{id:k,type:N},content:jsxRuntime.jsx(ActionView$1,{action_id:k,action_type:N,tabKey:B,title:b,views:F,model:O,context:{...r,...w},domain:x,setCanWeClose:p,initialView:T,res_id:D,formDefaultValues:P,formForcedValues:j,treeExpandable:$,limit:q}),key:B})}return jsxRuntime.jsx(LocaleContextProvider,{lang:a,children:jsxRuntime.jsx(TabManagerProvider,{openShortcut:I,openAction:y,openRelate:C,openDefaultActionForModel:g,tabs:c,activeKey:s,onRemoveTab:async x=>{const w=d.current.get(x);(await(w==null?void 0:w())||s==="welcome")&&m(x)},onChangeTab:x=>{l(x)},children:jsxRuntime.jsx(ContentRootProvider$1,{ref:f,globalValues:o,children:t})})})}const RootView$1=React.forwardRef(RootView);function Tab(e){const{label:n,onClose:t,tabKey:o,isActive:r,onSelected:a}=e,s=r?"#ffffff":"#F1F5F9";return jsxRuntime.jsxs("div",{onClick:()=>{!r&&a(o)},style:{cursor:"pointer",height:40,paddingTop:7,paddingBottom:5,paddingLeft:10,paddingRight:10,backgroundColor:s,display:"inline-flex",flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",borderTopLeftRadius:8,borderTopRightRadius:8,marginLeft:2},children:[jsxRuntime.jsx("div",{style:{color:r?"#001529":"#ADB0B3",userSelect:"none",height:40,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:5,paddingRight:5,marginBottom:2},children:n}),jsxRuntime.jsx("div",{style:{paddingLeft:5,height:40,display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntime.jsx(Icon.CloseOutlined,{style:{color:r?"#001529":"#ADB0B3"},onClick:l=>{l.stopPropagation(),t(o)}})})]})}function TabSelector(){const e=React.useContext(TabManagerContext),{activeKey:n,tabs:t,onRemoveTab:o,onChangeTab:r}=e||{};return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.map(a=>jsxRuntime.jsx(Tab,{tabKey:a.key,label:a.title,onClose:o,isActive:n===a.key,onSelected:r},a.key))})}function TabContent(e){const{tab:n}=e,t=React.useContext(TabManagerContext),{activeKey:o}=t||{},r={display:"none"};return jsxRuntime.jsx("div",{style:n.key!==o?r:void 0,children:n.content})}const TabContent$1=React__default.default.memo(TabContent,()=>!0);function CurrentTabContent(){const e=React.useContext(TabManagerContext),{tabs:n}=e||{},t=(n==null?void 0:n.map(o=>jsxRuntime.jsx(TabContent$1,{tab:o},o.key)))||null;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t})}const FavouriteButton=e=>{const{onRetrieveShortcuts:n,onCheckIsFavourite:t,onAddFavourite:o,onRemoveFavourite:r}=e,[a,s]=React.useState(!1),[l,c]=React.useState(!1),[u,d]=React.useState([]),[f,m]=React.useState(!0),[p,h]=React.useState(),{t:v}=React.useContext(LocaleContext),C=React.useContext(TabManagerContext),{openShortcut:I,tabs:g,activeKey:y,currentView:x,currentId:w,openDefaultActionForModel:O}=C||{};React.useEffect(()=>{F()},[]),React.useEffect(()=>{T()},[g,y,x,w]);async function F(){try{m(!0);const j=await n();d(j)}catch(j){showDialog$8(j)}finally{m(!1)}}function b(j){const{key:$}=j,q=u.find(B=>B.id===Number($));(q==null?void 0:q.action_type)!=="ir.actions.wizard"&&(q&&I(q),c(!1))}function _(j){j&&F(),c(j)}async function T(){if(!x)return;const j=g.find(Y=>Y.key===y),{id:$,type:q}=(j==null?void 0:j.action)||{};if(!$||!q){s(!1);return}const B=x.id;let H=!1;x.type==="form"&&(H=w||!1);const G=await t({action_id:$,action_type:q,view_id:B,res_id:H});G!==!1&&h(G),s(G!==!1)}async function k(){c(!1),O==null||O({model:"ir.ui.view_sc"})}const N=jsxRuntime.jsxs(antd.Menu,{onClick:b,children:[jsxRuntime.jsxs("div",{style:{width:300,padding:5,display:"flex"},children:[jsxRuntime.jsx("div",{style:{paddingLeft:15,color:"#ccc"},children:v("favorites").toUpperCase()}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:jsxRuntime.jsx(antd.Tooltip,{title:v("edit_favorites"),children:jsxRuntime.jsx(Icon.EditOutlined,{style:{color:"#1890FF",cursor:"pointer"},onClick:k})})})]}),jsxRuntime.jsx(antd.Menu.Divider,{}),f?jsxRuntime.jsx(antd.Spin,{style:{padding:"1rem"}}):u.length>0?jsxRuntime.jsx(jsxRuntime.Fragment,{children:u.map(j=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsx(D,{title:j.name,type:j.view_type})},j.id))}):jsxRuntime.jsx("div",{style:{width:300,padding:5,paddingLeft:15},children:v("no_favorites")})]});function D({title:j,type:$}){const q=$==="tree"?jsxRuntime.jsx(Icon.TableOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{});return jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:q}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:j})]})}async function P(){if(a&&p)await r(p);else{if(!x)return;const j=g.find(G=>G.key===y),{id:$,type:q}=(j==null?void 0:j.action)||{},B=x.id;let H=!1;if(!$||!q){s(!1);return}x.type==="form"&&(H=w||!1),await o({action_id:$,action_type:q,view_id:B,res_id:H})}await F(),s(!a)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Button,{type:a?"primary":"default",icon:a?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:50},onClick:P}),jsxRuntime.jsx(antd.Dropdown,{overlay:N,onVisibleChange:_,visible:l,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:j=>j.preventDefault()})})]})};exports.ActionBar=FormActionBar,exports.Binary=Binary,exports.Boolean=Boolean$1,exports.Button=Button,exports.ButtonGroup=ButtonGroup,exports.Char=Char,exports.CodeEditor=CodeEditor,exports.ConnectionProvider=ConnectionProvider,exports.ContentRootProvider=ContentRootProvider$1,exports.CurrentTabContent=CurrentTabContent,exports.Dashboard=Dashboard$1,exports.DashboardGrid=DashboardGrid,exports.DashboardGridItem=DashboardGridItem,exports.Date=Date$1,exports.DateTime=DateTime,exports.Email=Email,exports.FavouriteButton=FavouriteButton,exports.Float=Float,exports.FloatTime=FloatTime,exports.Form=Form$1,exports.FormModal=FormModal,exports.GraphIndicator=GraphIndicator,exports.Group=Group,exports.Image=Image,exports.Integer=Integer,exports.Label=Label,exports.Many2one=Many2one,exports.MultiCheckbox=MultiCheckbox,exports.Notebook=Notebook,exports.One2many=One2many,exports.ProgressBar=ProgressBar,exports.Radio=Radio,exports.Reference=Reference,exports.RootView=RootView$1,exports.SearchFilter=SearchFilter,exports.SearchModal=SearchModal,exports.SearchTree=SearchTree$1,exports.Selection=Selection,exports.Separator=Separator,exports.Steps=Steps,exports.Switch=Switch,exports.TabSelector=TabSelector,exports.Tags=Tags,exports.Text=Text$2,exports.Tree=Tree,exports.Url=Url,exports.iconMapper=iconMapper,exports.showConfirmDialog=showDialog$9,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
130
130
  //# sourceMappingURL=react-ooui.umd.js.map