@sap/ux-specification 1.108.30 → 1.108.31

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +34 -4
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  6. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  7. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  8. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  9. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  10. package/dist/documentation/v4/v4-ListReport.html +2 -2
  11. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  12. package/dist/index-min.js +83 -83
  13. package/dist/index-min.js.map +4 -4
  14. package/dist/schemas/v4/ObjectPageConfig.json +74 -38
  15. package/dist/specification/package.json +6 -6
  16. package/dist/specification/src/sync/common/generate/objectPage.d.ts +4 -4
  17. package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
  18. package/dist/specification/src/sync/common/generate/objectPage.js +6 -6
  19. package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
  20. package/dist/specification/src/sync/common/utils.js +1 -1
  21. package/dist/specification/src/sync/common/utils.js.map +1 -1
  22. package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
  23. package/dist/specification/src/sync/v2/generate/listReport.js +26 -20
  24. package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
  25. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  26. package/dist/specification/src/sync/v2/generate/objectPage.js +8 -7
  27. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  28. package/dist/specification/src/sync/v4/application.d.ts +1 -0
  29. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  30. package/dist/specification/src/sync/v4/application.js +5 -1
  31. package/dist/specification/src/sync/v4/application.js.map +1 -1
  32. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +1 -4
  33. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
  34. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +0 -74
  35. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  36. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts +0 -1
  37. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
  38. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.js +0 -10
  39. package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
  40. package/dist/specification/src/sync/v4/export/controls/RelatedApps.d.ts +11 -0
  41. package/dist/specification/src/sync/v4/export/controls/RelatedApps.d.ts.map +1 -0
  42. package/dist/specification/src/sync/v4/export/controls/RelatedApps.js +68 -0
  43. package/dist/specification/src/sync/v4/export/controls/RelatedApps.js.map +1 -0
  44. package/dist/specification/src/sync/v4/export/controls/index.d.ts +14 -13
  45. package/dist/specification/src/sync/v4/export/controls/index.d.ts.map +1 -1
  46. package/dist/specification/src/sync/v4/export/controls/index.js +14 -13
  47. package/dist/specification/src/sync/v4/export/controls/index.js.map +1 -1
  48. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  49. package/dist/specification/src/sync/v4/export/export.js +9 -16
  50. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  51. package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
  52. package/dist/specification/src/sync/v4/export/manifest.js +0 -24
  53. package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
  54. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  55. package/dist/specification/src/sync/v4/generate/objectPage.js +50 -81
  56. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  57. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  58. package/dist/specification/src/sync/v4/import/pages/objectPage.js +1 -2
  59. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  60. package/dist/specification/src/sync/v4/utils/utils.d.ts +1 -1
  61. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  62. package/dist/specification/src/sync/v4/utils/utils.js +11 -3
  63. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  64. package/dist/types/src/common/types.d.ts +1 -0
  65. package/dist/types/src/common/types.d.ts.map +1 -1
  66. package/dist/types/src/common/types.js +1 -0
  67. package/dist/types/src/common/types.js.map +1 -1
  68. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +38 -5
  69. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
  70. package/dist/types/src/v4/controls/ObjectPageSection.d.ts +4 -8
  71. package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
  72. package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
  73. package/package.json +6 -6
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var pB=Object.create;var tl=Object.defineProperty;var uO=Object.getOwnPropertyDescriptor;var dB=Object.getOwnPropertyNames;var gB=Object.getPrototypeOf,mB=Object.prototype.hasOwnProperty;var a=(e,t)=>tl(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gs=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},tg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of dB(t))!mB.call(e,r)&&r!==n&&tl(e,r,{get:()=>t[r],enumerable:!(i=uO(t,r))||i.enumerable});return e},Ks=(e,t,n)=>(tg(e,t,"default"),n&&tg(n,t,"default")),te=(e,t,n)=>(n=e!=null?pB(gB(e)):{},tg(t||!e||!e.__esModule?tl(n,"default",{value:e,enumerable:!0}):n,e)),ng=e=>tg(tl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?uO(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&tl(t,n,r),r};var jN=ze((Vz,UN)=>{var uT=Object.defineProperty,hB=Object.getOwnPropertyDescriptor,yB=Object.getOwnPropertyNames,vB=Object.prototype.hasOwnProperty,pT=a((e,t)=>{for(var n in t)uT(e,n,{get:t[n],enumerable:!0})},"T"),TB=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of yB(t))!vB.call(e,r)&&r!==n&&uT(e,r,{get:()=>t[r],enumerable:!(i=hB(t,r))||i.enumerable});return e},"$e"),EB=a(e=>TB(uT({},"__esModule",{value:!0}),e),"Ze"),pO={};pT(pO,{ALPViewType:()=>TO,ActionTitlePrefix:()=>xB,ActionType:()=>AO,ArtifactType:()=>bO,BindingPropertyRegexAsString:()=>CB,ChangeIndicator:()=>IO,ChartColor:()=>HO,ColorPaletteDefinitionType:()=>$O,ControlType:()=>SO,CustomExtensionType:()=>KO,DATESETTINGSPATH:()=>VB,DataSourceType:()=>UO,DefinitionName:()=>LO,DirName:()=>PO,DraftDiscardEnabledSettings:()=>VO,ExportArtifacts:()=>vO,FIORI_FCL_ROOT_ID:()=>UB,FIORI_FCL_ROOT_VIEW_NAME:()=>kB,FRAGMENTNAMEPART:()=>MB,FacetBase:()=>OO,FacetTitlePrefix:()=>SB,Features:()=>XO,FileName:()=>CO,FioriElementsVersion:()=>dO,FlexChangeLayer:()=>hO,FlexibleColumnLayoutAggregations:()=>kO,FlexibleColumnLayoutType:()=>mO,GENERICAPPSETTINGS:()=>wB,LogSeverity:()=>WO,LogSeverityLabel:()=>BB,MANIFESTPATH:()=>IB,MacrosPropertyType:()=>DO,ManifestSection:()=>jO,OdataVersion:()=>gO,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>AB,PageType:()=>bB,PageTypeV2:()=>dT,PageTypeV4:()=>gT,PropertyName:()=>FO,QUICKVARPATH:()=>_B,QUICKVARPATHX:()=>DB,SAPUI5_FRAGMENT_CLASS:()=>$B,SAPUI5_VIEW_CLASS:()=>jB,SchemaKeyName:()=>_O,SchemaTag:()=>RO,SchemaType:()=>yO,SectionType:()=>EO,StatePreservationMode:()=>wO,TableColumnVerticalAlignment:()=>MO,TemplateType:()=>GO,UIVOCABULARY:()=>LB,UIVOCABULARYALPHADOT:()=>RB,UIVOCABULARYDOT:()=>FB,VOCWITHCOLONS:()=>NB,VOCWITHSLASH:()=>OB,ViewTemplateType:()=>NO,ViewTypes:()=>BO,Visualization:()=>xO,defaultExportResult:()=>PB,v2:()=>QO,v4:()=>TN});UN.exports=EB(pO);var dT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(dT||{}),gT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(gT||{}),bB={...dT,...gT},AB=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),dO=(e=>(e.v2="v2",e.v4="v4",e))(dO||{}),gO=(e=>(e.v2="v2",e.v4="v4",e))(gO||{}),mO=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(mO||{}),hO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(hO||{}),yO=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(yO||{}),vO=(e=>(e.flex="flex",e.manifest="manifest",e))(vO||{}),TO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(TO||{}),EO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(EO||{}),bO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(bO||{}),AO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(AO||{}),SO=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(SO||{}),xO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(xO||{}),PO=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(PO||{}),CO=(e=>(e.App="app.json",e))(CO||{}),SB="Facet ID: ",xB="Action ID: ",IO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(IO||{}),PB={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},OO=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(OO||{}),CB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",NO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(NO||{}),LO=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e))(LO||{}),FO=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(FO||{}),RO=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(RO||{}),_O=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(_O||{}),IB="webapp/manifest.json",OB="/@com.sap.vocabularies",NB="::@com.sap.vocabularies",LB="com.sap.vocabularies.UI.v1",FB="com.sap.vocabularies.UI.v1.",RB="@com.sap.vocabularies.UI.v1.",_B="/quickVariantSelection",DB="/quickVariantSelectionX",VB="/filterSettings/dateSettings",MB=".fragment.",DO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(DO||{}),VO=(e=>(e.restricted="restricted",e))(VO||{}),MO=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(MO||{}),wO=(e=>(e.persistence="persistence",e.discovery="discovery",e))(wO||{}),kO=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(kO||{}),UO=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(UO||{}),jO=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(jO||{}),wB="sap.ui.generic.app/settings",$O=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))($O||{}),kB="sap.fe.templates.RootContainer.view.Fcl",UB="appRootView",BO=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(BO||{}),jB="sap.ui.core.mvc.View",$B="sap.ui.core.Fragment",HO=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(HO||{}),WO=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(WO||{}),BB={error:"Error",warning:"Warning",info:"Information"},GO=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(GO||{}),KO=(e=>(e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e))(KO||{}),XO=(e=>(e.BuildingBlocks="BuildingBlocks",e))(XO||{}),QO={};pT(QO,{CardSettingsType:()=>YO,CardTemplateType:()=>zO,ChartCardType:()=>qO,ChartType:()=>gN,ContainerLayoutType:()=>vN,CreateMode:()=>yN,DateRangeType:()=>iN,DefaultContentView:()=>uN,DefaultDateRangeValueType:()=>rN,DefaultFilterMode:()=>pN,ExtensionFragmentTypes:()=>hN,FE_TEMPLATE_V2:()=>GB,FE_TEMPLATE_V2_ALP:()=>QB,FE_TEMPLATE_V2_LIST_REPORT:()=>XB,FE_TEMPLATE_V2_OBJECT_PAGE:()=>KB,FilterPathType:()=>oN,IgnoredFieldsType:()=>fN,LinkListFlavorType:()=>nN,ListFlavorType:()=>ZO,ListTypeType:()=>eN,LoadDataOnAppLaunchSettings:()=>dN,MeasureAggregateValues:()=>JO,SAPUI5_CONTROLLER_EXTENSION:()=>zB,SAPUI5_VIEW_EXTENSION:()=>qB,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>ZB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>JB,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>YB,SectionPosition:()=>mN,SortOrderType:()=>tN,Strategy:()=>lN,TableColumnExtensionTypeV2:()=>cN,TableTypeV2:()=>sN,cardTemplateSettingsMap:()=>WB,cardTemplateTypeMap:()=>HB,customColumnViewTypes:()=>aN});var qO=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(qO||{}),zO=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(zO||{}),HB={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},WB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},YO=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(YO||{}),JO=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(JO||{}),ZO=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(ZO||{}),eN=(e=>(e.extended="extended",e.condensed="condensed",e))(eN||{}),tN=(e=>(e.ascending="ascending",e.descending="descending",e))(tN||{}),nN=(e=>(e.standard="standard",e.carousel="carousel",e))(nN||{}),iN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(iN||{}),rN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(rN||{}),oN=(e=>(e.key="key",e.catgory="category",e))(oN||{}),aN=(e=>(e.XML="XML",e))(aN||{}),sN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(sN||{}),cN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(cN||{}),lN=(e=>(e.extension="extension",e))(lN||{}),fN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(fN||{}),uN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(uN||{}),pN=(e=>(e.visual="visual",e.compact="compact",e))(pN||{}),dN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(dN||{}),gN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(gN||{}),mN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(mN||{}),hN=(e=>(e.XML="XML",e))(hN||{}),yN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(yN||{}),GB="sap.suite.ui.generic.template",KB="sap.suite.ui.generic.template.ObjectPage",XB="sap.suite.ui.generic.template.ListReport",QB="sap.suite.ui.generic.template.AnalyticalListPage",qB="sap.ui.viewExtensions",zB="sap.ui.controllerExtensions",YB="sap.suite.ui.generic.template.ObjectPage.view.Details",JB="sap.suite.ui.generic.template.ListReport.view.ListReport",ZB="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",vN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(vN||{}),TN={};pT(TN,{ActionPlacement:()=>EN,Availability:()=>VN,CustomSectionViewTypesV4:()=>FN,DefaultPathType:()=>xN,FE_TEMPLATE_V4:()=>eH,FE_TEMPLATE_V4_ALP:()=>rH,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>tH,FE_TEMPLATE_V4_LIST_REPORT:()=>iH,FE_TEMPLATE_V4_OBJECT_PAGE:()=>nH,FIORI_FCL_ROUTER_CLASS:()=>aH,FilterFieldPlacement:()=>IN,HorizontalAlign:()=>MN,InitialLayoutType:()=>CN,InitialLoadType:()=>SN,LayoutType:()=>PN,Placement:()=>DN,SAPUI5_CONTROLLER_EXTENSION:()=>cH,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>sH,SAPUI5_FRAGMENT_TYPE_V4:()=>oH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>fH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>lH,SectionLayoutType:()=>NN,SectionPosition:()=>LN,SectionPositionV4:()=>_N,SelectType:()=>ON,SelectionMode:()=>bN,TableCreationModeType:()=>RN,TableTypeV4:()=>AN,VariantManagementTypeListReport:()=>kN,VariantManagementTypeObjectPage:()=>wN});var EN=(e=>(e.After="After",e.Before="Before",e))(EN||{}),bN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(bN||{}),AN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(AN||{}),SN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(SN||{}),xN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(xN||{}),PN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(PN||{}),CN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(CN||{}),IN=(e=>(e.After="After",e.Before="Before",e))(IN||{}),ON=(e=>(e.single="single",e.multi="multi",e))(ON||{}),NN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(NN||{}),LN=(e=>(e.After="After",e.Before="Before",e))(LN||{}),FN=(e=>(e.XML="XML",e))(FN||{}),RN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(RN||{}),eH="sap.fe.templates",tH="sap.fe.core.fpm",nH="sap.fe.templates.ObjectPage",iH="sap.fe.templates.ListReport",rH="sap.fe.templates.AnalyticalListPage",oH="XMLFragment",_N=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(_N||{}),aH="sap.f.routing.Router",sH="sap.f",cH="sap.ui.controllerExtensions",lH="sap.fe.templates.ObjectPage.ObjectPageController",fH="sap.fe.templates.ListReport.ListReportController",DN=(e=>(e.After="After",e.Before="Before",e))(DN||{}),VN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(VN||{}),MN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(MN||{}),wN=(e=>(e.None="None",e.Control="Control",e))(wN||{}),kN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(kN||{})});var GN=ze(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.Features=_r.CustomExtensionType=_r.TemplateType=_r.LogSeverityLabel=_r.LogSeverity=void 0;var $N;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})($N||(_r.LogSeverity=$N={}));_r.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var BN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(BN||(_r.TemplateType=BN={}));var HN;(function(e){e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection"})(HN||(_r.CustomExtensionType=HN={}));var WN;(function(e){e.BuildingBlocks="BuildingBlocks"})(WN||(_r.Features=WN={}))});var vL=ze((kz,yL)=>{var mT=Object.defineProperty,uH=Object.getOwnPropertyDescriptor,pH=Object.getOwnPropertyNames,dH=Object.prototype.hasOwnProperty,gH=a((e,t)=>{for(var n in t)mT(e,n,{get:t[n],enumerable:!0})},"h"),mH=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pH(t))!dH.call(e,r)&&r!==n&&mT(e,r,{get:()=>t[r],enumerable:!(i=uH(t,r))||i.enumerable});return e},"M"),hH=a(e=>mH(mT({},"__esModule",{value:!0}),e),"Q"),KN={};gH(KN,{CardSettingsType:()=>qN,CardTemplateType:()=>QN,ChartCardType:()=>XN,ChartType:()=>pL,ContainerLayoutType:()=>hL,CreateMode:()=>mL,DateRangeType:()=>tL,DefaultContentView:()=>lL,DefaultDateRangeValueType:()=>nL,DefaultFilterMode:()=>fL,ExtensionFragmentTypes:()=>gL,FE_TEMPLATE_V2:()=>TH,FE_TEMPLATE_V2_ALP:()=>AH,FE_TEMPLATE_V2_LIST_REPORT:()=>bH,FE_TEMPLATE_V2_OBJECT_PAGE:()=>EH,FilterPathType:()=>iL,IgnoredFieldsType:()=>cL,LinkListFlavorType:()=>eL,ListFlavorType:()=>YN,ListTypeType:()=>JN,LoadDataOnAppLaunchSettings:()=>uL,MeasureAggregateValues:()=>zN,SAPUI5_CONTROLLER_EXTENSION:()=>xH,SAPUI5_VIEW_EXTENSION:()=>SH,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>IH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>CH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>PH,SectionPosition:()=>dL,SortOrderType:()=>ZN,Strategy:()=>sL,TableColumnExtensionTypeV2:()=>aL,TableTypeV2:()=>oL,cardTemplateSettingsMap:()=>vH,cardTemplateTypeMap:()=>yH,customColumnViewTypes:()=>rL});yL.exports=hH(KN);var XN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(XN||{}),QN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(QN||{}),yH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},vH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},qN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(qN||{}),zN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(zN||{}),YN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(YN||{}),JN=(e=>(e.extended="extended",e.condensed="condensed",e))(JN||{}),ZN=(e=>(e.ascending="ascending",e.descending="descending",e))(ZN||{}),eL=(e=>(e.standard="standard",e.carousel="carousel",e))(eL||{}),tL=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(tL||{}),nL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(nL||{}),iL=(e=>(e.key="key",e.catgory="category",e))(iL||{}),rL=(e=>(e.XML="XML",e))(rL||{}),oL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(oL||{}),aL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(aL||{}),sL=(e=>(e.extension="extension",e))(sL||{}),cL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(cL||{}),lL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(lL||{}),fL=(e=>(e.visual="visual",e.compact="compact",e))(fL||{}),uL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(uL||{}),pL=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(pL||{}),dL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(dL||{}),gL=(e=>(e.XML="XML",e))(gL||{}),mL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(mL||{}),TH="sap.suite.ui.generic.template",EH="sap.suite.ui.generic.template.ObjectPage",bH="sap.suite.ui.generic.template.ListReport",AH="sap.suite.ui.generic.template.AnalyticalListPage",SH="sap.ui.viewExtensions",xH="sap.ui.controllerExtensions",PH="sap.suite.ui.generic.template.ObjectPage.view.Details",CH="sap.suite.ui.generic.template.ListReport.view.ListReport",IH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",hL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(hL||{})});var jL=ze((jz,UL)=>{var hT=Object.defineProperty,OH=Object.getOwnPropertyDescriptor,NH=Object.getOwnPropertyNames,LH=Object.prototype.hasOwnProperty,FH=a((e,t)=>{for(var n in t)hT(e,n,{get:t[n],enumerable:!0})},"w"),RH=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of NH(t))!LH.call(e,r)&&r!==n&&hT(e,r,{get:()=>t[r],enumerable:!(i=OH(t,r))||i.enumerable});return e},"R"),_H=a(e=>RH(hT({},"__esModule",{value:!0}),e),"h"),TL={};FH(TL,{ActionPlacement:()=>EL,Availability:()=>VL,CustomSectionViewTypesV4:()=>FL,DefaultPathType:()=>xL,FE_TEMPLATE_V4:()=>DH,FE_TEMPLATE_V4_ALP:()=>kH,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>VH,FE_TEMPLATE_V4_LIST_REPORT:()=>wH,FE_TEMPLATE_V4_OBJECT_PAGE:()=>MH,FIORI_FCL_ROUTER_CLASS:()=>jH,FilterFieldPlacement:()=>IL,HorizontalAlign:()=>ML,InitialLayoutType:()=>CL,InitialLoadType:()=>SL,LayoutType:()=>PL,Placement:()=>DL,SAPUI5_CONTROLLER_EXTENSION:()=>BH,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>$H,SAPUI5_FRAGMENT_TYPE_V4:()=>UH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>WH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>HH,SectionLayoutType:()=>NL,SectionPosition:()=>LL,SectionPositionV4:()=>_L,SelectType:()=>OL,SelectionMode:()=>bL,TableCreationModeType:()=>RL,TableTypeV4:()=>AL,VariantManagementTypeListReport:()=>kL,VariantManagementTypeObjectPage:()=>wL});UL.exports=_H(TL);var EL=(e=>(e.After="After",e.Before="Before",e))(EL||{}),bL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(bL||{}),AL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(AL||{}),SL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(SL||{}),xL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(xL||{}),PL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(PL||{}),CL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(CL||{}),IL=(e=>(e.After="After",e.Before="Before",e))(IL||{}),OL=(e=>(e.single="single",e.multi="multi",e))(OL||{}),NL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(NL||{}),LL=(e=>(e.After="After",e.Before="Before",e))(LL||{}),FL=(e=>(e.XML="XML",e))(FL||{}),RL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(RL||{}),DH="sap.fe.templates",VH="sap.fe.core.fpm",MH="sap.fe.templates.ObjectPage",wH="sap.fe.templates.ListReport",kH="sap.fe.templates.AnalyticalListPage",UH="XMLFragment",_L=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(_L||{}),jH="sap.f.routing.Router",$H="sap.f",BH="sap.ui.controllerExtensions",HH="sap.fe.templates.ObjectPage.ObjectPageController",WH="sap.fe.templates.ListReport.ListReportController",DL=(e=>(e.After="After",e.Before="Before",e))(DL||{}),VL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(VL||{}),ML=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(ML||{}),wL=(e=>(e.None="None",e.Control="Control",e))(wL||{}),kL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(kL||{})});var ce=ze(gi=>{"use strict";var $L=gi&&gi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),GH=gi&&gi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),BL=gi&&gi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$L(t,e,n)},HL=gi&&gi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&$L(t,e,n);return GH(t,e),t};Object.defineProperty(gi,"__esModule",{value:!0});gi.v4=gi.v2=void 0;BL(jN(),gi);BL(GN(),gi);gi.v2=HL(vL());gi.v4=HL(jL())});var _T=ze((oY,tF)=>{"use strict";var fW=a(function(t){return uW(t)&&!pW(t)},"isMergeableObject");function uW(e){return!!e&&typeof e=="object"}a(uW,"isNonNullObject");function pW(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||mW(e)}a(pW,"isSpecial");var dW=typeof Symbol=="function"&&Symbol.for,gW=dW?Symbol.for("react.element"):60103;function mW(e){return e.$$typeof===gW}a(mW,"isReactElement");function hW(e){return Array.isArray(e)?[]:{}}a(hW,"emptyTarget");function Kf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ol(hW(e),e,t):e}a(Kf,"cloneUnlessOtherwiseSpecified");function yW(e,t,n){return e.concat(t).map(function(i){return Kf(i,n)})}a(yW,"defaultArrayMerge");function vW(e,t){if(!t.customMerge)return ol;var n=t.customMerge(e);return typeof n=="function"?n:ol}a(vW,"getMergeFunction");function TW(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}a(TW,"getEnumerableOwnPropertySymbols");function ZL(e){return Object.keys(e).concat(TW(e))}a(ZL,"getKeys");function eF(e,t){try{return t in e}catch{return!1}}a(eF,"propertyIsOnObject");function EW(e,t){return eF(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}a(EW,"propertyIsUnsafe");function bW(e,t,n){var i={};return n.isMergeableObject(e)&&ZL(e).forEach(function(r){i[r]=Kf(e[r],n)}),ZL(t).forEach(function(r){EW(e,r)||(eF(e,r)&&n.isMergeableObject(t[r])?i[r]=vW(r,n)(e[r],t[r],n):i[r]=Kf(t[r],n))}),i}a(bW,"mergeObject");function ol(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||yW,n.isMergeableObject=n.isMergeableObject||fW,n.cloneUnlessOtherwiseSpecified=Kf;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):bW(e,t,n):Kf(t,n)}a(ol,"deepmerge");ol.all=a(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return ol(i,r,n)},{})},"deepmergeAll");var AW=ol;tF.exports=AW});var pg=ze(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var SW=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:function(){return SW.EnumIsFlag}});var xW=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:function(){return xW.TermToTypes}});var PW=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:function(){return PW.VocabularyReferences}});function nF(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}a(nF,"splitAt");function iF(e,t){return t<0?e:e.substring(0,t)}a(iF,"substringAt");function ug(e,t){return nF(e,e.indexOf(t))}a(ug,"splitAtFirst");vt.splitAtFirst=ug;function rF(e,t){return nF(e,e.lastIndexOf(t))}a(rF,"splitAtLast");vt.splitAtLast=rF;function CW(e,t){return iF(e,e.indexOf(t))}a(CW,"substringBeforeFirst");vt.substringBeforeFirst=CW;function IW(e,t){return iF(e,e.lastIndexOf(t))}a(IW,"substringBeforeLast");vt.substringBeforeLast=IW;function oF(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,s)=>(o[s.namespace]=s,o),{})),!t)return t;let[n,i]=rF(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,s]=ug(t,"@");return`${o}@${oF(e,s)}`}else return t}a(oF,"alias");vt.alias=oF;function DT(e,t,n){var i;let r=a(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=ug(o,".");if(!l||l.includes("."))return o;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:o},"_unalias");return(i=t==null?void 0:t.split("/").reduce((o,s)=>{let[l,u]=ug(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return o.push(p.join("")),o},[]))===null||i===void 0?void 0:i.join("/")}a(DT,"unalias");vt.unalias=DT;function OW(e){return!!e&&e._type==="ComplexType"&&!!e.properties}a(OW,"isComplexTypeDefinition");vt.isComplexTypeDefinition=OW;function NW(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}a(NW,"Decimal");vt.Decimal=NW;function LW(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(o){r=o}})}a(LW,"lazy");vt.lazy=LW;function aF(e,t){let n=new Map;return a(function(r){let o=n.get(r);return(o==null?void 0:o[t])===r?o:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}a(aF,"createIndexedFind");vt.createIndexedFind=aF;function FW(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:aF(e,t)});else throw new Error(`Property '${n}' already exists`);return e}a(FW,"addGetByValue");vt.addGetByValue=FW;function RW(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:s,annotations:l}of r){let u=(o=DT(e,s))!==null&&o!==void 0?o:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=DT(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}a(RW,"mergeAnnotations");vt.mergeAnnotations=RW});var EF=ze(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.convert=void 0;var Xf=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=pg(),Yr=Symbol("Annotation Target");function na(e,t){return e[e.length-1]!==t&&e.push(t),e}a(na,"appendObjectPath");function lr(e,t,n,i){var r,o,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,v)=>{if(v.includes("@")){let[A,E]=(0,Se.splitAtFirst)(v,"@");m.push(A),m.push(`@${E}`)}else m.push(v);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(o=e.getConvertedEntityType(p[0]))!==null&&o!==void 0?o:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[Yr]!==void 0)t=t[Yr];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var A,E,O,R,U;let j=a(G=>(m.messages.push({message:G}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=na(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[G,re]=e.splitTerm(v),Z=(A=m.target.annotations[G.substring(1)])===null||A===void 0?void 0:A[re];return Z!==void 0?(m.target=Z,m):j(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let G;if(v==="$AnnotationPath"?G=m.target.value:v==="$Path"&&(G=m.target.path),G!==void 0){let re=lr(e,m.target[Yr],G);return re.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=na(m.objectPath,Z))}),m.target=re.target,m.objectPath=na(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let he=(R=(O=Z.entitySets.by_name(v))!==null&&O!==void 0?O:Z.singletons.by_name(v))!==null&&R!==void 0?R:Z.actionImports.by_name(v);if(he)return m.target=he,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(v===""||v==="$Type")return m.target=Z.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let De=Z.navigationPropertyBinding;return m.target=De,m}let he=lr(e,Z.entityType,v);return m.target=he.target,m.objectPath=he.objectPath.reduce(na,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let he=Z.entityProperties.by_name(v);if(he)return m.target=he,m;let De=Z.navigationProperties.by_name(v);if(De)return m.target=De,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),Pt=Z.actions[D];if(Pt)return m.target=Pt,m}break;case"ActionImport":{let Z=lr(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(na,m.objectPath),m}case"Action":{let Z=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let he=(U=Z.parameters[v])!==null&&U!==void 0?U:Z.parameters.find(De=>De.name===v);if(he)return m.target=he,m;break}case"Property":{let he=m.target.targetType;if(he!==void 0){let De=he.properties.by_name(v);if(De)return m.target=De,m;let D=he.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let G=m.target.typeReference;if(G!==void 0){let Z=lr(e,G,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(na,m.objectPath),m}break;case"NavigationProperty":let re=lr(e,m.target.targetType,v);return m.target=re.target,m.objectPath=re.objectPath.reduce(na,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=na(m.objectPath,m.target),m}return j(`Element '${v}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=uF(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var hB=Object.create;var Jc=Object.defineProperty;var gO=Object.getOwnPropertyDescriptor;var yB=Object.getOwnPropertyNames;var vB=Object.getPrototypeOf,TB=Object.prototype.hasOwnProperty;var a=(e,t)=>Jc(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hs=(e,t)=>{for(var n in t)Jc(e,n,{get:t[n],enumerable:!0})},ng=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of yB(t))!TB.call(e,r)&&r!==n&&Jc(e,r,{get:()=>t[r],enumerable:!(i=gO(t,r))||i.enumerable});return e},Ws=(e,t,n)=>(ng(e,t,"default"),n&&ng(n,t,"default")),te=(e,t,n)=>(n=e!=null?hB(vB(e)):{},ng(t||!e||!e.__esModule?Jc(n,"default",{value:e,enumerable:!0}):n,e)),ig=e=>ng(Jc({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?gO(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Jc(t,n,r),r};var HN=ze((kz,BN)=>{var uT=Object.defineProperty,EB=Object.getOwnPropertyDescriptor,bB=Object.getOwnPropertyNames,AB=Object.prototype.hasOwnProperty,pT=a((e,t)=>{for(var n in t)uT(e,n,{get:t[n],enumerable:!0})},"T"),SB=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bB(t))!AB.call(e,r)&&r!==n&&uT(e,r,{get:()=>t[r],enumerable:!(i=EB(t,r))||i.enumerable});return e},"$e"),xB=a(e=>SB(uT({},"__esModule",{value:!0}),e),"Ze"),mO={};pT(mO,{ALPViewType:()=>AO,ActionTitlePrefix:()=>OB,ActionType:()=>PO,ArtifactType:()=>xO,BindingPropertyRegexAsString:()=>LB,ChangeIndicator:()=>LO,ChartColor:()=>KO,ColorPaletteDefinitionType:()=>WO,ControlType:()=>CO,CustomExtensionType:()=>qO,DATESETTINGSPATH:()=>UB,DataSourceType:()=>BO,DefinitionName:()=>_O,DirName:()=>OO,DraftDiscardEnabledSettings:()=>kO,ExportArtifacts:()=>bO,FIORI_FCL_ROOT_ID:()=>HB,FIORI_FCL_ROOT_VIEW_NAME:()=>BB,FRAGMENTNAMEPART:()=>jB,FacetBase:()=>FO,FacetTitlePrefix:()=>IB,Features:()=>zO,FileName:()=>NO,FioriElementsVersion:()=>hO,FlexChangeLayer:()=>TO,FlexibleColumnLayoutAggregations:()=>$O,FlexibleColumnLayoutType:()=>vO,GENERICAPPSETTINGS:()=>$B,LogSeverity:()=>XO,LogSeverityLabel:()=>KB,MANIFESTPATH:()=>FB,MacrosPropertyType:()=>wO,ManifestSection:()=>HO,OdataVersion:()=>yO,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>CB,PageType:()=>PB,PageTypeV2:()=>dT,PageTypeV4:()=>gT,PropertyName:()=>DO,QUICKVARPATH:()=>wB,QUICKVARPATHX:()=>kB,SAPUI5_FRAGMENT_CLASS:()=>GB,SAPUI5_VIEW_CLASS:()=>WB,SchemaKeyName:()=>MO,SchemaTag:()=>VO,SchemaType:()=>EO,SectionType:()=>SO,StatePreservationMode:()=>jO,TableColumnVerticalAlignment:()=>UO,TemplateType:()=>QO,UIVOCABULARY:()=>DB,UIVOCABULARYALPHADOT:()=>MB,UIVOCABULARYDOT:()=>VB,VOCWITHCOLONS:()=>_B,VOCWITHSLASH:()=>RB,ViewTemplateType:()=>RO,ViewTypes:()=>GO,Visualization:()=>IO,defaultExportResult:()=>NB,v2:()=>YO,v4:()=>AN});BN.exports=xB(mO);var dT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(dT||{}),gT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(gT||{}),PB={...dT,...gT},CB=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),hO=(e=>(e.v2="v2",e.v4="v4",e))(hO||{}),yO=(e=>(e.v2="v2",e.v4="v4",e))(yO||{}),vO=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(vO||{}),TO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(TO||{}),EO=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(EO||{}),bO=(e=>(e.flex="flex",e.manifest="manifest",e))(bO||{}),AO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(AO||{}),SO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(SO||{}),xO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(xO||{}),PO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(PO||{}),CO=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(CO||{}),IO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(IO||{}),OO=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(OO||{}),NO=(e=>(e.App="app.json",e))(NO||{}),IB="Facet ID: ",OB="Action ID: ",LO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(LO||{}),NB={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},FO=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(FO||{}),LB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",RO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(RO||{}),_O=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e))(_O||{}),DO=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(DO||{}),VO=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(VO||{}),MO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(MO||{}),FB="webapp/manifest.json",RB="/@com.sap.vocabularies",_B="::@com.sap.vocabularies",DB="com.sap.vocabularies.UI.v1",VB="com.sap.vocabularies.UI.v1.",MB="@com.sap.vocabularies.UI.v1.",wB="/quickVariantSelection",kB="/quickVariantSelectionX",UB="/filterSettings/dateSettings",jB=".fragment.",wO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(wO||{}),kO=(e=>(e.restricted="restricted",e))(kO||{}),UO=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(UO||{}),jO=(e=>(e.persistence="persistence",e.discovery="discovery",e))(jO||{}),$O=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))($O||{}),BO=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(BO||{}),HO=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(HO||{}),$B="sap.ui.generic.app/settings",WO=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(WO||{}),BB="sap.fe.templates.RootContainer.view.Fcl",HB="appRootView",GO=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(GO||{}),WB="sap.ui.core.mvc.View",GB="sap.ui.core.Fragment",KO=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(KO||{}),XO=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(XO||{}),KB={error:"Error",warning:"Warning",info:"Information"},QO=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(QO||{}),qO=(e=>(e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e))(qO||{}),zO=(e=>(e.BuildingBlocks="BuildingBlocks",e))(zO||{}),YO={};pT(YO,{CardSettingsType:()=>eN,CardTemplateType:()=>ZO,ChartCardType:()=>JO,ChartType:()=>yN,ContainerLayoutType:()=>bN,CreateMode:()=>EN,DateRangeType:()=>aN,DefaultContentView:()=>gN,DefaultDateRangeValueType:()=>sN,DefaultFilterMode:()=>mN,ExtensionFragmentTypes:()=>TN,FE_TEMPLATE_V2:()=>qB,FE_TEMPLATE_V2_ALP:()=>JB,FE_TEMPLATE_V2_LIST_REPORT:()=>YB,FE_TEMPLATE_V2_OBJECT_PAGE:()=>zB,FilterPathType:()=>cN,IgnoredFieldsType:()=>dN,LinkListFlavorType:()=>oN,ListFlavorType:()=>nN,ListTypeType:()=>iN,LoadDataOnAppLaunchSettings:()=>hN,MeasureAggregateValues:()=>tN,SAPUI5_CONTROLLER_EXTENSION:()=>eH,SAPUI5_VIEW_EXTENSION:()=>ZB,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>iH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>nH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>tH,SectionPosition:()=>vN,SortOrderType:()=>rN,Strategy:()=>pN,TableColumnExtensionTypeV2:()=>uN,TableTypeV2:()=>fN,cardTemplateSettingsMap:()=>QB,cardTemplateTypeMap:()=>XB,customColumnViewTypes:()=>lN});var JO=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(JO||{}),ZO=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(ZO||{}),XB={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},QB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(eN||{}),tN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(tN||{}),nN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(nN||{}),iN=(e=>(e.extended="extended",e.condensed="condensed",e))(iN||{}),rN=(e=>(e.ascending="ascending",e.descending="descending",e))(rN||{}),oN=(e=>(e.standard="standard",e.carousel="carousel",e))(oN||{}),aN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(aN||{}),sN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(sN||{}),cN=(e=>(e.key="key",e.catgory="category",e))(cN||{}),lN=(e=>(e.XML="XML",e))(lN||{}),fN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(fN||{}),uN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(uN||{}),pN=(e=>(e.extension="extension",e))(pN||{}),dN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(dN||{}),gN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(gN||{}),mN=(e=>(e.visual="visual",e.compact="compact",e))(mN||{}),hN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(hN||{}),yN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(yN||{}),vN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(vN||{}),TN=(e=>(e.XML="XML",e))(TN||{}),EN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(EN||{}),qB="sap.suite.ui.generic.template",zB="sap.suite.ui.generic.template.ObjectPage",YB="sap.suite.ui.generic.template.ListReport",JB="sap.suite.ui.generic.template.AnalyticalListPage",ZB="sap.ui.viewExtensions",eH="sap.ui.controllerExtensions",tH="sap.suite.ui.generic.template.ObjectPage.view.Details",nH="sap.suite.ui.generic.template.ListReport.view.ListReport",iH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",bN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(bN||{}),AN={};pT(AN,{ActionPlacement:()=>SN,Availability:()=>kN,CustomSectionViewTypesV4:()=>DN,DefaultPathType:()=>IN,FE_TEMPLATE_V4:()=>rH,FE_TEMPLATE_V4_ALP:()=>cH,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>oH,FE_TEMPLATE_V4_LIST_REPORT:()=>sH,FE_TEMPLATE_V4_OBJECT_PAGE:()=>aH,FIORI_FCL_ROUTER_CLASS:()=>fH,FilterFieldPlacement:()=>LN,HorizontalAlign:()=>UN,InitialLayoutType:()=>NN,InitialLoadType:()=>CN,LayoutType:()=>ON,Placement:()=>wN,SAPUI5_CONTROLLER_EXTENSION:()=>pH,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>uH,SAPUI5_FRAGMENT_TYPE_V4:()=>lH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>gH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>dH,SectionLayoutType:()=>RN,SectionPosition:()=>_N,SectionPositionV4:()=>MN,SelectType:()=>FN,SelectionMode:()=>xN,TableCreationModeType:()=>VN,TableTypeV4:()=>PN,VariantManagementTypeListReport:()=>$N,VariantManagementTypeObjectPage:()=>jN});var SN=(e=>(e.After="After",e.Before="Before",e))(SN||{}),xN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(xN||{}),PN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(PN||{}),CN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(CN||{}),IN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(IN||{}),ON=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(ON||{}),NN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(NN||{}),LN=(e=>(e.After="After",e.Before="Before",e))(LN||{}),FN=(e=>(e.single="single",e.multi="multi",e))(FN||{}),RN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(RN||{}),_N=(e=>(e.After="After",e.Before="Before",e))(_N||{}),DN=(e=>(e.XML="XML",e))(DN||{}),VN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(VN||{}),rH="sap.fe.templates",oH="sap.fe.core.fpm",aH="sap.fe.templates.ObjectPage",sH="sap.fe.templates.ListReport",cH="sap.fe.templates.AnalyticalListPage",lH="XMLFragment",MN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(MN||{}),fH="sap.f.routing.Router",uH="sap.f",pH="sap.ui.controllerExtensions",dH="sap.fe.templates.ObjectPage.ObjectPageController",gH="sap.fe.templates.ListReport.ListReportController",wN=(e=>(e.After="After",e.Before="Before",e))(wN||{}),kN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(kN||{}),UN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(UN||{}),jN=(e=>(e.None="None",e.Control="Control",e))(jN||{}),$N=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))($N||{})});var QN=ze(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.Features=_r.CustomExtensionType=_r.TemplateType=_r.LogSeverityLabel=_r.LogSeverity=void 0;var WN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(WN||(_r.LogSeverity=WN={}));_r.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var GN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(GN||(_r.TemplateType=GN={}));var KN;(function(e){e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection"})(KN||(_r.CustomExtensionType=KN={}));var XN;(function(e){e.BuildingBlocks="BuildingBlocks"})(XN||(_r.Features=XN={}))});var bL=ze(($z,EL)=>{var mT=Object.defineProperty,mH=Object.getOwnPropertyDescriptor,hH=Object.getOwnPropertyNames,yH=Object.prototype.hasOwnProperty,vH=a((e,t)=>{for(var n in t)mT(e,n,{get:t[n],enumerable:!0})},"h"),TH=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hH(t))!yH.call(e,r)&&r!==n&&mT(e,r,{get:()=>t[r],enumerable:!(i=mH(t,r))||i.enumerable});return e},"M"),EH=a(e=>TH(mT({},"__esModule",{value:!0}),e),"Q"),qN={};vH(qN,{CardSettingsType:()=>JN,CardTemplateType:()=>YN,ChartCardType:()=>zN,ChartType:()=>mL,ContainerLayoutType:()=>TL,CreateMode:()=>vL,DateRangeType:()=>rL,DefaultContentView:()=>pL,DefaultDateRangeValueType:()=>oL,DefaultFilterMode:()=>dL,ExtensionFragmentTypes:()=>yL,FE_TEMPLATE_V2:()=>SH,FE_TEMPLATE_V2_ALP:()=>CH,FE_TEMPLATE_V2_LIST_REPORT:()=>PH,FE_TEMPLATE_V2_OBJECT_PAGE:()=>xH,FilterPathType:()=>aL,IgnoredFieldsType:()=>uL,LinkListFlavorType:()=>iL,ListFlavorType:()=>eL,ListTypeType:()=>tL,LoadDataOnAppLaunchSettings:()=>gL,MeasureAggregateValues:()=>ZN,SAPUI5_CONTROLLER_EXTENSION:()=>OH,SAPUI5_VIEW_EXTENSION:()=>IH,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>FH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>LH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>NH,SectionPosition:()=>hL,SortOrderType:()=>nL,Strategy:()=>fL,TableColumnExtensionTypeV2:()=>lL,TableTypeV2:()=>cL,cardTemplateSettingsMap:()=>AH,cardTemplateTypeMap:()=>bH,customColumnViewTypes:()=>sL});EL.exports=EH(qN);var zN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(zN||{}),YN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(YN||{}),bH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},AH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},JN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(JN||{}),ZN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(ZN||{}),eL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(eL||{}),tL=(e=>(e.extended="extended",e.condensed="condensed",e))(tL||{}),nL=(e=>(e.ascending="ascending",e.descending="descending",e))(nL||{}),iL=(e=>(e.standard="standard",e.carousel="carousel",e))(iL||{}),rL=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(rL||{}),oL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(oL||{}),aL=(e=>(e.key="key",e.catgory="category",e))(aL||{}),sL=(e=>(e.XML="XML",e))(sL||{}),cL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(cL||{}),lL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(lL||{}),fL=(e=>(e.extension="extension",e))(fL||{}),uL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(uL||{}),pL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(pL||{}),dL=(e=>(e.visual="visual",e.compact="compact",e))(dL||{}),gL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(gL||{}),mL=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(mL||{}),hL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(hL||{}),yL=(e=>(e.XML="XML",e))(yL||{}),vL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(vL||{}),SH="sap.suite.ui.generic.template",xH="sap.suite.ui.generic.template.ObjectPage",PH="sap.suite.ui.generic.template.ListReport",CH="sap.suite.ui.generic.template.AnalyticalListPage",IH="sap.ui.viewExtensions",OH="sap.ui.controllerExtensions",NH="sap.suite.ui.generic.template.ObjectPage.view.Details",LH="sap.suite.ui.generic.template.ListReport.view.ListReport",FH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",TL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(TL||{})});var HL=ze((Hz,BL)=>{var hT=Object.defineProperty,RH=Object.getOwnPropertyDescriptor,_H=Object.getOwnPropertyNames,DH=Object.prototype.hasOwnProperty,VH=a((e,t)=>{for(var n in t)hT(e,n,{get:t[n],enumerable:!0})},"w"),MH=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of _H(t))!DH.call(e,r)&&r!==n&&hT(e,r,{get:()=>t[r],enumerable:!(i=RH(t,r))||i.enumerable});return e},"h"),wH=a(e=>MH(hT({},"__esModule",{value:!0}),e),"R"),AL={};VH(AL,{ActionPlacement:()=>SL,Availability:()=>kL,CustomSectionViewTypesV4:()=>DL,DefaultPathType:()=>IL,FE_TEMPLATE_V4:()=>kH,FE_TEMPLATE_V4_ALP:()=>BH,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>UH,FE_TEMPLATE_V4_LIST_REPORT:()=>$H,FE_TEMPLATE_V4_OBJECT_PAGE:()=>jH,FIORI_FCL_ROUTER_CLASS:()=>WH,FilterFieldPlacement:()=>LL,HorizontalAlign:()=>UL,InitialLayoutType:()=>NL,InitialLoadType:()=>CL,LayoutType:()=>OL,Placement:()=>wL,SAPUI5_CONTROLLER_EXTENSION:()=>KH,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>GH,SAPUI5_FRAGMENT_TYPE_V4:()=>HH,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>QH,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>XH,SectionLayoutType:()=>RL,SectionPosition:()=>_L,SectionPositionV4:()=>ML,SelectType:()=>FL,SelectionMode:()=>xL,TableCreationModeType:()=>VL,TableTypeV4:()=>PL,VariantManagementTypeListReport:()=>$L,VariantManagementTypeObjectPage:()=>jL});BL.exports=wH(AL);var SL=(e=>(e.After="After",e.Before="Before",e))(SL||{}),xL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(xL||{}),PL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(PL||{}),CL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(CL||{}),IL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(IL||{}),OL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(OL||{}),NL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(NL||{}),LL=(e=>(e.After="After",e.Before="Before",e))(LL||{}),FL=(e=>(e.single="single",e.multi="multi",e))(FL||{}),RL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(RL||{}),_L=(e=>(e.After="After",e.Before="Before",e))(_L||{}),DL=(e=>(e.XML="XML",e))(DL||{}),VL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(VL||{}),kH="sap.fe.templates",UH="sap.fe.core.fpm",jH="sap.fe.templates.ObjectPage",$H="sap.fe.templates.ListReport",BH="sap.fe.templates.AnalyticalListPage",HH="XMLFragment",ML=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ML||{}),WH="sap.f.routing.Router",GH="sap.f",KH="sap.ui.controllerExtensions",XH="sap.fe.templates.ObjectPage.ObjectPageController",QH="sap.fe.templates.ListReport.ListReportController",wL=(e=>(e.After="After",e.Before="Before",e))(wL||{}),kL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(kL||{}),UL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(UL||{}),jL=(e=>(e.None="None",e.Control="Control",e))(jL||{}),$L=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))($L||{})});var le=ze(gi=>{"use strict";var WL=gi&&gi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),qH=gi&&gi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),GL=gi&&gi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&WL(t,e,n)},KL=gi&&gi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&WL(t,e,n);return qH(t,e),t};Object.defineProperty(gi,"__esModule",{value:!0});gi.v4=gi.v2=void 0;GL(HN(),gi);GL(QN(),gi);gi.v2=KL(bL());gi.v4=KL(HL())});var _T=ze((cY,rF)=>{"use strict";var gW=a(function(t){return mW(t)&&!hW(t)},"isMergeableObject");function mW(e){return!!e&&typeof e=="object"}a(mW,"isNonNullObject");function hW(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||TW(e)}a(hW,"isSpecial");var yW=typeof Symbol=="function"&&Symbol.for,vW=yW?Symbol.for("react.element"):60103;function TW(e){return e.$$typeof===vW}a(TW,"isReactElement");function EW(e){return Array.isArray(e)?[]:{}}a(EW,"emptyTarget");function Kf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?nl(EW(e),e,t):e}a(Kf,"cloneUnlessOtherwiseSpecified");function bW(e,t,n){return e.concat(t).map(function(i){return Kf(i,n)})}a(bW,"defaultArrayMerge");function AW(e,t){if(!t.customMerge)return nl;var n=t.customMerge(e);return typeof n=="function"?n:nl}a(AW,"getMergeFunction");function SW(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}a(SW,"getEnumerableOwnPropertySymbols");function nF(e){return Object.keys(e).concat(SW(e))}a(nF,"getKeys");function iF(e,t){try{return t in e}catch{return!1}}a(iF,"propertyIsOnObject");function xW(e,t){return iF(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}a(xW,"propertyIsUnsafe");function PW(e,t,n){var i={};return n.isMergeableObject(e)&&nF(e).forEach(function(r){i[r]=Kf(e[r],n)}),nF(t).forEach(function(r){xW(e,r)||(iF(e,r)&&n.isMergeableObject(t[r])?i[r]=AW(r,n)(e[r],t[r],n):i[r]=Kf(t[r],n))}),i}a(PW,"mergeObject");function nl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||bW,n.isMergeableObject=n.isMergeableObject||gW,n.cloneUnlessOtherwiseSpecified=Kf;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):PW(e,t,n):Kf(t,n)}a(nl,"deepmerge");nl.all=a(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return nl(i,r,n)},{})},"deepmergeAll");var CW=nl;rF.exports=CW});var dg=ze(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var IW=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:function(){return IW.EnumIsFlag}});var OW=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:function(){return OW.TermToTypes}});var NW=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:function(){return NW.VocabularyReferences}});function oF(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}a(oF,"splitAt");function aF(e,t){return t<0?e:e.substring(0,t)}a(aF,"substringAt");function pg(e,t){return oF(e,e.indexOf(t))}a(pg,"splitAtFirst");vt.splitAtFirst=pg;function sF(e,t){return oF(e,e.lastIndexOf(t))}a(sF,"splitAtLast");vt.splitAtLast=sF;function LW(e,t){return aF(e,e.indexOf(t))}a(LW,"substringBeforeFirst");vt.substringBeforeFirst=LW;function FW(e,t){return aF(e,e.lastIndexOf(t))}a(FW,"substringBeforeLast");vt.substringBeforeLast=FW;function cF(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,s)=>(o[s.namespace]=s,o),{})),!t)return t;let[n,i]=sF(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,s]=pg(t,"@");return`${o}@${cF(e,s)}`}else return t}a(cF,"alias");vt.alias=cF;function DT(e,t,n){var i;let r=a(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=pg(o,".");if(!l||l.includes("."))return o;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:o},"_unalias");return(i=t==null?void 0:t.split("/").reduce((o,s)=>{let[l,u]=pg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return o.push(p.join("")),o},[]))===null||i===void 0?void 0:i.join("/")}a(DT,"unalias");vt.unalias=DT;function RW(e){return!!e&&e._type==="ComplexType"&&!!e.properties}a(RW,"isComplexTypeDefinition");vt.isComplexTypeDefinition=RW;function _W(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}a(_W,"Decimal");vt.Decimal=_W;function DW(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(o){r=o}})}a(DW,"lazy");vt.lazy=DW;function lF(e,t){let n=new Map;return a(function(r){let o=n.get(r);return(o==null?void 0:o[t])===r?o:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}a(lF,"createIndexedFind");vt.createIndexedFind=lF;function VW(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:lF(e,t)});else throw new Error(`Property '${n}' already exists`);return e}a(VW,"addGetByValue");vt.addGetByValue=VW;function MW(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:s,annotations:l}of r){let u=(o=DT(e,s))!==null&&o!==void 0?o:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=DT(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}a(MW,"mergeAnnotations");vt.mergeAnnotations=MW});var SF=ze(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});mg.convert=void 0;var Xf=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=dg(),Yr=Symbol("Annotation Target");function ta(e,t){return e[e.length-1]!==t&&e.push(t),e}a(ta,"appendObjectPath");function lr(e,t,n,i){var r,o,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,v)=>{if(v.includes("@")){let[A,E]=(0,Se.splitAtFirst)(v,"@");m.push(A),m.push(`@${E}`)}else m.push(v);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(o=e.getConvertedEntityType(p[0]))!==null&&o!==void 0?o:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[Yr]!==void 0)t=t[Yr];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var A,E,O,R,U;let H=a(W=>(m.messages.push({message:W}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ta(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[W,ie]=e.splitTerm(v),Z=(A=m.target.annotations[W.substring(1)])===null||A===void 0?void 0:A[ie];return Z!==void 0?(m.target=Z,m):H(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let W;if(v==="$AnnotationPath"?W=m.target.value:v==="$Path"&&(W=m.target.path),W!==void 0){let ie=lr(e,m.target[Yr],W);return ie.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=ta(m.objectPath,Z))}),m.target=ie.target,m.objectPath=ta(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let ne=(R=(O=Z.entitySets.by_name(v))!==null&&O!==void 0?O:Z.singletons.by_name(v))!==null&&R!==void 0?R:Z.actionImports.by_name(v);if(ne)return m.target=ne,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(v===""||v==="$Type")return m.target=Z.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Le=Z.navigationPropertyBinding;return m.target=Le,m}let ne=lr(e,Z.entityType,v);return m.target=ne.target,m.objectPath=ne.objectPath.reduce(ta,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let ne=Z.entityProperties.by_name(v);if(ne)return m.target=ne,m;let Le=Z.navigationProperties.by_name(v);if(Le)return m.target=Le,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),Pt=Z.actions[D];if(Pt)return m.target=Pt,m}break;case"ActionImport":{let Z=lr(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ta,m.objectPath),m}case"Action":{let Z=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let ne=(U=Z.parameters[v])!==null&&U!==void 0?U:Z.parameters.find(Le=>Le.name===v);if(ne)return m.target=ne,m;break}case"Property":{let ne=m.target.targetType;if(ne!==void 0){let Le=ne.properties.by_name(v);if(Le)return m.target=Le,m;let D=ne.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let W=m.target.typeReference;if(W!==void 0){let Z=lr(e,W,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ta,m.objectPath),m}break;case"NavigationProperty":let ie=lr(e,m.target.targetType,v);return m.target=ie.target,m.objectPath=ie.objectPath.reduce(ta,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=ta(m.objectPath,m.target),m}return H(`Element '${v}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=gF(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
2
2
  `+n+`
3
3
 
4
4
  Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
10
10
  Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
11
11
 
12
12
  <Annotation Term = `+p[0]+`>
13
- <PropertyValue Path= `+p[1]+">");return g}a(lr,"resolveTarget");function _W(e){return e.includes("@")}a(_W,"isAnnotationPath");function sF(e,t,n,i,r){let o={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[Yr]:i};return(0,Se.lazy)(o,"$target",()=>lr(e,i,t.PropertyPath,r).target),o}a(sF,"mapPropertyPath");function cF(e,t,n,i,r){let o={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[Yr]:i};return(0,Se.lazy)(o,"$target",()=>lr(e,i,o.value,r).target),o}a(cF,"mapAnnotationPath");function lF(e,t,n,i,r){var o;let s={type:"NavigationPropertyPath",value:(o=t.NavigationPropertyPath)!==null&&o!==void 0?o:"",fullyQualifiedName:n,[Yr]:i};return(0,Se.lazy)(s,"$target",()=>lr(e,i,t.NavigationPropertyPath,r).target),s}a(lF,"mapNavigationPropertyPath");function DW(e,t,n,i,r){let o={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[Yr]:i};return(0,Se.lazy)(o,"$target",()=>lr(e,i,t.Path,r).target),o}a(DW,"mapPath");function fF(e,t,n,i,r,o,s){if(o!==void 0)switch(o.type){case"String":return o.String;case"Int":return o.Int;case"Bool":return o.Bool;case"Decimal":return(0,Se.Decimal)(o.Decimal);case"Date":return o.Date;case"EnumMember":let l=o.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Se.alias)(Xf.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return sF(e,o,s,t,n);case"NavigationPropertyPath":return lF(e,o,s,t,n);case"AnnotationPath":return cF(e,o,s,t,n);case"Path":return _W(o.Path)?lr(e,t,o.Path,n).target:DW(e,o,s,t,n);case"Record":return wT(e,n,t,i,r,o.Record,s);case"Collection":return pF(e,t,n,i,r,o.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return o}}a(fF,"parseValue");function uF(e,t,n,i){let r=Se.TermToTypes[t];return i&&(t=`${(0,Se.substringBeforeLast)(t,".")}.${i}`,r=Se.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
13
+ <PropertyValue Path= `+p[1]+">");return g}a(lr,"resolveTarget");function wW(e){return e.includes("@")}a(wW,"isAnnotationPath");function fF(e,t,n,i,r){let o={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[Yr]:i};return(0,Se.lazy)(o,"$target",()=>lr(e,i,t.PropertyPath,r).target),o}a(fF,"mapPropertyPath");function uF(e,t,n,i,r){let o={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[Yr]:i};return(0,Se.lazy)(o,"$target",()=>lr(e,i,o.value,r).target),o}a(uF,"mapAnnotationPath");function pF(e,t,n,i,r){var o;let s={type:"NavigationPropertyPath",value:(o=t.NavigationPropertyPath)!==null&&o!==void 0?o:"",fullyQualifiedName:n,[Yr]:i};return(0,Se.lazy)(s,"$target",()=>lr(e,i,t.NavigationPropertyPath,r).target),s}a(pF,"mapNavigationPropertyPath");function kW(e,t,n,i,r){let o={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[Yr]:i};return(0,Se.lazy)(o,"$target",()=>lr(e,i,t.Path,r).target),o}a(kW,"mapPath");function dF(e,t,n,i,r,o,s){if(o!==void 0)switch(o.type){case"String":return o.String;case"Int":return o.Int;case"Bool":return o.Bool;case"Decimal":return(0,Se.Decimal)(o.Decimal);case"Date":return o.Date;case"EnumMember":let l=o.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Se.alias)(Xf.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return fF(e,o,s,t,n);case"NavigationPropertyPath":return pF(e,o,s,t,n);case"AnnotationPath":return uF(e,o,s,t,n);case"Path":return wW(o.Path)?lr(e,t,o.Path,n).target:kW(e,o,s,t,n);case"Record":return wT(e,n,t,i,r,o.Record,s);case"Collection":return mF(e,t,n,i,r,o.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return o}}a(dF,"parseValue");function gF(e,t,n,i){let r=Se.TermToTypes[t];return i&&(t=`${(0,Se.substringBeforeLast)(t,".")}.${i}`,r=Se.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
14
14
  Hint: If possible, try to maintain the Type property for each Record.
15
15
  <Annotations Target="${n}">
16
16
  <Annotation Term="${t}">
17
17
  <Record>...</Record>
18
18
  </Annotation>
19
- </Annotations>`),r}a(uF,"inferTypeFromTerm");function VW(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}a(VW,"isDataFieldWithForAction");function MW(e,t,n,i,r){let o;return!r.type&&t?o=uF(e,t,n.fullyQualifiedName,i):o=e.unalias(r.type),o}a(MW,"parseRecordType");function wT(e,t,n,i,r,o,s){let l={$Type:MW(e,t,n,i,o),fullyQualifiedName:s,[Yr]:n,__source:r};for(let u of o.propertyValues)(0,Se.lazy)(l,u.name,()=>fF(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",gF(e,o,l)),VW(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}a(wT,"parseRecord");function wW(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}a(wW,"getOrInferCollectionType");function pF(e,t,n,i,r,o,s){switch(wW(o)){case"PropertyPath":return o.map((u,p)=>sF(e,u,`${s}/${p}`,t,n));case"Path":return o.map(u=>lr(e,t,u.Path,n).target);case"AnnotationPath":return o.map((u,p)=>cF(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return o.map((u,p)=>lF(e,u,`${s}/${p}`,t,n));case"Record":return o.map((u,p)=>wT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return o.map(u=>u);case"String":return o.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(o.length===0)return[];throw new Error("Unsupported case")}}a(pF,"parseCollection");function kW(e){return!!e.targetTypeName}a(kW,"isV4NavigationProperty");function UW(e,t,n){var i;let r;if(n.record)r=wT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=fF(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=pF(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[Yr]=t;let[o,s]=e.splitTerm(n.term);r.term=e.unalias(`${o}.${s}`,Xf.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",gF(e,n,r))}catch{}return r}a(UW,"convertAnnotation");var kT=class kT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,mF)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,o)=>{let s=this.getConvertedElement(o.fullyQualifiedName,o,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let o=typeof n=="function"?n.apply(void 0,[t]):n;o!==void 0&&(r=i.apply(void 0,[this,o]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(Xf.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};a(kT,"Converter");var VT=kT;function Qf(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}a(Qf,"resolveEntityType");function dF(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var o;return(o=e.getConvertedEntitySet(r))!==null&&o!==void 0?o:e.getConvertedSingleton(r)}),n},{})}a(dF,"resolveNavigationPropertyBindings");function ia(e,t){let n=t.annotations;return()=>dg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}a(ia,"resolveAnnotations");function gF(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(o=>{o.target=i,o.__source=n.__source,o[Yr]=n[Yr],o.fullyQualifiedName=`${i}@${o.term}`}),dg(e,n,r??[])}}a(gF,"resolveAnnotationsOnAnnotation");function dg(e,t,n){return n.reduce((i,r)=>{let[o,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[o]===void 0&&(i[o]={}),i[o].hasOwnProperty(l)||(0,Se.lazy)(i[o],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>UW(u,t,p))),i},{})}a(dg,"createAnnotationsObject");function mF(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,yF)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,hF)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,TF)),n}a(mF,"convertEntityContainer");function hF(e,t){let n=t;(0,Se.lazy)(n,"entityType",Qf(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ia(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",dF(e,i)),n}a(hF,"convertSingleton");function yF(e,t){let n=t;(0,Se.lazy)(n,"entityType",Qf(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ia(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",dF(e,i)),n}a(yF,"convertEntitySet");function jW(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,MT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,MT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,vF)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let o=`${e.rawSchema.namespace}.${r.name}`;return i[o]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let o=lr(e,t,i);return r?{target:o.target,visitedObjects:o.objectPath,messages:o.messages}:o.target},n}a(jW,"convertEntityType");function MT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,o=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(o))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(o)}),n}a(MT,"convertProperty");function vF(e,t){var n,i,r;let o=t;if(o.referentialConstraint=(n=o.referentialConstraint)!==null&&n!==void 0?n:[],!kW(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);o.isCollection=(s==null?void 0:s.multiplicity)==="*",o.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(o,"targetType",Qf(e,t.targetTypeName)),(0,Se.lazy)(o,"annotations",ia(e,t)),o}a(vF,"convertNavigationProperty");function TF(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}a(TF,"convertActionImport");function $W(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",Qf(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",Qf(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,BW)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,o=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)o.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||o.push(l);return dg(e,t,o)}),n}a($W,"convertAction");function BW(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,o=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)o.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||o.push(l);return dg(e,t,o)}),n}a(BW,"convertActionParameter");function HW(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,MT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,vF)),(0,Se.lazy)(n,"annotations",ia(e,t)),n}a(HW,"convertComplexType");function WW(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),n}a(WW,"convertTypeDefinition");function GW(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Xf.VocabularyReferences,diagnostics:[]};e.references.length===0&&(e.references=Xf.VocabularyReferences);let n=new VT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,mF)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,yF)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,hF)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,jW)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,$W)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,HW)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,TF)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,WW)),t.resolvePath=a(function(r){let o=lr(n,void 0,r);return o.target&&na(o.objectPath,o.target),o},"resolvePath"),t}a(GW,"convert");gg.convert=GW});var xF=ze(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.revertTermToGenericType=void 0;var KW=pg();function XW(e,t){var n,i,r,o,s,l;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(p=>mg(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(g=>g.alias===p[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?u={type:"Int",Int:t.valueOf()}:!((o=t.isFloat)===null||o===void 0)&&o.call(t)?u={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?u={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",Apply:t.Apply}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:mg(e,t)});return u}a(XW,"revertObjectToRawType");function bF(e,t){let n;switch(t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(o=>o.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=XW(e,t);break}return n}a(bF,"revertValueToRawType");var QW=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function AF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let o=SF(e,t[i][r]);if(!o.term){let s=(0,KW.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");o.term=l[0],l.length>1&&(o.qualifier=l[1])}}n.push(o)})})}a(AF,"revertAnnotationsToRawType");function mg(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(QW.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:bF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],AF(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value}}}a(mg,"revertCollectionItemToRawType");function SF(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],AF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>mg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:mg(e,t)}:{...n,value:bF(e,t)}}a(SF,"revertTermToGenericType");hg.revertTermToGenericType=SF});var PF=ze(ra=>{"use strict";var qW=ra&&ra.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),UT=ra&&ra.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qW(t,e,n)};Object.defineProperty(ra,"__esModule",{value:!0});UT(EF(),ra);UT(pg(),ra);UT(xF(),ra)});var WT=ze(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MergedRawMetadata=Ua.RawMetadataInstance=Ua.ensureArray=void 0;function zW(e){return e==null?[]:Array.isArray(e)?e:[e]}a(zW,"ensureArray");Ua.ensureArray=zW;var BT=class BT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};a(BT,"RawMetadataInstance");var jT=BT;Ua.RawMetadataInstance=jT;var HT=class HT{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};a(HT,"MergedRawMetadata");var $T=HT;Ua.MergedRawMetadata=$T});var CF=ze(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.merge=void 0;var YW=WT();function JW(...e){let t=new YW.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}a(JW,"merge");yg.merge=JW});var IF=ze(vg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=S||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!I,Y.noscript=!!(I||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(E)),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),pt(Y,"onready")}a(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}a(S,"F"),S.prototype=I;var Y=new S;return Y}),Object.keys||(Object.keys=function(I){var S=[];for(var Y in I)I.hasOwnProperty(Y)&&S.push(Y);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,M=0,Ve=t.length;M<Ve;M++){var Nt=I[t[M]].length;if(Nt>S)switch(t[M]){case"textNode":fn(I);break;case"cdata":$e(I,"oncdata",I.cdata),I.cdata="";break;case"script":$e(I,"onscript",I.script),I.script="";break;default:Sn(I,"Max buffer length exceeded: "+t[M])}Y=Math.max(Y,Nt)}var Qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=Qe+I.position}a(i,"checkBufferLength");function r(I){for(var S=0,Y=t.length;S<Y;S++)I[t[S]]=""}a(r,"clearBuffers");function o(I){fn(I),I.cdata!==""&&($e(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&($e(I,"onscript",I.script),I.script="")}a(o,"flushBuffers"),n.prototype={end:function(){jt(this)},write:st,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var s;try{s=require("stream").Stream}catch{s=a(function(){},"Stream")}s||(s=a(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}a(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(M){Y.emit("error",M),Y._parser.error=null},this._decoder=null,l.forEach(function(M){Object.defineProperty(Y,"on"+M,{get:function(){return Y._parser["on"+M]},set:function(Ve){if(!Ve)return Y.removeAllListeners(M),Y._parser["on"+M]=Ve,Ve;Y.on(M,Ve)},enumerable:!0,configurable:!1})})}a(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var Y=this;return!Y._parser["on"+I]&&l.indexOf(I)!==-1&&(Y._parser["on"+I]=function(){var M=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);M.splice(0,0,I),Y.emit.apply(Y,M)}),s.prototype.on.call(Y,I,S)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:v,xmlns:A},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function G(I){return I===" "||I===`
20
- `||I==="\r"||I===" "}a(G,"isWhitespace");function re(I){return I==='"'||I==="'"}a(re,"isQuote");function Z(I){return I===">"||G(I)}a(Z,"isAttribEnd");function he(I,S){return I.test(S)}a(he,"isMatch");function De(I,S){return!he(I,S)}a(De,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],Y=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=Y});for(var Pt in e.STATE)e.STATE[e.STATE[Pt]]=Pt;D=e.STATE;function pt(I,S,Y){I[S]&&I[S](Y)}a(pt,"emit");function $e(I,S,Y){I.textNode&&fn(I),pt(I,S,Y)}a($e,"emitNode");function fn(I){I.textNode=Vi(I.opt,I.textNode),I.textNode&&pt(I,"ontext",I.textNode),I.textNode=""}a(fn,"closeText");function Vi(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}a(Vi,"textopts");function Sn(I,S){return fn(I),I.trackPosition&&(S+=`
19
+ </Annotations>`),r}a(gF,"inferTypeFromTerm");function UW(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}a(UW,"isDataFieldWithForAction");function jW(e,t,n,i,r){let o;return!r.type&&t?o=gF(e,t,n.fullyQualifiedName,i):o=e.unalias(r.type),o}a(jW,"parseRecordType");function wT(e,t,n,i,r,o,s){let l={$Type:jW(e,t,n,i,o),fullyQualifiedName:s,[Yr]:n,__source:r};for(let u of o.propertyValues)(0,Se.lazy)(l,u.name,()=>dF(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",yF(e,o,l)),UW(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}a(wT,"parseRecord");function $W(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}a($W,"getOrInferCollectionType");function mF(e,t,n,i,r,o,s){switch($W(o)){case"PropertyPath":return o.map((u,p)=>fF(e,u,`${s}/${p}`,t,n));case"Path":return o.map(u=>lr(e,t,u.Path,n).target);case"AnnotationPath":return o.map((u,p)=>uF(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return o.map((u,p)=>pF(e,u,`${s}/${p}`,t,n));case"Record":return o.map((u,p)=>wT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return o.map(u=>u);case"String":return o.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(o.length===0)return[];throw new Error("Unsupported case")}}a(mF,"parseCollection");function BW(e){return!!e.targetTypeName}a(BW,"isV4NavigationProperty");function HW(e,t,n){var i;let r;if(n.record)r=wT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=dF(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=mF(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[Yr]=t;let[o,s]=e.splitTerm(n.term);r.term=e.unalias(`${o}.${s}`,Xf.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",yF(e,n,r))}catch{}return r}a(HW,"convertAnnotation");var kT=class kT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,vF)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,o)=>{let s=this.getConvertedElement(o.fullyQualifiedName,o,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let o=typeof n=="function"?n.apply(void 0,[t]):n;o!==void 0&&(r=i.apply(void 0,[this,o]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(Xf.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};a(kT,"Converter");var VT=kT;function Qf(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}a(Qf,"resolveEntityType");function hF(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var o;return(o=e.getConvertedEntitySet(r))!==null&&o!==void 0?o:e.getConvertedSingleton(r)}),n},{})}a(hF,"resolveNavigationPropertyBindings");function na(e,t){let n=t.annotations;return()=>gg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}a(na,"resolveAnnotations");function yF(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(o=>{o.target=i,o.__source=n.__source,o[Yr]=n[Yr],o.fullyQualifiedName=`${i}@${o.term}`}),gg(e,n,r??[])}}a(yF,"resolveAnnotationsOnAnnotation");function gg(e,t,n){return n.reduce((i,r)=>{let[o,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[o]===void 0&&(i[o]={}),i[o].hasOwnProperty(l)||(0,Se.lazy)(i[o],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>HW(u,t,p))),i},{})}a(gg,"createAnnotationsObject");function vF(e,t){let n=t;return(0,Se.lazy)(n,"annotations",na(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,EF)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,TF)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,AF)),n}a(vF,"convertEntityContainer");function TF(e,t){let n=t;(0,Se.lazy)(n,"entityType",Qf(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",na(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",hF(e,i)),n}a(TF,"convertSingleton");function EF(e,t){let n=t;(0,Se.lazy)(n,"entityType",Qf(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",na(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",hF(e,i)),n}a(EF,"convertEntitySet");function WW(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",na(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,MT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,MT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,bF)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let o=`${e.rawSchema.namespace}.${r.name}`;return i[o]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let o=lr(e,t,i);return r?{target:o.target,visitedObjects:o.objectPath,messages:o.messages}:o.target},n}a(WW,"convertEntityType");function MT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",na(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,o=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(o))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(o)}),n}a(MT,"convertProperty");function bF(e,t){var n,i,r;let o=t;if(o.referentialConstraint=(n=o.referentialConstraint)!==null&&n!==void 0?n:[],!BW(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);o.isCollection=(s==null?void 0:s.multiplicity)==="*",o.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(o,"targetType",Qf(e,t.targetTypeName)),(0,Se.lazy)(o,"annotations",na(e,t)),o}a(bF,"convertNavigationProperty");function AF(e,t){let n=t;return(0,Se.lazy)(n,"annotations",na(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}a(AF,"convertActionImport");function GW(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",Qf(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",Qf(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,KW)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,o=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)o.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||o.push(l);return gg(e,t,o)}),n}a(GW,"convertAction");function KW(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,o=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)o.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||o.push(l);return gg(e,t,o)}),n}a(KW,"convertActionParameter");function XW(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,MT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,bF)),(0,Se.lazy)(n,"annotations",na(e,t)),n}a(XW,"convertComplexType");function QW(e,t){let n=t;return(0,Se.lazy)(n,"annotations",na(e,t)),n}a(QW,"convertTypeDefinition");function qW(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Xf.VocabularyReferences,diagnostics:[]};e.references.length===0&&(e.references=Xf.VocabularyReferences);let n=new VT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,vF)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,EF)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,TF)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,WW)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,GW)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,XW)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,AF)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,QW)),t.resolvePath=a(function(r){let o=lr(n,void 0,r);return o.target&&ta(o.objectPath,o.target),o},"resolvePath"),t}a(qW,"convert");mg.convert=qW});var IF=ze(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.revertTermToGenericType=void 0;var zW=dg();function YW(e,t){var n,i,r,o,s,l;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(p=>hg(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(g=>g.alias===p[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?u={type:"Int",Int:t.valueOf()}:!((o=t.isFloat)===null||o===void 0)&&o.call(t)?u={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?u={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",Apply:t.Apply}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:hg(e,t)});return u}a(YW,"revertObjectToRawType");function xF(e,t){let n;switch(t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(o=>o.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=YW(e,t);break}return n}a(xF,"revertValueToRawType");var JW=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function PF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let o=CF(e,t[i][r]);if(!o.term){let s=(0,zW.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");o.term=l[0],l.length>1&&(o.qualifier=l[1])}}n.push(o)})})}a(PF,"revertAnnotationsToRawType");function hg(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(JW.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:xF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],PF(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value}}}a(hg,"revertCollectionItemToRawType");function CF(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],PF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>hg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:hg(e,t)}:{...n,value:xF(e,t)}}a(CF,"revertTermToGenericType");yg.revertTermToGenericType=CF});var OF=ze(ia=>{"use strict";var ZW=ia&&ia.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),UT=ia&&ia.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ZW(t,e,n)};Object.defineProperty(ia,"__esModule",{value:!0});UT(SF(),ia);UT(dg(),ia);UT(IF(),ia)});var WT=ze(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.MergedRawMetadata=wa.RawMetadataInstance=wa.ensureArray=void 0;function e5(e){return e==null?[]:Array.isArray(e)?e:[e]}a(e5,"ensureArray");wa.ensureArray=e5;var BT=class BT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};a(BT,"RawMetadataInstance");var jT=BT;wa.RawMetadataInstance=jT;var HT=class HT{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};a(HT,"MergedRawMetadata");var $T=HT;wa.MergedRawMetadata=$T});var NF=ze(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.merge=void 0;var t5=WT();function n5(...e){let t=new t5.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}a(n5,"merge");vg.merge=n5});var LF=ze(Tg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=S||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!I,Y.noscript=!!(I||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(E)),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),dt(Y,"onready")}a(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}a(S,"F"),S.prototype=I;var Y=new S;return Y}),Object.keys||(Object.keys=function(I){var S=[];for(var Y in I)I.hasOwnProperty(Y)&&S.push(Y);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,M=0,Ve=t.length;M<Ve;M++){var Nt=I[t[M]].length;if(Nt>S)switch(t[M]){case"textNode":fn(I);break;case"cdata":$e(I,"oncdata",I.cdata),I.cdata="";break;case"script":$e(I,"onscript",I.script),I.script="";break;default:Sn(I,"Max buffer length exceeded: "+t[M])}Y=Math.max(Y,Nt)}var Qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=Qe+I.position}a(i,"checkBufferLength");function r(I){for(var S=0,Y=t.length;S<Y;S++)I[t[S]]=""}a(r,"clearBuffers");function o(I){fn(I),I.cdata!==""&&($e(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&($e(I,"onscript",I.script),I.script="")}a(o,"flushBuffers"),n.prototype={end:function(){jt(this)},write:st,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){o(this)}};var s;try{s=require("stream").Stream}catch{s=a(function(){},"Stream")}s||(s=a(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}a(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(M){Y.emit("error",M),Y._parser.error=null},this._decoder=null,l.forEach(function(M){Object.defineProperty(Y,"on"+M,{get:function(){return Y._parser["on"+M]},set:function(Ve){if(!Ve)return Y.removeAllListeners(M),Y._parser["on"+M]=Ve,Ve;Y.on(M,Ve)},enumerable:!0,configurable:!1})})}a(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var Y=this;return!Y._parser["on"+I]&&l.indexOf(I)!==-1&&(Y._parser["on"+I]=function(){var M=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);M.splice(0,0,I),Y.emit.apply(Y,M)}),s.prototype.on.call(Y,I,S)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:v,xmlns:A},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,H=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function W(I){return I===" "||I===`
20
+ `||I==="\r"||I===" "}a(W,"isWhitespace");function ie(I){return I==='"'||I==="'"}a(ie,"isQuote");function Z(I){return I===">"||W(I)}a(Z,"isAttribEnd");function ne(I,S){return I.test(S)}a(ne,"isMatch");function Le(I,S){return!ne(I,S)}a(Le,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],Y=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=Y});for(var Pt in e.STATE)e.STATE[e.STATE[Pt]]=Pt;D=e.STATE;function dt(I,S,Y){I[S]&&I[S](Y)}a(dt,"emit");function $e(I,S,Y){I.textNode&&fn(I),dt(I,S,Y)}a($e,"emitNode");function fn(I){I.textNode=Vi(I.opt,I.textNode),I.textNode&&dt(I,"ontext",I.textNode),I.textNode=""}a(fn,"closeText");function Vi(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}a(Vi,"textopts");function Sn(I,S){return fn(I),I.trackPosition&&(S+=`
21
21
  Line: `+I.line+`
22
22
  Column: `+I.column+`
23
- Char: `+I.c),S=new Error(S),I.error=S,pt(I,"onerror",S),I}a(Sn,"error");function jt(I){return I.sawRoot&&!I.closedRoot&&Le(I,"Unclosed root tag"),I.state!==D.BEGIN&&I.state!==D.BEGIN_WHITESPACE&&I.state!==D.TEXT&&Sn(I,"Unexpected end"),fn(I),I.c="",I.closed=!0,pt(I,"onend"),n.call(I,I.strict,I.opt),I}a(jt,"end");function Le(I,S){if(typeof I!="object"||!(I instanceof n))throw new Error("bad call to strictFail");I.strict&&Sn(I,S)}a(Le,"strictFail");function Ai(I){I.strict||(I.tagName=I.tagName[I.looseCase]());var S=I.tags[I.tags.length-1]||I,Y=I.tag={name:I.tagName,attributes:{}};I.opt.xmlns&&(Y.ns=S.ns),I.attribList.length=0,$e(I,"onopentagstart",Y)}a(Ai,"newTag");function Ct(I,S){var Y=I.indexOf(":"),M=Y<0?["",I]:I.split(":"),Ve=M[0],Nt=M[1];return S&&I==="xmlns"&&(Ve="xmlns",Nt=""),{prefix:Ve,local:Nt}}a(Ct,"qname");function Dt(I){if(I.strict||(I.attribName=I.attribName[I.looseCase]()),I.attribList.indexOf(I.attribName)!==-1||I.tag.attributes.hasOwnProperty(I.attribName)){I.attribName=I.attribValue="";return}if(I.opt.xmlns){var S=Ct(I.attribName,!0),Y=S.prefix,M=S.local;if(Y==="xmlns")if(M==="xml"&&I.attribValue!==v)Le(I,"xml: prefix must be bound to "+v+`
24
- Actual: `+I.attribValue);else if(M==="xmlns"&&I.attribValue!==A)Le(I,"xmlns: prefix must be bound to "+A+`
25
- Actual: `+I.attribValue);else{var Ve=I.tag,Nt=I.tags[I.tags.length-1]||I;Ve.ns===Nt.ns&&(Ve.ns=Object.create(Nt.ns)),Ve.ns[M]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,$e(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}a(Dt,"attrib");function rn(I,S){if(I.opt.xmlns){var Y=I.tag,M=Ct(I.tagName);Y.prefix=M.prefix,Y.local=M.local,Y.uri=Y.ns[M.prefix]||"",Y.prefix&&!Y.uri&&(Le(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=M.prefix);var Ve=I.tags[I.tags.length-1]||I;Y.ns&&Ve.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Bt){$e(I,"onopennamespace",{prefix:Bt,uri:Y.ns[Bt]})});for(var Nt=0,Qe=I.attribList.length;Nt<Qe;Nt++){var Vt=I.attribList[Nt],Rn=Vt[0],on=Vt[1],$t=Ct(Rn,!0),ni=$t.prefix,tr=$t.local,un=ni===""?"":Y.ns[ni]||"",ui={name:Rn,value:on,prefix:ni,local:tr,uri:un};ni&&ni!=="xmlns"&&!un&&(Le(I,"Unbound namespace prefix: "+JSON.stringify(ni)),ui.uri=ni),I.tag.attributes[Rn]=ui,$e(I,"onattribute",ui)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),$e(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=D.SCRIPT:I.state=D.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}a(rn,"openTag");function Mi(I){if(!I.tagName){Le(I,"Weird empty close tag."),I.textNode+="</>",I.state=D.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=D.SCRIPT;return}$e(I,"onscript",I.script),I.script=""}var S=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var M=Y;S--;){var Ve=I.tags[S];if(Ve.name!==M)Le(I,"Unexpected close tag");else break}if(S<0){Le(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=D.TEXT;return}I.tagName=Y;for(var Nt=I.tags.length;Nt-- >S;){var Qe=I.tag=I.tags.pop();I.tagName=I.tag.name,$e(I,"onclosetag",I.tagName);var Vt={};for(var Rn in Qe.ns)Vt[Rn]=Qe.ns[Rn];var on=I.tags[I.tags.length-1]||I;I.opt.xmlns&&Qe.ns!==on.ns&&Object.keys(Qe.ns).forEach(function($t){var ni=Qe.ns[$t];$e(I,"onclosenamespace",{prefix:$t,uri:ni})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}a(Mi,"closeTag");function Fe(I){var S=I.entity,Y=S.toLowerCase(),M,Ve="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[Y]?I.ENTITIES[Y]:(S=Y,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),M=parseInt(S,16),Ve=M.toString(16)):(S=S.slice(1),M=parseInt(S,10),Ve=M.toString(10))),S=S.replace(/^0+/,""),isNaN(M)||Ve.toLowerCase()!==S?(Le(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(M))}a(Fe,"parseEntity");function Gn(I,S){S==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):G(S)||(Le(I,"Non-whitespace before first tag."),I.textNode=S,I.state=D.TEXT)}a(Gn,"beginWhiteSpace");function Sr(I,S){var Y="";return S<I.length&&(Y=I.charAt(S)),Y}a(Sr,"charAt");function st(I){var S=this;if(this.error)throw this.error;if(S.closed)return Sn(S,"Cannot write after close. Assign an onready handler.");if(I===null)return jt(S);typeof I=="object"&&(I=I.toString());for(var Y=0,M="";M=Sr(I,Y++),S.c=M,!!M;)switch(S.trackPosition&&(S.position++,M===`
23
+ Char: `+I.c),S=new Error(S),I.error=S,dt(I,"onerror",S),I}a(Sn,"error");function jt(I){return I.sawRoot&&!I.closedRoot&&Re(I,"Unclosed root tag"),I.state!==D.BEGIN&&I.state!==D.BEGIN_WHITESPACE&&I.state!==D.TEXT&&Sn(I,"Unexpected end"),fn(I),I.c="",I.closed=!0,dt(I,"onend"),n.call(I,I.strict,I.opt),I}a(jt,"end");function Re(I,S){if(typeof I!="object"||!(I instanceof n))throw new Error("bad call to strictFail");I.strict&&Sn(I,S)}a(Re,"strictFail");function Ai(I){I.strict||(I.tagName=I.tagName[I.looseCase]());var S=I.tags[I.tags.length-1]||I,Y=I.tag={name:I.tagName,attributes:{}};I.opt.xmlns&&(Y.ns=S.ns),I.attribList.length=0,$e(I,"onopentagstart",Y)}a(Ai,"newTag");function Ct(I,S){var Y=I.indexOf(":"),M=Y<0?["",I]:I.split(":"),Ve=M[0],Nt=M[1];return S&&I==="xmlns"&&(Ve="xmlns",Nt=""),{prefix:Ve,local:Nt}}a(Ct,"qname");function Dt(I){if(I.strict||(I.attribName=I.attribName[I.looseCase]()),I.attribList.indexOf(I.attribName)!==-1||I.tag.attributes.hasOwnProperty(I.attribName)){I.attribName=I.attribValue="";return}if(I.opt.xmlns){var S=Ct(I.attribName,!0),Y=S.prefix,M=S.local;if(Y==="xmlns")if(M==="xml"&&I.attribValue!==v)Re(I,"xml: prefix must be bound to "+v+`
24
+ Actual: `+I.attribValue);else if(M==="xmlns"&&I.attribValue!==A)Re(I,"xmlns: prefix must be bound to "+A+`
25
+ Actual: `+I.attribValue);else{var Ve=I.tag,Nt=I.tags[I.tags.length-1]||I;Ve.ns===Nt.ns&&(Ve.ns=Object.create(Nt.ns)),Ve.ns[M]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,$e(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}a(Dt,"attrib");function rn(I,S){if(I.opt.xmlns){var Y=I.tag,M=Ct(I.tagName);Y.prefix=M.prefix,Y.local=M.local,Y.uri=Y.ns[M.prefix]||"",Y.prefix&&!Y.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=M.prefix);var Ve=I.tags[I.tags.length-1]||I;Y.ns&&Ve.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Bt){$e(I,"onopennamespace",{prefix:Bt,uri:Y.ns[Bt]})});for(var Nt=0,Qe=I.attribList.length;Nt<Qe;Nt++){var Vt=I.attribList[Nt],Rn=Vt[0],on=Vt[1],$t=Ct(Rn,!0),ni=$t.prefix,tr=$t.local,un=ni===""?"":Y.ns[ni]||"",ui={name:Rn,value:on,prefix:ni,local:tr,uri:un};ni&&ni!=="xmlns"&&!un&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ni)),ui.uri=ni),I.tag.attributes[Rn]=ui,$e(I,"onattribute",ui)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),$e(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=D.SCRIPT:I.state=D.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}a(rn,"openTag");function Mi(I){if(!I.tagName){Re(I,"Weird empty close tag."),I.textNode+="</>",I.state=D.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=D.SCRIPT;return}$e(I,"onscript",I.script),I.script=""}var S=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var M=Y;S--;){var Ve=I.tags[S];if(Ve.name!==M)Re(I,"Unexpected close tag");else break}if(S<0){Re(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=D.TEXT;return}I.tagName=Y;for(var Nt=I.tags.length;Nt-- >S;){var Qe=I.tag=I.tags.pop();I.tagName=I.tag.name,$e(I,"onclosetag",I.tagName);var Vt={};for(var Rn in Qe.ns)Vt[Rn]=Qe.ns[Rn];var on=I.tags[I.tags.length-1]||I;I.opt.xmlns&&Qe.ns!==on.ns&&Object.keys(Qe.ns).forEach(function($t){var ni=Qe.ns[$t];$e(I,"onclosenamespace",{prefix:$t,uri:ni})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}a(Mi,"closeTag");function _e(I){var S=I.entity,Y=S.toLowerCase(),M,Ve="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[Y]?I.ENTITIES[Y]:(S=Y,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),M=parseInt(S,16),Ve=M.toString(16)):(S=S.slice(1),M=parseInt(S,10),Ve=M.toString(10))),S=S.replace(/^0+/,""),isNaN(M)||Ve.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(M))}a(_e,"parseEntity");function Gn(I,S){S==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):W(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=D.TEXT)}a(Gn,"beginWhiteSpace");function Sr(I,S){var Y="";return S<I.length&&(Y=I.charAt(S)),Y}a(Sr,"charAt");function st(I){var S=this;if(this.error)throw this.error;if(S.closed)return Sn(S,"Cannot write after close. Assign an onready handler.");if(I===null)return jt(S);typeof I=="object"&&(I=I.toString());for(var Y=0,M="";M=Sr(I,Y++),S.c=M,!!M;)switch(S.trackPosition&&(S.position++,M===`
26
26
  `?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,M==="\uFEFF")continue;Gn(S,M);continue;case D.BEGIN_WHITESPACE:Gn(S,M);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Ve=Y-1;M&&M!=="<"&&M!=="&";)M=Sr(I,Y++),M&&S.trackPosition&&(S.position++,M===`
27
- `?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(Ve,Y-1)}M==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!G(M)&&(!S.sawRoot||S.closedRoot)&&Le(S,"Text data outside of root node."),M==="&"?S.state=D.TEXT_ENTITY:S.textNode+=M);continue;case D.SCRIPT:M==="<"?S.state=D.SCRIPT_ENDING:S.script+=M;continue;case D.SCRIPT_ENDING:M==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+M,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(M==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!G(M))if(he(O,M))S.state=D.OPEN_TAG,S.tagName=M;else if(M==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(M==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Le(S,"Unencoded <"),S.startTagPosition+1<S.position){var Nt=S.position-S.startTagPosition;M=new Array(Nt).join(" ")+M}S.textNode+="<"+M,S.state=D.TEXT}continue;case D.SGML_DECL:(S.sgmlDecl+M).toUpperCase()===g?($e(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+M==="--"?(S.state=D.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+M).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Le(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):M===">"?($e(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(re(M)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=M);continue;case D.SGML_DECL_QUOTED:M===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=M;continue;case D.DOCTYPE:M===">"?(S.state=D.TEXT,$e(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=M,M==="["?S.state=D.DOCTYPE_DTD:re(M)&&(S.state=D.DOCTYPE_QUOTED,S.q=M));continue;case D.DOCTYPE_QUOTED:S.doctype+=M,M===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:S.doctype+=M,M==="]"?S.state=D.DOCTYPE:re(M)&&(S.state=D.DOCTYPE_DTD_QUOTED,S.q=M);continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=M,M===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:M==="-"?S.state=D.COMMENT_ENDING:S.comment+=M;continue;case D.COMMENT_ENDING:M==="-"?(S.state=D.COMMENT_ENDED,S.comment=Vi(S.opt,S.comment),S.comment&&$e(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+M,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:M!==">"?(Le(S,"Malformed comment"),S.comment+="--"+M,S.state=D.COMMENT):S.state=D.TEXT;continue;case D.CDATA:M==="]"?S.state=D.CDATA_ENDING:S.cdata+=M;continue;case D.CDATA_ENDING:M==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+M,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:M===">"?(S.cdata&&$e(S,"oncdata",S.cdata),$e(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):M==="]"?S.cdata+="]":(S.cdata+="]]"+M,S.state=D.CDATA);continue;case D.PROC_INST:M==="?"?S.state=D.PROC_INST_ENDING:G(M)?S.state=D.PROC_INST_BODY:S.procInstName+=M;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&G(M))continue;M==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=M;continue;case D.PROC_INST_ENDING:M===">"?($e(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+M,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:he(R,M)?S.tagName+=M:(Ai(S),M===">"?rn(S):M==="/"?S.state=D.OPEN_TAG_SLASH:(G(M)||Le(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:M===">"?(rn(S,!0),Mi(S)):(Le(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(G(M))continue;M===">"?rn(S):M==="/"?S.state=D.OPEN_TAG_SLASH:he(O,M)?(S.attribName=M,S.attribValue="",S.state=D.ATTRIB_NAME):Le(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:M==="="?S.state=D.ATTRIB_VALUE:M===">"?(Le(S,"Attribute without value"),S.attribValue=S.attribName,Dt(S),rn(S)):G(M)?S.state=D.ATTRIB_NAME_SAW_WHITE:he(R,M)?S.attribName+=M:Le(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(M==="=")S.state=D.ATTRIB_VALUE;else{if(G(M))continue;Le(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",$e(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",M===">"?rn(S):he(O,M)?(S.attribName=M,S.state=D.ATTRIB_NAME):(Le(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(G(M))continue;re(M)?(S.q=M,S.state=D.ATTRIB_VALUE_QUOTED):(Le(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=M);continue;case D.ATTRIB_VALUE_QUOTED:if(M!==S.q){M==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=M;continue}Dt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:G(M)?S.state=D.ATTRIB:M===">"?rn(S):M==="/"?S.state=D.OPEN_TAG_SLASH:he(O,M)?(Le(S,"No whitespace between attributes"),S.attribName=M,S.attribValue="",S.state=D.ATTRIB_NAME):Le(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(M)){M==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=M;continue}Dt(S),M===">"?rn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)M===">"?Mi(S):he(R,M)?S.tagName+=M:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(G(M)||Le(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(G(M))continue;De(O,M)?S.script?(S.script+="</"+M,S.state=D.SCRIPT):Le(S,"Invalid tagname in closing tag."):S.tagName=M}continue;case D.CLOSE_TAG_SAW_WHITE:if(G(M))continue;M===">"?Mi(S):Le(S,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var Qe,Vt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,Vt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,Vt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,Vt="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var Rn=Fe(S);S.entity="",S.state=Qe,S.write(Rn)}else S[Vt]+=Fe(S),S.entity="",S.state=Qe;else he(S.entity.length?j:U,M)?S.entity+=M:(Le(S,"Invalid character in entity name"),S[Vt]+="&"+S.entity+M,S.entity="",S.state=Qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}a(st,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=a(function(){var M=16384,Ve=[],Nt,Qe,Vt=-1,Rn=arguments.length;if(!Rn)return"";for(var on="";++Vt<Rn;){var $t=Number(arguments[Vt]);if(!isFinite($t)||$t<0||$t>1114111||S($t)!==$t)throw RangeError("Invalid code point: "+$t);$t<=65535?Ve.push($t):($t-=65536,Nt=($t>>10)+55296,Qe=$t%1024+56320,Ve.push(Nt,Qe)),(Vt+1===Rn||Ve.length>M)&&(on+=I.apply(null,Ve),Ve.length=0)}return on},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof vg>"u"?vg.sax={}:vg)});var Tg=ze((EY,OF)=>{OF.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Eg=ze((bY,NF)=>{var ZW=Tg().isArray;NF.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!ZW(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var KT=ze((AY,wF)=>{var eG=IF(),tG={on:function(){},parse:function(){}},rt=Eg(),al=Tg().isArray,H,GT=!0,Be;function nG(e){return H=rt.copyOptions(e),rt.ensureFlagExists("ignoreDeclaration",H),rt.ensureFlagExists("ignoreInstruction",H),rt.ensureFlagExists("ignoreAttributes",H),rt.ensureFlagExists("ignoreText",H),rt.ensureFlagExists("ignoreComment",H),rt.ensureFlagExists("ignoreCdata",H),rt.ensureFlagExists("ignoreDoctype",H),rt.ensureFlagExists("compact",H),rt.ensureFlagExists("alwaysChildren",H),rt.ensureFlagExists("addParent",H),rt.ensureFlagExists("trim",H),rt.ensureFlagExists("nativeType",H),rt.ensureFlagExists("nativeTypeAttributes",H),rt.ensureFlagExists("sanitize",H),rt.ensureFlagExists("instructionHasAttributes",H),rt.ensureFlagExists("captureSpacesBetweenElements",H),rt.ensureAlwaysArrayExists(H),rt.ensureKeyExists("declaration",H),rt.ensureKeyExists("instruction",H),rt.ensureKeyExists("attributes",H),rt.ensureKeyExists("text",H),rt.ensureKeyExists("comment",H),rt.ensureKeyExists("cdata",H),rt.ensureKeyExists("doctype",H),rt.ensureKeyExists("type",H),rt.ensureKeyExists("name",H),rt.ensureKeyExists("elements",H),rt.ensureKeyExists("parent",H),rt.checkFnExists("doctype",H),rt.checkFnExists("instruction",H),rt.checkFnExists("cdata",H),rt.checkFnExists("comment",H),rt.checkFnExists("text",H),rt.checkFnExists("instructionName",H),rt.checkFnExists("elementName",H),rt.checkFnExists("attributeName",H),rt.checkFnExists("attributeValue",H),rt.checkFnExists("attributes",H),H}a(nG,"validateOptions");function VF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}a(VF,"nativeType");function qf(e,t){var n;if(H.compact){if(!Be[H[e+"Key"]]&&(al(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(Be[H[e+"Key"]]=[]),Be[H[e+"Key"]]&&!al(Be[H[e+"Key"]])&&(Be[H[e+"Key"]]=[Be[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,Be)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,Be);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,Be)]=i}}al(Be[H[e+"Key"]])?Be[H[e+"Key"]].push(t):Be[H[e+"Key"]]=t}else{Be[H.elementsKey]||(Be[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,Be):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,Be))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,Be)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,Be)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=Be),Be[H.elementsKey].push(r)}}a(qf,"addField");function MF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,Be)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=VF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,Be)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],Be)]=n}}return e}a(MF,"manipulateAttributes");function iG(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=MF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;Be[H.declarationKey]={},Object.keys(t).length&&(Be[H.declarationKey][H.attributesKey]=t),H.addParent&&(Be[H.declarationKey][H.parentKey]=Be)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,qf("instruction",r)}}a(iG,"onInstruction");function LF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=MF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,Be)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in Be)&&(al(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(Be[e]=[]),Be[e]&&!al(Be[e])&&(Be[e]=[Be[e]]),al(Be[e])?Be[e].push(n):Be[e]=n}else Be[H.elementsKey]||(Be[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),Be[H.elementsKey].push(n);n[H.parentKey]=Be,Be=n}a(LF,"onStartElement");function FF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=VF(e)),H.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),qf("text",e))}a(FF,"onText");function RF(e){H.ignoreComment||(H.trim&&(e=e.trim()),qf("comment",e))}a(RF,"onComment");function _F(e){var t=Be[H.parentKey];H.addParent||delete Be[H.parentKey],Be=t}a(_F,"onEndElement");function rG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),qf("cdata",e))}a(rG,"onCdata");function oG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),qf("doctype",e))}a(oG,"onDoctype");function DF(e){e.note=e}a(DF,"onError");wF.exports=function(e,t){var n=GT?eG.parser(!0,{}):n=new tG.Parser("UTF-8"),i={};if(Be=i,H=nG(t),GT?(n.opt={strictEntities:!0},n.onopentag=LF,n.ontext=FF,n.oncomment=RF,n.onclosetag=_F,n.onerror=DF,n.oncdata=rG,n.ondoctype=oG,n.onprocessinginstruction=iG):(n.on("startElement",LF),n.on("text",FF),n.on("comment",RF),n.on("endElement",_F),n.on("error",DF)),GT)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var jF=ze((xY,UF)=>{var kF=Eg(),aG=KT();function sG(e){var t=kF.copyOptions(e);return kF.ensureSpacesExists(t),t}a(sG,"validateOptions");UF.exports=function(e,t){var n,i,r,o;return n=sG(t),i=aG(e,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===o?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var QT=ze((CY,qF)=>{var lt=Eg(),cG=Tg().isArray,mi,hi;function lG(e){var t=lt.copyOptions(e);return lt.ensureFlagExists("ignoreDeclaration",t),lt.ensureFlagExists("ignoreInstruction",t),lt.ensureFlagExists("ignoreAttributes",t),lt.ensureFlagExists("ignoreText",t),lt.ensureFlagExists("ignoreComment",t),lt.ensureFlagExists("ignoreCdata",t),lt.ensureFlagExists("ignoreDoctype",t),lt.ensureFlagExists("compact",t),lt.ensureFlagExists("indentText",t),lt.ensureFlagExists("indentCdata",t),lt.ensureFlagExists("indentAttributes",t),lt.ensureFlagExists("indentInstruction",t),lt.ensureFlagExists("fullTagEmptyElement",t),lt.ensureFlagExists("noQuotesForNativeAttributes",t),lt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),lt.ensureKeyExists("declaration",t),lt.ensureKeyExists("instruction",t),lt.ensureKeyExists("attributes",t),lt.ensureKeyExists("text",t),lt.ensureKeyExists("comment",t),lt.ensureKeyExists("cdata",t),lt.ensureKeyExists("doctype",t),lt.ensureKeyExists("type",t),lt.ensureKeyExists("name",t),lt.ensureKeyExists("elements",t),lt.checkFnExists("doctype",t),lt.checkFnExists("instruction",t),lt.checkFnExists("cdata",t),lt.checkFnExists("comment",t),lt.checkFnExists("text",t),lt.checkFnExists("instructionName",t),lt.checkFnExists("elementName",t),lt.checkFnExists("attributeName",t),lt.checkFnExists("attributeValue",t),lt.checkFnExists("attributes",t),lt.checkFnExists("fullTagEmptyElement",t),t}a(lG,"validateOptions");function So(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}a(So,"writeIndentation");function bg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,hi,mi));var i,r,o,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"&quot;"),o="attributeNameFn"in t?t.attributeNameFn(i,r,hi,mi):i,l.push(t.spaces&&t.indentAttributes?So(t,n+1,!1):" "),l.push(o+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,hi,mi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(So(t,n,!1)),l.join("")}a(bg,"writeAttributes");function $F(e,t,n){return mi=e,hi="xml",t.ignoreDeclaration?"":"<?xml"+bg(e[t.attributesKey],t,n)+"?>"}a($F,"writeDeclaration");function BF(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],hi,mi):i;if(typeof e[i]=="object")return mi=e,hi=r,"<?"+r+bg(e[i][t.attributesKey],t,n)+"?>";var o=e[i]?e[i]:"";return"instructionFn"in t&&(o=t.instructionFn(o,i,hi,mi)),"<?"+r+(o?" "+o:"")+"?>"}a(BF,"writeInstruction");function HF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,hi,mi):e)+"-->"}a(HF,"writeComment");function WF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,hi,mi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}a(WF,"writeCdata");function GF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,hi,mi):e)+">"}a(GF,"writeDoctype");function XT(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,hi,mi):e)}a(XT,"writeText");function fG(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}a(fG,"hasContent");function uG(e,t,n){mi=e,hi=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(bg(e[t.attributesKey],t,n));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e.name,e):o=t.fullTagEmptyElement),o?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(KF(e[t.elementsKey],t,n+1)),mi=e,hi=e.name),i.push(t.spaces&&fG(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}a(uG,"writeElement");function KF(e,t,n,i){return e.reduce(function(r,o){var s=So(t,n,i&&!r);switch(o.type){case"element":return r+s+uG(o,t,n);case"comment":return r+s+HF(o[t.commentKey],t);case"doctype":return r+s+GF(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+WF(o[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+XT(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?s:"")+BF(l,t,n)}},"")}a(KF,"writeElements");function XF(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}a(XF,"hasContentCompact");function pG(e,t,n,i,r){mi=e,hi=t;var o="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var s=[];if(t){if(s.push("<"+o),typeof e!="object")return s.push(">"+XT(e,n)+"</"+o+">"),s.join("");e[n.attributesKey]&&s.push(bg(e[n.attributesKey],n,i));var l=XF(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(QF(e,n,i+1,!1)),mi=e,hi=t,t&&s.push((r?So(n,i,!1):"")+"</"+o+">"),s.join("")}a(pG,"writeElementCompact");function QF(e,t,n,i){var r,o,s,l=[];for(o in e)if(e.hasOwnProperty(o))for(s=cG(e[o])?e[o]:[e[o]],r=0;r<s.length;++r){switch(o){case t.declarationKey:l.push($F(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?So(t,n,i):"")+BF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?So(t,n,i):"")+XT(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?So(t,n,i):"")+WF(s[r],t));break;case t.doctypeKey:l.push(So(t,n,i)+GF(s[r],t));break;case t.commentKey:l.push(So(t,n,i)+HF(s[r],t));break;default:l.push(So(t,n,i)+pG(s[r],o,t,n,XF(s[r],t)))}i=i&&!l.length}return l.join("")}a(QF,"writeElementsCompact");qF.exports=function(e,t){t=lG(t);var n=[];return mi=e,hi="_root_",t.compact?n.push(QF(e,t,0,!0)):(e[t.declarationKey]&&n.push($F(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(KF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var YF=ze((OY,zF)=>{var dG=QT();zF.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return dG(n,t)}});var Xs=ze((NY,JF)=>{var gG=KT(),mG=jF(),hG=QT(),yG=YF();JF.exports={xml2js:gG,xml2json:mG,js2xml:hG,json2xml:yG}});var rR=ze(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.convertEntityTypeAnnotations=Bi.convertPropertyAnnotations=Bi.convertNavigationPropertyAnnotations=Bi.convertEntitySetAnnotations=Bi.convertGenericAnnotations=Bi.convertV2Annotations=void 0;function vG(e,t,n){let i=[];switch(t){case"EntitySet":eR(e,i);break;case"EntityType":iR(e,i);break;case"NavigationProperty":tR(e,n,i);break;case"Property":nR(e,n,i);break;case"Singleton":break;default:break}return ZF(e,n,i),i}a(vG,"convertV2Annotations");Bi.convertV2Annotations=vG;function ZF(e,t,n){function i(r,o){r&&n.push(o)}if(a(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}a(ZF,"convertGenericAnnotations");Bi.convertGenericAnnotations=ZF;function eR(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}a(eR,"convertEntitySetAnnotations");Bi.convertEntitySetAnnotations=eR;function tR(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}a(tR,"convertNavigationPropertyAnnotations");Bi.convertNavigationPropertyAnnotations=tR;function nR(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}a(nR,"convertPropertyAnnotations");Bi.convertPropertyAnnotations=nR;function iR(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}a(iR,"convertEntityTypeAnnotations");Bi.convertEntityTypeAnnotations=iR});var pR=ze(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.parse=void 0;var TG=Xs(),We=WT(),zf=rR(),sR=/^Collection\((.+)\)$/;function EG(e){return e.Type!==null&&e.Type!==void 0}a(EG,"isV4NavProperty");function bG(e){return e.map(t=>t._attributes.Name)}a(bG,"getEntityTypeKeys");function cR(e,t,n,i){return e.reduce((r,o)=>{let s={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:sl(o._attributes.Type).type};if(o._attributes.MaxLength&&(s.maxLength=parseInt(o._attributes.MaxLength,10)),o._attributes.Precision&&(s.precision=parseInt(o._attributes.Precision,10)),o._attributes.Scale&&(s.scale=parseInt(o._attributes.Scale,10)),s.nullable=o._attributes.Nullable!=="false",o._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(o._attributes.DefaultValue,10);break;case"Edm.Decimal":s.defaultValue=parseFloat(o._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=o._attributes.DefaultValue==="true";break;default:s.defaultValue=o._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,zf.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(Qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}a(cR,"parseProperties");function AG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}a(AG,"parseReferentialConstraint");function SG(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),o=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&o!==void 0){let s=(0,We.ensureArray)(i.Principal.PropertyRef),l=(0,We.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(o=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,We.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:o.type,targetProperty:l[p]._attributes.Name})}}return n},[])}a(SG,"parseV2ReferentialConstraint");function lR(e,t,n,i){return e.reduce((r,o)=>{let s=o._attributes;if(EG(s)){let l=s.Type.match(sR),u=l!==null,p=xo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:AG((0,We.ensureArray)(o.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,zf.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Qs(`${n}/${s.Name}`,g))}return r},[])}a(lR,"parseNavigationProperties");function xG(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,o=(0,We.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:o}})}a(xG,"parseAssociationSets");function PG(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,We.ensureArray)(n.End).map(o=>({type:o._attributes.Type,role:o._attributes.Role,multiplicity:o._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:SG((0,We.ensureArray)(n.ReferentialConstraint),r)}})}a(PG,"parseAssociations");function CG(e,t,n){return e.reduce((i,r)=>{let o=r.Key?bG((0,We.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=cR((0,We.ensureArray)(r.Property),o,s,t),p=lR((0,We.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,zf.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Qs(g.fullyQualifiedName,m)),i.push(g),i},[])}a(CG,"parseEntityTypes");function IG(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:s}=cR((0,We.ensureArray)(r.Property),[],o,t),l=lR((0,We.ensureArray)(r.NavigationProperty),r,o,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:o,properties:s,navigationProperties:l}),i},[])}a(IG,"parseComplexTypes");function OG(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}a(OG,"parseTypeDefinitions");function NG(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,We.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:o._attributes.Name,entityTypeName:xo(o._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,zf.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}a(NG,"parseEntitySets");function LG(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,We.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:o._attributes.Name,entityTypeName:xo(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,zf.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}a(LG,"parseSingletons");function oR(e,t,n){return e.map(i=>{let r=(0,We.ensureArray)(i.Parameter),o=i._attributes.IsBound==="true",s;n?s=r.map(u=>sl(u._attributes.Type).type).join(","):s=o?sl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:o,sourceType:o?sl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=sl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?sl(i.ReturnType._attributes.Type).type:""}})}a(oR,"parseActions");function FG(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),o=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:o,isFunction:!1,parameters:(0,We.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${o}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}a(FG,"parseV2FunctionImport");function aR(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:xo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:xo(r)}})}a(aR,"parseActionImports");function RG(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:o,...s}=i,l={};if(o){let u=Object.keys(o).find(g=>g!=="Property");l.name=o.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=uR(s,p,n):u&&(l.value=fR({[u]:o[u]},p,n)),i.Annotation){let g=xg((0,We.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Qs(p,g))}}return l})}a(RG,"parsePropertyValues");function Sg(e,t,n){let i=xg((0,We.ensureArray)(e.Annotation),t,n),r={type:e._attributes?xo(e._attributes.Type):void 0,propertyValues:RG((0,We.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}a(Sg,"parseRecord");function oa(e,t){return e[t]!=null}a(oa,"isExpressionOfType");function Ag(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}a(Ag,"parseModelPath");function zT(e,t,n){if(oa(e,"Record")){let i=(0,We.ensureArray)(e.Record).map((r,o)=>Sg(r,t+"/"+o,n));return i.type="Record",i}else if(oa(e,"PropertyPath")){let i=(0,We.ensureArray)(e.PropertyPath).map(r=>Ag(r,"PropertyPath"));return i.type="PropertyPath",i}else if(oa(e,"NavigationPropertyPath")){let i=(0,We.ensureArray)(e.NavigationPropertyPath).map(r=>Ag(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(oa(e,"String")){let i=(0,We.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(oa(e,"AnnotationPath")){let i=(0,We.ensureArray)(e.AnnotationPath).map(r=>Ag(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(oa(e,"Path")){let i=(0,We.ensureArray)(e.Path).map(r=>Ag(r,"Path"));return i.type="Path",i}else if(oa(e,"If")){let i=(0,We.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}a(zT,"parseCollection");function fR(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:zT(e.Collection,t,n)};case"Record":return{type:"Record",Record:Sg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}a(fR,"parseInlineExpression");function uR(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]._text};case"Collection":return{type:"Collection",Collection:zT(e.Collection,t,n)};case"Record":return{type:"Record",Record:Sg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}a(uR,"parseExpression");function _G(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,s={term:xo(i),qualifier:r},l=`${t}@${xo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(s.value=fR(o,l,n)),e.Annotation){let p=xg((0,We.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return oa(e,"Record")?s.record=Sg(e.Record,l,n):oa(e,"Collection")?s.collection=zT(e.Collection,l,n):u.length===1?s.value=uR({[u[0]]:e[u[0]]},l,n):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}a(_G,"parseAnnotation");function xg(e,t,n){return e.map(i=>_G(i,t,n))}a(xg,"parseAnnotations");function Qs(e,t){return{target:e,annotations:t}}a(Qs,"createAnnotationList");function DG(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Qs(xo(n._attributes.Target),xg((0,We.ensureArray)(n.Annotation),n._attributes.Target,t)))})}a(DG,"parseAnnotationLists");function VG(e,t,n){let i=e._attributes.Namespace,r=[],o=CG((0,We.ensureArray)(e.EntityType),r,i),s=IG((0,We.ensureArray)(e.ComplexType),r,i),l=OG((0,We.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=NG((0,We.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=LG((0,We.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=xG((0,We.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(FG((0,We.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(aR((0,We.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(aR((0,We.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(oR((0,We.ensureArray)(e.Action),i,!1)),v=v.concat(oR((0,We.ensureArray)(e.Function),i,!0)));let E=PG((0,We.ensureArray)(e.Association),i);DG((0,We.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:o}}a(VG,"parseSchema");function MG(e){return e.reduce((t,n)=>((0,We.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}a(MG,"parseReferences");var qT={};function sl(e){let t=e.match(sR),n=t?t[1]:e,i=xo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}a(sl,"unaliasType");function xo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let o=0,s=!0;o<e.length;o++){let l=e[o];if(s&&l==="."){let u=e.substring(r,o);i.push((t=qT[u])!==null&&t!==void 0?t:u),r=o,s=!1}n.includes(l)&&(i.push(e.substring(r,o+1)),r=o+1,s=!0)}return i.push(e.substring(r)),i.join("")}a(xo,"unalias");function wG(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),o=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,v;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,v=A.namespace)}),i.forEach(A=>{let E=o.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let R=O,U=n.find(j=>j.association===R.relationship);if(U){let j=U.associationEnd.find(G=>G.entitySet!==A.fullyQualifiedName);j&&(A.navigationPropertyBinding[O.name]=j.entitySet)}})}),o.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,R=t.find(U=>U.fullyQualifiedName===O.relationship);R&&R.referentialConstraints&&R.referentialConstraints.length>0&&(R.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=R.referentialConstraints:O.referentialConstraint=R.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:o}}a(wG,"mergeSchemas");function kG(e,t){qT=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{qT[n._attributes.Alias]=n._attributes.Namespace})}a(kG,"createAliasMap");function UG(e,t="serviceFile"){let n=(0,TG.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,We.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=MG((0,We.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));kG(o,r);let s=r.map(u=>VG(u,i,t));return new We.RawMetadataInstance(t,i,wG(s),o)}a(UG,"parse");Pg.parse=UG});var dR=ze(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.parse=cl.merge=void 0;var jG=CF();Object.defineProperty(cl,"merge",{enumerable:!0,get:function(){return jG.merge}});var $G=pR();Object.defineProperty(cl,"parse",{enumerable:!0,get:function(){return $G.parse}})});var PR=ze(()=>{var xR;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}a(r,"makeExporter");function o(){try{return Function("return this;")()}catch{}}a(o,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}a(s,"indirectEvalThis");function l(){return o()||s()}a(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Vs(Object.create(null))}:u?function(){return Vs({__proto__:null})}:function(){return Vs({})},has:p?function(k,$){return i.call(k,$)}:function(k,$){return $ in k},get:p?function(k,$){return i.call(k,$)?k[$]:void 0}:function(k,$){return k[$]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Sf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:xf(),E=typeof WeakMap=="function"?WeakMap:Pf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,R=wi(),U=Af(R);function j(k,$,Q,se){if(Fe(Q)){if(!Nt(k))throw new TypeError;if(!Vt($))throw new TypeError;return fn(k,$)}else{if(!Nt(k))throw new TypeError;if(!st($))throw new TypeError;if(!st(se)&&!Fe(se)&&!Gn(se))throw new TypeError;return Gn(se)&&(se=void 0),Q=Ve(Q),Vi(k,$,Q,se)}}a(j,"decorate"),t("decorate",j);function G(k,$){function Q(se,Ne){if(!st(se))throw new TypeError;if(!Fe(Ne)&&!Rn(Ne))throw new TypeError;Ct(k,$,se,Ne)}return a(Q,"decorator"),Q}a(G,"metadata"),t("metadata",G);function re(k,$,Q,se){if(!st(Q))throw new TypeError;return Fe(se)||(se=Ve(se)),Ct(k,$,Q,se)}a(re,"defineMetadata"),t("defineMetadata",re);function Z(k,$,Q){if(!st($))throw new TypeError;return Fe(Q)||(Q=Ve(Q)),Sn(k,$,Q)}a(Z,"hasMetadata"),t("hasMetadata",Z);function he(k,$,Q){if(!st($))throw new TypeError;return Fe(Q)||(Q=Ve(Q)),jt(k,$,Q)}a(he,"hasOwnMetadata"),t("hasOwnMetadata",he);function De(k,$,Q){if(!st($))throw new TypeError;return Fe(Q)||(Q=Ve(Q)),Le(k,$,Q)}a(De,"getMetadata"),t("getMetadata",De);function D(k,$,Q){if(!st($))throw new TypeError;return Fe(Q)||(Q=Ve(Q)),Ai(k,$,Q)}a(D,"getOwnMetadata"),t("getOwnMetadata",D);function Pt(k,$){if(!st(k))throw new TypeError;return Fe($)||($=Ve($)),Dt(k,$)}a(Pt,"getMetadataKeys"),t("getMetadataKeys",Pt);function pt(k,$){if(!st(k))throw new TypeError;return Fe($)||($=Ve($)),rn(k,$)}a(pt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",pt);function $e(k,$,Q){if(!st($))throw new TypeError;if(Fe(Q)||(Q=Ve(Q)),!st($))throw new TypeError;Fe(Q)||(Q=Ve(Q));var se=xr($,Q,!1);return Fe(se)?!1:se.OrdinaryDeleteMetadata(k,$,Q)}a($e,"deleteMetadata"),t("deleteMetadata",$e);function fn(k,$){for(var Q=k.length-1;Q>=0;--Q){var se=k[Q],Ne=se($);if(!Fe(Ne)&&!Gn(Ne)){if(!Vt(Ne))throw new TypeError;$=Ne}}return $}a(fn,"DecorateConstructor");function Vi(k,$,Q,se){for(var Ne=k.length-1;Ne>=0;--Ne){var pn=k[Ne],xn=pn($,Q,se);if(!Fe(xn)&&!Gn(xn)){if(!st(xn))throw new TypeError;se=xn}}return se}a(Vi,"DecorateProperty");function Sn(k,$,Q){var se=jt(k,$,Q);if(se)return!0;var Ne=Bt($);return Gn(Ne)?!1:Sn(k,Ne,Q)}a(Sn,"OrdinaryHasMetadata");function jt(k,$,Q){var se=xr($,Q,!1);return Fe(se)?!1:Y(se.OrdinaryHasOwnMetadata(k,$,Q))}a(jt,"OrdinaryHasOwnMetadata");function Le(k,$,Q){var se=jt(k,$,Q);if(se)return Ai(k,$,Q);var Ne=Bt($);if(!Gn(Ne))return Le(k,Ne,Q)}a(Le,"OrdinaryGetMetadata");function Ai(k,$,Q){var se=xr($,Q,!1);if(!Fe(se))return se.OrdinaryGetOwnMetadata(k,$,Q)}a(Ai,"OrdinaryGetOwnMetadata");function Ct(k,$,Q,se){var Ne=xr(Q,se,!0);Ne.OrdinaryDefineOwnMetadata(k,$,Q,se)}a(Ct,"OrdinaryDefineOwnMetadata");function Dt(k,$){var Q=rn(k,$),se=Bt(k);if(se===null)return Q;var Ne=Dt(se,$);if(Ne.length<=0)return Q;if(Q.length<=0)return Ne;for(var pn=new A,xn=[],nt=0,ge=Q;nt<ge.length;nt++){var ve=ge[nt],xe=pn.has(ve);xe||(pn.add(ve),xn.push(ve))}for(var Ie=0,ot=Ne;Ie<ot.length;Ie++){var ve=ot[Ie],xe=pn.has(ve);xe||(pn.add(ve),xn.push(ve))}return xn}a(Dt,"OrdinaryMetadataKeys");function rn(k,$){var Q=xr(k,$,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,$):[]}a(rn,"OrdinaryOwnMetadataKeys");function Mi(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}a(Mi,"Type");function Fe(k){return k===void 0}a(Fe,"IsUndefined");function Gn(k){return k===null}a(Gn,"IsNull");function Sr(k){return typeof k=="symbol"}a(Sr,"IsSymbol");function st(k){return typeof k=="object"?k!==null:typeof k=="function"}a(st,"IsObject");function I(k,$){switch(Mi(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var Q=$===3?"string":$===5?"number":"default",se=$t(k,o);if(se!==void 0){var Ne=se.call(k,Q);if(st(Ne))throw new TypeError;return Ne}return S(k,Q==="default"?"number":Q)}a(I,"ToPrimitive");function S(k,$){if($==="string"){var Q=k.toString;if(Qe(Q)){var se=Q.call(k);if(!st(se))return se}var Ne=k.valueOf;if(Qe(Ne)){var se=Ne.call(k);if(!st(se))return se}}else{var Ne=k.valueOf;if(Qe(Ne)){var se=Ne.call(k);if(!st(se))return se}var pn=k.toString;if(Qe(pn)){var se=pn.call(k);if(!st(se))return se}}throw new TypeError}a(S,"OrdinaryToPrimitive");function Y(k){return!!k}a(Y,"ToBoolean");function M(k){return""+k}a(M,"ToString");function Ve(k){var $=I(k,3);return Sr($)?$:M($)}a(Ve,"ToPropertyKey");function Nt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}a(Nt,"IsArray");function Qe(k){return typeof k=="function"}a(Qe,"IsCallable");function Vt(k){return typeof k=="function"}a(Vt,"IsConstructor");function Rn(k){switch(Mi(k)){case 3:return!0;case 4:return!0;default:return!1}}a(Rn,"IsPropertyKey");function on(k,$){return k===$||k!==k&&$!==$}a(on,"SameValueZero");function $t(k,$){var Q=k[$];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}a($t,"GetMethod");function ni(k){var $=$t(k,s);if(!Qe($))throw new TypeError;var Q=$.call(k);if(!st(Q))throw new TypeError;return Q}a(ni,"GetIterator");function tr(k){return k.value}a(tr,"IteratorValue");function un(k){var $=k.next();return $.done?!1:$}a(un,"IteratorStep");function ui(k){var $=k.return;$&&$.call(k)}a(ui,"IteratorClose");function Bt(k){var $=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||$!==m)return $;var Q=k.prototype,se=Q&&Object.getPrototypeOf(Q);if(se==null||se===Object.prototype)return $;var Ne=se.constructor;return typeof Ne!="function"||Ne===k?$:Ne}a(Bt,"OrdinaryGetPrototypeOf");function Ko(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ds(n.Reflect));var $,Q,se,Ne=new E,pn={registerProvider:xn,getProvider:ge,setProvider:xe};return pn;function xn(Ie){if(!Object.isExtensible(pn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Fe($):$=Ie;break;case $===Ie:break;case Fe(Q):Q=Ie;break;case Q===Ie:break;default:se===void 0&&(se=new A),se.add(Ie);break}}function nt(Ie,ot){if(!Fe($)){if($.isProviderFor(Ie,ot))return $;if(!Fe(Q)){if(Q.isProviderFor(Ie,ot))return $;if(!Fe(se))for(var Ht=ni(se);;){var an=un(Ht);if(!an)return;var nr=tr(an);if(nr.isProviderFor(Ie,ot))return ui(Ht),nr}}}if(!Fe(k)&&k.isProviderFor(Ie,ot))return k}function ge(Ie,ot){var Ht=Ne.get(Ie),an;return Fe(Ht)||(an=Ht.get(ot)),Fe(an)&&(an=nt(Ie,ot),Fe(an)||(Fe(Ht)&&(Ht=new v,Ne.set(Ie,Ht)),Ht.set(ot,an))),an}function ve(Ie){if(Fe(Ie))throw new TypeError;return $===Ie||Q===Ie||!Fe(se)&&se.has(Ie)}function xe(Ie,ot,Ht){if(!ve(Ht))throw new Error("Metadata provider not registered.");var an=ge(Ie,ot);if(an!==Ht){if(!Fe(an))return!1;var nr=Ne.get(Ie);Fe(nr)&&(nr=new v,Ne.set(Ie,nr)),nr.set(ot,Ht)}return!0}}a(Ko,"CreateMetadataRegistry");function wi(){var k;return!Fe(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=Ko()),!Fe(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}a(wi,"GetOrCreateMetadataRegistry");function Af(k){var $=new E,Q={isProviderFor:function(ve,xe){var Ie=$.get(ve);return Fe(Ie)?!1:Ie.has(xe)},OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:pn,OrdinaryOwnMetadataKeys:nt,OrdinaryDeleteMetadata:ge};return R.registerProvider(Q),Q;function se(ve,xe,Ie){var ot=$.get(ve),Ht=!1;if(Fe(ot)){if(!Ie)return;ot=new v,$.set(ve,ot),Ht=!0}var an=ot.get(xe);if(Fe(an)){if(!Ie)return;if(an=new v,ot.set(xe,an),!k.setProvider(ve,xe,Q))throw ot.delete(xe),Ht&&$.delete(ve),new Error("Wrong provider for target.")}return an}a(se,"GetOrCreateMetadataMap");function Ne(ve,xe,Ie){var ot=se(xe,Ie,!1);return Fe(ot)?!1:Y(ot.has(ve))}a(Ne,"OrdinaryHasOwnMetadata");function pn(ve,xe,Ie){var ot=se(xe,Ie,!1);if(!Fe(ot))return ot.get(ve)}a(pn,"OrdinaryGetOwnMetadata");function xn(ve,xe,Ie,ot){var Ht=se(Ie,ot,!0);Ht.set(ve,xe)}a(xn,"OrdinaryDefineOwnMetadata");function nt(ve,xe){var Ie=[],ot=se(ve,xe,!1);if(Fe(ot))return Ie;for(var Ht=ot.keys(),an=ni(Ht),nr=0;;){var pd=un(an);if(!pd)return Ie.length=nr,Ie;var Zy=tr(pd);try{Ie[nr]=Zy}catch(Cf){try{ui(an)}finally{throw Cf}}nr++}}a(nt,"OrdinaryOwnMetadataKeys");function ge(ve,xe,Ie){var ot=se(xe,Ie,!1);if(Fe(ot)||!ot.delete(ve))return!1;if(ot.size===0){var Ht=$.get(xe);Fe(Ht)||(Ht.delete(Ie),Ht.size===0&&$.delete(Ht))}return!0}a(ge,"OrdinaryDeleteMetadata")}a(Af,"CreateMetadataProvider");function Ds(k){var $=k.defineMetadata,Q=k.hasOwnMetadata,se=k.getOwnMetadata,Ne=k.getOwnMetadataKeys,pn=k.deleteMetadata,xn=new E,nt={isProviderFor:function(ge,ve){var xe=xn.get(ge);return!Fe(xe)&&xe.has(ve)?!0:Ne(ge,ve).length?(Fe(xe)&&(xe=new A,xn.set(ge,xe)),xe.add(ve),!0):!1},OrdinaryDefineOwnMetadata:$,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:se,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:pn};return nt}a(Ds,"CreateFallbackProvider");function xr(k,$,Q){var se=R.getProvider(k,$);if(!Fe(se))return se;if(Q){if(R.setProvider(k,$,U))return U;throw new Error("Illegal state.")}}a(xr,"GetMetadataProvider");function Sf(){var k={},$=[],Q=function(){function nt(ge,ve,xe){this._index=0,this._keys=ge,this._values=ve,this._selector=xe}return a(nt,"MapIterator"),nt.prototype["@@iterator"]=function(){return this},nt.prototype[s]=function(){return this},nt.prototype.next=function(){var ge=this._index;if(ge>=0&&ge<this._keys.length){var ve=this._selector(this._keys[ge],this._values[ge]);return ge+1>=this._keys.length?(this._index=-1,this._keys=$,this._values=$):this._index++,{value:ve,done:!1}}return{value:void 0,done:!0}},nt.prototype.throw=function(ge){throw this._index>=0&&(this._index=-1,this._keys=$,this._values=$),ge},nt.prototype.return=function(ge){return this._index>=0&&(this._index=-1,this._keys=$,this._values=$),{value:ge,done:!0}},nt}(),se=function(){function nt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return a(nt,"Map"),Object.defineProperty(nt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),nt.prototype.has=function(ge){return this._find(ge,!1)>=0},nt.prototype.get=function(ge){var ve=this._find(ge,!1);return ve>=0?this._values[ve]:void 0},nt.prototype.set=function(ge,ve){var xe=this._find(ge,!0);return this._values[xe]=ve,this},nt.prototype.delete=function(ge){var ve=this._find(ge,!1);if(ve>=0){for(var xe=this._keys.length,Ie=ve+1;Ie<xe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,on(ge,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},nt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},nt.prototype.keys=function(){return new Q(this._keys,this._values,Ne)},nt.prototype.values=function(){return new Q(this._keys,this._values,pn)},nt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},nt.prototype["@@iterator"]=function(){return this.entries()},nt.prototype[s]=function(){return this.entries()},nt.prototype._find=function(ge,ve){if(!on(this._cacheKey,ge)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(on(this._keys[xe],ge)){this._cacheIndex=xe;break}}return this._cacheIndex<0&&ve&&(this._cacheIndex=this._keys.length,this._keys.push(ge),this._values.push(void 0)),this._cacheIndex},nt}();return se;function Ne(nt,ge){return nt}function pn(nt,ge){return ge}function xn(nt,ge){return[nt,ge]}}a(Sf,"CreateMapPolyfill");function xf(){var k=function(){function $(){this._map=new v}return a($,"Set"),Object.defineProperty($.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),$.prototype.has=function(Q){return this._map.has(Q)},$.prototype.add=function(Q){return this._map.set(Q,Q),this},$.prototype.delete=function(Q){return this._map.delete(Q)},$.prototype.clear=function(){this._map.clear()},$.prototype.keys=function(){return this._map.keys()},$.prototype.values=function(){return this._map.keys()},$.prototype.entries=function(){return this._map.entries()},$.prototype["@@iterator"]=function(){return this.keys()},$.prototype[s]=function(){return this.keys()},$}();return k}a(xf,"CreateSetPolyfill");function Pf(){var k=16,$=g.create(),Q=se();return function(){function ge(){this._key=se()}return a(ge,"WeakMap"),ge.prototype.has=function(ve){var xe=Ne(ve,!1);return xe!==void 0?g.has(xe,this._key):!1},ge.prototype.get=function(ve){var xe=Ne(ve,!1);return xe!==void 0?g.get(xe,this._key):void 0},ge.prototype.set=function(ve,xe){var Ie=Ne(ve,!0);return Ie[this._key]=xe,this},ge.prototype.delete=function(ve){var xe=Ne(ve,!1);return xe!==void 0?delete xe[this._key]:!1},ge.prototype.clear=function(){this._key=se()},ge}();function se(){var ge;do ge="@@WeakMap@@"+nt();while(g.has($,ge));return $[ge]=!0,ge}function Ne(ge,ve){if(!i.call(ge,Q)){if(!ve)return;Object.defineProperty(ge,Q,{value:g.create()})}return ge[Q]}function pn(ge,ve){for(var xe=0;xe<ve;++xe)ge[xe]=Math.random()*255|0;return ge}function xn(ge){if(typeof Uint8Array=="function"){var ve=new Uint8Array(ge);return typeof crypto<"u"?crypto.getRandomValues(ve):typeof msCrypto<"u"?msCrypto.getRandomValues(ve):pn(ve,ge),ve}return pn(new Array(ge),ge)}function nt(){var ge=xn(k);ge[6]=ge[6]&79|64,ge[8]=ge[8]&191|128;for(var ve="",xe=0;xe<k;++xe){var Ie=ge[xe];(xe===4||xe===6||xe===8)&&(ve+="-"),Ie<16&&(ve+="0"),ve+=Ie.toString(16).toLowerCase()}return ve}}a(Pf,"CreateWeakMapPolyfill");function Vs(k){return k.__=void 0,delete k.__,k}a(Vs,"MakeDictionary")})})(xR||(xR={}))});var FR=ze((YY,LR)=>{var f5=0,NR="changeUtils: ";function u5(){return"id-"+new Date().valueOf()+"-"+f5++}a(u5,"uid");function p5(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}a(p5,"appendComponentToReference");function d5(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return p5(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}a(d5,"getFlexReference");function g5(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}a(g5,"getAppVersion");function m5(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}a(m5,"getProjectId");function OR(e){return JSON.stringify({fileName:e.id||u5().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:NR+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}a(OR,"createString");LR.exports={parse:function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(NR,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString:function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=d5(t),e.appVersion=g5(t),e.projectId=m5(t,e.reference),OR(e)},toString:function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return OR(e)}}});var _R=ze((ZY,RR)=>{RR.exports={change:FR()}});var E0=ze(Mr=>{"use strict";var Y5=/[|\\{}()[\]^$+*?.]/g,J5=Object.prototype.hasOwnProperty,jE=a(function(e,t){return J5.apply(e,[t])},"hasOwn");Mr.escapeRegExpChars=function(e){return e?String(e).replace(Y5,"\\$&"):""};var Z5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},e8=/[&<>'"]/g;function t8(e){return Z5[e]||e}a(t8,"encode_char");var n8=`var _ENCODE_HTML_RULES = {
27
+ `?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(Ve,Y-1)}M==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!W(M)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),M==="&"?S.state=D.TEXT_ENTITY:S.textNode+=M);continue;case D.SCRIPT:M==="<"?S.state=D.SCRIPT_ENDING:S.script+=M;continue;case D.SCRIPT_ENDING:M==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+M,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(M==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!W(M))if(ne(O,M))S.state=D.OPEN_TAG,S.tagName=M;else if(M==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(M==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Nt=S.position-S.startTagPosition;M=new Array(Nt).join(" ")+M}S.textNode+="<"+M,S.state=D.TEXT}continue;case D.SGML_DECL:(S.sgmlDecl+M).toUpperCase()===g?($e(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+M==="--"?(S.state=D.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+M).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):M===">"?($e(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ie(M)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=M);continue;case D.SGML_DECL_QUOTED:M===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=M;continue;case D.DOCTYPE:M===">"?(S.state=D.TEXT,$e(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=M,M==="["?S.state=D.DOCTYPE_DTD:ie(M)&&(S.state=D.DOCTYPE_QUOTED,S.q=M));continue;case D.DOCTYPE_QUOTED:S.doctype+=M,M===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:S.doctype+=M,M==="]"?S.state=D.DOCTYPE:ie(M)&&(S.state=D.DOCTYPE_DTD_QUOTED,S.q=M);continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=M,M===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:M==="-"?S.state=D.COMMENT_ENDING:S.comment+=M;continue;case D.COMMENT_ENDING:M==="-"?(S.state=D.COMMENT_ENDED,S.comment=Vi(S.opt,S.comment),S.comment&&$e(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+M,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:M!==">"?(Re(S,"Malformed comment"),S.comment+="--"+M,S.state=D.COMMENT):S.state=D.TEXT;continue;case D.CDATA:M==="]"?S.state=D.CDATA_ENDING:S.cdata+=M;continue;case D.CDATA_ENDING:M==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+M,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:M===">"?(S.cdata&&$e(S,"oncdata",S.cdata),$e(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):M==="]"?S.cdata+="]":(S.cdata+="]]"+M,S.state=D.CDATA);continue;case D.PROC_INST:M==="?"?S.state=D.PROC_INST_ENDING:W(M)?S.state=D.PROC_INST_BODY:S.procInstName+=M;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&W(M))continue;M==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=M;continue;case D.PROC_INST_ENDING:M===">"?($e(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+M,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:ne(R,M)?S.tagName+=M:(Ai(S),M===">"?rn(S):M==="/"?S.state=D.OPEN_TAG_SLASH:(W(M)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:M===">"?(rn(S,!0),Mi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(W(M))continue;M===">"?rn(S):M==="/"?S.state=D.OPEN_TAG_SLASH:ne(O,M)?(S.attribName=M,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:M==="="?S.state=D.ATTRIB_VALUE:M===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Dt(S),rn(S)):W(M)?S.state=D.ATTRIB_NAME_SAW_WHITE:ne(R,M)?S.attribName+=M:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(M==="=")S.state=D.ATTRIB_VALUE;else{if(W(M))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",$e(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",M===">"?rn(S):ne(O,M)?(S.attribName=M,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(W(M))continue;ie(M)?(S.q=M,S.state=D.ATTRIB_VALUE_QUOTED):(Re(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=M);continue;case D.ATTRIB_VALUE_QUOTED:if(M!==S.q){M==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=M;continue}Dt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:W(M)?S.state=D.ATTRIB:M===">"?rn(S):M==="/"?S.state=D.OPEN_TAG_SLASH:ne(O,M)?(Re(S,"No whitespace between attributes"),S.attribName=M,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(M)){M==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=M;continue}Dt(S),M===">"?rn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)M===">"?Mi(S):ne(R,M)?S.tagName+=M:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(W(M)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(W(M))continue;Le(O,M)?S.script?(S.script+="</"+M,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=M}continue;case D.CLOSE_TAG_SAW_WHITE:if(W(M))continue;M===">"?Mi(S):Re(S,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var Qe,Vt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,Vt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,Vt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,Vt="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var Rn=_e(S);S.entity="",S.state=Qe,S.write(Rn)}else S[Vt]+=_e(S),S.entity="",S.state=Qe;else ne(S.entity.length?H:U,M)?S.entity+=M:(Re(S,"Invalid character in entity name"),S[Vt]+="&"+S.entity+M,S.entity="",S.state=Qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}a(st,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=a(function(){var M=16384,Ve=[],Nt,Qe,Vt=-1,Rn=arguments.length;if(!Rn)return"";for(var on="";++Vt<Rn;){var $t=Number(arguments[Vt]);if(!isFinite($t)||$t<0||$t>1114111||S($t)!==$t)throw RangeError("Invalid code point: "+$t);$t<=65535?Ve.push($t):($t-=65536,Nt=($t>>10)+55296,Qe=$t%1024+56320,Ve.push(Nt,Qe)),(Vt+1===Rn||Ve.length>M)&&(on+=I.apply(null,Ve),Ve.length=0)}return on},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Tg>"u"?Tg.sax={}:Tg)});var Eg=ze((SY,FF)=>{FF.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var bg=ze((xY,RF)=>{var i5=Eg().isArray;RF.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!i5(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var KT=ze((PY,jF)=>{var r5=LF(),o5={on:function(){},parse:function(){}},rt=bg(),il=Eg().isArray,B,GT=!0,Be;function a5(e){return B=rt.copyOptions(e),rt.ensureFlagExists("ignoreDeclaration",B),rt.ensureFlagExists("ignoreInstruction",B),rt.ensureFlagExists("ignoreAttributes",B),rt.ensureFlagExists("ignoreText",B),rt.ensureFlagExists("ignoreComment",B),rt.ensureFlagExists("ignoreCdata",B),rt.ensureFlagExists("ignoreDoctype",B),rt.ensureFlagExists("compact",B),rt.ensureFlagExists("alwaysChildren",B),rt.ensureFlagExists("addParent",B),rt.ensureFlagExists("trim",B),rt.ensureFlagExists("nativeType",B),rt.ensureFlagExists("nativeTypeAttributes",B),rt.ensureFlagExists("sanitize",B),rt.ensureFlagExists("instructionHasAttributes",B),rt.ensureFlagExists("captureSpacesBetweenElements",B),rt.ensureAlwaysArrayExists(B),rt.ensureKeyExists("declaration",B),rt.ensureKeyExists("instruction",B),rt.ensureKeyExists("attributes",B),rt.ensureKeyExists("text",B),rt.ensureKeyExists("comment",B),rt.ensureKeyExists("cdata",B),rt.ensureKeyExists("doctype",B),rt.ensureKeyExists("type",B),rt.ensureKeyExists("name",B),rt.ensureKeyExists("elements",B),rt.ensureKeyExists("parent",B),rt.checkFnExists("doctype",B),rt.checkFnExists("instruction",B),rt.checkFnExists("cdata",B),rt.checkFnExists("comment",B),rt.checkFnExists("text",B),rt.checkFnExists("instructionName",B),rt.checkFnExists("elementName",B),rt.checkFnExists("attributeName",B),rt.checkFnExists("attributeValue",B),rt.checkFnExists("attributes",B),B}a(a5,"validateOptions");function kF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}a(kF,"nativeType");function qf(e,t){var n;if(B.compact){if(!Be[B[e+"Key"]]&&(il(B.alwaysArray)?B.alwaysArray.indexOf(B[e+"Key"])!==-1:B.alwaysArray)&&(Be[B[e+"Key"]]=[]),Be[B[e+"Key"]]&&!il(Be[B[e+"Key"]])&&(Be[B[e+"Key"]]=[Be[B[e+"Key"]]]),e+"Fn"in B&&typeof t=="string"&&(t=B[e+"Fn"](t,Be)),e==="instruction"&&("instructionFn"in B||"instructionNameFn"in B)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in B)t[n]=B.instructionFn(t[n],n,Be);else{var i=t[n];delete t[n],t[B.instructionNameFn(n,i,Be)]=i}}il(Be[B[e+"Key"]])?Be[B[e+"Key"]].push(t):Be[B[e+"Key"]]=t}else{Be[B.elementsKey]||(Be[B.elementsKey]=[]);var r={};if(r[B.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[B.nameKey]="instructionNameFn"in B?B.instructionNameFn(n,t,Be):n,B.instructionHasAttributes?(r[B.attributesKey]=t[n][B.attributesKey],"instructionFn"in B&&(r[B.attributesKey]=B.instructionFn(r[B.attributesKey],n,Be))):("instructionFn"in B&&(t[n]=B.instructionFn(t[n],n,Be)),r[B.instructionKey]=t[n])}else e+"Fn"in B&&(t=B[e+"Fn"](t,Be)),r[B[e+"Key"]]=t;B.addParent&&(r[B.parentKey]=Be),Be[B.elementsKey].push(r)}}a(qf,"addField");function UF(e){if("attributesFn"in B&&e&&(e=B.attributesFn(e,Be)),(B.trim||"attributeValueFn"in B||"attributeNameFn"in B||B.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(B.trim&&(e[t]=e[t].trim()),B.nativeTypeAttributes&&(e[t]=kF(e[t])),"attributeValueFn"in B&&(e[t]=B.attributeValueFn(e[t],t,Be)),"attributeNameFn"in B)){var n=e[t];delete e[t],e[B.attributeNameFn(t,e[t],Be)]=n}}return e}a(UF,"manipulateAttributes");function s5(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||B.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=UF(t)}if(e.name.toLowerCase()==="xml"){if(B.ignoreDeclaration)return;Be[B.declarationKey]={},Object.keys(t).length&&(Be[B.declarationKey][B.attributesKey]=t),B.addParent&&(Be[B.declarationKey][B.parentKey]=Be)}else{if(B.ignoreInstruction)return;B.trim&&(e.body=e.body.trim());var r={};B.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][B.attributesKey]=t):r[e.name]=e.body,qf("instruction",r)}}a(s5,"onInstruction");function _F(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=UF(t),"elementNameFn"in B&&(e=B.elementNameFn(e,Be)),B.compact){if(n={},!B.ignoreAttributes&&t&&Object.keys(t).length){n[B.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[B.attributesKey][i]=t[i])}!(e in Be)&&(il(B.alwaysArray)?B.alwaysArray.indexOf(e)!==-1:B.alwaysArray)&&(Be[e]=[]),Be[e]&&!il(Be[e])&&(Be[e]=[Be[e]]),il(Be[e])?Be[e].push(n):Be[e]=n}else Be[B.elementsKey]||(Be[B.elementsKey]=[]),n={},n[B.typeKey]="element",n[B.nameKey]=e,!B.ignoreAttributes&&t&&Object.keys(t).length&&(n[B.attributesKey]=t),B.alwaysChildren&&(n[B.elementsKey]=[]),Be[B.elementsKey].push(n);n[B.parentKey]=Be,Be=n}a(_F,"onStartElement");function DF(e){B.ignoreText||!e.trim()&&!B.captureSpacesBetweenElements||(B.trim&&(e=e.trim()),B.nativeType&&(e=kF(e)),B.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),qf("text",e))}a(DF,"onText");function VF(e){B.ignoreComment||(B.trim&&(e=e.trim()),qf("comment",e))}a(VF,"onComment");function MF(e){var t=Be[B.parentKey];B.addParent||delete Be[B.parentKey],Be=t}a(MF,"onEndElement");function c5(e){B.ignoreCdata||(B.trim&&(e=e.trim()),qf("cdata",e))}a(c5,"onCdata");function l5(e){B.ignoreDoctype||(e=e.replace(/^ /,""),B.trim&&(e=e.trim()),qf("doctype",e))}a(l5,"onDoctype");function wF(e){e.note=e}a(wF,"onError");jF.exports=function(e,t){var n=GT?r5.parser(!0,{}):n=new o5.Parser("UTF-8"),i={};if(Be=i,B=a5(t),GT?(n.opt={strictEntities:!0},n.onopentag=_F,n.ontext=DF,n.oncomment=VF,n.onclosetag=MF,n.onerror=wF,n.oncdata=c5,n.ondoctype=l5,n.onprocessinginstruction=s5):(n.on("startElement",_F),n.on("text",DF),n.on("comment",VF),n.on("endElement",MF),n.on("error",wF)),GT)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[B.elementsKey]){var r=i[B.elementsKey];delete i[B.elementsKey],i[B.elementsKey]=r,delete i.text}return i}});var HF=ze((IY,BF)=>{var $F=bg(),f5=KT();function u5(e){var t=$F.copyOptions(e);return $F.ensureSpacesExists(t),t}a(u5,"validateOptions");BF.exports=function(e,t){var n,i,r,o;return n=u5(t),i=f5(e,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===o?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var QT=ze((NY,JF)=>{var lt=bg(),p5=Eg().isArray,mi,hi;function d5(e){var t=lt.copyOptions(e);return lt.ensureFlagExists("ignoreDeclaration",t),lt.ensureFlagExists("ignoreInstruction",t),lt.ensureFlagExists("ignoreAttributes",t),lt.ensureFlagExists("ignoreText",t),lt.ensureFlagExists("ignoreComment",t),lt.ensureFlagExists("ignoreCdata",t),lt.ensureFlagExists("ignoreDoctype",t),lt.ensureFlagExists("compact",t),lt.ensureFlagExists("indentText",t),lt.ensureFlagExists("indentCdata",t),lt.ensureFlagExists("indentAttributes",t),lt.ensureFlagExists("indentInstruction",t),lt.ensureFlagExists("fullTagEmptyElement",t),lt.ensureFlagExists("noQuotesForNativeAttributes",t),lt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),lt.ensureKeyExists("declaration",t),lt.ensureKeyExists("instruction",t),lt.ensureKeyExists("attributes",t),lt.ensureKeyExists("text",t),lt.ensureKeyExists("comment",t),lt.ensureKeyExists("cdata",t),lt.ensureKeyExists("doctype",t),lt.ensureKeyExists("type",t),lt.ensureKeyExists("name",t),lt.ensureKeyExists("elements",t),lt.checkFnExists("doctype",t),lt.checkFnExists("instruction",t),lt.checkFnExists("cdata",t),lt.checkFnExists("comment",t),lt.checkFnExists("text",t),lt.checkFnExists("instructionName",t),lt.checkFnExists("elementName",t),lt.checkFnExists("attributeName",t),lt.checkFnExists("attributeValue",t),lt.checkFnExists("attributes",t),lt.checkFnExists("fullTagEmptyElement",t),t}a(d5,"validateOptions");function Ao(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}a(Ao,"writeIndentation");function Ag(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,hi,mi));var i,r,o,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"&quot;"),o="attributeNameFn"in t?t.attributeNameFn(i,r,hi,mi):i,l.push(t.spaces&&t.indentAttributes?Ao(t,n+1,!1):" "),l.push(o+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,hi,mi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Ao(t,n,!1)),l.join("")}a(Ag,"writeAttributes");function WF(e,t,n){return mi=e,hi="xml",t.ignoreDeclaration?"":"<?xml"+Ag(e[t.attributesKey],t,n)+"?>"}a(WF,"writeDeclaration");function GF(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],hi,mi):i;if(typeof e[i]=="object")return mi=e,hi=r,"<?"+r+Ag(e[i][t.attributesKey],t,n)+"?>";var o=e[i]?e[i]:"";return"instructionFn"in t&&(o=t.instructionFn(o,i,hi,mi)),"<?"+r+(o?" "+o:"")+"?>"}a(GF,"writeInstruction");function KF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,hi,mi):e)+"-->"}a(KF,"writeComment");function XF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,hi,mi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}a(XF,"writeCdata");function QF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,hi,mi):e)+">"}a(QF,"writeDoctype");function XT(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,hi,mi):e)}a(XT,"writeText");function g5(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}a(g5,"hasContent");function m5(e,t,n){mi=e,hi=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Ag(e[t.attributesKey],t,n));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e.name,e):o=t.fullTagEmptyElement),o?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(qF(e[t.elementsKey],t,n+1)),mi=e,hi=e.name),i.push(t.spaces&&g5(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}a(m5,"writeElement");function qF(e,t,n,i){return e.reduce(function(r,o){var s=Ao(t,n,i&&!r);switch(o.type){case"element":return r+s+m5(o,t,n);case"comment":return r+s+KF(o[t.commentKey],t);case"doctype":return r+s+QF(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+XF(o[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+XT(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?s:"")+GF(l,t,n)}},"")}a(qF,"writeElements");function zF(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}a(zF,"hasContentCompact");function h5(e,t,n,i,r){mi=e,hi=t;var o="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+o+"></"+o+">":"<"+o+"/>";var s=[];if(t){if(s.push("<"+o),typeof e!="object")return s.push(">"+XT(e,n)+"</"+o+">"),s.join("");e[n.attributesKey]&&s.push(Ag(e[n.attributesKey],n,i));var l=zF(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(YF(e,n,i+1,!1)),mi=e,hi=t,t&&s.push((r?Ao(n,i,!1):"")+"</"+o+">"),s.join("")}a(h5,"writeElementCompact");function YF(e,t,n,i){var r,o,s,l=[];for(o in e)if(e.hasOwnProperty(o))for(s=p5(e[o])?e[o]:[e[o]],r=0;r<s.length;++r){switch(o){case t.declarationKey:l.push(WF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Ao(t,n,i):"")+GF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Ao(t,n,i):"")+XT(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Ao(t,n,i):"")+XF(s[r],t));break;case t.doctypeKey:l.push(Ao(t,n,i)+QF(s[r],t));break;case t.commentKey:l.push(Ao(t,n,i)+KF(s[r],t));break;default:l.push(Ao(t,n,i)+h5(s[r],o,t,n,zF(s[r],t)))}i=i&&!l.length}return l.join("")}a(YF,"writeElementsCompact");JF.exports=function(e,t){t=d5(t);var n=[];return mi=e,hi="_root_",t.compact?n.push(YF(e,t,0,!0)):(e[t.declarationKey]&&n.push(WF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(qF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var eR=ze((FY,ZF)=>{var y5=QT();ZF.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return y5(n,t)}});var Gs=ze((RY,tR)=>{var v5=KT(),T5=HF(),E5=QT(),b5=eR();tR.exports={xml2js:v5,xml2json:T5,js2xml:E5,json2xml:b5}});var sR=ze(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.convertEntityTypeAnnotations=Bi.convertPropertyAnnotations=Bi.convertNavigationPropertyAnnotations=Bi.convertEntitySetAnnotations=Bi.convertGenericAnnotations=Bi.convertV2Annotations=void 0;function A5(e,t,n){let i=[];switch(t){case"EntitySet":iR(e,i);break;case"EntityType":aR(e,i);break;case"NavigationProperty":rR(e,n,i);break;case"Property":oR(e,n,i);break;case"Singleton":break;default:break}return nR(e,n,i),i}a(A5,"convertV2Annotations");Bi.convertV2Annotations=A5;function nR(e,t,n){function i(r,o){r&&n.push(o)}if(a(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}a(nR,"convertGenericAnnotations");Bi.convertGenericAnnotations=nR;function iR(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}a(iR,"convertEntitySetAnnotations");Bi.convertEntitySetAnnotations=iR;function rR(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}a(rR,"convertNavigationPropertyAnnotations");Bi.convertNavigationPropertyAnnotations=rR;function oR(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}a(oR,"convertPropertyAnnotations");Bi.convertPropertyAnnotations=oR;function aR(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}a(aR,"convertEntityTypeAnnotations");Bi.convertEntityTypeAnnotations=aR});var mR=ze(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});Cg.parse=void 0;var S5=Gs(),We=WT(),zf=sR(),fR=/^Collection\((.+)\)$/;function x5(e){return e.Type!==null&&e.Type!==void 0}a(x5,"isV4NavProperty");function P5(e){return e.map(t=>t._attributes.Name)}a(P5,"getEntityTypeKeys");function uR(e,t,n,i){return e.reduce((r,o)=>{let s={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:rl(o._attributes.Type).type};if(o._attributes.MaxLength&&(s.maxLength=parseInt(o._attributes.MaxLength,10)),o._attributes.Precision&&(s.precision=parseInt(o._attributes.Precision,10)),o._attributes.Scale&&(s.scale=parseInt(o._attributes.Scale,10)),s.nullable=o._attributes.Nullable!=="false",o._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(o._attributes.DefaultValue,10);break;case"Edm.Decimal":s.defaultValue=parseFloat(o._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=o._attributes.DefaultValue==="true";break;default:s.defaultValue=o._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,zf.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(Ks(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}a(uR,"parseProperties");function C5(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}a(C5,"parseReferentialConstraint");function I5(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),o=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&o!==void 0){let s=(0,We.ensureArray)(i.Principal.PropertyRef),l=(0,We.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(o=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,We.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:o.type,targetProperty:l[p]._attributes.Name})}}return n},[])}a(I5,"parseV2ReferentialConstraint");function pR(e,t,n,i){return e.reduce((r,o)=>{let s=o._attributes;if(x5(s)){let l=s.Type.match(fR),u=l!==null,p=So(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:C5((0,We.ensureArray)(o.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,zf.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Ks(`${n}/${s.Name}`,g))}return r},[])}a(pR,"parseNavigationProperties");function O5(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,o=(0,We.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:o}})}a(O5,"parseAssociationSets");function N5(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,We.ensureArray)(n.End).map(o=>({type:o._attributes.Type,role:o._attributes.Role,multiplicity:o._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:I5((0,We.ensureArray)(n.ReferentialConstraint),r)}})}a(N5,"parseAssociations");function L5(e,t,n){return e.reduce((i,r)=>{let o=r.Key?P5((0,We.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=uR((0,We.ensureArray)(r.Property),o,s,t),p=pR((0,We.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,zf.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Ks(g.fullyQualifiedName,m)),i.push(g),i},[])}a(L5,"parseEntityTypes");function F5(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:s}=uR((0,We.ensureArray)(r.Property),[],o,t),l=pR((0,We.ensureArray)(r.NavigationProperty),r,o,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:o,properties:s,navigationProperties:l}),i},[])}a(F5,"parseComplexTypes");function R5(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}a(R5,"parseTypeDefinitions");function _5(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,We.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:o._attributes.Name,entityTypeName:So(o._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,zf.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return u.length>0&&i.push(Ks(l.fullyQualifiedName,u)),l})}a(_5,"parseEntitySets");function D5(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,We.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:o._attributes.Name,entityTypeName:So(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,zf.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return u.length>0&&i.push(Ks(l.fullyQualifiedName,u)),l})}a(D5,"parseSingletons");function cR(e,t,n){return e.map(i=>{let r=(0,We.ensureArray)(i.Parameter),o=i._attributes.IsBound==="true",s;n?s=r.map(u=>rl(u._attributes.Type).type).join(","):s=o?rl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:o,sourceType:o?rl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=rl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?rl(i.ReturnType._attributes.Type).type:""}})}a(cR,"parseActions");function V5(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),o=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:o,isFunction:!1,parameters:(0,We.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${o}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}a(V5,"parseV2FunctionImport");function lR(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:So(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:So(r)}})}a(lR,"parseActionImports");function M5(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:o,...s}=i,l={};if(o){let u=Object.keys(o).find(g=>g!=="Property");l.name=o.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=gR(s,p,n):u&&(l.value=dR({[u]:o[u]},p,n)),i.Annotation){let g=Pg((0,We.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Ks(p,g))}}return l})}a(M5,"parsePropertyValues");function xg(e,t,n){let i=Pg((0,We.ensureArray)(e.Annotation),t,n),r={type:e._attributes?So(e._attributes.Type):void 0,propertyValues:M5((0,We.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}a(xg,"parseRecord");function ra(e,t){return e[t]!=null}a(ra,"isExpressionOfType");function Sg(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}a(Sg,"parseModelPath");function zT(e,t,n){if(ra(e,"Record")){let i=(0,We.ensureArray)(e.Record).map((r,o)=>xg(r,t+"/"+o,n));return i.type="Record",i}else if(ra(e,"PropertyPath")){let i=(0,We.ensureArray)(e.PropertyPath).map(r=>Sg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ra(e,"NavigationPropertyPath")){let i=(0,We.ensureArray)(e.NavigationPropertyPath).map(r=>Sg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ra(e,"String")){let i=(0,We.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ra(e,"AnnotationPath")){let i=(0,We.ensureArray)(e.AnnotationPath).map(r=>Sg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ra(e,"Path")){let i=(0,We.ensureArray)(e.Path).map(r=>Sg(r,"Path"));return i.type="Path",i}else if(ra(e,"If")){let i=(0,We.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}a(zT,"parseCollection");function dR(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:zT(e.Collection,t,n)};case"Record":return{type:"Record",Record:xg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}a(dR,"parseInlineExpression");function gR(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]._text};case"Collection":return{type:"Collection",Collection:zT(e.Collection,t,n)};case"Record":return{type:"Record",Record:xg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}a(gR,"parseExpression");function w5(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,s={term:So(i),qualifier:r},l=`${t}@${So(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(s.value=dR(o,l,n)),e.Annotation){let p=Pg((0,We.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ra(e,"Record")?s.record=xg(e.Record,l,n):ra(e,"Collection")?s.collection=zT(e.Collection,l,n):u.length===1?s.value=gR({[u[0]]:e[u[0]]},l,n):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}a(w5,"parseAnnotation");function Pg(e,t,n){return e.map(i=>w5(i,t,n))}a(Pg,"parseAnnotations");function Ks(e,t){return{target:e,annotations:t}}a(Ks,"createAnnotationList");function k5(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Ks(So(n._attributes.Target),Pg((0,We.ensureArray)(n.Annotation),n._attributes.Target,t)))})}a(k5,"parseAnnotationLists");function U5(e,t,n){let i=e._attributes.Namespace,r=[],o=L5((0,We.ensureArray)(e.EntityType),r,i),s=F5((0,We.ensureArray)(e.ComplexType),r,i),l=R5((0,We.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=_5((0,We.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=D5((0,We.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=O5((0,We.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(V5((0,We.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(lR((0,We.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(lR((0,We.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(cR((0,We.ensureArray)(e.Action),i,!1)),v=v.concat(cR((0,We.ensureArray)(e.Function),i,!0)));let E=N5((0,We.ensureArray)(e.Association),i);k5((0,We.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:o}}a(U5,"parseSchema");function j5(e){return e.reduce((t,n)=>((0,We.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}a(j5,"parseReferences");var qT={};function rl(e){let t=e.match(fR),n=t?t[1]:e,i=So(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}a(rl,"unaliasType");function So(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let o=0,s=!0;o<e.length;o++){let l=e[o];if(s&&l==="."){let u=e.substring(r,o);i.push((t=qT[u])!==null&&t!==void 0?t:u),r=o,s=!1}n.includes(l)&&(i.push(e.substring(r,o+1)),r=o+1,s=!0)}return i.push(e.substring(r)),i.join("")}a(So,"unalias");function $5(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),o=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,v;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,v=A.namespace)}),i.forEach(A=>{let E=o.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let R=O,U=n.find(H=>H.association===R.relationship);if(U){let H=U.associationEnd.find(W=>W.entitySet!==A.fullyQualifiedName);H&&(A.navigationPropertyBinding[O.name]=H.entitySet)}})}),o.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,R=t.find(U=>U.fullyQualifiedName===O.relationship);R&&R.referentialConstraints&&R.referentialConstraints.length>0&&(R.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=R.referentialConstraints:O.referentialConstraint=R.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:o}}a($5,"mergeSchemas");function B5(e,t){qT=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{qT[n._attributes.Alias]=n._attributes.Namespace})}a(B5,"createAliasMap");function H5(e,t="serviceFile"){let n=(0,S5.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,We.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=j5((0,We.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));B5(o,r);let s=r.map(u=>U5(u,i,t));return new We.RawMetadataInstance(t,i,$5(s),o)}a(H5,"parse");Cg.parse=H5});var hR=ze(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.parse=ol.merge=void 0;var W5=NF();Object.defineProperty(ol,"merge",{enumerable:!0,get:function(){return W5.merge}});var G5=mR();Object.defineProperty(ol,"parse",{enumerable:!0,get:function(){return G5.parse}})});var NR=ze(()=>{var OR;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}a(r,"makeExporter");function o(){try{return Function("return this;")()}catch{}}a(o,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}a(s,"indirectEvalThis");function l(){return o()||s()}a(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return _s(Object.create(null))}:u?function(){return _s({__proto__:null})}:function(){return _s({})},has:p?function(k,j){return i.call(k,j)}:function(k,j){return j in k},get:p?function(k,j){return i.call(k,j)?k[j]:void 0}:function(k,j){return k[j]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Sf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:xf(),E=typeof WeakMap=="function"?WeakMap:Pf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,R=wi(),U=Af(R);function H(k,j,Q,ce){if(_e(Q)){if(!Nt(k))throw new TypeError;if(!Vt(j))throw new TypeError;return fn(k,j)}else{if(!Nt(k))throw new TypeError;if(!st(j))throw new TypeError;if(!st(ce)&&!_e(ce)&&!Gn(ce))throw new TypeError;return Gn(ce)&&(ce=void 0),Q=Ve(Q),Vi(k,j,Q,ce)}}a(H,"decorate"),t("decorate",H);function W(k,j){function Q(ce,Ne){if(!st(ce))throw new TypeError;if(!_e(Ne)&&!Rn(Ne))throw new TypeError;Ct(k,j,ce,Ne)}return a(Q,"decorator"),Q}a(W,"metadata"),t("metadata",W);function ie(k,j,Q,ce){if(!st(Q))throw new TypeError;return _e(ce)||(ce=Ve(ce)),Ct(k,j,Q,ce)}a(ie,"defineMetadata"),t("defineMetadata",ie);function Z(k,j,Q){if(!st(j))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Sn(k,j,Q)}a(Z,"hasMetadata"),t("hasMetadata",Z);function ne(k,j,Q){if(!st(j))throw new TypeError;return _e(Q)||(Q=Ve(Q)),jt(k,j,Q)}a(ne,"hasOwnMetadata"),t("hasOwnMetadata",ne);function Le(k,j,Q){if(!st(j))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Re(k,j,Q)}a(Le,"getMetadata"),t("getMetadata",Le);function D(k,j,Q){if(!st(j))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Ai(k,j,Q)}a(D,"getOwnMetadata"),t("getOwnMetadata",D);function Pt(k,j){if(!st(k))throw new TypeError;return _e(j)||(j=Ve(j)),Dt(k,j)}a(Pt,"getMetadataKeys"),t("getMetadataKeys",Pt);function dt(k,j){if(!st(k))throw new TypeError;return _e(j)||(j=Ve(j)),rn(k,j)}a(dt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",dt);function $e(k,j,Q){if(!st(j))throw new TypeError;if(_e(Q)||(Q=Ve(Q)),!st(j))throw new TypeError;_e(Q)||(Q=Ve(Q));var ce=xr(j,Q,!1);return _e(ce)?!1:ce.OrdinaryDeleteMetadata(k,j,Q)}a($e,"deleteMetadata"),t("deleteMetadata",$e);function fn(k,j){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Ne=ce(j);if(!_e(Ne)&&!Gn(Ne)){if(!Vt(Ne))throw new TypeError;j=Ne}}return j}a(fn,"DecorateConstructor");function Vi(k,j,Q,ce){for(var Ne=k.length-1;Ne>=0;--Ne){var pn=k[Ne],xn=pn(j,Q,ce);if(!_e(xn)&&!Gn(xn)){if(!st(xn))throw new TypeError;ce=xn}}return ce}a(Vi,"DecorateProperty");function Sn(k,j,Q){var ce=jt(k,j,Q);if(ce)return!0;var Ne=Bt(j);return Gn(Ne)?!1:Sn(k,Ne,Q)}a(Sn,"OrdinaryHasMetadata");function jt(k,j,Q){var ce=xr(j,Q,!1);return _e(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,j,Q))}a(jt,"OrdinaryHasOwnMetadata");function Re(k,j,Q){var ce=jt(k,j,Q);if(ce)return Ai(k,j,Q);var Ne=Bt(j);if(!Gn(Ne))return Re(k,Ne,Q)}a(Re,"OrdinaryGetMetadata");function Ai(k,j,Q){var ce=xr(j,Q,!1);if(!_e(ce))return ce.OrdinaryGetOwnMetadata(k,j,Q)}a(Ai,"OrdinaryGetOwnMetadata");function Ct(k,j,Q,ce){var Ne=xr(Q,ce,!0);Ne.OrdinaryDefineOwnMetadata(k,j,Q,ce)}a(Ct,"OrdinaryDefineOwnMetadata");function Dt(k,j){var Q=rn(k,j),ce=Bt(k);if(ce===null)return Q;var Ne=Dt(ce,j);if(Ne.length<=0)return Q;if(Q.length<=0)return Ne;for(var pn=new A,xn=[],nt=0,me=Q;nt<me.length;nt++){var ve=me[nt],xe=pn.has(ve);xe||(pn.add(ve),xn.push(ve))}for(var Ie=0,ot=Ne;Ie<ot.length;Ie++){var ve=ot[Ie],xe=pn.has(ve);xe||(pn.add(ve),xn.push(ve))}return xn}a(Dt,"OrdinaryMetadataKeys");function rn(k,j){var Q=xr(k,j,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,j):[]}a(rn,"OrdinaryOwnMetadataKeys");function Mi(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}a(Mi,"Type");function _e(k){return k===void 0}a(_e,"IsUndefined");function Gn(k){return k===null}a(Gn,"IsNull");function Sr(k){return typeof k=="symbol"}a(Sr,"IsSymbol");function st(k){return typeof k=="object"?k!==null:typeof k=="function"}a(st,"IsObject");function I(k,j){switch(Mi(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var Q=j===3?"string":j===5?"number":"default",ce=$t(k,o);if(ce!==void 0){var Ne=ce.call(k,Q);if(st(Ne))throw new TypeError;return Ne}return S(k,Q==="default"?"number":Q)}a(I,"ToPrimitive");function S(k,j){if(j==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!st(ce))return ce}var Ne=k.valueOf;if(Qe(Ne)){var ce=Ne.call(k);if(!st(ce))return ce}}else{var Ne=k.valueOf;if(Qe(Ne)){var ce=Ne.call(k);if(!st(ce))return ce}var pn=k.toString;if(Qe(pn)){var ce=pn.call(k);if(!st(ce))return ce}}throw new TypeError}a(S,"OrdinaryToPrimitive");function Y(k){return!!k}a(Y,"ToBoolean");function M(k){return""+k}a(M,"ToString");function Ve(k){var j=I(k,3);return Sr(j)?j:M(j)}a(Ve,"ToPropertyKey");function Nt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}a(Nt,"IsArray");function Qe(k){return typeof k=="function"}a(Qe,"IsCallable");function Vt(k){return typeof k=="function"}a(Vt,"IsConstructor");function Rn(k){switch(Mi(k)){case 3:return!0;case 4:return!0;default:return!1}}a(Rn,"IsPropertyKey");function on(k,j){return k===j||k!==k&&j!==j}a(on,"SameValueZero");function $t(k,j){var Q=k[j];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}a($t,"GetMethod");function ni(k){var j=$t(k,s);if(!Qe(j))throw new TypeError;var Q=j.call(k);if(!st(Q))throw new TypeError;return Q}a(ni,"GetIterator");function tr(k){return k.value}a(tr,"IteratorValue");function un(k){var j=k.next();return j.done?!1:j}a(un,"IteratorStep");function ui(k){var j=k.return;j&&j.call(k)}a(ui,"IteratorClose");function Bt(k){var j=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||j!==m)return j;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return j;var Ne=ce.constructor;return typeof Ne!="function"||Ne===k?j:Ne}a(Bt,"OrdinaryGetPrototypeOf");function Go(){var k;!_e(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Rs(n.Reflect));var j,Q,ce,Ne=new E,pn={registerProvider:xn,getProvider:me,setProvider:xe};return pn;function xn(Ie){if(!Object.isExtensible(pn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case _e(j):j=Ie;break;case j===Ie:break;case _e(Q):Q=Ie;break;case Q===Ie:break;default:ce===void 0&&(ce=new A),ce.add(Ie);break}}function nt(Ie,ot){if(!_e(j)){if(j.isProviderFor(Ie,ot))return j;if(!_e(Q)){if(Q.isProviderFor(Ie,ot))return j;if(!_e(ce))for(var Ht=ni(ce);;){var an=un(Ht);if(!an)return;var nr=tr(an);if(nr.isProviderFor(Ie,ot))return ui(Ht),nr}}}if(!_e(k)&&k.isProviderFor(Ie,ot))return k}function me(Ie,ot){var Ht=Ne.get(Ie),an;return _e(Ht)||(an=Ht.get(ot)),_e(an)&&(an=nt(Ie,ot),_e(an)||(_e(Ht)&&(Ht=new v,Ne.set(Ie,Ht)),Ht.set(ot,an))),an}function ve(Ie){if(_e(Ie))throw new TypeError;return j===Ie||Q===Ie||!_e(ce)&&ce.has(Ie)}function xe(Ie,ot,Ht){if(!ve(Ht))throw new Error("Metadata provider not registered.");var an=me(Ie,ot);if(an!==Ht){if(!_e(an))return!1;var nr=Ne.get(Ie);_e(nr)&&(nr=new v,Ne.set(Ie,nr)),nr.set(ot,Ht)}return!0}}a(Go,"CreateMetadataRegistry");function wi(){var k;return!_e(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),_e(k)&&(k=Go()),!_e(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}a(wi,"GetOrCreateMetadataRegistry");function Af(k){var j=new E,Q={isProviderFor:function(ve,xe){var Ie=j.get(ve);return _e(Ie)?!1:Ie.has(xe)},OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:pn,OrdinaryOwnMetadataKeys:nt,OrdinaryDeleteMetadata:me};return R.registerProvider(Q),Q;function ce(ve,xe,Ie){var ot=j.get(ve),Ht=!1;if(_e(ot)){if(!Ie)return;ot=new v,j.set(ve,ot),Ht=!0}var an=ot.get(xe);if(_e(an)){if(!Ie)return;if(an=new v,ot.set(xe,an),!k.setProvider(ve,xe,Q))throw ot.delete(xe),Ht&&j.delete(ve),new Error("Wrong provider for target.")}return an}a(ce,"GetOrCreateMetadataMap");function Ne(ve,xe,Ie){var ot=ce(xe,Ie,!1);return _e(ot)?!1:Y(ot.has(ve))}a(Ne,"OrdinaryHasOwnMetadata");function pn(ve,xe,Ie){var ot=ce(xe,Ie,!1);if(!_e(ot))return ot.get(ve)}a(pn,"OrdinaryGetOwnMetadata");function xn(ve,xe,Ie,ot){var Ht=ce(Ie,ot,!0);Ht.set(ve,xe)}a(xn,"OrdinaryDefineOwnMetadata");function nt(ve,xe){var Ie=[],ot=ce(ve,xe,!1);if(_e(ot))return Ie;for(var Ht=ot.keys(),an=ni(Ht),nr=0;;){var dd=un(an);if(!dd)return Ie.length=nr,Ie;var Zy=tr(dd);try{Ie[nr]=Zy}catch(Cf){try{ui(an)}finally{throw Cf}}nr++}}a(nt,"OrdinaryOwnMetadataKeys");function me(ve,xe,Ie){var ot=ce(xe,Ie,!1);if(_e(ot)||!ot.delete(ve))return!1;if(ot.size===0){var Ht=j.get(xe);_e(Ht)||(Ht.delete(Ie),Ht.size===0&&j.delete(Ht))}return!0}a(me,"OrdinaryDeleteMetadata")}a(Af,"CreateMetadataProvider");function Rs(k){var j=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Ne=k.getOwnMetadataKeys,pn=k.deleteMetadata,xn=new E,nt={isProviderFor:function(me,ve){var xe=xn.get(me);return!_e(xe)&&xe.has(ve)?!0:Ne(me,ve).length?(_e(xe)&&(xe=new A,xn.set(me,xe)),xe.add(ve),!0):!1},OrdinaryDefineOwnMetadata:j,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:pn};return nt}a(Rs,"CreateFallbackProvider");function xr(k,j,Q){var ce=R.getProvider(k,j);if(!_e(ce))return ce;if(Q){if(R.setProvider(k,j,U))return U;throw new Error("Illegal state.")}}a(xr,"GetMetadataProvider");function Sf(){var k={},j=[],Q=function(){function nt(me,ve,xe){this._index=0,this._keys=me,this._values=ve,this._selector=xe}return a(nt,"MapIterator"),nt.prototype["@@iterator"]=function(){return this},nt.prototype[s]=function(){return this},nt.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var ve=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=j,this._values=j):this._index++,{value:ve,done:!1}}return{value:void 0,done:!0}},nt.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=j,this._values=j),me},nt.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=j,this._values=j),{value:me,done:!0}},nt}(),ce=function(){function nt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return a(nt,"Map"),Object.defineProperty(nt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),nt.prototype.has=function(me){return this._find(me,!1)>=0},nt.prototype.get=function(me){var ve=this._find(me,!1);return ve>=0?this._values[ve]:void 0},nt.prototype.set=function(me,ve){var xe=this._find(me,!0);return this._values[xe]=ve,this},nt.prototype.delete=function(me){var ve=this._find(me,!1);if(ve>=0){for(var xe=this._keys.length,Ie=ve+1;Ie<xe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,on(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},nt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},nt.prototype.keys=function(){return new Q(this._keys,this._values,Ne)},nt.prototype.values=function(){return new Q(this._keys,this._values,pn)},nt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},nt.prototype["@@iterator"]=function(){return this.entries()},nt.prototype[s]=function(){return this.entries()},nt.prototype._find=function(me,ve){if(!on(this._cacheKey,me)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(on(this._keys[xe],me)){this._cacheIndex=xe;break}}return this._cacheIndex<0&&ve&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},nt}();return ce;function Ne(nt,me){return nt}function pn(nt,me){return me}function xn(nt,me){return[nt,me]}}a(Sf,"CreateMapPolyfill");function xf(){var k=function(){function j(){this._map=new v}return a(j,"Set"),Object.defineProperty(j.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),j.prototype.has=function(Q){return this._map.has(Q)},j.prototype.add=function(Q){return this._map.set(Q,Q),this},j.prototype.delete=function(Q){return this._map.delete(Q)},j.prototype.clear=function(){this._map.clear()},j.prototype.keys=function(){return this._map.keys()},j.prototype.values=function(){return this._map.keys()},j.prototype.entries=function(){return this._map.entries()},j.prototype["@@iterator"]=function(){return this.keys()},j.prototype[s]=function(){return this.keys()},j}();return k}a(xf,"CreateSetPolyfill");function Pf(){var k=16,j=g.create(),Q=ce();return function(){function me(){this._key=ce()}return a(me,"WeakMap"),me.prototype.has=function(ve){var xe=Ne(ve,!1);return xe!==void 0?g.has(xe,this._key):!1},me.prototype.get=function(ve){var xe=Ne(ve,!1);return xe!==void 0?g.get(xe,this._key):void 0},me.prototype.set=function(ve,xe){var Ie=Ne(ve,!0);return Ie[this._key]=xe,this},me.prototype.delete=function(ve){var xe=Ne(ve,!1);return xe!==void 0?delete xe[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+nt();while(g.has(j,me));return j[me]=!0,me}function Ne(me,ve){if(!i.call(me,Q)){if(!ve)return;Object.defineProperty(me,Q,{value:g.create()})}return me[Q]}function pn(me,ve){for(var xe=0;xe<ve;++xe)me[xe]=Math.random()*255|0;return me}function xn(me){if(typeof Uint8Array=="function"){var ve=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(ve):typeof msCrypto<"u"?msCrypto.getRandomValues(ve):pn(ve,me),ve}return pn(new Array(me),me)}function nt(){var me=xn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var ve="",xe=0;xe<k;++xe){var Ie=me[xe];(xe===4||xe===6||xe===8)&&(ve+="-"),Ie<16&&(ve+="0"),ve+=Ie.toString(16).toLowerCase()}return ve}}a(Pf,"CreateWeakMapPolyfill");function _s(k){return k.__=void 0,delete k.__,k}a(_s,"MakeDictionary")})})(OR||(OR={}))});var VR=ze((eJ,DR)=>{var gG=0,_R="changeUtils: ";function mG(){return"id-"+new Date().valueOf()+"-"+gG++}a(mG,"uid");function hG(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}a(hG,"appendComponentToReference");function yG(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return hG(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}a(yG,"getFlexReference");function vG(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}a(vG,"getAppVersion");function TG(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}a(TG,"getProjectId");function RR(e){return JSON.stringify({fileName:e.id||mG().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:_R+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}a(RR,"createString");DR.exports={parse:function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(_R,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString:function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=yG(t),e.appVersion=vG(t),e.projectId=TG(t,e.reference),RR(e)},toString:function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return RR(e)}}});var wR=ze((nJ,MR)=>{MR.exports={change:VR()}});var P0=ze(Mr=>{"use strict";var t8=/[|\\{}()[\]^$+*?.]/g,n8=Object.prototype.hasOwnProperty,jE=a(function(e,t){return n8.apply(e,[t])},"hasOwn");Mr.escapeRegExpChars=function(e){return e?String(e).replace(t8,"\\$&"):""};var i8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},r8=/[&<>'"]/g;function o8(e){return i8[e]||e}a(o8,"encode_char");var a8=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -37,13 +37,13 @@ Actual: `+I.attribValue);else{var Ve=I.tag,Nt=I.tags[I.tags.length-1]||I;Ve.ns==
37
37
  function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
- `;Mr.escapeXML=function(e){return e==null?"":String(e).replace(e8,t8)};function T0(){return Function.prototype.toString.call(this)+`;
41
- `+n8}a(T0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Mr.escapeXML,"toString",{value:T0}):Mr.escapeXML.toString=T0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Mr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)jE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Mr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!jE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Mr.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};Mr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Mr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Mr.hasOwnOnlyObject=function(e){var t=Mr.createNullProtoObjWherePossible();for(var n in e)jE(e,n)&&(t[n]=e[n]);return t}});var b0=ze((EZ,i8)=>{i8.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var L0=ze(At=>{"use strict";var BE=require("fs"),hu=require("path"),In=E0(),A0=!1,r8=b0().version,o8="<",a8=">",s8="%",O0="locals",c8="ejs",l8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",N0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],f8=N0.concat("cache"),S0=/^\uFEFF/,$E=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;At.cache=In.cache;At.fileLoader=BE.readFileSync;At.localsName=O0;At.promiseImpl=new Function("return this;")().Promise;At.resolveInclude=function(e,t,n){var i=hu.dirname,r=hu.extname,o=hu.resolve,s=o(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function x0(e,t){var n;if(t.some(function(i){return n=At.resolveInclude(e,i,!0),BE.existsSync(n)}))return n}a(x0,"resolvePaths");function u8(e,t){var n,i,r=t.views,o=/^[A-Za-z]+:\\|^\//.exec(e);if(o&&o.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=x0(e,t.root):n=At.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=At.resolveInclude(e,t.filename),BE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=x0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}a(u8,"getIncludePath");function yu(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=At.cache.get(i),n)return n;r||(t=P0(i).toString().replace(S0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=P0(i).toString().replace(S0,"")}return n=At.compile(t,e),e.cache&&At.cache.set(i,n),n}a(yu,"handleCache");function p8(e,t,n){var i;if(n){try{i=yu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof At.promiseImpl=="function")return new At.promiseImpl(function(r,o){try{i=yu(e)(t),r(i)}catch(s){o(s)}});throw new Error("Please provide a callback function")}}a(p8,"tryHandleCache");function P0(e){return At.fileLoader(e)}a(P0,"fileLoader");function d8(e,t){var n=In.shallowCopy(In.createNullProtoObjWherePossible(),t);if(n.filename=u8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return yu(n,i.template)}return yu(n)}a(d8,"includeFile");function C0(e,t,n,i,r){var o=t.split(`
40
+ `;Mr.escapeXML=function(e){return e==null?"":String(e).replace(r8,o8)};function x0(){return Function.prototype.toString.call(this)+`;
41
+ `+a8}a(x0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Mr.escapeXML,"toString",{value:x0}):Mr.escapeXML.toString=x0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Mr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)jE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Mr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!jE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Mr.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};Mr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Mr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Mr.hasOwnOnlyObject=function(e){var t=Mr.createNullProtoObjWherePossible();for(var n in e)jE(e,n)&&(t[n]=e[n]);return t}});var C0=ze((SZ,s8)=>{s8.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var V0=ze(At=>{"use strict";var BE=require("fs"),hu=require("path"),In=P0(),I0=!1,c8=C0().version,l8="<",f8=">",u8="%",_0="locals",p8="ejs",d8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",D0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],g8=D0.concat("cache"),O0=/^\uFEFF/,$E=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;At.cache=In.cache;At.fileLoader=BE.readFileSync;At.localsName=_0;At.promiseImpl=new Function("return this;")().Promise;At.resolveInclude=function(e,t,n){var i=hu.dirname,r=hu.extname,o=hu.resolve,s=o(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function N0(e,t){var n;if(t.some(function(i){return n=At.resolveInclude(e,i,!0),BE.existsSync(n)}))return n}a(N0,"resolvePaths");function m8(e,t){var n,i,r=t.views,o=/^[A-Za-z]+:\\|^\//.exec(e);if(o&&o.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=N0(e,t.root):n=At.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=At.resolveInclude(e,t.filename),BE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=N0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}a(m8,"getIncludePath");function yu(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=At.cache.get(i),n)return n;r||(t=L0(i).toString().replace(O0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=L0(i).toString().replace(O0,"")}return n=At.compile(t,e),e.cache&&At.cache.set(i,n),n}a(yu,"handleCache");function h8(e,t,n){var i;if(n){try{i=yu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof At.promiseImpl=="function")return new At.promiseImpl(function(r,o){try{i=yu(e)(t),r(i)}catch(s){o(s)}});throw new Error("Please provide a callback function")}}a(h8,"tryHandleCache");function L0(e){return At.fileLoader(e)}a(L0,"fileLoader");function y8(e,t){var n=In.shallowCopy(In.createNullProtoObjWherePossible(),t);if(n.filename=m8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return yu(n,i.template)}return yu(n)}a(y8,"includeFile");function F0(e,t,n,i,r){var o=t.split(`
42
42
  `),s=Math.max(i-3,0),l=Math.min(o.length,i+3),u=r(n),p=o.slice(s,l).map(function(g,m){var v=m+s+1;return(v==i?" >> ":" ")+v+"| "+g}).join(`
43
43
  `);throw e.path=u,e.message=(u||"ejs")+":"+i+`
44
44
  `+p+`
45
45
 
46
- `+e.message,e}a(C0,"rethrow");function I0(e){return e.replace(/;(\s*$)/,"$1")}a(I0,"stripSemi");At.compile=a(function(t,n){var i;return n&&n.scope&&(A0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),A0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");At.render=function(e,t,n){var i=t||In.createNullProtoObjWherePossible(),r=n||In.createNullProtoObjWherePossible();return arguments.length==2&&In.shallowCopyFromList(r,i,N0),yu(r,e)(i)};At.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,o;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?In.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),o=r.settings["view options"],o&&In.shallowCopy(i,o)),In.shallowCopyFromList(i,r,f8)),i.filename=t):r=In.createNullProtoObjWherePossible(),p8(i,r,n)};At.Template=Hn;At.clearCache=function(){At.cache.reset()};function Hn(e,t){var n=In.hasOwnOnlyObject(t),i=In.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||In.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||At.openDelimiter||o8,i.closeDelimiter=n.closeDelimiter||At.closeDelimiter||a8,i.delimiter=n.delimiter||At.delimiter||s8,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||At.localsName||O0,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}a(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:function(){var e=l8,t=In.escapeRegExpChars(this.opts.delimiter),n=In.escapeRegExpChars(this.opts.openDelimiter),i=In.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},compile:function(){var e,t,n=this.opts,i="",r="",o=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
46
+ `+e.message,e}a(F0,"rethrow");function R0(e){return e.replace(/;(\s*$)/,"$1")}a(R0,"stripSemi");At.compile=a(function(t,n){var i;return n&&n.scope&&(I0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),I0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");At.render=function(e,t,n){var i=t||In.createNullProtoObjWherePossible(),r=n||In.createNullProtoObjWherePossible();return arguments.length==2&&In.shallowCopyFromList(r,i,D0),yu(r,e)(i)};At.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,o;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?In.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),o=r.settings["view options"],o&&In.shallowCopy(i,o)),In.shallowCopyFromList(i,r,g8)),i.filename=t):r=In.createNullProtoObjWherePossible(),h8(i,r,n)};At.Template=Hn;At.clearCache=function(){At.cache.reset()};function Hn(e,t){var n=In.hasOwnOnlyObject(t),i=In.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||In.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||At.openDelimiter||l8,i.closeDelimiter=n.closeDelimiter||At.closeDelimiter||f8,i.delimiter=n.delimiter||At.delimiter||u8,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||At.localsName||_0,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}a(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:function(){var e=d8,t=In.escapeRegExpChars(this.opts.delimiter),n=In.escapeRegExpChars(this.opts.openDelimiter),i=In.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},compile:function(){var e,t,n=this.opts,i="",r="",o=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
47
47
  function __append(s) { if (s !== undefined && s !== null) __output += s }
48
48
  `,n.outputFunctionName){if(!$E.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
49
  `}if(n.localsName&&!$E.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}),
@@ -60,7 +60,7 @@ try {
60
60
  rethrow(e, __lines, __filename, __line, escapeFn);
61
61
  }
62
62
  `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+o.toString()+`;
63
- `+e,n.compileDebug&&(e="rethrow = rethrow || "+C0.toString()+`;
63
+ `+e,n.compileDebug&&(e="rethrow = rethrow || "+F0.toString()+`;
64
64
  `+e)),n.strict&&(e=`"use strict";
65
65
  `+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
66
66
  //# sourceURL=`+l+`
@@ -68,7 +68,7 @@ try {
68
68
 
69
69
  `,E.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,E.message+="https://github.com/RyanZim/EJS-Lint",n.async||(E.message+=`
71
- `,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:a(function(O){var R=a(function(U,j){var G=In.shallowCopy(In.createNullProtoObjWherePossible(),O);return j&&(G=In.shallowCopy(G,j)),d8(U,n)(G)},"include");return t.apply(n.context,[O||In.createNullProtoObjWherePossible(),o,R,C0])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,A=hu.basename(v,hu.extname(v));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},generateSource:function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
71
+ `,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:a(function(O){var R=a(function(U,H){var W=In.shallowCopy(In.createNullProtoObjWherePossible(),O);return H&&(W=In.shallowCopy(W,H)),y8(U,n)(W)},"include");return t.apply(n.context,[O||In.createNullProtoObjWherePossible(),o,R,F0])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,A=hu.basename(v,hu.extname(v));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},generateSource:function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
72
72
  `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,o=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+o||u=="-"+i+o||u=="_"+i+o)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},parseTemplateText:function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
73
73
  `},scanLine:function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,o=0;switch(o=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=Hn.modes.EVAL;break;case i+n+"=":this.mode=Hn.modes.ESCAPED;break;case i+n+"-":this.mode=Hn.modes.RAW;break;case i+n+"#":this.mode=Hn.modes.COMMENT;break;case i+n+n:this.mode=Hn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -76,68 +76,68 @@ try {
76
76
  `;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Hn.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case Hn.modes.EVAL:case Hn.modes.ESCAPED:case Hn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
78
  `)}switch(this.mode){case Hn.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+I0(e)+`))
80
- `;break;case Hn.modes.RAW:this.source+=" ; __append("+I0(e)+`)
79
+ `;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+R0(e)+`))
80
+ `;break;case Hn.modes.RAW:this.source+=" ; __append("+R0(e)+`)
81
81
  `;break;case Hn.modes.COMMENT:break;case Hn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&o&&(this.currentLine+=o,this.source+=" ; __line = "+this.currentLine+`
82
- `)}};At.escapeXML=In.escapeXML;At.__express=At.renderFile;At.VERSION=r8;At.name=c8;typeof window<"u"&&(window.ejs=At)});var qu,CA=qe(()=>{qu="7.1.1"});function at(e){return e&&e.length===0}function Li(e){return e==null?[]:Object.keys(e)}function Vn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function h1(e,t){for(var n=[],i=Li(e),r=0;r<i.length;r++){var o=i[r];n.push(t.call(null,e[o],o))}return n}function le(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function On(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(On(i)):t.push(i)}return t}function Ti(e){return at(e)?void 0:e[0]}function Ch(e){var t=e&&e.length;return t?e[t-1]:void 0}function ye(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Ih(e))for(var i=Li(e),n=0;n<i.length;n++){var r=i[n],o=e[r];t.call(null,o,r)}else throw Error("non exhaustive match")}function kr(e){return typeof e=="string"}function Ei(e){return e===void 0}function so(e){return e instanceof Function}function Mn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ms(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Ur(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ha(e,t){return Ur(e,function(n){return!t(n)})}function dr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var o=n[r],s=e[o];t(s)&&(i[o]=s)}return i}function Ce(e,t){return Ih(e)?e.hasOwnProperty(t):!1}function Rt(e,t){return ya(e,function(n){return n===t})!==void 0}function vn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function hs(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function ya(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function y1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function cn(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),o=i?[]:Li(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:o[l]);return s}function va(e){return ha(e,function(t){return t==null})}function zu(e,t){t===void 0&&(t=a(function(i){return i},"identity"));var n=[];return cn(e,function(i,r){var o=t(r);return Rt(n,o)?i:(n.push(o),i.concat(r))},[])}function Lie(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function si(e){return Array.isArray(e)}function co(e){return e instanceof RegExp}function Ih(e){return e instanceof Object}function ci(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Cc(e,t){return ha(e,function(n){return Rt(t,n)})}function Oh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function v1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Fie(e,t){var n=vn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Rie(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],o=Li(r),s=0;s<o.length;s++){var l=o[s];e[l]=r[l]}return e}function VX(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],o=Li(r),s=0;s<o.length;s++){var l=o[s];Ce(e,l)||(e[l]=r[l])}return e}function Yu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return VX.apply(null,[{}].concat(e))}function T1(e,t){var n={};return ye(e,function(i){var r=t(i),o=n[r];o?o.push(i):n[r]=[i]}),n}function IA(e,t){for(var n=hs(e),i=Li(t),r=0;r<i.length;r++){var o=i[r],s=t[o];n[o]=s}return n}function wn(){}function OA(e){return e}function E1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function Ju(e){console&&console.error&&console.error("Error: "+e)}function Nh(e){console&&console.warn&&console.warn("Warning: "+e)}function NA(){return typeof Map=="function"}function b1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var o=Object.getOwnPropertyDescriptor(i,r);o&&(o.get||o.set)?Object.defineProperty(e.prototype,r,o):e.prototype[r]=n.prototype[r]}})})}function Lh(toBecomeFast){function FakeConstructor(){}a(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return a(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Zu(e){return e[e.length-1]}function Fh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var ht=qe(()=>{a(at,"isEmpty");a(Li,"keys");a(Vn,"values");a(h1,"mapValues");a(le,"map");a(On,"flatten");a(Ti,"first");a(Ch,"last");a(ye,"forEach");a(kr,"isString");a(Ei,"isUndefined");a(so,"isFunction");a(Mn,"drop");a(ms,"dropRight");a(Ur,"filter");a(ha,"reject");a(dr,"pick");a(Ce,"has");a(Rt,"contains");a(vn,"cloneArr");a(hs,"cloneObj");a(ya,"find");a(y1,"findAll");a(cn,"reduce");a(va,"compact");a(zu,"uniq");a(Lie,"partial");a(si,"isArray");a(co,"isRegExp");a(Ih,"isObject");a(ci,"every");a(Cc,"difference");a(Oh,"some");a(v1,"indexOf");a(Fie,"sortBy");a(Rie,"zipObject");a(gr,"assign");a(VX,"assignNoOverwrite");a(Yu,"defaults");a(T1,"groupBy");a(IA,"merge");a(wn,"NOOP");a(OA,"IDENTITY");a(E1,"packArray");a(Ju,"PRINT_ERROR");a(Nh,"PRINT_WARNING");a(NA,"isES2015MapSupported");a(b1,"applyMixins");a(Lh,"toFastProperties");a(Zu,"peek");a(Fh,"timer")});var _h=ze((S1,Rh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Rh=="object"&&Rh.exports?Rh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:S1,function(){function e(){}a(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(E){this.idx=E.idx,this.input=E.input,this.groupIdx=E.groupIdx},e.prototype.pattern=function(E){this.idx=0,this.input=E,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var R={type:"Flags",loc:{begin:this.idx,end:E.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(R,"global");break;case"i":s(R,"ignoreCase");break;case"m":s(R,"multiLine");break;case"u":s(R,"unicode");break;case"y":s(R,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:R,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var E=[],O=this.idx;for(E.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),E.push(this.alternative());return{type:"Disjunction",value:E,loc:this.loc(O)}},e.prototype.alternative=function(){for(var E=[],O=this.idx;this.isTerm();)E.push(this.term());return{type:"Alternative",value:E,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var E=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(E)};case"$":return{type:"EndAnchor",loc:this.loc(E)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(E)};case"B":return{type:"NonWordBoundary",loc:this.loc(E)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var R=this.disjunction();return this.consumeChar(")"),{type:O,value:R,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var O,R=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var U=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:U,atMost:U};break;case",":var j;this.isDigit()?(j=this.integerIncludingZero(),O={atLeast:U,atMost:j}):O={atLeast:U,atMost:1/0},this.consumeChar("}");break}if(E===!0&&O===void 0)return;l(O);break}if(!(E===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(R),O},e.prototype.atom=function(){var E,O=this.idx;switch(this.peekChar()){case".":E=this.dotAll();break;case"\\":E=this.atomEscape();break;case"[":E=this.characterClass();break;case"(":E=this.group();break}return E===void 0&&this.isPatternCharacter()&&(E=this.patternCharacter()),l(E),E.loc=this.loc(O),this.isQuantifier()&&(E.quantifier=this.quantifier()),E},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
82
+ `)}};At.escapeXML=In.escapeXML;At.__express=At.renderFile;At.VERSION=c8;At.name=p8;typeof window<"u"&&(window.ejs=At)});var qu,CA=qe(()=>{qu="7.1.1"});function at(e){return e&&e.length===0}function Li(e){return e==null?[]:Object.keys(e)}function Vn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function b1(e,t){for(var n=[],i=Li(e),r=0;r<i.length;r++){var o=i[r];n.push(t.call(null,e[o],o))}return n}function fe(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function On(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(On(i)):t.push(i)}return t}function Ti(e){return at(e)?void 0:e[0]}function Ph(e){var t=e&&e.length;return t?e[t-1]:void 0}function ye(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Ch(e))for(var i=Li(e),n=0;n<i.length;n++){var r=i[n],o=e[r];t.call(null,o,r)}else throw Error("non exhaustive match")}function kr(e){return typeof e=="string"}function Ei(e){return e===void 0}function so(e){return e instanceof Function}function Mn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ps(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Ur(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ha(e,t){return Ur(e,function(n){return!t(n)})}function dr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var o=n[r],s=e[o];t(s)&&(i[o]=s)}return i}function Ce(e,t){return Ch(e)?e.hasOwnProperty(t):!1}function Rt(e,t){return ya(e,function(n){return n===t})!==void 0}function vn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function ds(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function ya(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function A1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function cn(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),o=i?[]:Li(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:o[l]);return s}function va(e){return ha(e,function(t){return t==null})}function zu(e,t){t===void 0&&(t=a(function(i){return i},"identity"));var n=[];return cn(e,function(i,r){var o=t(r);return Rt(n,o)?i:(n.push(o),i.concat(r))},[])}function _ie(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function si(e){return Array.isArray(e)}function co(e){return e instanceof RegExp}function Ch(e){return e instanceof Object}function ci(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function xc(e,t){return ha(e,function(n){return Rt(t,n)})}function Ih(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function S1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Die(e,t){var n=vn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Vie(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],o=Li(r),s=0;s<o.length;s++){var l=o[s];e[l]=r[l]}return e}function UX(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],o=Li(r),s=0;s<o.length;s++){var l=o[s];Ce(e,l)||(e[l]=r[l])}return e}function Yu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return UX.apply(null,[{}].concat(e))}function x1(e,t){var n={};return ye(e,function(i){var r=t(i),o=n[r];o?o.push(i):n[r]=[i]}),n}function IA(e,t){for(var n=ds(e),i=Li(t),r=0;r<i.length;r++){var o=i[r],s=t[o];n[o]=s}return n}function wn(){}function OA(e){return e}function P1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function Ju(e){console&&console.error&&console.error("Error: "+e)}function Oh(e){console&&console.warn&&console.warn("Warning: "+e)}function NA(){return typeof Map=="function"}function C1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var o=Object.getOwnPropertyDescriptor(i,r);o&&(o.get||o.set)?Object.defineProperty(e.prototype,r,o):e.prototype[r]=n.prototype[r]}})})}function Nh(toBecomeFast){function FakeConstructor(){}a(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return a(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Zu(e){return e[e.length-1]}function Lh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var yt=qe(()=>{a(at,"isEmpty");a(Li,"keys");a(Vn,"values");a(b1,"mapValues");a(fe,"map");a(On,"flatten");a(Ti,"first");a(Ph,"last");a(ye,"forEach");a(kr,"isString");a(Ei,"isUndefined");a(so,"isFunction");a(Mn,"drop");a(ps,"dropRight");a(Ur,"filter");a(ha,"reject");a(dr,"pick");a(Ce,"has");a(Rt,"contains");a(vn,"cloneArr");a(ds,"cloneObj");a(ya,"find");a(A1,"findAll");a(cn,"reduce");a(va,"compact");a(zu,"uniq");a(_ie,"partial");a(si,"isArray");a(co,"isRegExp");a(Ch,"isObject");a(ci,"every");a(xc,"difference");a(Ih,"some");a(S1,"indexOf");a(Die,"sortBy");a(Vie,"zipObject");a(gr,"assign");a(UX,"assignNoOverwrite");a(Yu,"defaults");a(x1,"groupBy");a(IA,"merge");a(wn,"NOOP");a(OA,"IDENTITY");a(P1,"packArray");a(Ju,"PRINT_ERROR");a(Oh,"PRINT_WARNING");a(NA,"isES2015MapSupported");a(C1,"applyMixins");a(Nh,"toFastProperties");a(Zu,"peek");a(Lh,"timer")});var Rh=ze((O1,Fh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Fh=="object"&&Fh.exports?Fh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:O1,function(){function e(){}a(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(E){this.idx=E.idx,this.input=E.input,this.groupIdx=E.groupIdx},e.prototype.pattern=function(E){this.idx=0,this.input=E,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var R={type:"Flags",loc:{begin:this.idx,end:E.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(R,"global");break;case"i":s(R,"ignoreCase");break;case"m":s(R,"multiLine");break;case"u":s(R,"unicode");break;case"y":s(R,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:R,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var E=[],O=this.idx;for(E.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),E.push(this.alternative());return{type:"Disjunction",value:E,loc:this.loc(O)}},e.prototype.alternative=function(){for(var E=[],O=this.idx;this.isTerm();)E.push(this.term());return{type:"Alternative",value:E,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var E=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(E)};case"$":return{type:"EndAnchor",loc:this.loc(E)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(E)};case"B":return{type:"NonWordBoundary",loc:this.loc(E)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var R=this.disjunction();return this.consumeChar(")"),{type:O,value:R,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var O,R=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var U=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:U,atMost:U};break;case",":var H;this.isDigit()?(H=this.integerIncludingZero(),O={atLeast:U,atMost:H}):O={atLeast:U,atMost:1/0},this.consumeChar("}");break}if(E===!0&&O===void 0)return;l(O);break}if(!(E===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(R),O},e.prototype.atom=function(){var E,O=this.idx;switch(this.peekChar()){case".":E=this.dotAll();break;case"\\":E=this.atomEscape();break;case"[":E=this.characterClass();break;case"(":E=this.group();break}return E===void 0&&this.isPatternCharacter()&&(E=this.patternCharacter()),l(E),E.loc=this.loc(O),this.isQuantifier()&&(E.quantifier=this.quantifier()),E},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
83
83
  `),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var E=this.positiveInteger();return{type:"GroupBackReference",value:E}},e.prototype.characterClassEscape=function(){var E,O=!1;switch(this.popChar()){case"d":E=g;break;case"D":E=g,O=!0;break;case"s":E=v;break;case"S":E=v,O=!0;break;case"w":E=m;break;case"W":E=m,O=!0;break}return l(E),{type:"Set",value:E,complement:O}},e.prototype.controlEscapeAtom=function(){var E;switch(this.popChar()){case"f":E=r("\f");break;case"n":E=r(`
84
84
  `);break;case"r":E=r("\r");break;case"t":E=r(" ");break;case"v":E=r("\v");break}return l(E),{type:"Character",value:E}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var E=this.popChar();if(/[a-zA-Z]/.test(E)===!1)throw Error("Invalid ");var O=E.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:O}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var E=this.popChar();return{type:"Character",value:r(E)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
85
- `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var E=this.popChar();return{type:"Character",value:r(E)}}},e.prototype.characterClass=function(){var E=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var R=this.classAtom(),U=R.type==="Character";if(U&&this.isRangeDash()){this.consumeChar("-");var j=this.classAtom(),G=j.type==="Character";if(G){if(j.value<R.value)throw Error("Range out of order in character class");E.push({from:R.value,to:j.value})}else o(R.value,E),E.push(r("-")),o(j.value,E)}else o(R.value,E)}return this.consumeChar("]"),{type:"Set",complement:O,value:E}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
85
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var E=this.popChar();return{type:"Character",value:r(E)}}},e.prototype.characterClass=function(){var E=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var R=this.classAtom(),U=R.type==="Character";if(U&&this.isRangeDash()){this.consumeChar("-");var H=this.classAtom(),W=H.type==="Character";if(W){if(H.value<R.value)throw Error("Range out of order in character class");E.push({from:R.value,to:H.value})}else o(R.value,E),E.push(r("-")),o(H.value,E)}else o(R.value,E)}return this.consumeChar("]"),{type:"Set",complement:O,value:E}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
86
86
  `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:r("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var E=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),E=!1;break;default:this.groupIdx++;break}var O=this.disjunction();this.consumeChar(")");var R={type:"Group",capturing:E,value:O};return E&&(R.idx=this.groupIdx),R},e.prototype.positiveInteger=function(){var E=this.popChar();if(i.test(E)===!1)throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)E+=this.popChar();return parseInt(E,10)},e.prototype.integerIncludingZero=function(){var E=this.popChar();if(n.test(E)===!1)throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)E+=this.popChar();return parseInt(E,10)},e.prototype.patternCharacter=function(){var E=this.popChar();switch(E){case`
87
87
  `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(E)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(E){switch(E===void 0&&(E=0),this.peekChar(E)){case"]":case`
88
88
  `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var E=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(E)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
89
- `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(E){for(var O="",R=0;R<E;R++){var U=this.popChar();if(t.test(U)===!1)throw Error("Expecting a HexDecimal digits");O+=U}var j=parseInt(O,16);return{type:"Character",value:j}},e.prototype.peekChar=function(E){return E===void 0&&(E=0),this.input[this.idx+E]},e.prototype.popChar=function(){var E=this.peekChar(0);return this.consumeChar(),E},e.prototype.consumeChar=function(E){if(E!==void 0&&this.input[this.idx]!==E)throw Error("Expected: '"+E+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(E){return{begin:E,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(E){return E.charCodeAt(0)}a(r,"cc");function o(E,O){E.length!==void 0?E.forEach(function(R){O.push(R)}):O.push(E)}a(o,"insertToSet");function s(E,O){if(E[O]===!0)throw"duplicate flag "+O;E[O]=!0}a(s,"addFlag");function l(E){if(E===void 0)throw Error("Internal Error - Should never get here!")}a(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}a(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var v=[r(" "),r("\f"),r(`
90
- `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return a(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var R=E[O];E.hasOwnProperty(O)&&(R.type!==void 0?this.visit(R):Array.isArray(R)&&R.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function Ul(e){var t=e.toString();if(Dh.hasOwnProperty(t))return Dh[t];var n=MX.pattern(t);return Dh[t]=n,n}function P1(){Dh={}}var x1,Dh,MX,Vh=qe(()=>{x1=te(_h()),Dh={},MX=new x1.RegExpParser;a(Ul,"getRegExpAst");a(P1,"clearRegExpParserCache")});function O1(e,t){t===void 0&&(t=!1);try{var n=Ul(e),i=LA(n.value,{},n.flags.ignoreCase);return i}catch(o){if(o.message===I1)t&&Nh(""+ep+(" Unable to optimize: < "+e.toString()+` >
89
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(E){for(var O="",R=0;R<E;R++){var U=this.popChar();if(t.test(U)===!1)throw Error("Expecting a HexDecimal digits");O+=U}var H=parseInt(O,16);return{type:"Character",value:H}},e.prototype.peekChar=function(E){return E===void 0&&(E=0),this.input[this.idx+E]},e.prototype.popChar=function(){var E=this.peekChar(0);return this.consumeChar(),E},e.prototype.consumeChar=function(E){if(E!==void 0&&this.input[this.idx]!==E)throw Error("Expected: '"+E+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(E){return{begin:E,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(E){return E.charCodeAt(0)}a(r,"cc");function o(E,O){E.length!==void 0?E.forEach(function(R){O.push(R)}):O.push(E)}a(o,"insertToSet");function s(E,O){if(E[O]===!0)throw"duplicate flag "+O;E[O]=!0}a(s,"addFlag");function l(E){if(E===void 0)throw Error("Internal Error - Should never get here!")}a(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}a(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var v=[r(" "),r("\f"),r(`
90
+ `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return a(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var R=E[O];E.hasOwnProperty(O)&&(R.type!==void 0?this.visit(R):Array.isArray(R)&&R.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function Ml(e){var t=e.toString();if(_h.hasOwnProperty(t))return _h[t];var n=jX.pattern(t);return _h[t]=n,n}function L1(){_h={}}var N1,_h,jX,Dh=qe(()=>{N1=te(Rh()),_h={},jX=new N1.RegExpParser;a(Ml,"getRegExpAst");a(L1,"clearRegExpParserCache")});function _1(e,t){t===void 0&&(t=!1);try{var n=Ml(e),i=LA(n.value,{},n.flags.ignoreCase);return i}catch(o){if(o.message===R1)t&&Oh(""+ep+(" Unable to optimize: < "+e.toString()+` >
91
91
  `)+` Complement Sets cannot be automatically optimized.
92
92
  This will disable the lexer's first char optimizations.
93
93
  See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
94
94
  This will disable the lexer's first char optimizations.
95
95
  See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Ju(ep+`
96
96
  `+(" Failed parsing: < "+e.toString()+` >
97
- `)+(" Using the regexp-to-ast library version: "+wh.VERSION+`
98
- `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function LA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)LA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var o=r[i];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=o;switch(s.type){case"Character":Mh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(I1);ye(s.value,function(p){if(typeof p=="number")Mh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Mh(m,t,n);else{for(var m=g.from;m<=g.to&&m<jl;m++)Mh(m,t,n);if(g.to>=jl)for(var v=g.from>=jl?g.from:jl,A=g.to,E=ko(v),O=ko(A),R=E;R<=O;R++)t[R]=R}}});break;case"Group":LA(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&FA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Mh(e,t,n){var i=ko(e);t[i]=i,n===!0&&kX(e,t)}function kX(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=ko(i.charCodeAt(0));t[r]=r}else{var o=n.toLowerCase();if(o!==n){var r=ko(o.charCodeAt(0));t[r]=r}}}function C1(e,t){return ya(e.value,function(n){if(typeof n=="number")return Rt(t,n);var i=n;return ya(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function FA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?si(e.value)?ci(e.value,FA):FA(e.value):!1}function kh(e,t){if(t instanceof RegExp){var n=Ul(t),i=new UX(e);return i.visit(n),i.found}else return ya(t,function(r){return Rt(e,r.charCodeAt(0))})!==void 0}var wh,wX,I1,ep,UX,N1=qe(()=>{wh=te(_h());ht();Vh();RA();wX=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),I1="Complement Sets are not supported for first char optimization",ep=`Unable to use "first char" lexer optimizations:
99
- `;a(O1,"getOptimizedStartCodesIndices");a(LA,"firstCharOptimizedIndices");a(Mh,"addOptimizedIdxToResult");a(kX,"handleIgnoreCase");a(C1,"findCode");a(FA,"isWholeOptional");UX=function(e){wX(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return a(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Rt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?C1(n,this.targetCharCodes)===void 0&&(this.found=!0):C1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(wh.BaseRegExpVisitor);a(kh,"canMatchCharCode")});function _1(e,t){t=Yu(t,{useSticky:VA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
- `],tracer:function(j,G){return G()}});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){i7()});var i;n("Reject Lexer.NA",function(){i=ha(e,function(j){return j[Uo]===Fi.NA})});var r=!1,o;n("Transform Patterns",function(){r=!1,o=le(i,function(j){var G=j[Uo];if(co(G)){var re=G.source;return re.length===1&&re!=="^"&&re!=="$"&&re!=="."&&!G.ignoreCase?re:re.length===2&&re[0]==="\\"&&!Rt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],re[1])?re[1]:t.useSticky?F1(G):L1(G)}else{if(so(G))return r=!0,{exec:G};if(Ce(G,"exec"))return r=!0,G;if(typeof G=="string"){if(G.length===1)return G;var Z=G.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),he=new RegExp(Z);return t.useSticky?F1(he):L1(he)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=le(i,function(j){return j.tokenTypeIdx}),l=le(i,function(j){var G=j.GROUP;if(G!==Fi.SKIPPED){if(kr(G))return G;if(Ei(G))return!1;throw Error("non exhaustive match")}}),u=le(i,function(j){var G=j.LONGER_ALT;if(G){var re=v1(i,G);return re}}),p=le(i,function(j){return j.PUSH_MODE}),g=le(i,function(j){return Ce(j,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var j=$1(t.lineTerminatorCharacters);m=le(i,function(G){return!1}),t.positionTracking!=="onlyOffset"&&(m=le(i,function(G){if(Ce(G,"LINE_BREAKS"))return G.LINE_BREAKS;if(j1(G,j)===!1)return kh(j,G.PATTERN)}))});var v,A,E,O;n("Misc Mapping #2",function(){v=le(i,k1),A=le(o,t7),E=cn(i,function(j,G){var re=G.GROUP;return kr(re)&&re!==Fi.SKIPPED&&(j[re]=[]),j},{}),O=le(o,function(j,G){return{pattern:o[G],longerAlt:u[G],canLineTerminator:m[G],isCustom:v[G],short:A[G],group:l[G],push:p[G],pop:g[G],tokenTypeIdx:s[G],tokenType:i[G]}})});var R=!0,U=[];return t.safeMode||n("First Char Optimization",function(){U=cn(i,function(j,G,re){if(typeof G.PATTERN=="string"){var Z=G.PATTERN.charCodeAt(0),he=ko(Z);_A(j,he,O[re])}else if(si(G.START_CHARS_HINT)){var De;ye(G.START_CHARS_HINT,function(Pt){var pt=typeof Pt=="string"?Pt.charCodeAt(0):Pt,$e=ko(pt);De!==$e&&(De=$e,_A(j,$e,O[re]))})}else if(co(G.PATTERN))if(G.PATTERN.unicode)R=!1,t.ensureOptimizations&&Ju(""+ep+(" Unable to analyze < "+G.PATTERN.toString()+` > pattern.
97
+ `)+(" Using the regexp-to-ast library version: "+Mh.VERSION+`
98
+ `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function LA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)LA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var o=r[i];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=o;switch(s.type){case"Character":Vh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(R1);ye(s.value,function(p){if(typeof p=="number")Vh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Vh(m,t,n);else{for(var m=g.from;m<=g.to&&m<wl;m++)Vh(m,t,n);if(g.to>=wl)for(var v=g.from>=wl?g.from:wl,A=g.to,E=wo(v),O=wo(A),R=E;R<=O;R++)t[R]=R}}});break;case"Group":LA(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&FA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Vh(e,t,n){var i=wo(e);t[i]=i,n===!0&&BX(e,t)}function BX(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=wo(i.charCodeAt(0));t[r]=r}else{var o=n.toLowerCase();if(o!==n){var r=wo(o.charCodeAt(0));t[r]=r}}}function F1(e,t){return ya(e.value,function(n){if(typeof n=="number")return Rt(t,n);var i=n;return ya(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function FA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?si(e.value)?ci(e.value,FA):FA(e.value):!1}function wh(e,t){if(t instanceof RegExp){var n=Ml(t),i=new HX(e);return i.visit(n),i.found}else return ya(t,function(r){return Rt(e,r.charCodeAt(0))})!==void 0}var Mh,$X,R1,ep,HX,D1=qe(()=>{Mh=te(Rh());yt();Dh();RA();$X=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),R1="Complement Sets are not supported for first char optimization",ep=`Unable to use "first char" lexer optimizations:
99
+ `;a(_1,"getOptimizedStartCodesIndices");a(LA,"firstCharOptimizedIndices");a(Vh,"addOptimizedIdxToResult");a(BX,"handleIgnoreCase");a(F1,"findCode");a(FA,"isWholeOptional");HX=function(e){$X(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return a(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Rt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?F1(n,this.targetCharCodes)===void 0&&(this.found=!0):F1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Mh.BaseRegExpVisitor);a(wh,"canMatchCharCode")});function k1(e,t){t=Yu(t,{useSticky:VA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
+ `],tracer:function(H,W){return W()}});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){s7()});var i;n("Reject Lexer.NA",function(){i=ha(e,function(H){return H[ko]===Fi.NA})});var r=!1,o;n("Transform Patterns",function(){r=!1,o=fe(i,function(H){var W=H[ko];if(co(W)){var ie=W.source;return ie.length===1&&ie!=="^"&&ie!=="$"&&ie!=="."&&!W.ignoreCase?ie:ie.length===2&&ie[0]==="\\"&&!Rt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ie[1])?ie[1]:t.useSticky?M1(W):V1(W)}else{if(so(W))return r=!0,{exec:W};if(Ce(W,"exec"))return r=!0,W;if(typeof W=="string"){if(W.length===1)return W;var Z=W.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),ne=new RegExp(Z);return t.useSticky?M1(ne):V1(ne)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=fe(i,function(H){return H.tokenTypeIdx}),l=fe(i,function(H){var W=H.GROUP;if(W!==Fi.SKIPPED){if(kr(W))return W;if(Ei(W))return!1;throw Error("non exhaustive match")}}),u=fe(i,function(H){var W=H.LONGER_ALT;if(W){var ie=S1(i,W);return ie}}),p=fe(i,function(H){return H.PUSH_MODE}),g=fe(i,function(H){return Ce(H,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var H=K1(t.lineTerminatorCharacters);m=fe(i,function(W){return!1}),t.positionTracking!=="onlyOffset"&&(m=fe(i,function(W){if(Ce(W,"LINE_BREAKS"))return W.LINE_BREAKS;if(G1(W,H)===!1)return wh(H,W.PATTERN)}))});var v,A,E,O;n("Misc Mapping #2",function(){v=fe(i,H1),A=fe(o,o7),E=cn(i,function(H,W){var ie=W.GROUP;return kr(ie)&&ie!==Fi.SKIPPED&&(H[ie]=[]),H},{}),O=fe(o,function(H,W){return{pattern:o[W],longerAlt:u[W],canLineTerminator:m[W],isCustom:v[W],short:A[W],group:l[W],push:p[W],pop:g[W],tokenTypeIdx:s[W],tokenType:i[W]}})});var R=!0,U=[];return t.safeMode||n("First Char Optimization",function(){U=cn(i,function(H,W,ie){if(typeof W.PATTERN=="string"){var Z=W.PATTERN.charCodeAt(0),ne=wo(Z);_A(H,ne,O[ie])}else if(si(W.START_CHARS_HINT)){var Le;ye(W.START_CHARS_HINT,function(Pt){var dt=typeof Pt=="string"?Pt.charCodeAt(0):Pt,$e=wo(dt);Le!==$e&&(Le=$e,_A(H,$e,O[ie]))})}else if(co(W.PATTERN))if(W.PATTERN.unicode)R=!1,t.ensureOptimizations&&Ju(""+ep+(" Unable to analyze < "+W.PATTERN.toString()+` > pattern.
101
101
  `)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
102
102
  This will disable the lexer's first char optimizations.
103
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=O1(G.PATTERN,t.ensureOptimizations);at(D)&&(R=!1),ye(D,function(Pt){_A(j,Pt,O[re])})}else t.ensureOptimizations&&Ju(""+ep+(" TokenType: <"+G.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
103
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=_1(W.PATTERN,t.ensureOptimizations);at(D)&&(R=!1),ye(D,function(Pt){_A(H,Pt,O[ie])})}else t.ensureOptimizations&&Ju(""+ep+(" TokenType: <"+W.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
104
104
  `)+` This will disable the lexer's first char optimizations.
105
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),R=!1;return j},[])}),n("ArrayPacking",function(){U=E1(U)}),{emptyGroups:E,patternIdxToConfig:O,charCodeToPatternIdxToConfig:U,hasCustom:r,canBeOptimized:R}}function D1(e,t){var n=[],i=$X(e);n=n.concat(i.errors);var r=BX(i.valid),o=r.valid;return n=n.concat(r.errors),n=n.concat(jX(o)),n=n.concat(zX(o)),n=n.concat(YX(o,t)),n=n.concat(JX(o)),n}function jX(e){var t=[],n=Ur(e,function(i){return co(i[Uo])});return t=t.concat(WX(n)),t=t.concat(XX(n)),t=t.concat(QX(n)),t=t.concat(qX(n)),t=t.concat(GX(n)),t}function $X(e){var t=Ur(e,function(r){return!Ce(r,Uo)}),n=le(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:ln.MISSING_PATTERN,tokenTypes:[r]}}),i=Cc(e,t);return{errors:n,valid:i}}function BX(e){var t=Ur(e,function(r){var o=r[Uo];return!co(o)&&!so(o)&&!Ce(o,"exec")&&!kr(o)}),n=le(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ln.INVALID_PATTERN,tokenTypes:[r]}}),i=Cc(e,t);return{errors:n,valid:i}}function WX(e){var t=function(r){R1(o,r);function o(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return a(o,"EndAnchorFinder"),o.prototype.visitEndAnchor=function(s){this.found=!0},o}(DA.BaseRegExpVisitor),n=Ur(e,function(r){var o=r[Uo];try{var s=Ul(o),l=new t;return l.visit(s),l.found}catch{return HX.test(o.source)}}),i=le(n,function(r){return{message:`Unexpected RegExp Anchor Error:
105
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),R=!1;return H},[])}),n("ArrayPacking",function(){U=P1(U)}),{emptyGroups:E,patternIdxToConfig:O,charCodeToPatternIdxToConfig:U,hasCustom:r,canBeOptimized:R}}function U1(e,t){var n=[],i=GX(e);n=n.concat(i.errors);var r=KX(i.valid),o=r.valid;return n=n.concat(r.errors),n=n.concat(WX(o)),n=n.concat(e7(o)),n=n.concat(t7(o,t)),n=n.concat(n7(o)),n}function WX(e){var t=[],n=Ur(e,function(i){return co(i[ko])});return t=t.concat(QX(n)),t=t.concat(YX(n)),t=t.concat(JX(n)),t=t.concat(ZX(n)),t=t.concat(qX(n)),t}function GX(e){var t=Ur(e,function(r){return!Ce(r,ko)}),n=fe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:ln.MISSING_PATTERN,tokenTypes:[r]}}),i=xc(e,t);return{errors:n,valid:i}}function KX(e){var t=Ur(e,function(r){var o=r[ko];return!co(o)&&!so(o)&&!Ce(o,"exec")&&!kr(o)}),n=fe(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ln.INVALID_PATTERN,tokenTypes:[r]}}),i=xc(e,t);return{errors:n,valid:i}}function QX(e){var t=function(r){w1(o,r);function o(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return a(o,"EndAnchorFinder"),o.prototype.visitEndAnchor=function(s){this.found=!0},o}(DA.BaseRegExpVisitor),n=Ur(e,function(r){var o=r[ko];try{var s=Ml(o),l=new t;return l.visit(s),l.found}catch{return XX.test(o.source)}}),i=fe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
106
106
  Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
107
- See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ln.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function GX(e){var t=Ur(e,function(i){var r=i[Uo];return r.test("")}),n=le(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:ln.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function XX(e){var t=function(r){R1(o,r);function o(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return a(o,"StartAnchorFinder"),o.prototype.visitStartAnchor=function(s){this.found=!0},o}(DA.BaseRegExpVisitor),n=Ur(e,function(r){var o=r[Uo];try{var s=Ul(o),l=new t;return l.visit(s),l.found}catch{return KX.test(o.source)}}),i=le(n,function(r){return{message:`Unexpected RegExp Anchor Error:
107
+ See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ln.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function qX(e){var t=Ur(e,function(i){var r=i[ko];return r.test("")}),n=fe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:ln.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function YX(e){var t=function(r){w1(o,r);function o(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return a(o,"StartAnchorFinder"),o.prototype.visitStartAnchor=function(s){this.found=!0},o}(DA.BaseRegExpVisitor),n=Ur(e,function(r){var o=r[ko];try{var s=Ml(o),l=new t;return l.visit(s),l.found}catch{return zX.test(o.source)}}),i=fe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
108
108
  Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
109
- See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ln.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function QX(e){var t=Ur(e,function(i){var r=i[Uo];return r instanceof RegExp&&(r.multiline||r.global)}),n=le(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ln.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function qX(e){var t=[],n=le(e,function(o){return cn(e,function(s,l){return o.PATTERN.source===l.PATTERN.source&&!Rt(t,l)&&l.PATTERN!==Fi.NA&&(t.push(l),s.push(l)),s},[])});n=va(n);var i=Ur(n,function(o){return o.length>1}),r=le(i,function(o){var s=le(o,function(u){return u.name}),l=Ti(o).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:ln.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}});return r}function zX(e){var t=Ur(e,function(i){if(!Ce(i,"GROUP"))return!1;var r=i.GROUP;return r!==Fi.SKIPPED&&r!==Fi.NA&&!kr(r)}),n=le(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ln.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function YX(e,t){var n=Ur(e,function(r){return r.PUSH_MODE!==void 0&&!Rt(t,r.PUSH_MODE)}),i=le(n,function(r){var o="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:o,type:ln.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function JX(e){var t=[],n=cn(e,function(i,r,o){var s=r.PATTERN;return s===Fi.NA||(kr(s)?i.push({str:s,idx:o,tokenType:r}):co(s)&&e7(s)&&i.push({str:s.source,idx:o,tokenType:r})),i},[]);return ye(e,function(i,r){ye(n,function(o){var s=o.str,l=o.idx,u=o.tokenType;if(r<l&&ZX(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
109
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:ln.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function JX(e){var t=Ur(e,function(i){var r=i[ko];return r instanceof RegExp&&(r.multiline||r.global)}),n=fe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ln.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function ZX(e){var t=[],n=fe(e,function(o){return cn(e,function(s,l){return o.PATTERN.source===l.PATTERN.source&&!Rt(t,l)&&l.PATTERN!==Fi.NA&&(t.push(l),s.push(l)),s},[])});n=va(n);var i=Ur(n,function(o){return o.length>1}),r=fe(i,function(o){var s=fe(o,function(u){return u.name}),l=Ti(o).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:ln.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}});return r}function e7(e){var t=Ur(e,function(i){if(!Ce(i,"GROUP"))return!1;var r=i.GROUP;return r!==Fi.SKIPPED&&r!==Fi.NA&&!kr(r)}),n=fe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ln.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function t7(e,t){var n=Ur(e,function(r){return r.PUSH_MODE!==void 0&&!Rt(t,r.PUSH_MODE)}),i=fe(n,function(r){var o="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:o,type:ln.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function n7(e){var t=[],n=cn(e,function(i,r,o){var s=r.PATTERN;return s===Fi.NA||(kr(s)?i.push({str:s,idx:o,tokenType:r}):co(s)&&r7(s)&&i.push({str:s.source,idx:o,tokenType:r})),i},[]);return ye(e,function(i,r){ye(n,function(o){var s=o.str,l=o.idx,u=o.tokenType;if(r<l&&i7(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
110
110
  `+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
111
- See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:ln.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function ZX(e,t){if(co(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(so(t))return t(e,0,[],{});if(Ce(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function e7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return ya(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function L1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function F1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function V1(e,t,n){var i=[];return Ce(e,ys)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+ys+`> property in its definition
112
- `,type:ln.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ce(e,Uh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Uh+`> property in its definition
113
- `,type:ln.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ce(e,Uh)&&Ce(e,ys)&&!Ce(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+ys+": <"+e.defaultMode+`>which does not exist
114
- `,type:ln.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ce(e,Uh)&&ye(e.modes,function(r,o){ye(r,function(s,l){Ei(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+o+"> at index: <"+l+`>
115
- `),type:ln.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function M1(e,t,n){var i=[],r=!1,o=va(On(h1(e.modes,function(u){return u}))),s=ha(o,function(u){return u[Uo]===Fi.NA}),l=$1(n);return t&&ye(s,function(u){var p=j1(u,l);if(p!==!1){var g=n7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ce(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):kh(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
111
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:ln.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function i7(e,t){if(co(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(so(t))return t(e,0,[],{});if(Ce(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function r7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return ya(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function V1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function M1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function j1(e,t,n){var i=[];return Ce(e,gs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+gs+`> property in its definition
112
+ `,type:ln.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ce(e,kh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+kh+`> property in its definition
113
+ `,type:ln.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ce(e,kh)&&Ce(e,gs)&&!Ce(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+gs+": <"+e.defaultMode+`>which does not exist
114
+ `,type:ln.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ce(e,kh)&&ye(e.modes,function(r,o){ye(r,function(s,l){Ei(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+o+"> at index: <"+l+`>
115
+ `),type:ln.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function $1(e,t,n){var i=[],r=!1,o=va(On(b1(e.modes,function(u){return u}))),s=ha(o,function(u){return u[ko]===Fi.NA}),l=K1(n);return t&&ye(s,function(u){var p=G1(u,l);if(p!==!1){var g=a7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ce(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):wh(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
116
116
  This Lexer has been defined to track line and column information,
117
117
  But none of the Token Types can be identified as matching a line terminator.
118
118
  See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
119
- for details.`,type:ln.NO_LINE_BREAKS_FLAGS}),i}function w1(e){var t={},n=Li(e);return ye(n,function(i){var r=e[i];if(si(r))t[i]=[];else throw Error("non exhaustive match")}),t}function k1(e){var t=e.PATTERN;if(co(t))return!1;if(so(t))return!0;if(Ce(t,"exec"))return!0;if(kr(t))return!1;throw Error("non exhaustive match")}function t7(e){return kr(e)&&e.length===1?e.charCodeAt(0):!1}function j1(e,t){if(Ce(e,"LINE_BREAKS"))return!1;if(co(e.PATTERN)){try{kh(t,e.PATTERN)}catch(n){return{issue:ln.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(kr(e.PATTERN))return!1;if(k1(e))return{issue:ln.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function n7(e,t){if(t.issue===ln.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
119
+ for details.`,type:ln.NO_LINE_BREAKS_FLAGS}),i}function B1(e){var t={},n=Li(e);return ye(n,function(i){var r=e[i];if(si(r))t[i]=[];else throw Error("non exhaustive match")}),t}function H1(e){var t=e.PATTERN;if(co(t))return!1;if(so(t))return!0;if(Ce(t,"exec"))return!0;if(kr(t))return!1;throw Error("non exhaustive match")}function o7(e){return kr(e)&&e.length===1?e.charCodeAt(0):!1}function G1(e,t){if(Ce(e,"LINE_BREAKS"))return!1;if(co(e.PATTERN)){try{wh(t,e.PATTERN)}catch(n){return{issue:ln.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(kr(e.PATTERN))return!1;if(H1(e))return{issue:ln.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function a7(e,t){if(t.issue===ln.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
120
120
  `+(" The problem is in the <"+e.name+`> Token Type
121
121
  `)+(" Root cause: "+t.errMsg+`.
122
122
  `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===ln.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
123
123
  `+(" The problem is in the <"+e.name+`> Token Type
124
- `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function $1(e){var t=le(e,function(n){return kr(n)&&n.length>0?n.charCodeAt(0):n});return t}function _A(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function ko(e){return e<jl?e:jh[e]}function i7(){if(at(jh)){jh=new Array(65536);for(var e=0;e<65536;e++)jh[e]=e>255?255+~~(e/255):e}}var DA,R1,Uo,ys,Uh,VA,HX,KX,U1,jl,jh,RA=qe(()=>{DA=te(_h());tp();ht();N1();Vh();R1=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Uo="PATTERN",ys="defaultMode",Uh="modes",VA=typeof new RegExp("(?:)").sticky=="boolean";a(_1,"analyzeTokenTypes");a(D1,"validatePatterns");a(jX,"validateRegExpPattern");a($X,"findMissingPatterns");a(BX,"findInvalidPatterns");HX=/[^\\][\$]/;a(WX,"findEndOfInputAnchor");a(GX,"findEmptyMatchRegExps");KX=/[^\\[][\^]|^\^/;a(XX,"findStartOfInputAnchor");a(QX,"findUnsupportedFlags");a(qX,"findDuplicatePatterns");a(zX,"findInvalidGroupType");a(YX,"findModesThatDoNotExist");a(JX,"findUnreachablePatterns");a(ZX,"testTokenType");a(e7,"noMetaChar");a(L1,"addStartOfInput");a(F1,"addStickyFlag");a(V1,"performRuntimeChecks");a(M1,"performWarningRuntimeChecks");a(w1,"cloneEmptyGroups");a(k1,"isCustomPattern");a(t7,"isShortPattern");U1={test:function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};a(j1,"checkLineBreaksIssues");a(n7,"buildLineBreakIssueMessage");a($1,"getCharCodes");a(_A,"addToMapOfArrays");jl=256;a(ko,"charCodeToOptimizedIndex");jh=[];a(i7,"initCharCodeToOptimizedIndexMap")});function Ic(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function $l(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Ta(e){var t=r7(e);o7(t),s7(t),a7(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function r7(e){for(var t=vn(e),n=e,i=!0;i;){n=va(On(le(n,function(o){return o.CATEGORIES})));var r=Cc(n,t);t=t.concat(r),at(r)?i=!1:n=r}return t}function o7(e){ye(e,function(t){MA(t)||(W1[B1]=t,t.tokenTypeIdx=B1++),H1(t)&&!si(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),H1(t)||(t.CATEGORIES=[]),c7(t)||(t.categoryMatches=[]),l7(t)||(t.categoryMatchesMap={})})}function a7(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(W1[i].tokenTypeIdx)})})}function s7(e){ye(e,function(t){G1([],t)})}function G1(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Rt(i,n)||G1(i,n)})}function MA(e){return Ce(e,"tokenTypeIdx")}function H1(e){return Ce(e,"CATEGORIES")}function c7(e){return Ce(e,"categoryMatches")}function l7(e){return Ce(e,"categoryMatchesMap")}function K1(e){return Ce(e,"tokenTypeIdx")}var B1,W1,Bl=qe(()=>{ht();a(Ic,"tokenStructuredMatcher");a($l,"tokenStructuredMatcherNoCategories");B1=1,W1={};a(Ta,"augmentTokenTypes");a(r7,"expandCategories");a(o7,"assignTokenDefaultProps");a(a7,"assignCategoriesTokensProp");a(s7,"assignCategoriesMapProp");a(G1,"singleAssignCategoriesToksMap");a(MA,"hasShortKeyProperty");a(H1,"hasCategoriesProperty");a(c7,"hasExtendingTokensTypesProperty");a(l7,"hasExtendingTokensTypesMapProperty");a(K1,"isTokenType")});var $h,wA=qe(()=>{$h={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")}}});var ln,np,Fi,tp=qe(()=>{RA();ht();Bl();wA();Vh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(ln||(ln={}));np={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
- `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:$h,traceInitPerf:!1,skipValidations:!1};Object.freeze(np);Fi=function(){function e(t,n){var i=this;if(n===void 0&&(n=np),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
- a boolean 2nd argument is no longer supported`);this.config=IA(np,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var o,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===np.lineTerminatorsPattern)i.config.lineTerminatorsPattern=U1;else if(i.config.lineTerminatorCharacters===np.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
127
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),si(t)?(o={modes:{}},o.modes[ys]=vn(t),o[ys]=ys):(s=!1,o=hs(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(V1(o,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(M1(o,i.trackStartLines,i.config.lineTerminatorCharacters))})),o.modes=o.modes?o.modes:{},ye(o.modes,function(g,m){o.modes[m]=ha(g,function(v){return Ei(v)})});var l=Li(o.modes);if(ye(o.modes,function(g,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(D1(g,l))}),at(i.lexerDefinitionErrors)){Ta(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=_1(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=IA(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=o.defaultMode,!at(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=le(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
124
+ `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function K1(e){var t=fe(e,function(n){return kr(n)&&n.length>0?n.charCodeAt(0):n});return t}function _A(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function wo(e){return e<wl?e:Uh[e]}function s7(){if(at(Uh)){Uh=new Array(65536);for(var e=0;e<65536;e++)Uh[e]=e>255?255+~~(e/255):e}}var DA,w1,ko,gs,kh,VA,XX,zX,W1,wl,Uh,RA=qe(()=>{DA=te(Rh());tp();yt();D1();Dh();w1=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ko="PATTERN",gs="defaultMode",kh="modes",VA=typeof new RegExp("(?:)").sticky=="boolean";a(k1,"analyzeTokenTypes");a(U1,"validatePatterns");a(WX,"validateRegExpPattern");a(GX,"findMissingPatterns");a(KX,"findInvalidPatterns");XX=/[^\\][\$]/;a(QX,"findEndOfInputAnchor");a(qX,"findEmptyMatchRegExps");zX=/[^\\[][\^]|^\^/;a(YX,"findStartOfInputAnchor");a(JX,"findUnsupportedFlags");a(ZX,"findDuplicatePatterns");a(e7,"findInvalidGroupType");a(t7,"findModesThatDoNotExist");a(n7,"findUnreachablePatterns");a(i7,"testTokenType");a(r7,"noMetaChar");a(V1,"addStartOfInput");a(M1,"addStickyFlag");a(j1,"performRuntimeChecks");a($1,"performWarningRuntimeChecks");a(B1,"cloneEmptyGroups");a(H1,"isCustomPattern");a(o7,"isShortPattern");W1={test:function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};a(G1,"checkLineBreaksIssues");a(a7,"buildLineBreakIssueMessage");a(K1,"getCharCodes");a(_A,"addToMapOfArrays");wl=256;a(wo,"charCodeToOptimizedIndex");Uh=[];a(s7,"initCharCodeToOptimizedIndexMap")});function Pc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function kl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Ta(e){var t=c7(e);l7(t),u7(t),f7(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function c7(e){for(var t=vn(e),n=e,i=!0;i;){n=va(On(fe(n,function(o){return o.CATEGORIES})));var r=xc(n,t);t=t.concat(r),at(r)?i=!1:n=r}return t}function l7(e){ye(e,function(t){MA(t)||(q1[X1]=t,t.tokenTypeIdx=X1++),Q1(t)&&!si(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),Q1(t)||(t.CATEGORIES=[]),p7(t)||(t.categoryMatches=[]),d7(t)||(t.categoryMatchesMap={})})}function f7(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(q1[i].tokenTypeIdx)})})}function u7(e){ye(e,function(t){z1([],t)})}function z1(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Rt(i,n)||z1(i,n)})}function MA(e){return Ce(e,"tokenTypeIdx")}function Q1(e){return Ce(e,"CATEGORIES")}function p7(e){return Ce(e,"categoryMatches")}function d7(e){return Ce(e,"categoryMatchesMap")}function Y1(e){return Ce(e,"tokenTypeIdx")}var X1,q1,Ul=qe(()=>{yt();a(Pc,"tokenStructuredMatcher");a(kl,"tokenStructuredMatcherNoCategories");X1=1,q1={};a(Ta,"augmentTokenTypes");a(c7,"expandCategories");a(l7,"assignTokenDefaultProps");a(f7,"assignCategoriesTokensProp");a(u7,"assignCategoriesMapProp");a(z1,"singleAssignCategoriesToksMap");a(MA,"hasShortKeyProperty");a(Q1,"hasCategoriesProperty");a(p7,"hasExtendingTokensTypesProperty");a(d7,"hasExtendingTokensTypesMapProperty");a(Y1,"isTokenType")});var jh,wA=qe(()=>{jh={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")}}});var ln,np,Fi,tp=qe(()=>{RA();yt();Ul();wA();Dh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(ln||(ln={}));np={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
+ `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:jh,traceInitPerf:!1,skipValidations:!1};Object.freeze(np);Fi=function(){function e(t,n){var i=this;if(n===void 0&&(n=np),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
+ a boolean 2nd argument is no longer supported`);this.config=IA(np,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var o,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===np.lineTerminatorsPattern)i.config.lineTerminatorsPattern=W1;else if(i.config.lineTerminatorCharacters===np.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
127
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),si(t)?(o={modes:{}},o.modes[gs]=vn(t),o[gs]=gs):(s=!1,o=ds(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(j1(o,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat($1(o,i.trackStartLines,i.config.lineTerminatorCharacters))})),o.modes=o.modes?o.modes:{},ye(o.modes,function(g,m){o.modes[m]=ha(g,function(v){return Ei(v)})});var l=Li(o.modes);if(ye(o.modes,function(g,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(U1(g,l))}),at(i.lexerDefinitionErrors)){Ta(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=k1(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=IA(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=o.defaultMode,!at(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=fe(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
128
128
  `);throw new Error(`Errors detected in definition of Lexer:
129
- `+p)}ye(i.lexerDefinitionWarning,function(g){Nh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(VA?(i.chopInput=OA,i.match=i.matchWithTest):(i.updateLastIndex=wn,i.match=i.matchWithExec),s&&(i.handleModes=wn),i.trackStartLines===!1&&(i.computeNewColumn=OA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=wn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=cn(i.canModeBeOptimized,function(m,v,A){return v===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!at(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
129
+ `+p)}ye(i.lexerDefinitionWarning,function(g){Oh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(VA?(i.chopInput=OA,i.match=i.matchWithTest):(i.updateLastIndex=wn,i.match=i.matchWithExec),s&&(i.handleModes=wn),i.trackStartLines===!1&&(i.computeNewColumn=OA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=wn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=cn(i.canModeBeOptimized,function(m,v,A){return v===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!at(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
130
130
  Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
131
- Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){P1()}),i.TRACE_INIT("toFastProperties",function(){Lh(i)})})}return a(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!at(this.lexerDefinitionErrors)){var i=le(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
131
+ Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){L1()}),i.TRACE_INIT("toFastProperties",function(){Nh(i)})})}return a(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!at(this.lexerDefinitionErrors)){var i=fe(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
132
132
  `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
133
- `+r)}var o=this.tokenizeInternal(t,n);return o},e.prototype.tokenizeInternal=function(t,n){var i=this,r,o,s,l,u,p,g,m,v,A,E,O,R,U,j,G=t,re=G.length,Z=0,he=0,De=this.hasCustom?0:Math.floor(t.length/10),D=new Array(De),Pt=[],pt=this.trackStartLines?1:void 0,$e=this.trackStartLines?1:void 0,fn=w1(this.emptyGroups),Vi=this.trackStartLines,Sn=this.config.lineTerminatorsPattern,jt=0,Le=[],Ai=[],Ct=[],Dt=[];Object.freeze(Dt);var rn=void 0;function Mi(){return Le}a(Mi,"getPossiblePatternsSlow");function Fe(Bt){var Ko=ko(Bt),wi=Ai[Ko];return wi===void 0?Dt:wi}a(Fe,"getPossiblePatternsOptimized");var Gn=a(function(Bt){if(Ct.length===1&&Bt.tokenType.PUSH_MODE===void 0){var Ko=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Bt);Pt.push({offset:Bt.startOffset,line:Bt.startLine!==void 0?Bt.startLine:void 0,column:Bt.startColumn!==void 0?Bt.startColumn:void 0,length:Bt.image.length,message:Ko})}else{Ct.pop();var wi=Ch(Ct);Le=i.patternIdxToConfig[wi],Ai=i.charCodeToPatternIdxToConfig[wi],jt=Le.length;var Af=i.canModeBeOptimized[wi]&&i.config.safeMode===!1;Ai&&Af?rn=Fe:rn=Mi}},"pop_mode");function Sr(Bt){Ct.push(Bt),Ai=this.charCodeToPatternIdxToConfig[Bt],Le=this.patternIdxToConfig[Bt],jt=Le.length,jt=Le.length;var Ko=this.canModeBeOptimized[Bt]&&this.config.safeMode===!1;Ai&&Ko?rn=Fe:rn=Mi}a(Sr,"push_mode"),Sr.call(this,n);for(var st;Z<re;){u=null;var I=G.charCodeAt(Z),S=rn(I),Y=S.length;for(r=0;r<Y;r++){st=S[r];var M=st.pattern;p=null;var Ve=st.short;if(Ve!==!1?I===Ve&&(u=M):st.isCustom===!0?(j=M.exec(G,Z,D,fn),j!==null?(u=j[0],j.payload!==void 0&&(p=j.payload)):u=null):(this.updateLastIndex(M,Z),u=this.match(M,t,Z)),u!==null){if(l=st.longerAlt,l!==void 0){var Nt=Le[l],Qe=Nt.pattern;g=null,Nt.isCustom===!0?(j=Qe.exec(G,Z,D,fn),j!==null?(s=j[0],j.payload!==void 0&&(g=j.payload)):s=null):(this.updateLastIndex(Qe,Z),s=this.match(Qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,st=Nt)}break}}if(u!==null){if(m=u.length,v=st.group,v!==void 0&&(A=st.tokenTypeIdx,E=this.createTokenInstance(u,Z,A,st.tokenType,pt,$e,m),this.handlePayload(E,p),v===!1?he=this.addToken(D,he,E):fn[v].push(E)),t=this.chopInput(t,m),Z=Z+m,$e=this.computeNewColumn($e,m),Vi===!0&&st.canLineTerminator===!0){var Vt=0,Rn=void 0,on=void 0;Sn.lastIndex=0;do Rn=Sn.test(u),Rn===!0&&(on=Sn.lastIndex-1,Vt++);while(Rn===!0);Vt!==0&&(pt=pt+Vt,$e=m-on,this.updateTokenEndLineColumnLocation(E,v,on,Vt,pt,$e,m))}this.handleModes(st,Gn,Sr,E)}else{for(var $t=Z,ni=pt,tr=$e,un=!1;!un&&Z<re;)for(R=G.charCodeAt(Z),t=this.chopInput(t,1),Z++,o=0;o<jt;o++){var ui=Le[o],M=ui.pattern,Ve=ui.short;if(Ve!==!1?G.charCodeAt(Z)===Ve&&(un=!0):ui.isCustom===!0?un=M.exec(G,Z,D,fn)!==null:(this.updateLastIndex(M,Z),un=M.exec(t)!==null),un===!0)break}O=Z-$t,U=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(G,$t,O,ni,tr),Pt.push({offset:$t,line:ni,column:tr,length:O,message:U})}}return this.hasCustom||(D.length=he),{tokens:D,groups:fn,errors:Pt}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var o=t.push;n(r),o!==void 0&&i.call(this,o)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,o,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=o+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,o,s){return{image:t,startOffset:n,startLine:o,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:o,endLine:o,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Fh(n),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function jo(e){return kA(e)?e.LABEL:e.name}function t_(e){return e.name}function kA(e){return kr(e.LABEL)&&e.LABEL!==""}function ip(e){return u7(e)}function u7(e){var t=e.pattern,n={};if(n.name=e.name,Ei(t)||(n.PATTERN=t),Ce(e,f7))throw`The parent property is no longer supported.
134
- See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ce(e,X1)&&(n.CATEGORIES=e[X1]),Ta([n]),Ce(e,Q1)&&(n.LABEL=e[Q1]),Ce(e,q1)&&(n.GROUP=e[q1]),Ce(e,Y1)&&(n.POP_MODE=e[Y1]),Ce(e,z1)&&(n.PUSH_MODE=e[z1]),Ce(e,J1)&&(n.LONGER_ALT=e[J1]),Ce(e,Z1)&&(n.LINE_BREAKS=e[Z1]),Ce(e,e_)&&(n.START_CHARS_HINT=e[e_]),n}function vs(e,t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:o,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function n_(e,t){return Ic(e,t)}var f7,X1,Q1,q1,z1,Y1,J1,Z1,e_,jr,Ts=qe(()=>{ht();tp();Bl();a(jo,"tokenLabel");a(t_,"tokenName");a(kA,"hasTokenLabel");f7="parent",X1="categories",Q1="label",q1="group",z1="push_mode",Y1="pop_mode",J1="longer_alt",Z1="line_breaks",e_="start_chars_hint";a(ip,"createToken");a(u7,"createTokenInternal");jr=ip({name:"EOF",pattern:Fi.NA});Ta([jr]);a(vs,"createTokenInstance");a(n_,"tokenMatcher")});function Bh(e){return le(e,Hl)}function Hl(e){function t(r){return le(r,Hl)}if(a(t,"convertDefinition"),e instanceof tn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Yt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof nn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Hl(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Tn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Hl(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ot)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof En)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof mt){var n={type:"Terminal",name:e.terminalType.name,label:jo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=co(i)?i.source:i),n}else{if(e instanceof mr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ea,lo,tn,mr,Yt,nn,Nn,Ln,Ot,Tn,En,mt,Ri=qe(()=>{ht();Ts();Ea=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),lo=function(){function e(t){this._definition=t}return a(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),tn=function(e){Ea(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(n){},enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(lo),mr=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Rule"),t}(lo),Yt=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternative"),t}(lo),nn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Option"),t}(lo),Nn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatory"),t}(lo),Ln=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatoryWithSeparator"),t}(lo),Ot=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Repetition"),t}(lo),Tn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionWithSeparator"),t}(lo),En=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(n){this._definition=n},enumerable:!1,configurable:!0}),t}(lo),mt=function(){function e(t){this.idx=1,gr(this,dr(t,function(n){return n!==void 0}))}return a(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();a(Bh,"serializeGrammar");a(Hl,"serializeProduction")});function i_(e,t,n){var i=[new nn({definition:[new mt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Oc,Hh=qe(()=>{ht();Ri();Oc=function(){function e(){}return a(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,o){var s=Mn(t.definition,o+1);if(r instanceof tn)i.walkProdRef(r,s,n);else if(r instanceof mt)i.walkTerminal(r,s,n);else if(r instanceof Yt)i.walkFlat(r,s,n);else if(r instanceof nn)i.walkOption(r,s,n);else if(r instanceof Nn)i.walkAtLeastOne(r,s,n);else if(r instanceof Ln)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Tn)i.walkManySep(r,s,n);else if(r instanceof Ot)i.walkMany(r,s,n);else if(r instanceof En)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new nn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=i_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new nn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=i_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,o=n.concat(i);ye(t.definition,function(s){var l=new Yt({definition:[s]});r.walk(l,o)})},e}();a(i_,"restForRepetitionWithSeparator")});var $r,Wl=qe(()=>{Ri();$r=function(){function e(){}return a(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case tn:return this.visitNonTerminal(n);case Yt:return this.visitAlternative(n);case nn:return this.visitOption(n);case Nn:return this.visitRepetitionMandatory(n);case Ln:return this.visitRepetitionMandatoryWithSeparator(n);case Tn:return this.visitRepetitionWithSeparator(n);case Ot:return this.visitRepetition(n);case En:return this.visitAlternation(n);case mt:return this.visitTerminal(n);case mr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function r_(e){return e instanceof Yt||e instanceof nn||e instanceof Ot||e instanceof Nn||e instanceof Ln||e instanceof Tn||e instanceof mt||e instanceof mr}function Gl(e,t){t===void 0&&(t=[]);var n=e instanceof nn||e instanceof Ot||e instanceof Tn;return n?!0:e instanceof En?Oh(e.definition,function(i){return Gl(i,t)}):e instanceof tn&&Rt(t,e)?!1:e instanceof lo?(e instanceof tn&&t.push(e),ci(e.definition,function(i){return Gl(i,t)})):!1}function o_(e){return e instanceof En}function hr(e){if(e instanceof tn)return"SUBRULE";if(e instanceof nn)return"OPTION";if(e instanceof En)return"OR";if(e instanceof Nn)return"AT_LEAST_ONE";if(e instanceof Ln)return"AT_LEAST_ONE_SEP";if(e instanceof Tn)return"MANY_SEP";if(e instanceof Ot)return"MANY";if(e instanceof mt)return"CONSUME";throw Error("non exhaustive match")}function a_(e){Wh.reset(),e.accept(Wh);var t=Wh.dslMethods;return Wh.reset(),t}var p7,UA,Wh,Kl=qe(()=>{ht();Ri();Wl();p7=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(r_,"isSequenceProd");a(Gl,"isOptionalProd");a(o_,"isBranchingProd");a(hr,"getProductionDslName");UA=function(e){p7(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return a(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}($r),Wh=new UA;a(a_,"collectMethods")});function Nc(e){if(e instanceof tn)return Nc(e.referencedRule);if(e instanceof mt)return m7(e);if(r_(e))return d7(e);if(o_(e))return g7(e);throw Error("non exhaustive match")}function d7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,o,s=!0;r&&s;)o=n[i],s=Gl(o),t=t.concat(Nc(o)),i=i+1,r=n.length>i;return zu(t)}function g7(e){var t=le(e.definition,function(n){return Nc(n)});return zu(On(t))}function m7(e){return[e.terminalType]}var jA=qe(()=>{ht();Ri();Kl();a(Nc,"first");a(d7,"firstForSequence");a(g7,"firstForBranching");a(m7,"firstForTerminal")});var Gh,$A=qe(()=>{Gh="_~IN~_"});function s_(e){var t={};return ye(e,function(n){var i=new y7(n).startWalking();gr(t,i)}),t}function v7(e,t){return e.name+t+Gh}var h7,y7,c_=qe(()=>{Hh();jA();ht();$A();Ri();h7=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),y7=function(e){h7(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return a(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var o=v7(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Yt({definition:s}),u=Nc(l);this.follows[o]=u},t}(Oc);a(s_,"computeAllProdsFollows");a(v7,"buildBetweenProdsFollowPrefix")});var rp,Kh,Es,op=qe(()=>{Ts();ht();ht();Ri();Kl();rp={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,o=kA(t),s=o?"--> "+jo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,o=e.ruleName,s="Expecting: ",l=Ti(n).image,u=`
135
- but found: '`+l+"'";if(r)return s+r+u;var p=cn(t,function(A,E){return A.concat(E)},[]),g=le(p,function(A){return"["+le(A,function(E){return jo(E)}).join(", ")+"]"}),m=le(g,function(A,E){return" "+(E+1)+". "+A}),v=`one of these possible Token sequences:
133
+ `+r)}var o=this.tokenizeInternal(t,n);return o},e.prototype.tokenizeInternal=function(t,n){var i=this,r,o,s,l,u,p,g,m,v,A,E,O,R,U,H,W=t,ie=W.length,Z=0,ne=0,Le=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Le),Pt=[],dt=this.trackStartLines?1:void 0,$e=this.trackStartLines?1:void 0,fn=B1(this.emptyGroups),Vi=this.trackStartLines,Sn=this.config.lineTerminatorsPattern,jt=0,Re=[],Ai=[],Ct=[],Dt=[];Object.freeze(Dt);var rn=void 0;function Mi(){return Re}a(Mi,"getPossiblePatternsSlow");function _e(Bt){var Go=wo(Bt),wi=Ai[Go];return wi===void 0?Dt:wi}a(_e,"getPossiblePatternsOptimized");var Gn=a(function(Bt){if(Ct.length===1&&Bt.tokenType.PUSH_MODE===void 0){var Go=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Bt);Pt.push({offset:Bt.startOffset,line:Bt.startLine!==void 0?Bt.startLine:void 0,column:Bt.startColumn!==void 0?Bt.startColumn:void 0,length:Bt.image.length,message:Go})}else{Ct.pop();var wi=Ph(Ct);Re=i.patternIdxToConfig[wi],Ai=i.charCodeToPatternIdxToConfig[wi],jt=Re.length;var Af=i.canModeBeOptimized[wi]&&i.config.safeMode===!1;Ai&&Af?rn=_e:rn=Mi}},"pop_mode");function Sr(Bt){Ct.push(Bt),Ai=this.charCodeToPatternIdxToConfig[Bt],Re=this.patternIdxToConfig[Bt],jt=Re.length,jt=Re.length;var Go=this.canModeBeOptimized[Bt]&&this.config.safeMode===!1;Ai&&Go?rn=_e:rn=Mi}a(Sr,"push_mode"),Sr.call(this,n);for(var st;Z<ie;){u=null;var I=W.charCodeAt(Z),S=rn(I),Y=S.length;for(r=0;r<Y;r++){st=S[r];var M=st.pattern;p=null;var Ve=st.short;if(Ve!==!1?I===Ve&&(u=M):st.isCustom===!0?(H=M.exec(W,Z,D,fn),H!==null?(u=H[0],H.payload!==void 0&&(p=H.payload)):u=null):(this.updateLastIndex(M,Z),u=this.match(M,t,Z)),u!==null){if(l=st.longerAlt,l!==void 0){var Nt=Re[l],Qe=Nt.pattern;g=null,Nt.isCustom===!0?(H=Qe.exec(W,Z,D,fn),H!==null?(s=H[0],H.payload!==void 0&&(g=H.payload)):s=null):(this.updateLastIndex(Qe,Z),s=this.match(Qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,st=Nt)}break}}if(u!==null){if(m=u.length,v=st.group,v!==void 0&&(A=st.tokenTypeIdx,E=this.createTokenInstance(u,Z,A,st.tokenType,dt,$e,m),this.handlePayload(E,p),v===!1?ne=this.addToken(D,ne,E):fn[v].push(E)),t=this.chopInput(t,m),Z=Z+m,$e=this.computeNewColumn($e,m),Vi===!0&&st.canLineTerminator===!0){var Vt=0,Rn=void 0,on=void 0;Sn.lastIndex=0;do Rn=Sn.test(u),Rn===!0&&(on=Sn.lastIndex-1,Vt++);while(Rn===!0);Vt!==0&&(dt=dt+Vt,$e=m-on,this.updateTokenEndLineColumnLocation(E,v,on,Vt,dt,$e,m))}this.handleModes(st,Gn,Sr,E)}else{for(var $t=Z,ni=dt,tr=$e,un=!1;!un&&Z<ie;)for(R=W.charCodeAt(Z),t=this.chopInput(t,1),Z++,o=0;o<jt;o++){var ui=Re[o],M=ui.pattern,Ve=ui.short;if(Ve!==!1?W.charCodeAt(Z)===Ve&&(un=!0):ui.isCustom===!0?un=M.exec(W,Z,D,fn)!==null:(this.updateLastIndex(M,Z),un=M.exec(t)!==null),un===!0)break}O=Z-$t,U=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(W,$t,O,ni,tr),Pt.push({offset:$t,line:ni,column:tr,length:O,message:U})}}return this.hasCustom||(D.length=ne),{tokens:D,groups:fn,errors:Pt}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var o=t.push;n(r),o!==void 0&&i.call(this,o)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,o,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=o+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,o,s){return{image:t,startOffset:n,startLine:o,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:o,endLine:o,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Lh(n),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Uo(e){return kA(e)?e.LABEL:e.name}function a_(e){return e.name}function kA(e){return kr(e.LABEL)&&e.LABEL!==""}function ip(e){return m7(e)}function m7(e){var t=e.pattern,n={};if(n.name=e.name,Ei(t)||(n.PATTERN=t),Ce(e,g7))throw`The parent property is no longer supported.
134
+ See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ce(e,J1)&&(n.CATEGORIES=e[J1]),Ta([n]),Ce(e,Z1)&&(n.LABEL=e[Z1]),Ce(e,e_)&&(n.GROUP=e[e_]),Ce(e,n_)&&(n.POP_MODE=e[n_]),Ce(e,t_)&&(n.PUSH_MODE=e[t_]),Ce(e,i_)&&(n.LONGER_ALT=e[i_]),Ce(e,r_)&&(n.LINE_BREAKS=e[r_]),Ce(e,o_)&&(n.START_CHARS_HINT=e[o_]),n}function ms(e,t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:o,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function s_(e,t){return Pc(e,t)}var g7,J1,Z1,e_,t_,n_,i_,r_,o_,jr,hs=qe(()=>{yt();tp();Ul();a(Uo,"tokenLabel");a(a_,"tokenName");a(kA,"hasTokenLabel");g7="parent",J1="categories",Z1="label",e_="group",t_="push_mode",n_="pop_mode",i_="longer_alt",r_="line_breaks",o_="start_chars_hint";a(ip,"createToken");a(m7,"createTokenInternal");jr=ip({name:"EOF",pattern:Fi.NA});Ta([jr]);a(ms,"createTokenInstance");a(s_,"tokenMatcher")});function $h(e){return fe(e,jl)}function jl(e){function t(r){return fe(r,jl)}if(a(t,"convertDefinition"),e instanceof tn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Yt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof nn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:jl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Tn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:jl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ot)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof En)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Uo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=co(i)?i.source:i),n}else{if(e instanceof mr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ea,lo,tn,mr,Yt,nn,Nn,Ln,Ot,Tn,En,ht,Ri=qe(()=>{yt();hs();Ea=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),lo=function(){function e(t){this._definition=t}return a(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),tn=function(e){Ea(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(n){},enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(lo),mr=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Rule"),t}(lo),Yt=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternative"),t}(lo),nn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Option"),t}(lo),Nn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatory"),t}(lo),Ln=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatoryWithSeparator"),t}(lo),Ot=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Repetition"),t}(lo),Tn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionWithSeparator"),t}(lo),En=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(n){this._definition=n},enumerable:!1,configurable:!0}),t}(lo),ht=function(){function e(t){this.idx=1,gr(this,dr(t,function(n){return n!==void 0}))}return a(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();a($h,"serializeGrammar");a(jl,"serializeProduction")});function c_(e,t,n){var i=[new nn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Cc,Bh=qe(()=>{yt();Ri();Cc=function(){function e(){}return a(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,o){var s=Mn(t.definition,o+1);if(r instanceof tn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Yt)i.walkFlat(r,s,n);else if(r instanceof nn)i.walkOption(r,s,n);else if(r instanceof Nn)i.walkAtLeastOne(r,s,n);else if(r instanceof Ln)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Tn)i.walkManySep(r,s,n);else if(r instanceof Ot)i.walkMany(r,s,n);else if(r instanceof En)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new nn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=c_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new nn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=c_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,o=n.concat(i);ye(t.definition,function(s){var l=new Yt({definition:[s]});r.walk(l,o)})},e}();a(c_,"restForRepetitionWithSeparator")});var $r,$l=qe(()=>{Ri();$r=function(){function e(){}return a(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case tn:return this.visitNonTerminal(n);case Yt:return this.visitAlternative(n);case nn:return this.visitOption(n);case Nn:return this.visitRepetitionMandatory(n);case Ln:return this.visitRepetitionMandatoryWithSeparator(n);case Tn:return this.visitRepetitionWithSeparator(n);case Ot:return this.visitRepetition(n);case En:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case mr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function l_(e){return e instanceof Yt||e instanceof nn||e instanceof Ot||e instanceof Nn||e instanceof Ln||e instanceof Tn||e instanceof ht||e instanceof mr}function Bl(e,t){t===void 0&&(t=[]);var n=e instanceof nn||e instanceof Ot||e instanceof Tn;return n?!0:e instanceof En?Ih(e.definition,function(i){return Bl(i,t)}):e instanceof tn&&Rt(t,e)?!1:e instanceof lo?(e instanceof tn&&t.push(e),ci(e.definition,function(i){return Bl(i,t)})):!1}function f_(e){return e instanceof En}function hr(e){if(e instanceof tn)return"SUBRULE";if(e instanceof nn)return"OPTION";if(e instanceof En)return"OR";if(e instanceof Nn)return"AT_LEAST_ONE";if(e instanceof Ln)return"AT_LEAST_ONE_SEP";if(e instanceof Tn)return"MANY_SEP";if(e instanceof Ot)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function u_(e){Hh.reset(),e.accept(Hh);var t=Hh.dslMethods;return Hh.reset(),t}var h7,UA,Hh,Hl=qe(()=>{yt();Ri();$l();h7=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(l_,"isSequenceProd");a(Bl,"isOptionalProd");a(f_,"isBranchingProd");a(hr,"getProductionDslName");UA=function(e){h7(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return a(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ce(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}($r),Hh=new UA;a(u_,"collectMethods")});function Ic(e){if(e instanceof tn)return Ic(e.referencedRule);if(e instanceof ht)return T7(e);if(l_(e))return y7(e);if(f_(e))return v7(e);throw Error("non exhaustive match")}function y7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,o,s=!0;r&&s;)o=n[i],s=Bl(o),t=t.concat(Ic(o)),i=i+1,r=n.length>i;return zu(t)}function v7(e){var t=fe(e.definition,function(n){return Ic(n)});return zu(On(t))}function T7(e){return[e.terminalType]}var jA=qe(()=>{yt();Ri();Hl();a(Ic,"first");a(y7,"firstForSequence");a(v7,"firstForBranching");a(T7,"firstForTerminal")});var Wh,$A=qe(()=>{Wh="_~IN~_"});function p_(e){var t={};return ye(e,function(n){var i=new b7(n).startWalking();gr(t,i)}),t}function A7(e,t){return e.name+t+Wh}var E7,b7,d_=qe(()=>{Bh();jA();yt();$A();Ri();E7=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),b7=function(e){E7(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return a(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var o=A7(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Yt({definition:s}),u=Ic(l);this.follows[o]=u},t}(Cc);a(p_,"computeAllProdsFollows");a(A7,"buildBetweenProdsFollowPrefix")});var rp,Gh,ys,op=qe(()=>{hs();yt();yt();Ri();Hl();rp={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,o=kA(t),s=o?"--> "+Uo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,o=e.ruleName,s="Expecting: ",l=Ti(n).image,u=`
135
+ but found: '`+l+"'";if(r)return s+r+u;var p=cn(t,function(A,E){return A.concat(E)},[]),g=fe(p,function(A){return"["+fe(A,function(E){return Uo(E)}).join(", ")+"]"}),m=fe(g,function(A,E){return" "+(E+1)+". "+A}),v=`one of these possible Token sequences:
136
136
  `+m.join(`
137
137
  `);return s+v+u},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,o="Expecting: ",s=Ti(n).image,l=`
138
- but found: '`+s+"'";if(i)return o+i+l;var u=le(t,function(g){return"["+le(g,function(m){return jo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
139
- `+("<"+u.join(" ,")+">");return o+p+l}};Object.freeze(rp);Kh={buildRuleNotFoundError:function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
140
- inside top level rule: ->`+e.name+"<-";return n}},Es={buildDuplicateFoundError:function(e,t){function n(g){return g instanceof mt?g.terminalType.name:g instanceof tn?g.nonTerminalName:""}a(n,"getExtraProductionArgument");var i=e.name,r=Ti(t),o=r.idx,s=hr(r),l=n(r),u=o>0,p="->"+s+(u?o:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
138
+ but found: '`+s+"'";if(i)return o+i+l;var u=fe(t,function(g){return"["+fe(g,function(m){return Uo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
139
+ `+("<"+u.join(" ,")+">");return o+p+l}};Object.freeze(rp);Gh={buildRuleNotFoundError:function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
140
+ inside top level rule: ->`+e.name+"<-";return n}},ys={buildDuplicateFoundError:function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof tn?g.nonTerminalName:""}a(n,"getExtraProductionArgument");var i=e.name,r=Ti(t),o=r.idx,s=hr(r),l=n(r),u=o>0,p="->"+s+(u?o:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
141
141
  appears more than once (`+t.length+" times) in the top level rule: ->"+i+`<-.
142
142
  For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES
143
143
  `;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,`
@@ -145,49 +145,49 @@ inside top level rule: ->`+e.name+"<-";return n}},Es={buildDuplicateFoundError:f
145
145
  `+("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+`>.
146
146
  `)+`To resolve this make sure each Terminal and Non-Terminal names are unique
147
147
  This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
148
- and Non-Terminal names start with a lower case letter.`;return t},buildAlternationPrefixAmbiguityError:function(e){var t=le(e.prefixPath,function(r){return jo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+`> due to common lookahead prefix
148
+ and Non-Terminal names start with a lower case letter.`;return t},buildAlternationPrefixAmbiguityError:function(e){var t=fe(e.prefixPath,function(r){return Uo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+`> due to common lookahead prefix
149
149
  `+("in <OR"+n+"> inside <"+e.topLevelRule.name+`> Rule,
150
150
  `)+("<"+t+`> may appears as a prefix path in all these alternatives.
151
151
  `)+`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
152
- For Further details.`;return i},buildAlternationAmbiguityError:function(e){var t=le(e.prefixPath,function(r){return jo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+">"+(" inside <"+e.topLevelRule.name+`> Rule,
152
+ For Further details.`;return i},buildAlternationAmbiguityError:function(e){var t=fe(e.prefixPath,function(r){return Uo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+">"+(" inside <"+e.topLevelRule.name+`> Rule,
153
153
  `)+("<"+t+`> may appears as a prefix path in all these alternatives.
154
154
  `);return i=i+`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
155
155
  For Further details.`,i},buildEmptyRepetitionError:function(e){var t=hr(e.repetition);e.repetition.idx!==0&&(t+=e.repetition.idx);var n="The repetition <"+t+"> within Rule <"+e.topLevelRule.name+`> can never consume any tokens.
156
156
  This could lead to an infinite loop.`;return n},buildTokenNameError:function(e){return"deprecated"},buildEmptyAlternationError:function(e){var t="Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+">"+(" in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
157
157
  `)+"Only the last alternative may be an empty alternative.";return t},buildTooManyAlternativesError:function(e){var t=`An Alternation cannot have more than 256 alternatives:
158
158
  `+("<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
159
- has `+(e.alternation.definition.length+1)+" alternatives.");return t},buildLeftRecursionError:function(e){var t=e.topLevelRule.name,n=le(e.leftRecursionPath,function(o){return o.name}),i=t+" --> "+n.concat([t]).join(" --> "),r=`Left Recursion found in grammar.
159
+ has `+(e.alternation.definition.length+1)+" alternatives.");return t},buildLeftRecursionError:function(e){var t=e.topLevelRule.name,n=fe(e.leftRecursionPath,function(o){return o.name}),i=t+" --> "+n.concat([t]).join(" --> "),r=`Left Recursion found in grammar.
160
160
  `+("rule: <"+t+`> can be invoked from itself (directly or indirectly)
161
161
  `)+(`without consuming any Tokens. The grammar path that causes this is:
162
162
  `+i+`
163
163
  `)+` To fix this refactor your grammar to remove the left recursion.
164
- see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},buildInvalidRuleNameError:function(e){return"deprecated"},buildDuplicateRuleNameError:function(e){var t;e.topLevelRule instanceof mr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n}}});function l_(e,t){var n=new E7(e,t);return n.resolveRefs(),n.errors}var T7,E7,f_=qe(()=>{yr();ht();Wl();T7=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(l_,"resolveGrammar");E7=function(e){T7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return a(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Wn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}($r)});function Qh(e,t,n){n===void 0&&(n=[]),n=vn(n);var i=[],r=0;function o(p){return p.concat(Mn(e,r+1))}a(o,"remainingPathWith");function s(p){var g=Qh(o(p),t,n);return i.concat(g)}for(a(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Yt)return s(l.definition);if(l instanceof tn)return s(l.definition);if(l instanceof nn)i=s(l.definition);else if(l instanceof Nn){var u=l.definition.concat([new Ot({definition:l.definition})]);return s(u)}else if(l instanceof Ln){var u=[new Yt({definition:l.definition}),new Ot({definition:[new mt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Tn){var u=l.definition.concat([new Ot({definition:[new mt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Ot){var u=l.definition.concat([new Ot({definition:l.definition})]);i=s(u)}else{if(l instanceof En)return ye(l.definition,function(p){at(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof mt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Mn(e,r)}),i}function qh(e,t,n,i){var r="EXIT_NONE_TERMINAL",o=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!at(m);){var v=m.pop();if(v===s){l&&Ch(m).idx<=p&&m.pop();continue}var A=v.def,E=v.idx,O=v.ruleStack,R=v.occurrenceStack;if(!at(A)){var U=A[0];if(U===r){var j={idx:E,def:Mn(A),ruleStack:ms(O),occurrenceStack:ms(R)};m.push(j)}else if(U instanceof mt)if(E<u-1){var G=E+1,re=t[G];if(n(re,U.terminalType)){var j={idx:G,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(j)}}else if(E===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:R}),l=!0;else throw Error("non exhaustive match");else if(U instanceof tn){var Z=vn(O);Z.push(U.nonTerminalName);var he=vn(R);he.push(U.idx);var j={idx:E,def:U.definition.concat(o,Mn(A)),ruleStack:Z,occurrenceStack:he};m.push(j)}else if(U instanceof nn){var De={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(De),m.push(s);var D={idx:E,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(D)}else if(U instanceof Nn){var Pt=new Ot({definition:U.definition,idx:U.idx}),pt=U.definition.concat([Pt],Mn(A)),j={idx:E,def:pt,ruleStack:O,occurrenceStack:R};m.push(j)}else if(U instanceof Ln){var $e=new mt({terminalType:U.separator}),Pt=new Ot({definition:[$e].concat(U.definition),idx:U.idx}),pt=U.definition.concat([Pt],Mn(A)),j={idx:E,def:pt,ruleStack:O,occurrenceStack:R};m.push(j)}else if(U instanceof Tn){var De={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(De),m.push(s);var $e=new mt({terminalType:U.separator}),fn=new Ot({definition:[$e].concat(U.definition),idx:U.idx}),pt=U.definition.concat([fn],Mn(A)),D={idx:E,def:pt,ruleStack:O,occurrenceStack:R};m.push(D)}else if(U instanceof Ot){var De={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(De),m.push(s);var fn=new Ot({definition:U.definition,idx:U.idx}),pt=U.definition.concat([fn],Mn(A)),D={idx:E,def:pt,ruleStack:O,occurrenceStack:R};m.push(D)}else if(U instanceof En)for(var Vi=U.definition.length-1;Vi>=0;Vi--){var Sn=U.definition[Vi],jt={idx:E,def:Sn.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(jt),m.push(s)}else if(U instanceof Yt)m.push({idx:E,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R});else if(U instanceof mr)m.push(A7(U,E,O,R));else throw Error("non exhaustive match")}}return g}function A7(e,t,n,i){var r=vn(n);r.push(e.name);var o=vn(i);return o.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:o}}var Lc,b7,u_,Xh,p_,BA,d_,HA,ap=qe(()=>{Hh();ht();jA();Ri();Lc=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),b7=function(e){Lc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return a(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=vn(this.path.ruleStack).reverse(),this.occurrenceStack=vn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var o=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,o)}},t.prototype.updateExpectedNext=function(){at(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Oc),u_=function(e){Lc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return a(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var o=i.concat(r),s=new Yt({definition:o});this.possibleTokTypes=Nc(s),this.found=!0}},t}(b7),Xh=function(e){Lc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return a(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Oc),p_=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof mt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Xh),BA=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof mt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Xh),d_=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof mt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Xh),HA=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof mt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Xh);a(Qh,"possiblePathsFrom");a(qh,"nextPossibleTokensAfter");a(A7,"expandTopLevelRule")});function h_(e){if(e instanceof nn)return _t.OPTION;if(e instanceof Ot)return _t.REPETITION;if(e instanceof Nn)return _t.REPETITION_MANDATORY;if(e instanceof Ln)return _t.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Tn)return _t.REPETITION_WITH_SEPARATOR;if(e instanceof En)return _t.ALTERNATION;throw Error("non exhaustive match")}function y_(e,t,n,i,r,o){var s=sp(e,t,n),l=x_(s)?$l:Ic;return o(s,i,l,r)}function v_(e,t,n,i,r,o){var s=cp(e,t,r,n),l=x_(s)?$l:Ic;return o(s[0],l,i)}function T_(e,t,n,i){var r=e.length,o=ci(e,function(u){return ci(u,function(p){return p.length===1})});if(t)return function(u){for(var p=le(u,function(G){return G.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<v;E++){for(var O=m[E],R=O.length,U=0;U<R;U++){var j=this.LA(U+1);if(n(j,O[U])===!1)continue e}return g}}};if(o&&!i){var s=le(e,function(u){return On(u)}),l=cn(s,function(u,p,g){return ye(p,function(m){Ce(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(v){Ce(u,v)||(u[v]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var v=p[m],A=v.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,v[E])===!1)continue e}return u}}}}function E_(e,t,n){var i=ci(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var o=On(e);if(o.length===1&&at(o[0].categoryMatches)){var s=o[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=cn(o,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,v=0;v<m;v++){var A=this.LA(v+1);if(t(A,g[v])===!1)continue e}return!0}return!1}}function g_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function WA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],o=0;o<t.length;o++){var s=t[o];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function x7(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],o=0;o<t.length;o++){var s=t[o];if(r[s]===!0)return!1}return!0}function A_(e,t){for(var n=le(e,function(g){return Qh([g],1)}),i=g_(n.length),r=le(n,function(g){var m={};return ye(g,function(v){var A=WA(v.partialPath);ye(A,function(E){m[E]=!0})}),m}),o=n,s=1;s<=t;s++){var l=o;o=g_(l.length);for(var u=a(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,E=m[v].suffixDef,O=WA(A),R=x7(r,O,g);if(R||at(E)||A.length===t){var U=i[g];if(zh(U,A)===!1){U.push(A);for(var j=0;j<O.length;j++){var G=O[j];r[g][G]=!0}}}else{var re=Qh(E,s+1,A);o[g]=o[g].concat(re),ye(re,function(Z){var he=WA(Z.partialPath);ye(he,function(De){r[g][De]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function sp(e,t,n,i){var r=new b_(e,_t.ALTERNATION,i);return t.accept(r),A_(r.result,n)}function cp(e,t,n,i){var r=new b_(e,n);t.accept(r);var o=r.result,s=new S7(t,e,n),l=s.startWalking(),u=new Yt({definition:o}),p=new Yt({definition:l});return A_([u,p],i)}function zh(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var o=t[r],s=i[r],l=o===s||s.categoryMatchesMap[o.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function S_(e,t){return e.length<t.length&&ci(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function x_(e){return ci(e,function(t){return ci(t,function(n){return ci(n,function(i){return at(i.categoryMatches)})})})}var m_,_t,S7,b_,lp=qe(()=>{ht();ap();Hh();Bl();Ri();Wl();m_=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(_t||(_t={}));a(h_,"getProdType");a(y_,"buildLookaheadFuncForOr");a(v_,"buildLookaheadFuncForOptionalProd");a(T_,"buildAlternativesLookAheadFunc");a(E_,"buildSingleAlternativeLookaheadFunction");S7=function(e){m_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.topProd=n,o.targetOccurrence=i,o.targetProdType=r,o}return a(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,o){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(o),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,_t.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,_t.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,_t.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,_t.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,_t.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Oc),b_=function(e){m_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.targetOccurrence=n,o.targetProdType=i,o.targetRef=r,o.result=[],o}return a(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,_t.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,_t.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,_t.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,_t.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,_t.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,_t.ALTERNATION)},t}($r);a(g_,"initializeArrayOfArrays");a(WA,"pathToHashKeys");a(x7,"isUniquePrefixHash");a(A_,"lookAheadSequenceFromAlternatives");a(sp,"getLookaheadPathsForOr");a(cp,"getLookaheadPathsForOptionalProd");a(zh,"containsPath");a(S_,"isStrictPrefixOfPath");a(x_,"areTokenCategoriesNotUsed")});function P_(e,t,n,i,r){var o=le(e,function(A){return P7(A,i)}),s=le(e,function(A){return O_(A,A,i)}),l=[],u=[],p=[];ci(s,at)&&(l=le(e,function(A){return N7(A,i)}),u=le(e,function(A){return L7(A,t,i)}),p=_7(e,t,i));var g=M7(e,n,i),m=le(e,function(A){return R7(A,i)}),v=le(e,function(A){return O7(A,e,r,i)});return On(o.concat(p,s,l,u,g,m,v))}function P7(e,t){var n=new I7;e.accept(n);var i=n.allProductions,r=T1(i,C7),o=dr(r,function(l){return l.length>1}),s=le(Vn(o),function(l){var u=Ti(l),p=t.buildDuplicateFoundError(e,l),g=hr(u),m={message:p,type:Wn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=C_(u);return v&&(m.parameter=v),m});return s}function C7(e){return hr(e)+"_#_"+e.idx+"_#_"+C_(e)}function C_(e){return e instanceof mt?e.terminalType.name:e instanceof tn?e.nonTerminalName:""}function O7(e,t,n,i){var r=[],o=cn(t,function(l,u){return u.name===e.name?l+1:l},0);if(o>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Wn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function I_(e,t,n){var i=[],r;return Rt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Wn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function O_(e,t,n,i){i===void 0&&(i=[]);var r=[],o=Yh(t.definition);if(at(o))return[];var s=e.name,l=Rt(o,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Wn.LEFT_RECURSION,ruleName:s});var u=Cc(o,i.concat([e])),p=le(u,function(g){var m=vn(i);return m.push(g),O_(e,g,n,m)});return r.concat(On(p))}function Yh(e){var t=[];if(at(e))return t;var n=Ti(e);if(n instanceof tn)t.push(n.referencedRule);else if(n instanceof Yt||n instanceof nn||n instanceof Nn||n instanceof Ln||n instanceof Tn||n instanceof Ot)t=t.concat(Yh(n.definition));else if(n instanceof En)t=On(le(n.definition,function(s){return Yh(s.definition)}));else if(!(n instanceof mt))throw Error("non exhaustive match");var i=Gl(n),r=e.length>1;if(i&&r){var o=Mn(e);return t.concat(Yh(o))}else return t}function N7(e,t){var n=new KA;e.accept(n);var i=n.alternations,r=cn(i,function(o,s){var l=ms(s.definition),u=le(l,function(p,g){var m=qh([p],[],null,1);return at(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Wn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return o.concat(va(u))},[]);return r}function L7(e,t,n){var i=new KA;e.accept(i);var r=i.alternations;r=ha(r,function(s){return s.ignoreAmbiguities===!0});var o=cn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=sp(u,e,p,l),m=D7(g,l,e,n),v=V7(g,l,e,n);return s.concat(m,v)},[]);return o}function R7(e,t){var n=new KA;e.accept(n);var i=n.alternations,r=cn(i,function(o,s){return s.definition.length>255&&o.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Wn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),o},[]);return r}function _7(e,t,n){var i=[];return ye(e,function(r){var o=new F7;r.accept(o);var s=o.allProductions;ye(s,function(l){var u=h_(l),p=l.maxLookahead||t,g=l.idx,m=cp(g,r,u,p),v=m[0];if(at(On(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Wn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function D7(e,t,n,i){var r=[],o=cn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(v,A){p!==A&&zh(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!zh(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=le(o,function(l){var u=le(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Wn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function V7(e,t,n,i){var r=[],o=cn(e,function(s,l,u){var p=le(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(o,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=y1(o,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&S_(v.path,p)}),m=le(g,function(v){var A=[v.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:O,type:Wn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function M7(e,t,n){var i=[],r=le(t,function(o){return o.name});return ye(e,function(o){var s=o.name;if(Rt(r,s)){var l=n.buildNamespaceConflictError(o);i.push({message:l,type:Wn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var GA,I7,KA,F7,XA=qe(()=>{ht();ht();yr();Kl();lp();ap();Ri();Wl();GA=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(P_,"validateGrammar");a(P7,"validateDuplicateProductions");a(C7,"identifyProductionForDuplicates");a(C_,"getExtraProductionArgument");I7=function(e){GA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}($r);a(O7,"validateRuleDoesNotAlreadyExist");a(I_,"validateRuleIsOverridden");a(O_,"validateNoLeftRecursion");a(Yh,"getFirstNoneTerminal");KA=function(e){GA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return a(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}($r);a(N7,"validateEmptyOrAlternative");a(L7,"validateAmbiguousAlternationAlternatives");F7=function(e){GA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}($r);a(R7,"validateTooManyAlts");a(_7,"validateSomeNonEmptyLookaheadPath");a(D7,"checkAlternativesAmbiguities");a(V7,"checkPrefixAlternativesAmbiguities");a(M7,"checkTerminalAndNoneTerminalsNameSpace")});function Jh(e){e=Yu(e,{errMsgProvider:Kh});var t={};return ye(e.rules,function(n){t[n.name]=n}),l_(t,e.errMsgProvider)}function Zh(e){return e=Yu(e,{errMsgProvider:Es}),P_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function N_(e){ye(e.rules,function(t){var n=new UA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,o){r.idx=o+1})})})}var QA=qe(()=>{ht();f_();XA();op();Kl();a(Jh,"resolveGrammar");a(Zh,"validateGrammar");a(N_,"assignOccurrenceIndices")});function ba(e){return Rt(D_,e.name)}var fp,L_,F_,R_,__,D_,ey,Xl,ty,ny,iy,Ql=qe(()=>{ht();fp=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),L_="MismatchedTokenException",F_="NoViableAltException",R_="EarlyExitException",__="NotAllInputParsedException",D_=[L_,F_,R_,__];Object.freeze(D_);a(ba,"isRecognitionException");ey=function(e){fp(t,e);function t(n,i){var r=this.constructor,o=e.call(this,n)||this;return o.token=i,o.resyncedTokens=[],Object.setPrototypeOf(o,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return a(t,"RecognitionException"),t}(Error),Xl=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=L_,o}return a(t,"MismatchedTokenException"),t}(ey),ty=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=F_,o}return a(t,"NoViableAltException"),t}(ey),ny=function(e){fp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=__,r}return a(t,"NotAllInputParsedException"),t}(ey),iy=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=R_,o}return a(t,"EarlyExitException"),t}(ey)});function V_(e){this.name=zA,this.message=e}function w7(e,t,n,i,r,o,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new o(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var v=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&v===void 0&&(v=jr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var qA,zA,M_,YA=qe(()=>{Ts();ht();Ql();$A();yr();qA={},zA="InRuleRecoveryException";a(V_,"InRuleRecoveryException");V_.prototype=Error.prototype;M_=function(){function e(){}return a(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ce(t,"recoveryEnabled")?t.recoveryEnabled:qi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=w7)},e.prototype.getTokenToInsert=function(t){var n=vs(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var o=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),v=a(function(){var A=o.LA(0),E=o.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:o.getCurrRuleFullName()}),O=new Xl(E,g,o.LA(0));O.resyncedTokens=ms(u),o.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new V_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||at(n))return!1;var r=this.LA(1),o=ya(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return o},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Rt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Rt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return qA;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return le(n,function(r,o){return o===0?qA:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[o],inRule:t.shortRuleNameToFullName(n[o-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=le(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return On(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===qA)return[jr];var n=t.ruleName+t.idxInCallingRule+Gh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,jr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ms(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,o,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=vn(this.RULE_OCCURRENCE_STACK),o={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return o},e.prototype.getHumanReadableRuleStack=function(){var t=this;return le(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();a(w7,"attemptInRepetitionRecovery")});function ay(e,t,n){return n|t|e}var w_,$o,k7,ry,oy,up,pp,dp,ql,Moe,sy=qe(()=>{w_=4,$o=8,k7=8,ry=1<<$o,oy=2<<$o,up=3<<$o,pp=4<<$o,dp=5<<$o,ql=6<<$o;a(ay,"getKeyForAutomaticLookahead");Moe=32-k7});var k_,U_=qe(()=>{lp();ht();yr();sy();Kl();k_=function(){function e(){}return a(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ce(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:qi.dynamicTokensEnabled,this.maxLookahead=Ce(t,"maxLookahead")?t.maxLookahead:qi.maxLookahead,this.lookAheadFuncsCache=NA()?new Map:[],NA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=a_(i),o=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(o,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+hr(m)+v,function(){var A=y_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=ay(n.fullRuleNameToShort[i.name],ry,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,up,_t.REPETITION,m.maxLookahead,hr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,oy,_t.OPTION,m.maxLookahead,hr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,pp,_t.REPETITION_MANDATORY,m.maxLookahead,hr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,ql,_t.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,hr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,dp,_t.REPETITION_WITH_SEPARATOR,m.maxLookahead,hr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,o,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=v_(n,t,o||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=ay(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return E_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return T_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return ay(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function JA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function ZA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function j_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function $_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var B_=qe(()=>{a(JA,"setNodeLocationOnlyOffset");a(ZA,"setNodeLocationFull");a(j_,"addTerminalToCst");a($_,"addNoneTerminalToCst")});function W_(e){return gp(e.constructor)}function gp(e){var t=e.name;return t||"anonymous"}function eS(e,t){var n=Object.getOwnPropertyDescriptor(e,H_);return Ei(n)||n.configurable?(Object.defineProperty(e,H_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var H_,tS=qe(()=>{ht();a(W_,"classNameFromInstance");H_="name";a(gp,"functionName");a(eS,"defineNameProp")});function U7(e,t){for(var n=Li(e),i=n.length,r=0;r<i;r++)for(var o=n[r],s=e[o],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function G_(e,t){var n=a(function(){},"derivedConstructor");eS(n,e+"BaseSemantics");var i={visit:function(r,o){if(si(r)&&(r=r[0]),!Ei(r))return this[r.name](r.children,o)},validateVisitor:function(){var r=j7(this,t);if(!at(r)){var o=le(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+gp(this.constructor)+`>:
164
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},buildInvalidRuleNameError:function(e){return"deprecated"},buildDuplicateRuleNameError:function(e){var t;e.topLevelRule instanceof mr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n}}});function g_(e,t){var n=new x7(e,t);return n.resolveRefs(),n.errors}var S7,x7,m_=qe(()=>{yr();yt();$l();S7=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(g_,"resolveGrammar");x7=function(e){S7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return a(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Wn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}($r)});function Xh(e,t,n){n===void 0&&(n=[]),n=vn(n);var i=[],r=0;function o(p){return p.concat(Mn(e,r+1))}a(o,"remainingPathWith");function s(p){var g=Xh(o(p),t,n);return i.concat(g)}for(a(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Yt)return s(l.definition);if(l instanceof tn)return s(l.definition);if(l instanceof nn)i=s(l.definition);else if(l instanceof Nn){var u=l.definition.concat([new Ot({definition:l.definition})]);return s(u)}else if(l instanceof Ln){var u=[new Yt({definition:l.definition}),new Ot({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Tn){var u=l.definition.concat([new Ot({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Ot){var u=l.definition.concat([new Ot({definition:l.definition})]);i=s(u)}else{if(l instanceof En)return ye(l.definition,function(p){at(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Mn(e,r)}),i}function Qh(e,t,n,i){var r="EXIT_NONE_TERMINAL",o=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!at(m);){var v=m.pop();if(v===s){l&&Ph(m).idx<=p&&m.pop();continue}var A=v.def,E=v.idx,O=v.ruleStack,R=v.occurrenceStack;if(!at(A)){var U=A[0];if(U===r){var H={idx:E,def:Mn(A),ruleStack:ps(O),occurrenceStack:ps(R)};m.push(H)}else if(U instanceof ht)if(E<u-1){var W=E+1,ie=t[W];if(n(ie,U.terminalType)){var H={idx:W,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(H)}}else if(E===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:R}),l=!0;else throw Error("non exhaustive match");else if(U instanceof tn){var Z=vn(O);Z.push(U.nonTerminalName);var ne=vn(R);ne.push(U.idx);var H={idx:E,def:U.definition.concat(o,Mn(A)),ruleStack:Z,occurrenceStack:ne};m.push(H)}else if(U instanceof nn){var Le={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(Le),m.push(s);var D={idx:E,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(D)}else if(U instanceof Nn){var Pt=new Ot({definition:U.definition,idx:U.idx}),dt=U.definition.concat([Pt],Mn(A)),H={idx:E,def:dt,ruleStack:O,occurrenceStack:R};m.push(H)}else if(U instanceof Ln){var $e=new ht({terminalType:U.separator}),Pt=new Ot({definition:[$e].concat(U.definition),idx:U.idx}),dt=U.definition.concat([Pt],Mn(A)),H={idx:E,def:dt,ruleStack:O,occurrenceStack:R};m.push(H)}else if(U instanceof Tn){var Le={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(Le),m.push(s);var $e=new ht({terminalType:U.separator}),fn=new Ot({definition:[$e].concat(U.definition),idx:U.idx}),dt=U.definition.concat([fn],Mn(A)),D={idx:E,def:dt,ruleStack:O,occurrenceStack:R};m.push(D)}else if(U instanceof Ot){var Le={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(Le),m.push(s);var fn=new Ot({definition:U.definition,idx:U.idx}),dt=U.definition.concat([fn],Mn(A)),D={idx:E,def:dt,ruleStack:O,occurrenceStack:R};m.push(D)}else if(U instanceof En)for(var Vi=U.definition.length-1;Vi>=0;Vi--){var Sn=U.definition[Vi],jt={idx:E,def:Sn.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(jt),m.push(s)}else if(U instanceof Yt)m.push({idx:E,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R});else if(U instanceof mr)m.push(C7(U,E,O,R));else throw Error("non exhaustive match")}}return g}function C7(e,t,n,i){var r=vn(n);r.push(e.name);var o=vn(i);return o.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:o}}var Oc,P7,h_,Kh,y_,BA,v_,HA,ap=qe(()=>{Bh();yt();jA();Ri();Oc=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),P7=function(e){Oc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return a(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=vn(this.path.ruleStack).reverse(),this.occurrenceStack=vn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var o=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,o)}},t.prototype.updateExpectedNext=function(){at(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Cc),h_=function(e){Oc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return a(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var o=i.concat(r),s=new Yt({definition:o});this.possibleTokTypes=Ic(s),this.found=!0}},t}(P7),Kh=function(e){Oc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return a(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Cc),y_=function(e){Oc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof ht&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Kh),BA=function(e){Oc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof ht&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Kh),v_=function(e){Oc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof ht&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Kh),HA=function(e){Oc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var o=Ti(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof ht&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Kh);a(Xh,"possiblePathsFrom");a(Qh,"nextPossibleTokensAfter");a(C7,"expandTopLevelRule")});function b_(e){if(e instanceof nn)return _t.OPTION;if(e instanceof Ot)return _t.REPETITION;if(e instanceof Nn)return _t.REPETITION_MANDATORY;if(e instanceof Ln)return _t.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Tn)return _t.REPETITION_WITH_SEPARATOR;if(e instanceof En)return _t.ALTERNATION;throw Error("non exhaustive match")}function A_(e,t,n,i,r,o){var s=sp(e,t,n),l=N_(s)?kl:Pc;return o(s,i,l,r)}function S_(e,t,n,i,r,o){var s=cp(e,t,r,n),l=N_(s)?kl:Pc;return o(s[0],l,i)}function x_(e,t,n,i){var r=e.length,o=ci(e,function(u){return ci(u,function(p){return p.length===1})});if(t)return function(u){for(var p=fe(u,function(W){return W.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<v;E++){for(var O=m[E],R=O.length,U=0;U<R;U++){var H=this.LA(U+1);if(n(H,O[U])===!1)continue e}return g}}};if(o&&!i){var s=fe(e,function(u){return On(u)}),l=cn(s,function(u,p,g){return ye(p,function(m){Ce(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(v){Ce(u,v)||(u[v]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var v=p[m],A=v.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,v[E])===!1)continue e}return u}}}}function P_(e,t,n){var i=ci(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var o=On(e);if(o.length===1&&at(o[0].categoryMatches)){var s=o[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=cn(o,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,v=0;v<m;v++){var A=this.LA(v+1);if(t(A,g[v])===!1)continue e}return!0}return!1}}function T_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function WA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],o=0;o<t.length;o++){var s=t[o];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function O7(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],o=0;o<t.length;o++){var s=t[o];if(r[s]===!0)return!1}return!0}function I_(e,t){for(var n=fe(e,function(g){return Xh([g],1)}),i=T_(n.length),r=fe(n,function(g){var m={};return ye(g,function(v){var A=WA(v.partialPath);ye(A,function(E){m[E]=!0})}),m}),o=n,s=1;s<=t;s++){var l=o;o=T_(l.length);for(var u=a(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,E=m[v].suffixDef,O=WA(A),R=O7(r,O,g);if(R||at(E)||A.length===t){var U=i[g];if(qh(U,A)===!1){U.push(A);for(var H=0;H<O.length;H++){var W=O[H];r[g][W]=!0}}}else{var ie=Xh(E,s+1,A);o[g]=o[g].concat(ie),ye(ie,function(Z){var ne=WA(Z.partialPath);ye(ne,function(Le){r[g][Le]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function sp(e,t,n,i){var r=new C_(e,_t.ALTERNATION,i);return t.accept(r),I_(r.result,n)}function cp(e,t,n,i){var r=new C_(e,n);t.accept(r);var o=r.result,s=new I7(t,e,n),l=s.startWalking(),u=new Yt({definition:o}),p=new Yt({definition:l});return I_([u,p],i)}function qh(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var o=t[r],s=i[r],l=o===s||s.categoryMatchesMap[o.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function O_(e,t){return e.length<t.length&&ci(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function N_(e){return ci(e,function(t){return ci(t,function(n){return ci(n,function(i){return at(i.categoryMatches)})})})}var E_,_t,I7,C_,lp=qe(()=>{yt();ap();Bh();Ul();Ri();$l();E_=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(_t||(_t={}));a(b_,"getProdType");a(A_,"buildLookaheadFuncForOr");a(S_,"buildLookaheadFuncForOptionalProd");a(x_,"buildAlternativesLookAheadFunc");a(P_,"buildSingleAlternativeLookaheadFunction");I7=function(e){E_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.topProd=n,o.targetOccurrence=i,o.targetProdType=r,o}return a(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,o){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(o),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,_t.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,_t.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,_t.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,_t.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,_t.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Cc),C_=function(e){E_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.targetOccurrence=n,o.targetProdType=i,o.targetRef=r,o.result=[],o}return a(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,_t.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,_t.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,_t.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,_t.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,_t.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,_t.ALTERNATION)},t}($r);a(T_,"initializeArrayOfArrays");a(WA,"pathToHashKeys");a(O7,"isUniquePrefixHash");a(I_,"lookAheadSequenceFromAlternatives");a(sp,"getLookaheadPathsForOr");a(cp,"getLookaheadPathsForOptionalProd");a(qh,"containsPath");a(O_,"isStrictPrefixOfPath");a(N_,"areTokenCategoriesNotUsed")});function L_(e,t,n,i,r){var o=fe(e,function(A){return N7(A,i)}),s=fe(e,function(A){return __(A,A,i)}),l=[],u=[],p=[];ci(s,at)&&(l=fe(e,function(A){return _7(A,i)}),u=fe(e,function(A){return D7(A,t,i)}),p=w7(e,t,i));var g=j7(e,n,i),m=fe(e,function(A){return M7(A,i)}),v=fe(e,function(A){return R7(A,e,r,i)});return On(o.concat(p,s,l,u,g,m,v))}function N7(e,t){var n=new F7;e.accept(n);var i=n.allProductions,r=x1(i,L7),o=dr(r,function(l){return l.length>1}),s=fe(Vn(o),function(l){var u=Ti(l),p=t.buildDuplicateFoundError(e,l),g=hr(u),m={message:p,type:Wn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=F_(u);return v&&(m.parameter=v),m});return s}function L7(e){return hr(e)+"_#_"+e.idx+"_#_"+F_(e)}function F_(e){return e instanceof ht?e.terminalType.name:e instanceof tn?e.nonTerminalName:""}function R7(e,t,n,i){var r=[],o=cn(t,function(l,u){return u.name===e.name?l+1:l},0);if(o>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Wn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function R_(e,t,n){var i=[],r;return Rt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Wn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function __(e,t,n,i){i===void 0&&(i=[]);var r=[],o=zh(t.definition);if(at(o))return[];var s=e.name,l=Rt(o,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Wn.LEFT_RECURSION,ruleName:s});var u=xc(o,i.concat([e])),p=fe(u,function(g){var m=vn(i);return m.push(g),__(e,g,n,m)});return r.concat(On(p))}function zh(e){var t=[];if(at(e))return t;var n=Ti(e);if(n instanceof tn)t.push(n.referencedRule);else if(n instanceof Yt||n instanceof nn||n instanceof Nn||n instanceof Ln||n instanceof Tn||n instanceof Ot)t=t.concat(zh(n.definition));else if(n instanceof En)t=On(fe(n.definition,function(s){return zh(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Bl(n),r=e.length>1;if(i&&r){var o=Mn(e);return t.concat(zh(o))}else return t}function _7(e,t){var n=new KA;e.accept(n);var i=n.alternations,r=cn(i,function(o,s){var l=ps(s.definition),u=fe(l,function(p,g){var m=Qh([p],[],null,1);return at(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Wn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return o.concat(va(u))},[]);return r}function D7(e,t,n){var i=new KA;e.accept(i);var r=i.alternations;r=ha(r,function(s){return s.ignoreAmbiguities===!0});var o=cn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=sp(u,e,p,l),m=k7(g,l,e,n),v=U7(g,l,e,n);return s.concat(m,v)},[]);return o}function M7(e,t){var n=new KA;e.accept(n);var i=n.alternations,r=cn(i,function(o,s){return s.definition.length>255&&o.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Wn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),o},[]);return r}function w7(e,t,n){var i=[];return ye(e,function(r){var o=new V7;r.accept(o);var s=o.allProductions;ye(s,function(l){var u=b_(l),p=l.maxLookahead||t,g=l.idx,m=cp(g,r,u,p),v=m[0];if(at(On(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Wn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function k7(e,t,n,i){var r=[],o=cn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(v,A){p!==A&&qh(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!qh(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=fe(o,function(l){var u=fe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Wn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function U7(e,t,n,i){var r=[],o=cn(e,function(s,l,u){var p=fe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(o,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=A1(o,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&O_(v.path,p)}),m=fe(g,function(v){var A=[v.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:O,type:Wn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function j7(e,t,n){var i=[],r=fe(t,function(o){return o.name});return ye(e,function(o){var s=o.name;if(Rt(r,s)){var l=n.buildNamespaceConflictError(o);i.push({message:l,type:Wn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var GA,F7,KA,V7,XA=qe(()=>{yt();yt();yr();Hl();lp();ap();Ri();$l();GA=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(L_,"validateGrammar");a(N7,"validateDuplicateProductions");a(L7,"identifyProductionForDuplicates");a(F_,"getExtraProductionArgument");F7=function(e){GA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}($r);a(R7,"validateRuleDoesNotAlreadyExist");a(R_,"validateRuleIsOverridden");a(__,"validateNoLeftRecursion");a(zh,"getFirstNoneTerminal");KA=function(e){GA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return a(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}($r);a(_7,"validateEmptyOrAlternative");a(D7,"validateAmbiguousAlternationAlternatives");V7=function(e){GA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}($r);a(M7,"validateTooManyAlts");a(w7,"validateSomeNonEmptyLookaheadPath");a(k7,"checkAlternativesAmbiguities");a(U7,"checkPrefixAlternativesAmbiguities");a(j7,"checkTerminalAndNoneTerminalsNameSpace")});function Yh(e){e=Yu(e,{errMsgProvider:Gh});var t={};return ye(e.rules,function(n){t[n.name]=n}),g_(t,e.errMsgProvider)}function Jh(e){return e=Yu(e,{errMsgProvider:ys}),L_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function D_(e){ye(e.rules,function(t){var n=new UA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,o){r.idx=o+1})})})}var QA=qe(()=>{yt();m_();XA();op();Hl();a(Yh,"resolveGrammar");a(Jh,"validateGrammar");a(D_,"assignOccurrenceIndices")});function ba(e){return Rt(U_,e.name)}var fp,V_,M_,w_,k_,U_,Zh,Wl,ey,ty,ny,Gl=qe(()=>{yt();fp=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),V_="MismatchedTokenException",M_="NoViableAltException",w_="EarlyExitException",k_="NotAllInputParsedException",U_=[V_,M_,w_,k_];Object.freeze(U_);a(ba,"isRecognitionException");Zh=function(e){fp(t,e);function t(n,i){var r=this.constructor,o=e.call(this,n)||this;return o.token=i,o.resyncedTokens=[],Object.setPrototypeOf(o,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return a(t,"RecognitionException"),t}(Error),Wl=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=V_,o}return a(t,"MismatchedTokenException"),t}(Zh),ey=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=M_,o}return a(t,"NoViableAltException"),t}(Zh),ty=function(e){fp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=k_,r}return a(t,"NotAllInputParsedException"),t}(Zh),ny=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=w_,o}return a(t,"EarlyExitException"),t}(Zh)});function j_(e){this.name=zA,this.message=e}function $7(e,t,n,i,r,o,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new o(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var v=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&v===void 0&&(v=jr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var qA,zA,$_,YA=qe(()=>{hs();yt();Gl();$A();yr();qA={},zA="InRuleRecoveryException";a(j_,"InRuleRecoveryException");j_.prototype=Error.prototype;$_=function(){function e(){}return a(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ce(t,"recoveryEnabled")?t.recoveryEnabled:qi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=$7)},e.prototype.getTokenToInsert=function(t){var n=ms(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var o=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),v=a(function(){var A=o.LA(0),E=o.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:o.getCurrRuleFullName()}),O=new Wl(E,g,o.LA(0));O.resyncedTokens=ps(u),o.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new j_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||at(n))return!1;var r=this.LA(1),o=ya(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return o},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Rt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Rt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return qA;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return fe(n,function(r,o){return o===0?qA:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[o],inRule:t.shortRuleNameToFullName(n[o-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=fe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return On(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===qA)return[jr];var n=t.ruleName+t.idxInCallingRule+Wh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,jr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ps(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,o,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=vn(this.RULE_OCCURRENCE_STACK),o={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return o},e.prototype.getHumanReadableRuleStack=function(){var t=this;return fe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();a($7,"attemptInRepetitionRecovery")});function oy(e,t,n){return n|t|e}var B_,jo,B7,iy,ry,up,pp,dp,Kl,Uoe,ay=qe(()=>{B_=4,jo=8,B7=8,iy=1<<jo,ry=2<<jo,up=3<<jo,pp=4<<jo,dp=5<<jo,Kl=6<<jo;a(oy,"getKeyForAutomaticLookahead");Uoe=32-B7});var H_,W_=qe(()=>{lp();yt();yr();ay();Hl();H_=function(){function e(){}return a(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ce(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:qi.dynamicTokensEnabled,this.maxLookahead=Ce(t,"maxLookahead")?t.maxLookahead:qi.maxLookahead,this.lookAheadFuncsCache=NA()?new Map:[],NA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=u_(i),o=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(o,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+hr(m)+v,function(){var A=A_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=oy(n.fullRuleNameToShort[i.name],iy,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,up,_t.REPETITION,m.maxLookahead,hr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,ry,_t.OPTION,m.maxLookahead,hr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,pp,_t.REPETITION_MANDATORY,m.maxLookahead,hr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Kl,_t.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,hr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,dp,_t.REPETITION_WITH_SEPARATOR,m.maxLookahead,hr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,o,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=S_(n,t,o||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=oy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return P_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return x_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return oy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function JA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function ZA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function G_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function K_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var X_=qe(()=>{a(JA,"setNodeLocationOnlyOffset");a(ZA,"setNodeLocationFull");a(G_,"addTerminalToCst");a(K_,"addNoneTerminalToCst")});function q_(e){return gp(e.constructor)}function gp(e){var t=e.name;return t||"anonymous"}function eS(e,t){var n=Object.getOwnPropertyDescriptor(e,Q_);return Ei(n)||n.configurable?(Object.defineProperty(e,Q_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Q_,tS=qe(()=>{yt();a(q_,"classNameFromInstance");Q_="name";a(gp,"functionName");a(eS,"defineNameProp")});function H7(e,t){for(var n=Li(e),i=n.length,r=0;r<i;r++)for(var o=n[r],s=e[o],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function z_(e,t){var n=a(function(){},"derivedConstructor");eS(n,e+"BaseSemantics");var i={visit:function(r,o){if(si(r)&&(r=r[0]),!Ei(r))return this[r.name](r.children,o)},validateVisitor:function(){var r=W7(this,t);if(!at(r)){var o=fe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+gp(this.constructor)+`>:
165
165
  `+(""+o.join(`
166
166
 
167
167
  `).replace(/\n/g,`
168
- `)))}}};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function K_(e,t,n){var i=a(function(){},"derivedConstructor");eS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(o){r[o]=U7}),i.prototype=r,i.prototype.constructor=i,i}function j7(e,t){var n=$7(e,t),i=H7(e,t);return n.concat(i)}function $7(e,t){var n=le(t,function(i){if(!so(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+gp(e.constructor)+" CST Visitor.",type:cy.MISSING_METHOD,methodName:i}});return va(n)}function H7(e,t){var n=[];for(var i in e)so(e[i])&&!Rt(B7,i)&&!Rt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+gp(e.constructor)+` CST Visitor
168
+ `)))}}};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function Y_(e,t,n){var i=a(function(){},"derivedConstructor");eS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(o){r[o]=H7}),i.prototype=r,i.prototype.constructor=i,i}function W7(e,t){var n=G7(e,t),i=X7(e,t);return n.concat(i)}function G7(e,t){var n=fe(t,function(i){if(!so(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+gp(e.constructor)+" CST Visitor.",type:sy.MISSING_METHOD,methodName:i}});return va(n)}function X7(e,t){var n=[];for(var i in e)so(e[i])&&!Rt(K7,i)&&!Rt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+gp(e.constructor)+` CST Visitor
169
169
  There is no Grammar Rule corresponding to this method's name.
170
- `,type:cy.REDUNDANT_METHOD,methodName:i});return n}var cy,B7,X_=qe(()=>{ht();tS();a(U7,"defaultVisit");a(G_,"createBaseSemanticVisitorConstructor");a(K_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(cy||(cy={}));a(j7,"validateVisitor");a($7,"validateMissingCstMethods");B7=["constructor","visit","validateVisitor"];a(H7,"validateRedundantMethods")});var Q_,q_=qe(()=>{B_();ht();X_();yr();Q_=function(){function e(){}return a(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ce(t,"nodeLocationTracking")?t.nodeLocationTracking:qi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=wn,this.cstFinallyStateUpdate=wn,this.cstPostTerminal=wn,this.cstPostNonTerminal=wn,this.cstPostRule=wn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=ZA,this.setNodeLocationFromNode=ZA,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=JA,this.setNodeLocationFromNode=JA,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=wn,this.setInitialNodeLocation=wn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];j_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];$_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ei(this.baseCstVisitorConstructor)){var t=G_(this.className,Li(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ei(this.baseCstVisitorWithDefaultsConstructor)){var t=K_(this.className,Li(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var z_,Y_=qe(()=>{yr();z_=function(){function e(){}return a(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):zl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?zl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var J_,Z_=qe(()=>{ht();Ql();yr();op();XA();Ri();J_=function(){function e(){}return a(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Yl),Rt(this.definedRulesNames,t)){var r=Es.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),o={message:r,type:Wn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(o)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Yl);var r=[];r=r.concat(I_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(t,n,i);return this[t]=o,o},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(ba(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Bh(Vn(this.gastProductionsCache))},e}()});var eD,tD=qe(()=>{ht();sy();Ql();lp();ap();yr();YA();Ts();Bl();tS();eD=function(){function e(){}return a(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=W_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=$l,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ce(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
170
+ `,type:sy.REDUNDANT_METHOD,methodName:i});return n}var sy,K7,J_=qe(()=>{yt();tS();a(H7,"defaultVisit");a(z_,"createBaseSemanticVisitorConstructor");a(Y_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(sy||(sy={}));a(W7,"validateVisitor");a(G7,"validateMissingCstMethods");K7=["constructor","visit","validateVisitor"];a(X7,"validateRedundantMethods")});var Z_,eD=qe(()=>{X_();yt();J_();yr();Z_=function(){function e(){}return a(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ce(t,"nodeLocationTracking")?t.nodeLocationTracking:qi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=wn,this.cstFinallyStateUpdate=wn,this.cstPostTerminal=wn,this.cstPostNonTerminal=wn,this.cstPostRule=wn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=ZA,this.setNodeLocationFromNode=ZA,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=JA,this.setNodeLocationFromNode=JA,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=wn,this.setInitialNodeLocation=wn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];G_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];K_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ei(this.baseCstVisitorConstructor)){var t=z_(this.className,Li(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ei(this.baseCstVisitorWithDefaultsConstructor)){var t=Y_(this.className,Li(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var tD,nD=qe(()=>{yr();tD=function(){function e(){}return a(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Xl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Xl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var iD,rD=qe(()=>{yt();Gl();yr();op();XA();Ri();iD=function(){function e(){}return a(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Ql),Rt(this.definedRulesNames,t)){var r=ys.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),o={message:r,type:Wn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(o)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Ql);var r=[];r=r.concat(R_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(t,n,i);return this[t]=o,o},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(ba(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return $h(Vn(this.gastProductionsCache))},e}()});var oD,aD=qe(()=>{yt();ay();Gl();lp();ap();yr();YA();hs();Ul();tS();oD=function(){function e(){}return a(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=q_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=kl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ce(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
171
171
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
172
172
  For Further details.`);if(si(t)){if(at(t))throw Error(`A Token Vocabulary cannot be empty.
173
173
  Note that the first argument for the parser constructor
174
174
  is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
175
175
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
176
- For Further details.`)}if(si(t))this.tokensMap=cn(t,function(s,l){return s[l.name]=l,s},{});else if(Ce(t,"modes")&&ci(On(Vn(t.modes)),K1)){var i=On(Vn(t.modes)),r=zu(i);this.tokensMap=cn(r,function(s,l){return s[l.name]=l,s},{})}else if(Ih(t))this.tokensMap=hs(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=jr;var o=ci(Vn(t),function(s){return at(s.categoryMatches)});this.tokenMatcher=o?$l:Ic,Ta(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
- Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ce(i,"resyncEnabled")?i.resyncEnabled:Yl.resyncEnabled,o=Ce(i,"recoveryValueFunc")?i.recoveryValueFunc:Yl.recoveryValueFunc,s=this.ruleShortNameIdx<<w_+$o;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(v){return this.invokeRuleCatch(v,r,o)}finally{this.ruleFinallyStateUpdate()}}a(l,"invokeRuleWithTry");var u;u=a(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,o=n&&!this.isBackTracking()&&this.recoveryEnabled;if(ba(t)){var s=t;if(o){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(oy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(o.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(pp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(o.call(this)===!0)for(var p=this.doSingleRepetition(s);o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,_t.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],o,pp,t,d_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ql,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,HA],u,ql,t,HA)}else throw this.raiseEarlyExitException(t,_t.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(up,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],o,up,t,p_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,BA],u,dp,t,BA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,o){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,o],i,ql,t,o)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ry,n),r=si(t)?t:t.DEF,o=this.getLaFuncFromCache(i),s=o.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new ny(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var o=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,o),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw ba(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),r=o):this.consumeInternalError(t,o,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,o=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Xl(r,n,o))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(o){throw o.name===zA?i:o}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=vn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),jr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var nD,iD=qe(()=>{Ql();ht();lp();yr();nD=function(){function e(){}return a(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ce(t,"errorMessageProvider")?t.errorMessageProvider:qi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(ba(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:vn(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return vn(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),o=this.getGAstProductions()[r],s=cp(t,o,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new iy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],o=sp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ty(p,this.LA(1),u))},e}()});var rD,oD=qe(()=>{ap();ht();rD=function(){function e(){}return a(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ei(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return qh([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ti(t.ruleStack),i=this.getGAstProductions(),r=i[n],o=new u_(r,t).startWalking();return o},e}()});function mp(e,t,n,i){i===void 0&&(i=!1),ly(n);var r=Zu(this.recordingProdStack),o=so(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ce(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),o.call(this),r.definition.push(s),this.recordingProdStack.pop(),fy}function G7(e,t){var n=this;ly(t);var i=Zu(this.recordingProdStack),r=si(e)===!1,o=r===!1?e:e.DEF,s=new En({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ce(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Oh(o,function(u){return so(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(o,function(u){var p=new Yt({definition:[]});s.definition.push(p),Ce(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ce(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),fy}function cD(e){return e===0?"":""+e}function ly(e){if(e<0||e>sD){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
- `+("Idx value must be a none negative value smaller than "+(sD+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var fy,aD,sD,lD,fD,W7,uD,pD=qe(()=>{ht();Ri();tp();Bl();Ts();yr();sy();fy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(fy);aD=!0,sD=Math.pow(2,$o)-1,lD=ip({name:"RECORDING_PHASE_TOKEN",pattern:Fi.NA});Ta([lD]);fD=vs(lD,`This IToken indicates the Parser is in Recording Phase
179
- See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(fD);W7={name:`This CSTNode indicates the Parser is in Recording Phase
180
- See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},uD=function(){function e(){}return a(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=a(function(r){var o=r>0?r:"";t["CONSUME"+o]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+o]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+o]=function(s){return this.optionInternalRecord(s,r)},t["OR"+o]=function(s){return this.orInternalRecord(s,r)},t["MANY"+o]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+o]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+o]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+o]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,o,s){return this.consumeInternalRecord(o,r,s)},t.subrule=function(r,o,s){return this.subruleInternalRecord(o,r,s)},t.option=function(r,o){return this.optionInternalRecord(o,r)},t.or=function(r,o){return this.orInternalRecord(o,r)},t.many=function(r,o){this.manyInternalRecord(r,o)},t.atLeastOne=function(r,o){this.atLeastOneInternalRecord(r,o)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return zl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new mr({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
176
+ For Further details.`)}if(si(t))this.tokensMap=cn(t,function(s,l){return s[l.name]=l,s},{});else if(Ce(t,"modes")&&ci(On(Vn(t.modes)),Y1)){var i=On(Vn(t.modes)),r=zu(i);this.tokensMap=cn(r,function(s,l){return s[l.name]=l,s},{})}else if(Ch(t))this.tokensMap=ds(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=jr;var o=ci(Vn(t),function(s){return at(s.categoryMatches)});this.tokenMatcher=o?kl:Pc,Ta(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ce(i,"resyncEnabled")?i.resyncEnabled:Ql.resyncEnabled,o=Ce(i,"recoveryValueFunc")?i.recoveryValueFunc:Ql.recoveryValueFunc,s=this.ruleShortNameIdx<<B_+jo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(v){return this.invokeRuleCatch(v,r,o)}finally{this.ruleFinallyStateUpdate()}}a(l,"invokeRuleWithTry");var u;u=a(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,o=n&&!this.isBackTracking()&&this.recoveryEnabled;if(ba(t)){var s=t;if(o){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ry,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(o.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(pp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(o.call(this)===!0)for(var p=this.doSingleRepetition(s);o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,_t.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],o,pp,t,v_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Kl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,HA],u,Kl,t,HA)}else throw this.raiseEarlyExitException(t,_t.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(up,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],o,up,t,y_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,BA],u,dp,t,BA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,o){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,o],i,Kl,t,o)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(iy,n),r=si(t)?t:t.DEF,o=this.getLaFuncFromCache(i),s=o.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new ty(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var o=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,o),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw ba(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),r=o):this.consumeInternalError(t,o,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,o=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Wl(r,n,o))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(o){throw o.name===zA?i:o}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=vn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),jr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var sD,cD=qe(()=>{Gl();yt();lp();yr();sD=function(){function e(){}return a(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ce(t,"errorMessageProvider")?t.errorMessageProvider:qi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(ba(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:vn(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return vn(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),o=this.getGAstProductions()[r],s=cp(t,o,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new ny(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],o=sp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ey(p,this.LA(1),u))},e}()});var lD,fD=qe(()=>{ap();yt();lD=function(){function e(){}return a(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ei(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Qh([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ti(t.ruleStack),i=this.getGAstProductions(),r=i[n],o=new h_(r,t).startWalking();return o},e}()});function mp(e,t,n,i){i===void 0&&(i=!1),cy(n);var r=Zu(this.recordingProdStack),o=so(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ce(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),o.call(this),r.definition.push(s),this.recordingProdStack.pop(),ly}function q7(e,t){var n=this;cy(t);var i=Zu(this.recordingProdStack),r=si(e)===!1,o=r===!1?e:e.DEF,s=new En({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ce(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Ih(o,function(u){return so(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(o,function(u){var p=new Yt({definition:[]});s.definition.push(p),Ce(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ce(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),ly}function dD(e){return e===0?"":""+e}function cy(e){if(e<0||e>pD){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
+ `+("Idx value must be a none negative value smaller than "+(pD+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var ly,uD,pD,gD,mD,Q7,hD,yD=qe(()=>{yt();Ri();tp();Ul();hs();yr();ay();ly={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(ly);uD=!0,pD=Math.pow(2,jo)-1,gD=ip({name:"RECORDING_PHASE_TOKEN",pattern:Fi.NA});Ta([gD]);mD=ms(gD,`This IToken indicates the Parser is in Recording Phase
179
+ See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(mD);Q7={name:`This CSTNode indicates the Parser is in Recording Phase
180
+ See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},hD=function(){function e(){}return a(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=a(function(r){var o=r>0?r:"";t["CONSUME"+o]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+o]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+o]=function(s){return this.optionInternalRecord(s,r)},t["OR"+o]=function(s){return this.orInternalRecord(s,r)},t["MANY"+o]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+o]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+o]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+o]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,o,s){return this.consumeInternalRecord(o,r,s)},t.subrule=function(r,o,s){return this.subruleInternalRecord(o,r,s)},t.option=function(r,o){return this.optionInternalRecord(o,r)},t.or=function(r,o){return this.orInternalRecord(o,r)},t.many=function(r,o){this.manyInternalRecord(r,o)},t.atLeastOne=function(r,o){this.atLeastOneInternalRecord(r,o)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return Xl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new mr({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
181
181
  This error was thrown during the "grammar recording phase" For more info see:
182
- https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return mp.call(this,nn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){mp.call(this,Nn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){mp.call(this,Ln,n,t,aD)},e.prototype.manyInternalRecord=function(t,n){mp.call(this,Ot,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){mp.call(this,Tn,n,t,aD)},e.prototype.orInternalRecord=function(t,n){return G7.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(ly(n),!t||Ce(t,"ruleName")===!1){var r=new Error("<SUBRULE"+cD(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var o=Zu(this.recordingProdStack),s=t.ruleName,l=new tn({idx:n,nonTerminalName:s,referencedRule:void 0});return o.definition.push(l),this.outputCst?W7:fy},e.prototype.consumeInternalRecord=function(t,n,i){if(ly(n),!MA(t)){var r=new Error("<CONSUME"+cD(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var o=Zu(this.recordingProdStack),s=new mt({idx:n,terminalType:t});return o.definition.push(s),fD},e}();a(mp,"recordProd");a(G7,"recordOrProd");a(cD,"getIdxSuffix");a(ly,"assertMethodIdxIsValid")});var dD,gD=qe(()=>{ht();yr();dD=function(){function e(){}return a(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ce(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=qi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Fh(n),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"ms"),this.traceInitIndent--,s}else return n()},e}()});function hD(e){return e===void 0&&(e=void 0),function(){return e}}var mD,zl,qi,Yl,Wn,nS,yD,vD,yr=qe(()=>{ht();c_();Ts();op();QA();YA();U_();q_();Y_();Z_();tD();iD();oD();pD();gD();mD=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),zl=vs(jr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(zl);qi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:rp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Yl=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Wn||(Wn={}));a(hD,"EMPTY_ALT");nS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),Ce(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
182
+ https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return mp.call(this,nn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){mp.call(this,Nn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){mp.call(this,Ln,n,t,uD)},e.prototype.manyInternalRecord=function(t,n){mp.call(this,Ot,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){mp.call(this,Tn,n,t,uD)},e.prototype.orInternalRecord=function(t,n){return q7.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(cy(n),!t||Ce(t,"ruleName")===!1){var r=new Error("<SUBRULE"+dD(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var o=Zu(this.recordingProdStack),s=t.ruleName,l=new tn({idx:n,nonTerminalName:s,referencedRule:void 0});return o.definition.push(l),this.outputCst?Q7:ly},e.prototype.consumeInternalRecord=function(t,n,i){if(cy(n),!MA(t)){var r=new Error("<CONSUME"+dD(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var o=Zu(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return o.definition.push(s),mD},e}();a(mp,"recordProd");a(q7,"recordOrProd");a(dD,"getIdxSuffix");a(cy,"assertMethodIdxIsValid")});var vD,TD=qe(()=>{yt();yr();vD=function(){function e(){}return a(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ce(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=qi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Lh(n),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"ms"),this.traceInitIndent--,s}else return n()},e}()});function bD(e){return e===void 0&&(e=void 0),function(){return e}}var ED,Xl,qi,Ql,Wn,nS,AD,SD,yr=qe(()=>{yt();d_();hs();op();QA();YA();W_();eD();nD();rD();aD();cD();fD();yD();TD();ED=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Xl=ms(jr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Xl);qi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:rp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Ql=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Wn||(Wn={}));a(bD,"EMPTY_ALT");nS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),Ce(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
185
185
  Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
186
186
  See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
187
- For further details.`);this.skipValidations=Ce(n,"skipValidations")?n.skipValidations:qi.skipValidations}return a(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Lh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ye(t.definedRulesNames,function(o){var s=t[o],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(o+" Rule",function(){u=t.topLevelRuleRecord(o,l)}),t.gastProductionsCache[o]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=Jh({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(at(r)&&t.skipValidations===!1){var o=Zh({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Es,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,o)}}),at(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var o=s_(Vn(t.gastProductionsCache));t.resyncFollows=o}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!at(t.definitionErrors))throw n=le(t.definitionErrors,function(o){return o.message}),new Error(`Parser Definition Errors detected:
187
+ For further details.`);this.skipValidations=Ce(n,"skipValidations")?n.skipValidations:qi.skipValidations}return a(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Nh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ye(t.definedRulesNames,function(o){var s=t[o],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(o+" Rule",function(){u=t.topLevelRuleRecord(o,l)}),t.gastProductionsCache[o]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=Yh({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(at(r)&&t.skipValidations===!1){var o=Jh({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:ys,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,o)}}),at(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var o=p_(Vn(t.gastProductionsCache));t.resyncFollows=o}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!at(t.definitionErrors))throw n=fe(t.definitionErrors,function(o){return o.message}),new Error(`Parser Definition Errors detected:
188
188
  `+n.join(`
189
189
  -------------------------------
190
- `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();b1(nS,[M_,k_,Q_,z_,eD,J_,nD,rD,uD,dD]);yD=function(e){mD(t,e);function t(n,i){i===void 0&&(i=qi);var r=this,o=hs(i);return o.outputCst=!0,r=e.call(this,n,o)||this,r}return a(t,"CstParser"),t}(nS),vD=function(e){mD(t,e);function t(n,i){i===void 0&&(i=qi);var r=this,o=hs(i);return o.outputCst=!1,r=e.call(this,n,o)||this,r}return a(t,"EmbeddedActionsParser"),t}(nS)});function TD(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+qu+"/diagrams/":i,o=n.css,s=o===void 0?"https://unpkg.com/chevrotain@"+qu+"/diagrams/diagrams.css":o,l=`
190
+ `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();C1(nS,[$_,H_,Z_,tD,oD,iD,sD,lD,hD,vD]);AD=function(e){ED(t,e);function t(n,i){i===void 0&&(i=qi);var r=this,o=ds(i);return o.outputCst=!0,r=e.call(this,n,o)||this,r}return a(t,"CstParser"),t}(nS),SD=function(e){ED(t,e);function t(n,i){i===void 0&&(i=qi);var r=this,o=ds(i);return o.outputCst=!1,r=e.call(this,n,o)||this,r}return a(t,"EmbeddedActionsParser"),t}(nS)});function xD(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+qu+"/diagrams/":i,o=n.css,s=o===void 0?"https://unpkg.com/chevrotain@"+qu+"/diagrams/diagrams.css":o,l=`
191
191
  <!-- This is a generated file -->
192
192
  <!DOCTYPE html>
193
193
  <meta charset="utf-8">
@@ -215,7 +215,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
215
215
  var diagramsDiv = document.getElementById("diagrams");
216
216
  main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);
217
217
  </script>
218
- `;return l+u+p+g+m+v}var ED=qe(()=>{CA();a(TD,"createSyntaxDiagramsCode")});function AD(e){return`
218
+ `;return l+u+p+g+m+v}var PD=qe(()=>{CA();a(xD,"createSyntaxDiagramsCode")});function ID(e){return`
219
219
  (function (root, factory) {
220
220
  if (typeof define === 'function' && define.amd) {
221
221
  // AMD. Register as an anonymous module.
@@ -231,16 +231,16 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
231
231
  }
232
232
  }(typeof self !== 'undefined' ? self : this, function (chevrotain) {
233
233
 
234
- `+xD(e)+`
234
+ `+ND(e)+`
235
235
 
236
236
  return {
237
237
  `+e.name+": "+e.name+`
238
238
  }
239
239
  }));
240
- `}function SD(e){return`
241
- `+xD(e)+`
240
+ `}function OD(e){return`
241
+ `+ND(e)+`
242
242
  return new `+e.name+`(tokenVocabulary, config)
243
- `}function xD(e){var t=`
243
+ `}function ND(e){var t=`
244
244
  function `+e.name+`(tokenVocabulary, config) {
245
245
  // invoke super constructor
246
246
  // No support for embedded actions currently, so we can 'hardcode'
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
249
249
 
250
250
  const $ = this
251
251
 
252
- `+K7(e.rules)+`
252
+ `+z7(e.rules)+`
253
253
 
254
254
  // very important to call this after all the rules have been defined.
255
255
  // otherwise the parser may not work correctly as it will lack information
@@ -260,38 +260,38 @@ function `+e.name+`(tokenVocabulary, config) {
260
260
  // inheritance as implemented in javascript in the previous decade... :(
261
261
  `+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
262
262
  `+e.name+".prototype.constructor = "+e.name+`
263
- `;return t}function K7(e){var t=le(e,function(n){return X7(n,1)});return t.join(`
264
- `)}function X7(e,t){var n=_i(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=uy(e.definition,t+1),n+=_i(t+1,"})")+ei,n}function Q7(e,t){var n=e.terminalType.name;return _i(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function q7(e,t){return _i(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function z7(e,t){var n=_i(t,"$.OR"+e.idx+"([")+ei,i=le(e.definition,function(r){return Y7(r,t+1)});return n+=i.join(","+ei),n+=ei+_i(t,"])"+ei),n}function Y7(e,t){var n=_i(t,"{")+ei;return n+=_i(t+1,"ALT: function() {")+ei,n+=uy(e.definition,t+1),n+=_i(t+1,"}")+ei,n+=_i(t,"}"),n}function J7(e,t){if(e instanceof tn)return q7(e,t);if(e instanceof nn)return hp("OPTION",e,t);if(e instanceof Nn)return hp("AT_LEAST_ONE",e,t);if(e instanceof Ln)return hp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Tn)return hp("MANY_SEP",e,t);if(e instanceof Ot)return hp("MANY",e,t);if(e instanceof En)return z7(e,t);if(e instanceof mt)return Q7(e,t);if(e instanceof Yt)return uy(e.definition,t);throw Error("non exhaustive match")}function hp(e,t,n){var i=_i(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=_i(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+bD(t.definition,n+2)+ei,i+=_i(n,"}")+ei):i+=bD(t.definition,n+1),i+=_i(n,")")+ei,i}function bD(e,t){var n="function() {"+ei;return n+=uy(e,t),n+=_i(t,"}")+ei,n}function uy(e,t){var n="";return ye(e,function(i){n+=J7(i,t+1)}),n}function _i(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,PD=qe(()=>{ht();Ri();ei=`
265
- `;a(AD,"genUmdModule");a(SD,"genWrapperFunction");a(xD,"genClass");a(K7,"genAllRules");a(X7,"genRule");a(Q7,"genTerminal");a(q7,"genNonTerminal");a(z7,"genAlternation");a(Y7,"genSingleAlt");a(J7,"genProd");a(hp,"genDSLRule");a(bD,"genDefFunction");a(uy,"genDefinition");a(_i,"indent")});function CD(e){var t=SD({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(dy(),ng(py)))}}function ID(e){return AD({name:e.name,rules:e.rules})}var OD=qe(()=>{PD();a(CD,"generateParserFactory");a(ID,"generateParserModule")});var py={};Gs(py,{Alternation:()=>En,Alternative:()=>Yt,CstParser:()=>yD,EMPTY_ALT:()=>hD,EOF:()=>jr,EarlyExitException:()=>iy,EmbeddedActionsParser:()=>vD,GAstVisitor:()=>$r,Lexer:()=>Fi,LexerDefinitionErrorType:()=>ln,MismatchedTokenException:()=>Xl,NoViableAltException:()=>ty,NonTerminal:()=>tn,NotAllInputParsedException:()=>ny,Option:()=>nn,Parser:()=>eQ,ParserDefinitionErrorType:()=>Wn,Repetition:()=>Ot,RepetitionMandatory:()=>Nn,RepetitionMandatoryWithSeparator:()=>Ln,RepetitionWithSeparator:()=>Tn,Rule:()=>mr,Terminal:()=>mt,VERSION:()=>qu,assignOccurrenceIndices:()=>N_,clearCache:()=>Z7,createSyntaxDiagramsCode:()=>TD,createToken:()=>ip,createTokenInstance:()=>vs,defaultGrammarResolverErrorProvider:()=>Kh,defaultGrammarValidatorErrorProvider:()=>Es,defaultLexerErrorProvider:()=>$h,defaultParserErrorProvider:()=>rp,generateParserFactory:()=>CD,generateParserModule:()=>ID,isRecognitionException:()=>ba,resolveGrammar:()=>Jh,serializeGrammar:()=>Bh,serializeProduction:()=>Hl,tokenLabel:()=>jo,tokenMatcher:()=>n_,tokenName:()=>t_,validateGrammar:()=>Zh});function Z7(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
263
+ `;return t}function z7(e){var t=fe(e,function(n){return Y7(n,1)});return t.join(`
264
+ `)}function Y7(e,t){var n=_i(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=fy(e.definition,t+1),n+=_i(t+1,"})")+ei,n}function J7(e,t){var n=e.terminalType.name;return _i(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function Z7(e,t){return _i(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function eQ(e,t){var n=_i(t,"$.OR"+e.idx+"([")+ei,i=fe(e.definition,function(r){return tQ(r,t+1)});return n+=i.join(","+ei),n+=ei+_i(t,"])"+ei),n}function tQ(e,t){var n=_i(t,"{")+ei;return n+=_i(t+1,"ALT: function() {")+ei,n+=fy(e.definition,t+1),n+=_i(t+1,"}")+ei,n+=_i(t,"}"),n}function nQ(e,t){if(e instanceof tn)return Z7(e,t);if(e instanceof nn)return hp("OPTION",e,t);if(e instanceof Nn)return hp("AT_LEAST_ONE",e,t);if(e instanceof Ln)return hp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Tn)return hp("MANY_SEP",e,t);if(e instanceof Ot)return hp("MANY",e,t);if(e instanceof En)return eQ(e,t);if(e instanceof ht)return J7(e,t);if(e instanceof Yt)return fy(e.definition,t);throw Error("non exhaustive match")}function hp(e,t,n){var i=_i(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=_i(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+CD(t.definition,n+2)+ei,i+=_i(n,"}")+ei):i+=CD(t.definition,n+1),i+=_i(n,")")+ei,i}function CD(e,t){var n="function() {"+ei;return n+=fy(e,t),n+=_i(t,"}")+ei,n}function fy(e,t){var n="";return ye(e,function(i){n+=nQ(i,t+1)}),n}function _i(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,LD=qe(()=>{yt();Ri();ei=`
265
+ `;a(ID,"genUmdModule");a(OD,"genWrapperFunction");a(ND,"genClass");a(z7,"genAllRules");a(Y7,"genRule");a(J7,"genTerminal");a(Z7,"genNonTerminal");a(eQ,"genAlternation");a(tQ,"genSingleAlt");a(nQ,"genProd");a(hp,"genDSLRule");a(CD,"genDefFunction");a(fy,"genDefinition");a(_i,"indent")});function FD(e){var t=OD({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(py(),ig(uy)))}}function RD(e){return ID({name:e.name,rules:e.rules})}var _D=qe(()=>{LD();a(FD,"generateParserFactory");a(RD,"generateParserModule")});var uy={};Hs(uy,{Alternation:()=>En,Alternative:()=>Yt,CstParser:()=>AD,EMPTY_ALT:()=>bD,EOF:()=>jr,EarlyExitException:()=>ny,EmbeddedActionsParser:()=>SD,GAstVisitor:()=>$r,Lexer:()=>Fi,LexerDefinitionErrorType:()=>ln,MismatchedTokenException:()=>Wl,NoViableAltException:()=>ey,NonTerminal:()=>tn,NotAllInputParsedException:()=>ty,Option:()=>nn,Parser:()=>rQ,ParserDefinitionErrorType:()=>Wn,Repetition:()=>Ot,RepetitionMandatory:()=>Nn,RepetitionMandatoryWithSeparator:()=>Ln,RepetitionWithSeparator:()=>Tn,Rule:()=>mr,Terminal:()=>ht,VERSION:()=>qu,assignOccurrenceIndices:()=>D_,clearCache:()=>iQ,createSyntaxDiagramsCode:()=>xD,createToken:()=>ip,createTokenInstance:()=>ms,defaultGrammarResolverErrorProvider:()=>Gh,defaultGrammarValidatorErrorProvider:()=>ys,defaultLexerErrorProvider:()=>jh,defaultParserErrorProvider:()=>rp,generateParserFactory:()=>FD,generateParserModule:()=>RD,isRecognitionException:()=>ba,resolveGrammar:()=>Yh,serializeGrammar:()=>$h,serializeProduction:()=>jl,tokenLabel:()=>Uo,tokenMatcher:()=>s_,tokenName:()=>a_,validateGrammar:()=>Jh});function iQ(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
266
266
  It performs no action other than printing this message.
267
- Please avoid using it as it will be completely removed in the future`)}var eQ,dy=qe(()=>{CA();yr();tp();Ts();op();Ql();wA();Ri();Ri();Wl();QA();ED();OD();a(Z7,"clearCache");eQ=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
268
- See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return a(e,"Parser"),e}()});var oS=ze((jse,DD)=>{var{createToken:tQ,Lexer:iS}=(dy(),ng(py)),LD={},Jl=LD;function rS(e,t){LD[e]=typeof t=="string"?t:t.source}a(rS,"FRAGMENT");function yp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}a(yp,"makePattern");var nQ=[],FD={};function bn(e){let t=tQ(e);return nQ.push(t),FD[e.name]=t,t}a(bn,"createToken");rS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");rS("NameChar",yp`${Jl.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);rS("Name",yp`${Jl.NameStartChar}(${Jl.NameChar})*`);var ND=bn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),iQ=bn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),rQ=bn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),oQ=bn({name:"DTD",pattern:/<!.*?>/,group:iS.SKIPPED}),aQ=bn({name:"EntityRef",pattern:yp`&${Jl.Name};`}),sQ=bn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),cQ=bn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),lQ=bn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),RD=bn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),fQ=bn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[RD]}),uQ=bn({name:"PROCESSING_INSTRUCTION",pattern:yp`<\\?${Jl.Name}.*\\?>`}),_D=bn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),pQ=bn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[_D]}),dQ=bn({name:"TEXT",pattern:/[^<&]+/}),gQ=bn({name:"CLOSE",pattern:/>/,pop_mode:!0}),mQ=bn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),hQ=bn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),yQ=bn({name:"SLASH",pattern:/\//}),vQ=bn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),TQ=bn({name:"EQUALS",pattern:/=/}),EQ=bn({name:"Name",pattern:yp`${Jl.Name}`}),bQ=bn({name:"S",pattern:/[ \t\r\n]/,group:iS.SKIPPED}),AQ={defaultMode:"OUTSIDE",modes:{OUTSIDE:[ND,iQ,rQ,oQ,aQ,sQ,cQ,lQ,RD,uQ,_D,dQ],INSIDE:[ND,fQ,pQ,gQ,mQ,hQ,yQ,TQ,vQ,EQ,bQ]}},SQ=new iS(AQ,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
- `],lineTerminatorsPattern:/\n|\r\n/g});DD.exports={xmlLexer:SQ,tokensDictionary:FD}});var MD=ze((Bse,VD)=>{var{CstParser:xQ,tokenMatcher:PQ}=(dy(),ng(py)),{tokensDictionary:xt}=oS(),sS=class sS extends xQ{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:()=>t.LA(1).image==="SYSTEM",ALT:()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})}},{GATE:()=>t.LA(1).image==="PUBLIC",ALT:()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})}}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:()=>t.SUBRULE(t.element)},{ALT:()=>t.SUBRULE(t.chardata)},{ALT:()=>t.SUBRULE(t.reference)},{ALT:()=>t.CONSUME(xt.CData)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.Comment)}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})}},{ALT:()=>{t.CONSUME(xt.SLASH_CLOSE)}}])}),t.RULE("reference",()=>{t.OR([{ALT:()=>t.CONSUME(xt.EntityRef)},{ALT:()=>t.CONSUME(xt.CharRef)}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:()=>t.CONSUME(xt.TEXT)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),t.RULE("misc",()=>{t.OR([{ALT:()=>t.CONSUME(xt.Comment)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(o=>PQ(n,o));if(r!==void 0)return r;n=this.LA(i),i++}}};a(sS,"Parser");var aS=sS,CQ=new aS;VD.exports={xmlParser:CQ}});var cS=ze((Wse,wD)=>{var{xmlLexer:IQ}=oS(),{xmlParser:gy}=MD();wD.exports={parse:a(function(t){let n=IQ.tokenize(t);return gy.input=n.tokens,{cst:gy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:gy.errors}},"parse"),BaseXmlCstVisitor:gy.getBaseCstVisitorConstructor()}});var Tp=ze((Zl,vp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",o="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,v=1,A=2,E=1,O=2,R=4,U=8,j=16,G=32,re=64,Z=128,he=256,De=512,D=30,Pt="...",pt=800,$e=16,fn=1,Vi=2,Sn=3,jt=1/0,Le=9007199254740991,Ai=17976931348623157e292,Ct=NaN,Dt=4294967295,rn=Dt-1,Mi=Dt>>>1,Fe=[["ary",Z],["bind",E],["bindKey",O],["curry",U],["curryRight",j],["flip",De],["partial",G],["partialRight",re],["rearg",he]],Gn="[object Arguments]",Sr="[object Array]",st="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",M="[object Error]",Ve="[object Function]",Nt="[object GeneratorFunction]",Qe="[object Map]",Vt="[object Number]",Rn="[object Null]",on="[object Object]",$t="[object Promise]",ni="[object Proxy]",tr="[object RegExp]",un="[object Set]",ui="[object String]",Bt="[object Symbol]",Ko="[object Undefined]",wi="[object WeakMap]",Af="[object WeakSet]",Ds="[object ArrayBuffer]",xr="[object DataView]",Sf="[object Float32Array]",xf="[object Float64Array]",Pf="[object Int8Array]",Vs="[object Int16Array]",k="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",se="[object Uint16Array]",Ne="[object Uint32Array]",pn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ge=/&(?:amp|lt|gt|quot|#39);/g,ve=/[&<>"']/g,xe=RegExp(ge.source),Ie=RegExp(ve.source),ot=/<%-([\s\S]+?)%>/g,Ht=/<%([\s\S]+?)%>/g,an=/<%=([\s\S]+?)%>/g,nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pd=/^\w*$/,Zy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cf=/[\\^$.*+?()[\]{}|]/g,$M=RegExp(Cf.source),ev=/^\s+/,BM=/\s/,HM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,WM=/\{\n\/\* \[wrapped with (.+)\] \*/,GM=/,? & /,KM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,XM=/[()=,{}\[\]\/\s]/,QM=/\\(\\)?/g,qM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,UP=/\w*$/,zM=/^[-+]0x[0-9a-f]+$/i,YM=/^0b[01]+$/i,JM=/^\[object .+?Constructor\]$/,ZM=/^0o[0-7]+$/i,ew=/^(?:0|[1-9]\d*)$/,tw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dd=/($^)/,nw=/['\n\r\u2028\u2029\\]/g,gd="\\ud800-\\udfff",iw="\\u0300-\\u036f",rw="\\ufe20-\\ufe2f",ow="\\u20d0-\\u20ff",jP=iw+rw+ow,$P="\\u2700-\\u27bf",BP="a-z\\xdf-\\xf6\\xf8-\\xff",aw="\\xac\\xb1\\xd7\\xf7",sw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cw="\\u2000-\\u206f",lw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",HP="A-Z\\xc0-\\xd6\\xd8-\\xde",WP="\\ufe0e\\ufe0f",GP=aw+sw+cw+lw,tv="['\u2019]",fw="["+gd+"]",KP="["+GP+"]",md="["+jP+"]",XP="\\d+",uw="["+$P+"]",QP="["+BP+"]",qP="[^"+gd+GP+XP+$P+BP+HP+"]",nv="\\ud83c[\\udffb-\\udfff]",pw="(?:"+md+"|"+nv+")",zP="[^"+gd+"]",iv="(?:\\ud83c[\\udde6-\\uddff]){2}",rv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bc="["+HP+"]",YP="\\u200d",JP="(?:"+QP+"|"+qP+")",dw="(?:"+Bc+"|"+qP+")",ZP="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",eC="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tC=pw+"?",nC="["+WP+"]?",gw="(?:"+YP+"(?:"+[zP,iv,rv].join("|")+")"+nC+tC+")*",mw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iC=nC+tC+gw,yw="(?:"+[uw,iv,rv].join("|")+")"+iC,vw="(?:"+[zP+md+"?",md,iv,rv,fw].join("|")+")",Tw=RegExp(tv,"g"),Ew=RegExp(md,"g"),ov=RegExp(nv+"(?="+nv+")|"+vw+iC,"g"),bw=RegExp([Bc+"?"+QP+"+"+ZP+"(?="+[KP,Bc,"$"].join("|")+")",dw+"+"+eC+"(?="+[KP,Bc+JP,"$"].join("|")+")",Bc+"?"+JP+"+"+ZP,Bc+"+"+eC,hw,mw,XP,yw].join("|"),"g"),Aw=RegExp("["+YP+gd+jP+WP+"]"),Sw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xw=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pw=-1,Zt={};Zt[Sf]=Zt[xf]=Zt[Pf]=Zt[Vs]=Zt[k]=Zt[$]=Zt[Q]=Zt[se]=Zt[Ne]=!0,Zt[Gn]=Zt[Sr]=Zt[Ds]=Zt[I]=Zt[xr]=Zt[S]=Zt[M]=Zt[Ve]=Zt[Qe]=Zt[Vt]=Zt[on]=Zt[tr]=Zt[un]=Zt[ui]=Zt[wi]=!1;var Qt={};Qt[Gn]=Qt[Sr]=Qt[Ds]=Qt[xr]=Qt[I]=Qt[S]=Qt[Sf]=Qt[xf]=Qt[Pf]=Qt[Vs]=Qt[k]=Qt[Qe]=Qt[Vt]=Qt[on]=Qt[tr]=Qt[un]=Qt[ui]=Qt[Bt]=Qt[$]=Qt[Q]=Qt[se]=Qt[Ne]=!0,Qt[M]=Qt[Ve]=Qt[wi]=!1;var Cw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Iw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ow={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Nw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lw=parseFloat,Fw=parseInt,rC=typeof global=="object"&&global&&global.Object===Object&&global,Rw=typeof self=="object"&&self&&self.Object===Object&&self,Kn=rC||Rw||Function("return this")(),av=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,Ms=av&&typeof vp=="object"&&vp&&!vp.nodeType&&vp,oC=Ms&&Ms.exports===av,sv=oC&&rC.process,Pr=function(){try{var V=Ms&&Ms.require&&Ms.require("util").types;return V||sv&&sv.binding&&sv.binding("util")}catch{}}(),aC=Pr&&Pr.isArrayBuffer,sC=Pr&&Pr.isDate,cC=Pr&&Pr.isMap,lC=Pr&&Pr.isRegExp,fC=Pr&&Pr.isSet,uC=Pr&&Pr.isTypedArray;function ir(V,X,W){switch(W.length){case 0:return V.call(X);case 1:return V.call(X,W[0]);case 2:return V.call(X,W[0],W[1]);case 3:return V.call(X,W[0],W[1],W[2])}return V.apply(X,W)}a(ir,"apply");function _w(V,X,W,be){for(var Ke=-1,bt=V==null?0:V.length;++Ke<bt;){var Un=V[Ke];X(be,Un,W(Un),V)}return be}a(_w,"arrayAggregator");function Cr(V,X){for(var W=-1,be=V==null?0:V.length;++W<be&&X(V[W],W,V)!==!1;);return V}a(Cr,"arrayEach");function Dw(V,X){for(var W=V==null?0:V.length;W--&&X(V[W],W,V)!==!1;);return V}a(Dw,"arrayEachRight");function pC(V,X){for(var W=-1,be=V==null?0:V.length;++W<be;)if(!X(V[W],W,V))return!1;return!0}a(pC,"arrayEvery");function Na(V,X){for(var W=-1,be=V==null?0:V.length,Ke=0,bt=[];++W<be;){var Un=V[W];X(Un,W,V)&&(bt[Ke++]=Un)}return bt}a(Na,"arrayFilter");function hd(V,X){var W=V==null?0:V.length;return!!W&&Hc(V,X,0)>-1}a(hd,"arrayIncludes");function cv(V,X,W){for(var be=-1,Ke=V==null?0:V.length;++be<Ke;)if(W(X,V[be]))return!0;return!1}a(cv,"arrayIncludesWith");function sn(V,X){for(var W=-1,be=V==null?0:V.length,Ke=Array(be);++W<be;)Ke[W]=X(V[W],W,V);return Ke}a(sn,"arrayMap");function La(V,X){for(var W=-1,be=X.length,Ke=V.length;++W<be;)V[Ke+W]=X[W];return V}a(La,"arrayPush");function lv(V,X,W,be){var Ke=-1,bt=V==null?0:V.length;for(be&&bt&&(W=V[++Ke]);++Ke<bt;)W=X(W,V[Ke],Ke,V);return W}a(lv,"arrayReduce");function Vw(V,X,W,be){var Ke=V==null?0:V.length;for(be&&Ke&&(W=V[--Ke]);Ke--;)W=X(W,V[Ke],Ke,V);return W}a(Vw,"arrayReduceRight");function fv(V,X){for(var W=-1,be=V==null?0:V.length;++W<be;)if(X(V[W],W,V))return!0;return!1}a(fv,"arraySome");var Mw=uv("length");function ww(V){return V.split("")}a(ww,"asciiToArray");function kw(V){return V.match(KM)||[]}a(kw,"asciiWords");function dC(V,X,W){var be;return W(V,function(Ke,bt,Un){if(X(Ke,bt,Un))return be=bt,!1}),be}a(dC,"baseFindKey");function yd(V,X,W,be){for(var Ke=V.length,bt=W+(be?1:-1);be?bt--:++bt<Ke;)if(X(V[bt],bt,V))return bt;return-1}a(yd,"baseFindIndex");function Hc(V,X,W){return X===X?zw(V,X,W):yd(V,gC,W)}a(Hc,"baseIndexOf");function Uw(V,X,W,be){for(var Ke=W-1,bt=V.length;++Ke<bt;)if(be(V[Ke],X))return Ke;return-1}a(Uw,"baseIndexOfWith");function gC(V){return V!==V}a(gC,"baseIsNaN");function mC(V,X){var W=V==null?0:V.length;return W?dv(V,X)/W:Ct}a(mC,"baseMean");function uv(V){return function(X){return X==null?e:X[V]}}a(uv,"baseProperty");function pv(V){return function(X){return V==null?e:V[X]}}a(pv,"basePropertyOf");function hC(V,X,W,be,Ke){return Ke(V,function(bt,Un,Wt){W=be?(be=!1,bt):X(W,bt,Un,Wt)}),W}a(hC,"baseReduce");function jw(V,X){var W=V.length;for(V.sort(X);W--;)V[W]=V[W].value;return V}a(jw,"baseSortBy");function dv(V,X){for(var W,be=-1,Ke=V.length;++be<Ke;){var bt=X(V[be]);bt!==e&&(W=W===e?bt:W+bt)}return W}a(dv,"baseSum");function gv(V,X){for(var W=-1,be=Array(V);++W<V;)be[W]=X(W);return be}a(gv,"baseTimes");function $w(V,X){return sn(X,function(W){return[W,V[W]]})}a($w,"baseToPairs");function yC(V){return V&&V.slice(0,bC(V)+1).replace(ev,"")}a(yC,"baseTrim");function rr(V){return function(X){return V(X)}}a(rr,"baseUnary");function mv(V,X){return sn(X,function(W){return V[W]})}a(mv,"baseValues");function If(V,X){return V.has(X)}a(If,"cacheHas");function vC(V,X){for(var W=-1,be=V.length;++W<be&&Hc(X,V[W],0)>-1;);return W}a(vC,"charsStartIndex");function TC(V,X){for(var W=V.length;W--&&Hc(X,V[W],0)>-1;);return W}a(TC,"charsEndIndex");function Bw(V,X){for(var W=V.length,be=0;W--;)V[W]===X&&++be;return be}a(Bw,"countHolders");var Hw=pv(Cw),Ww=pv(Iw);function Gw(V){return"\\"+Nw[V]}a(Gw,"escapeStringChar");function Kw(V,X){return V==null?e:V[X]}a(Kw,"getValue");function Wc(V){return Aw.test(V)}a(Wc,"hasUnicode");function Xw(V){return Sw.test(V)}a(Xw,"hasUnicodeWord");function Qw(V){for(var X,W=[];!(X=V.next()).done;)W.push(X.value);return W}a(Qw,"iteratorToArray");function hv(V){var X=-1,W=Array(V.size);return V.forEach(function(be,Ke){W[++X]=[Ke,be]}),W}a(hv,"mapToArray");function EC(V,X){return function(W){return V(X(W))}}a(EC,"overArg");function Fa(V,X){for(var W=-1,be=V.length,Ke=0,bt=[];++W<be;){var Un=V[W];(Un===X||Un===u)&&(V[W]=u,bt[Ke++]=W)}return bt}a(Fa,"replaceHolders");function vd(V){var X=-1,W=Array(V.size);return V.forEach(function(be){W[++X]=be}),W}a(vd,"setToArray");function qw(V){var X=-1,W=Array(V.size);return V.forEach(function(be){W[++X]=[be,be]}),W}a(qw,"setToPairs");function zw(V,X,W){for(var be=W-1,Ke=V.length;++be<Ke;)if(V[be]===X)return be;return-1}a(zw,"strictIndexOf");function Yw(V,X,W){for(var be=W+1;be--;)if(V[be]===X)return be;return be}a(Yw,"strictLastIndexOf");function Gc(V){return Wc(V)?Zw(V):Mw(V)}a(Gc,"stringSize");function Xr(V){return Wc(V)?e2(V):ww(V)}a(Xr,"stringToArray");function bC(V){for(var X=V.length;X--&&BM.test(V.charAt(X)););return X}a(bC,"trimmedEndIndex");var Jw=pv(Ow);function Zw(V){for(var X=ov.lastIndex=0;ov.test(V);)++X;return X}a(Zw,"unicodeSize");function e2(V){return V.match(ov)||[]}a(e2,"unicodeToArray");function t2(V){return V.match(bw)||[]}a(t2,"unicodeWords");var n2=a(function V(X){X=X==null?Kn:Ra.defaults(Kn.Object(),X,Ra.pick(Kn,xw));var W=X.Array,be=X.Date,Ke=X.Error,bt=X.Function,Un=X.Math,Wt=X.Object,yv=X.RegExp,i2=X.String,Ir=X.TypeError,Td=W.prototype,r2=bt.prototype,Kc=Wt.prototype,Ed=X["__core-js_shared__"],bd=r2.toString,Lt=Kc.hasOwnProperty,o2=0,AC=function(){var c=/[^.]+$/.exec(Ed&&Ed.keys&&Ed.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Ad=Kc.toString,a2=bd.call(Wt),s2=Kn._,c2=yv("^"+bd.call(Lt).replace(Cf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sd=oC?X.Buffer:e,_a=X.Symbol,xd=X.Uint8Array,SC=Sd?Sd.allocUnsafe:e,Pd=EC(Wt.getPrototypeOf,Wt),xC=Wt.create,PC=Kc.propertyIsEnumerable,Cd=Td.splice,CC=_a?_a.isConcatSpreadable:e,Of=_a?_a.iterator:e,ws=_a?_a.toStringTag:e,Id=function(){try{var c=Bs(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),l2=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,f2=be&&be.now!==Kn.Date.now&&be.now,u2=X.setTimeout!==Kn.setTimeout&&X.setTimeout,Od=Un.ceil,Nd=Un.floor,vv=Wt.getOwnPropertySymbols,p2=Sd?Sd.isBuffer:e,IC=X.isFinite,d2=Td.join,g2=EC(Wt.keys,Wt),jn=Un.max,pi=Un.min,m2=be.now,h2=X.parseInt,OC=Un.random,y2=Td.reverse,Tv=Bs(X,"DataView"),Nf=Bs(X,"Map"),Ev=Bs(X,"Promise"),Xc=Bs(X,"Set"),Lf=Bs(X,"WeakMap"),Ff=Bs(Wt,"create"),Ld=Lf&&new Lf,Qc={},T2=Hs(Tv),E2=Hs(Nf),b2=Hs(Ev),A2=Hs(Xc),S2=Hs(Lf),Fd=_a?_a.prototype:e,Rf=Fd?Fd.valueOf:e,NC=Fd?Fd.toString:e;function x(c){if(mn(c)&&!Xe(c)&&!(c instanceof ft)){if(c instanceof Or)return c;if(Lt.call(c,"__wrapped__"))return LI(c)}return new Or(c)}a(x,"lodash");var qc=function(){function c(){}return a(c,"object"),function(f){if(!dn(f))return{};if(xC)return xC(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Rd(){}a(Rd,"baseLodash");function Or(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}a(Or,"LodashWrapper"),x.templateSettings={escape:ot,evaluate:Ht,interpolate:an,variable:"",imports:{_:x}},x.prototype=Rd.prototype,x.prototype.constructor=x,Or.prototype=qc(Rd.prototype),Or.prototype.constructor=Or;function ft(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}a(ft,"LazyWrapper");function x2(){var c=new ft(this.__wrapped__);return c.__actions__=ki(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ki(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ki(this.__views__),c}a(x2,"lazyClone");function P2(){if(this.__filtered__){var c=new ft(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}a(P2,"lazyReverse");function C2(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),y=f<0,b=d?c.length:0,P=kk(0,b,this.__views__),N=P.start,F=P.end,w=F-N,q=y?F:N-1,z=this.__iteratees__,ee=z.length,de=0,Oe=pi(w,this.__takeCount__);if(!d||!y&&b==w&&Oe==w)return ZC(c,this.__actions__);var ke=[];e:for(;w--&&de<Oe;){q+=f;for(var et=-1,Ue=c[q];++et<ee;){var ct=z[et],dt=ct.iteratee,sr=ct.type,Pi=dt(Ue);if(sr==Vi)Ue=Pi;else if(!Pi){if(sr==fn)continue e;break e}}ke[de++]=Ue}return ke}a(C2,"lazyValue"),ft.prototype=qc(Rd.prototype),ft.prototype.constructor=ft;function ks(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}a(ks,"Hash");function I2(){this.__data__=Ff?Ff(null):{},this.size=0}a(I2,"hashClear");function O2(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}a(O2,"hashDelete");function N2(c){var f=this.__data__;if(Ff){var d=f[c];return d===s?e:d}return Lt.call(f,c)?f[c]:e}a(N2,"hashGet");function L2(c){var f=this.__data__;return Ff?f[c]!==e:Lt.call(f,c)}a(L2,"hashHas");function F2(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Ff&&f===e?s:f,this}a(F2,"hashSet"),ks.prototype.clear=I2,ks.prototype.delete=O2,ks.prototype.get=N2,ks.prototype.has=L2,ks.prototype.set=F2;function Xo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}a(Xo,"ListCache");function R2(){this.__data__=[],this.size=0}a(R2,"listCacheClear");function _2(c){var f=this.__data__,d=_d(f,c);if(d<0)return!1;var y=f.length-1;return d==y?f.pop():Cd.call(f,d,1),--this.size,!0}a(_2,"listCacheDelete");function D2(c){var f=this.__data__,d=_d(f,c);return d<0?e:f[d][1]}a(D2,"listCacheGet");function V2(c){return _d(this.__data__,c)>-1}a(V2,"listCacheHas");function M2(c,f){var d=this.__data__,y=_d(d,c);return y<0?(++this.size,d.push([c,f])):d[y][1]=f,this}a(M2,"listCacheSet"),Xo.prototype.clear=R2,Xo.prototype.delete=_2,Xo.prototype.get=D2,Xo.prototype.has=V2,Xo.prototype.set=M2;function Qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}a(Qo,"MapCache");function w2(){this.size=0,this.__data__={hash:new ks,map:new(Nf||Xo),string:new ks}}a(w2,"mapCacheClear");function k2(c){var f=Gd(this,c).delete(c);return this.size-=f?1:0,f}a(k2,"mapCacheDelete");function U2(c){return Gd(this,c).get(c)}a(U2,"mapCacheGet");function j2(c){return Gd(this,c).has(c)}a(j2,"mapCacheHas");function $2(c,f){var d=Gd(this,c),y=d.size;return d.set(c,f),this.size+=d.size==y?0:1,this}a($2,"mapCacheSet"),Qo.prototype.clear=w2,Qo.prototype.delete=k2,Qo.prototype.get=U2,Qo.prototype.has=j2,Qo.prototype.set=$2;function Us(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Qo;++f<d;)this.add(c[f])}a(Us,"SetCache");function B2(c){return this.__data__.set(c,s),this}a(B2,"setCacheAdd");function H2(c){return this.__data__.has(c)}a(H2,"setCacheHas"),Us.prototype.add=Us.prototype.push=B2,Us.prototype.has=H2;function Qr(c){var f=this.__data__=new Xo(c);this.size=f.size}a(Qr,"Stack");function W2(){this.__data__=new Xo,this.size=0}a(W2,"stackClear");function G2(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}a(G2,"stackDelete");function K2(c){return this.__data__.get(c)}a(K2,"stackGet");function X2(c){return this.__data__.has(c)}a(X2,"stackHas");function Q2(c,f){var d=this.__data__;if(d instanceof Xo){var y=d.__data__;if(!Nf||y.length<n-1)return y.push([c,f]),this.size=++d.size,this;d=this.__data__=new Qo(y)}return d.set(c,f),this.size=d.size,this}a(Q2,"stackSet"),Qr.prototype.clear=W2,Qr.prototype.delete=G2,Qr.prototype.get=K2,Qr.prototype.has=X2,Qr.prototype.set=Q2;function LC(c,f){var d=Xe(c),y=!d&&Ws(c),b=!d&&!y&&ka(c),P=!d&&!y&&!b&&Zc(c),N=d||y||b||P,F=N?gv(c.length,i2):[],w=F.length;for(var q in c)(f||Lt.call(c,q))&&!(N&&(q=="length"||b&&(q=="offset"||q=="parent")||P&&(q=="buffer"||q=="byteLength"||q=="byteOffset")||Jo(q,w)))&&F.push(q);return F}a(LC,"arrayLikeKeys");function FC(c){var f=c.length;return f?c[Fv(0,f-1)]:e}a(FC,"arraySample");function q2(c,f){return Kd(ki(c),js(f,0,c.length))}a(q2,"arraySampleSize");function z2(c){return Kd(ki(c))}a(z2,"arrayShuffle");function bv(c,f,d){(d!==e&&!qr(c[f],d)||d===e&&!(f in c))&&qo(c,f,d)}a(bv,"assignMergeValue");function _f(c,f,d){var y=c[f];(!(Lt.call(c,f)&&qr(y,d))||d===e&&!(f in c))&&qo(c,f,d)}a(_f,"assignValue");function _d(c,f){for(var d=c.length;d--;)if(qr(c[d][0],f))return d;return-1}a(_d,"assocIndexOf");function Y2(c,f,d,y){return Da(c,function(b,P,N){f(y,b,d(b),N)}),y}a(Y2,"baseAggregator");function RC(c,f){return c&&Eo(f,Xn(f),c)}a(RC,"baseAssign");function J2(c,f){return c&&Eo(f,ji(f),c)}a(J2,"baseAssignIn");function qo(c,f,d){f=="__proto__"&&Id?Id(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}a(qo,"baseAssignValue");function Av(c,f){for(var d=-1,y=f.length,b=W(y),P=c==null;++d<y;)b[d]=P?e:nT(c,f[d]);return b}a(Av,"baseAt");function js(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}a(js,"baseClamp");function Nr(c,f,d,y,b,P){var N,F=f&p,w=f&g,q=f&m;if(d&&(N=b?d(c,y,b,P):d(c)),N!==e)return N;if(!dn(c))return c;var z=Xe(c);if(z){if(N=jk(c),!F)return ki(c,N)}else{var ee=di(c),de=ee==Ve||ee==Nt;if(ka(c))return nI(c,F);if(ee==on||ee==Gn||de&&!b){if(N=w||de?{}:bI(c),!F)return w?Nk(c,J2(N,c)):Ok(c,RC(N,c))}else{if(!Qt[ee])return b?c:{};N=$k(c,ee,F)}}P||(P=new Qr);var Oe=P.get(c);if(Oe)return Oe;P.set(c,N),zI(c)?c.forEach(function(Ue){N.add(Nr(Ue,f,d,Ue,c,P))}):QI(c)&&c.forEach(function(Ue,ct){N.set(ct,Nr(Ue,f,d,ct,c,P))});var ke=q?w?Bv:$v:w?ji:Xn,et=z?e:ke(c);return Cr(et||c,function(Ue,ct){et&&(ct=Ue,Ue=c[ct]),_f(N,ct,Nr(Ue,f,d,ct,c,P))}),N}a(Nr,"baseClone");function Z2(c){var f=Xn(c);return function(d){return _C(d,c,f)}}a(Z2,"baseConforms");function _C(c,f,d){var y=d.length;if(c==null)return!y;for(c=Wt(c);y--;){var b=d[y],P=f[b],N=c[b];if(N===e&&!(b in c)||!P(N))return!1}return!0}a(_C,"baseConformsTo");function DC(c,f,d){if(typeof c!="function")throw new Ir(r);return jf(function(){c.apply(e,d)},f)}a(DC,"baseDelay");function Df(c,f,d,y){var b=-1,P=hd,N=!0,F=c.length,w=[],q=f.length;if(!F)return w;d&&(f=sn(f,rr(d))),y?(P=cv,N=!1):f.length>=n&&(P=If,N=!1,f=new Us(f));e:for(;++b<F;){var z=c[b],ee=d==null?z:d(z);if(z=y||z!==0?z:0,N&&ee===ee){for(var de=q;de--;)if(f[de]===ee)continue e;w.push(z)}else P(f,ee,y)||w.push(z)}return w}a(Df,"baseDifference");var Da=sI(To),VC=sI(xv,!0);function ek(c,f){var d=!0;return Da(c,function(y,b,P){return d=!!f(y,b,P),d}),d}a(ek,"baseEvery");function Dd(c,f,d){for(var y=-1,b=c.length;++y<b;){var P=c[y],N=f(P);if(N!=null&&(F===e?N===N&&!ar(N):d(N,F)))var F=N,w=P}return w}a(Dd,"baseExtremum");function tk(c,f,d,y){var b=c.length;for(d=Ye(d),d<0&&(d=-d>b?0:b+d),y=y===e||y>b?b:Ye(y),y<0&&(y+=b),y=d>y?0:JI(y);d<y;)c[d++]=f;return c}a(tk,"baseFill");function MC(c,f){var d=[];return Da(c,function(y,b,P){f(y,b,P)&&d.push(y)}),d}a(MC,"baseFilter");function ii(c,f,d,y,b){var P=-1,N=c.length;for(d||(d=Hk),b||(b=[]);++P<N;){var F=c[P];f>0&&d(F)?f>1?ii(F,f-1,d,y,b):La(b,F):y||(b[b.length]=F)}return b}a(ii,"baseFlatten");var Sv=cI(),wC=cI(!0);function To(c,f){return c&&Sv(c,f,Xn)}a(To,"baseForOwn");function xv(c,f){return c&&wC(c,f,Xn)}a(xv,"baseForOwnRight");function Vd(c,f){return Na(f,function(d){return Zo(c[d])})}a(Vd,"baseFunctions");function $s(c,f){f=Ma(f,c);for(var d=0,y=f.length;c!=null&&d<y;)c=c[bo(f[d++])];return d&&d==y?c:e}a($s,"baseGet");function kC(c,f,d){var y=f(c);return Xe(c)?y:La(y,d(c))}a(kC,"baseGetAllKeys");function Si(c){return c==null?c===e?Ko:Rn:ws&&ws in Wt(c)?wk(c):zk(c)}a(Si,"baseGetTag");function Pv(c,f){return c>f}a(Pv,"baseGt");function nk(c,f){return c!=null&&Lt.call(c,f)}a(nk,"baseHas");function ik(c,f){return c!=null&&f in Wt(c)}a(ik,"baseHasIn");function rk(c,f,d){return c>=pi(f,d)&&c<jn(f,d)}a(rk,"baseInRange");function Cv(c,f,d){for(var y=d?cv:hd,b=c[0].length,P=c.length,N=P,F=W(P),w=1/0,q=[];N--;){var z=c[N];N&&f&&(z=sn(z,rr(f))),w=pi(z.length,w),F[N]=!d&&(f||b>=120&&z.length>=120)?new Us(N&&z):e}z=c[0];var ee=-1,de=F[0];e:for(;++ee<b&&q.length<w;){var Oe=z[ee],ke=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(de?If(de,ke):y(q,ke,d))){for(N=P;--N;){var et=F[N];if(!(et?If(et,ke):y(c[N],ke,d)))continue e}de&&de.push(ke),q.push(Oe)}}return q}a(Cv,"baseIntersection");function ok(c,f,d,y){return To(c,function(b,P,N){f(y,d(b),P,N)}),y}a(ok,"baseInverter");function Vf(c,f,d){f=Ma(f,c),c=PI(c,f);var y=c==null?c:c[bo(Fr(f))];return y==null?e:ir(y,c,d)}a(Vf,"baseInvoke");function UC(c){return mn(c)&&Si(c)==Gn}a(UC,"baseIsArguments");function ak(c){return mn(c)&&Si(c)==Ds}a(ak,"baseIsArrayBuffer");function sk(c){return mn(c)&&Si(c)==S}a(sk,"baseIsDate");function Mf(c,f,d,y,b){return c===f?!0:c==null||f==null||!mn(c)&&!mn(f)?c!==c&&f!==f:ck(c,f,d,y,Mf,b)}a(Mf,"baseIsEqual");function ck(c,f,d,y,b,P){var N=Xe(c),F=Xe(f),w=N?Sr:di(c),q=F?Sr:di(f);w=w==Gn?on:w,q=q==Gn?on:q;var z=w==on,ee=q==on,de=w==q;if(de&&ka(c)){if(!ka(f))return!1;N=!0,z=!1}if(de&&!z)return P||(P=new Qr),N||Zc(c)?vI(c,f,d,y,b,P):Vk(c,f,w,d,y,b,P);if(!(d&v)){var Oe=z&&Lt.call(c,"__wrapped__"),ke=ee&&Lt.call(f,"__wrapped__");if(Oe||ke){var et=Oe?c.value():c,Ue=ke?f.value():f;return P||(P=new Qr),b(et,Ue,d,y,P)}}return de?(P||(P=new Qr),Mk(c,f,d,y,b,P)):!1}a(ck,"baseIsEqualDeep");function lk(c){return mn(c)&&di(c)==Qe}a(lk,"baseIsMap");function Iv(c,f,d,y){var b=d.length,P=b,N=!y;if(c==null)return!P;for(c=Wt(c);b--;){var F=d[b];if(N&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++b<P;){F=d[b];var w=F[0],q=c[w],z=F[1];if(N&&F[2]){if(q===e&&!(w in c))return!1}else{var ee=new Qr;if(y)var de=y(q,z,w,c,f,ee);if(!(de===e?Mf(z,q,v|A,y,ee):de))return!1}}return!0}a(Iv,"baseIsMatch");function jC(c){if(!dn(c)||Gk(c))return!1;var f=Zo(c)?c2:JM;return f.test(Hs(c))}a(jC,"baseIsNative");function fk(c){return mn(c)&&Si(c)==tr}a(fk,"baseIsRegExp");function uk(c){return mn(c)&&di(c)==un}a(uk,"baseIsSet");function pk(c){return mn(c)&&Jd(c.length)&&!!Zt[Si(c)]}a(pk,"baseIsTypedArray");function $C(c){return typeof c=="function"?c:c==null?$i:typeof c=="object"?Xe(c)?WC(c[0],c[1]):HC(c):lO(c)}a($C,"baseIteratee");function Ov(c){if(!Uf(c))return g2(c);var f=[];for(var d in Wt(c))Lt.call(c,d)&&d!="constructor"&&f.push(d);return f}a(Ov,"baseKeys");function dk(c){if(!dn(c))return qk(c);var f=Uf(c),d=[];for(var y in c)y=="constructor"&&(f||!Lt.call(c,y))||d.push(y);return d}a(dk,"baseKeysIn");function Nv(c,f){return c<f}a(Nv,"baseLt");function BC(c,f){var d=-1,y=Ui(c)?W(c.length):[];return Da(c,function(b,P,N){y[++d]=f(b,P,N)}),y}a(BC,"baseMap");function HC(c){var f=Wv(c);return f.length==1&&f[0][2]?SI(f[0][0],f[0][1]):function(d){return d===c||Iv(d,c,f)}}a(HC,"baseMatches");function WC(c,f){return Kv(c)&&AI(f)?SI(bo(c),f):function(d){var y=nT(d,c);return y===e&&y===f?iT(d,c):Mf(f,y,v|A)}}a(WC,"baseMatchesProperty");function Md(c,f,d,y,b){c!==f&&Sv(f,function(P,N){if(b||(b=new Qr),dn(P))gk(c,f,N,d,Md,y,b);else{var F=y?y(Qv(c,N),P,N+"",c,f,b):e;F===e&&(F=P),bv(c,N,F)}},ji)}a(Md,"baseMerge");function gk(c,f,d,y,b,P,N){var F=Qv(c,d),w=Qv(f,d),q=N.get(w);if(q){bv(c,d,q);return}var z=P?P(F,w,d+"",c,f,N):e,ee=z===e;if(ee){var de=Xe(w),Oe=!de&&ka(w),ke=!de&&!Oe&&Zc(w);z=w,de||Oe||ke?Xe(F)?z=F:Pn(F)?z=ki(F):Oe?(ee=!1,z=nI(w,!0)):ke?(ee=!1,z=iI(w,!0)):z=[]:$f(w)||Ws(w)?(z=F,Ws(F)?z=ZI(F):(!dn(F)||Zo(F))&&(z=bI(w))):ee=!1}ee&&(N.set(w,z),b(z,w,y,P,N),N.delete(w)),bv(c,d,z)}a(gk,"baseMergeDeep");function GC(c,f){var d=c.length;if(d)return f+=f<0?d:0,Jo(f,d)?c[f]:e}a(GC,"baseNth");function KC(c,f,d){f.length?f=sn(f,function(P){return Xe(P)?function(N){return $s(N,P.length===1?P[0]:P)}:P}):f=[$i];var y=-1;f=sn(f,rr(Me()));var b=BC(c,function(P,N,F){var w=sn(f,function(q){return q(P)});return{criteria:w,index:++y,value:P}});return jw(b,function(P,N){return Ik(P,N,d)})}a(KC,"baseOrderBy");function mk(c,f){return XC(c,f,function(d,y){return iT(c,y)})}a(mk,"basePick");function XC(c,f,d){for(var y=-1,b=f.length,P={};++y<b;){var N=f[y],F=$s(c,N);d(F,N)&&wf(P,Ma(N,c),F)}return P}a(XC,"basePickBy");function hk(c){return function(f){return $s(f,c)}}a(hk,"basePropertyDeep");function Lv(c,f,d,y){var b=y?Uw:Hc,P=-1,N=f.length,F=c;for(c===f&&(f=ki(f)),d&&(F=sn(c,rr(d)));++P<N;)for(var w=0,q=f[P],z=d?d(q):q;(w=b(F,z,w,y))>-1;)F!==c&&Cd.call(F,w,1),Cd.call(c,w,1);return c}a(Lv,"basePullAll");function QC(c,f){for(var d=c?f.length:0,y=d-1;d--;){var b=f[d];if(d==y||b!==P){var P=b;Jo(b)?Cd.call(c,b,1):Dv(c,b)}}return c}a(QC,"basePullAt");function Fv(c,f){return c+Nd(OC()*(f-c+1))}a(Fv,"baseRandom");function yk(c,f,d,y){for(var b=-1,P=jn(Od((f-c)/(d||1)),0),N=W(P);P--;)N[y?P:++b]=c,c+=d;return N}a(yk,"baseRange");function Rv(c,f){var d="";if(!c||f<1||f>Le)return d;do f%2&&(d+=c),f=Nd(f/2),f&&(c+=c);while(f);return d}a(Rv,"baseRepeat");function it(c,f){return qv(xI(c,f,$i),c+"")}a(it,"baseRest");function vk(c){return FC(el(c))}a(vk,"baseSample");function Tk(c,f){var d=el(c);return Kd(d,js(f,0,d.length))}a(Tk,"baseSampleSize");function wf(c,f,d,y){if(!dn(c))return c;f=Ma(f,c);for(var b=-1,P=f.length,N=P-1,F=c;F!=null&&++b<P;){var w=bo(f[b]),q=d;if(w==="__proto__"||w==="constructor"||w==="prototype")return c;if(b!=N){var z=F[w];q=y?y(z,w,F):e,q===e&&(q=dn(z)?z:Jo(f[b+1])?[]:{})}_f(F,w,q),F=F[w]}return c}a(wf,"baseSet");var qC=Ld?function(c,f){return Ld.set(c,f),c}:$i,Ek=Id?function(c,f){return Id(c,"toString",{configurable:!0,enumerable:!1,value:oT(f),writable:!0})}:$i;function bk(c){return Kd(el(c))}a(bk,"baseShuffle");function Lr(c,f,d){var y=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var P=W(b);++y<b;)P[y]=c[y+f];return P}a(Lr,"baseSlice");function Ak(c,f){var d;return Da(c,function(y,b,P){return d=f(y,b,P),!d}),!!d}a(Ak,"baseSome");function wd(c,f,d){var y=0,b=c==null?y:c.length;if(typeof f=="number"&&f===f&&b<=Mi){for(;y<b;){var P=y+b>>>1,N=c[P];N!==null&&!ar(N)&&(d?N<=f:N<f)?y=P+1:b=P}return b}return _v(c,f,$i,d)}a(wd,"baseSortedIndex");function _v(c,f,d,y){var b=0,P=c==null?0:c.length;if(P===0)return 0;f=d(f);for(var N=f!==f,F=f===null,w=ar(f),q=f===e;b<P;){var z=Nd((b+P)/2),ee=d(c[z]),de=ee!==e,Oe=ee===null,ke=ee===ee,et=ar(ee);if(N)var Ue=y||ke;else q?Ue=ke&&(y||de):F?Ue=ke&&de&&(y||!Oe):w?Ue=ke&&de&&!Oe&&(y||!et):Oe||et?Ue=!1:Ue=y?ee<=f:ee<f;Ue?b=z+1:P=z}return pi(P,rn)}a(_v,"baseSortedIndexBy");function zC(c,f){for(var d=-1,y=c.length,b=0,P=[];++d<y;){var N=c[d],F=f?f(N):N;if(!d||!qr(F,w)){var w=F;P[b++]=N===0?0:N}}return P}a(zC,"baseSortedUniq");function YC(c){return typeof c=="number"?c:ar(c)?Ct:+c}a(YC,"baseToNumber");function or(c){if(typeof c=="string")return c;if(Xe(c))return sn(c,or)+"";if(ar(c))return NC?NC.call(c):"";var f=c+"";return f=="0"&&1/c==-jt?"-0":f}a(or,"baseToString");function Va(c,f,d){var y=-1,b=hd,P=c.length,N=!0,F=[],w=F;if(d)N=!1,b=cv;else if(P>=n){var q=f?null:_k(c);if(q)return vd(q);N=!1,b=If,w=new Us}else w=f?[]:F;e:for(;++y<P;){var z=c[y],ee=f?f(z):z;if(z=d||z!==0?z:0,N&&ee===ee){for(var de=w.length;de--;)if(w[de]===ee)continue e;f&&w.push(ee),F.push(z)}else b(w,ee,d)||(w!==F&&w.push(ee),F.push(z))}return F}a(Va,"baseUniq");function Dv(c,f){return f=Ma(f,c),c=PI(c,f),c==null||delete c[bo(Fr(f))]}a(Dv,"baseUnset");function JC(c,f,d,y){return wf(c,f,d($s(c,f)),y)}a(JC,"baseUpdate");function kd(c,f,d,y){for(var b=c.length,P=y?b:-1;(y?P--:++P<b)&&f(c[P],P,c););return d?Lr(c,y?0:P,y?P+1:b):Lr(c,y?P+1:0,y?b:P)}a(kd,"baseWhile");function ZC(c,f){var d=c;return d instanceof ft&&(d=d.value()),lv(f,function(y,b){return b.func.apply(b.thisArg,La([y],b.args))},d)}a(ZC,"baseWrapperValue");function Vv(c,f,d){var y=c.length;if(y<2)return y?Va(c[0]):[];for(var b=-1,P=W(y);++b<y;)for(var N=c[b],F=-1;++F<y;)F!=b&&(P[b]=Df(P[b]||N,c[F],f,d));return Va(ii(P,1),f,d)}a(Vv,"baseXor");function eI(c,f,d){for(var y=-1,b=c.length,P=f.length,N={};++y<b;){var F=y<P?f[y]:e;d(N,c[y],F)}return N}a(eI,"baseZipObject");function Mv(c){return Pn(c)?c:[]}a(Mv,"castArrayLikeObject");function wv(c){return typeof c=="function"?c:$i}a(wv,"castFunction");function Ma(c,f){return Xe(c)?c:Kv(c,f)?[c]:NI(It(c))}a(Ma,"castPath");var Sk=it;function wa(c,f,d){var y=c.length;return d=d===e?y:d,!f&&d>=y?c:Lr(c,f,d)}a(wa,"castSlice");var tI=l2||function(c){return Kn.clearTimeout(c)};function nI(c,f){if(f)return c.slice();var d=c.length,y=SC?SC(d):new c.constructor(d);return c.copy(y),y}a(nI,"cloneBuffer");function kv(c){var f=new c.constructor(c.byteLength);return new xd(f).set(new xd(c)),f}a(kv,"cloneArrayBuffer");function xk(c,f){var d=f?kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}a(xk,"cloneDataView");function Pk(c){var f=new c.constructor(c.source,UP.exec(c));return f.lastIndex=c.lastIndex,f}a(Pk,"cloneRegExp");function Ck(c){return Rf?Wt(Rf.call(c)):{}}a(Ck,"cloneSymbol");function iI(c,f){var d=f?kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}a(iI,"cloneTypedArray");function rI(c,f){if(c!==f){var d=c!==e,y=c===null,b=c===c,P=ar(c),N=f!==e,F=f===null,w=f===f,q=ar(f);if(!F&&!q&&!P&&c>f||P&&N&&w&&!F&&!q||y&&N&&w||!d&&w||!b)return 1;if(!y&&!P&&!q&&c<f||q&&d&&b&&!y&&!P||F&&d&&b||!N&&b||!w)return-1}return 0}a(rI,"compareAscending");function Ik(c,f,d){for(var y=-1,b=c.criteria,P=f.criteria,N=b.length,F=d.length;++y<N;){var w=rI(b[y],P[y]);if(w){if(y>=F)return w;var q=d[y];return w*(q=="desc"?-1:1)}}return c.index-f.index}a(Ik,"compareMultiple");function oI(c,f,d,y){for(var b=-1,P=c.length,N=d.length,F=-1,w=f.length,q=jn(P-N,0),z=W(w+q),ee=!y;++F<w;)z[F]=f[F];for(;++b<N;)(ee||b<P)&&(z[d[b]]=c[b]);for(;q--;)z[F++]=c[b++];return z}a(oI,"composeArgs");function aI(c,f,d,y){for(var b=-1,P=c.length,N=-1,F=d.length,w=-1,q=f.length,z=jn(P-F,0),ee=W(z+q),de=!y;++b<z;)ee[b]=c[b];for(var Oe=b;++w<q;)ee[Oe+w]=f[w];for(;++N<F;)(de||b<P)&&(ee[Oe+d[N]]=c[b++]);return ee}a(aI,"composeArgsRight");function ki(c,f){var d=-1,y=c.length;for(f||(f=W(y));++d<y;)f[d]=c[d];return f}a(ki,"copyArray");function Eo(c,f,d,y){var b=!d;d||(d={});for(var P=-1,N=f.length;++P<N;){var F=f[P],w=y?y(d[F],c[F],F,d,c):e;w===e&&(w=c[F]),b?qo(d,F,w):_f(d,F,w)}return d}a(Eo,"copyObject");function Ok(c,f){return Eo(c,Gv(c),f)}a(Ok,"copySymbols");function Nk(c,f){return Eo(c,TI(c),f)}a(Nk,"copySymbolsIn");function Ud(c,f){return function(d,y){var b=Xe(d)?_w:Y2,P=f?f():{};return b(d,c,Me(y,2),P)}}a(Ud,"createAggregator");function zc(c){return it(function(f,d){var y=-1,b=d.length,P=b>1?d[b-1]:e,N=b>2?d[2]:e;for(P=c.length>3&&typeof P=="function"?(b--,P):e,N&&xi(d[0],d[1],N)&&(P=b<3?e:P,b=1),f=Wt(f);++y<b;){var F=d[y];F&&c(f,F,y,P)}return f})}a(zc,"createAssigner");function sI(c,f){return function(d,y){if(d==null)return d;if(!Ui(d))return c(d,y);for(var b=d.length,P=f?b:-1,N=Wt(d);(f?P--:++P<b)&&y(N[P],P,N)!==!1;);return d}}a(sI,"createBaseEach");function cI(c){return function(f,d,y){for(var b=-1,P=Wt(f),N=y(f),F=N.length;F--;){var w=N[c?F:++b];if(d(P[w],w,P)===!1)break}return f}}a(cI,"createBaseFor");function Lk(c,f,d){var y=f&E,b=kf(c);function P(){var N=this&&this!==Kn&&this instanceof P?b:c;return N.apply(y?d:this,arguments)}return a(P,"wrapper"),P}a(Lk,"createBind");function lI(c){return function(f){f=It(f);var d=Wc(f)?Xr(f):e,y=d?d[0]:f.charAt(0),b=d?wa(d,1).join(""):f.slice(1);return y[c]()+b}}a(lI,"createCaseFirst");function Yc(c){return function(f){return lv(sO(aO(f).replace(Tw,"")),c,"")}}a(Yc,"createCompounder");function kf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=qc(c.prototype),y=c.apply(d,f);return dn(y)?y:d}}a(kf,"createCtor");function Fk(c,f,d){var y=kf(c);function b(){for(var P=arguments.length,N=W(P),F=P,w=Jc(b);F--;)N[F]=arguments[F];var q=P<3&&N[0]!==w&&N[P-1]!==w?[]:Fa(N,w);if(P-=q.length,P<d)return gI(c,f,jd,b.placeholder,e,N,q,e,e,d-P);var z=this&&this!==Kn&&this instanceof b?y:c;return ir(z,this,N)}return a(b,"wrapper"),b}a(Fk,"createCurry");function fI(c){return function(f,d,y){var b=Wt(f);if(!Ui(f)){var P=Me(d,3);f=Xn(f),d=a(function(F){return P(b[F],F,b)},"predicate")}var N=c(f,d,y);return N>-1?b[P?f[N]:N]:e}}a(fI,"createFind");function uI(c){return Yo(function(f){var d=f.length,y=d,b=Or.prototype.thru;for(c&&f.reverse();y--;){var P=f[y];if(typeof P!="function")throw new Ir(r);if(b&&!N&&Wd(P)=="wrapper")var N=new Or([],!0)}for(y=N?y:d;++y<d;){P=f[y];var F=Wd(P),w=F=="wrapper"?Hv(P):e;w&&Xv(w[0])&&w[1]==(Z|U|G|he)&&!w[4].length&&w[9]==1?N=N[Wd(w[0])].apply(N,w[3]):N=P.length==1&&Xv(P)?N[F]():N.thru(P)}return function(){var q=arguments,z=q[0];if(N&&q.length==1&&Xe(z))return N.plant(z).value();for(var ee=0,de=d?f[ee].apply(this,q):z;++ee<d;)de=f[ee].call(this,de);return de}})}a(uI,"createFlow");function jd(c,f,d,y,b,P,N,F,w,q){var z=f&Z,ee=f&E,de=f&O,Oe=f&(U|j),ke=f&De,et=de?e:kf(c);function Ue(){for(var ct=arguments.length,dt=W(ct),sr=ct;sr--;)dt[sr]=arguments[sr];if(Oe)var Pi=Jc(Ue),cr=Bw(dt,Pi);if(y&&(dt=oI(dt,y,b,Oe)),P&&(dt=aI(dt,P,N,Oe)),ct-=cr,Oe&&ct<q){var Cn=Fa(dt,Pi);return gI(c,f,jd,Ue.placeholder,d,dt,Cn,F,w,q-ct)}var zr=ee?d:this,ta=de?zr[c]:c;return ct=dt.length,F?dt=Yk(dt,F):ke&&ct>1&&dt.reverse(),z&&w<ct&&(dt.length=w),this&&this!==Kn&&this instanceof Ue&&(ta=et||kf(ta)),ta.apply(zr,dt)}return a(Ue,"wrapper"),Ue}a(jd,"createHybrid");function pI(c,f){return function(d,y){return ok(d,c,f(y),{})}}a(pI,"createInverter");function $d(c,f){return function(d,y){var b;if(d===e&&y===e)return f;if(d!==e&&(b=d),y!==e){if(b===e)return y;typeof d=="string"||typeof y=="string"?(d=or(d),y=or(y)):(d=YC(d),y=YC(y)),b=c(d,y)}return b}}a($d,"createMathOperation");function Uv(c){return Yo(function(f){return f=sn(f,rr(Me())),it(function(d){var y=this;return c(f,function(b){return ir(b,y,d)})})})}a(Uv,"createOver");function Bd(c,f){f=f===e?" ":or(f);var d=f.length;if(d<2)return d?Rv(f,c):f;var y=Rv(f,Od(c/Gc(f)));return Wc(f)?wa(Xr(y),0,c).join(""):y.slice(0,c)}a(Bd,"createPadding");function Rk(c,f,d,y){var b=f&E,P=kf(c);function N(){for(var F=-1,w=arguments.length,q=-1,z=y.length,ee=W(z+w),de=this&&this!==Kn&&this instanceof N?P:c;++q<z;)ee[q]=y[q];for(;w--;)ee[q++]=arguments[++F];return ir(de,b?d:this,ee)}return a(N,"wrapper"),N}a(Rk,"createPartial");function dI(c){return function(f,d,y){return y&&typeof y!="number"&&xi(f,d,y)&&(d=y=e),f=ea(f),d===e?(d=f,f=0):d=ea(d),y=y===e?f<d?1:-1:ea(y),yk(f,d,y,c)}}a(dI,"createRange");function Hd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Rr(f),d=Rr(d)),c(f,d)}}a(Hd,"createRelationalOperation");function gI(c,f,d,y,b,P,N,F,w,q){var z=f&U,ee=z?N:e,de=z?e:N,Oe=z?P:e,ke=z?e:P;f|=z?G:re,f&=~(z?re:G),f&R||(f&=~(E|O));var et=[c,f,b,Oe,ee,ke,de,F,w,q],Ue=d.apply(e,et);return Xv(c)&&CI(Ue,et),Ue.placeholder=y,II(Ue,c,f)}a(gI,"createRecurry");function jv(c){var f=Un[c];return function(d,y){if(d=Rr(d),y=y==null?0:pi(Ye(y),292),y&&IC(d)){var b=(It(d)+"e").split("e"),P=f(b[0]+"e"+(+b[1]+y));return b=(It(P)+"e").split("e"),+(b[0]+"e"+(+b[1]-y))}return f(d)}}a(jv,"createRound");var _k=Xc&&1/vd(new Xc([,-0]))[1]==jt?function(c){return new Xc(c)}:cT;function mI(c){return function(f){var d=di(f);return d==Qe?hv(f):d==un?qw(f):$w(f,c(f))}}a(mI,"createToPairs");function zo(c,f,d,y,b,P,N,F){var w=f&O;if(!w&&typeof c!="function")throw new Ir(r);var q=y?y.length:0;if(q||(f&=~(G|re),y=b=e),N=N===e?N:jn(Ye(N),0),F=F===e?F:Ye(F),q-=b?b.length:0,f&re){var z=y,ee=b;y=b=e}var de=w?e:Hv(c),Oe=[c,f,d,y,b,z,ee,P,N,F];if(de&&Qk(Oe,de),c=Oe[0],f=Oe[1],d=Oe[2],y=Oe[3],b=Oe[4],F=Oe[9]=Oe[9]===e?w?0:c.length:jn(Oe[9]-q,0),!F&&f&(U|j)&&(f&=~(U|j)),!f||f==E)var ke=Lk(c,f,d);else f==U||f==j?ke=Fk(c,f,F):(f==G||f==(E|G))&&!b.length?ke=Rk(c,f,d,y):ke=jd.apply(e,Oe);var et=de?qC:CI;return II(et(ke,Oe),c,f)}a(zo,"createWrap");function hI(c,f,d,y){return c===e||qr(c,Kc[d])&&!Lt.call(y,d)?f:c}a(hI,"customDefaultsAssignIn");function yI(c,f,d,y,b,P){return dn(c)&&dn(f)&&(P.set(f,c),Md(c,f,e,yI,P),P.delete(f)),c}a(yI,"customDefaultsMerge");function Dk(c){return $f(c)?e:c}a(Dk,"customOmitClone");function vI(c,f,d,y,b,P){var N=d&v,F=c.length,w=f.length;if(F!=w&&!(N&&w>F))return!1;var q=P.get(c),z=P.get(f);if(q&&z)return q==f&&z==c;var ee=-1,de=!0,Oe=d&A?new Us:e;for(P.set(c,f),P.set(f,c);++ee<F;){var ke=c[ee],et=f[ee];if(y)var Ue=N?y(et,ke,ee,f,c,P):y(ke,et,ee,c,f,P);if(Ue!==e){if(Ue)continue;de=!1;break}if(Oe){if(!fv(f,function(ct,dt){if(!If(Oe,dt)&&(ke===ct||b(ke,ct,d,y,P)))return Oe.push(dt)})){de=!1;break}}else if(!(ke===et||b(ke,et,d,y,P))){de=!1;break}}return P.delete(c),P.delete(f),de}a(vI,"equalArrays");function Vk(c,f,d,y,b,P,N){switch(d){case xr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ds:return!(c.byteLength!=f.byteLength||!P(new xd(c),new xd(f)));case I:case S:case Vt:return qr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case tr:case ui:return c==f+"";case Qe:var F=hv;case un:var w=y&v;if(F||(F=vd),c.size!=f.size&&!w)return!1;var q=N.get(c);if(q)return q==f;y|=A,N.set(c,f);var z=vI(F(c),F(f),y,b,P,N);return N.delete(c),z;case Bt:if(Rf)return Rf.call(c)==Rf.call(f)}return!1}a(Vk,"equalByTag");function Mk(c,f,d,y,b,P){var N=d&v,F=$v(c),w=F.length,q=$v(f),z=q.length;if(w!=z&&!N)return!1;for(var ee=w;ee--;){var de=F[ee];if(!(N?de in f:Lt.call(f,de)))return!1}var Oe=P.get(c),ke=P.get(f);if(Oe&&ke)return Oe==f&&ke==c;var et=!0;P.set(c,f),P.set(f,c);for(var Ue=N;++ee<w;){de=F[ee];var ct=c[de],dt=f[de];if(y)var sr=N?y(dt,ct,de,f,c,P):y(ct,dt,de,c,f,P);if(!(sr===e?ct===dt||b(ct,dt,d,y,P):sr)){et=!1;break}Ue||(Ue=de=="constructor")}if(et&&!Ue){var Pi=c.constructor,cr=f.constructor;Pi!=cr&&"constructor"in c&&"constructor"in f&&!(typeof Pi=="function"&&Pi instanceof Pi&&typeof cr=="function"&&cr instanceof cr)&&(et=!1)}return P.delete(c),P.delete(f),et}a(Mk,"equalObjects");function Yo(c){return qv(xI(c,e,_I),c+"")}a(Yo,"flatRest");function $v(c){return kC(c,Xn,Gv)}a($v,"getAllKeys");function Bv(c){return kC(c,ji,TI)}a(Bv,"getAllKeysIn");var Hv=Ld?function(c){return Ld.get(c)}:cT;function Wd(c){for(var f=c.name+"",d=Qc[f],y=Lt.call(Qc,f)?d.length:0;y--;){var b=d[y],P=b.func;if(P==null||P==c)return b.name}return f}a(Wd,"getFuncName");function Jc(c){var f=Lt.call(x,"placeholder")?x:c;return f.placeholder}a(Jc,"getHolder");function Me(){var c=x.iteratee||aT;return c=c===aT?$C:c,arguments.length?c(arguments[0],arguments[1]):c}a(Me,"getIteratee");function Gd(c,f){var d=c.__data__;return Wk(f)?d[typeof f=="string"?"string":"hash"]:d.map}a(Gd,"getMapData");function Wv(c){for(var f=Xn(c),d=f.length;d--;){var y=f[d],b=c[y];f[d]=[y,b,AI(b)]}return f}a(Wv,"getMatchData");function Bs(c,f){var d=Kw(c,f);return jC(d)?d:e}a(Bs,"getNative");function wk(c){var f=Lt.call(c,ws),d=c[ws];try{c[ws]=e;var y=!0}catch{}var b=Ad.call(c);return y&&(f?c[ws]=d:delete c[ws]),b}a(wk,"getRawTag");var Gv=vv?function(c){return c==null?[]:(c=Wt(c),Na(vv(c),function(f){return PC.call(c,f)}))}:lT,TI=vv?function(c){for(var f=[];c;)La(f,Gv(c)),c=Pd(c);return f}:lT,di=Si;(Tv&&di(new Tv(new ArrayBuffer(1)))!=xr||Nf&&di(new Nf)!=Qe||Ev&&di(Ev.resolve())!=$t||Xc&&di(new Xc)!=un||Lf&&di(new Lf)!=wi)&&(di=a(function(c){var f=Si(c),d=f==on?c.constructor:e,y=d?Hs(d):"";if(y)switch(y){case T2:return xr;case E2:return Qe;case b2:return $t;case A2:return un;case S2:return wi}return f},"getTag"));function kk(c,f,d){for(var y=-1,b=d.length;++y<b;){var P=d[y],N=P.size;switch(P.type){case"drop":c+=N;break;case"dropRight":f-=N;break;case"take":f=pi(f,c+N);break;case"takeRight":c=jn(c,f-N);break}}return{start:c,end:f}}a(kk,"getView");function Uk(c){var f=c.match(WM);return f?f[1].split(GM):[]}a(Uk,"getWrapDetails");function EI(c,f,d){f=Ma(f,c);for(var y=-1,b=f.length,P=!1;++y<b;){var N=bo(f[y]);if(!(P=c!=null&&d(c,N)))break;c=c[N]}return P||++y!=b?P:(b=c==null?0:c.length,!!b&&Jd(b)&&Jo(N,b)&&(Xe(c)||Ws(c)))}a(EI,"hasPath");function jk(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Lt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}a(jk,"initCloneArray");function bI(c){return typeof c.constructor=="function"&&!Uf(c)?qc(Pd(c)):{}}a(bI,"initCloneObject");function $k(c,f,d){var y=c.constructor;switch(f){case Ds:return kv(c);case I:case S:return new y(+c);case xr:return xk(c,d);case Sf:case xf:case Pf:case Vs:case k:case $:case Q:case se:case Ne:return iI(c,d);case Qe:return new y;case Vt:case ui:return new y(c);case tr:return Pk(c);case un:return new y;case Bt:return Ck(c)}}a($k,"initCloneByTag");function Bk(c,f){var d=f.length;if(!d)return c;var y=d-1;return f[y]=(d>1?"& ":"")+f[y],f=f.join(d>2?", ":" "),c.replace(HM,`{
267
+ Please avoid using it as it will be completely removed in the future`)}var rQ,py=qe(()=>{CA();yr();tp();hs();op();Gl();wA();Ri();Ri();$l();QA();PD();_D();a(iQ,"clearCache");rQ=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
268
+ See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return a(e,"Parser"),e}()});var oS=ze((Hse,UD)=>{var{createToken:oQ,Lexer:iS}=(py(),ig(uy)),VD={},ql=VD;function rS(e,t){VD[e]=typeof t=="string"?t:t.source}a(rS,"FRAGMENT");function yp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}a(yp,"makePattern");var aQ=[],MD={};function bn(e){let t=oQ(e);return aQ.push(t),MD[e.name]=t,t}a(bn,"createToken");rS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");rS("NameChar",yp`${ql.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);rS("Name",yp`${ql.NameStartChar}(${ql.NameChar})*`);var DD=bn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),sQ=bn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),cQ=bn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),lQ=bn({name:"DTD",pattern:/<!.*?>/,group:iS.SKIPPED}),fQ=bn({name:"EntityRef",pattern:yp`&${ql.Name};`}),uQ=bn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),pQ=bn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),dQ=bn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),wD=bn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),gQ=bn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[wD]}),mQ=bn({name:"PROCESSING_INSTRUCTION",pattern:yp`<\\?${ql.Name}.*\\?>`}),kD=bn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),hQ=bn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[kD]}),yQ=bn({name:"TEXT",pattern:/[^<&]+/}),vQ=bn({name:"CLOSE",pattern:/>/,pop_mode:!0}),TQ=bn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),EQ=bn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),bQ=bn({name:"SLASH",pattern:/\//}),AQ=bn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),SQ=bn({name:"EQUALS",pattern:/=/}),xQ=bn({name:"Name",pattern:yp`${ql.Name}`}),PQ=bn({name:"S",pattern:/[ \t\r\n]/,group:iS.SKIPPED}),CQ={defaultMode:"OUTSIDE",modes:{OUTSIDE:[DD,sQ,cQ,lQ,fQ,uQ,pQ,dQ,wD,mQ,kD,yQ],INSIDE:[DD,gQ,hQ,vQ,TQ,EQ,bQ,SQ,AQ,xQ,PQ]}},IQ=new iS(CQ,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
+ `],lineTerminatorsPattern:/\n|\r\n/g});UD.exports={xmlLexer:IQ,tokensDictionary:MD}});var $D=ze((Gse,jD)=>{var{CstParser:OQ,tokenMatcher:NQ}=(py(),ig(uy)),{tokensDictionary:xt}=oS(),sS=class sS extends OQ{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:()=>t.LA(1).image==="SYSTEM",ALT:()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})}},{GATE:()=>t.LA(1).image==="PUBLIC",ALT:()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})}}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:()=>t.SUBRULE(t.element)},{ALT:()=>t.SUBRULE(t.chardata)},{ALT:()=>t.SUBRULE(t.reference)},{ALT:()=>t.CONSUME(xt.CData)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.Comment)}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})}},{ALT:()=>{t.CONSUME(xt.SLASH_CLOSE)}}])}),t.RULE("reference",()=>{t.OR([{ALT:()=>t.CONSUME(xt.EntityRef)},{ALT:()=>t.CONSUME(xt.CharRef)}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:()=>t.CONSUME(xt.TEXT)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),t.RULE("misc",()=>{t.OR([{ALT:()=>t.CONSUME(xt.Comment)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(o=>NQ(n,o));if(r!==void 0)return r;n=this.LA(i),i++}}};a(sS,"Parser");var aS=sS,LQ=new aS;jD.exports={xmlParser:LQ}});var cS=ze((Xse,BD)=>{var{xmlLexer:FQ}=oS(),{xmlParser:dy}=$D();BD.exports={parse:a(function(t){let n=FQ.tokenize(t);return dy.input=n.tokens,{cst:dy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:dy.errors}},"parse"),BaseXmlCstVisitor:dy.getBaseCstVisitorConstructor()}});var Tp=ze((zl,vp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",o="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,v=1,A=2,E=1,O=2,R=4,U=8,H=16,W=32,ie=64,Z=128,ne=256,Le=512,D=30,Pt="...",dt=800,$e=16,fn=1,Vi=2,Sn=3,jt=1/0,Re=9007199254740991,Ai=17976931348623157e292,Ct=NaN,Dt=4294967295,rn=Dt-1,Mi=Dt>>>1,_e=[["ary",Z],["bind",E],["bindKey",O],["curry",U],["curryRight",H],["flip",Le],["partial",W],["partialRight",ie],["rearg",ne]],Gn="[object Arguments]",Sr="[object Array]",st="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",M="[object Error]",Ve="[object Function]",Nt="[object GeneratorFunction]",Qe="[object Map]",Vt="[object Number]",Rn="[object Null]",on="[object Object]",$t="[object Promise]",ni="[object Proxy]",tr="[object RegExp]",un="[object Set]",ui="[object String]",Bt="[object Symbol]",Go="[object Undefined]",wi="[object WeakMap]",Af="[object WeakSet]",Rs="[object ArrayBuffer]",xr="[object DataView]",Sf="[object Float32Array]",xf="[object Float64Array]",Pf="[object Int8Array]",_s="[object Int16Array]",k="[object Int32Array]",j="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Ne="[object Uint32Array]",pn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,ve=/[&<>"']/g,xe=RegExp(me.source),Ie=RegExp(ve.source),ot=/<%-([\s\S]+?)%>/g,Ht=/<%([\s\S]+?)%>/g,an=/<%=([\s\S]+?)%>/g,nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dd=/^\w*$/,Zy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cf=/[\\^$.*+?()[\]{}|]/g,GM=RegExp(Cf.source),ev=/^\s+/,KM=/\s/,XM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,QM=/\{\n\/\* \[wrapped with (.+)\] \*/,qM=/,? & /,zM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,YM=/[()=,{}\[\]\/\s]/,JM=/\\(\\)?/g,ZM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,BP=/\w*$/,ew=/^[-+]0x[0-9a-f]+$/i,tw=/^0b[01]+$/i,nw=/^\[object .+?Constructor\]$/,iw=/^0o[0-7]+$/i,rw=/^(?:0|[1-9]\d*)$/,ow=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gd=/($^)/,aw=/['\n\r\u2028\u2029\\]/g,md="\\ud800-\\udfff",sw="\\u0300-\\u036f",cw="\\ufe20-\\ufe2f",lw="\\u20d0-\\u20ff",HP=sw+cw+lw,WP="\\u2700-\\u27bf",GP="a-z\\xdf-\\xf6\\xf8-\\xff",fw="\\xac\\xb1\\xd7\\xf7",uw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pw="\\u2000-\\u206f",dw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",KP="A-Z\\xc0-\\xd6\\xd8-\\xde",XP="\\ufe0e\\ufe0f",QP=fw+uw+pw+dw,tv="['\u2019]",gw="["+md+"]",qP="["+QP+"]",hd="["+HP+"]",zP="\\d+",mw="["+WP+"]",YP="["+GP+"]",JP="[^"+md+QP+zP+WP+GP+KP+"]",nv="\\ud83c[\\udffb-\\udfff]",hw="(?:"+hd+"|"+nv+")",ZP="[^"+md+"]",iv="(?:\\ud83c[\\udde6-\\uddff]){2}",rv="[\\ud800-\\udbff][\\udc00-\\udfff]",Uc="["+KP+"]",eC="\\u200d",tC="(?:"+YP+"|"+JP+")",yw="(?:"+Uc+"|"+JP+")",nC="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",iC="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",rC=hw+"?",oC="["+XP+"]?",vw="(?:"+eC+"(?:"+[ZP,iv,rv].join("|")+")"+oC+rC+")*",Tw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ew="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",aC=oC+rC+vw,bw="(?:"+[mw,iv,rv].join("|")+")"+aC,Aw="(?:"+[ZP+hd+"?",hd,iv,rv,gw].join("|")+")",Sw=RegExp(tv,"g"),xw=RegExp(hd,"g"),ov=RegExp(nv+"(?="+nv+")|"+Aw+aC,"g"),Pw=RegExp([Uc+"?"+YP+"+"+nC+"(?="+[qP,Uc,"$"].join("|")+")",yw+"+"+iC+"(?="+[qP,Uc+tC,"$"].join("|")+")",Uc+"?"+tC+"+"+nC,Uc+"+"+iC,Ew,Tw,zP,bw].join("|"),"g"),Cw=RegExp("["+eC+md+HP+XP+"]"),Iw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ow=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nw=-1,Zt={};Zt[Sf]=Zt[xf]=Zt[Pf]=Zt[_s]=Zt[k]=Zt[j]=Zt[Q]=Zt[ce]=Zt[Ne]=!0,Zt[Gn]=Zt[Sr]=Zt[Rs]=Zt[I]=Zt[xr]=Zt[S]=Zt[M]=Zt[Ve]=Zt[Qe]=Zt[Vt]=Zt[on]=Zt[tr]=Zt[un]=Zt[ui]=Zt[wi]=!1;var Qt={};Qt[Gn]=Qt[Sr]=Qt[Rs]=Qt[xr]=Qt[I]=Qt[S]=Qt[Sf]=Qt[xf]=Qt[Pf]=Qt[_s]=Qt[k]=Qt[Qe]=Qt[Vt]=Qt[on]=Qt[tr]=Qt[un]=Qt[ui]=Qt[Bt]=Qt[j]=Qt[Q]=Qt[ce]=Qt[Ne]=!0,Qt[M]=Qt[Ve]=Qt[wi]=!1;var Lw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Fw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_w={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dw=parseFloat,Vw=parseInt,sC=typeof global=="object"&&global&&global.Object===Object&&global,Mw=typeof self=="object"&&self&&self.Object===Object&&self,Kn=sC||Mw||Function("return this")(),av=typeof zl=="object"&&zl&&!zl.nodeType&&zl,Ds=av&&typeof vp=="object"&&vp&&!vp.nodeType&&vp,cC=Ds&&Ds.exports===av,sv=cC&&sC.process,Pr=function(){try{var V=Ds&&Ds.require&&Ds.require("util").types;return V||sv&&sv.binding&&sv.binding("util")}catch{}}(),lC=Pr&&Pr.isArrayBuffer,fC=Pr&&Pr.isDate,uC=Pr&&Pr.isMap,pC=Pr&&Pr.isRegExp,dC=Pr&&Pr.isSet,gC=Pr&&Pr.isTypedArray;function ir(V,X,G){switch(G.length){case 0:return V.call(X);case 1:return V.call(X,G[0]);case 2:return V.call(X,G[0],G[1]);case 3:return V.call(X,G[0],G[1],G[2])}return V.apply(X,G)}a(ir,"apply");function ww(V,X,G,be){for(var Ke=-1,bt=V==null?0:V.length;++Ke<bt;){var Un=V[Ke];X(be,Un,G(Un),V)}return be}a(ww,"arrayAggregator");function Cr(V,X){for(var G=-1,be=V==null?0:V.length;++G<be&&X(V[G],G,V)!==!1;);return V}a(Cr,"arrayEach");function kw(V,X){for(var G=V==null?0:V.length;G--&&X(V[G],G,V)!==!1;);return V}a(kw,"arrayEachRight");function mC(V,X){for(var G=-1,be=V==null?0:V.length;++G<be;)if(!X(V[G],G,V))return!1;return!0}a(mC,"arrayEvery");function Ia(V,X){for(var G=-1,be=V==null?0:V.length,Ke=0,bt=[];++G<be;){var Un=V[G];X(Un,G,V)&&(bt[Ke++]=Un)}return bt}a(Ia,"arrayFilter");function yd(V,X){var G=V==null?0:V.length;return!!G&&jc(V,X,0)>-1}a(yd,"arrayIncludes");function cv(V,X,G){for(var be=-1,Ke=V==null?0:V.length;++be<Ke;)if(G(X,V[be]))return!0;return!1}a(cv,"arrayIncludesWith");function sn(V,X){for(var G=-1,be=V==null?0:V.length,Ke=Array(be);++G<be;)Ke[G]=X(V[G],G,V);return Ke}a(sn,"arrayMap");function Oa(V,X){for(var G=-1,be=X.length,Ke=V.length;++G<be;)V[Ke+G]=X[G];return V}a(Oa,"arrayPush");function lv(V,X,G,be){var Ke=-1,bt=V==null?0:V.length;for(be&&bt&&(G=V[++Ke]);++Ke<bt;)G=X(G,V[Ke],Ke,V);return G}a(lv,"arrayReduce");function Uw(V,X,G,be){var Ke=V==null?0:V.length;for(be&&Ke&&(G=V[--Ke]);Ke--;)G=X(G,V[Ke],Ke,V);return G}a(Uw,"arrayReduceRight");function fv(V,X){for(var G=-1,be=V==null?0:V.length;++G<be;)if(X(V[G],G,V))return!0;return!1}a(fv,"arraySome");var jw=uv("length");function $w(V){return V.split("")}a($w,"asciiToArray");function Bw(V){return V.match(zM)||[]}a(Bw,"asciiWords");function hC(V,X,G){var be;return G(V,function(Ke,bt,Un){if(X(Ke,bt,Un))return be=bt,!1}),be}a(hC,"baseFindKey");function vd(V,X,G,be){for(var Ke=V.length,bt=G+(be?1:-1);be?bt--:++bt<Ke;)if(X(V[bt],bt,V))return bt;return-1}a(vd,"baseFindIndex");function jc(V,X,G){return X===X?e2(V,X,G):vd(V,yC,G)}a(jc,"baseIndexOf");function Hw(V,X,G,be){for(var Ke=G-1,bt=V.length;++Ke<bt;)if(be(V[Ke],X))return Ke;return-1}a(Hw,"baseIndexOfWith");function yC(V){return V!==V}a(yC,"baseIsNaN");function vC(V,X){var G=V==null?0:V.length;return G?dv(V,X)/G:Ct}a(vC,"baseMean");function uv(V){return function(X){return X==null?e:X[V]}}a(uv,"baseProperty");function pv(V){return function(X){return V==null?e:V[X]}}a(pv,"basePropertyOf");function TC(V,X,G,be,Ke){return Ke(V,function(bt,Un,Wt){G=be?(be=!1,bt):X(G,bt,Un,Wt)}),G}a(TC,"baseReduce");function Ww(V,X){var G=V.length;for(V.sort(X);G--;)V[G]=V[G].value;return V}a(Ww,"baseSortBy");function dv(V,X){for(var G,be=-1,Ke=V.length;++be<Ke;){var bt=X(V[be]);bt!==e&&(G=G===e?bt:G+bt)}return G}a(dv,"baseSum");function gv(V,X){for(var G=-1,be=Array(V);++G<V;)be[G]=X(G);return be}a(gv,"baseTimes");function Gw(V,X){return sn(X,function(G){return[G,V[G]]})}a(Gw,"baseToPairs");function EC(V){return V&&V.slice(0,xC(V)+1).replace(ev,"")}a(EC,"baseTrim");function rr(V){return function(X){return V(X)}}a(rr,"baseUnary");function mv(V,X){return sn(X,function(G){return V[G]})}a(mv,"baseValues");function If(V,X){return V.has(X)}a(If,"cacheHas");function bC(V,X){for(var G=-1,be=V.length;++G<be&&jc(X,V[G],0)>-1;);return G}a(bC,"charsStartIndex");function AC(V,X){for(var G=V.length;G--&&jc(X,V[G],0)>-1;);return G}a(AC,"charsEndIndex");function Kw(V,X){for(var G=V.length,be=0;G--;)V[G]===X&&++be;return be}a(Kw,"countHolders");var Xw=pv(Lw),Qw=pv(Fw);function qw(V){return"\\"+_w[V]}a(qw,"escapeStringChar");function zw(V,X){return V==null?e:V[X]}a(zw,"getValue");function $c(V){return Cw.test(V)}a($c,"hasUnicode");function Yw(V){return Iw.test(V)}a(Yw,"hasUnicodeWord");function Jw(V){for(var X,G=[];!(X=V.next()).done;)G.push(X.value);return G}a(Jw,"iteratorToArray");function hv(V){var X=-1,G=Array(V.size);return V.forEach(function(be,Ke){G[++X]=[Ke,be]}),G}a(hv,"mapToArray");function SC(V,X){return function(G){return V(X(G))}}a(SC,"overArg");function Na(V,X){for(var G=-1,be=V.length,Ke=0,bt=[];++G<be;){var Un=V[G];(Un===X||Un===u)&&(V[G]=u,bt[Ke++]=G)}return bt}a(Na,"replaceHolders");function Td(V){var X=-1,G=Array(V.size);return V.forEach(function(be){G[++X]=be}),G}a(Td,"setToArray");function Zw(V){var X=-1,G=Array(V.size);return V.forEach(function(be){G[++X]=[be,be]}),G}a(Zw,"setToPairs");function e2(V,X,G){for(var be=G-1,Ke=V.length;++be<Ke;)if(V[be]===X)return be;return-1}a(e2,"strictIndexOf");function t2(V,X,G){for(var be=G+1;be--;)if(V[be]===X)return be;return be}a(t2,"strictLastIndexOf");function Bc(V){return $c(V)?i2(V):jw(V)}a(Bc,"stringSize");function Xr(V){return $c(V)?r2(V):$w(V)}a(Xr,"stringToArray");function xC(V){for(var X=V.length;X--&&KM.test(V.charAt(X)););return X}a(xC,"trimmedEndIndex");var n2=pv(Rw);function i2(V){for(var X=ov.lastIndex=0;ov.test(V);)++X;return X}a(i2,"unicodeSize");function r2(V){return V.match(ov)||[]}a(r2,"unicodeToArray");function o2(V){return V.match(Pw)||[]}a(o2,"unicodeWords");var a2=a(function V(X){X=X==null?Kn:La.defaults(Kn.Object(),X,La.pick(Kn,Ow));var G=X.Array,be=X.Date,Ke=X.Error,bt=X.Function,Un=X.Math,Wt=X.Object,yv=X.RegExp,s2=X.String,Ir=X.TypeError,Ed=G.prototype,c2=bt.prototype,Hc=Wt.prototype,bd=X["__core-js_shared__"],Ad=c2.toString,Lt=Hc.hasOwnProperty,l2=0,PC=function(){var c=/[^.]+$/.exec(bd&&bd.keys&&bd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Sd=Hc.toString,f2=Ad.call(Wt),u2=Kn._,p2=yv("^"+Ad.call(Lt).replace(Cf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xd=cC?X.Buffer:e,Fa=X.Symbol,Pd=X.Uint8Array,CC=xd?xd.allocUnsafe:e,Cd=SC(Wt.getPrototypeOf,Wt),IC=Wt.create,OC=Hc.propertyIsEnumerable,Id=Ed.splice,NC=Fa?Fa.isConcatSpreadable:e,Of=Fa?Fa.iterator:e,Vs=Fa?Fa.toStringTag:e,Od=function(){try{var c=js(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),d2=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,g2=be&&be.now!==Kn.Date.now&&be.now,m2=X.setTimeout!==Kn.setTimeout&&X.setTimeout,Nd=Un.ceil,Ld=Un.floor,vv=Wt.getOwnPropertySymbols,h2=xd?xd.isBuffer:e,LC=X.isFinite,y2=Ed.join,T2=SC(Wt.keys,Wt),jn=Un.max,pi=Un.min,E2=be.now,b2=X.parseInt,FC=Un.random,A2=Ed.reverse,Tv=js(X,"DataView"),Nf=js(X,"Map"),Ev=js(X,"Promise"),Wc=js(X,"Set"),Lf=js(X,"WeakMap"),Ff=js(Wt,"create"),Fd=Lf&&new Lf,Gc={},S2=$s(Tv),x2=$s(Nf),P2=$s(Ev),C2=$s(Wc),I2=$s(Lf),Rd=Fa?Fa.prototype:e,Rf=Rd?Rd.valueOf:e,RC=Rd?Rd.toString:e;function x(c){if(mn(c)&&!Xe(c)&&!(c instanceof ft)){if(c instanceof Or)return c;if(Lt.call(c,"__wrapped__"))return _I(c)}return new Or(c)}a(x,"lodash");var Kc=function(){function c(){}return a(c,"object"),function(f){if(!dn(f))return{};if(IC)return IC(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function _d(){}a(_d,"baseLodash");function Or(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}a(Or,"LodashWrapper"),x.templateSettings={escape:ot,evaluate:Ht,interpolate:an,variable:"",imports:{_:x}},x.prototype=_d.prototype,x.prototype.constructor=x,Or.prototype=Kc(_d.prototype),Or.prototype.constructor=Or;function ft(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}a(ft,"LazyWrapper");function O2(){var c=new ft(this.__wrapped__);return c.__actions__=ki(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ki(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ki(this.__views__),c}a(O2,"lazyClone");function N2(){if(this.__filtered__){var c=new ft(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}a(N2,"lazyReverse");function L2(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),y=f<0,b=d?c.length:0,P=Bk(0,b,this.__views__),N=P.start,F=P.end,w=F-N,q=y?F:N-1,z=this.__iteratees__,ee=z.length,ge=0,Oe=pi(w,this.__takeCount__);if(!d||!y&&b==w&&Oe==w)return nI(c,this.__actions__);var ke=[];e:for(;w--&&ge<Oe;){q+=f;for(var et=-1,Ue=c[q];++et<ee;){var ct=z[et],gt=ct.iteratee,sr=ct.type,Pi=gt(Ue);if(sr==Vi)Ue=Pi;else if(!Pi){if(sr==fn)continue e;break e}}ke[ge++]=Ue}return ke}a(L2,"lazyValue"),ft.prototype=Kc(_d.prototype),ft.prototype.constructor=ft;function Ms(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}a(Ms,"Hash");function F2(){this.__data__=Ff?Ff(null):{},this.size=0}a(F2,"hashClear");function R2(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}a(R2,"hashDelete");function _2(c){var f=this.__data__;if(Ff){var d=f[c];return d===s?e:d}return Lt.call(f,c)?f[c]:e}a(_2,"hashGet");function D2(c){var f=this.__data__;return Ff?f[c]!==e:Lt.call(f,c)}a(D2,"hashHas");function V2(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Ff&&f===e?s:f,this}a(V2,"hashSet"),Ms.prototype.clear=F2,Ms.prototype.delete=R2,Ms.prototype.get=_2,Ms.prototype.has=D2,Ms.prototype.set=V2;function Ko(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}a(Ko,"ListCache");function M2(){this.__data__=[],this.size=0}a(M2,"listCacheClear");function w2(c){var f=this.__data__,d=Dd(f,c);if(d<0)return!1;var y=f.length-1;return d==y?f.pop():Id.call(f,d,1),--this.size,!0}a(w2,"listCacheDelete");function k2(c){var f=this.__data__,d=Dd(f,c);return d<0?e:f[d][1]}a(k2,"listCacheGet");function U2(c){return Dd(this.__data__,c)>-1}a(U2,"listCacheHas");function j2(c,f){var d=this.__data__,y=Dd(d,c);return y<0?(++this.size,d.push([c,f])):d[y][1]=f,this}a(j2,"listCacheSet"),Ko.prototype.clear=M2,Ko.prototype.delete=w2,Ko.prototype.get=k2,Ko.prototype.has=U2,Ko.prototype.set=j2;function Xo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var y=c[f];this.set(y[0],y[1])}}a(Xo,"MapCache");function $2(){this.size=0,this.__data__={hash:new Ms,map:new(Nf||Ko),string:new Ms}}a($2,"mapCacheClear");function B2(c){var f=Kd(this,c).delete(c);return this.size-=f?1:0,f}a(B2,"mapCacheDelete");function H2(c){return Kd(this,c).get(c)}a(H2,"mapCacheGet");function W2(c){return Kd(this,c).has(c)}a(W2,"mapCacheHas");function G2(c,f){var d=Kd(this,c),y=d.size;return d.set(c,f),this.size+=d.size==y?0:1,this}a(G2,"mapCacheSet"),Xo.prototype.clear=$2,Xo.prototype.delete=B2,Xo.prototype.get=H2,Xo.prototype.has=W2,Xo.prototype.set=G2;function ws(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Xo;++f<d;)this.add(c[f])}a(ws,"SetCache");function K2(c){return this.__data__.set(c,s),this}a(K2,"setCacheAdd");function X2(c){return this.__data__.has(c)}a(X2,"setCacheHas"),ws.prototype.add=ws.prototype.push=K2,ws.prototype.has=X2;function Qr(c){var f=this.__data__=new Ko(c);this.size=f.size}a(Qr,"Stack");function Q2(){this.__data__=new Ko,this.size=0}a(Q2,"stackClear");function q2(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}a(q2,"stackDelete");function z2(c){return this.__data__.get(c)}a(z2,"stackGet");function Y2(c){return this.__data__.has(c)}a(Y2,"stackHas");function J2(c,f){var d=this.__data__;if(d instanceof Ko){var y=d.__data__;if(!Nf||y.length<n-1)return y.push([c,f]),this.size=++d.size,this;d=this.__data__=new Xo(y)}return d.set(c,f),this.size=d.size,this}a(J2,"stackSet"),Qr.prototype.clear=Q2,Qr.prototype.delete=q2,Qr.prototype.get=z2,Qr.prototype.has=Y2,Qr.prototype.set=J2;function _C(c,f){var d=Xe(c),y=!d&&Bs(c),b=!d&&!y&&Ma(c),P=!d&&!y&&!b&&zc(c),N=d||y||b||P,F=N?gv(c.length,s2):[],w=F.length;for(var q in c)(f||Lt.call(c,q))&&!(N&&(q=="length"||b&&(q=="offset"||q=="parent")||P&&(q=="buffer"||q=="byteLength"||q=="byteOffset")||Yo(q,w)))&&F.push(q);return F}a(_C,"arrayLikeKeys");function DC(c){var f=c.length;return f?c[Fv(0,f-1)]:e}a(DC,"arraySample");function Z2(c,f){return Xd(ki(c),ks(f,0,c.length))}a(Z2,"arraySampleSize");function ek(c){return Xd(ki(c))}a(ek,"arrayShuffle");function bv(c,f,d){(d!==e&&!qr(c[f],d)||d===e&&!(f in c))&&Qo(c,f,d)}a(bv,"assignMergeValue");function _f(c,f,d){var y=c[f];(!(Lt.call(c,f)&&qr(y,d))||d===e&&!(f in c))&&Qo(c,f,d)}a(_f,"assignValue");function Dd(c,f){for(var d=c.length;d--;)if(qr(c[d][0],f))return d;return-1}a(Dd,"assocIndexOf");function tk(c,f,d,y){return Ra(c,function(b,P,N){f(y,b,d(b),N)}),y}a(tk,"baseAggregator");function VC(c,f){return c&&To(f,Xn(f),c)}a(VC,"baseAssign");function nk(c,f){return c&&To(f,ji(f),c)}a(nk,"baseAssignIn");function Qo(c,f,d){f=="__proto__"&&Od?Od(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}a(Qo,"baseAssignValue");function Av(c,f){for(var d=-1,y=f.length,b=G(y),P=c==null;++d<y;)b[d]=P?e:nT(c,f[d]);return b}a(Av,"baseAt");function ks(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}a(ks,"baseClamp");function Nr(c,f,d,y,b,P){var N,F=f&p,w=f&g,q=f&m;if(d&&(N=b?d(c,y,b,P):d(c)),N!==e)return N;if(!dn(c))return c;var z=Xe(c);if(z){if(N=Wk(c),!F)return ki(c,N)}else{var ee=di(c),ge=ee==Ve||ee==Nt;if(Ma(c))return oI(c,F);if(ee==on||ee==Gn||ge&&!b){if(N=w||ge?{}:xI(c),!F)return w?_k(c,nk(N,c)):Rk(c,VC(N,c))}else{if(!Qt[ee])return b?c:{};N=Gk(c,ee,F)}}P||(P=new Qr);var Oe=P.get(c);if(Oe)return Oe;P.set(c,N),ZI(c)?c.forEach(function(Ue){N.add(Nr(Ue,f,d,Ue,c,P))}):YI(c)&&c.forEach(function(Ue,ct){N.set(ct,Nr(Ue,f,d,ct,c,P))});var ke=q?w?Bv:$v:w?ji:Xn,et=z?e:ke(c);return Cr(et||c,function(Ue,ct){et&&(ct=Ue,Ue=c[ct]),_f(N,ct,Nr(Ue,f,d,ct,c,P))}),N}a(Nr,"baseClone");function ik(c){var f=Xn(c);return function(d){return MC(d,c,f)}}a(ik,"baseConforms");function MC(c,f,d){var y=d.length;if(c==null)return!y;for(c=Wt(c);y--;){var b=d[y],P=f[b],N=c[b];if(N===e&&!(b in c)||!P(N))return!1}return!0}a(MC,"baseConformsTo");function wC(c,f,d){if(typeof c!="function")throw new Ir(r);return jf(function(){c.apply(e,d)},f)}a(wC,"baseDelay");function Df(c,f,d,y){var b=-1,P=yd,N=!0,F=c.length,w=[],q=f.length;if(!F)return w;d&&(f=sn(f,rr(d))),y?(P=cv,N=!1):f.length>=n&&(P=If,N=!1,f=new ws(f));e:for(;++b<F;){var z=c[b],ee=d==null?z:d(z);if(z=y||z!==0?z:0,N&&ee===ee){for(var ge=q;ge--;)if(f[ge]===ee)continue e;w.push(z)}else P(f,ee,y)||w.push(z)}return w}a(Df,"baseDifference");var Ra=fI(vo),kC=fI(xv,!0);function rk(c,f){var d=!0;return Ra(c,function(y,b,P){return d=!!f(y,b,P),d}),d}a(rk,"baseEvery");function Vd(c,f,d){for(var y=-1,b=c.length;++y<b;){var P=c[y],N=f(P);if(N!=null&&(F===e?N===N&&!ar(N):d(N,F)))var F=N,w=P}return w}a(Vd,"baseExtremum");function ok(c,f,d,y){var b=c.length;for(d=Ye(d),d<0&&(d=-d>b?0:b+d),y=y===e||y>b?b:Ye(y),y<0&&(y+=b),y=d>y?0:tO(y);d<y;)c[d++]=f;return c}a(ok,"baseFill");function UC(c,f){var d=[];return Ra(c,function(y,b,P){f(y,b,P)&&d.push(y)}),d}a(UC,"baseFilter");function ii(c,f,d,y,b){var P=-1,N=c.length;for(d||(d=Xk),b||(b=[]);++P<N;){var F=c[P];f>0&&d(F)?f>1?ii(F,f-1,d,y,b):Oa(b,F):y||(b[b.length]=F)}return b}a(ii,"baseFlatten");var Sv=uI(),jC=uI(!0);function vo(c,f){return c&&Sv(c,f,Xn)}a(vo,"baseForOwn");function xv(c,f){return c&&jC(c,f,Xn)}a(xv,"baseForOwnRight");function Md(c,f){return Ia(f,function(d){return Jo(c[d])})}a(Md,"baseFunctions");function Us(c,f){f=Da(f,c);for(var d=0,y=f.length;c!=null&&d<y;)c=c[Eo(f[d++])];return d&&d==y?c:e}a(Us,"baseGet");function $C(c,f,d){var y=f(c);return Xe(c)?y:Oa(y,d(c))}a($C,"baseGetAllKeys");function Si(c){return c==null?c===e?Go:Rn:Vs&&Vs in Wt(c)?$k(c):eU(c)}a(Si,"baseGetTag");function Pv(c,f){return c>f}a(Pv,"baseGt");function ak(c,f){return c!=null&&Lt.call(c,f)}a(ak,"baseHas");function sk(c,f){return c!=null&&f in Wt(c)}a(sk,"baseHasIn");function ck(c,f,d){return c>=pi(f,d)&&c<jn(f,d)}a(ck,"baseInRange");function Cv(c,f,d){for(var y=d?cv:yd,b=c[0].length,P=c.length,N=P,F=G(P),w=1/0,q=[];N--;){var z=c[N];N&&f&&(z=sn(z,rr(f))),w=pi(z.length,w),F[N]=!d&&(f||b>=120&&z.length>=120)?new ws(N&&z):e}z=c[0];var ee=-1,ge=F[0];e:for(;++ee<b&&q.length<w;){var Oe=z[ee],ke=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?If(ge,ke):y(q,ke,d))){for(N=P;--N;){var et=F[N];if(!(et?If(et,ke):y(c[N],ke,d)))continue e}ge&&ge.push(ke),q.push(Oe)}}return q}a(Cv,"baseIntersection");function lk(c,f,d,y){return vo(c,function(b,P,N){f(y,d(b),P,N)}),y}a(lk,"baseInverter");function Vf(c,f,d){f=Da(f,c),c=OI(c,f);var y=c==null?c:c[Eo(Fr(f))];return y==null?e:ir(y,c,d)}a(Vf,"baseInvoke");function BC(c){return mn(c)&&Si(c)==Gn}a(BC,"baseIsArguments");function fk(c){return mn(c)&&Si(c)==Rs}a(fk,"baseIsArrayBuffer");function uk(c){return mn(c)&&Si(c)==S}a(uk,"baseIsDate");function Mf(c,f,d,y,b){return c===f?!0:c==null||f==null||!mn(c)&&!mn(f)?c!==c&&f!==f:pk(c,f,d,y,Mf,b)}a(Mf,"baseIsEqual");function pk(c,f,d,y,b,P){var N=Xe(c),F=Xe(f),w=N?Sr:di(c),q=F?Sr:di(f);w=w==Gn?on:w,q=q==Gn?on:q;var z=w==on,ee=q==on,ge=w==q;if(ge&&Ma(c)){if(!Ma(f))return!1;N=!0,z=!1}if(ge&&!z)return P||(P=new Qr),N||zc(c)?bI(c,f,d,y,b,P):Uk(c,f,w,d,y,b,P);if(!(d&v)){var Oe=z&&Lt.call(c,"__wrapped__"),ke=ee&&Lt.call(f,"__wrapped__");if(Oe||ke){var et=Oe?c.value():c,Ue=ke?f.value():f;return P||(P=new Qr),b(et,Ue,d,y,P)}}return ge?(P||(P=new Qr),jk(c,f,d,y,b,P)):!1}a(pk,"baseIsEqualDeep");function dk(c){return mn(c)&&di(c)==Qe}a(dk,"baseIsMap");function Iv(c,f,d,y){var b=d.length,P=b,N=!y;if(c==null)return!P;for(c=Wt(c);b--;){var F=d[b];if(N&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++b<P;){F=d[b];var w=F[0],q=c[w],z=F[1];if(N&&F[2]){if(q===e&&!(w in c))return!1}else{var ee=new Qr;if(y)var ge=y(q,z,w,c,f,ee);if(!(ge===e?Mf(z,q,v|A,y,ee):ge))return!1}}return!0}a(Iv,"baseIsMatch");function HC(c){if(!dn(c)||qk(c))return!1;var f=Jo(c)?p2:nw;return f.test($s(c))}a(HC,"baseIsNative");function gk(c){return mn(c)&&Si(c)==tr}a(gk,"baseIsRegExp");function mk(c){return mn(c)&&di(c)==un}a(mk,"baseIsSet");function hk(c){return mn(c)&&Zd(c.length)&&!!Zt[Si(c)]}a(hk,"baseIsTypedArray");function WC(c){return typeof c=="function"?c:c==null?$i:typeof c=="object"?Xe(c)?XC(c[0],c[1]):KC(c):pO(c)}a(WC,"baseIteratee");function Ov(c){if(!Uf(c))return T2(c);var f=[];for(var d in Wt(c))Lt.call(c,d)&&d!="constructor"&&f.push(d);return f}a(Ov,"baseKeys");function yk(c){if(!dn(c))return Zk(c);var f=Uf(c),d=[];for(var y in c)y=="constructor"&&(f||!Lt.call(c,y))||d.push(y);return d}a(yk,"baseKeysIn");function Nv(c,f){return c<f}a(Nv,"baseLt");function GC(c,f){var d=-1,y=Ui(c)?G(c.length):[];return Ra(c,function(b,P,N){y[++d]=f(b,P,N)}),y}a(GC,"baseMap");function KC(c){var f=Wv(c);return f.length==1&&f[0][2]?CI(f[0][0],f[0][1]):function(d){return d===c||Iv(d,c,f)}}a(KC,"baseMatches");function XC(c,f){return Kv(c)&&PI(f)?CI(Eo(c),f):function(d){var y=nT(d,c);return y===e&&y===f?iT(d,c):Mf(f,y,v|A)}}a(XC,"baseMatchesProperty");function wd(c,f,d,y,b){c!==f&&Sv(f,function(P,N){if(b||(b=new Qr),dn(P))vk(c,f,N,d,wd,y,b);else{var F=y?y(Qv(c,N),P,N+"",c,f,b):e;F===e&&(F=P),bv(c,N,F)}},ji)}a(wd,"baseMerge");function vk(c,f,d,y,b,P,N){var F=Qv(c,d),w=Qv(f,d),q=N.get(w);if(q){bv(c,d,q);return}var z=P?P(F,w,d+"",c,f,N):e,ee=z===e;if(ee){var ge=Xe(w),Oe=!ge&&Ma(w),ke=!ge&&!Oe&&zc(w);z=w,ge||Oe||ke?Xe(F)?z=F:Pn(F)?z=ki(F):Oe?(ee=!1,z=oI(w,!0)):ke?(ee=!1,z=aI(w,!0)):z=[]:$f(w)||Bs(w)?(z=F,Bs(F)?z=nO(F):(!dn(F)||Jo(F))&&(z=xI(w))):ee=!1}ee&&(N.set(w,z),b(z,w,y,P,N),N.delete(w)),bv(c,d,z)}a(vk,"baseMergeDeep");function QC(c,f){var d=c.length;if(d)return f+=f<0?d:0,Yo(f,d)?c[f]:e}a(QC,"baseNth");function qC(c,f,d){f.length?f=sn(f,function(P){return Xe(P)?function(N){return Us(N,P.length===1?P[0]:P)}:P}):f=[$i];var y=-1;f=sn(f,rr(Me()));var b=GC(c,function(P,N,F){var w=sn(f,function(q){return q(P)});return{criteria:w,index:++y,value:P}});return Ww(b,function(P,N){return Fk(P,N,d)})}a(qC,"baseOrderBy");function Tk(c,f){return zC(c,f,function(d,y){return iT(c,y)})}a(Tk,"basePick");function zC(c,f,d){for(var y=-1,b=f.length,P={};++y<b;){var N=f[y],F=Us(c,N);d(F,N)&&wf(P,Da(N,c),F)}return P}a(zC,"basePickBy");function Ek(c){return function(f){return Us(f,c)}}a(Ek,"basePropertyDeep");function Lv(c,f,d,y){var b=y?Hw:jc,P=-1,N=f.length,F=c;for(c===f&&(f=ki(f)),d&&(F=sn(c,rr(d)));++P<N;)for(var w=0,q=f[P],z=d?d(q):q;(w=b(F,z,w,y))>-1;)F!==c&&Id.call(F,w,1),Id.call(c,w,1);return c}a(Lv,"basePullAll");function YC(c,f){for(var d=c?f.length:0,y=d-1;d--;){var b=f[d];if(d==y||b!==P){var P=b;Yo(b)?Id.call(c,b,1):Dv(c,b)}}return c}a(YC,"basePullAt");function Fv(c,f){return c+Ld(FC()*(f-c+1))}a(Fv,"baseRandom");function bk(c,f,d,y){for(var b=-1,P=jn(Nd((f-c)/(d||1)),0),N=G(P);P--;)N[y?P:++b]=c,c+=d;return N}a(bk,"baseRange");function Rv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Ld(f/2),f&&(c+=c);while(f);return d}a(Rv,"baseRepeat");function it(c,f){return qv(II(c,f,$i),c+"")}a(it,"baseRest");function Ak(c){return DC(Yc(c))}a(Ak,"baseSample");function Sk(c,f){var d=Yc(c);return Xd(d,ks(f,0,d.length))}a(Sk,"baseSampleSize");function wf(c,f,d,y){if(!dn(c))return c;f=Da(f,c);for(var b=-1,P=f.length,N=P-1,F=c;F!=null&&++b<P;){var w=Eo(f[b]),q=d;if(w==="__proto__"||w==="constructor"||w==="prototype")return c;if(b!=N){var z=F[w];q=y?y(z,w,F):e,q===e&&(q=dn(z)?z:Yo(f[b+1])?[]:{})}_f(F,w,q),F=F[w]}return c}a(wf,"baseSet");var JC=Fd?function(c,f){return Fd.set(c,f),c}:$i,xk=Od?function(c,f){return Od(c,"toString",{configurable:!0,enumerable:!1,value:oT(f),writable:!0})}:$i;function Pk(c){return Xd(Yc(c))}a(Pk,"baseShuffle");function Lr(c,f,d){var y=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var P=G(b);++y<b;)P[y]=c[y+f];return P}a(Lr,"baseSlice");function Ck(c,f){var d;return Ra(c,function(y,b,P){return d=f(y,b,P),!d}),!!d}a(Ck,"baseSome");function kd(c,f,d){var y=0,b=c==null?y:c.length;if(typeof f=="number"&&f===f&&b<=Mi){for(;y<b;){var P=y+b>>>1,N=c[P];N!==null&&!ar(N)&&(d?N<=f:N<f)?y=P+1:b=P}return b}return _v(c,f,$i,d)}a(kd,"baseSortedIndex");function _v(c,f,d,y){var b=0,P=c==null?0:c.length;if(P===0)return 0;f=d(f);for(var N=f!==f,F=f===null,w=ar(f),q=f===e;b<P;){var z=Ld((b+P)/2),ee=d(c[z]),ge=ee!==e,Oe=ee===null,ke=ee===ee,et=ar(ee);if(N)var Ue=y||ke;else q?Ue=ke&&(y||ge):F?Ue=ke&&ge&&(y||!Oe):w?Ue=ke&&ge&&!Oe&&(y||!et):Oe||et?Ue=!1:Ue=y?ee<=f:ee<f;Ue?b=z+1:P=z}return pi(P,rn)}a(_v,"baseSortedIndexBy");function ZC(c,f){for(var d=-1,y=c.length,b=0,P=[];++d<y;){var N=c[d],F=f?f(N):N;if(!d||!qr(F,w)){var w=F;P[b++]=N===0?0:N}}return P}a(ZC,"baseSortedUniq");function eI(c){return typeof c=="number"?c:ar(c)?Ct:+c}a(eI,"baseToNumber");function or(c){if(typeof c=="string")return c;if(Xe(c))return sn(c,or)+"";if(ar(c))return RC?RC.call(c):"";var f=c+"";return f=="0"&&1/c==-jt?"-0":f}a(or,"baseToString");function _a(c,f,d){var y=-1,b=yd,P=c.length,N=!0,F=[],w=F;if(d)N=!1,b=cv;else if(P>=n){var q=f?null:wk(c);if(q)return Td(q);N=!1,b=If,w=new ws}else w=f?[]:F;e:for(;++y<P;){var z=c[y],ee=f?f(z):z;if(z=d||z!==0?z:0,N&&ee===ee){for(var ge=w.length;ge--;)if(w[ge]===ee)continue e;f&&w.push(ee),F.push(z)}else b(w,ee,d)||(w!==F&&w.push(ee),F.push(z))}return F}a(_a,"baseUniq");function Dv(c,f){return f=Da(f,c),c=OI(c,f),c==null||delete c[Eo(Fr(f))]}a(Dv,"baseUnset");function tI(c,f,d,y){return wf(c,f,d(Us(c,f)),y)}a(tI,"baseUpdate");function Ud(c,f,d,y){for(var b=c.length,P=y?b:-1;(y?P--:++P<b)&&f(c[P],P,c););return d?Lr(c,y?0:P,y?P+1:b):Lr(c,y?P+1:0,y?b:P)}a(Ud,"baseWhile");function nI(c,f){var d=c;return d instanceof ft&&(d=d.value()),lv(f,function(y,b){return b.func.apply(b.thisArg,Oa([y],b.args))},d)}a(nI,"baseWrapperValue");function Vv(c,f,d){var y=c.length;if(y<2)return y?_a(c[0]):[];for(var b=-1,P=G(y);++b<y;)for(var N=c[b],F=-1;++F<y;)F!=b&&(P[b]=Df(P[b]||N,c[F],f,d));return _a(ii(P,1),f,d)}a(Vv,"baseXor");function iI(c,f,d){for(var y=-1,b=c.length,P=f.length,N={};++y<b;){var F=y<P?f[y]:e;d(N,c[y],F)}return N}a(iI,"baseZipObject");function Mv(c){return Pn(c)?c:[]}a(Mv,"castArrayLikeObject");function wv(c){return typeof c=="function"?c:$i}a(wv,"castFunction");function Da(c,f){return Xe(c)?c:Kv(c,f)?[c]:RI(It(c))}a(Da,"castPath");var Ik=it;function Va(c,f,d){var y=c.length;return d=d===e?y:d,!f&&d>=y?c:Lr(c,f,d)}a(Va,"castSlice");var rI=d2||function(c){return Kn.clearTimeout(c)};function oI(c,f){if(f)return c.slice();var d=c.length,y=CC?CC(d):new c.constructor(d);return c.copy(y),y}a(oI,"cloneBuffer");function kv(c){var f=new c.constructor(c.byteLength);return new Pd(f).set(new Pd(c)),f}a(kv,"cloneArrayBuffer");function Ok(c,f){var d=f?kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}a(Ok,"cloneDataView");function Nk(c){var f=new c.constructor(c.source,BP.exec(c));return f.lastIndex=c.lastIndex,f}a(Nk,"cloneRegExp");function Lk(c){return Rf?Wt(Rf.call(c)):{}}a(Lk,"cloneSymbol");function aI(c,f){var d=f?kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}a(aI,"cloneTypedArray");function sI(c,f){if(c!==f){var d=c!==e,y=c===null,b=c===c,P=ar(c),N=f!==e,F=f===null,w=f===f,q=ar(f);if(!F&&!q&&!P&&c>f||P&&N&&w&&!F&&!q||y&&N&&w||!d&&w||!b)return 1;if(!y&&!P&&!q&&c<f||q&&d&&b&&!y&&!P||F&&d&&b||!N&&b||!w)return-1}return 0}a(sI,"compareAscending");function Fk(c,f,d){for(var y=-1,b=c.criteria,P=f.criteria,N=b.length,F=d.length;++y<N;){var w=sI(b[y],P[y]);if(w){if(y>=F)return w;var q=d[y];return w*(q=="desc"?-1:1)}}return c.index-f.index}a(Fk,"compareMultiple");function cI(c,f,d,y){for(var b=-1,P=c.length,N=d.length,F=-1,w=f.length,q=jn(P-N,0),z=G(w+q),ee=!y;++F<w;)z[F]=f[F];for(;++b<N;)(ee||b<P)&&(z[d[b]]=c[b]);for(;q--;)z[F++]=c[b++];return z}a(cI,"composeArgs");function lI(c,f,d,y){for(var b=-1,P=c.length,N=-1,F=d.length,w=-1,q=f.length,z=jn(P-F,0),ee=G(z+q),ge=!y;++b<z;)ee[b]=c[b];for(var Oe=b;++w<q;)ee[Oe+w]=f[w];for(;++N<F;)(ge||b<P)&&(ee[Oe+d[N]]=c[b++]);return ee}a(lI,"composeArgsRight");function ki(c,f){var d=-1,y=c.length;for(f||(f=G(y));++d<y;)f[d]=c[d];return f}a(ki,"copyArray");function To(c,f,d,y){var b=!d;d||(d={});for(var P=-1,N=f.length;++P<N;){var F=f[P],w=y?y(d[F],c[F],F,d,c):e;w===e&&(w=c[F]),b?Qo(d,F,w):_f(d,F,w)}return d}a(To,"copyObject");function Rk(c,f){return To(c,Gv(c),f)}a(Rk,"copySymbols");function _k(c,f){return To(c,AI(c),f)}a(_k,"copySymbolsIn");function jd(c,f){return function(d,y){var b=Xe(d)?ww:tk,P=f?f():{};return b(d,c,Me(y,2),P)}}a(jd,"createAggregator");function Xc(c){return it(function(f,d){var y=-1,b=d.length,P=b>1?d[b-1]:e,N=b>2?d[2]:e;for(P=c.length>3&&typeof P=="function"?(b--,P):e,N&&xi(d[0],d[1],N)&&(P=b<3?e:P,b=1),f=Wt(f);++y<b;){var F=d[y];F&&c(f,F,y,P)}return f})}a(Xc,"createAssigner");function fI(c,f){return function(d,y){if(d==null)return d;if(!Ui(d))return c(d,y);for(var b=d.length,P=f?b:-1,N=Wt(d);(f?P--:++P<b)&&y(N[P],P,N)!==!1;);return d}}a(fI,"createBaseEach");function uI(c){return function(f,d,y){for(var b=-1,P=Wt(f),N=y(f),F=N.length;F--;){var w=N[c?F:++b];if(d(P[w],w,P)===!1)break}return f}}a(uI,"createBaseFor");function Dk(c,f,d){var y=f&E,b=kf(c);function P(){var N=this&&this!==Kn&&this instanceof P?b:c;return N.apply(y?d:this,arguments)}return a(P,"wrapper"),P}a(Dk,"createBind");function pI(c){return function(f){f=It(f);var d=$c(f)?Xr(f):e,y=d?d[0]:f.charAt(0),b=d?Va(d,1).join(""):f.slice(1);return y[c]()+b}}a(pI,"createCaseFirst");function Qc(c){return function(f){return lv(fO(lO(f).replace(Sw,"")),c,"")}}a(Qc,"createCompounder");function kf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Kc(c.prototype),y=c.apply(d,f);return dn(y)?y:d}}a(kf,"createCtor");function Vk(c,f,d){var y=kf(c);function b(){for(var P=arguments.length,N=G(P),F=P,w=qc(b);F--;)N[F]=arguments[F];var q=P<3&&N[0]!==w&&N[P-1]!==w?[]:Na(N,w);if(P-=q.length,P<d)return yI(c,f,$d,b.placeholder,e,N,q,e,e,d-P);var z=this&&this!==Kn&&this instanceof b?y:c;return ir(z,this,N)}return a(b,"wrapper"),b}a(Vk,"createCurry");function dI(c){return function(f,d,y){var b=Wt(f);if(!Ui(f)){var P=Me(d,3);f=Xn(f),d=a(function(F){return P(b[F],F,b)},"predicate")}var N=c(f,d,y);return N>-1?b[P?f[N]:N]:e}}a(dI,"createFind");function gI(c){return zo(function(f){var d=f.length,y=d,b=Or.prototype.thru;for(c&&f.reverse();y--;){var P=f[y];if(typeof P!="function")throw new Ir(r);if(b&&!N&&Gd(P)=="wrapper")var N=new Or([],!0)}for(y=N?y:d;++y<d;){P=f[y];var F=Gd(P),w=F=="wrapper"?Hv(P):e;w&&Xv(w[0])&&w[1]==(Z|U|W|ne)&&!w[4].length&&w[9]==1?N=N[Gd(w[0])].apply(N,w[3]):N=P.length==1&&Xv(P)?N[F]():N.thru(P)}return function(){var q=arguments,z=q[0];if(N&&q.length==1&&Xe(z))return N.plant(z).value();for(var ee=0,ge=d?f[ee].apply(this,q):z;++ee<d;)ge=f[ee].call(this,ge);return ge}})}a(gI,"createFlow");function $d(c,f,d,y,b,P,N,F,w,q){var z=f&Z,ee=f&E,ge=f&O,Oe=f&(U|H),ke=f&Le,et=ge?e:kf(c);function Ue(){for(var ct=arguments.length,gt=G(ct),sr=ct;sr--;)gt[sr]=arguments[sr];if(Oe)var Pi=qc(Ue),cr=Kw(gt,Pi);if(y&&(gt=cI(gt,y,b,Oe)),P&&(gt=lI(gt,P,N,Oe)),ct-=cr,Oe&&ct<q){var Cn=Na(gt,Pi);return yI(c,f,$d,Ue.placeholder,d,gt,Cn,F,w,q-ct)}var zr=ee?d:this,ea=ge?zr[c]:c;return ct=gt.length,F?gt=tU(gt,F):ke&&ct>1&&gt.reverse(),z&&w<ct&&(gt.length=w),this&&this!==Kn&&this instanceof Ue&&(ea=et||kf(ea)),ea.apply(zr,gt)}return a(Ue,"wrapper"),Ue}a($d,"createHybrid");function mI(c,f){return function(d,y){return lk(d,c,f(y),{})}}a(mI,"createInverter");function Bd(c,f){return function(d,y){var b;if(d===e&&y===e)return f;if(d!==e&&(b=d),y!==e){if(b===e)return y;typeof d=="string"||typeof y=="string"?(d=or(d),y=or(y)):(d=eI(d),y=eI(y)),b=c(d,y)}return b}}a(Bd,"createMathOperation");function Uv(c){return zo(function(f){return f=sn(f,rr(Me())),it(function(d){var y=this;return c(f,function(b){return ir(b,y,d)})})})}a(Uv,"createOver");function Hd(c,f){f=f===e?" ":or(f);var d=f.length;if(d<2)return d?Rv(f,c):f;var y=Rv(f,Nd(c/Bc(f)));return $c(f)?Va(Xr(y),0,c).join(""):y.slice(0,c)}a(Hd,"createPadding");function Mk(c,f,d,y){var b=f&E,P=kf(c);function N(){for(var F=-1,w=arguments.length,q=-1,z=y.length,ee=G(z+w),ge=this&&this!==Kn&&this instanceof N?P:c;++q<z;)ee[q]=y[q];for(;w--;)ee[q++]=arguments[++F];return ir(ge,b?d:this,ee)}return a(N,"wrapper"),N}a(Mk,"createPartial");function hI(c){return function(f,d,y){return y&&typeof y!="number"&&xi(f,d,y)&&(d=y=e),f=Zo(f),d===e?(d=f,f=0):d=Zo(d),y=y===e?f<d?1:-1:Zo(y),bk(f,d,y,c)}}a(hI,"createRange");function Wd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Rr(f),d=Rr(d)),c(f,d)}}a(Wd,"createRelationalOperation");function yI(c,f,d,y,b,P,N,F,w,q){var z=f&U,ee=z?N:e,ge=z?e:N,Oe=z?P:e,ke=z?e:P;f|=z?W:ie,f&=~(z?ie:W),f&R||(f&=~(E|O));var et=[c,f,b,Oe,ee,ke,ge,F,w,q],Ue=d.apply(e,et);return Xv(c)&&NI(Ue,et),Ue.placeholder=y,LI(Ue,c,f)}a(yI,"createRecurry");function jv(c){var f=Un[c];return function(d,y){if(d=Rr(d),y=y==null?0:pi(Ye(y),292),y&&LC(d)){var b=(It(d)+"e").split("e"),P=f(b[0]+"e"+(+b[1]+y));return b=(It(P)+"e").split("e"),+(b[0]+"e"+(+b[1]-y))}return f(d)}}a(jv,"createRound");var wk=Wc&&1/Td(new Wc([,-0]))[1]==jt?function(c){return new Wc(c)}:cT;function vI(c){return function(f){var d=di(f);return d==Qe?hv(f):d==un?Zw(f):Gw(f,c(f))}}a(vI,"createToPairs");function qo(c,f,d,y,b,P,N,F){var w=f&O;if(!w&&typeof c!="function")throw new Ir(r);var q=y?y.length:0;if(q||(f&=~(W|ie),y=b=e),N=N===e?N:jn(Ye(N),0),F=F===e?F:Ye(F),q-=b?b.length:0,f&ie){var z=y,ee=b;y=b=e}var ge=w?e:Hv(c),Oe=[c,f,d,y,b,z,ee,P,N,F];if(ge&&Jk(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],y=Oe[3],b=Oe[4],F=Oe[9]=Oe[9]===e?w?0:c.length:jn(Oe[9]-q,0),!F&&f&(U|H)&&(f&=~(U|H)),!f||f==E)var ke=Dk(c,f,d);else f==U||f==H?ke=Vk(c,f,F):(f==W||f==(E|W))&&!b.length?ke=Mk(c,f,d,y):ke=$d.apply(e,Oe);var et=ge?JC:NI;return LI(et(ke,Oe),c,f)}a(qo,"createWrap");function TI(c,f,d,y){return c===e||qr(c,Hc[d])&&!Lt.call(y,d)?f:c}a(TI,"customDefaultsAssignIn");function EI(c,f,d,y,b,P){return dn(c)&&dn(f)&&(P.set(f,c),wd(c,f,e,EI,P),P.delete(f)),c}a(EI,"customDefaultsMerge");function kk(c){return $f(c)?e:c}a(kk,"customOmitClone");function bI(c,f,d,y,b,P){var N=d&v,F=c.length,w=f.length;if(F!=w&&!(N&&w>F))return!1;var q=P.get(c),z=P.get(f);if(q&&z)return q==f&&z==c;var ee=-1,ge=!0,Oe=d&A?new ws:e;for(P.set(c,f),P.set(f,c);++ee<F;){var ke=c[ee],et=f[ee];if(y)var Ue=N?y(et,ke,ee,f,c,P):y(ke,et,ee,c,f,P);if(Ue!==e){if(Ue)continue;ge=!1;break}if(Oe){if(!fv(f,function(ct,gt){if(!If(Oe,gt)&&(ke===ct||b(ke,ct,d,y,P)))return Oe.push(gt)})){ge=!1;break}}else if(!(ke===et||b(ke,et,d,y,P))){ge=!1;break}}return P.delete(c),P.delete(f),ge}a(bI,"equalArrays");function Uk(c,f,d,y,b,P,N){switch(d){case xr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Rs:return!(c.byteLength!=f.byteLength||!P(new Pd(c),new Pd(f)));case I:case S:case Vt:return qr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case tr:case ui:return c==f+"";case Qe:var F=hv;case un:var w=y&v;if(F||(F=Td),c.size!=f.size&&!w)return!1;var q=N.get(c);if(q)return q==f;y|=A,N.set(c,f);var z=bI(F(c),F(f),y,b,P,N);return N.delete(c),z;case Bt:if(Rf)return Rf.call(c)==Rf.call(f)}return!1}a(Uk,"equalByTag");function jk(c,f,d,y,b,P){var N=d&v,F=$v(c),w=F.length,q=$v(f),z=q.length;if(w!=z&&!N)return!1;for(var ee=w;ee--;){var ge=F[ee];if(!(N?ge in f:Lt.call(f,ge)))return!1}var Oe=P.get(c),ke=P.get(f);if(Oe&&ke)return Oe==f&&ke==c;var et=!0;P.set(c,f),P.set(f,c);for(var Ue=N;++ee<w;){ge=F[ee];var ct=c[ge],gt=f[ge];if(y)var sr=N?y(gt,ct,ge,f,c,P):y(ct,gt,ge,c,f,P);if(!(sr===e?ct===gt||b(ct,gt,d,y,P):sr)){et=!1;break}Ue||(Ue=ge=="constructor")}if(et&&!Ue){var Pi=c.constructor,cr=f.constructor;Pi!=cr&&"constructor"in c&&"constructor"in f&&!(typeof Pi=="function"&&Pi instanceof Pi&&typeof cr=="function"&&cr instanceof cr)&&(et=!1)}return P.delete(c),P.delete(f),et}a(jk,"equalObjects");function zo(c){return qv(II(c,e,MI),c+"")}a(zo,"flatRest");function $v(c){return $C(c,Xn,Gv)}a($v,"getAllKeys");function Bv(c){return $C(c,ji,AI)}a(Bv,"getAllKeysIn");var Hv=Fd?function(c){return Fd.get(c)}:cT;function Gd(c){for(var f=c.name+"",d=Gc[f],y=Lt.call(Gc,f)?d.length:0;y--;){var b=d[y],P=b.func;if(P==null||P==c)return b.name}return f}a(Gd,"getFuncName");function qc(c){var f=Lt.call(x,"placeholder")?x:c;return f.placeholder}a(qc,"getHolder");function Me(){var c=x.iteratee||aT;return c=c===aT?WC:c,arguments.length?c(arguments[0],arguments[1]):c}a(Me,"getIteratee");function Kd(c,f){var d=c.__data__;return Qk(f)?d[typeof f=="string"?"string":"hash"]:d.map}a(Kd,"getMapData");function Wv(c){for(var f=Xn(c),d=f.length;d--;){var y=f[d],b=c[y];f[d]=[y,b,PI(b)]}return f}a(Wv,"getMatchData");function js(c,f){var d=zw(c,f);return HC(d)?d:e}a(js,"getNative");function $k(c){var f=Lt.call(c,Vs),d=c[Vs];try{c[Vs]=e;var y=!0}catch{}var b=Sd.call(c);return y&&(f?c[Vs]=d:delete c[Vs]),b}a($k,"getRawTag");var Gv=vv?function(c){return c==null?[]:(c=Wt(c),Ia(vv(c),function(f){return OC.call(c,f)}))}:lT,AI=vv?function(c){for(var f=[];c;)Oa(f,Gv(c)),c=Cd(c);return f}:lT,di=Si;(Tv&&di(new Tv(new ArrayBuffer(1)))!=xr||Nf&&di(new Nf)!=Qe||Ev&&di(Ev.resolve())!=$t||Wc&&di(new Wc)!=un||Lf&&di(new Lf)!=wi)&&(di=a(function(c){var f=Si(c),d=f==on?c.constructor:e,y=d?$s(d):"";if(y)switch(y){case S2:return xr;case x2:return Qe;case P2:return $t;case C2:return un;case I2:return wi}return f},"getTag"));function Bk(c,f,d){for(var y=-1,b=d.length;++y<b;){var P=d[y],N=P.size;switch(P.type){case"drop":c+=N;break;case"dropRight":f-=N;break;case"take":f=pi(f,c+N);break;case"takeRight":c=jn(c,f-N);break}}return{start:c,end:f}}a(Bk,"getView");function Hk(c){var f=c.match(QM);return f?f[1].split(qM):[]}a(Hk,"getWrapDetails");function SI(c,f,d){f=Da(f,c);for(var y=-1,b=f.length,P=!1;++y<b;){var N=Eo(f[y]);if(!(P=c!=null&&d(c,N)))break;c=c[N]}return P||++y!=b?P:(b=c==null?0:c.length,!!b&&Zd(b)&&Yo(N,b)&&(Xe(c)||Bs(c)))}a(SI,"hasPath");function Wk(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Lt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}a(Wk,"initCloneArray");function xI(c){return typeof c.constructor=="function"&&!Uf(c)?Kc(Cd(c)):{}}a(xI,"initCloneObject");function Gk(c,f,d){var y=c.constructor;switch(f){case Rs:return kv(c);case I:case S:return new y(+c);case xr:return Ok(c,d);case Sf:case xf:case Pf:case _s:case k:case j:case Q:case ce:case Ne:return aI(c,d);case Qe:return new y;case Vt:case ui:return new y(c);case tr:return Nk(c);case un:return new y;case Bt:return Lk(c)}}a(Gk,"initCloneByTag");function Kk(c,f){var d=f.length;if(!d)return c;var y=d-1;return f[y]=(d>1?"& ":"")+f[y],f=f.join(d>2?", ":" "),c.replace(XM,`{
270
270
  /* [wrapped with `+f+`] */
271
- `)}a(Bk,"insertWrapDetails");function Hk(c){return Xe(c)||Ws(c)||!!(CC&&c&&c[CC])}a(Hk,"isFlattenable");function Jo(c,f){var d=typeof c;return f=f??Le,!!f&&(d=="number"||d!="symbol"&&ew.test(c))&&c>-1&&c%1==0&&c<f}a(Jo,"isIndex");function xi(c,f,d){if(!dn(d))return!1;var y=typeof f;return(y=="number"?Ui(d)&&Jo(f,d.length):y=="string"&&f in d)?qr(d[f],c):!1}a(xi,"isIterateeCall");function Kv(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ar(c)?!0:pd.test(c)||!nr.test(c)||f!=null&&c in Wt(f)}a(Kv,"isKey");function Wk(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}a(Wk,"isKeyable");function Xv(c){var f=Wd(c),d=x[f];if(typeof d!="function"||!(f in ft.prototype))return!1;if(c===d)return!0;var y=Hv(d);return!!y&&c===y[0]}a(Xv,"isLaziable");function Gk(c){return!!AC&&AC in c}a(Gk,"isMasked");var Kk=Ed?Zo:fT;function Uf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Kc;return c===d}a(Uf,"isPrototype");function AI(c){return c===c&&!dn(c)}a(AI,"isStrictComparable");function SI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}a(SI,"matchesStrictComparable");function Xk(c){var f=zd(c,function(y){return d.size===l&&d.clear(),y}),d=f.cache;return f}a(Xk,"memoizeCapped");function Qk(c,f){var d=c[1],y=f[1],b=d|y,P=b<(E|O|Z),N=y==Z&&d==U||y==Z&&d==he&&c[7].length<=f[8]||y==(Z|he)&&f[7].length<=f[8]&&d==U;if(!(P||N))return c;y&E&&(c[2]=f[2],b|=d&E?0:R);var F=f[3];if(F){var w=c[3];c[3]=w?oI(w,F,f[4]):F,c[4]=w?Fa(c[3],u):f[4]}return F=f[5],F&&(w=c[5],c[5]=w?aI(w,F,f[6]):F,c[6]=w?Fa(c[5],u):f[6]),F=f[7],F&&(c[7]=F),y&Z&&(c[8]=c[8]==null?f[8]:pi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=b,c}a(Qk,"mergeData");function qk(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}a(qk,"nativeKeysIn");function zk(c){return Ad.call(c)}a(zk,"objectToString");function xI(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var y=arguments,b=-1,P=jn(y.length-f,0),N=W(P);++b<P;)N[b]=y[f+b];b=-1;for(var F=W(f+1);++b<f;)F[b]=y[b];return F[f]=d(N),ir(c,this,F)}}a(xI,"overRest");function PI(c,f){return f.length<2?c:$s(c,Lr(f,0,-1))}a(PI,"parent");function Yk(c,f){for(var d=c.length,y=pi(f.length,d),b=ki(c);y--;){var P=f[y];c[y]=Jo(P,d)?b[P]:e}return c}a(Yk,"reorder");function Qv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}a(Qv,"safeGet");var CI=OI(qC),jf=u2||function(c,f){return Kn.setTimeout(c,f)},qv=OI(Ek);function II(c,f,d){var y=f+"";return qv(c,Bk(y,Jk(Uk(y),d)))}a(II,"setWrapToString");function OI(c){var f=0,d=0;return function(){var y=m2(),b=$e-(y-d);if(d=y,b>0){if(++f>=pt)return arguments[0]}else f=0;return c.apply(e,arguments)}}a(OI,"shortOut");function Kd(c,f){var d=-1,y=c.length,b=y-1;for(f=f===e?y:f;++d<f;){var P=Fv(d,b),N=c[P];c[P]=c[d],c[d]=N}return c.length=f,c}a(Kd,"shuffleSelf");var NI=Xk(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Zy,function(d,y,b,P){f.push(b?P.replace(QM,"$1"):y||d)}),f});function bo(c){if(typeof c=="string"||ar(c))return c;var f=c+"";return f=="0"&&1/c==-jt?"-0":f}a(bo,"toKey");function Hs(c){if(c!=null){try{return bd.call(c)}catch{}try{return c+""}catch{}}return""}a(Hs,"toSource");function Jk(c,f){return Cr(Fe,function(d){var y="_."+d[0];f&d[1]&&!hd(c,y)&&c.push(y)}),c.sort()}a(Jk,"updateWrapDetails");function LI(c){if(c instanceof ft)return c.clone();var f=new Or(c.__wrapped__,c.__chain__);return f.__actions__=ki(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}a(LI,"wrapperClone");function Zk(c,f,d){(d?xi(c,f,d):f===e)?f=1:f=jn(Ye(f),0);var y=c==null?0:c.length;if(!y||f<1)return[];for(var b=0,P=0,N=W(Od(y/f));b<y;)N[P++]=Lr(c,b,b+=f);return N}a(Zk,"chunk");function eU(c){for(var f=-1,d=c==null?0:c.length,y=0,b=[];++f<d;){var P=c[f];P&&(b[y++]=P)}return b}a(eU,"compact");function tU(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],y=c;y--;)f[y-1]=arguments[y];return La(Xe(d)?ki(d):[d],ii(f,1))}a(tU,"concat");var nU=it(function(c,f){return Pn(c)?Df(c,ii(f,1,Pn,!0)):[]}),iU=it(function(c,f){var d=Fr(f);return Pn(d)&&(d=e),Pn(c)?Df(c,ii(f,1,Pn,!0),Me(d,2)):[]}),rU=it(function(c,f){var d=Fr(f);return Pn(d)&&(d=e),Pn(c)?Df(c,ii(f,1,Pn,!0),e,d):[]});function oU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),Lr(c,f<0?0:f,y)):[]}a(oU,"drop");function aU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Lr(c,0,f<0?0:f)):[]}a(aU,"dropRight");function sU(c,f){return c&&c.length?kd(c,Me(f,3),!0,!0):[]}a(sU,"dropRightWhile");function cU(c,f){return c&&c.length?kd(c,Me(f,3),!0):[]}a(cU,"dropWhile");function lU(c,f,d,y){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&xi(c,f,d)&&(d=0,y=b),tk(c,f,d,y)):[]}a(lU,"fill");function FI(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=jn(y+b,0)),yd(c,Me(f,3),b)}a(FI,"findIndex");function RI(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y-1;return d!==e&&(b=Ye(d),b=d<0?jn(y+b,0):pi(b,y-1)),yd(c,Me(f,3),b,!0)}a(RI,"findLastIndex");function _I(c){var f=c==null?0:c.length;return f?ii(c,1):[]}a(_I,"flatten");function fU(c){var f=c==null?0:c.length;return f?ii(c,jt):[]}a(fU,"flattenDeep");function uU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ye(f),ii(c,f)):[]}a(uU,"flattenDepth");function pU(c){for(var f=-1,d=c==null?0:c.length,y={};++f<d;){var b=c[f];y[b[0]]=b[1]}return y}a(pU,"fromPairs");function DI(c){return c&&c.length?c[0]:e}a(DI,"head");function dU(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=jn(y+b,0)),Hc(c,f,b)}a(dU,"indexOf");function gU(c){var f=c==null?0:c.length;return f?Lr(c,0,-1):[]}a(gU,"initial");var mU=it(function(c){var f=sn(c,Mv);return f.length&&f[0]===c[0]?Cv(f):[]}),hU=it(function(c){var f=Fr(c),d=sn(c,Mv);return f===Fr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Cv(d,Me(f,2)):[]}),yU=it(function(c){var f=Fr(c),d=sn(c,Mv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Cv(d,e,f):[]});function vU(c,f){return c==null?"":d2.call(c,f)}a(vU,"join");function Fr(c){var f=c==null?0:c.length;return f?c[f-1]:e}a(Fr,"last");function TU(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y;return d!==e&&(b=Ye(d),b=b<0?jn(y+b,0):pi(b,y-1)),f===f?Yw(c,f,b):yd(c,gC,b,!0)}a(TU,"lastIndexOf");function EU(c,f){return c&&c.length?GC(c,Ye(f)):e}a(EU,"nth");var bU=it(VI);function VI(c,f){return c&&c.length&&f&&f.length?Lv(c,f):c}a(VI,"pullAll");function AU(c,f,d){return c&&c.length&&f&&f.length?Lv(c,f,Me(d,2)):c}a(AU,"pullAllBy");function SU(c,f,d){return c&&c.length&&f&&f.length?Lv(c,f,e,d):c}a(SU,"pullAllWith");var xU=Yo(function(c,f){var d=c==null?0:c.length,y=Av(c,f);return QC(c,sn(f,function(b){return Jo(b,d)?+b:b}).sort(rI)),y});function PU(c,f){var d=[];if(!(c&&c.length))return d;var y=-1,b=[],P=c.length;for(f=Me(f,3);++y<P;){var N=c[y];f(N,y,c)&&(d.push(N),b.push(y))}return QC(c,b),d}a(PU,"remove");function zv(c){return c==null?c:y2.call(c)}a(zv,"reverse");function CU(c,f,d){var y=c==null?0:c.length;return y?(d&&typeof d!="number"&&xi(c,f,d)?(f=0,d=y):(f=f==null?0:Ye(f),d=d===e?y:Ye(d)),Lr(c,f,d)):[]}a(CU,"slice");function IU(c,f){return wd(c,f)}a(IU,"sortedIndex");function OU(c,f,d){return _v(c,f,Me(d,2))}a(OU,"sortedIndexBy");function NU(c,f){var d=c==null?0:c.length;if(d){var y=wd(c,f);if(y<d&&qr(c[y],f))return y}return-1}a(NU,"sortedIndexOf");function LU(c,f){return wd(c,f,!0)}a(LU,"sortedLastIndex");function FU(c,f,d){return _v(c,f,Me(d,2),!0)}a(FU,"sortedLastIndexBy");function RU(c,f){var d=c==null?0:c.length;if(d){var y=wd(c,f,!0)-1;if(qr(c[y],f))return y}return-1}a(RU,"sortedLastIndexOf");function _U(c){return c&&c.length?zC(c):[]}a(_U,"sortedUniq");function DU(c,f){return c&&c.length?zC(c,Me(f,2)):[]}a(DU,"sortedUniqBy");function VU(c){var f=c==null?0:c.length;return f?Lr(c,1,f):[]}a(VU,"tail");function MU(c,f,d){return c&&c.length?(f=d||f===e?1:Ye(f),Lr(c,0,f<0?0:f)):[]}a(MU,"take");function wU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Lr(c,f<0?0:f,y)):[]}a(wU,"takeRight");function kU(c,f){return c&&c.length?kd(c,Me(f,3),!1,!0):[]}a(kU,"takeRightWhile");function UU(c,f){return c&&c.length?kd(c,Me(f,3)):[]}a(UU,"takeWhile");var jU=it(function(c){return Va(ii(c,1,Pn,!0))}),$U=it(function(c){var f=Fr(c);return Pn(f)&&(f=e),Va(ii(c,1,Pn,!0),Me(f,2))}),BU=it(function(c){var f=Fr(c);return f=typeof f=="function"?f:e,Va(ii(c,1,Pn,!0),e,f)});function HU(c){return c&&c.length?Va(c):[]}a(HU,"uniq");function WU(c,f){return c&&c.length?Va(c,Me(f,2)):[]}a(WU,"uniqBy");function GU(c,f){return f=typeof f=="function"?f:e,c&&c.length?Va(c,e,f):[]}a(GU,"uniqWith");function Yv(c){if(!(c&&c.length))return[];var f=0;return c=Na(c,function(d){if(Pn(d))return f=jn(d.length,f),!0}),gv(f,function(d){return sn(c,uv(d))})}a(Yv,"unzip");function MI(c,f){if(!(c&&c.length))return[];var d=Yv(c);return f==null?d:sn(d,function(y){return ir(f,e,y)})}a(MI,"unzipWith");var KU=it(function(c,f){return Pn(c)?Df(c,f):[]}),XU=it(function(c){return Vv(Na(c,Pn))}),QU=it(function(c){var f=Fr(c);return Pn(f)&&(f=e),Vv(Na(c,Pn),Me(f,2))}),qU=it(function(c){var f=Fr(c);return f=typeof f=="function"?f:e,Vv(Na(c,Pn),e,f)}),zU=it(Yv);function YU(c,f){return eI(c||[],f||[],_f)}a(YU,"zipObject");function JU(c,f){return eI(c||[],f||[],wf)}a(JU,"zipObjectDeep");var ZU=it(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,MI(c,d)});function wI(c){var f=x(c);return f.__chain__=!0,f}a(wI,"chain");function ej(c,f){return f(c),c}a(ej,"tap");function Xd(c,f){return f(c)}a(Xd,"thru");var tj=Yo(function(c){var f=c.length,d=f?c[0]:0,y=this.__wrapped__,b=a(function(P){return Av(P,c)},"interceptor");return f>1||this.__actions__.length||!(y instanceof ft)||!Jo(d)?this.thru(b):(y=y.slice(d,+d+(f?1:0)),y.__actions__.push({func:Xd,args:[b],thisArg:e}),new Or(y,this.__chain__).thru(function(P){return f&&!P.length&&P.push(e),P}))});function nj(){return wI(this)}a(nj,"wrapperChain");function ij(){return new Or(this.value(),this.__chain__)}a(ij,"wrapperCommit");function rj(){this.__values__===e&&(this.__values__=YI(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}a(rj,"wrapperNext");function oj(){return this}a(oj,"wrapperToIterator");function aj(c){for(var f,d=this;d instanceof Rd;){var y=LI(d);y.__index__=0,y.__values__=e,f?b.__wrapped__=y:f=y;var b=y;d=d.__wrapped__}return b.__wrapped__=c,f}a(aj,"wrapperPlant");function sj(){var c=this.__wrapped__;if(c instanceof ft){var f=c;return this.__actions__.length&&(f=new ft(this)),f=f.reverse(),f.__actions__.push({func:Xd,args:[zv],thisArg:e}),new Or(f,this.__chain__)}return this.thru(zv)}a(sj,"wrapperReverse");function cj(){return ZC(this.__wrapped__,this.__actions__)}a(cj,"wrapperValue");var lj=Ud(function(c,f,d){Lt.call(c,d)?++c[d]:qo(c,d,1)});function fj(c,f,d){var y=Xe(c)?pC:ek;return d&&xi(c,f,d)&&(f=e),y(c,Me(f,3))}a(fj,"every");function uj(c,f){var d=Xe(c)?Na:MC;return d(c,Me(f,3))}a(uj,"filter");var pj=fI(FI),dj=fI(RI);function gj(c,f){return ii(Qd(c,f),1)}a(gj,"flatMap");function mj(c,f){return ii(Qd(c,f),jt)}a(mj,"flatMapDeep");function hj(c,f,d){return d=d===e?1:Ye(d),ii(Qd(c,f),d)}a(hj,"flatMapDepth");function kI(c,f){var d=Xe(c)?Cr:Da;return d(c,Me(f,3))}a(kI,"forEach");function UI(c,f){var d=Xe(c)?Dw:VC;return d(c,Me(f,3))}a(UI,"forEachRight");var yj=Ud(function(c,f,d){Lt.call(c,d)?c[d].push(f):qo(c,d,[f])});function vj(c,f,d,y){c=Ui(c)?c:el(c),d=d&&!y?Ye(d):0;var b=c.length;return d<0&&(d=jn(b+d,0)),Zd(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&Hc(c,f,d)>-1}a(vj,"includes");var Tj=it(function(c,f,d){var y=-1,b=typeof f=="function",P=Ui(c)?W(c.length):[];return Da(c,function(N){P[++y]=b?ir(f,N,d):Vf(N,f,d)}),P}),Ej=Ud(function(c,f,d){qo(c,d,f)});function Qd(c,f){var d=Xe(c)?sn:BC;return d(c,Me(f,3))}a(Qd,"map");function bj(c,f,d,y){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=y?e:d,Xe(d)||(d=d==null?[]:[d]),KC(c,f,d))}a(bj,"orderBy");var Aj=Ud(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Sj(c,f,d){var y=Xe(c)?lv:hC,b=arguments.length<3;return y(c,Me(f,4),d,b,Da)}a(Sj,"reduce");function xj(c,f,d){var y=Xe(c)?Vw:hC,b=arguments.length<3;return y(c,Me(f,4),d,b,VC)}a(xj,"reduceRight");function Pj(c,f){var d=Xe(c)?Na:MC;return d(c,Yd(Me(f,3)))}a(Pj,"reject");function Cj(c){var f=Xe(c)?FC:vk;return f(c)}a(Cj,"sample");function Ij(c,f,d){(d?xi(c,f,d):f===e)?f=1:f=Ye(f);var y=Xe(c)?q2:Tk;return y(c,f)}a(Ij,"sampleSize");function Oj(c){var f=Xe(c)?z2:bk;return f(c)}a(Oj,"shuffle");function Nj(c){if(c==null)return 0;if(Ui(c))return Zd(c)?Gc(c):c.length;var f=di(c);return f==Qe||f==un?c.size:Ov(c).length}a(Nj,"size");function Lj(c,f,d){var y=Xe(c)?fv:Ak;return d&&xi(c,f,d)&&(f=e),y(c,Me(f,3))}a(Lj,"some");var Fj=it(function(c,f){if(c==null)return[];var d=f.length;return d>1&&xi(c,f[0],f[1])?f=[]:d>2&&xi(f[0],f[1],f[2])&&(f=[f[0]]),KC(c,ii(f,1),[])}),qd=f2||function(){return Kn.Date.now()};function Rj(c,f){if(typeof f!="function")throw new Ir(r);return c=Ye(c),function(){if(--c<1)return f.apply(this,arguments)}}a(Rj,"after");function jI(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,zo(c,Z,e,e,e,e,f)}a(jI,"ary");function $I(c,f){var d;if(typeof f!="function")throw new Ir(r);return c=Ye(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}a($I,"before");var Jv=it(function(c,f,d){var y=E;if(d.length){var b=Fa(d,Jc(Jv));y|=G}return zo(c,y,f,d,b)}),BI=it(function(c,f,d){var y=E|O;if(d.length){var b=Fa(d,Jc(BI));y|=G}return zo(f,y,c,d,b)});function HI(c,f,d){f=d?e:f;var y=zo(c,U,e,e,e,e,e,f);return y.placeholder=HI.placeholder,y}a(HI,"curry");function WI(c,f,d){f=d?e:f;var y=zo(c,j,e,e,e,e,e,f);return y.placeholder=WI.placeholder,y}a(WI,"curryRight");function GI(c,f,d){var y,b,P,N,F,w,q=0,z=!1,ee=!1,de=!0;if(typeof c!="function")throw new Ir(r);f=Rr(f)||0,dn(d)&&(z=!!d.leading,ee="maxWait"in d,P=ee?jn(Rr(d.maxWait)||0,f):P,de="trailing"in d?!!d.trailing:de);function Oe(Cn){var zr=y,ta=b;return y=b=e,q=Cn,N=c.apply(ta,zr),N}a(Oe,"invokeFunc");function ke(Cn){return q=Cn,F=jf(ct,f),z?Oe(Cn):N}a(ke,"leadingEdge");function et(Cn){var zr=Cn-w,ta=Cn-q,fO=f-zr;return ee?pi(fO,P-ta):fO}a(et,"remainingWait");function Ue(Cn){var zr=Cn-w,ta=Cn-q;return w===e||zr>=f||zr<0||ee&&ta>=P}a(Ue,"shouldInvoke");function ct(){var Cn=qd();if(Ue(Cn))return dt(Cn);F=jf(ct,et(Cn))}a(ct,"timerExpired");function dt(Cn){return F=e,de&&y?Oe(Cn):(y=b=e,N)}a(dt,"trailingEdge");function sr(){F!==e&&tI(F),q=0,y=w=b=F=e}a(sr,"cancel");function Pi(){return F===e?N:dt(qd())}a(Pi,"flush");function cr(){var Cn=qd(),zr=Ue(Cn);if(y=arguments,b=this,w=Cn,zr){if(F===e)return ke(w);if(ee)return tI(F),F=jf(ct,f),Oe(w)}return F===e&&(F=jf(ct,f)),N}return a(cr,"debounced"),cr.cancel=sr,cr.flush=Pi,cr}a(GI,"debounce");var _j=it(function(c,f){return DC(c,1,f)}),Dj=it(function(c,f,d){return DC(c,Rr(f)||0,d)});function Vj(c){return zo(c,De)}a(Vj,"flip");function zd(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Ir(r);var d=a(function(){var y=arguments,b=f?f.apply(this,y):y[0],P=d.cache;if(P.has(b))return P.get(b);var N=c.apply(this,y);return d.cache=P.set(b,N)||P,N},"memoized");return d.cache=new(zd.Cache||Qo),d}a(zd,"memoize"),zd.Cache=Qo;function Yd(c){if(typeof c!="function")throw new Ir(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}a(Yd,"negate");function Mj(c){return $I(2,c)}a(Mj,"once");var wj=Sk(function(c,f){f=f.length==1&&Xe(f[0])?sn(f[0],rr(Me())):sn(ii(f,1),rr(Me()));var d=f.length;return it(function(y){for(var b=-1,P=pi(y.length,d);++b<P;)y[b]=f[b].call(this,y[b]);return ir(c,this,y)})}),Zv=it(function(c,f){var d=Fa(f,Jc(Zv));return zo(c,G,e,f,d)}),KI=it(function(c,f){var d=Fa(f,Jc(KI));return zo(c,re,e,f,d)}),kj=Yo(function(c,f){return zo(c,he,e,e,e,f)});function Uj(c,f){if(typeof c!="function")throw new Ir(r);return f=f===e?f:Ye(f),it(c,f)}a(Uj,"rest");function jj(c,f){if(typeof c!="function")throw new Ir(r);return f=f==null?0:jn(Ye(f),0),it(function(d){var y=d[f],b=wa(d,0,f);return y&&La(b,y),ir(c,this,b)})}a(jj,"spread");function $j(c,f,d){var y=!0,b=!0;if(typeof c!="function")throw new Ir(r);return dn(d)&&(y="leading"in d?!!d.leading:y,b="trailing"in d?!!d.trailing:b),GI(c,f,{leading:y,maxWait:f,trailing:b})}a($j,"throttle");function Bj(c){return jI(c,1)}a(Bj,"unary");function Hj(c,f){return Zv(wv(f),c)}a(Hj,"wrap");function Wj(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}a(Wj,"castArray");function Gj(c){return Nr(c,m)}a(Gj,"clone");function Kj(c,f){return f=typeof f=="function"?f:e,Nr(c,m,f)}a(Kj,"cloneWith");function Xj(c){return Nr(c,p|m)}a(Xj,"cloneDeep");function Qj(c,f){return f=typeof f=="function"?f:e,Nr(c,p|m,f)}a(Qj,"cloneDeepWith");function qj(c,f){return f==null||_C(c,f,Xn(f))}a(qj,"conformsTo");function qr(c,f){return c===f||c!==c&&f!==f}a(qr,"eq");var zj=Hd(Pv),Yj=Hd(function(c,f){return c>=f}),Ws=UC(function(){return arguments}())?UC:function(c){return mn(c)&&Lt.call(c,"callee")&&!PC.call(c,"callee")},Xe=W.isArray,Jj=aC?rr(aC):ak;function Ui(c){return c!=null&&Jd(c.length)&&!Zo(c)}a(Ui,"isArrayLike");function Pn(c){return mn(c)&&Ui(c)}a(Pn,"isArrayLikeObject");function Zj(c){return c===!0||c===!1||mn(c)&&Si(c)==I}a(Zj,"isBoolean");var ka=p2||fT,e$=sC?rr(sC):sk;function t$(c){return mn(c)&&c.nodeType===1&&!$f(c)}a(t$,"isElement");function n$(c){if(c==null)return!0;if(Ui(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||ka(c)||Zc(c)||Ws(c)))return!c.length;var f=di(c);if(f==Qe||f==un)return!c.size;if(Uf(c))return!Ov(c).length;for(var d in c)if(Lt.call(c,d))return!1;return!0}a(n$,"isEmpty");function i$(c,f){return Mf(c,f)}a(i$,"isEqual");function r$(c,f,d){d=typeof d=="function"?d:e;var y=d?d(c,f):e;return y===e?Mf(c,f,e,d):!!y}a(r$,"isEqualWith");function eT(c){if(!mn(c))return!1;var f=Si(c);return f==M||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!$f(c)}a(eT,"isError");function o$(c){return typeof c=="number"&&IC(c)}a(o$,"isFinite");function Zo(c){if(!dn(c))return!1;var f=Si(c);return f==Ve||f==Nt||f==st||f==ni}a(Zo,"isFunction");function XI(c){return typeof c=="number"&&c==Ye(c)}a(XI,"isInteger");function Jd(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Le}a(Jd,"isLength");function dn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}a(dn,"isObject");function mn(c){return c!=null&&typeof c=="object"}a(mn,"isObjectLike");var QI=cC?rr(cC):lk;function a$(c,f){return c===f||Iv(c,f,Wv(f))}a(a$,"isMatch");function s$(c,f,d){return d=typeof d=="function"?d:e,Iv(c,f,Wv(f),d)}a(s$,"isMatchWith");function c$(c){return qI(c)&&c!=+c}a(c$,"isNaN");function l$(c){if(Kk(c))throw new Ke(i);return jC(c)}a(l$,"isNative");function f$(c){return c===null}a(f$,"isNull");function u$(c){return c==null}a(u$,"isNil");function qI(c){return typeof c=="number"||mn(c)&&Si(c)==Vt}a(qI,"isNumber");function $f(c){if(!mn(c)||Si(c)!=on)return!1;var f=Pd(c);if(f===null)return!0;var d=Lt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&bd.call(d)==a2}a($f,"isPlainObject");var tT=lC?rr(lC):fk;function p$(c){return XI(c)&&c>=-Le&&c<=Le}a(p$,"isSafeInteger");var zI=fC?rr(fC):uk;function Zd(c){return typeof c=="string"||!Xe(c)&&mn(c)&&Si(c)==ui}a(Zd,"isString");function ar(c){return typeof c=="symbol"||mn(c)&&Si(c)==Bt}a(ar,"isSymbol");var Zc=uC?rr(uC):pk;function d$(c){return c===e}a(d$,"isUndefined");function g$(c){return mn(c)&&di(c)==wi}a(g$,"isWeakMap");function m$(c){return mn(c)&&Si(c)==Af}a(m$,"isWeakSet");var h$=Hd(Nv),y$=Hd(function(c,f){return c<=f});function YI(c){if(!c)return[];if(Ui(c))return Zd(c)?Xr(c):ki(c);if(Of&&c[Of])return Qw(c[Of]());var f=di(c),d=f==Qe?hv:f==un?vd:el;return d(c)}a(YI,"toArray");function ea(c){if(!c)return c===0?c:0;if(c=Rr(c),c===jt||c===-jt){var f=c<0?-1:1;return f*Ai}return c===c?c:0}a(ea,"toFinite");function Ye(c){var f=ea(c),d=f%1;return f===f?d?f-d:f:0}a(Ye,"toInteger");function JI(c){return c?js(Ye(c),0,Dt):0}a(JI,"toLength");function Rr(c){if(typeof c=="number")return c;if(ar(c))return Ct;if(dn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=dn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=yC(c);var d=YM.test(c);return d||ZM.test(c)?Fw(c.slice(2),d?2:8):zM.test(c)?Ct:+c}a(Rr,"toNumber");function ZI(c){return Eo(c,ji(c))}a(ZI,"toPlainObject");function v$(c){return c?js(Ye(c),-Le,Le):c===0?c:0}a(v$,"toSafeInteger");function It(c){return c==null?"":or(c)}a(It,"toString");var T$=zc(function(c,f){if(Uf(f)||Ui(f)){Eo(f,Xn(f),c);return}for(var d in f)Lt.call(f,d)&&_f(c,d,f[d])}),eO=zc(function(c,f){Eo(f,ji(f),c)}),eg=zc(function(c,f,d,y){Eo(f,ji(f),c,y)}),E$=zc(function(c,f,d,y){Eo(f,Xn(f),c,y)}),b$=Yo(Av);function A$(c,f){var d=qc(c);return f==null?d:RC(d,f)}a(A$,"create");var S$=it(function(c,f){c=Wt(c);var d=-1,y=f.length,b=y>2?f[2]:e;for(b&&xi(f[0],f[1],b)&&(y=1);++d<y;)for(var P=f[d],N=ji(P),F=-1,w=N.length;++F<w;){var q=N[F],z=c[q];(z===e||qr(z,Kc[q])&&!Lt.call(c,q))&&(c[q]=P[q])}return c}),x$=it(function(c){return c.push(e,yI),ir(tO,e,c)});function P$(c,f){return dC(c,Me(f,3),To)}a(P$,"findKey");function C$(c,f){return dC(c,Me(f,3),xv)}a(C$,"findLastKey");function I$(c,f){return c==null?c:Sv(c,Me(f,3),ji)}a(I$,"forIn");function O$(c,f){return c==null?c:wC(c,Me(f,3),ji)}a(O$,"forInRight");function N$(c,f){return c&&To(c,Me(f,3))}a(N$,"forOwn");function L$(c,f){return c&&xv(c,Me(f,3))}a(L$,"forOwnRight");function F$(c){return c==null?[]:Vd(c,Xn(c))}a(F$,"functions");function R$(c){return c==null?[]:Vd(c,ji(c))}a(R$,"functionsIn");function nT(c,f,d){var y=c==null?e:$s(c,f);return y===e?d:y}a(nT,"get");function _$(c,f){return c!=null&&EI(c,f,nk)}a(_$,"has");function iT(c,f){return c!=null&&EI(c,f,ik)}a(iT,"hasIn");var D$=pI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Ad.call(f)),c[f]=d},oT($i)),V$=pI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Ad.call(f)),Lt.call(c,f)?c[f].push(d):c[f]=[d]},Me),M$=it(Vf);function Xn(c){return Ui(c)?LC(c):Ov(c)}a(Xn,"keys");function ji(c){return Ui(c)?LC(c,!0):dk(c)}a(ji,"keysIn");function w$(c,f){var d={};return f=Me(f,3),To(c,function(y,b,P){qo(d,f(y,b,P),y)}),d}a(w$,"mapKeys");function k$(c,f){var d={};return f=Me(f,3),To(c,function(y,b,P){qo(d,b,f(y,b,P))}),d}a(k$,"mapValues");var U$=zc(function(c,f,d){Md(c,f,d)}),tO=zc(function(c,f,d,y){Md(c,f,d,y)}),j$=Yo(function(c,f){var d={};if(c==null)return d;var y=!1;f=sn(f,function(P){return P=Ma(P,c),y||(y=P.length>1),P}),Eo(c,Bv(c),d),y&&(d=Nr(d,p|g|m,Dk));for(var b=f.length;b--;)Dv(d,f[b]);return d});function $$(c,f){return nO(c,Yd(Me(f)))}a($$,"omitBy");var B$=Yo(function(c,f){return c==null?{}:mk(c,f)});function nO(c,f){if(c==null)return{};var d=sn(Bv(c),function(y){return[y]});return f=Me(f),XC(c,d,function(y,b){return f(y,b[0])})}a(nO,"pickBy");function H$(c,f,d){f=Ma(f,c);var y=-1,b=f.length;for(b||(b=1,c=e);++y<b;){var P=c==null?e:c[bo(f[y])];P===e&&(y=b,P=d),c=Zo(P)?P.call(c):P}return c}a(H$,"result");function W$(c,f,d){return c==null?c:wf(c,f,d)}a(W$,"set");function G$(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:wf(c,f,d,y)}a(G$,"setWith");var iO=mI(Xn),rO=mI(ji);function K$(c,f,d){var y=Xe(c),b=y||ka(c)||Zc(c);if(f=Me(f,4),d==null){var P=c&&c.constructor;b?d=y?new P:[]:dn(c)?d=Zo(P)?qc(Pd(c)):{}:d={}}return(b?Cr:To)(c,function(N,F,w){return f(d,N,F,w)}),d}a(K$,"transform");function X$(c,f){return c==null?!0:Dv(c,f)}a(X$,"unset");function Q$(c,f,d){return c==null?c:JC(c,f,wv(d))}a(Q$,"update");function q$(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:JC(c,f,wv(d),y)}a(q$,"updateWith");function el(c){return c==null?[]:mv(c,Xn(c))}a(el,"values");function z$(c){return c==null?[]:mv(c,ji(c))}a(z$,"valuesIn");function Y$(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Rr(d),d=d===d?d:0),f!==e&&(f=Rr(f),f=f===f?f:0),js(Rr(c),f,d)}a(Y$,"clamp");function J$(c,f,d){return f=ea(f),d===e?(d=f,f=0):d=ea(d),c=Rr(c),rk(c,f,d)}a(J$,"inRange");function Z$(c,f,d){if(d&&typeof d!="boolean"&&xi(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=ea(c),f===e?(f=c,c=0):f=ea(f)),c>f){var y=c;c=f,f=y}if(d||c%1||f%1){var b=OC();return pi(c+b*(f-c+Lw("1e-"+((b+"").length-1))),f)}return Fv(c,f)}a(Z$,"random");var e4=Yc(function(c,f,d){return f=f.toLowerCase(),c+(d?oO(f):f)});function oO(c){return rT(It(c).toLowerCase())}a(oO,"capitalize");function aO(c){return c=It(c),c&&c.replace(tw,Hw).replace(Ew,"")}a(aO,"deburr");function t4(c,f,d){c=It(c),f=or(f);var y=c.length;d=d===e?y:js(Ye(d),0,y);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}a(t4,"endsWith");function n4(c){return c=It(c),c&&Ie.test(c)?c.replace(ve,Ww):c}a(n4,"escape");function i4(c){return c=It(c),c&&$M.test(c)?c.replace(Cf,"\\$&"):c}a(i4,"escapeRegExp");var r4=Yc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),o4=Yc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),a4=lI("toLowerCase");function s4(c,f,d){c=It(c),f=Ye(f);var y=f?Gc(c):0;if(!f||y>=f)return c;var b=(f-y)/2;return Bd(Nd(b),d)+c+Bd(Od(b),d)}a(s4,"pad");function c4(c,f,d){c=It(c),f=Ye(f);var y=f?Gc(c):0;return f&&y<f?c+Bd(f-y,d):c}a(c4,"padEnd");function l4(c,f,d){c=It(c),f=Ye(f);var y=f?Gc(c):0;return f&&y<f?Bd(f-y,d)+c:c}a(l4,"padStart");function f4(c,f,d){return d||f==null?f=0:f&&(f=+f),h2(It(c).replace(ev,""),f||0)}a(f4,"parseInt");function u4(c,f,d){return(d?xi(c,f,d):f===e)?f=1:f=Ye(f),Rv(It(c),f)}a(u4,"repeat");function p4(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}a(p4,"replace");var d4=Yc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function g4(c,f,d){return d&&typeof d!="number"&&xi(c,f,d)&&(f=d=e),d=d===e?Dt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!tT(f))&&(f=or(f),!f&&Wc(c))?wa(Xr(c),0,d):c.split(f,d)):[]}a(g4,"split");var m4=Yc(function(c,f,d){return c+(d?" ":"")+rT(f)});function h4(c,f,d){return c=It(c),d=d==null?0:js(Ye(d),0,c.length),f=or(f),c.slice(d,d+f.length)==f}a(h4,"startsWith");function y4(c,f,d){var y=x.templateSettings;d&&xi(c,f,d)&&(f=e),c=It(c),f=eg({},f,y,hI);var b=eg({},f.imports,y.imports,hI),P=Xn(b),N=mv(b,P),F,w,q=0,z=f.interpolate||dd,ee="__p += '",de=yv((f.escape||dd).source+"|"+z.source+"|"+(z===an?qM:dd).source+"|"+(f.evaluate||dd).source+"|$","g"),Oe="//# sourceURL="+(Lt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pw+"]")+`
272
- `;c.replace(de,function(Ue,ct,dt,sr,Pi,cr){return dt||(dt=sr),ee+=c.slice(q,cr).replace(nw,Gw),ct&&(F=!0,ee+=`' +
271
+ `)}a(Kk,"insertWrapDetails");function Xk(c){return Xe(c)||Bs(c)||!!(NC&&c&&c[NC])}a(Xk,"isFlattenable");function Yo(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&rw.test(c))&&c>-1&&c%1==0&&c<f}a(Yo,"isIndex");function xi(c,f,d){if(!dn(d))return!1;var y=typeof f;return(y=="number"?Ui(d)&&Yo(f,d.length):y=="string"&&f in d)?qr(d[f],c):!1}a(xi,"isIterateeCall");function Kv(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ar(c)?!0:dd.test(c)||!nr.test(c)||f!=null&&c in Wt(f)}a(Kv,"isKey");function Qk(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}a(Qk,"isKeyable");function Xv(c){var f=Gd(c),d=x[f];if(typeof d!="function"||!(f in ft.prototype))return!1;if(c===d)return!0;var y=Hv(d);return!!y&&c===y[0]}a(Xv,"isLaziable");function qk(c){return!!PC&&PC in c}a(qk,"isMasked");var zk=bd?Jo:fT;function Uf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Hc;return c===d}a(Uf,"isPrototype");function PI(c){return c===c&&!dn(c)}a(PI,"isStrictComparable");function CI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}a(CI,"matchesStrictComparable");function Yk(c){var f=Yd(c,function(y){return d.size===l&&d.clear(),y}),d=f.cache;return f}a(Yk,"memoizeCapped");function Jk(c,f){var d=c[1],y=f[1],b=d|y,P=b<(E|O|Z),N=y==Z&&d==U||y==Z&&d==ne&&c[7].length<=f[8]||y==(Z|ne)&&f[7].length<=f[8]&&d==U;if(!(P||N))return c;y&E&&(c[2]=f[2],b|=d&E?0:R);var F=f[3];if(F){var w=c[3];c[3]=w?cI(w,F,f[4]):F,c[4]=w?Na(c[3],u):f[4]}return F=f[5],F&&(w=c[5],c[5]=w?lI(w,F,f[6]):F,c[6]=w?Na(c[5],u):f[6]),F=f[7],F&&(c[7]=F),y&Z&&(c[8]=c[8]==null?f[8]:pi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=b,c}a(Jk,"mergeData");function Zk(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}a(Zk,"nativeKeysIn");function eU(c){return Sd.call(c)}a(eU,"objectToString");function II(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var y=arguments,b=-1,P=jn(y.length-f,0),N=G(P);++b<P;)N[b]=y[f+b];b=-1;for(var F=G(f+1);++b<f;)F[b]=y[b];return F[f]=d(N),ir(c,this,F)}}a(II,"overRest");function OI(c,f){return f.length<2?c:Us(c,Lr(f,0,-1))}a(OI,"parent");function tU(c,f){for(var d=c.length,y=pi(f.length,d),b=ki(c);y--;){var P=f[y];c[y]=Yo(P,d)?b[P]:e}return c}a(tU,"reorder");function Qv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}a(Qv,"safeGet");var NI=FI(JC),jf=m2||function(c,f){return Kn.setTimeout(c,f)},qv=FI(xk);function LI(c,f,d){var y=f+"";return qv(c,Kk(y,nU(Hk(y),d)))}a(LI,"setWrapToString");function FI(c){var f=0,d=0;return function(){var y=E2(),b=$e-(y-d);if(d=y,b>0){if(++f>=dt)return arguments[0]}else f=0;return c.apply(e,arguments)}}a(FI,"shortOut");function Xd(c,f){var d=-1,y=c.length,b=y-1;for(f=f===e?y:f;++d<f;){var P=Fv(d,b),N=c[P];c[P]=c[d],c[d]=N}return c.length=f,c}a(Xd,"shuffleSelf");var RI=Yk(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Zy,function(d,y,b,P){f.push(b?P.replace(JM,"$1"):y||d)}),f});function Eo(c){if(typeof c=="string"||ar(c))return c;var f=c+"";return f=="0"&&1/c==-jt?"-0":f}a(Eo,"toKey");function $s(c){if(c!=null){try{return Ad.call(c)}catch{}try{return c+""}catch{}}return""}a($s,"toSource");function nU(c,f){return Cr(_e,function(d){var y="_."+d[0];f&d[1]&&!yd(c,y)&&c.push(y)}),c.sort()}a(nU,"updateWrapDetails");function _I(c){if(c instanceof ft)return c.clone();var f=new Or(c.__wrapped__,c.__chain__);return f.__actions__=ki(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}a(_I,"wrapperClone");function iU(c,f,d){(d?xi(c,f,d):f===e)?f=1:f=jn(Ye(f),0);var y=c==null?0:c.length;if(!y||f<1)return[];for(var b=0,P=0,N=G(Nd(y/f));b<y;)N[P++]=Lr(c,b,b+=f);return N}a(iU,"chunk");function rU(c){for(var f=-1,d=c==null?0:c.length,y=0,b=[];++f<d;){var P=c[f];P&&(b[y++]=P)}return b}a(rU,"compact");function oU(){var c=arguments.length;if(!c)return[];for(var f=G(c-1),d=arguments[0],y=c;y--;)f[y-1]=arguments[y];return Oa(Xe(d)?ki(d):[d],ii(f,1))}a(oU,"concat");var aU=it(function(c,f){return Pn(c)?Df(c,ii(f,1,Pn,!0)):[]}),sU=it(function(c,f){var d=Fr(f);return Pn(d)&&(d=e),Pn(c)?Df(c,ii(f,1,Pn,!0),Me(d,2)):[]}),cU=it(function(c,f){var d=Fr(f);return Pn(d)&&(d=e),Pn(c)?Df(c,ii(f,1,Pn,!0),e,d):[]});function lU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),Lr(c,f<0?0:f,y)):[]}a(lU,"drop");function fU(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Lr(c,0,f<0?0:f)):[]}a(fU,"dropRight");function uU(c,f){return c&&c.length?Ud(c,Me(f,3),!0,!0):[]}a(uU,"dropRightWhile");function pU(c,f){return c&&c.length?Ud(c,Me(f,3),!0):[]}a(pU,"dropWhile");function dU(c,f,d,y){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&xi(c,f,d)&&(d=0,y=b),ok(c,f,d,y)):[]}a(dU,"fill");function DI(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=jn(y+b,0)),vd(c,Me(f,3),b)}a(DI,"findIndex");function VI(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y-1;return d!==e&&(b=Ye(d),b=d<0?jn(y+b,0):pi(b,y-1)),vd(c,Me(f,3),b,!0)}a(VI,"findLastIndex");function MI(c){var f=c==null?0:c.length;return f?ii(c,1):[]}a(MI,"flatten");function gU(c){var f=c==null?0:c.length;return f?ii(c,jt):[]}a(gU,"flattenDeep");function mU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ye(f),ii(c,f)):[]}a(mU,"flattenDepth");function hU(c){for(var f=-1,d=c==null?0:c.length,y={};++f<d;){var b=c[f];y[b[0]]=b[1]}return y}a(hU,"fromPairs");function wI(c){return c&&c.length?c[0]:e}a(wI,"head");function yU(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=d==null?0:Ye(d);return b<0&&(b=jn(y+b,0)),jc(c,f,b)}a(yU,"indexOf");function vU(c){var f=c==null?0:c.length;return f?Lr(c,0,-1):[]}a(vU,"initial");var TU=it(function(c){var f=sn(c,Mv);return f.length&&f[0]===c[0]?Cv(f):[]}),EU=it(function(c){var f=Fr(c),d=sn(c,Mv);return f===Fr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Cv(d,Me(f,2)):[]}),bU=it(function(c){var f=Fr(c),d=sn(c,Mv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Cv(d,e,f):[]});function AU(c,f){return c==null?"":y2.call(c,f)}a(AU,"join");function Fr(c){var f=c==null?0:c.length;return f?c[f-1]:e}a(Fr,"last");function SU(c,f,d){var y=c==null?0:c.length;if(!y)return-1;var b=y;return d!==e&&(b=Ye(d),b=b<0?jn(y+b,0):pi(b,y-1)),f===f?t2(c,f,b):vd(c,yC,b,!0)}a(SU,"lastIndexOf");function xU(c,f){return c&&c.length?QC(c,Ye(f)):e}a(xU,"nth");var PU=it(kI);function kI(c,f){return c&&c.length&&f&&f.length?Lv(c,f):c}a(kI,"pullAll");function CU(c,f,d){return c&&c.length&&f&&f.length?Lv(c,f,Me(d,2)):c}a(CU,"pullAllBy");function IU(c,f,d){return c&&c.length&&f&&f.length?Lv(c,f,e,d):c}a(IU,"pullAllWith");var OU=zo(function(c,f){var d=c==null?0:c.length,y=Av(c,f);return YC(c,sn(f,function(b){return Yo(b,d)?+b:b}).sort(sI)),y});function NU(c,f){var d=[];if(!(c&&c.length))return d;var y=-1,b=[],P=c.length;for(f=Me(f,3);++y<P;){var N=c[y];f(N,y,c)&&(d.push(N),b.push(y))}return YC(c,b),d}a(NU,"remove");function zv(c){return c==null?c:A2.call(c)}a(zv,"reverse");function LU(c,f,d){var y=c==null?0:c.length;return y?(d&&typeof d!="number"&&xi(c,f,d)?(f=0,d=y):(f=f==null?0:Ye(f),d=d===e?y:Ye(d)),Lr(c,f,d)):[]}a(LU,"slice");function FU(c,f){return kd(c,f)}a(FU,"sortedIndex");function RU(c,f,d){return _v(c,f,Me(d,2))}a(RU,"sortedIndexBy");function _U(c,f){var d=c==null?0:c.length;if(d){var y=kd(c,f);if(y<d&&qr(c[y],f))return y}return-1}a(_U,"sortedIndexOf");function DU(c,f){return kd(c,f,!0)}a(DU,"sortedLastIndex");function VU(c,f,d){return _v(c,f,Me(d,2),!0)}a(VU,"sortedLastIndexBy");function MU(c,f){var d=c==null?0:c.length;if(d){var y=kd(c,f,!0)-1;if(qr(c[y],f))return y}return-1}a(MU,"sortedLastIndexOf");function wU(c){return c&&c.length?ZC(c):[]}a(wU,"sortedUniq");function kU(c,f){return c&&c.length?ZC(c,Me(f,2)):[]}a(kU,"sortedUniqBy");function UU(c){var f=c==null?0:c.length;return f?Lr(c,1,f):[]}a(UU,"tail");function jU(c,f,d){return c&&c.length?(f=d||f===e?1:Ye(f),Lr(c,0,f<0?0:f)):[]}a(jU,"take");function $U(c,f,d){var y=c==null?0:c.length;return y?(f=d||f===e?1:Ye(f),f=y-f,Lr(c,f<0?0:f,y)):[]}a($U,"takeRight");function BU(c,f){return c&&c.length?Ud(c,Me(f,3),!1,!0):[]}a(BU,"takeRightWhile");function HU(c,f){return c&&c.length?Ud(c,Me(f,3)):[]}a(HU,"takeWhile");var WU=it(function(c){return _a(ii(c,1,Pn,!0))}),GU=it(function(c){var f=Fr(c);return Pn(f)&&(f=e),_a(ii(c,1,Pn,!0),Me(f,2))}),KU=it(function(c){var f=Fr(c);return f=typeof f=="function"?f:e,_a(ii(c,1,Pn,!0),e,f)});function XU(c){return c&&c.length?_a(c):[]}a(XU,"uniq");function QU(c,f){return c&&c.length?_a(c,Me(f,2)):[]}a(QU,"uniqBy");function qU(c,f){return f=typeof f=="function"?f:e,c&&c.length?_a(c,e,f):[]}a(qU,"uniqWith");function Yv(c){if(!(c&&c.length))return[];var f=0;return c=Ia(c,function(d){if(Pn(d))return f=jn(d.length,f),!0}),gv(f,function(d){return sn(c,uv(d))})}a(Yv,"unzip");function UI(c,f){if(!(c&&c.length))return[];var d=Yv(c);return f==null?d:sn(d,function(y){return ir(f,e,y)})}a(UI,"unzipWith");var zU=it(function(c,f){return Pn(c)?Df(c,f):[]}),YU=it(function(c){return Vv(Ia(c,Pn))}),JU=it(function(c){var f=Fr(c);return Pn(f)&&(f=e),Vv(Ia(c,Pn),Me(f,2))}),ZU=it(function(c){var f=Fr(c);return f=typeof f=="function"?f:e,Vv(Ia(c,Pn),e,f)}),ej=it(Yv);function tj(c,f){return iI(c||[],f||[],_f)}a(tj,"zipObject");function nj(c,f){return iI(c||[],f||[],wf)}a(nj,"zipObjectDeep");var ij=it(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,UI(c,d)});function jI(c){var f=x(c);return f.__chain__=!0,f}a(jI,"chain");function rj(c,f){return f(c),c}a(rj,"tap");function Qd(c,f){return f(c)}a(Qd,"thru");var oj=zo(function(c){var f=c.length,d=f?c[0]:0,y=this.__wrapped__,b=a(function(P){return Av(P,c)},"interceptor");return f>1||this.__actions__.length||!(y instanceof ft)||!Yo(d)?this.thru(b):(y=y.slice(d,+d+(f?1:0)),y.__actions__.push({func:Qd,args:[b],thisArg:e}),new Or(y,this.__chain__).thru(function(P){return f&&!P.length&&P.push(e),P}))});function aj(){return jI(this)}a(aj,"wrapperChain");function sj(){return new Or(this.value(),this.__chain__)}a(sj,"wrapperCommit");function cj(){this.__values__===e&&(this.__values__=eO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}a(cj,"wrapperNext");function lj(){return this}a(lj,"wrapperToIterator");function fj(c){for(var f,d=this;d instanceof _d;){var y=_I(d);y.__index__=0,y.__values__=e,f?b.__wrapped__=y:f=y;var b=y;d=d.__wrapped__}return b.__wrapped__=c,f}a(fj,"wrapperPlant");function uj(){var c=this.__wrapped__;if(c instanceof ft){var f=c;return this.__actions__.length&&(f=new ft(this)),f=f.reverse(),f.__actions__.push({func:Qd,args:[zv],thisArg:e}),new Or(f,this.__chain__)}return this.thru(zv)}a(uj,"wrapperReverse");function pj(){return nI(this.__wrapped__,this.__actions__)}a(pj,"wrapperValue");var dj=jd(function(c,f,d){Lt.call(c,d)?++c[d]:Qo(c,d,1)});function gj(c,f,d){var y=Xe(c)?mC:rk;return d&&xi(c,f,d)&&(f=e),y(c,Me(f,3))}a(gj,"every");function mj(c,f){var d=Xe(c)?Ia:UC;return d(c,Me(f,3))}a(mj,"filter");var hj=dI(DI),yj=dI(VI);function vj(c,f){return ii(qd(c,f),1)}a(vj,"flatMap");function Tj(c,f){return ii(qd(c,f),jt)}a(Tj,"flatMapDeep");function Ej(c,f,d){return d=d===e?1:Ye(d),ii(qd(c,f),d)}a(Ej,"flatMapDepth");function $I(c,f){var d=Xe(c)?Cr:Ra;return d(c,Me(f,3))}a($I,"forEach");function BI(c,f){var d=Xe(c)?kw:kC;return d(c,Me(f,3))}a(BI,"forEachRight");var bj=jd(function(c,f,d){Lt.call(c,d)?c[d].push(f):Qo(c,d,[f])});function Aj(c,f,d,y){c=Ui(c)?c:Yc(c),d=d&&!y?Ye(d):0;var b=c.length;return d<0&&(d=jn(b+d,0)),eg(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&jc(c,f,d)>-1}a(Aj,"includes");var Sj=it(function(c,f,d){var y=-1,b=typeof f=="function",P=Ui(c)?G(c.length):[];return Ra(c,function(N){P[++y]=b?ir(f,N,d):Vf(N,f,d)}),P}),xj=jd(function(c,f,d){Qo(c,d,f)});function qd(c,f){var d=Xe(c)?sn:GC;return d(c,Me(f,3))}a(qd,"map");function Pj(c,f,d,y){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=y?e:d,Xe(d)||(d=d==null?[]:[d]),qC(c,f,d))}a(Pj,"orderBy");var Cj=jd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Ij(c,f,d){var y=Xe(c)?lv:TC,b=arguments.length<3;return y(c,Me(f,4),d,b,Ra)}a(Ij,"reduce");function Oj(c,f,d){var y=Xe(c)?Uw:TC,b=arguments.length<3;return y(c,Me(f,4),d,b,kC)}a(Oj,"reduceRight");function Nj(c,f){var d=Xe(c)?Ia:UC;return d(c,Jd(Me(f,3)))}a(Nj,"reject");function Lj(c){var f=Xe(c)?DC:Ak;return f(c)}a(Lj,"sample");function Fj(c,f,d){(d?xi(c,f,d):f===e)?f=1:f=Ye(f);var y=Xe(c)?Z2:Sk;return y(c,f)}a(Fj,"sampleSize");function Rj(c){var f=Xe(c)?ek:Pk;return f(c)}a(Rj,"shuffle");function _j(c){if(c==null)return 0;if(Ui(c))return eg(c)?Bc(c):c.length;var f=di(c);return f==Qe||f==un?c.size:Ov(c).length}a(_j,"size");function Dj(c,f,d){var y=Xe(c)?fv:Ck;return d&&xi(c,f,d)&&(f=e),y(c,Me(f,3))}a(Dj,"some");var Vj=it(function(c,f){if(c==null)return[];var d=f.length;return d>1&&xi(c,f[0],f[1])?f=[]:d>2&&xi(f[0],f[1],f[2])&&(f=[f[0]]),qC(c,ii(f,1),[])}),zd=g2||function(){return Kn.Date.now()};function Mj(c,f){if(typeof f!="function")throw new Ir(r);return c=Ye(c),function(){if(--c<1)return f.apply(this,arguments)}}a(Mj,"after");function HI(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,qo(c,Z,e,e,e,e,f)}a(HI,"ary");function WI(c,f){var d;if(typeof f!="function")throw new Ir(r);return c=Ye(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}a(WI,"before");var Jv=it(function(c,f,d){var y=E;if(d.length){var b=Na(d,qc(Jv));y|=W}return qo(c,y,f,d,b)}),GI=it(function(c,f,d){var y=E|O;if(d.length){var b=Na(d,qc(GI));y|=W}return qo(f,y,c,d,b)});function KI(c,f,d){f=d?e:f;var y=qo(c,U,e,e,e,e,e,f);return y.placeholder=KI.placeholder,y}a(KI,"curry");function XI(c,f,d){f=d?e:f;var y=qo(c,H,e,e,e,e,e,f);return y.placeholder=XI.placeholder,y}a(XI,"curryRight");function QI(c,f,d){var y,b,P,N,F,w,q=0,z=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Ir(r);f=Rr(f)||0,dn(d)&&(z=!!d.leading,ee="maxWait"in d,P=ee?jn(Rr(d.maxWait)||0,f):P,ge="trailing"in d?!!d.trailing:ge);function Oe(Cn){var zr=y,ea=b;return y=b=e,q=Cn,N=c.apply(ea,zr),N}a(Oe,"invokeFunc");function ke(Cn){return q=Cn,F=jf(ct,f),z?Oe(Cn):N}a(ke,"leadingEdge");function et(Cn){var zr=Cn-w,ea=Cn-q,dO=f-zr;return ee?pi(dO,P-ea):dO}a(et,"remainingWait");function Ue(Cn){var zr=Cn-w,ea=Cn-q;return w===e||zr>=f||zr<0||ee&&ea>=P}a(Ue,"shouldInvoke");function ct(){var Cn=zd();if(Ue(Cn))return gt(Cn);F=jf(ct,et(Cn))}a(ct,"timerExpired");function gt(Cn){return F=e,ge&&y?Oe(Cn):(y=b=e,N)}a(gt,"trailingEdge");function sr(){F!==e&&rI(F),q=0,y=w=b=F=e}a(sr,"cancel");function Pi(){return F===e?N:gt(zd())}a(Pi,"flush");function cr(){var Cn=zd(),zr=Ue(Cn);if(y=arguments,b=this,w=Cn,zr){if(F===e)return ke(w);if(ee)return rI(F),F=jf(ct,f),Oe(w)}return F===e&&(F=jf(ct,f)),N}return a(cr,"debounced"),cr.cancel=sr,cr.flush=Pi,cr}a(QI,"debounce");var wj=it(function(c,f){return wC(c,1,f)}),kj=it(function(c,f,d){return wC(c,Rr(f)||0,d)});function Uj(c){return qo(c,Le)}a(Uj,"flip");function Yd(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Ir(r);var d=a(function(){var y=arguments,b=f?f.apply(this,y):y[0],P=d.cache;if(P.has(b))return P.get(b);var N=c.apply(this,y);return d.cache=P.set(b,N)||P,N},"memoized");return d.cache=new(Yd.Cache||Xo),d}a(Yd,"memoize"),Yd.Cache=Xo;function Jd(c){if(typeof c!="function")throw new Ir(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}a(Jd,"negate");function jj(c){return WI(2,c)}a(jj,"once");var $j=Ik(function(c,f){f=f.length==1&&Xe(f[0])?sn(f[0],rr(Me())):sn(ii(f,1),rr(Me()));var d=f.length;return it(function(y){for(var b=-1,P=pi(y.length,d);++b<P;)y[b]=f[b].call(this,y[b]);return ir(c,this,y)})}),Zv=it(function(c,f){var d=Na(f,qc(Zv));return qo(c,W,e,f,d)}),qI=it(function(c,f){var d=Na(f,qc(qI));return qo(c,ie,e,f,d)}),Bj=zo(function(c,f){return qo(c,ne,e,e,e,f)});function Hj(c,f){if(typeof c!="function")throw new Ir(r);return f=f===e?f:Ye(f),it(c,f)}a(Hj,"rest");function Wj(c,f){if(typeof c!="function")throw new Ir(r);return f=f==null?0:jn(Ye(f),0),it(function(d){var y=d[f],b=Va(d,0,f);return y&&Oa(b,y),ir(c,this,b)})}a(Wj,"spread");function Gj(c,f,d){var y=!0,b=!0;if(typeof c!="function")throw new Ir(r);return dn(d)&&(y="leading"in d?!!d.leading:y,b="trailing"in d?!!d.trailing:b),QI(c,f,{leading:y,maxWait:f,trailing:b})}a(Gj,"throttle");function Kj(c){return HI(c,1)}a(Kj,"unary");function Xj(c,f){return Zv(wv(f),c)}a(Xj,"wrap");function Qj(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}a(Qj,"castArray");function qj(c){return Nr(c,m)}a(qj,"clone");function zj(c,f){return f=typeof f=="function"?f:e,Nr(c,m,f)}a(zj,"cloneWith");function Yj(c){return Nr(c,p|m)}a(Yj,"cloneDeep");function Jj(c,f){return f=typeof f=="function"?f:e,Nr(c,p|m,f)}a(Jj,"cloneDeepWith");function Zj(c,f){return f==null||MC(c,f,Xn(f))}a(Zj,"conformsTo");function qr(c,f){return c===f||c!==c&&f!==f}a(qr,"eq");var e$=Wd(Pv),t$=Wd(function(c,f){return c>=f}),Bs=BC(function(){return arguments}())?BC:function(c){return mn(c)&&Lt.call(c,"callee")&&!OC.call(c,"callee")},Xe=G.isArray,n$=lC?rr(lC):fk;function Ui(c){return c!=null&&Zd(c.length)&&!Jo(c)}a(Ui,"isArrayLike");function Pn(c){return mn(c)&&Ui(c)}a(Pn,"isArrayLikeObject");function i$(c){return c===!0||c===!1||mn(c)&&Si(c)==I}a(i$,"isBoolean");var Ma=h2||fT,r$=fC?rr(fC):uk;function o$(c){return mn(c)&&c.nodeType===1&&!$f(c)}a(o$,"isElement");function a$(c){if(c==null)return!0;if(Ui(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||Ma(c)||zc(c)||Bs(c)))return!c.length;var f=di(c);if(f==Qe||f==un)return!c.size;if(Uf(c))return!Ov(c).length;for(var d in c)if(Lt.call(c,d))return!1;return!0}a(a$,"isEmpty");function s$(c,f){return Mf(c,f)}a(s$,"isEqual");function c$(c,f,d){d=typeof d=="function"?d:e;var y=d?d(c,f):e;return y===e?Mf(c,f,e,d):!!y}a(c$,"isEqualWith");function eT(c){if(!mn(c))return!1;var f=Si(c);return f==M||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!$f(c)}a(eT,"isError");function l$(c){return typeof c=="number"&&LC(c)}a(l$,"isFinite");function Jo(c){if(!dn(c))return!1;var f=Si(c);return f==Ve||f==Nt||f==st||f==ni}a(Jo,"isFunction");function zI(c){return typeof c=="number"&&c==Ye(c)}a(zI,"isInteger");function Zd(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}a(Zd,"isLength");function dn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}a(dn,"isObject");function mn(c){return c!=null&&typeof c=="object"}a(mn,"isObjectLike");var YI=uC?rr(uC):dk;function f$(c,f){return c===f||Iv(c,f,Wv(f))}a(f$,"isMatch");function u$(c,f,d){return d=typeof d=="function"?d:e,Iv(c,f,Wv(f),d)}a(u$,"isMatchWith");function p$(c){return JI(c)&&c!=+c}a(p$,"isNaN");function d$(c){if(zk(c))throw new Ke(i);return HC(c)}a(d$,"isNative");function g$(c){return c===null}a(g$,"isNull");function m$(c){return c==null}a(m$,"isNil");function JI(c){return typeof c=="number"||mn(c)&&Si(c)==Vt}a(JI,"isNumber");function $f(c){if(!mn(c)||Si(c)!=on)return!1;var f=Cd(c);if(f===null)return!0;var d=Lt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Ad.call(d)==f2}a($f,"isPlainObject");var tT=pC?rr(pC):gk;function h$(c){return zI(c)&&c>=-Re&&c<=Re}a(h$,"isSafeInteger");var ZI=dC?rr(dC):mk;function eg(c){return typeof c=="string"||!Xe(c)&&mn(c)&&Si(c)==ui}a(eg,"isString");function ar(c){return typeof c=="symbol"||mn(c)&&Si(c)==Bt}a(ar,"isSymbol");var zc=gC?rr(gC):hk;function y$(c){return c===e}a(y$,"isUndefined");function v$(c){return mn(c)&&di(c)==wi}a(v$,"isWeakMap");function T$(c){return mn(c)&&Si(c)==Af}a(T$,"isWeakSet");var E$=Wd(Nv),b$=Wd(function(c,f){return c<=f});function eO(c){if(!c)return[];if(Ui(c))return eg(c)?Xr(c):ki(c);if(Of&&c[Of])return Jw(c[Of]());var f=di(c),d=f==Qe?hv:f==un?Td:Yc;return d(c)}a(eO,"toArray");function Zo(c){if(!c)return c===0?c:0;if(c=Rr(c),c===jt||c===-jt){var f=c<0?-1:1;return f*Ai}return c===c?c:0}a(Zo,"toFinite");function Ye(c){var f=Zo(c),d=f%1;return f===f?d?f-d:f:0}a(Ye,"toInteger");function tO(c){return c?ks(Ye(c),0,Dt):0}a(tO,"toLength");function Rr(c){if(typeof c=="number")return c;if(ar(c))return Ct;if(dn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=dn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=EC(c);var d=tw.test(c);return d||iw.test(c)?Vw(c.slice(2),d?2:8):ew.test(c)?Ct:+c}a(Rr,"toNumber");function nO(c){return To(c,ji(c))}a(nO,"toPlainObject");function A$(c){return c?ks(Ye(c),-Re,Re):c===0?c:0}a(A$,"toSafeInteger");function It(c){return c==null?"":or(c)}a(It,"toString");var S$=Xc(function(c,f){if(Uf(f)||Ui(f)){To(f,Xn(f),c);return}for(var d in f)Lt.call(f,d)&&_f(c,d,f[d])}),iO=Xc(function(c,f){To(f,ji(f),c)}),tg=Xc(function(c,f,d,y){To(f,ji(f),c,y)}),x$=Xc(function(c,f,d,y){To(f,Xn(f),c,y)}),P$=zo(Av);function C$(c,f){var d=Kc(c);return f==null?d:VC(d,f)}a(C$,"create");var I$=it(function(c,f){c=Wt(c);var d=-1,y=f.length,b=y>2?f[2]:e;for(b&&xi(f[0],f[1],b)&&(y=1);++d<y;)for(var P=f[d],N=ji(P),F=-1,w=N.length;++F<w;){var q=N[F],z=c[q];(z===e||qr(z,Hc[q])&&!Lt.call(c,q))&&(c[q]=P[q])}return c}),O$=it(function(c){return c.push(e,EI),ir(rO,e,c)});function N$(c,f){return hC(c,Me(f,3),vo)}a(N$,"findKey");function L$(c,f){return hC(c,Me(f,3),xv)}a(L$,"findLastKey");function F$(c,f){return c==null?c:Sv(c,Me(f,3),ji)}a(F$,"forIn");function R$(c,f){return c==null?c:jC(c,Me(f,3),ji)}a(R$,"forInRight");function _$(c,f){return c&&vo(c,Me(f,3))}a(_$,"forOwn");function D$(c,f){return c&&xv(c,Me(f,3))}a(D$,"forOwnRight");function V$(c){return c==null?[]:Md(c,Xn(c))}a(V$,"functions");function M$(c){return c==null?[]:Md(c,ji(c))}a(M$,"functionsIn");function nT(c,f,d){var y=c==null?e:Us(c,f);return y===e?d:y}a(nT,"get");function w$(c,f){return c!=null&&SI(c,f,ak)}a(w$,"has");function iT(c,f){return c!=null&&SI(c,f,sk)}a(iT,"hasIn");var k$=mI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Sd.call(f)),c[f]=d},oT($i)),U$=mI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Sd.call(f)),Lt.call(c,f)?c[f].push(d):c[f]=[d]},Me),j$=it(Vf);function Xn(c){return Ui(c)?_C(c):Ov(c)}a(Xn,"keys");function ji(c){return Ui(c)?_C(c,!0):yk(c)}a(ji,"keysIn");function $$(c,f){var d={};return f=Me(f,3),vo(c,function(y,b,P){Qo(d,f(y,b,P),y)}),d}a($$,"mapKeys");function B$(c,f){var d={};return f=Me(f,3),vo(c,function(y,b,P){Qo(d,b,f(y,b,P))}),d}a(B$,"mapValues");var H$=Xc(function(c,f,d){wd(c,f,d)}),rO=Xc(function(c,f,d,y){wd(c,f,d,y)}),W$=zo(function(c,f){var d={};if(c==null)return d;var y=!1;f=sn(f,function(P){return P=Da(P,c),y||(y=P.length>1),P}),To(c,Bv(c),d),y&&(d=Nr(d,p|g|m,kk));for(var b=f.length;b--;)Dv(d,f[b]);return d});function G$(c,f){return oO(c,Jd(Me(f)))}a(G$,"omitBy");var K$=zo(function(c,f){return c==null?{}:Tk(c,f)});function oO(c,f){if(c==null)return{};var d=sn(Bv(c),function(y){return[y]});return f=Me(f),zC(c,d,function(y,b){return f(y,b[0])})}a(oO,"pickBy");function X$(c,f,d){f=Da(f,c);var y=-1,b=f.length;for(b||(b=1,c=e);++y<b;){var P=c==null?e:c[Eo(f[y])];P===e&&(y=b,P=d),c=Jo(P)?P.call(c):P}return c}a(X$,"result");function Q$(c,f,d){return c==null?c:wf(c,f,d)}a(Q$,"set");function q$(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:wf(c,f,d,y)}a(q$,"setWith");var aO=vI(Xn),sO=vI(ji);function z$(c,f,d){var y=Xe(c),b=y||Ma(c)||zc(c);if(f=Me(f,4),d==null){var P=c&&c.constructor;b?d=y?new P:[]:dn(c)?d=Jo(P)?Kc(Cd(c)):{}:d={}}return(b?Cr:vo)(c,function(N,F,w){return f(d,N,F,w)}),d}a(z$,"transform");function Y$(c,f){return c==null?!0:Dv(c,f)}a(Y$,"unset");function J$(c,f,d){return c==null?c:tI(c,f,wv(d))}a(J$,"update");function Z$(c,f,d,y){return y=typeof y=="function"?y:e,c==null?c:tI(c,f,wv(d),y)}a(Z$,"updateWith");function Yc(c){return c==null?[]:mv(c,Xn(c))}a(Yc,"values");function e4(c){return c==null?[]:mv(c,ji(c))}a(e4,"valuesIn");function t4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Rr(d),d=d===d?d:0),f!==e&&(f=Rr(f),f=f===f?f:0),ks(Rr(c),f,d)}a(t4,"clamp");function n4(c,f,d){return f=Zo(f),d===e?(d=f,f=0):d=Zo(d),c=Rr(c),ck(c,f,d)}a(n4,"inRange");function i4(c,f,d){if(d&&typeof d!="boolean"&&xi(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=Zo(c),f===e?(f=c,c=0):f=Zo(f)),c>f){var y=c;c=f,f=y}if(d||c%1||f%1){var b=FC();return pi(c+b*(f-c+Dw("1e-"+((b+"").length-1))),f)}return Fv(c,f)}a(i4,"random");var r4=Qc(function(c,f,d){return f=f.toLowerCase(),c+(d?cO(f):f)});function cO(c){return rT(It(c).toLowerCase())}a(cO,"capitalize");function lO(c){return c=It(c),c&&c.replace(ow,Xw).replace(xw,"")}a(lO,"deburr");function o4(c,f,d){c=It(c),f=or(f);var y=c.length;d=d===e?y:ks(Ye(d),0,y);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}a(o4,"endsWith");function a4(c){return c=It(c),c&&Ie.test(c)?c.replace(ve,Qw):c}a(a4,"escape");function s4(c){return c=It(c),c&&GM.test(c)?c.replace(Cf,"\\$&"):c}a(s4,"escapeRegExp");var c4=Qc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),l4=Qc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),f4=pI("toLowerCase");function u4(c,f,d){c=It(c),f=Ye(f);var y=f?Bc(c):0;if(!f||y>=f)return c;var b=(f-y)/2;return Hd(Ld(b),d)+c+Hd(Nd(b),d)}a(u4,"pad");function p4(c,f,d){c=It(c),f=Ye(f);var y=f?Bc(c):0;return f&&y<f?c+Hd(f-y,d):c}a(p4,"padEnd");function d4(c,f,d){c=It(c),f=Ye(f);var y=f?Bc(c):0;return f&&y<f?Hd(f-y,d)+c:c}a(d4,"padStart");function g4(c,f,d){return d||f==null?f=0:f&&(f=+f),b2(It(c).replace(ev,""),f||0)}a(g4,"parseInt");function m4(c,f,d){return(d?xi(c,f,d):f===e)?f=1:f=Ye(f),Rv(It(c),f)}a(m4,"repeat");function h4(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}a(h4,"replace");var y4=Qc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function T4(c,f,d){return d&&typeof d!="number"&&xi(c,f,d)&&(f=d=e),d=d===e?Dt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!tT(f))&&(f=or(f),!f&&$c(c))?Va(Xr(c),0,d):c.split(f,d)):[]}a(T4,"split");var E4=Qc(function(c,f,d){return c+(d?" ":"")+rT(f)});function b4(c,f,d){return c=It(c),d=d==null?0:ks(Ye(d),0,c.length),f=or(f),c.slice(d,d+f.length)==f}a(b4,"startsWith");function A4(c,f,d){var y=x.templateSettings;d&&xi(c,f,d)&&(f=e),c=It(c),f=tg({},f,y,TI);var b=tg({},f.imports,y.imports,TI),P=Xn(b),N=mv(b,P),F,w,q=0,z=f.interpolate||gd,ee="__p += '",ge=yv((f.escape||gd).source+"|"+z.source+"|"+(z===an?ZM:gd).source+"|"+(f.evaluate||gd).source+"|$","g"),Oe="//# sourceURL="+(Lt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nw+"]")+`
272
+ `;c.replace(ge,function(Ue,ct,gt,sr,Pi,cr){return gt||(gt=sr),ee+=c.slice(q,cr).replace(aw,qw),ct&&(F=!0,ee+=`' +
273
273
  __e(`+ct+`) +
274
274
  '`),Pi&&(w=!0,ee+=`';
275
275
  `+Pi+`;
276
- __p += '`),dt&&(ee+=`' +
277
- ((__t = (`+dt+`)) == null ? '' : __t) +
276
+ __p += '`),gt&&(ee+=`' +
277
+ ((__t = (`+gt+`)) == null ? '' : __t) +
278
278
  '`),q=cr+Ue.length,Ue}),ee+=`';
279
279
  `;var ke=Lt.call(f,"variable")&&f.variable;if(!ke)ee=`with (obj) {
280
280
  `+ee+`
281
281
  }
282
- `;else if(XM.test(ke))throw new Ke(o);ee=(w?ee.replace(pn,""):ee).replace(xn,"$1").replace(nt,"$1;"),ee="function("+(ke||"obj")+`) {
282
+ `;else if(YM.test(ke))throw new Ke(o);ee=(w?ee.replace(pn,""):ee).replace(xn,"$1").replace(nt,"$1;"),ee="function("+(ke||"obj")+`) {
283
283
  `+(ke?"":`obj || (obj = {});
284
284
  `)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(w?`, __j = Array.prototype.join;
285
285
  function print() { __p += __j.call(arguments, '') }
286
286
  `:`;
287
287
  `)+ee+`return __p
288
- }`;var et=cO(function(){return bt(P,Oe+"return "+ee).apply(e,N)});if(et.source=ee,eT(et))throw et;return et}a(y4,"template");function T4(c){return It(c).toLowerCase()}a(T4,"toLower");function E4(c){return It(c).toUpperCase()}a(E4,"toUpper");function b4(c,f,d){if(c=It(c),c&&(d||f===e))return yC(c);if(!c||!(f=or(f)))return c;var y=Xr(c),b=Xr(f),P=vC(y,b),N=TC(y,b)+1;return wa(y,P,N).join("")}a(b4,"trim");function A4(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,bC(c)+1);if(!c||!(f=or(f)))return c;var y=Xr(c),b=TC(y,Xr(f))+1;return wa(y,0,b).join("")}a(A4,"trimEnd");function S4(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(ev,"");if(!c||!(f=or(f)))return c;var y=Xr(c),b=vC(y,Xr(f));return wa(y,b).join("")}a(S4,"trimStart");function x4(c,f){var d=D,y=Pt;if(dn(f)){var b="separator"in f?f.separator:b;d="length"in f?Ye(f.length):d,y="omission"in f?or(f.omission):y}c=It(c);var P=c.length;if(Wc(c)){var N=Xr(c);P=N.length}if(d>=P)return c;var F=d-Gc(y);if(F<1)return y;var w=N?wa(N,0,F).join(""):c.slice(0,F);if(b===e)return w+y;if(N&&(F+=w.length-F),tT(b)){if(c.slice(F).search(b)){var q,z=w;for(b.global||(b=yv(b.source,It(UP.exec(b))+"g")),b.lastIndex=0;q=b.exec(z);)var ee=q.index;w=w.slice(0,ee===e?F:ee)}}else if(c.indexOf(or(b),F)!=F){var de=w.lastIndexOf(b);de>-1&&(w=w.slice(0,de))}return w+y}a(x4,"truncate");function P4(c){return c=It(c),c&&xe.test(c)?c.replace(ge,Jw):c}a(P4,"unescape");var C4=Yc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),rT=lI("toUpperCase");function sO(c,f,d){return c=It(c),f=d?e:f,f===e?Xw(c)?t2(c):kw(c):c.match(f)||[]}a(sO,"words");var cO=it(function(c,f){try{return ir(c,e,f)}catch(d){return eT(d)?d:new Ke(d)}}),I4=Yo(function(c,f){return Cr(f,function(d){d=bo(d),qo(c,d,Jv(c[d],c))}),c});function O4(c){var f=c==null?0:c.length,d=Me();return c=f?sn(c,function(y){if(typeof y[1]!="function")throw new Ir(r);return[d(y[0]),y[1]]}):[],it(function(y){for(var b=-1;++b<f;){var P=c[b];if(ir(P[0],this,y))return ir(P[1],this,y)}})}a(O4,"cond");function N4(c){return Z2(Nr(c,p))}a(N4,"conforms");function oT(c){return function(){return c}}a(oT,"constant");function L4(c,f){return c==null||c!==c?f:c}a(L4,"defaultTo");var F4=uI(),R4=uI(!0);function $i(c){return c}a($i,"identity");function aT(c){return $C(typeof c=="function"?c:Nr(c,p))}a(aT,"iteratee");function _4(c){return HC(Nr(c,p))}a(_4,"matches");function D4(c,f){return WC(c,Nr(f,p))}a(D4,"matchesProperty");var V4=it(function(c,f){return function(d){return Vf(d,c,f)}}),M4=it(function(c,f){return function(d){return Vf(c,d,f)}});function sT(c,f,d){var y=Xn(f),b=Vd(f,y);d==null&&!(dn(f)&&(b.length||!y.length))&&(d=f,f=c,c=this,b=Vd(f,Xn(f)));var P=!(dn(d)&&"chain"in d)||!!d.chain,N=Zo(c);return Cr(b,function(F){var w=f[F];c[F]=w,N&&(c.prototype[F]=function(){var q=this.__chain__;if(P||q){var z=c(this.__wrapped__),ee=z.__actions__=ki(this.__actions__);return ee.push({func:w,args:arguments,thisArg:c}),z.__chain__=q,z}return w.apply(c,La([this.value()],arguments))})}),c}a(sT,"mixin");function w4(){return Kn._===this&&(Kn._=s2),this}a(w4,"noConflict");function cT(){}a(cT,"noop");function k4(c){return c=Ye(c),it(function(f){return GC(f,c)})}a(k4,"nthArg");var U4=Uv(sn),j4=Uv(pC),$4=Uv(fv);function lO(c){return Kv(c)?uv(bo(c)):hk(c)}a(lO,"property");function B4(c){return function(f){return c==null?e:$s(c,f)}}a(B4,"propertyOf");var H4=dI(),W4=dI(!0);function lT(){return[]}a(lT,"stubArray");function fT(){return!1}a(fT,"stubFalse");function G4(){return{}}a(G4,"stubObject");function K4(){return""}a(K4,"stubString");function X4(){return!0}a(X4,"stubTrue");function Q4(c,f){if(c=Ye(c),c<1||c>Le)return[];var d=Dt,y=pi(c,Dt);f=Me(f),c-=Dt;for(var b=gv(y,f);++d<c;)f(d);return b}a(Q4,"times");function q4(c){return Xe(c)?sn(c,bo):ar(c)?[c]:ki(NI(It(c)))}a(q4,"toPath");function z4(c){var f=++o2;return It(c)+f}a(z4,"uniqueId");var Y4=$d(function(c,f){return c+f},0),J4=jv("ceil"),Z4=$d(function(c,f){return c/f},1),eB=jv("floor");function tB(c){return c&&c.length?Dd(c,$i,Pv):e}a(tB,"max");function nB(c,f){return c&&c.length?Dd(c,Me(f,2),Pv):e}a(nB,"maxBy");function iB(c){return mC(c,$i)}a(iB,"mean");function rB(c,f){return mC(c,Me(f,2))}a(rB,"meanBy");function oB(c){return c&&c.length?Dd(c,$i,Nv):e}a(oB,"min");function aB(c,f){return c&&c.length?Dd(c,Me(f,2),Nv):e}a(aB,"minBy");var sB=$d(function(c,f){return c*f},1),cB=jv("round"),lB=$d(function(c,f){return c-f},0);function fB(c){return c&&c.length?dv(c,$i):0}a(fB,"sum");function uB(c,f){return c&&c.length?dv(c,Me(f,2)):0}return a(uB,"sumBy"),x.after=Rj,x.ary=jI,x.assign=T$,x.assignIn=eO,x.assignInWith=eg,x.assignWith=E$,x.at=b$,x.before=$I,x.bind=Jv,x.bindAll=I4,x.bindKey=BI,x.castArray=Wj,x.chain=wI,x.chunk=Zk,x.compact=eU,x.concat=tU,x.cond=O4,x.conforms=N4,x.constant=oT,x.countBy=lj,x.create=A$,x.curry=HI,x.curryRight=WI,x.debounce=GI,x.defaults=S$,x.defaultsDeep=x$,x.defer=_j,x.delay=Dj,x.difference=nU,x.differenceBy=iU,x.differenceWith=rU,x.drop=oU,x.dropRight=aU,x.dropRightWhile=sU,x.dropWhile=cU,x.fill=lU,x.filter=uj,x.flatMap=gj,x.flatMapDeep=mj,x.flatMapDepth=hj,x.flatten=_I,x.flattenDeep=fU,x.flattenDepth=uU,x.flip=Vj,x.flow=F4,x.flowRight=R4,x.fromPairs=pU,x.functions=F$,x.functionsIn=R$,x.groupBy=yj,x.initial=gU,x.intersection=mU,x.intersectionBy=hU,x.intersectionWith=yU,x.invert=D$,x.invertBy=V$,x.invokeMap=Tj,x.iteratee=aT,x.keyBy=Ej,x.keys=Xn,x.keysIn=ji,x.map=Qd,x.mapKeys=w$,x.mapValues=k$,x.matches=_4,x.matchesProperty=D4,x.memoize=zd,x.merge=U$,x.mergeWith=tO,x.method=V4,x.methodOf=M4,x.mixin=sT,x.negate=Yd,x.nthArg=k4,x.omit=j$,x.omitBy=$$,x.once=Mj,x.orderBy=bj,x.over=U4,x.overArgs=wj,x.overEvery=j4,x.overSome=$4,x.partial=Zv,x.partialRight=KI,x.partition=Aj,x.pick=B$,x.pickBy=nO,x.property=lO,x.propertyOf=B4,x.pull=bU,x.pullAll=VI,x.pullAllBy=AU,x.pullAllWith=SU,x.pullAt=xU,x.range=H4,x.rangeRight=W4,x.rearg=kj,x.reject=Pj,x.remove=PU,x.rest=Uj,x.reverse=zv,x.sampleSize=Ij,x.set=W$,x.setWith=G$,x.shuffle=Oj,x.slice=CU,x.sortBy=Fj,x.sortedUniq=_U,x.sortedUniqBy=DU,x.split=g4,x.spread=jj,x.tail=VU,x.take=MU,x.takeRight=wU,x.takeRightWhile=kU,x.takeWhile=UU,x.tap=ej,x.throttle=$j,x.thru=Xd,x.toArray=YI,x.toPairs=iO,x.toPairsIn=rO,x.toPath=q4,x.toPlainObject=ZI,x.transform=K$,x.unary=Bj,x.union=jU,x.unionBy=$U,x.unionWith=BU,x.uniq=HU,x.uniqBy=WU,x.uniqWith=GU,x.unset=X$,x.unzip=Yv,x.unzipWith=MI,x.update=Q$,x.updateWith=q$,x.values=el,x.valuesIn=z$,x.without=KU,x.words=sO,x.wrap=Hj,x.xor=XU,x.xorBy=QU,x.xorWith=qU,x.zip=zU,x.zipObject=YU,x.zipObjectDeep=JU,x.zipWith=ZU,x.entries=iO,x.entriesIn=rO,x.extend=eO,x.extendWith=eg,sT(x,x),x.add=Y4,x.attempt=cO,x.camelCase=e4,x.capitalize=oO,x.ceil=J4,x.clamp=Y$,x.clone=Gj,x.cloneDeep=Xj,x.cloneDeepWith=Qj,x.cloneWith=Kj,x.conformsTo=qj,x.deburr=aO,x.defaultTo=L4,x.divide=Z4,x.endsWith=t4,x.eq=qr,x.escape=n4,x.escapeRegExp=i4,x.every=fj,x.find=pj,x.findIndex=FI,x.findKey=P$,x.findLast=dj,x.findLastIndex=RI,x.findLastKey=C$,x.floor=eB,x.forEach=kI,x.forEachRight=UI,x.forIn=I$,x.forInRight=O$,x.forOwn=N$,x.forOwnRight=L$,x.get=nT,x.gt=zj,x.gte=Yj,x.has=_$,x.hasIn=iT,x.head=DI,x.identity=$i,x.includes=vj,x.indexOf=dU,x.inRange=J$,x.invoke=M$,x.isArguments=Ws,x.isArray=Xe,x.isArrayBuffer=Jj,x.isArrayLike=Ui,x.isArrayLikeObject=Pn,x.isBoolean=Zj,x.isBuffer=ka,x.isDate=e$,x.isElement=t$,x.isEmpty=n$,x.isEqual=i$,x.isEqualWith=r$,x.isError=eT,x.isFinite=o$,x.isFunction=Zo,x.isInteger=XI,x.isLength=Jd,x.isMap=QI,x.isMatch=a$,x.isMatchWith=s$,x.isNaN=c$,x.isNative=l$,x.isNil=u$,x.isNull=f$,x.isNumber=qI,x.isObject=dn,x.isObjectLike=mn,x.isPlainObject=$f,x.isRegExp=tT,x.isSafeInteger=p$,x.isSet=zI,x.isString=Zd,x.isSymbol=ar,x.isTypedArray=Zc,x.isUndefined=d$,x.isWeakMap=g$,x.isWeakSet=m$,x.join=vU,x.kebabCase=r4,x.last=Fr,x.lastIndexOf=TU,x.lowerCase=o4,x.lowerFirst=a4,x.lt=h$,x.lte=y$,x.max=tB,x.maxBy=nB,x.mean=iB,x.meanBy=rB,x.min=oB,x.minBy=aB,x.stubArray=lT,x.stubFalse=fT,x.stubObject=G4,x.stubString=K4,x.stubTrue=X4,x.multiply=sB,x.nth=EU,x.noConflict=w4,x.noop=cT,x.now=qd,x.pad=s4,x.padEnd=c4,x.padStart=l4,x.parseInt=f4,x.random=Z$,x.reduce=Sj,x.reduceRight=xj,x.repeat=u4,x.replace=p4,x.result=H$,x.round=cB,x.runInContext=V,x.sample=Cj,x.size=Nj,x.snakeCase=d4,x.some=Lj,x.sortedIndex=IU,x.sortedIndexBy=OU,x.sortedIndexOf=NU,x.sortedLastIndex=LU,x.sortedLastIndexBy=FU,x.sortedLastIndexOf=RU,x.startCase=m4,x.startsWith=h4,x.subtract=lB,x.sum=fB,x.sumBy=uB,x.template=y4,x.times=Q4,x.toFinite=ea,x.toInteger=Ye,x.toLength=JI,x.toLower=T4,x.toNumber=Rr,x.toSafeInteger=v$,x.toString=It,x.toUpper=E4,x.trim=b4,x.trimEnd=A4,x.trimStart=S4,x.truncate=x4,x.unescape=P4,x.uniqueId=z4,x.upperCase=C4,x.upperFirst=rT,x.each=kI,x.eachRight=UI,x.first=DI,sT(x,function(){var c={};return To(x,function(f,d){Lt.call(x.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),x.VERSION=t,Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){x[c].placeholder=x}),Cr(["drop","take"],function(c,f){ft.prototype[c]=function(d){d=d===e?1:jn(Ye(d),0);var y=this.__filtered__&&!f?new ft(this):this.clone();return y.__filtered__?y.__takeCount__=pi(d,y.__takeCount__):y.__views__.push({size:pi(d,Dt),type:c+(y.__dir__<0?"Right":"")}),y},ft.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Cr(["filter","map","takeWhile"],function(c,f){var d=f+1,y=d==fn||d==Sn;ft.prototype[c]=function(b){var P=this.clone();return P.__iteratees__.push({iteratee:Me(b,3),type:d}),P.__filtered__=P.__filtered__||y,P}}),Cr(["head","last"],function(c,f){var d="take"+(f?"Right":"");ft.prototype[c]=function(){return this[d](1).value()[0]}}),Cr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");ft.prototype[c]=function(){return this.__filtered__?new ft(this):this[d](1)}}),ft.prototype.compact=function(){return this.filter($i)},ft.prototype.find=function(c){return this.filter(c).head()},ft.prototype.findLast=function(c){return this.reverse().find(c)},ft.prototype.invokeMap=it(function(c,f){return typeof c=="function"?new ft(this):this.map(function(d){return Vf(d,c,f)})}),ft.prototype.reject=function(c){return this.filter(Yd(Me(c)))},ft.prototype.slice=function(c,f){c=Ye(c);var d=this;return d.__filtered__&&(c>0||f<0)?new ft(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ye(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},ft.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},ft.prototype.toArray=function(){return this.take(Dt)},To(ft.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),y=/^(?:head|last)$/.test(f),b=x[y?"take"+(f=="last"?"Right":""):f],P=y||/^find/.test(f);b&&(x.prototype[f]=function(){var N=this.__wrapped__,F=y?[1]:arguments,w=N instanceof ft,q=F[0],z=w||Xe(N),ee=a(function(ct){var dt=b.apply(x,La([ct],F));return y&&de?dt[0]:dt},"interceptor");z&&d&&typeof q=="function"&&q.length!=1&&(w=z=!1);var de=this.__chain__,Oe=!!this.__actions__.length,ke=P&&!de,et=w&&!Oe;if(!P&&z){N=et?N:new ft(this);var Ue=c.apply(N,F);return Ue.__actions__.push({func:Xd,args:[ee],thisArg:e}),new Or(Ue,de)}return ke&&et?c.apply(this,F):(Ue=this.thru(ee),ke?y?Ue.value()[0]:Ue.value():Ue)})}),Cr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Td[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",y=/^(?:pop|shift)$/.test(c);x.prototype[c]=function(){var b=arguments;if(y&&!this.__chain__){var P=this.value();return f.apply(Xe(P)?P:[],b)}return this[d](function(N){return f.apply(Xe(N)?N:[],b)})}}),To(ft.prototype,function(c,f){var d=x[f];if(d){var y=d.name+"";Lt.call(Qc,y)||(Qc[y]=[]),Qc[y].push({name:f,func:d})}}),Qc[jd(e,O).name]=[{name:"wrapper",func:e}],ft.prototype.clone=x2,ft.prototype.reverse=P2,ft.prototype.value=C2,x.prototype.at=tj,x.prototype.chain=nj,x.prototype.commit=ij,x.prototype.next=rj,x.prototype.plant=aj,x.prototype.reverse=sj,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=cj,x.prototype.first=x.prototype.head,Of&&(x.prototype[Of]=oj),x},"runInContext"),Ra=n2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=Ra,define(function(){return Ra})):Ms?((Ms.exports=Ra)._=Ra,av._=Ra):Kn._=Ra}).call(Zl)});var UD=ze((Xse,kD)=>{var{findIndex:OQ}=Tp();function NQ(e,t){let i=OQ(e,o=>o.endOffset===t),r=!1;for(;r===!1;){i++;let o=e[i];if(o===void 0)return null;if(o.tokenType.name!=="SEA_WS")return o}}a(NQ,"findNextTextualToken");kD.exports={findNextTextualToken:NQ}});var BD=ze((qse,$D)=>{var jD=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function LQ({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(jD);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}a(LQ,"isXMLNamespaceKey");function FQ(e){if(typeof e!="string")return;let t=e.match(jD);if(t!==null)return t.groups&&t.groups.prefix||""}a(FQ,"getXMLNamespaceKeyPrefix");$D.exports={isXMLNamespaceKey:LQ,getXMLNamespaceKeyPrefix:FQ}});var WD=ze((Yse,HD)=>{var{findNextTextualToken:RQ}=UD(),{isXMLNamespaceKey:_Q,getXMLNamespaceKeyPrefix:DQ}=BD();HD.exports={findNextTextualToken:RQ,isXMLNamespaceKey:_Q,getXMLNamespaceKeyPrefix:DQ}});var lS=ze((Jse,KD)=>{var{reduce:VQ,has:GD,isArray:MQ}=Tp();function wQ(e){return VQ(e,(n,i,r)=>(r==="parent"||(GD(i,"type")?n.push(i):MQ(i)&&i.length>0&&GD(i[0],"type")&&(n=n.concat(i))),n),[])}a(wQ,"getAstChildrenReflective");KD.exports={getAstChildrenReflective:wQ}});var fS=ze((ece,XD)=>{XD.exports={DEFAULT_NS:"::DEFAULT"}});var tV=ze((tce,eV)=>{var{BaseXmlCstVisitor:kQ}=cS(),{last:UQ,forEach:YD,reduce:jQ,map:Ep,pick:pS,sortBy:$Q,isEmpty:BQ,isArray:JD,assign:HQ}=Tp(),{findNextTextualToken:WQ,isXMLNamespaceKey:GQ,getXMLNamespaceKeyPrefix:KQ}=WD(),{getAstChildrenReflective:XQ}=lS(),{DEFAULT_NS:QQ}=fS();function qQ(e,t){QD.setState({tokenVector:t});let n=QD.visit(e);return n.rootElement!==Fc&&ZD(n.rootElement),n}a(qQ,"buildAst");var dS=class dS extends kQ{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:Fc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&BQ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),my(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ep(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),my(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ep(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ep(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Fc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Ep(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:o}=this.visit(t.content[0]);i.subElements=r,i.textContents=o}return JQ(i,t),ZQ(i,t),e6(i,t,this.tokenVector),my(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Fc,value:Fc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let o=t.Name[0];r.key=o.image,r.syntax.key=hy(o)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let o=t.STRING[0];r.value=zQ(o.image),r.syntax.value=hy(o)}return my(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Fc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let o=$Q(r,["startOffset"]),s=Ep(o,"image").join("");return i.text=s,i}misc(t,{location:n}){}};a(dS,"CstToAstVisitor");var uS=dS,QD=new uS;function my(e){let t=XQ(e);YD(t,n=>n.parent=e)}a(my,"setChildrenParent");function ZD(e,t=[]){let n=jQ(e.attributes,(r,o)=>{if(o.key!==Fc&&GQ({key:o.key,includeEmptyPrefix:!1})===!0){let s=KQ(o.key);if(o.value){let l=o.value;s!==""?r[s]=l:r[QQ]=l}}return r},{}),i=Object.create(null);e.namespaces=HQ(i,t,n),YD(e.subElements,r=>ZD(r,e.namespaces))}a(ZD,"updateNamespaces");function hy(e){return pS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}a(hy,"toXMLToken");function qD(e){return pS(e,["startOffset","startLine","startColumn"])}a(qD,"startOfXMLToken");function zD(e){return pS(e,["endOffset","endLine","endColumn"])}a(zD,"endOfXMLToken");function Aa(e){return JD(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}a(Aa,"exists");function zQ(e){return e.substring(1,e.length-1)}a(zQ,"stripQuotes");function YQ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}a(YQ,"nsToParts");var Fc=null;function JQ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=hy(n);let i=YQ(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=hy(t.END_NAME[0]))}a(JQ,"handleElementOpenCloseNameRanges");function ZQ(e,t){if(Aa(t.OPEN)){let n;Aa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Aa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...qD(t.OPEN[0]),...zD(n)}),Aa(t.SLASH_OPEN)&&Aa(t.END)&&(e.syntax.closeBody={...qD(t.SLASH_OPEN[0]),...zD(t.END[0])})}}a(ZQ,"handleElementOpenCloseBodyRanges");function e6(e,t,n){if(Aa(t.Name)){let i=t.Name[0].endOffset+2;if(Aa(t.START_CLOSE)||Aa(t.SLASH_CLOSE)){let r=(Aa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let o=JD(t.attribute)?UQ(t.attribute).location.endOffset:t.Name[0].endOffset,s=WQ(n,o);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}a(e6,"handleElementAttributeRanges");eV.exports={buildAst:qQ}});var rV=ze((ice,iV)=>{var{forEach:t6,isFunction:ef}=Tp(),{getAstChildrenReflective:n6}=lS();function nV(e,t){switch(e.type){case"XMLDocument":{ef(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{ef(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{ef(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{ef(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{ef(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{ef(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=n6(e);t6(n,i=>{nV(i,t)})}a(nV,"accept");iV.exports={accept:nV}});var aV=ze((oce,oV)=>{var{buildAst:i6}=tV(),{accept:r6}=rV(),{DEFAULT_NS:o6}=fS();oV.exports={buildAst:i6,accept:r6,DEFAULT_NS:o6}});var Ni={};Gs(Ni,{deleteConfigEntityByPath:()=>xz,exportConfig:()=>Az,exportConfigEntityByPath:()=>Sz,generateCustomExtension:()=>RP,generateSchema:()=>bz,getApiVersion:()=>Oz,getChanges:()=>jM,getGenericSchema:()=>zy,getPathToGenericSchema:()=>JV,getProject:()=>_z,importConfig:()=>Pz,importProject:()=>Cz,importProjectSchema:()=>Iz,isDirectory:()=>Lz,log:()=>oe,readDirectory:()=>kP});module.exports=ng(Ni);var pe=te(ce());var K=te(ce());var KH={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Wf=class Wf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||KH,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Wf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Wf(this.logger,t)}};a(Wf,"Logger");var vT=Wf,Ao=new vT,PT=class PT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};a(PT,"EventEmitter");var rl=PT;function Bf(){let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n}a(Bf,"defer");function WL(e){return e==null?"":""+e}a(WL,"makeString");function XH(e,t,n){e.forEach(i=>{t[i]&&(n[i]=t[i])})}a(XH,"copy");var QH=/###/g;function Hf(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(QH,"."):l}a(i,"cleanKey");function r(){return!e||typeof e=="string"}a(r,"canNotTraverseDeeper");let o=typeof t!="string"?t:t.split("."),s=0;for(;s<o.length-1;){if(r())return{};let l=i(o[s]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++s}return r()?{}:{obj:e,k:i(o[s])}}a(Hf,"getLastOfPath");function GL(e,t,n){let{obj:i,k:r}=Hf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),l=Hf(e,s,Object);for(;l.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),l=Hf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n}a(GL,"setPath");function qH(e,t,n,i){let{obj:r,k:o}=Hf(e,t,Object);r[o]=r[o]||[],i&&(r[o]=r[o].concat(n)),i||r[o].push(n)}a(qH,"pushPath");function rg(e,t){let{obj:n,k:i}=Hf(e,t);if(n)return n[i]}a(rg,"getPath");function zH(e,t,n){let i=rg(e,n);return i!==void 0?i:rg(t,n)}a(zH,"getPathWithDefaults");function YL(e,t,n){for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):YL(e[i],t[i],n):e[i]=t[i]);return e}a(YL,"deepExtend");function nl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}a(nl,"regexEscape");var YH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function JH(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>YH[t]):e}a(JH,"escape");var CT=class CT{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};a(CT,"RegExpCache");var TT=CT,ZH=[" ",",","?","!",";"],eW=new TT(20);function tW(e,t,n){t=t||"",n=n||"";let i=ZH.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=eW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),o=!r.test(e);if(!o){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(o=!0)}return o}a(tW,"looksLikeObjectPath");function ET(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let o=0;o<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=o;u<i.length;++u)if(u!==o&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;o+=u-o+1;break}r=s}return r}a(ET,"deepFind");function og(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}a(og,"getCleanedCode");var IT=class IT extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&o?l.push(...i.split(o)):l.push(i)));let u=rg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||typeof i!="string"?u:ET(this.data&&this.data[t]&&this.data[t][n],i,o)}addResource(t,n,i,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),GL(this.data,l,r),o.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let o in i)(typeof i[o]=="string"||Object.prototype.toString.apply(i[o])==="[object Array]")&&this.addResource(t,n,o,i[o],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=rg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?YL(u,i,o):u={...u,...i},GL(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};a(IT,"ResourceStore");var ag=IT,JL={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,i,r))}),t}},KL={},fg=class fg extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),XH(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ao.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!tW(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:o};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(o=p.shift()),t=p.join(r)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),v=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(v),R=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject;if(j&&v&&(typeof v!="string"&&typeof v!="boolean"&&typeof v!="number")&&R.indexOf(O)<0&&!(typeof U=="string"&&O==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,v,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=re,m.usedParams=this.getUsedParamsDetails(n),m):re}if(o){let re=O==="[object Array]",Z=re?[]:{},he=re?E:A;for(let De in v)if(Object.prototype.hasOwnProperty.call(v,De)){let D=`${he}${o}${De}`;Z[De]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[De]===D&&(Z[De]=v[De])}v=Z}}else if(j&&typeof U=="string"&&O==="[object Array]")v=v.join(U),v&&(v=this.extendTranslation(v,t,n,i));else{let re=!1,Z=!1,he=n.count!==void 0&&typeof n.count!="string",De=fg.hasDefaultValue(n),D=he?this.pluralResolver.getSuffix(p,n.count,n):"",Pt=n.ordinal&&he?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",pt=he&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$e=pt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${Pt}`]||n.defaultValue;!this.isValidLookup(v)&&De&&(re=!0,v=$e),this.isValidLookup(v)||(Z=!0,v=s);let Vi=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,Sn=De&&$e!==v&&this.options.updateMissing;if(Z||re||Sn){if(this.logger.log(Sn?"updateKey":"missingKey",p,u,s,Sn?$e:v),o){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let jt=[],Le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Le&&Le[0])for(let Ct=0;Ct<Le.length;Ct++)jt.push(Le[Ct]);else this.options.saveMissingTo==="all"?jt=this.languageUtils.toResolveHierarchy(n.lng||this.language):jt.push(n.lng||this.language);let Ai=a((Ct,Dt,rn)=>{let Mi=De&&rn!==v?rn:Vi;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,Dt,Mi,Sn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,Dt,Mi,Sn,n),this.emit("missingKey",Ct,u,Dt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&he?jt.forEach(Ct=>{let Dt=this.pluralResolver.getSuffixes(Ct,n);pt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Dt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Dt.push(`${this.options.pluralSeparator}zero`),Dt.forEach(rn=>{Ai([Ct],s+rn,n[`defaultValue${rn}`]||$e)})}):Ai(jt,s,$e))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,re?v:void 0):v=this.options.parseMissingKeyHandler(v))}return r?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}extendTranslation(t,n,i,r,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let v=t.match(this.interpolator.nestingRegexp);g=v&&v.length}let m=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language,i),p){let v=t.match(this.interpolator.nestingRegexp),A=v&&v.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),E=0;E<v;E++)A[E]=arguments[E];return o&&o[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=JL.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,o,s,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&typeof n.count!="string",A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(R=>{this.isValidLookup(i)||(l=R,!KL[`${O[0]}-${R}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(KL[`${O[0]}-${R}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(U=>{if(this.isValidLookup(i))return;s=U;let j=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(j,g,U,R,n);else{let re;v&&(re=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,he=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(j.push(g+re),n.ordinal&&re.indexOf(he)===0&&j.push(g+re.replace(he,this.options.pluralSeparator)),A&&j.push(g+Z)),E){let De=`${g}${this.options.contextSeparator}${n.context}`;j.push(De),v&&(j.push(De+re),n.ordinal&&re.indexOf(he)===0&&j.push(De+re.replace(he,this.options.pluralSeparator)),A&&j.push(De+Z))}}let G;for(;G=j.pop();)this.isValidLookup(i)||(o=G,i=this.getResource(U,R,G,n))}))})}),{res:i,usedKey:r,exactUsedKey:o,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string",r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let o of n)delete r[o]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};a(fg,"Translator");var sg=fg;function yT(e){return e.charAt(0).toUpperCase()+e.slice(1)}a(yT,"capitalize");var OT=class OT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ao.create("languageUtils")}getScriptPartFromCode(t){if(t=og(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=og(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=yT(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=yT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=yT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(o=>{if(o===r)return o;if(!(o.indexOf("-")<0&&r.indexOf("-")<0)&&(o.indexOf("-")>0&&r.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===r||o.indexOf(r)===0&&r.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],o=a(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&o(this.formatLanguageCode(s))}),r}};a(OT,"LanguageUtil");var cg=OT,nW=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],iW={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},rW=["v1","v2","v3"],oW=["v4"],XL={zero:0,one:1,two:2,few:3,many:4,other:5};function aW(){let e={};return nW.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:iW[t.fc]}})}),e}a(aW,"createRules");var NT=class NT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ao.create("pluralResolver"),(!this.options.compatibilityJSON||oW.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=aW()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(og(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,o)=>XL[r]-XL[o]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let o=a(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!rW.includes(this.options.compatibilityJSON)}};a(NT,"PluralResolver");var bT=NT;function QL(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=zH(e,t,n);return!o&&r&&typeof n=="string"&&(o=ET(e,n,i),o===void 0&&(o=ET(t,n,i))),o}a(QL,"deepFindWithDefaults");var LT=class LT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ao.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:o,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:R,maxReplaces:U,alwaysFormat:j}=t.interpolation;this.escape=n!==void 0?n:JH,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=o?nl(o):s||"{{",this.suffix=l?nl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?nl(v):A||nl("$t("),this.nestingSuffix=E?nl(E):O||nl(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=U||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=a((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let o,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(E){return E.replace(/\$/g,"$$$$")}a(p,"regexSafe");let g=a(E=>{if(E.indexOf(this.formatSeparator)<0){let j=QL(n,u,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:E}):j}let O=E.split(this.formatSeparator),R=O.shift().trim(),U=O.join(this.formatSeparator).trim();return this.format(QL(n,u,R,this.options.keySeparator,this.options.ignoreJSONStructure),U,i,{...r,...n,interpolationkey:R})},"handleFormat");this.resetRegExp();let m=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,v=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>p(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?p(this.escape(E)):p(E)}].forEach(E=>{for(l=0;o=E.regex.exec(t);){let O=o[1].trim();if(s=g(O),s===void 0)if(typeof m=="function"){let U=m(t,o,r);s=typeof U=="string"?U:""}else if(r&&Object.prototype.hasOwnProperty.call(r,O))s="";else if(v){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=WL(s));let R=E.safeValue(s);if(t=t.replace(o[0],R),v?(E.regex.lastIndex+=s.length,E.regex.lastIndex-=o[0].length):E.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,s;function l(u,p){let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let A=v.match(/'/g),E=v.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u}for(a(l,"handleHasOptions");r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(o=n(l.call(this,r[1].trim(),s),s),o&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=WL(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),o=""),p&&(o=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}};a(LT,"Interpolator");var AT=LT;function sW(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(!s)return;let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=p),p==="false"&&(n[l.trim()]=!1),p==="true"&&(n[l.trim()]=!0),isNaN(p)||(n[l.trim()]=parseInt(p,10))})}return{formatName:t,formatOptions:n}}a(sW,"parseFormatStr");function il(e){let t={};return a(function(i,r,o){let s=r+JSON.stringify(o),l=t[s];return l||(l=e(og(r),o),t[s]=l),l(i)},"invokeFormatter")}a(il,"createCachedFormatter");var FT=class FT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ao.create("formatter"),this.options=t,this.formats={number:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return o=>r.format(o)}),currency:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return o=>r.format(o)}),datetime:il((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return o=>r.format(o)}),relativetime:il((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return o=>r.format(o,i.range||"day")}),list:il((n,i)=>{let r=new Intl.ListFormat(n,{...i});return o=>r.format(o)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=il(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,u)=>{let{formatName:p,formatOptions:g}=sW(u);if(this.formats[p]){let m=l;try{let v=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=v.locale||v.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};a(FT,"Formatter");var ST=FT;function cW(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}a(cW,"removePending");var RT=class RT extends rl{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Ao.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let o={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),o[v]===void 0&&(o[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),o=r[0],s=r[1];n&&this.emit("failedLoading",o,s,n),i&&this.store.addResourceBundle(o,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;let l={};this.queue.forEach(u=>{qH(u.loaded,[o],s),cW(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:o,callback:s});return}this.readingCalls++;let l=a((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,o*2,s)},o);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let o=this.queueLoad(t,n,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:o},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};a(RT,"Connector");var xT=RT;function qL(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a(function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){let i=t[3]||t[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}a(qL,"get");function zL(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}a(zL,"transformOptions");function ig(){}a(ig,"noop");function lW(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}a(lW,"bindMemberFunctions");var Gf=class Gf extends rl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=zL(t),this.services={},this.logger=Ao,this.modules={external:[]},lW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=qL();this.options={...r,...this.options,...zL(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(g){return g?typeof g=="function"?new g:g:null}if(a(o,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Ao.init(o(this.modules.logger),this.options):Ao.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=ST);let m=new cg(this.options);this.store=new ag(this.options.resources,this.options);let v=this.services;v.logger=Ao,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new bT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(v.formatter=o(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new AT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new xT(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),R=1;R<E;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new sg(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),R=1;R<E;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ig),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Bf(),p=a(()=>{let g=a((m,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(v),i(m,v)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ig,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let o=[],s=a(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&o.indexOf(p)<0&&o.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Bf();return t||(t=this.languages),n||(n=this.options.ns),i||(i=ig),this.services.backendConnector.reload(t,n,o=>{r.resolve(),i(o)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&JL.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Bf();this.emit("languageChanging",t);let o=a(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=a((u,p)=>{p?(o(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=a(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let o=a(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix=u.keyPrefix||i||o.keyPrefix;let v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${v}${E}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=a((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(o,t)))}loadNamespaces(t,n){let i=Bf();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Bf();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],o=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=r.concat(o),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new cg(qL());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Gf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ig,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},o=new Gf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new ag(this.store.data,r),o.services.resourceStore=o.store),o.translator=new sg(o.services,r),o.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];o.emit(l,...p)}),o.init(r,n),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};a(Gf,"I18n");var lg=Gf,J=lg.createInstance();J.createInstance=lg.createInstance;var Hz=J.createInstance,Wz=J.dir,Gz=J.init,Kz=J.loadResources,Xz=J.reloadResources,Qz=J.use,qz=J.changeLanguage,zz=J.getFixedT,Yz=J.t,Jz=J.exists,Zz=J.setDefaultNamespace,eY=J.hasLoadedNamespace,tY=J.loadNamespaces,nY=J.loadLanguages;var mR=te(_T()),hR=te(PF()),Og=te(dR()),Je=require("@sap-ux/vocabularies-types/vocabularies/UI"),Yf=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Cg=te(ce());var oe=a((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Cg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Cg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Cg.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var B="#/definitions/",Jf=a((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),fr=a((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Po(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Og.parse)(r.fileContent,r.dataSourceUri))}catch(o){return oe(t,{severity:K.LogSeverity.Error,message:J.t("ANNOERR"),location:{path:J.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},o),i}}),n.length>0&&(i=(0,hR.convert)((0,Og.merge)(...n))),i}a(Po,"parseAndMergeAndConvert");var ll=a(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function JT(e,t,n){var i,r,o,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(o=e.Common)==null?void 0:o.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}a(JT,"evaluateCommonLabel");function Ng(e,t){let n=e.value;return e.$target&&(n=JT(e.$target.annotations,t,n)),n}a(Ng,"getLabelForPropertyPath");function Ig(e,t){var r,o;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(o=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&o.Label&&(n=JT(i.annotations,t,n)),n}a(Ig,"getLabelForDataField");function BG(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let o=r[0];if((i=(n=o==null?void 0:o.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return JT(o.annotations,t,s)}}}else return}a(BG,"getLabel");function gR(e,t,n){let i=Ig(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}a(gR,"getTitleForDataField");function yi(e,t){var s,l,u,p;let n="",i,r,o="";try{let g=BG(e.Label,t);switch(e.$Type){case Je.UIAnnotationTypes.DataField:n=gR(e,t,g);break;case Je.UIAnnotationTypes.DataFieldWithUrl:i=Ig(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Ig(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Je.UIAnnotationTypes.DataFieldForAction:case Je.UIAnnotationTypes.DataFieldWithAction:case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,o=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:o:n=o;break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ig(e,t),n=i||e.Value.path;break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=gR(r,t,g);break;default:break}return n}catch{return n}}a(yi,"getDataFieldDescription");function ut(e){return e.replace("#","::").replace(/\//g,":2f")}a(ut,"prepareRef");function aa(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}a(aa,"getPageTypeV2");function ZT(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}a(ZT,"getPageTypeV4");function HG(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}a(HG,"getTargetAnnotationName");function ri(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}a(ri,"findAlias");function WG(e){return e.substring(e.lastIndexOf(".")+1,e.length)}a(WG,"getAnnotationFromMetaPath");function GG(e,t,n){var s,l;let i=e[e.length-1],r=WG(i),o=ri(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[o])==null?void 0:l[r]}a(GG,"determineTargetAnnotation");function KG(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Je.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}a(KG,"adjustKey");function XG(e,t,n,i,r=K.FioriElementsVersion.v2,o=!1){var m,v;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=KG(t,u,o);let g=GG(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=HG(g,o).replace("#",A),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}a(XG,"getKeyAndEntityTypeOfReferenceFacet");function yR(e,t,n,i,r=K.FioriElementsVersion.v2,o=!1){var g,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Je.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ll(e.Target);if(!A){oe(i,{severity:K.LogSeverity.Error,message:J.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:R,namespace:U}=XG(n,l,p,A,r,o);if(R)return;l=E,p=O,u=U}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}a(yR,"getSectionFacet");function QG(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}a(QG,"getDecodedPathElement");var eE=a(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),vR=a((e,t,n,i,r,o=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=QG(p,n,i);if(r!==void 0&&!o&&l.length-1===u)s[g]=r;else if(!s[g]){if(o)return;s[g]=eE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Co=a((e,t,n,i,r=!1)=>vR(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),TR=a((e,t,n,i,r)=>{vR(e,t,i,r,n)},"setManifestSectionByPathV4");function tE(e){let t,n,i;switch(e.$Type){case Je.UIAnnotationTypes.DataField:t=ll(e.Value);break;case Je.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ll(e.Value);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Je.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ut(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ll(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ut(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:i=ll(e.Value),n=ll(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}a(tE,"getSchemaKeyOfLineItemRecord");function qG(e,t,n){return e.includes(Je.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Je.UIAnnotationTerms.Chart:e.includes(Je.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Je.UIAnnotationTerms.Identification:n&&e.includes(Je.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Je.UIAnnotationTerms.LineItem:e.includes(Je.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Je.UIAnnotationTerms.FieldGroup:e.includes(Je.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Je.UIAnnotationTerms.DataPoint:e.includes(Je.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Je.UIAnnotationTerms.PresentationVariant:void 0}a(qG,"getUIAnnotationTerm");function zG(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Yf.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Yf.CommunicationAnnotationTerms.Address:void 0}a(zG,"getCommunicationAnnotationTerm");function YG(e,t,n){return qG(e,t,n)||zG(e,t)}a(YG,"getAnnotationTerm");function JG(e,t,n,i,r){var p,g,m,v,A,E,O,R,U;let o=ri(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(YG(s,o,i)){case Je.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.LineItem:{if(!s.includes(Je.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${Je.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Yf.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(R=t==null?void 0:t.Target)==null?void 0:R.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Yf.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}a(JG,"evaluateTargetAnnotation");function nE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}a(nE,"getAnnotationPathUsingFullyQualifiedName");function iE(e,t,n,i,r,o=K.FioriElementsVersion.v2,s){var u;let l=yR(e,i,t,s,o,!1);if(l)switch(e.$Type){case Je.UIAnnotationTypes.ReferenceFacet:{JG(l,e,r,i,t);break}case Je.UIAnnotationTypes.CollectionFacet:{let p=nE(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&o===K.FioriElementsVersion.v4&&oe(s,{severity:K.LogSeverity.Error,message:J.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{iE(m,t,n,i,g.facets,o,s)});break}}}a(iE,"addFacetToConfig");function Lg(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let o=ri(K.UIVOCABULARY,t),s=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{iE(m,t,g,e,r,n,i)})}return r}a(Lg,"getObjectPageHeaderFacets");function Fg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let o=ri(K.UIVOCABULARY,t),s=o&&((l=e==null?void 0:e.annotations[o])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{iE(g,t,p,e,r,n,i)})}return r}a(Fg,"getObjectPageFacets");function rE(e){return e[K.ManifestSection.generic]||e[K.ManifestSection.ovp]?K.FioriElementsVersion.v2:K.FioriElementsVersion.v4}a(rE,"getVersionFromManifest");function ZG(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let o=e[K.ManifestSection.generic].pages;if(!o){oe(t,{severity:K.LogSeverity.Error,message:J.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in o){let l=o[s];if(aa((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(aa((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:K.LogSeverity.Error,message:J.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}a(ZG,"determineV2Template");function Zf(e){var i,r,o,s;let t,n=ZT(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(o=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:o.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}a(Zf,"determineV4PageTemplateType");function e5(e){let t;for(let n in e){let i=e[n];if(t=Zf(i),t)break}return t}a(e5,"determineV4TemplateFromPages");function t5(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:K.LogSeverity.Info,message:J.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=e5(n);return i||oe(t,{severity:K.LogSeverity.Error,message:J.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}a(t5,"determineV4Template");function oE(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=ZG(e,n):t===K.FioriElementsVersion.v4?i=t5(e,n):i||oe(n,{severity:K.LogSeverity.Error,message:J.t("NOFE"),location:{path:K.MANIFESTPATH}}),i}a(oE,"getTemplateTypeFromManifest");function ja(e,t,n){e!=null&&e.ID?(t.title=K.FacetTitlePrefix+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}a(ja,"addSectionTitleAndDescription");function fl(e,t,n){var i,r;ja(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}a(fl,"addTargetTitleAndSectionDescription");function Io(e,t,n){if(!t)return;let i;return e.definitions.ObjectPageSection?i=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(i={type:"object",properties:{},additionalProperties:!1},i[K.SchemaTag.isViewNode]=!0),i[K.SchemaTag.annotationPath]=t.annotationPath,fl(t,i,n),i}a(Io,"createDefaultSection");function Rg(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let o=ri(K.UIVOCABULARY,t),s=[];if(e){let p=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=yR(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}a(Rg,"getObjectPageFacetSection");var $a=a((e,t,n,i,r,o)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=o&&o===u?r:u.replace(/\?\?/g,"/");if(s[p]){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),$a(e,l.join("/"),n,i,r,o);return}s=s&&s[p]}})},"deleteEmptyStructure"),YT=a(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Ft=a((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:YT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:YT(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=YT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function _g(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let o=n&&n.split(".");return o&&o[o.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}a(_g,"generatePageId");function aE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(B)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let o=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u])&&o.push(s)}return o}a(aE,"findMatchingKeysByAdditionalProperties");function n5(e,t,n,i){let r=e.$ref;if(!r)return;let o=r.split(B)[1],s=t.definitions[o];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(o);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=aE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(o)}}}a(n5,"fillArrayFromAnyOfReference");function i5(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(B)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{n5(r,n,t,i)}),i.length===0))return;return i}a(i5,"fillArrayFromPropertyDefinition");function r5(e,t,n,i,r,o,s,l){var p,g,m,v;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Oo(t,n,i,u.targetDefinition,r,o,s),u;e.length>1&&e.forEach(R=>{R!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[R].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=o.createInstance(s,E,O,(v=u==null?void 0:u.targetDefinition)==null?void 0:v.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}a(r5,"determineNextDefinitionFromDefinitionArray");function Oo(e,t,n,i,r,o,s){let l;if(i.type==="array")return l=Oo(e,t,n,i.items,r,o,s),l;let u=i5(i,n,e);if(u)return l=r5(u,e,t,n,r,o,s,i),l}a(Oo,"getNextTargetDefinition");var sE=a((e,t,n)=>{let i=e.slice();return t.forEach((r,o)=>{typeof i[o]>"u"?i[o]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[o]=(0,mR.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Dg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}a(Dg,"convertEnumToCSV");function Hi(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}a(Hi,"convertActionKeyToStableId");function gn(e){return e==null?void 0:e.split(B)[1]}a(gn,"getDefinitionKey");function ER(e){return`#/definitions/${e}`}a(ER,"getDefinitionsRef");function Vg(e){return e instanceof Error?e.message:String(e)}a(Vg,"getErrorMessage");function qs(e,t){return e==null?void 0:e.includes(t)}a(qs,"isFeatureSupported");function No(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}a(No,"updatePropertyIndices");function Mg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}a(Mg,"getJSONPropertyByPath");function bR(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}a(bR,"removeNamespaces");function ul(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}a(ul,"replaceNamespaces");var vo=require("@sap-ux/vocabularies-types/vocabularies/UI"),ae=te(ce());var Wi=te(ce());var qt=a((e,t)=>e+t.join("::"),"buildControlIdFromParent"),wg=a((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=a((e,t)=>{let n,i=Wi.FacetTitlePrefix;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function o5(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}a(o5,"escapeId");var AR=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(AR||{}),SR=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(SR||{});function a5(e,t,n){let i;return e=e.map(function(r){if(r===Wi.PropertyName.sections){for(let o=0;o<t.length;o++)if(t[o]===Wi.PropertyName.sections)return i=t[o+1],t[o+1]=Qn(i,n)+"::Table",t[o+1]}return r}),{idBreadcrumbs:e}}a(a5,"mapBreadcrumbs");var cE=a((e,t,n,i,r)=>{let o="listReport",s=[...n];({idBreadcrumbs:t}=a5(t,s,r)),s[0]===Wi.PropertyName.sections?o=s[1].replace(/::com.sap.vocabularies/g,Wi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Wi.VOCWITHSLASH):t[0]===Wi.PropertyName.table&&(o=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Wi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Wi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${o.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,o5(u)},"buildColumnControlId"),Gi=a(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function s5(e){let t=Wi.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}a(s5,"determinePattern");var lE=a((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let o=r[n],s=o,l=o.$ref?e.definitions[o.$ref.split(B)[1]]:o,u=o.description?o.description:l.description,p=s5(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete o.description)},"addPatternForBindingChangeOfEnum"),qn=a((e,t,n)=>{lE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),gt=a((e,t,n)=>{let i=Object.values(AR);lE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),Ki=a((e,t,n)=>{let i=Object.values(SR);lE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}a(zs,"doNotDelete");var QY=te(PR());var CR=Symbol("specificationMetadataKey"),T=a(e=>Reflect.metadata(CR,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(CR,e,t)),n}a(zn,"getReflectMetadata");var Dr=a(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),IR=Symbol("childId"),Mt=a(e=>Reflect.metadata(IR,e),"childId"),kg=a((e,t)=>Reflect.getMetadata(IR,e,t),"getChildId"),Ug=a(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),c5=Symbol("descriptionSrcURL"),Re=a(e=>Reflect.metadata(c5,e),"descriptionSrcURL");var l5=Symbol("validityMetadataKey"),C=a(e=>Reflect.metadata(l5,e),"validity");function jg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}a(jg,"getTextForDeprecated");var VR=te(_R()),MR=te(ce());var wR=VR.default.change,DR={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function kR(e,t){let n="";try{for(let i in DR)e[i]===void 0&&(e[i]=DR[i]);n=wR.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}a(kR,"createChangeString");function Ba(e){try{return wR.parse(e)}catch{return!1}}a(Ba,"parseChangeString");function UR(e,t,n,i,r){let o=n.layer?n.layer===MR.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:o};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}a(UR,"fillFlexChangeContent");function Te(e,t){return kR(e,t)}a(Te,"exportToFlexChange");var Ys=te(ce());function pl(e,t,n,i,r,o){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,o);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}a(pl,"importProperty");function $g(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(oe(i,{severity:Ys.LogSeverity.Warning,message:jg(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}a($g,"checkDeprecatedProperties");function fE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(B)[1]];return fE(n,t)}else return e.title?e.title.startsWith(Ys.FacetTitlePrefix)?e.title.split(Ys.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}a(fE,"getSectionTitle");function Bg(e){let t=e.split(`${Ys.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}a(Bg,"getTargetFromCustomColumnRef");function Lo(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}a(Lo,"removeEmptyStructure");var wt=require("@sap-ux/vocabularies-types/vocabularies/UI");var sa=require("@sap-ux/vocabularies-types/vocabularies/UI");function Hg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}a(Hg,"replaceSpecialChars");var Js=a(function(e){return Hg(bR(e))},"prepareId");function h5(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}a(h5,"evaluateConcat");function Zs(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return h5(e);if(e&&typeof e=="string")return Hg(e.replace(/ /g,"_"))}a(Zs,"getStableIdPartFromValue");var jR=a(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),ca=a(function(e){let t="";if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Js(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=jR(e),t;if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Js(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Zs(e.Value)+"::"),t+=e.Action,Js(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataField)return t="DataField::",t+=Zs(e.Value),Js(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Zs(e.Value)+"::",t+=jR(e),Js(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Zs(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Js(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Zs(e.Value),Js(t)},"getStableIdPartFromDataField");var ue=te(ce());var _e=te(ce());var Xi=require("@sap-ux/vocabularies-types/vocabularies/UI"),WR=require("path"),GR=te(Xs());var Wg="ResponsiveTableWithMultiSelect<LineItems>",Gg="ResponsiveTableWithInlineDelete<LineItems>",y5="TreeTable<LineItems>",v5="AnalyticalTable<LineItems>",T5="GridTable<LineItems>",uE=[Wg,Gg,y5,v5,T5],$R=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],BR="template::",Kg="template:::ObjectPageAction:::";function E5(e,t,n){e.definitions[_e.DefinitionName.LineItems]&&(e.definitions[_e.DefinitionName.LineItems].properties.custom={$ref:`${B}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${B}${n}`},description:"Custom Columns"},e.definitions[t][_e.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[_e.SchemaTag.artifactType]=_e.ArtifactType.Manifest)}a(E5,"addCustomColumnDefinition");function b5(e,t){let n;return e==="TableColumnActionIntentBased"?n=tE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ut(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n=ut(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ut(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}a(b5,"getActionId");function pE(e,t,n,i,r){let o,s=n.lineItemId===_e.DefinitionName.LineItems?"":"ObjectPage",l=b5(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(o="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?o="TableColumnAction":(o=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=yi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:B+u},t.properties[l][_e.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ec(n.lineItemRecord.Action,!0);e.definitions[o]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[o])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][_e.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][_e.SchemaTag.isViewNode]=!0,e.definitions[u][_e.SchemaTag.keys]=[{name:_e.SchemaKeyName.action,value:g}],m&&(e.definitions[u][_e.SchemaTag.target]=m),e.definitions[u][_e.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}a(pE,"handleActionRecord");function A5(e,t,n){e!==_e.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Xi.UIAnnotationTypes.DataFieldForAction||t.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}a(A5,"getColumnActionType");function S5(e,t){let n=[];if(!(e.$Type!==Xi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),A5(t,e,n),n}a(S5,"getActionType");function KR(e,t,n){let i=tE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:B+_e.DefinitionName.TableColumn,description:yi(e.lineItemRecord,e.entityType)},r.properties[i][_e.SchemaTag.propertyIndex]=n,r.properties[i][_e.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Zg(r.properties[i],e.lineItemRecord),em(e.lineItemRecord,r.properties,i)}}a(KR,"generateGenericColumn");function x5(e,t,n,i,r,o,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{pE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&&pE(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{pE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":KR(i,t,r)}}a(x5,"handleAnyAction");function eu(e,t){let n=t.value;return n.includes(_e.UIVOCABULARYALPHADOT+e)?n.replace(_e.UIVOCABULARYALPHADOT,""):""}a(eu,"retrieveNameWithoutVocabularyFromVisualization");function dl(e,t,n,i,r){i=i||_e.DefinitionName.LineItems;let{actions:o,footerActions:s,lineItemPath:l}=Jg(e,t,n,i);if(t){let u=0;t.forEach(p=>{let g={lineItemPath:l,lineItemRecord:p,lineItemId:i,entityType:n},m=S5(p,i);m?m.forEach(v=>{x5(v,e,o,g,u,s,i)}):KR(g,e,u),u++})}r&&(e.definitions[i].properties.custom={$ref:`${B}${r}`})}a(dl,"addLineItemsType");function P5(e,t,n){var r,o;let i=(o=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:o.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}a(P5,"addListReportLeadingProperties");function C5(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let o=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(o){let v=[];for(let A in o){let E=(m=o[A])==null?void 0:m.key;E!==void 0&&!v.includes(E)&&v.push(E)}la(v,r)}}a(C5,"addTabkeyEnum");function Xg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let o=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,GR.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+WR.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");o.push(m)}}}),la(o,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}a(Xg,"addFragmentEnum");function gl(e,t,n,i,r,o=_e.DefinitionName.CustomColumns,s=_e.DefinitionName.CustomColumn,l){E5(e,o,s),P5(e,t,s),C5(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Xg(e,r,u,"fragmentName",s),Xg(e,r,u,"fragmentName",_e.DefinitionName.CustomColumn),Xg(e,r,u,"cellsFragmentName",s),Xg(e,r,u,"cellsFragmentName",_e.DefinitionName.CustomColumn)}a(gl,"addTableColumnExtensions");function XR(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}a(XR,"removeElementsFromEnum");function Qg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=fr(n==null?void 0:n.fullyQualifiedName,Xi.UIAnnotationTerms.SelectionFields);if(r&&(i[_e.SchemaTag.annotationPath]=r),!t)return;let o=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ut(s.value)}>`,p=Jr(s);s.type==="PropertyPath"&&(l=Ng(s,n)),i.properties[s.value]={$ref:B+u},i.properties[s.value][_e.SchemaTag.propertyIndex]=o,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][_e.SchemaTag.isViewNode]=!0,e.definitions[u][_e.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][_e.SchemaTag.dataType]=p,e.definitions[u][_e.SchemaTag.keys]=[{name:_e.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][_e.SchemaTag.annotationPath]=`${i[_e.SchemaTag.annotationPath]}/${o}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${B}SelectionFieldDateSettings`:e.definitions[u].properties={},o++})}a(Qg,"addSelectionFields");function QR(e,t){for(let n of t.entityProperties)e.push(n.name)}a(QR,"addEntityPropertiesToEnum");function qg(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}a(qg,"isDraftEnabled");function qR(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}a(qR,"isEntityDeletable");function zR(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}a(zR,"isEntityUpdatable");function ml(e,t=!1,n){let i=_e.DefinitionName.HeaderActionsStandard,r=_e.DefinitionName.HeaderActionStandard;t&&(i=_e.DefinitionName.ObjectPageHeaderActions,r=_e.DefinitionName.ObjectPageHeaderActionStandard);let o=e.definitions[i];o[_e.SchemaTag.isViewNode]=!0,o.description="Actions",Object.entries((n||o).properties).forEach(([l,u])=>{let p=u.$ref.split(B)[1],g=`${r}<${p}>`;o.properties[l]={$ref:`${B}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][_e.SchemaTag.actionType]=_e.ActionType.Standard})}a(ml,"addStandardHeaderActions");function YR(e,t){let n=e.definitions[_e.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(B)[1],o=`${_e.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${B}${o}`},e.definitions[o]=e.definitions[r],e.definitions[r][_e.SchemaTag.actionType]=_e.ActionType.Standard}}a(YR,"addStandardFooterActionsOP");function zg(e){var i,r,o;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?J.t("NOUIANNOTATIONS",{entityType:t.name}):J.t("NOENTITYTYPE4SET",{entitySetName:(o=e.entitySet)==null?void 0:o.name});oe(e.logger,{severity:_e.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}a(zg,"getUIAnnotationForEntitySet");function Yg(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&oe(n,{severity:_e.LogSeverity.Error,message:J.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}a(Yg,"hasPropertyTypeError");function I5(e,t,n,i){if(e===ue.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case wt.UIAnnotationTypes.DataField:case wt.UIAnnotationTypes.DataFieldForAnnotation:case wt.UIAnnotationTypes.DataFieldWithNavigationPath:case wt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ue.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case wt.UIAnnotationTypes.DataField:case wt.UIAnnotationTypes.DataFieldForAnnotation:case wt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}a(I5,"copyFieldProperties");function O5(e,t,n,i){let r=e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ue.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}a(O5,"determineFieldDefinitionName");function N5(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ue.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(N5,"addKeysTagForDataField");function L5(e,t,n){if(e.$Type===wt.UIAnnotationTypes.DataField||e.$Type===wt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===wt.UIAnnotationTypes.DataFieldWithNavigationPath)N5(e,t,n);else if(e.$Type===wt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ue.SchemaTag.keys]=[{name:"Target",value:ul(e.Target.value)}],t.definitions[n][ue.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===wt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ue.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ue.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(L5,"addKeysTagToField");function F5(e){var t,n;return e.$Type===wt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===wt.UIAnnotationTypes.ConnectedFieldsType}a(F5,"isConnectedField");function R5(e,t,n,i,r){let o=n.Target.$target,s={};if(o.$Type===wt.UIAnnotationTypes.ConnectedFieldsType){let u=(o.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=o.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),dE(e,t,v,`ConnectedFields::${o.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},o.fullyQualifiedName.split("@")[0])}}}return s}a(R5,"addConnectedFields");function JR(e,t,n){if(n)return n;let i=ut(t);return e.definitions[i].properties}a(JR,"getFieldsSchemaContainer");function dE(e,t,n,i,r,o,s,l=!0,u={},p=o.entityType.fullyQualifiedName){var E;let g=ca(n),m=s===ue.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=O5(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===wt.UIAnnotationTypes.DataFieldForAction||n.$Type===wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ue.SectionType.Section){let O=JR(t,`${e}${ue.DefinitionName.Actions}<${i}>`,u.actions),R=O[m]={$ref:`${B}${v}`};R[ue.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=JR(t,`${e}${ue.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${B}${v}`,propertyIndex:parseInt(r)},F5(n)&&(A=R5(e,t,n,o,s))}t.definitions[v]={type:"object",properties:A,description:yi(n,o.entityType),additionalProperties:!1},L5(n,t,v),t.definitions[v][ue.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][ue.SchemaTag.annotationType]=n.$Type,t.definitions[v][ue.SchemaTag.isViewNode]=!0,Zg(t.definitions[v],n),I5(s,t,n,v),n.$Type===wt.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[v].$ref=`${B}${ue.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}a(dE,"addField");function _5(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}a(_5,"determineTargetIdOfForm");function D5(e,t,n,i,r,o){if(e.base===ue.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&dE(t,n,l,i,s,e,r,o)}else for(let s in e.target.Data){let l=e.target.Data[s];dE(t,n,l,i,s,e,r)}}a(D5,"addFieldsToFormDefinition");function V5(e,t,n){var i,r;if(e.target){let o=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.target,value:o.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ue.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ue.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ue.SchemaTag.annotationPath]=fr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}a(V5,"addTagsToFormDefinition");function tm(e,t,n,i,r,o){if(!t.target)return;let s=_5(t),l=ut(`${e}${ue.DefinitionName.Form}<${s}>`),u=ut(`${e}${ue.DefinitionName.Fields}<${s}>`),p=ut(`${e}${ue.DefinitionName.Actions}<${s}>`),g=!(t.base===ue.FacetBase.Identification&&o.indexOf("#")<0);return n.properties.form={$ref:`${B}${l}`},e===ue.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${B}${p}`},fields:{$ref:`${B}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][ue.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${B}${u}`}},description:"Form",additionalProperties:!1},V5(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ue.SchemaTag.isViewNode]=!0,D5(t,e,i,s,r,g),s}a(tm,"handleForm");function gE(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),o=t.references.find(s=>s.alias===r);o&&(i=e.replace(n,o.namespace))}return i}a(gE,"replaceAlias");function nm(e,t){let n=gE(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let o,s,l;return r>-1?(o=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${o}`):(o=i,l=e.fullyQualifiedName.split("@")[0],o&&o!==""&&(s=`${l.substring(0,l.length-1)}::${o}`)),{actionName:o,actionId:s,namespace:l}}a(nm,"getActionNameAndId");function ZR(e,t){var n,i;for(let r in e){let o=e[r];return((n=o.component)==null?void 0:n.name)===ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===o.entitySet:ZR(o.pages,t)}}a(ZR,"isFirstObjectPage");function im(e,t,n,i,r){var g,m;e.definitions[ue.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${B}${ue.DefinitionName.ObjectPageFooter}`},e.definitions[ue.DefinitionName.ObjectPageFooter].properties[ue.PropertyName.actions]={$ref:`${B}${ue.DefinitionName.FooterActions}`};let o=e.definitions[ue.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};o[ue.SchemaTag.isViewNode]=!0;let s=ri(ue.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${wt.UIAnnotationTerms.Identification}`,`/@${wt.UIAnnotationTerms.Identification}`);o[ue.SchemaTag.annotationPath]=`/${v}`,i(u,e,o,p)}else u&&(o[ue.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${wt.UIAnnotationTerms.Identification}`);n===ue.FioriElementsVersion.v2&&ZR(r,t)&&!qg(l)&&YR(e,o),delete e.definitions[ue.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ue.DefinitionName.ObjectPageFooter}<${ue.DefinitionName.ObjectPageFooterActions}>`]}a(im,"addFooterActions");function rm(e,t,n,i,r,o=!1){var m,v;let s=ue.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ue.DefinitionName.ObjectPageHeader].properties[ue.PropertyName.actions]={$ref:`${B}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[ue.SchemaTag.isViewNode]=!0;let p=ri(ue.UIVOCABULARY,i),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[ue.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${wt.UIAnnotationTerms.Identification}`,`/@${wt.UIAnnotationTerms.Identification}`):t&&(u[ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${wt.UIAnnotationTerms.Identification}`),r(t,e,g,u,i,n),o&&ml(e,!0,l)}a(rm,"addHeaderActions");function om(e,t){e.properties.header={$ref:`${B}${ue.DefinitionName.ObjectPageHeader}`},e.definitions[ue.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ue.DefinitionName.ObjectPageHeader][ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${wt.UIAnnotationTerms.HeaderInfo}`)}a(om,"addCommonHeaderSchema");function e0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}a(e0,"determineEntitySetOfEntityType");var ur=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=te(ce());function la(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}a(la,"addEnumToSchema");function tu(e,t,n){var o;let i=(o=e==null?void 0:e.annotations)==null?void 0:o.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}la(r,n)}a(tu,"addEnumForValidAnnotations");function Ha(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];tu(e,r,i)}a(Ha,"addEnumForSingleTabVariant");function t0(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];tu(n.entityType,r,i)}a(t0,"addEnumForMultiTabVariant");function n0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),la(r,i)}a(n0,"addEnumForVariantEntitySet");function i0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[ur.UIAnnotationTerms.FieldGroup];tu(e,r,i)}a(i0,"addEnumFieldGroupAnnotationPath");function sm(e,t,n,i){let r=n.map(o=>{let s=i.find(p=>!!o[p]),l=o[s],u=o.label||o.title;return{const:l,...u&&{description:u},...o.custom&&{custom:o.custom}}});if(r.length){e.definitions[tt.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let o of t){let s=e.definitions[o],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${B}${tt.DefinitionName.RelatedFacetKeys}`},l]}}}}a(sm,"addDefinitionForRelatedFacetKeys");function hl(e){return e.replace("#","::")}a(hl,"getFacetKeyInSchema");function r0(e,t){return`${e}<${hl(t)}>`}a(r0,"getFacetDefinitionKey");function kt(e,t,n,i=!0,r){let o=t;if(i&&(o=r0(r||e,t)),e&&e!==o){let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[o]=s}return n.definitions[o]}a(kt,"parseSchemaDefinition");function am(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${ur.UIAnnotationTerms.LineItem}`?i=`${B}${n}`:(i=`${B}${n}<${t}>`,kt(n,t,e,!0)),i}a(am,"getCustomExtensionDefinitionName");function Jg(e,t,n,i,r,o){let s;if(e.definitions[i]={type:"object",properties:{},description:"Columns"},e.definitions[i][tt.SchemaTag.isViewNode]=!0,e.definitions[i].additionalProperties=!1,r){let E=am(e,i,r);e.definitions[i].additionalProperties={$ref:E}}let l=i.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.ToolBar:tt.DefinitionName.ObjectPageToolBar,u=`${l}<${i}>`;e.definitions[u]=JSON.parse(JSON.stringify(e.definitions[`${l}`]));let p=`${tt.DefinitionName.Actions}<${ut(i)}>`;e.definitions[u].properties.actions.$ref=B+p;let g=i.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.Actions:tt.DefinitionName.ObjectPageToolBarActions,m=e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[g]));if(m.properties={},m.additionalProperties=!1,o){let E=am(e,i,o);m.additionalProperties={$ref:E}}let v,A;if(i===tt.DefinitionName.LineItems&&e.properties.footer){A=`${tt.DefinitionName.Footer}<${i}>`,e.properties.footer.$ref=`${B}${A}`,e.definitions[A]=JSON.parse(JSON.stringify(e.definitions[tt.DefinitionName.GenericFooter]));let E=`${tt.DefinitionName.FooterActions}<${ut(i)}>`;e.definitions[A].properties.actions.$ref=B+E,v=e.definitions[E]=JSON.parse(JSON.stringify(e.definitions[tt.DefinitionName.Actions])),v.properties={},v.additionalProperties=!1}return t&&(s=fr(n==null?void 0:n.fullyQualifiedName,t.term,t.qualifier),s&&(e.definitions[u][tt.SchemaTag.annotationPath]=s,v&&(e.definitions[A][tt.SchemaTag.annotationPath]=s))),{actions:m,footerActions:v,lineItemPath:s}}a(Jg,"addCommonLineItemDefinitions");function o0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}a(o0,"getDataTypeFromAnnotation");function tc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=o0(e.$Type)),t}a(tc,"determineDataTypeOfTarget");function Jr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=tc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=o0(e.$Type):e.type&&(t=e.type),t}catch{return t}}a(Jr,"determineDataType");function Zg(e,t){let n=Jr(t);n&&(e[tt.SchemaTag.dataType]=n)}a(Zg,"addDataTypeToDefinition");function $n(e,t){return`${B}${r0(e,t)}`}a($n,"getFacetDefinitionLink");function Wa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${B}${i}`}a(Wa,"addDefinitionRef");function cm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${tt.UIVOCABULARY}`);t=`/${n}/@${tt.UIVOCABULARY}${i}`}return t}a(cm,"getFacetAnnotationPath");function nu(e,t,n,i,r,o,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${o}${e.base}${s}`;n.properties[t]={$ref:$n(o?u:l,t)};let p=kt(o?u:l,t,i,!0,o?u:void 0);ja(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}a(nu,"handleAddressContact");function mE(e,t,n){typeof e=="object"&&(e[t]=n)}a(mE,"updateSchemaProperty");function yl(e,t,n=ut("")){let i=t.entityProperties.map(o=>o.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];mE(r.properties.fields.items,"enum",i)}a(yl,"addFieldsType");function M5(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}a(M5,"findFirstSchemaDefinitionKey");function lm(e,t,n,i){var p;let r=t.description,o=t.keys,s=!t.annotationPath;if(t.$ref){let g=gn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,o=m.keys))}let l=n,u=M5(o,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}a(lm,"getEnumEntry");function Ga(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=lm(e,u,l,i);r.push(p)}let o=e.definitions[n.definition]||n.schema;if(typeof o=="object")if(n.property){let l=(s=o.properties)==null?void 0:s[n.property];mE(l,"oneOf",r)}else mE(o,"oneOf",r)}a(Ga,"addDescriptiveEnumDefinition");function ec(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),o=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,o),n=r>0?n.substring(r+1):n.substring(o+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}a(ec,"getActionKey");function em(e,t,n){var i,r,o;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:Zs(e.Value)}];else if(e.$Type===ur.UIAnnotationTypes.DataFieldWithAction||e.$Type===ur.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ec(e.Action,!0);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.action,value:s}],l&&(t[n][tt.SchemaTag.target]=l)}else if(e.$Type===ur.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ec(e.Target.value,!1);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.target,value:ul(s)}],t[n][tt.SchemaTag.target]=(o=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:o.split("@")[0]}else if(e.$Type===ur.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===ur.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ec(s,!0);t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][tt.SchemaTag.target]=u)}}catch{return}}a(em,"addKeyToDefinition");var vl=te(ce());var a0=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var s0="1.108.30";var Ka=class Ka{constructor(){Ka.distTagsOfSpec.length===0&&(Ka.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Ka.distTagsOfSpec=[]}getSpecVersion(){return s0}getDistTagsOfVersion(){let t=[],n=a0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(o=>o.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=J.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});oe(n,{severity:vl.LogSeverity.Info,message:r,location:{path:vl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Ka.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=J.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:vl.LogSeverity.Warning,message:r,location:{path:vl.MANIFESTPATH}})}}};a(Ka,"DistTagEvaluator"),Ka.distTagsOfSpec=[];var iu=Ka;var fe=te(ce());var yn=te(ce());var _n=te(ce());function j5(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}a(j5,"getCustomPageName");function c0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||_n.ViewTypes.XML}a(c0,"getViewType");function $5(e,t){return c0(e,t).toLowerCase()}a($5,"getViewTypeExtension");function B5(e,t,n){var p,g;let i=a(m=>{var v;return(v=m.split(`${t.id}.`)[1])==null?void 0:v.split(".")},"splitViewPath"),r=t.settings,o=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(g=e.view)==null?void 0:g.name;s!=null&&s.includes(t.id)?n=i(s):o!=null&&o.includes(t.id)&&(n=[...i(o),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}a(B5,"getViewPath");function H5(e,t){let n=e.entitySet||j5(e),{viewPath:i,fileName:r}=B5(e,t,[n]),o=$5(e,t);return[...i,`${r}.view.${o}`].join("/")}a(H5,"getCustomPagePath");var hE=class hE{constructor(t,n,i,r,o,s,l){this.unhandledControllers=[];let u=Ft(_n.SchemaType.Application);this.app={$schema:u.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:o,odata:o===_n.FioriElementsVersion.v2?_n.OdataVersion.v2:_n.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let o in this.app.pages){i=this.app.pages[o];let s=this.app.target.odata===_n.OdataVersion.v4?o:i.entitySet,l=this.getPageConfigFile(i,s);l&&(t[`${_n.DirName.Pages}/${o}.json`]=l)}let r=JSON.parse(JSON.stringify(this.app));for(let o in r.pages)delete r.pages[o].config;return n[_n.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var o;let i,r=c0(t,this.app)===_n.ViewTypes.XML&&!!t.config;if(t.pageType===_n.PageTypeV4.CustomPage||t.pageType===_n.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Ft(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(o=t.view)==null?void 0:o.id:void 0,l=Ft(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Ft(t.pageType);i.$schema=u.path}}return(i&&t.pageType===_n.PageTypeV4.CustomPage||t.pageType===_n.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=H5(t,this.app);n.$filePath=i}};a(hE,"AppProvider");var Xa=hE;var Ge=te(ce());var nc=te(ce());function fm(e,t,n){if(t.controlType.endsWith(nc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===nc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[nc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",nc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}a(fm,"addFlexForTable");var Tl=te(ce());var Bn=a((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),l0=a((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),f0=a((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function yE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}a(yE,"getNewPageTemplate");function W5(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}a(W5,"findPageInManifest");function G5(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=yE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:yE(e[t].pageType)}),!Array.isArray(n.pages))){let i=W5(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=yE(e[t].pageType)),vE(t,e,i)}}a(G5,"transformPageFromAssociation");function K5(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var o;let r=e.pages[i];if(((o=r.component)==null?void 0:o.name)===Tl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Tl.PageTypeV2.ListReport||n.pageType===Tl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}a(K5,"deletePage");function vE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Tl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)G5(t,r,n);Array.isArray(n.pages)||K5(n,t,i)}}a(vE,"transformPageToNewManifestV2");var q0=te(Xs());var sA={};Gs(sA,{ALPAnalyticalTable:()=>ab,ALPGridTable:()=>ob,ALPResponsiveTable:()=>rb,Action:()=>fb,AnalyticalCard:()=>xl,AnalyticalCardSettings:()=>gm,AnalyticalCardSettingsv4:()=>xE,AnalyticalListPageFilterBar:()=>_E,AnalyticalTable:()=>ib,BaseCustomSection:()=>Vu,ChartSettings:()=>Ob,ChartSettingsType:()=>EE,CommonCardSettings:()=>Ya,CommonFilterBar:()=>mu,CommonHeaderFacetSettings:()=>uc,CommonTableSettings:()=>ns,CommonTableSettingsForSections:()=>hc,CreateWithFilters:()=>zE,CustomCard:()=>AE,DataLoadSettings:()=>JE,DateRange:()=>NE,DefaultDateRange:()=>LE,DefaultSpanObject:()=>bE,FRAGMENT_DEFINITION:()=>Ro,Field:()=>OE,FieldForAction:()=>kE,Fields4Dialog:()=>ZE,Fields4DialogOP:()=>tA,FooterAction:()=>pb,FormAction:()=>wE,GlobalChartSettings:()=>Zb,GlobalTableSettings:()=>oA,GridTable:()=>sb,HeaderActionStandard:()=>yb,HeaderSections:()=>Mb,KPISettings:()=>Nb,LinkListCardSettings:()=>CE,LinklistCard:()=>pu,ListCard:()=>Sl,ListCardSettings:()=>SE,ListReportFilterBar:()=>DE,MultiEdit:()=>YE,ObjectPageAnalyticalTable:()=>nA,ObjectPageChart:()=>Jb,ObjectPageCustomSectionFragment:()=>Mu,ObjectPageCustomSectionView:()=>wu,ObjectPageFooterAction:()=>kb,ObjectPageFooterActionStandard:()=>Tb,ObjectPageGridTable:()=>iA,ObjectPageHeader:()=>Lb,ObjectPageHeaderAction:()=>Fb,ObjectPageHeaderActionStandard:()=>vb,ObjectPageHeaderSectionAddress:()=>Vb,ObjectPageHeaderSectionChart:()=>_b,ObjectPageHeaderSectionDataPoint:()=>Db,ObjectPageHeaderSectionForm:()=>Rb,ObjectPageLayout:()=>jb,ObjectPageResponsiveTable:()=>yc,ObjectPageSectionAddressV2:()=>Gb,ObjectPageSectionChartV2:()=>Hb,ObjectPageSectionContactV2:()=>Kb,ObjectPageSectionFormV2:()=>Bb,ObjectPageSectionTableV2:()=>Wb,ObjectPageSectionV2:()=>$b,ObjectPageSubSectionChartV2:()=>qb,ObjectPageSubSectionContactV2:()=>zb,ObjectPageSubSectionFormV2:()=>Qb,ObjectPageSubSectionTableV2:()=>Yb,ObjectPageSubSectionV2:()=>Xb,ObjectPageToolBarAction:()=>aA,ObjectPageTreeTable:()=>rA,QuickVariantSelection:()=>eb,QuickVariantSelectionOP:()=>eA,QuickVariantSelectionX:()=>tb,ResponsiveTable:()=>ac,SAP_UI_TABLE:()=>bm,SaveAndEditOP:()=>hb,SelectionFieldDateSettings:()=>FE,SelectionFields:()=>RE,Share:()=>db,ShareOP:()=>gb,StackCard:()=>uu,StackCardSettings:()=>PE,TableALP:()=>Nl,TableCard:()=>Pl,TableCardSettings:()=>IE,TableColumn:()=>Ab,TableColumnAction:()=>Bm,TableColumnActionIntentBased:()=>Sb,TableCustomColumn:()=>xb,ToolBar:()=>Cb,ToolBarAction:()=>ub,TreeTable:()=>nb,UpAndDownNavigationOP:()=>mb,buildIntentBasedActionId:()=>Eb,deleteColumnFromFragment:()=>xm,deleteType:()=>Fl,exportColorPalette:()=>g0,exportCreateParametersFields:()=>Rm,exportCustomColumnsToFragment:()=>QE,exportDateSettingsField:()=>v0,exportDefaultSpan:()=>m0,exportType:()=>Ll,getChartSectionControlId:()=>W0,getContactSubSectionControlId:()=>K0,getCustomColumnPath:()=>Pm,getFormSectionControlId:()=>H0,getRootCustomColumnFromFragmentJSON:()=>vu,getSectionControlId:()=>gc,getSmartChartControlId:()=>Iu,getSmartTableControlId:()=>ts,getSubSectionControlId:()=>G0,getTableSectionControlId:()=>B0,importCreateParameters:()=>Fm,importDateSettings:()=>VE});var Yn=te(ce());var je=a(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),eo=a(e=>je(e)+"/tableSettings","getTableSettingPathV2"),u0=a(e=>je(e)+"/chartSettings","getChartSettingPathV2"),p0=a(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var hn=a(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Pe=a(e=>{let t=[Yn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ic=a((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),dm=a(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ci=a(e=>{let t=[];return t.push(dm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),rc=a(e=>Ci(e)+"/tableSettings","getGlobalTableSettingsPathV2"),to=a((e,t,n)=>{let i=[];i.push(dm(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Vr=a((e,t,n)=>to(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),d0=a((e,t,n)=>to(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),TE=a(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),fa=a((e,t,n,...i)=>{let r="|",o=n.split(r),s=e[e.length-1].split(r),l="";o.length===4?l=[o[2],o[3]].join(r):o.length===3&&(l=o[2]);let u=[o[0],s[s.length-1],l].join(r);return i.unshift(u),`${TE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),pm=class pm{};a(pm,"ApplicationV2"),h([Mt("settings")],pm.prototype,"settings",2);var um=pm,Zr=class Zr{};a(Zr,"AppSettings"),h([T({manifest:{path:()=>"sap.app"}})],Zr.prototype,"title",2),h([T({manifest:{path:()=>"sap.app"}})],Zr.prototype,"description",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.50.0"})],Zr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.46.0"})],Zr.prototype,"forceGlobalRefresh",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.74.0"})],Zr.prototype,"tableColumnVerticalAlignment",2),h([T({manifest:{path:()=>"sap.ui5"}}),C({since:"1.56.0"}),Re("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Zr.prototype,"flexEnabled",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.96.0"})],Zr.prototype,"draftDiscardConfirmationSettings",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.96.0"})],Zr.prototype,"statePreservationMode",2);var Qa=Zr;var ru=te(ce());function X5(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ru.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}a(X5,"importColorPalette");function g0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ru.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}a(g0,"exportColorPalette");function m0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}a(m0,"exportDefaultSpan");var mm=class mm{};a(mm,"ChartSettingsType"),h([T({manifest:{path:()=>hn()+"/chartSettings"}})],mm.prototype,"showDataLabel",2);var EE=mm,qa=class qa{};a(qa,"DefaultSpanObject"),h([T({manifest:{path:t=>Pe(t)}})],qa.prototype,"cols",2),h([T({manifest:{path:t=>Pe(t)}})],qa.prototype,"rows",2),h([T({manifest:{path:t=>Pe(t)}})],qa.prototype,"showOnlyHeader",2),h([T({manifest:{path:t=>Pe(t)}})],qa.prototype,"minimumTitleRow",2),h([T({manifest:{path:t=>Pe(t)}})],qa.prototype,"minimumSubTitleRow",2);var bE=qa,Gt=class Gt{};a(Gt,"CommonCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"entitySet",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"title",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"subTitle",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"annotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"dataPointAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"selectionPresentationAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"kpiAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"category",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"dynamicSubtitleAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"valueSelectionInfo",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"showFilterInHeader",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"sortBy",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"sortOrder",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"identificationAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"selectionAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"presentationAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"enableLocaleCurrencyFormatting",2),h([T({manifest:{path:t=>Pe(t),export:m0}})],Gt.prototype,"defaultSpan",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"requireAppAuthorization",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"showSortingInHeader",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"tabs",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"addODataSelect",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"showRefresh",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"customParams",2);var Ya=Gt,El=class El{};a(El,"CustomCard"),h([T({manifest:{path:t=>Pe(t)}})],El.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],El.prototype,"template",2),h([T({manifest:{path:t=>Pe(t)}})],El.prototype,"settings",2);var AE=El,za=class za extends Ya{};a(za,"ListCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],za.prototype,"showLineItemDetail",2),h([T({manifest:{path:t=>Pe(t)}})],za.prototype,"imageSupported",2),h([T({manifest:{path:t=>Pe(t)}})],za.prototype,"enableAddToInsights",2),h([T({manifest:{path:t=>Pe(t)}})],za.prototype,"listFlavor",2),h([T({manifest:{path:t=>Pe(t)}})],za.prototype,"listType",2);var SE=za,ou=class ou{};a(ou,"ListCard"),h([T({manifest:{path:t=>Pe(t)}})],ou.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],ou.prototype,"template",2);var Sl=ou,no=class no extends Ya{};a(no,"AnalyticalCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"chartAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"ignoreSapText",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"enableAddToInsights",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"navigation",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"valueSelectionInfo",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"chartProperties",2),h([T({manifest:{path:t=>Pe(t),import:X5,export:g0}})],no.prototype,"colorPalette",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"bEnableStableColors",2);var gm=no,hm=class hm extends gm{};a(hm,"AnalyticalCardSettingsv4"),h([T({manifest:{path:t=>Pe(t)}})],hm.prototype,"measureAggregate",2);var xE=hm,au=class au{};a(au,"AnalyticalCard"),h([T({manifest:{path:t=>Pe(t)}})],au.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],au.prototype,"template",2);var xl=au,bl=class bl extends Ya{};a(bl,"StackCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],bl.prototype,"itemText",2),h([T({manifest:{path:t=>Pe(t)}})],bl.prototype,"objectStreamCardsNavigationProperty",2),h([T({manifest:{path:t=>Pe(t)}})],bl.prototype,"objectStreamCardsSettings",2);var PE=bl,su=class su{};a(su,"StackCard"),h([T({manifest:{path:t=>Pe(t)}})],su.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],su.prototype,"template",2);var uu=su,Al=class Al extends Ya{};a(Al,"LinkListCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],Al.prototype,"listFlavor",2),h([T({manifest:{path:t=>Pe(t)}})],Al.prototype,"headerAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Al.prototype,"staticContent",2);var CE=Al,cu=class cu{};a(cu,"LinklistCard"),h([T({manifest:{path:t=>Pe(t)}})],cu.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],cu.prototype,"template",2);var pu=cu,lu=class lu extends Ya{};a(lu,"TableCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],lu.prototype,"showLineItemDetail",2),h([T({manifest:{path:t=>Pe(t)}})],lu.prototype,"enableAddToInsights",2);var IE=lu,fu=class fu{};a(fu,"TableCard"),h([T({manifest:{path:t=>Pe(t)}})],fu.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],fu.prototype,"template",2);var Pl=fu;var h0=te(ce());var Q5=a((e,t,n,i,r)=>{let o=Qn(n[1],r),s=n.slice(-1)[0];return qt(e,[o,s,"GroupElement"])},"getSmartFieldControlId"),ym=class ym{};a(ym,"Field"),h([T({flex:{controlId:Q5,controlType:()=>h0.ControlType.GroupElement,createFlexChange:Te},generate:gt})],ym.prototype,"visible",2);var OE=ym;var oc=te(ce());function VE(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}a(VE,"importDateSettings");function q5(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((o,s)=>{r[s]=o,o.equals&&typeof o.equals=="string"&&(r[s].equals=o.equals.split(","))})),r}a(q5,"importDateSettingsField");function v0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let o=i[r];e[n][r]=o,o.equals&&Array.isArray(o.equals)&&(e[n][r].equals=o.equals.join())}}a(v0,"exportDateSettingsField");var Cl=class Cl{};a(Cl,"DateRange"),h([T({manifest:{path:t=>je(t)+oc.DATESETTINGSPATH}}),C({since:"1.77.0"})],Cl.prototype,"useDateRange",2),h([T({manifest:{path:t=>je(t)+oc.DATESETTINGSPATH,import:VE,export:Dg}}),C({since:"1.77.0"})],Cl.prototype,"selectedValues",2),h([T({manifest:{path:t=>je(t)+oc.DATESETTINGSPATH}}),C({since:"1.77.0"})],Cl.prototype,"exclude",2);var NE=Cl,vm={controlId:qt,controlType:()=>oc.ControlType.SmartFilterBar,createFlexChange:Te},du={path:(e,t,n)=>`${je(e)}${oc.DATESETTINGSPATH}/fields/${n}`},y0={...du,import:q5,export:v0},Tm=class Tm{};a(Tm,"DefaultDateRange"),h([T({manifest:du}),C({since:"1.90.0"})],Tm.prototype,"operation",2);var LE=Tm,Ja=class Ja{};a(Ja,"SelectionFieldDateSettings"),h([T({manifest:y0}),C({since:"1.77.0"})],Ja.prototype,"selectedValues",2),h([T({manifest:du}),C({since:"1.77.0"})],Ja.prototype,"exclude",2),h([T({manifest:du}),C({since:"1.77.0"})],Ja.prototype,"customDateRangeImplementation",2),h([T({manifest:y0}),C({since:"1.77.0"})],Ja.prototype,"filter",2),h([T({manifest:du}),C({since:"1.90.0"})],Ja.prototype,"defaultValue",2);var FE=Ja,ME=class ME{};a(ME,"SelectionFields");var RE=ME,io=class io{};a(io,"CommonFilterBar"),h([T({manifest:{path:t=>je(t)}}),C({since:"1.38.0"})],io.prototype,"smartVariantManagement",2),h([T({flex:vm}),C({since:"1.40.0"})],io.prototype,"liveMode",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.48.0"})],io.prototype,"variantManagementHidden",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.52.0"})],io.prototype,"subTitleIfVariantMgmtHidden",2),h([T({manifest:{path:t=>je(t)+"/filterSettings",import:VE}}),C({since:"1.77.0"})],io.prototype,"dateSettings",2),h([T({flex:vm}),C({since:"1.28.0"})],io.prototype,"showClearOnFB",2),h([T({flex:vm}),C({since:"1.38.0"})],io.prototype,"showFilterConfiguration",2),h([T({flex:vm}),C({since:"1.28.0"})],io.prototype,"showRestoreOnFB",2);var mu=io,gu=class gu extends mu{};a(gu,"AnalyticalListPageFilterBar"),h([T({manifest:{path:t=>je(t)}})],gu.prototype,"showGoButtonOnFilterBar",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.60.0"})],gu.prototype,"filterDefaultsFromSelectionVariant",2);var _E=gu,Em=class Em extends mu{};a(Em,"ListReportFilterBar"),h([T({manifest:{path:t=>je(t)}}),Re("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Em.prototype,"annotationPath",2);var DE=Em;var UE=te(ce());var z5=a((e,t,n,i,r)=>{if(i()===UE.ControlType.Button){let o=n[n.length-1],s=Qn(n[1],r);return`${e}action::${o}::${s}::FormAction`}return qt(e,t)},"getFormActionButtonId"),Fo={controlId:z5,controlType:()=>UE.ControlType.Button,createFlexChange:Te},Za=class Za{};a(Za,"FormAction"),h([T({flex:Fo,generate:gt})],Za.prototype,"visible",2),h([T({flex:Fo})],Za.prototype,"tooltip",2),h([T({flex:Fo})],Za.prototype,"icon",2),h([T({flex:Fo})],Za.prototype,"activeIcon",2),h([T({flex:Fo})],Za.prototype,"type",2);var wE=Za,es=class es{};a(es,"FieldForAction"),h([T({flex:Fo,generate:gt})],es.prototype,"visible",2),h([T({flex:Fo})],es.prototype,"tooltip",2),h([T({flex:Fo})],es.prototype,"icon",2),h([T({flex:Fo})],es.prototype,"activeIcon",2),h([T({flex:Fo}),C({since:"1.73.0"})],es.prototype,"type",2);var kE=es;var Tt=te(ce()),ro=te(Xs());var HE=require("path"),g8=te(ce()),F0=te(L0()),R0=require("fs");var m8=(0,HE.join)(__dirname,"templates");var h8=a((e,t)=>{let n=(0,R0.readFileSync)(e,"utf8");return(0,F0.render)(n,t)},"renderTemplate");var WE=a((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return h8((0,HE.join)(m8,t+".xml"),n)},"getSingleColumnContent"),GE=a((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=WE(i,t);n=n+`
288
+ }`;var et=uO(function(){return bt(P,Oe+"return "+ee).apply(e,N)});if(et.source=ee,eT(et))throw et;return et}a(A4,"template");function S4(c){return It(c).toLowerCase()}a(S4,"toLower");function x4(c){return It(c).toUpperCase()}a(x4,"toUpper");function P4(c,f,d){if(c=It(c),c&&(d||f===e))return EC(c);if(!c||!(f=or(f)))return c;var y=Xr(c),b=Xr(f),P=bC(y,b),N=AC(y,b)+1;return Va(y,P,N).join("")}a(P4,"trim");function C4(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,xC(c)+1);if(!c||!(f=or(f)))return c;var y=Xr(c),b=AC(y,Xr(f))+1;return Va(y,0,b).join("")}a(C4,"trimEnd");function I4(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(ev,"");if(!c||!(f=or(f)))return c;var y=Xr(c),b=bC(y,Xr(f));return Va(y,b).join("")}a(I4,"trimStart");function O4(c,f){var d=D,y=Pt;if(dn(f)){var b="separator"in f?f.separator:b;d="length"in f?Ye(f.length):d,y="omission"in f?or(f.omission):y}c=It(c);var P=c.length;if($c(c)){var N=Xr(c);P=N.length}if(d>=P)return c;var F=d-Bc(y);if(F<1)return y;var w=N?Va(N,0,F).join(""):c.slice(0,F);if(b===e)return w+y;if(N&&(F+=w.length-F),tT(b)){if(c.slice(F).search(b)){var q,z=w;for(b.global||(b=yv(b.source,It(BP.exec(b))+"g")),b.lastIndex=0;q=b.exec(z);)var ee=q.index;w=w.slice(0,ee===e?F:ee)}}else if(c.indexOf(or(b),F)!=F){var ge=w.lastIndexOf(b);ge>-1&&(w=w.slice(0,ge))}return w+y}a(O4,"truncate");function N4(c){return c=It(c),c&&xe.test(c)?c.replace(me,n2):c}a(N4,"unescape");var L4=Qc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),rT=pI("toUpperCase");function fO(c,f,d){return c=It(c),f=d?e:f,f===e?Yw(c)?o2(c):Bw(c):c.match(f)||[]}a(fO,"words");var uO=it(function(c,f){try{return ir(c,e,f)}catch(d){return eT(d)?d:new Ke(d)}}),F4=zo(function(c,f){return Cr(f,function(d){d=Eo(d),Qo(c,d,Jv(c[d],c))}),c});function R4(c){var f=c==null?0:c.length,d=Me();return c=f?sn(c,function(y){if(typeof y[1]!="function")throw new Ir(r);return[d(y[0]),y[1]]}):[],it(function(y){for(var b=-1;++b<f;){var P=c[b];if(ir(P[0],this,y))return ir(P[1],this,y)}})}a(R4,"cond");function _4(c){return ik(Nr(c,p))}a(_4,"conforms");function oT(c){return function(){return c}}a(oT,"constant");function D4(c,f){return c==null||c!==c?f:c}a(D4,"defaultTo");var V4=gI(),M4=gI(!0);function $i(c){return c}a($i,"identity");function aT(c){return WC(typeof c=="function"?c:Nr(c,p))}a(aT,"iteratee");function w4(c){return KC(Nr(c,p))}a(w4,"matches");function k4(c,f){return XC(c,Nr(f,p))}a(k4,"matchesProperty");var U4=it(function(c,f){return function(d){return Vf(d,c,f)}}),j4=it(function(c,f){return function(d){return Vf(c,d,f)}});function sT(c,f,d){var y=Xn(f),b=Md(f,y);d==null&&!(dn(f)&&(b.length||!y.length))&&(d=f,f=c,c=this,b=Md(f,Xn(f)));var P=!(dn(d)&&"chain"in d)||!!d.chain,N=Jo(c);return Cr(b,function(F){var w=f[F];c[F]=w,N&&(c.prototype[F]=function(){var q=this.__chain__;if(P||q){var z=c(this.__wrapped__),ee=z.__actions__=ki(this.__actions__);return ee.push({func:w,args:arguments,thisArg:c}),z.__chain__=q,z}return w.apply(c,Oa([this.value()],arguments))})}),c}a(sT,"mixin");function $4(){return Kn._===this&&(Kn._=u2),this}a($4,"noConflict");function cT(){}a(cT,"noop");function B4(c){return c=Ye(c),it(function(f){return QC(f,c)})}a(B4,"nthArg");var H4=Uv(sn),W4=Uv(mC),G4=Uv(fv);function pO(c){return Kv(c)?uv(Eo(c)):Ek(c)}a(pO,"property");function K4(c){return function(f){return c==null?e:Us(c,f)}}a(K4,"propertyOf");var X4=hI(),Q4=hI(!0);function lT(){return[]}a(lT,"stubArray");function fT(){return!1}a(fT,"stubFalse");function q4(){return{}}a(q4,"stubObject");function z4(){return""}a(z4,"stubString");function Y4(){return!0}a(Y4,"stubTrue");function J4(c,f){if(c=Ye(c),c<1||c>Re)return[];var d=Dt,y=pi(c,Dt);f=Me(f),c-=Dt;for(var b=gv(y,f);++d<c;)f(d);return b}a(J4,"times");function Z4(c){return Xe(c)?sn(c,Eo):ar(c)?[c]:ki(RI(It(c)))}a(Z4,"toPath");function eB(c){var f=++l2;return It(c)+f}a(eB,"uniqueId");var tB=Bd(function(c,f){return c+f},0),nB=jv("ceil"),iB=Bd(function(c,f){return c/f},1),rB=jv("floor");function oB(c){return c&&c.length?Vd(c,$i,Pv):e}a(oB,"max");function aB(c,f){return c&&c.length?Vd(c,Me(f,2),Pv):e}a(aB,"maxBy");function sB(c){return vC(c,$i)}a(sB,"mean");function cB(c,f){return vC(c,Me(f,2))}a(cB,"meanBy");function lB(c){return c&&c.length?Vd(c,$i,Nv):e}a(lB,"min");function fB(c,f){return c&&c.length?Vd(c,Me(f,2),Nv):e}a(fB,"minBy");var uB=Bd(function(c,f){return c*f},1),pB=jv("round"),dB=Bd(function(c,f){return c-f},0);function gB(c){return c&&c.length?dv(c,$i):0}a(gB,"sum");function mB(c,f){return c&&c.length?dv(c,Me(f,2)):0}return a(mB,"sumBy"),x.after=Mj,x.ary=HI,x.assign=S$,x.assignIn=iO,x.assignInWith=tg,x.assignWith=x$,x.at=P$,x.before=WI,x.bind=Jv,x.bindAll=F4,x.bindKey=GI,x.castArray=Qj,x.chain=jI,x.chunk=iU,x.compact=rU,x.concat=oU,x.cond=R4,x.conforms=_4,x.constant=oT,x.countBy=dj,x.create=C$,x.curry=KI,x.curryRight=XI,x.debounce=QI,x.defaults=I$,x.defaultsDeep=O$,x.defer=wj,x.delay=kj,x.difference=aU,x.differenceBy=sU,x.differenceWith=cU,x.drop=lU,x.dropRight=fU,x.dropRightWhile=uU,x.dropWhile=pU,x.fill=dU,x.filter=mj,x.flatMap=vj,x.flatMapDeep=Tj,x.flatMapDepth=Ej,x.flatten=MI,x.flattenDeep=gU,x.flattenDepth=mU,x.flip=Uj,x.flow=V4,x.flowRight=M4,x.fromPairs=hU,x.functions=V$,x.functionsIn=M$,x.groupBy=bj,x.initial=vU,x.intersection=TU,x.intersectionBy=EU,x.intersectionWith=bU,x.invert=k$,x.invertBy=U$,x.invokeMap=Sj,x.iteratee=aT,x.keyBy=xj,x.keys=Xn,x.keysIn=ji,x.map=qd,x.mapKeys=$$,x.mapValues=B$,x.matches=w4,x.matchesProperty=k4,x.memoize=Yd,x.merge=H$,x.mergeWith=rO,x.method=U4,x.methodOf=j4,x.mixin=sT,x.negate=Jd,x.nthArg=B4,x.omit=W$,x.omitBy=G$,x.once=jj,x.orderBy=Pj,x.over=H4,x.overArgs=$j,x.overEvery=W4,x.overSome=G4,x.partial=Zv,x.partialRight=qI,x.partition=Cj,x.pick=K$,x.pickBy=oO,x.property=pO,x.propertyOf=K4,x.pull=PU,x.pullAll=kI,x.pullAllBy=CU,x.pullAllWith=IU,x.pullAt=OU,x.range=X4,x.rangeRight=Q4,x.rearg=Bj,x.reject=Nj,x.remove=NU,x.rest=Hj,x.reverse=zv,x.sampleSize=Fj,x.set=Q$,x.setWith=q$,x.shuffle=Rj,x.slice=LU,x.sortBy=Vj,x.sortedUniq=wU,x.sortedUniqBy=kU,x.split=T4,x.spread=Wj,x.tail=UU,x.take=jU,x.takeRight=$U,x.takeRightWhile=BU,x.takeWhile=HU,x.tap=rj,x.throttle=Gj,x.thru=Qd,x.toArray=eO,x.toPairs=aO,x.toPairsIn=sO,x.toPath=Z4,x.toPlainObject=nO,x.transform=z$,x.unary=Kj,x.union=WU,x.unionBy=GU,x.unionWith=KU,x.uniq=XU,x.uniqBy=QU,x.uniqWith=qU,x.unset=Y$,x.unzip=Yv,x.unzipWith=UI,x.update=J$,x.updateWith=Z$,x.values=Yc,x.valuesIn=e4,x.without=zU,x.words=fO,x.wrap=Xj,x.xor=YU,x.xorBy=JU,x.xorWith=ZU,x.zip=ej,x.zipObject=tj,x.zipObjectDeep=nj,x.zipWith=ij,x.entries=aO,x.entriesIn=sO,x.extend=iO,x.extendWith=tg,sT(x,x),x.add=tB,x.attempt=uO,x.camelCase=r4,x.capitalize=cO,x.ceil=nB,x.clamp=t4,x.clone=qj,x.cloneDeep=Yj,x.cloneDeepWith=Jj,x.cloneWith=zj,x.conformsTo=Zj,x.deburr=lO,x.defaultTo=D4,x.divide=iB,x.endsWith=o4,x.eq=qr,x.escape=a4,x.escapeRegExp=s4,x.every=gj,x.find=hj,x.findIndex=DI,x.findKey=N$,x.findLast=yj,x.findLastIndex=VI,x.findLastKey=L$,x.floor=rB,x.forEach=$I,x.forEachRight=BI,x.forIn=F$,x.forInRight=R$,x.forOwn=_$,x.forOwnRight=D$,x.get=nT,x.gt=e$,x.gte=t$,x.has=w$,x.hasIn=iT,x.head=wI,x.identity=$i,x.includes=Aj,x.indexOf=yU,x.inRange=n4,x.invoke=j$,x.isArguments=Bs,x.isArray=Xe,x.isArrayBuffer=n$,x.isArrayLike=Ui,x.isArrayLikeObject=Pn,x.isBoolean=i$,x.isBuffer=Ma,x.isDate=r$,x.isElement=o$,x.isEmpty=a$,x.isEqual=s$,x.isEqualWith=c$,x.isError=eT,x.isFinite=l$,x.isFunction=Jo,x.isInteger=zI,x.isLength=Zd,x.isMap=YI,x.isMatch=f$,x.isMatchWith=u$,x.isNaN=p$,x.isNative=d$,x.isNil=m$,x.isNull=g$,x.isNumber=JI,x.isObject=dn,x.isObjectLike=mn,x.isPlainObject=$f,x.isRegExp=tT,x.isSafeInteger=h$,x.isSet=ZI,x.isString=eg,x.isSymbol=ar,x.isTypedArray=zc,x.isUndefined=y$,x.isWeakMap=v$,x.isWeakSet=T$,x.join=AU,x.kebabCase=c4,x.last=Fr,x.lastIndexOf=SU,x.lowerCase=l4,x.lowerFirst=f4,x.lt=E$,x.lte=b$,x.max=oB,x.maxBy=aB,x.mean=sB,x.meanBy=cB,x.min=lB,x.minBy=fB,x.stubArray=lT,x.stubFalse=fT,x.stubObject=q4,x.stubString=z4,x.stubTrue=Y4,x.multiply=uB,x.nth=xU,x.noConflict=$4,x.noop=cT,x.now=zd,x.pad=u4,x.padEnd=p4,x.padStart=d4,x.parseInt=g4,x.random=i4,x.reduce=Ij,x.reduceRight=Oj,x.repeat=m4,x.replace=h4,x.result=X$,x.round=pB,x.runInContext=V,x.sample=Lj,x.size=_j,x.snakeCase=y4,x.some=Dj,x.sortedIndex=FU,x.sortedIndexBy=RU,x.sortedIndexOf=_U,x.sortedLastIndex=DU,x.sortedLastIndexBy=VU,x.sortedLastIndexOf=MU,x.startCase=E4,x.startsWith=b4,x.subtract=dB,x.sum=gB,x.sumBy=mB,x.template=A4,x.times=J4,x.toFinite=Zo,x.toInteger=Ye,x.toLength=tO,x.toLower=S4,x.toNumber=Rr,x.toSafeInteger=A$,x.toString=It,x.toUpper=x4,x.trim=P4,x.trimEnd=C4,x.trimStart=I4,x.truncate=O4,x.unescape=N4,x.uniqueId=eB,x.upperCase=L4,x.upperFirst=rT,x.each=$I,x.eachRight=BI,x.first=wI,sT(x,function(){var c={};return vo(x,function(f,d){Lt.call(x.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),x.VERSION=t,Cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){x[c].placeholder=x}),Cr(["drop","take"],function(c,f){ft.prototype[c]=function(d){d=d===e?1:jn(Ye(d),0);var y=this.__filtered__&&!f?new ft(this):this.clone();return y.__filtered__?y.__takeCount__=pi(d,y.__takeCount__):y.__views__.push({size:pi(d,Dt),type:c+(y.__dir__<0?"Right":"")}),y},ft.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Cr(["filter","map","takeWhile"],function(c,f){var d=f+1,y=d==fn||d==Sn;ft.prototype[c]=function(b){var P=this.clone();return P.__iteratees__.push({iteratee:Me(b,3),type:d}),P.__filtered__=P.__filtered__||y,P}}),Cr(["head","last"],function(c,f){var d="take"+(f?"Right":"");ft.prototype[c]=function(){return this[d](1).value()[0]}}),Cr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");ft.prototype[c]=function(){return this.__filtered__?new ft(this):this[d](1)}}),ft.prototype.compact=function(){return this.filter($i)},ft.prototype.find=function(c){return this.filter(c).head()},ft.prototype.findLast=function(c){return this.reverse().find(c)},ft.prototype.invokeMap=it(function(c,f){return typeof c=="function"?new ft(this):this.map(function(d){return Vf(d,c,f)})}),ft.prototype.reject=function(c){return this.filter(Jd(Me(c)))},ft.prototype.slice=function(c,f){c=Ye(c);var d=this;return d.__filtered__&&(c>0||f<0)?new ft(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ye(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},ft.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},ft.prototype.toArray=function(){return this.take(Dt)},vo(ft.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),y=/^(?:head|last)$/.test(f),b=x[y?"take"+(f=="last"?"Right":""):f],P=y||/^find/.test(f);b&&(x.prototype[f]=function(){var N=this.__wrapped__,F=y?[1]:arguments,w=N instanceof ft,q=F[0],z=w||Xe(N),ee=a(function(ct){var gt=b.apply(x,Oa([ct],F));return y&&ge?gt[0]:gt},"interceptor");z&&d&&typeof q=="function"&&q.length!=1&&(w=z=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,ke=P&&!ge,et=w&&!Oe;if(!P&&z){N=et?N:new ft(this);var Ue=c.apply(N,F);return Ue.__actions__.push({func:Qd,args:[ee],thisArg:e}),new Or(Ue,ge)}return ke&&et?c.apply(this,F):(Ue=this.thru(ee),ke?y?Ue.value()[0]:Ue.value():Ue)})}),Cr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Ed[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",y=/^(?:pop|shift)$/.test(c);x.prototype[c]=function(){var b=arguments;if(y&&!this.__chain__){var P=this.value();return f.apply(Xe(P)?P:[],b)}return this[d](function(N){return f.apply(Xe(N)?N:[],b)})}}),vo(ft.prototype,function(c,f){var d=x[f];if(d){var y=d.name+"";Lt.call(Gc,y)||(Gc[y]=[]),Gc[y].push({name:f,func:d})}}),Gc[$d(e,O).name]=[{name:"wrapper",func:e}],ft.prototype.clone=O2,ft.prototype.reverse=N2,ft.prototype.value=L2,x.prototype.at=oj,x.prototype.chain=aj,x.prototype.commit=sj,x.prototype.next=cj,x.prototype.plant=fj,x.prototype.reverse=uj,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=pj,x.prototype.first=x.prototype.head,Of&&(x.prototype[Of]=lj),x},"runInContext"),La=a2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=La,define(function(){return La})):Ds?((Ds.exports=La)._=La,av._=La):Kn._=La}).call(zl)});var WD=ze((zse,HD)=>{var{findIndex:RQ}=Tp();function _Q(e,t){let i=RQ(e,o=>o.endOffset===t),r=!1;for(;r===!1;){i++;let o=e[i];if(o===void 0)return null;if(o.tokenType.name!=="SEA_WS")return o}}a(_Q,"findNextTextualToken");HD.exports={findNextTextualToken:_Q}});var XD=ze((Jse,KD)=>{var GD=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function DQ({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(GD);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}a(DQ,"isXMLNamespaceKey");function VQ(e){if(typeof e!="string")return;let t=e.match(GD);if(t!==null)return t.groups&&t.groups.prefix||""}a(VQ,"getXMLNamespaceKeyPrefix");KD.exports={isXMLNamespaceKey:DQ,getXMLNamespaceKeyPrefix:VQ}});var qD=ze((ece,QD)=>{var{findNextTextualToken:MQ}=WD(),{isXMLNamespaceKey:wQ,getXMLNamespaceKeyPrefix:kQ}=XD();QD.exports={findNextTextualToken:MQ,isXMLNamespaceKey:wQ,getXMLNamespaceKeyPrefix:kQ}});var lS=ze((tce,YD)=>{var{reduce:UQ,has:zD,isArray:jQ}=Tp();function $Q(e){return UQ(e,(n,i,r)=>(r==="parent"||(zD(i,"type")?n.push(i):jQ(i)&&i.length>0&&zD(i[0],"type")&&(n=n.concat(i))),n),[])}a($Q,"getAstChildrenReflective");YD.exports={getAstChildrenReflective:$Q}});var fS=ze((ice,JD)=>{JD.exports={DEFAULT_NS:"::DEFAULT"}});var aV=ze((rce,oV)=>{var{BaseXmlCstVisitor:BQ}=cS(),{last:HQ,forEach:nV,reduce:WQ,map:Ep,pick:pS,sortBy:GQ,isEmpty:KQ,isArray:iV,assign:XQ}=Tp(),{findNextTextualToken:QQ,isXMLNamespaceKey:qQ,getXMLNamespaceKeyPrefix:zQ}=qD(),{getAstChildrenReflective:YQ}=lS(),{DEFAULT_NS:JQ}=fS();function ZQ(e,t){ZD.setState({tokenVector:t});let n=ZD.visit(e);return n.rootElement!==Nc&&rV(n.rootElement),n}a(ZQ,"buildAst");var dS=class dS extends BQ{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:Nc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&KQ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),gy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ep(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),gy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ep(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ep(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Nc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Ep(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:o}=this.visit(t.content[0]);i.subElements=r,i.textContents=o}return n6(i,t),i6(i,t),r6(i,t,this.tokenVector),gy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Nc,value:Nc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let o=t.Name[0];r.key=o.image,r.syntax.key=my(o)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let o=t.STRING[0];r.value=e6(o.image),r.syntax.value=my(o)}return gy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Nc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let o=GQ(r,["startOffset"]),s=Ep(o,"image").join("");return i.text=s,i}misc(t,{location:n}){}};a(dS,"CstToAstVisitor");var uS=dS,ZD=new uS;function gy(e){let t=YQ(e);nV(t,n=>n.parent=e)}a(gy,"setChildrenParent");function rV(e,t=[]){let n=WQ(e.attributes,(r,o)=>{if(o.key!==Nc&&qQ({key:o.key,includeEmptyPrefix:!1})===!0){let s=zQ(o.key);if(o.value){let l=o.value;s!==""?r[s]=l:r[JQ]=l}}return r},{}),i=Object.create(null);e.namespaces=XQ(i,t,n),nV(e.subElements,r=>rV(r,e.namespaces))}a(rV,"updateNamespaces");function my(e){return pS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}a(my,"toXMLToken");function eV(e){return pS(e,["startOffset","startLine","startColumn"])}a(eV,"startOfXMLToken");function tV(e){return pS(e,["endOffset","endLine","endColumn"])}a(tV,"endOfXMLToken");function Aa(e){return iV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}a(Aa,"exists");function e6(e){return e.substring(1,e.length-1)}a(e6,"stripQuotes");function t6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}a(t6,"nsToParts");var Nc=null;function n6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=my(n);let i=t6(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=my(t.END_NAME[0]))}a(n6,"handleElementOpenCloseNameRanges");function i6(e,t){if(Aa(t.OPEN)){let n;Aa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Aa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...eV(t.OPEN[0]),...tV(n)}),Aa(t.SLASH_OPEN)&&Aa(t.END)&&(e.syntax.closeBody={...eV(t.SLASH_OPEN[0]),...tV(t.END[0])})}}a(i6,"handleElementOpenCloseBodyRanges");function r6(e,t,n){if(Aa(t.Name)){let i=t.Name[0].endOffset+2;if(Aa(t.START_CLOSE)||Aa(t.SLASH_CLOSE)){let r=(Aa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let o=iV(t.attribute)?HQ(t.attribute).location.endOffset:t.Name[0].endOffset,s=QQ(n,o);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}a(r6,"handleElementAttributeRanges");oV.exports={buildAst:ZQ}});var lV=ze((ace,cV)=>{var{forEach:o6,isFunction:Yl}=Tp(),{getAstChildrenReflective:a6}=lS();function sV(e,t){switch(e.type){case"XMLDocument":{Yl(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Yl(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Yl(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Yl(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Yl(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Yl(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=a6(e);o6(n,i=>{sV(i,t)})}a(sV,"accept");cV.exports={accept:sV}});var uV=ze((cce,fV)=>{var{buildAst:s6}=aV(),{accept:c6}=lV(),{DEFAULT_NS:l6}=fS();fV.exports={buildAst:s6,accept:c6,DEFAULT_NS:l6}});var Ni={};Hs(Ni,{deleteConfigEntityByPath:()=>Iz,exportConfig:()=>Pz,exportConfigEntityByPath:()=>Cz,generateCustomExtension:()=>VP,generateSchema:()=>xz,getApiVersion:()=>Fz,getChanges:()=>WM,getGenericSchema:()=>zy,getPathToGenericSchema:()=>nM,getProject:()=>Mz,importConfig:()=>Oz,importProject:()=>Nz,importProjectSchema:()=>Lz,isDirectory:()=>_z,log:()=>ae,readDirectory:()=>$P});module.exports=ig(Ni);var de=te(le());var K=te(le());var zH={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Wf=class Wf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||zH,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Wf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Wf(this.logger,t)}};a(Wf,"Logger");var vT=Wf,bo=new vT,PT=class PT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};a(PT,"EventEmitter");var tl=PT;function Bf(){let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n}a(Bf,"defer");function XL(e){return e==null?"":""+e}a(XL,"makeString");function YH(e,t,n){e.forEach(i=>{t[i]&&(n[i]=t[i])})}a(YH,"copy");var JH=/###/g;function Hf(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(JH,"."):l}a(i,"cleanKey");function r(){return!e||typeof e=="string"}a(r,"canNotTraverseDeeper");let o=typeof t!="string"?t:t.split("."),s=0;for(;s<o.length-1;){if(r())return{};let l=i(o[s]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++s}return r()?{}:{obj:e,k:i(o[s])}}a(Hf,"getLastOfPath");function QL(e,t,n){let{obj:i,k:r}=Hf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let o=t[t.length-1],s=t.slice(0,t.length-1),l=Hf(e,s,Object);for(;l.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),l=Hf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n}a(QL,"setPath");function ZH(e,t,n,i){let{obj:r,k:o}=Hf(e,t,Object);r[o]=r[o]||[],i&&(r[o]=r[o].concat(n)),i||r[o].push(n)}a(ZH,"pushPath");function og(e,t){let{obj:n,k:i}=Hf(e,t);if(n)return n[i]}a(og,"getPath");function eW(e,t,n){let i=og(e,n);return i!==void 0?i:og(t,n)}a(eW,"getPathWithDefaults");function eF(e,t,n){for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):eF(e[i],t[i],n):e[i]=t[i]);return e}a(eF,"deepExtend");function Zc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}a(Zc,"regexEscape");var tW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function nW(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>tW[t]):e}a(nW,"escape");var CT=class CT{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};a(CT,"RegExpCache");var TT=CT,iW=[" ",",","?","!",";"],rW=new TT(20);function oW(e,t,n){t=t||"",n=n||"";let i=iW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=rW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),o=!r.test(e);if(!o){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(o=!0)}return o}a(oW,"looksLikeObjectPath");function ET(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let o=0;o<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=o;u<i.length;++u)if(u!==o&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;o+=u-o+1;break}r=s}return r}a(ET,"deepFind");function ag(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}a(ag,"getCleanedCode");var IT=class IT extends tl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&o?l.push(...i.split(o)):l.push(i)));let u=og(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||typeof i!="string"?u:ET(this.data&&this.data[t]&&this.data[t][n],i,o)}addResource(t,n,i,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),QL(this.data,l,r),o.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let o in i)(typeof i[o]=="string"||Array.isArray(i[o]))&&this.addResource(t,n,o,i[o],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=og(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?eF(u,i,o):u={...u,...i},QL(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};a(IT,"ResourceStore");var sg=IT,tF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,i,r))}),t}},qL={},ug=class ug extends tl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),YH(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=bo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!oW(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:o};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(o=p.shift()),t=p.join(r)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ie=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ie}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ie}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),v=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(v),R=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,H=!this.i18nFormat||this.i18nFormat.handleAsObject;if(H&&v&&(typeof v!="string"&&typeof v!="boolean"&&typeof v!="number")&&R.indexOf(O)<0&&!(typeof U=="string"&&Array.isArray(v))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ie=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,v,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ie,m.usedParams=this.getUsedParamsDetails(n),m):ie}if(o){let ie=Array.isArray(v),Z=ie?[]:{},ne=ie?E:A;for(let Le in v)if(Object.prototype.hasOwnProperty.call(v,Le)){let D=`${ne}${o}${Le}`;Z[Le]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Le]===D&&(Z[Le]=v[Le])}v=Z}}else if(H&&typeof U=="string"&&Array.isArray(v))v=v.join(U),v&&(v=this.extendTranslation(v,t,n,i));else{let ie=!1,Z=!1,ne=n.count!==void 0&&typeof n.count!="string",Le=ug.hasDefaultValue(n),D=ne?this.pluralResolver.getSuffix(p,n.count,n):"",Pt=n.ordinal&&ne?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",dt=ne&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$e=dt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${Pt}`]||n.defaultValue;!this.isValidLookup(v)&&Le&&(ie=!0,v=$e),this.isValidLookup(v)||(Z=!0,v=s);let Vi=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,Sn=Le&&$e!==v&&this.options.updateMissing;if(Z||ie||Sn){if(this.logger.log(Sn?"updateKey":"missingKey",p,u,s,Sn?$e:v),o){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let jt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let Ct=0;Ct<Re.length;Ct++)jt.push(Re[Ct]);else this.options.saveMissingTo==="all"?jt=this.languageUtils.toResolveHierarchy(n.lng||this.language):jt.push(n.lng||this.language);let Ai=a((Ct,Dt,rn)=>{let Mi=Le&&rn!==v?rn:Vi;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,Dt,Mi,Sn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,Dt,Mi,Sn,n),this.emit("missingKey",Ct,u,Dt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&ne?jt.forEach(Ct=>{let Dt=this.pluralResolver.getSuffixes(Ct,n);dt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Dt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Dt.push(`${this.options.pluralSeparator}zero`),Dt.forEach(rn=>{Ai([Ct],s+rn,n[`defaultValue${rn}`]||$e)})}):Ai(jt,s,$e))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||ie)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ie?v:void 0):v=this.options.parseMissingKeyHandler(v))}return r?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}extendTranslation(t,n,i,r,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let v=t.match(this.interpolator.nestingRegexp);g=v&&v.length}let m=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language,i),p){let v=t.match(this.interpolator.nestingRegexp),A=v&&v.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),E=0;E<v;E++)A[E]=arguments[E];return o&&o[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=tF.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,o,s,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&typeof n.count!="string",A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(R=>{this.isValidLookup(i)||(l=R,!qL[`${O[0]}-${R}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(qL[`${O[0]}-${R}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(U=>{if(this.isValidLookup(i))return;s=U;let H=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(H,g,U,R,n);else{let ie;v&&(ie=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,ne=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(H.push(g+ie),n.ordinal&&ie.indexOf(ne)===0&&H.push(g+ie.replace(ne,this.options.pluralSeparator)),A&&H.push(g+Z)),E){let Le=`${g}${this.options.contextSeparator}${n.context}`;H.push(Le),v&&(H.push(Le+ie),n.ordinal&&ie.indexOf(ne)===0&&H.push(Le+ie.replace(ne,this.options.pluralSeparator)),A&&H.push(Le+Z))}}let W;for(;W=H.pop();)this.isValidLookup(i)||(o=W,i=this.getResource(U,R,W,n))}))})}),{res:i,usedKey:r,exactUsedKey:o,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string",r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let o of n)delete r[o]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};a(ug,"Translator");var cg=ug;function yT(e){return e.charAt(0).toUpperCase()+e.slice(1)}a(yT,"capitalize");var OT=class OT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=bo.create("languageUtils")}getScriptPartFromCode(t){if(t=ag(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ag(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=yT(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=yT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=yT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(o=>{if(o===r)return o;if(!(o.indexOf("-")<0&&r.indexOf("-")<0)&&(o.indexOf("-")>0&&r.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===r||o.indexOf(r)===0&&r.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],o=a(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&o(this.formatLanguageCode(s))}),r}};a(OT,"LanguageUtil");var lg=OT,aW=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],sW={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},cW=["v1","v2","v3"],lW=["v4"],zL={zero:0,one:1,two:2,few:3,many:4,other:5};function fW(){let e={};return aW.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:sW[t.fc]}})}),e}a(fW,"createRules");var NT=class NT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=bo.create("pluralResolver"),(!this.options.compatibilityJSON||lW.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=fW()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ag(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,o)=>zL[r]-zL[o]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let o=a(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!cW.includes(this.options.compatibilityJSON)}};a(NT,"PluralResolver");var bT=NT;function YL(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=eW(e,t,n);return!o&&r&&typeof n=="string"&&(o=ET(e,n,i),o===void 0&&(o=ET(t,n,i))),o}a(YL,"deepFindWithDefaults");var LT=class LT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=bo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:o,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:R,maxReplaces:U,alwaysFormat:H}=t.interpolation;this.escape=n!==void 0?n:nW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=o?Zc(o):s||"{{",this.suffix=l?Zc(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?Zc(v):A||Zc("$t("),this.nestingSuffix=E?Zc(E):O||Zc(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=U||1e3,this.alwaysFormat=H!==void 0?H:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=a((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let o,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(E){return E.replace(/\$/g,"$$$$")}a(p,"regexSafe");let g=a(E=>{if(E.indexOf(this.formatSeparator)<0){let H=YL(n,u,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(H,void 0,i,{...r,...n,interpolationkey:E}):H}let O=E.split(this.formatSeparator),R=O.shift().trim(),U=O.join(this.formatSeparator).trim();return this.format(YL(n,u,R,this.options.keySeparator,this.options.ignoreJSONStructure),U,i,{...r,...n,interpolationkey:R})},"handleFormat");this.resetRegExp();let m=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,v=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:E=>p(E)},{regex:this.regexp,safeValue:E=>this.escapeValue?p(this.escape(E)):p(E)}].forEach(E=>{for(l=0;o=E.regex.exec(t);){let O=o[1].trim();if(s=g(O),s===void 0)if(typeof m=="function"){let U=m(t,o,r);s=typeof U=="string"?U:""}else if(r&&Object.prototype.hasOwnProperty.call(r,O))s="";else if(v){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=XL(s));let R=E.safeValue(s);if(t=t.replace(o[0],R),v?(E.regex.lastIndex+=s.length,E.regex.lastIndex-=o[0].length):E.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,s;function l(u,p){let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let A=v.match(/'/g),E=v.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u}for(a(l,"handleHasOptions");r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(o=n(l.call(this,r[1].trim(),s),s),o&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=XL(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),o=""),p&&(o=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}};a(LT,"Interpolator");var AT=LT;function uW(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}}a(uW,"parseFormatStr");function el(e){let t={};return a(function(i,r,o){let s=r+JSON.stringify(o),l=t[s];return l||(l=e(ag(r),o),t[s]=l),l(i)},"invokeFormatter")}a(el,"createCachedFormatter");var FT=class FT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=bo.create("formatter"),this.options=t,this.formats={number:el((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return o=>r.format(o)}),currency:el((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return o=>r.format(o)}),datetime:el((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return o=>r.format(o)}),relativetime:el((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return o=>r.format(o,i.range||"day")}),list:el((n,i)=>{let r=new Intl.ListFormat(n,{...i});return o=>r.format(o)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=el(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,u)=>{let{formatName:p,formatOptions:g}=uW(u);if(this.formats[p]){let m=l;try{let v=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=v.locale||v.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};a(FT,"Formatter");var ST=FT;function pW(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}a(pW,"removePending");var RT=class RT extends tl{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=bo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let o={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),o[v]===void 0&&(o[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),o=r[0],s=r[1];n&&this.emit("failedLoading",o,s,n),i&&this.store.addResourceBundle(o,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;let l={};this.queue.forEach(u=>{ZH(u.loaded,[o],s),pW(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:o,callback:s});return}this.readingCalls++;let l=a((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,o*2,s)},o);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let o=this.queueLoad(t,n,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${o} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:o},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};a(RT,"Connector");var xT=RT;function JL(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a(function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){let i=t[3]||t[2];Object.keys(i).forEach(r=>{n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}a(JL,"get");function ZL(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}a(ZL,"transformOptions");function rg(){}a(rg,"noop");function dW(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}a(dW,"bindMemberFunctions");var Gf=class Gf extends tl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ZL(t),this.services={},this.logger=bo,this.modules={external:[]},dW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=JL();this.options={...r,...this.options,...ZL(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(g){return g?typeof g=="function"?new g:g:null}if(a(o,"createClassOnDemand"),!this.options.isClone){this.modules.logger?bo.init(o(this.modules.logger),this.options):bo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=ST);let m=new lg(this.options);this.store=new sg(this.options.resources,this.options);let v=this.services;v.logger=bo,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new bT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(v.formatter=o(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new AT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new xT(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),R=1;R<E;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new cg(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),R=1;R<E;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=rg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Bf(),p=a(()=>{let g=a((m,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(v),i(m,v)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rg,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let o=[],s=a(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&o.indexOf(p)<0&&o.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Bf();return t||(t=this.languages),n||(n=this.options.ns),i||(i=rg),this.services.backendConnector.reload(t,n,o=>{r.resolve(),i(o)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&tF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Bf();this.emit("languageChanging",t);let o=a(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=a((u,p)=>{p?(o(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=a(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let o=a(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix=u.keyPrefix||i||o.keyPrefix;let v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${v}${E}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=a((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(o,t)))}loadNamespaces(t,n){let i=Bf();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Bf();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],o=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=r.concat(o),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new lg(JL());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Gf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},o=new Gf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new sg(this.store.data,r),o.services.resourceStore=o.store),o.translator=new cg(o.services,r),o.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];o.emit(l,...p)}),o.init(r,n),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};a(Gf,"I18n");var fg=Gf,J=fg.createInstance();J.createInstance=fg.createInstance;var Kz=J.createInstance,Xz=J.dir,Qz=J.init,qz=J.loadResources,zz=J.reloadResources,Yz=J.use,Jz=J.changeLanguage,Zz=J.getFixedT,eY=J.t,tY=J.exists,nY=J.setDefaultNamespace,iY=J.hasLoadedNamespace,rY=J.loadNamespaces,oY=J.loadLanguages;var vR=te(_T()),TR=te(OF()),Ng=te(hR()),Je=require("@sap-ux/vocabularies-types/vocabularies/UI"),Yf=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Ig=te(le());var ae=a((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",Jf=a((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),fr=a((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function xo(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Ng.parse)(r.fileContent,r.dataSourceUri))}catch(o){return ae(t,{severity:K.LogSeverity.Error,message:J.t("ANNOERR"),location:{path:J.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},o),i}}),n.length>0&&(i=(0,TR.convert)((0,Ng.merge)(...n))),i}a(xo,"parseAndMergeAndConvert");var al=a(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function JT(e,t,n){var i,r,o,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(o=e.Common)==null?void 0:o.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}a(JT,"evaluateCommonLabel");function Lg(e,t){let n=e.value;return e.$target&&(n=JT(e.$target.annotations,t,n)),n}a(Lg,"getLabelForPropertyPath");function Og(e,t){var r,o;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(o=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&o.Label&&(n=JT(i.annotations,t,n)),n}a(Og,"getLabelForDataField");function K5(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let o=r[0];if((i=(n=o==null?void 0:o.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return JT(o.annotations,t,s)}}}else return}a(K5,"getLabel");function yR(e,t,n){let i=Og(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}a(yR,"getTitleForDataField");function yi(e,t){var s,l,u,p;let n="",i,r,o="";try{let g=K5(e.Label,t);switch(e.$Type){case Je.UIAnnotationTypes.DataField:n=yR(e,t,g);break;case Je.UIAnnotationTypes.DataFieldWithUrl:i=Og(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Og(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Je.UIAnnotationTypes.DataFieldForAction:case Je.UIAnnotationTypes.DataFieldWithAction:case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,o=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:o:n=o;break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Og(e,t),n=i||e.Value.path;break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=yR(r,t,g);break;default:break}return n}catch{return n}}a(yi,"getDataFieldDescription");function ut(e){return e.replace("#","::").replace(/\//g,":2f")}a(ut,"prepareRef");function oa(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}a(oa,"getPageTypeV2");function ZT(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}a(ZT,"getPageTypeV4");function X5(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}a(X5,"getTargetAnnotationName");function ri(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}a(ri,"findAlias");function Q5(e){return e.substring(e.lastIndexOf(".")+1,e.length)}a(Q5,"getAnnotationFromMetaPath");function q5(e,t,n){var s,l;let i=e[e.length-1],r=Q5(i),o=ri(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[o])==null?void 0:l[r]}a(q5,"determineTargetAnnotation");function z5(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Je.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}a(z5,"adjustKey");function Y5(e,t,n,i,r=K.FioriElementsVersion.v2,o=!1){var m,v;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=z5(t,u,o);let g=q5(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=X5(g,o).replace("#",A),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}a(Y5,"getKeyAndEntityTypeOfReferenceFacet");function ER(e,t,n,i,r=K.FioriElementsVersion.v2,o=!1){var g,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Je.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=al(e.Target);if(!A){ae(i,{severity:K.LogSeverity.Error,message:J.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:R,namespace:U}=Y5(n,l,p,A,r,o);if(R)return;l=E,p=O,u=U}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}a(ER,"getSectionFacet");function J5(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}a(J5,"getDecodedPathElement");var eE=a(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),bR=a((e,t,n,i,r,o=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=J5(p,n,i);if(r!==void 0&&!o&&l.length-1===u)s[g]=r;else if(!s[g]){if(o)return;s[g]=eE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Po=a((e,t,n,i,r=!1)=>bR(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),AR=a((e,t,n,i,r)=>{bR(e,t,i,r,n)},"setManifestSectionByPathV4");function tE(e){let t,n,i;switch(e.$Type){case Je.UIAnnotationTypes.DataField:t=al(e.Value);break;case Je.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:al(e.Value);break;case Je.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Je.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ut(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=al(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Je.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ut(e.Action)}`);break;case Je.UIAnnotationTypes.DataFieldWithNavigationPath:i=al(e.Value),n=al(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}a(tE,"getSchemaKeyOfLineItemRecord");function Z5(e,t,n){return e.includes(Je.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Je.UIAnnotationTerms.Chart:e.includes(Je.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Je.UIAnnotationTerms.Identification:n&&e.includes(Je.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Je.UIAnnotationTerms.LineItem:e.includes(Je.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Je.UIAnnotationTerms.FieldGroup:e.includes(Je.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Je.UIAnnotationTerms.DataPoint:e.includes(Je.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Je.UIAnnotationTerms.PresentationVariant:void 0}a(Z5,"getUIAnnotationTerm");function eG(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Yf.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Yf.CommunicationAnnotationTerms.Address:void 0}a(eG,"getCommunicationAnnotationTerm");function tG(e,t,n){return Z5(e,t,n)||eG(e,t)}a(tG,"getAnnotationTerm");function nG(e,t,n,i,r){var p,g,m,v,A,E,O,R,U;let o=ri(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(tG(s,o,i)){case Je.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.LineItem:{if(!s.includes(Je.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let H=s.split("::");H[H.length-1]=`@${Je.UIAnnotationTerms.LineItem}`,s=H.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Je.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Yf.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(R=t==null?void 0:t.Target)==null?void 0:R.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Yf.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}a(nG,"evaluateTargetAnnotation");function nE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}a(nE,"getAnnotationPathUsingFullyQualifiedName");function iE(e,t,n,i,r,o=K.FioriElementsVersion.v2,s){var u;let l=ER(e,i,t,s,o,!1);if(l)switch(e.$Type){case Je.UIAnnotationTypes.ReferenceFacet:{nG(l,e,r,i,t);break}case Je.UIAnnotationTypes.CollectionFacet:{let p=nE(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&o===K.FioriElementsVersion.v4&&ae(s,{severity:K.LogSeverity.Error,message:J.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{iE(m,t,n,i,g.facets,o,s)});break}}}a(iE,"addFacetToConfig");function Fg(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let o=ri(K.UIVOCABULARY,t),s=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{iE(m,t,g,e,r,n,i)})}return r}a(Fg,"getObjectPageHeaderFacets");function Rg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let o=ri(K.UIVOCABULARY,t),s=o&&((l=e==null?void 0:e.annotations[o])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{iE(g,t,p,e,r,n,i)})}return r}a(Rg,"getObjectPageFacets");function rE(e){return e[K.ManifestSection.generic]||e[K.ManifestSection.ovp]?K.FioriElementsVersion.v2:K.FioriElementsVersion.v4}a(rE,"getVersionFromManifest");function iG(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let o=e[K.ManifestSection.generic].pages;if(!o){ae(t,{severity:K.LogSeverity.Error,message:J.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in o){let l=o[s];if(oa((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(oa((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||ae(t,{severity:K.LogSeverity.Error,message:J.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}a(iG,"determineV2Template");function Zf(e){var i,r,o,s;let t,n=ZT(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(o=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:o.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}a(Zf,"determineV4PageTemplateType");function rG(e){let t;for(let n in e){let i=e[n];if(t=Zf(i),t)break}return t}a(rG,"determineV4TemplateFromPages");function oG(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return ae(t,{severity:K.LogSeverity.Info,message:J.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=rG(n);return i||ae(t,{severity:K.LogSeverity.Error,message:J.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}a(oG,"determineV4Template");function oE(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=iG(e,n):t===K.FioriElementsVersion.v4?i=oG(e,n):i||ae(n,{severity:K.LogSeverity.Error,message:J.t("NOFE"),location:{path:K.MANIFESTPATH}}),i}a(oE,"getTemplateTypeFromManifest");function ka(e,t,n){e!=null&&e.ID?(t.title=K.FacetTitlePrefix+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}a(ka,"addSectionTitleAndDescription");function sl(e,t,n){var i,r;ka(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}a(sl,"addTargetTitleAndSectionDescription");function Co(e,t,n){if(!t)return;let i;return e.definitions.ObjectPageSection?i=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(i={type:"object",properties:{},additionalProperties:!1},i[K.SchemaTag.isViewNode]=!0),i[K.SchemaTag.annotationPath]=t.annotationPath,sl(t,i,n),i}a(Co,"createDefaultSection");function SR(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let o=ri(K.UIVOCABULARY,t),s=[];if(e){let p=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=ER(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}a(SR,"getObjectPageFacetSection");var Ua=a((e,t,n,i,r,o)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=o&&o===u?r:u.replace(/\?\?/g,"/");if(s[p]){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),Ua(e,l.join("/"),n,i,r,o);return}s=s&&s[p]}})},"deleteEmptyStructure"),YT=a(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Ft=a((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:YT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:YT(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=YT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function _g(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let o=n&&n.split(".");return o&&o[o.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}a(_g,"generatePageId");function aE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let o=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&o.push(s)}return o}a(aE,"findMatchingKeysByAdditionalProperties");function aG(e,t,n,i){let r=e.$ref;if(!r)return;let o=r.split($)[1],s=t.definitions[o];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(o);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=aE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(o)}}}a(aG,"fillArrayFromAnyOfReference");function sG(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{aG(r,n,t,i)}),i.length===0))return;return i}a(sG,"fillArrayFromPropertyDefinition");function cG(e,t,n,i,r,o,s,l){var p,g,m,v;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Io(t,n,i,u.targetDefinition,r,o,s),u;e.length>1&&e.forEach(R=>{R!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[R].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=o.createInstance(s,E,O,(v=u==null?void 0:u.targetDefinition)==null?void 0:v.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}a(cG,"determineNextDefinitionFromDefinitionArray");function Io(e,t,n,i,r,o,s){let l;if(i.type==="array")return l=Io(e,t,n,i.items,r,o,s),l;let u=sG(i,n,e);if(u)return l=cG(u,e,t,n,r,o,s,i),l}a(Io,"getNextTargetDefinition");var sE=a((e,t,n)=>{let i=e.slice();return t.forEach((r,o)=>{typeof i[o]>"u"?i[o]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[o]=(0,vR.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Dg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}a(Dg,"convertEnumToCSV");function Hi(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}a(Hi,"convertActionKeyToStableId");function gn(e){return e==null?void 0:e.split($)[1]}a(gn,"getDefinitionKey");function xR(e){return`#/definitions/${e}`}a(xR,"getDefinitionsRef");function Vg(e){return e instanceof Error?e.message:String(e)}a(Vg,"getErrorMessage");function Xs(e,t){return e==null?void 0:e.includes(t)}a(Xs,"isFeatureSupported");function Oo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}a(Oo,"updatePropertyIndices");function Mg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}a(Mg,"getJSONPropertyByPath");function PR(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}a(PR,"removeNamespaces");function cl(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}a(cl,"replaceNamespaces");var yo=require("@sap-ux/vocabularies-types/vocabularies/UI"),se=te(le());var Wi=te(le());var qt=a((e,t)=>e+t.join("::"),"buildControlIdFromParent"),wg=a((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=a((e,t)=>{let n,i=Wi.FacetTitlePrefix;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function lG(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}a(lG,"escapeId");var CR=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(CR||{}),IR=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(IR||{});function fG(e,t,n){let i;return e=e.map(function(r){if(r===Wi.PropertyName.sections){for(let o=0;o<t.length;o++)if(t[o]===Wi.PropertyName.sections)return i=t[o+1],t[o+1]=Qn(i,n)+"::Table",t[o+1]}return r}),{idBreadcrumbs:e}}a(fG,"mapBreadcrumbs");var cE=a((e,t,n,i,r)=>{let o="listReport",s=[...n];({idBreadcrumbs:t}=fG(t,s,r)),s[0]===Wi.PropertyName.sections?o=s[1].replace(/::com.sap.vocabularies/g,Wi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Wi.VOCWITHSLASH):t[0]===Wi.PropertyName.table&&(o=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Wi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Wi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${o.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,lG(u)},"buildColumnControlId"),Gi=a(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function uG(e){let t=Wi.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}a(uG,"determinePattern");var lE=a((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let o=r[n],s=o,l=o.$ref?e.definitions[o.$ref.split($)[1]]:o,u=o.description?o.description:l.description,p=uG(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete o.description)},"addPatternForBindingChangeOfEnum"),qn=a((e,t,n)=>{lE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=a((e,t,n)=>{let i=Object.values(CR);lE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),Ki=a((e,t,n)=>{let i=Object.values(IR);lE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Qs(){}a(Qs,"doNotDelete");var YY=te(NR());var LR=Symbol("specificationMetadataKey"),T=a(e=>Reflect.metadata(LR,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(LR,e,t)),n}a(zn,"getReflectMetadata");var Dr=a(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),FR=Symbol("childId"),Mt=a(e=>Reflect.metadata(FR,e),"childId"),kg=a((e,t)=>Reflect.getMetadata(FR,e,t),"getChildId"),Ug=a(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),pG=Symbol("descriptionSrcURL"),Fe=a(e=>Reflect.metadata(pG,e),"descriptionSrcURL");var dG=Symbol("validityMetadataKey"),C=a(e=>Reflect.metadata(dG,e),"validity");function jg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}a(jg,"getTextForDeprecated");var UR=te(wR()),jR=te(le());var $R=UR.default.change,kR={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function BR(e,t){let n="";try{for(let i in kR)e[i]===void 0&&(e[i]=kR[i]);n=$R.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}a(BR,"createChangeString");function ja(e){try{return $R.parse(e)}catch{return!1}}a(ja,"parseChangeString");function HR(e,t,n,i,r){let o=n.layer?n.layer===jR.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:o};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}a(HR,"fillFlexChangeContent");function Te(e,t){return BR(e,t)}a(Te,"exportToFlexChange");var qs=te(le());function ll(e,t,n,i,r,o){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,o);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}a(ll,"importProperty");function $g(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(ae(i,{severity:qs.LogSeverity.Warning,message:jg(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}a($g,"checkDeprecatedProperties");function fE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return fE(n,t)}else return e.title?e.title.startsWith(qs.FacetTitlePrefix)?e.title.split(qs.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}a(fE,"getSectionTitle");function Bg(e){let t=e.split(`${qs.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}a(Bg,"getTargetFromCustomColumnRef");function No(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}a(No,"removeEmptyStructure");var wt=require("@sap-ux/vocabularies-types/vocabularies/UI");var aa=require("@sap-ux/vocabularies-types/vocabularies/UI");function Hg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}a(Hg,"replaceSpecialChars");var zs=a(function(e){return Hg(PR(e))},"prepareId");function EG(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}a(EG,"evaluateConcat");function Ys(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return EG(e);if(e&&typeof e=="string")return Hg(e.replace(/ /g,"_"))}a(Ys,"getStableIdPartFromValue");var WR=a(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),sa=a(function(e){let t="";if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,zs(t);if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=WR(e),t;if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=zs(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Ys(e.Value)+"::"),t+=e.Action,zs(t);if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataField)return t="DataField::",t+=Ys(e.Value),zs(t);if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Ys(e.Value)+"::",t+=WR(e),zs(t);if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Ys(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),zs(t);if(e.$Type&&e.$Type===aa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Ys(e.Value),zs(t)},"getStableIdPartFromDataField");var pe=te(le());var De=te(le());var Xi=require("@sap-ux/vocabularies-types/vocabularies/UI"),QR=require("path"),qR=te(Gs());var Wg="ResponsiveTableWithMultiSelect<LineItems>",Gg="ResponsiveTableWithInlineDelete<LineItems>",bG="TreeTable<LineItems>",AG="AnalyticalTable<LineItems>",SG="GridTable<LineItems>",uE=[Wg,Gg,bG,AG,SG],GR=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],KR="template::",Kg="template:::ObjectPageAction:::";function xG(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}a(xG,"addCustomColumnDefinition");function PG(e,t){let n;return e==="TableColumnActionIntentBased"?n=tE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ut(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n=ut(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ut(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}a(PG,"getActionId");function pE(e,t,n,i,r){let o,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=PG(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(o="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?o="TableColumnAction":(o=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=yi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Js(n.lineItemRecord.Action,!0);e.definitions[o]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[o])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}a(pE,"handleActionRecord");function CG(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Xi.UIAnnotationTypes.DataFieldForAction||t.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}a(CG,"getColumnActionType");function IG(e,t){let n=[];if(!(e.$Type!==Xi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),CG(t,e,n),n}a(IG,"getActionType");function zR(e,t,n){let i=tE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:yi(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Zg(r.properties[i],e.lineItemRecord),em(e.lineItemRecord,r.properties,i)}}a(zR,"generateGenericColumn");function OG(e,t,n,i,r,o,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{pE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&&pE(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{pE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":zR(i,t,r)}}a(OG,"handleAnyAction");function eu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}a(eu,"retrieveNameWithoutVocabularyFromVisualization");function fl(e,t,n,i,r){i=i||De.DefinitionName.LineItems;let{actions:o,footerActions:s,lineItemPath:l}=Jg(e,t,n,i);if(t){let u=0;t.forEach(p=>{let g={lineItemPath:l,lineItemRecord:p,lineItemId:i,entityType:n},m=IG(p,i);m?m.forEach(v=>{OG(v,e,o,g,u,s,i)}):zR(g,e,u),u++})}r&&(e.definitions[i].properties.custom={$ref:`${$}${r}`})}a(fl,"addLineItemsType");function NG(e,t,n){var r,o;let i=(o=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:o.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}a(NG,"addListReportLeadingProperties");function LG(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let o=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(o){let v=[];for(let A in o){let E=(m=o[A])==null?void 0:m.key;E!==void 0&&!v.includes(E)&&v.push(E)}ca(v,r)}}a(LG,"addTabkeyEnum");function Xg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let o=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,qR.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+QR.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");o.push(m)}}}),ca(o,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}a(Xg,"addFragmentEnum");function ul(e,t,n,i,r,o=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){xG(e,o,s),NG(e,t,s),LG(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Xg(e,r,u,"fragmentName",s),Xg(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Xg(e,r,u,"cellsFragmentName",s),Xg(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}a(ul,"addTableColumnExtensions");function YR(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}a(YR,"removeElementsFromEnum");function Qg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=fr(n==null?void 0:n.fullyQualifiedName,Xi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let o=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ut(s.value)}>`,p=Jr(s);s.type==="PropertyPath"&&(l=Lg(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][De.SchemaTag.propertyIndex]=o,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${o}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},o++})}a(Qg,"addSelectionFields");function JR(e,t){for(let n of t.entityProperties)e.push(n.name)}a(JR,"addEntityPropertiesToEnum");function qg(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}a(qg,"isDraftEnabled");function ZR(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}a(ZR,"isEntityDeletable");function e0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}a(e0,"isEntityUpdatable");function pl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let o=e.definitions[i];o[De.SchemaTag.isViewNode]=!0,o.description="Actions",Object.entries((n||o).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;o.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}a(pl,"addStandardHeaderActions");function t0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],o=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${o}`},e.definitions[o]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}a(t0,"addStandardFooterActionsOP");function zg(e){var i,r,o;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?J.t("NOUIANNOTATIONS",{entityType:t.name}):J.t("NOENTITYTYPE4SET",{entitySetName:(o=e.entitySet)==null?void 0:o.name});ae(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}a(zg,"getUIAnnotationForEntitySet");function Yg(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&ae(n,{severity:De.LogSeverity.Error,message:J.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}a(Yg,"hasPropertyTypeError");function FG(e,t,n,i){if(e===pe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case wt.UIAnnotationTypes.DataField:case wt.UIAnnotationTypes.DataFieldForAnnotation:case wt.UIAnnotationTypes.DataFieldWithNavigationPath:case wt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===pe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case wt.UIAnnotationTypes.DataField:case wt.UIAnnotationTypes.DataFieldForAnnotation:case wt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}a(FG,"copyFieldProperties");function RG(e,t,n,i){let r=e===pe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===pe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}a(RG,"determineFieldDefinitionName");function _G(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][pe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][pe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][pe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][pe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(_G,"addKeysTagForDataField");function DG(e,t,n){if(e.$Type===wt.UIAnnotationTypes.DataField||e.$Type===wt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===wt.UIAnnotationTypes.DataFieldWithNavigationPath)_G(e,t,n);else if(e.$Type===wt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][pe.SchemaTag.keys]=[{name:"Target",value:cl(e.Target.value)}],t.definitions[n][pe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===wt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][pe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][pe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][pe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][pe.SchemaTag.keys]=[{name:pe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][pe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][pe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(DG,"addKeysTagToField");function VG(e){var t,n;return e.$Type===wt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===wt.UIAnnotationTypes.ConnectedFieldsType}a(VG,"isConnectedField");function MG(e,t,n,i,r){let o=n.Target.$target,s={};if(o.$Type===wt.UIAnnotationTypes.ConnectedFieldsType){let u=(o.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=o.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),dE(e,t,v,`ConnectedFields::${o.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},o.fullyQualifiedName.split("@")[0])}}}return s}a(MG,"addConnectedFields");function n0(e,t,n){if(n)return n;let i=ut(t);return e.definitions[i].properties}a(n0,"getFieldsSchemaContainer");function dE(e,t,n,i,r,o,s,l=!0,u={},p=o.entityType.fullyQualifiedName){var E;let g=sa(n),m=s===pe.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=RG(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===wt.UIAnnotationTypes.DataFieldForAction||n.$Type===wt.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===pe.SectionType.Section){let O=n0(t,`${e}${pe.DefinitionName.Actions}<${i}>`,u.actions),R=O[m]={$ref:`${$}${v}`};R[pe.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=n0(t,`${e}${pe.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${v}`,propertyIndex:parseInt(r)},VG(n)&&(A=MG(e,t,n,o,s))}t.definitions[v]={type:"object",properties:A,description:yi(n,o.entityType),additionalProperties:!1},DG(n,t,v),t.definitions[v][pe.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][pe.SchemaTag.annotationType]=n.$Type,t.definitions[v][pe.SchemaTag.isViewNode]=!0,Zg(t.definitions[v],n),FG(s,t,n,v),n.$Type===wt.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[v].$ref=`${$}${pe.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}a(dE,"addField");function wG(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}a(wG,"determineTargetIdOfForm");function kG(e,t,n,i,r,o){if(e.base===pe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&dE(t,n,l,i,s,e,r,o)}else for(let s in e.target.Data){let l=e.target.Data[s];dE(t,n,l,i,s,e,r)}}a(kG,"addFieldsToFormDefinition");function UG(e,t,n){var i,r;if(e.target){let o=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][pe.SchemaTag.keys]=[{name:pe.SchemaKeyName.target,value:o.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][pe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][pe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][pe.SchemaTag.annotationPath]=fr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}a(UG,"addTagsToFormDefinition");function tm(e,t,n,i,r,o){if(!t.target)return;let s=wG(t),l=ut(`${e}${pe.DefinitionName.Form}<${s}>`),u=ut(`${e}${pe.DefinitionName.Fields}<${s}>`),p=ut(`${e}${pe.DefinitionName.Actions}<${s}>`),g=!(t.base===pe.FacetBase.Identification&&o.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===pe.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][pe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},UG(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][pe.SchemaTag.isViewNode]=!0,kG(t,e,i,s,r,g),s}a(tm,"handleForm");function gE(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),o=t.references.find(s=>s.alias===r);o&&(i=e.replace(n,o.namespace))}return i}a(gE,"replaceAlias");function nm(e,t){let n=gE(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let o,s,l;return r>-1?(o=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${o}`):(o=i,l=e.fullyQualifiedName.split("@")[0],o&&o!==""&&(s=`${l.substring(0,l.length-1)}::${o}`)),{actionName:o,actionId:s,namespace:l}}a(nm,"getActionNameAndId");function i0(e,t){var n,i;for(let r in e){let o=e[r];return((n=o.component)==null?void 0:n.name)===pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===o.entitySet:i0(o.pages,t)}}a(i0,"isFirstObjectPage");function im(e,t,n,i,r){var g,m;e.definitions[pe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${pe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${pe.DefinitionName.ObjectPageFooter}`},e.definitions[pe.DefinitionName.ObjectPageFooter].properties[pe.PropertyName.actions]={$ref:`${$}${pe.DefinitionName.FooterActions}`};let o=e.definitions[pe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};o[pe.SchemaTag.isViewNode]=!0;let s=ri(pe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${wt.UIAnnotationTerms.Identification}`,`/@${wt.UIAnnotationTerms.Identification}`);o[pe.SchemaTag.annotationPath]=`/${v}`,i(u,e,o,p)}else u&&(o[pe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${wt.UIAnnotationTerms.Identification}`);n===pe.FioriElementsVersion.v2&&i0(r,t)&&!qg(l)&&t0(e,o),delete e.definitions[pe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${pe.DefinitionName.ObjectPageFooter}<${pe.DefinitionName.ObjectPageFooterActions}>`]}a(im,"addFooterActions");function rm(e,t,n,i,r,o=!1){var m,v;let s=pe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[pe.DefinitionName.ObjectPageHeader].properties[pe.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[pe.SchemaTag.isViewNode]=!0;let p=ri(pe.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[pe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${wt.UIAnnotationTerms.Identification}`,`/@${wt.UIAnnotationTerms.Identification}`):t&&(u[pe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${wt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),o&&pl(e,!0,l)}a(rm,"addHeaderActions");function om(e,t){e.properties.header={$ref:`${$}${pe.DefinitionName.ObjectPageHeader}`},e.definitions[pe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${pe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[pe.DefinitionName.ObjectPageHeader][pe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${wt.UIAnnotationTerms.HeaderInfo}`)}a(om,"addCommonHeaderSchema");function r0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}a(r0,"determineEntitySetOfEntityType");var ur=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=te(le());function ca(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}a(ca,"addEnumToSchema");function tu(e,t,n){var o;let i=(o=e==null?void 0:e.annotations)==null?void 0:o.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}ca(r,n)}a(tu,"addEnumForValidAnnotations");function $a(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];tu(e,r,i)}a($a,"addEnumForSingleTabVariant");function o0(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];tu(n.entityType,r,i)}a(o0,"addEnumForMultiTabVariant");function a0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),ca(r,i)}a(a0,"addEnumForVariantEntitySet");function s0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[ur.UIAnnotationTerms.FieldGroup];tu(e,r,i)}a(s0,"addEnumFieldGroupAnnotationPath");function c0(e,t,n,i){let r=n.map(o=>{let s=i.find(p=>!!o[p]),l=o[s],u=o.label||o.title;return{const:l,...u&&{description:u},...o.custom&&{custom:o.custom}}});if(r.length){e.definitions[tt.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let o of t){let s=e.definitions[o],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${tt.DefinitionName.RelatedFacetKeys}`},l]}}}}a(c0,"addDefinitionForRelatedFacetKeys");function dl(e){return e.replace("#","::")}a(dl,"getFacetKeyInSchema");function l0(e,t){return`${e}<${dl(t)}>`}a(l0,"getFacetDefinitionKey");function kt(e,t,n,i=!0,r){let o=t;if(i&&(o=l0(r||e,t)),e&&e!==o){let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[o]=s}return n.definitions[o]}a(kt,"parseSchemaDefinition");function am(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${ur.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,kt(n,t,e,!0)),i}a(am,"getCustomExtensionDefinitionName");function Jg(e,t,n,i,r,o){let s;if(e.definitions[i]={type:"object",properties:{},description:"Columns"},e.definitions[i][tt.SchemaTag.isViewNode]=!0,e.definitions[i].additionalProperties=!1,r){let E=am(e,i,r);e.definitions[i].additionalProperties={$ref:E}}let l=i.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.ToolBar:tt.DefinitionName.ObjectPageToolBar,u=`${l}<${i}>`;e.definitions[u]=JSON.parse(JSON.stringify(e.definitions[`${l}`]));let p=`${tt.DefinitionName.Actions}<${ut(i)}>`;e.definitions[u].properties.actions.$ref=$+p;let g=i.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.Actions:tt.DefinitionName.ObjectPageToolBarActions,m=e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[g]));if(m.properties={},m.additionalProperties=!1,o){let E=am(e,i,o);m.additionalProperties={$ref:E}}let v,A;if(i===tt.DefinitionName.LineItems&&e.properties.footer){A=`${tt.DefinitionName.Footer}<${i}>`,e.properties.footer.$ref=`${$}${A}`,e.definitions[A]=JSON.parse(JSON.stringify(e.definitions[tt.DefinitionName.GenericFooter]));let E=`${tt.DefinitionName.FooterActions}<${ut(i)}>`;e.definitions[A].properties.actions.$ref=$+E,v=e.definitions[E]=JSON.parse(JSON.stringify(e.definitions[tt.DefinitionName.Actions])),v.properties={},v.additionalProperties=!1}return t&&(s=fr(n==null?void 0:n.fullyQualifiedName,t.term,t.qualifier),s&&(e.definitions[u][tt.SchemaTag.annotationPath]=s,v&&(e.definitions[A][tt.SchemaTag.annotationPath]=s))),{actions:m,footerActions:v,lineItemPath:s}}a(Jg,"addCommonLineItemDefinitions");function f0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}a(f0,"getDataTypeFromAnnotation");function Zs(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=f0(e.$Type)),t}a(Zs,"determineDataTypeOfTarget");function Jr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Zs((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=f0(e.$Type):e.type&&(t=e.type),t}catch{return t}}a(Jr,"determineDataType");function Zg(e,t){let n=Jr(t);n&&(e[tt.SchemaTag.dataType]=n)}a(Zg,"addDataTypeToDefinition");function $n(e,t){return`${$}${l0(e,t)}`}a($n,"getFacetDefinitionLink");function Ba(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}a(Ba,"addDefinitionRef");function sm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${tt.UIVOCABULARY}`);t=`/${n}/@${tt.UIVOCABULARY}${i}`}return t}a(sm,"getFacetAnnotationPath");function nu(e,t,n,i,r,o,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${o}${e.base}${s}`;n.properties[t]={$ref:$n(o?u:l,t)};let p=kt(o?u:l,t,i,!0,o?u:void 0);ka(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}a(nu,"handleAddressContact");function mE(e,t,n){typeof e=="object"&&(e[t]=n)}a(mE,"updateSchemaProperty");function gl(e,t,n=ut("")){let i=t.entityProperties.map(o=>o.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];mE(r.properties.fields.items,"enum",i)}a(gl,"addFieldsType");function jG(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}a(jG,"findFirstSchemaDefinitionKey");function cm(e,t,n,i){var p;let r=t.description,o=t.keys,s=!t.annotationPath;if(t.$ref){let g=gn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,o=m.keys))}let l=n,u=jG(o,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}a(cm,"getEnumEntry");function Ha(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=cm(e,u,l,i);r.push(p)}let o=e.definitions[n.definition]||n.schema;if(typeof o=="object")if(n.property){let l=(s=o.properties)==null?void 0:s[n.property];mE(l,"oneOf",r)}else mE(o,"oneOf",r)}a(Ha,"addDescriptiveEnumDefinition");function Js(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),o=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,o),n=r>0?n.substring(r+1):n.substring(o+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}a(Js,"getActionKey");function em(e,t,n){var i,r,o;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:Ys(e.Value)}];else if(e.$Type===ur.UIAnnotationTypes.DataFieldWithAction||e.$Type===ur.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Js(e.Action,!0);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.action,value:s}],l&&(t[n][tt.SchemaTag.target]=l)}else if(e.$Type===ur.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Js(e.Target.value,!1);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.target,value:cl(s)}],t[n][tt.SchemaTag.target]=(o=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:o.split("@")[0]}else if(e.$Type===ur.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===ur.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Js(s,!0);t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][tt.SchemaTag.target]=u)}}catch{return}}a(em,"addKeyToDefinition");var ml=te(le());var u0=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var p0="1.108.31";var Wa=class Wa{constructor(){Wa.distTagsOfSpec.length===0&&(Wa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Wa.distTagsOfSpec=[]}getSpecVersion(){return p0}getDistTagsOfVersion(){let t=[],n=u0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(o=>o.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=J.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});ae(n,{severity:ml.LogSeverity.Info,message:r,location:{path:ml.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Wa.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=J.t("WRONGMINUI5VERSION",{minUI5Version:t});ae(n,{severity:ml.LogSeverity.Warning,message:r,location:{path:ml.MANIFESTPATH}})}}};a(Wa,"DistTagEvaluator"),Wa.distTagsOfSpec=[];var iu=Wa;var ue=te(le());var yn=te(le());var _n=te(le());function WG(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}a(WG,"getCustomPageName");function d0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||_n.ViewTypes.XML}a(d0,"getViewType");function GG(e,t){return d0(e,t).toLowerCase()}a(GG,"getViewTypeExtension");function KG(e,t,n){var p,g;let i=a(m=>{var v;return(v=m.split(`${t.id}.`)[1])==null?void 0:v.split(".")},"splitViewPath"),r=t.settings,o=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(g=e.view)==null?void 0:g.name;s!=null&&s.includes(t.id)?n=i(s):o!=null&&o.includes(t.id)&&(n=[...i(o),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}a(KG,"getViewPath");function XG(e,t){let n=e.entitySet||WG(e),{viewPath:i,fileName:r}=KG(e,t,[n]),o=GG(e,t);return[...i,`${r}.view.${o}`].join("/")}a(XG,"getCustomPagePath");var hE=class hE{constructor(t,n,i,r,o,s,l){this.unhandledControllers=[];let u=Ft(_n.SchemaType.Application);this.app={$schema:u.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:o,odata:o===_n.FioriElementsVersion.v2?_n.OdataVersion.v2:_n.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let o in this.app.pages){i=this.app.pages[o];let s=this.app.target.odata===_n.OdataVersion.v4?o:i.entitySet,l=this.getPageConfigFile(i,s);l&&(t[`${_n.DirName.Pages}/${o}.json`]=l)}let r=JSON.parse(JSON.stringify(this.app));for(let o in r.pages)delete r.pages[o].config;return n[_n.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var o;let i,r=d0(t,this.app)===_n.ViewTypes.XML&&!!t.config;if(t.pageType===_n.PageTypeV4.CustomPage||t.pageType===_n.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Ft(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(o=t.view)==null?void 0:o.id:void 0,l=Ft(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Ft(t.pageType);i.$schema=u.path}}return(i&&t.pageType===_n.PageTypeV4.CustomPage||t.pageType===_n.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=XG(t,this.app);n.$filePath=i}};a(hE,"AppProvider");var Ga=hE;var Ge=te(le());var ec=te(le());function lm(e,t,n){if(t.controlType.endsWith(ec.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===ec.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[ec.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ec.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}a(lm,"addFlexForTable");var hl=te(le());var Bn=a((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),g0=a((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),m0=a((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function yE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}a(yE,"getNewPageTemplate");function QG(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}a(QG,"findPageInManifest");function qG(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=yE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:yE(e[t].pageType)}),!Array.isArray(n.pages))){let i=QG(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=yE(e[t].pageType)),vE(t,e,i)}}a(qG,"transformPageFromAssociation");function zG(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var o;let r=e.pages[i];if(((o=r.component)==null?void 0:o.name)===hl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===hl.PageTypeV2.ListReport||n.pageType===hl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}a(zG,"deletePage");function vE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===hl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)qG(t,r,n);Array.isArray(n.pages)||zG(n,t,i)}}a(vE,"transformPageToNewManifestV2");var e1=te(Gs());var sA={};Hs(sA,{ALPAnalyticalTable:()=>ab,ALPGridTable:()=>ob,ALPResponsiveTable:()=>rb,Action:()=>fb,AnalyticalCard:()=>bl,AnalyticalCardSettings:()=>dm,AnalyticalCardSettingsv4:()=>xE,AnalyticalListPageFilterBar:()=>_E,AnalyticalTable:()=>ib,BaseCustomSection:()=>Vu,ChartSettings:()=>Ob,ChartSettingsType:()=>EE,CommonCardSettings:()=>qa,CommonFilterBar:()=>mu,CommonHeaderFacetSettings:()=>lc,CommonTableSettings:()=>es,CommonTableSettingsForSections:()=>gc,CreateWithFilters:()=>zE,CustomCard:()=>AE,DataLoadSettings:()=>JE,DateRange:()=>NE,DefaultDateRange:()=>LE,DefaultSpanObject:()=>bE,FRAGMENT_DEFINITION:()=>Fo,Field:()=>OE,FieldForAction:()=>kE,Fields4Dialog:()=>ZE,Fields4DialogOP:()=>tA,FooterAction:()=>pb,FormAction:()=>wE,GlobalChartSettings:()=>Zb,GlobalTableSettings:()=>oA,GridTable:()=>sb,HeaderActionStandard:()=>yb,HeaderSections:()=>Mb,KPISettings:()=>Nb,LinkListCardSettings:()=>CE,LinklistCard:()=>pu,ListCard:()=>El,ListCardSettings:()=>SE,ListReportFilterBar:()=>DE,MultiEdit:()=>YE,ObjectPageAnalyticalTable:()=>nA,ObjectPageChart:()=>Jb,ObjectPageCustomSectionFragment:()=>Mu,ObjectPageCustomSectionView:()=>wu,ObjectPageFooterAction:()=>kb,ObjectPageFooterActionStandard:()=>Tb,ObjectPageGridTable:()=>iA,ObjectPageHeader:()=>Lb,ObjectPageHeaderAction:()=>Fb,ObjectPageHeaderActionStandard:()=>vb,ObjectPageHeaderSectionAddress:()=>Vb,ObjectPageHeaderSectionChart:()=>_b,ObjectPageHeaderSectionDataPoint:()=>Db,ObjectPageHeaderSectionForm:()=>Rb,ObjectPageLayout:()=>jb,ObjectPageResponsiveTable:()=>mc,ObjectPageSectionAddressV2:()=>Gb,ObjectPageSectionChartV2:()=>Hb,ObjectPageSectionContactV2:()=>Kb,ObjectPageSectionFormV2:()=>Bb,ObjectPageSectionTableV2:()=>Wb,ObjectPageSectionV2:()=>$b,ObjectPageSubSectionChartV2:()=>qb,ObjectPageSubSectionContactV2:()=>zb,ObjectPageSubSectionFormV2:()=>Qb,ObjectPageSubSectionTableV2:()=>Yb,ObjectPageSubSectionV2:()=>Xb,ObjectPageToolBarAction:()=>aA,ObjectPageTreeTable:()=>rA,QuickVariantSelection:()=>eb,QuickVariantSelectionOP:()=>eA,QuickVariantSelectionX:()=>tb,ResponsiveTable:()=>rc,SAP_UI_TABLE:()=>Em,SaveAndEditOP:()=>hb,SelectionFieldDateSettings:()=>FE,SelectionFields:()=>RE,Share:()=>db,ShareOP:()=>gb,StackCard:()=>uu,StackCardSettings:()=>PE,TableALP:()=>Cl,TableCard:()=>Al,TableCardSettings:()=>IE,TableColumn:()=>Ab,TableColumnAction:()=>$m,TableColumnActionIntentBased:()=>Sb,TableCustomColumn:()=>xb,ToolBar:()=>Cb,ToolBarAction:()=>ub,TreeTable:()=>nb,UpAndDownNavigationOP:()=>mb,buildIntentBasedActionId:()=>Eb,deleteColumnFromFragment:()=>Sm,deleteType:()=>Ol,exportColorPalette:()=>T0,exportCreateParametersFields:()=>Fm,exportCustomColumnsToFragment:()=>QE,exportDateSettingsField:()=>S0,exportDefaultSpan:()=>E0,exportType:()=>Il,getChartSectionControlId:()=>q0,getContactSubSectionControlId:()=>Y0,getCustomColumnPath:()=>xm,getFormSectionControlId:()=>Q0,getRootCustomColumnFromFragmentJSON:()=>vu,getSectionControlId:()=>pc,getSmartChartControlId:()=>Iu,getSmartTableControlId:()=>Za,getSubSectionControlId:()=>z0,getTableSectionControlId:()=>X0,importCreateParameters:()=>Lm,importDateSettings:()=>VE});var Yn=te(le());var je=a(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),eo=a(e=>je(e)+"/tableSettings","getTableSettingPathV2"),h0=a(e=>je(e)+"/chartSettings","getChartSettingPathV2"),y0=a(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var hn=a(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Pe=a(e=>{let t=[Yn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var tc=a((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),pm=a(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ci=a(e=>{let t=[];return t.push(pm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),nc=a(e=>Ci(e)+"/tableSettings","getGlobalTableSettingsPathV2"),to=a((e,t,n)=>{let i=[];i.push(pm(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Vr=a((e,t,n)=>to(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),v0=a((e,t,n)=>to(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),TE=a(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),la=a((e,t,n,...i)=>{let r="|",o=n.split(r),s=e[e.length-1].split(r),l="";o.length===4?l=[o[2],o[3]].join(r):o.length===3&&(l=o[2]);let u=[o[0],s[s.length-1],l].join(r);return i.unshift(u),`${TE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),um=class um{};a(um,"ApplicationV2"),h([Mt("settings")],um.prototype,"settings",2);var fm=um,Zr=class Zr{};a(Zr,"AppSettings"),h([T({manifest:{path:()=>"sap.app"}})],Zr.prototype,"title",2),h([T({manifest:{path:()=>"sap.app"}})],Zr.prototype,"description",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.50.0"})],Zr.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.46.0"})],Zr.prototype,"forceGlobalRefresh",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.74.0"})],Zr.prototype,"tableColumnVerticalAlignment",2),h([T({manifest:{path:()=>"sap.ui5"}}),C({since:"1.56.0"}),Fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Zr.prototype,"flexEnabled",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.96.0"})],Zr.prototype,"draftDiscardConfirmationSettings",2),h([T({manifest:{path:()=>Yn.GENERICAPPSETTINGS}}),C({since:"1.96.0"})],Zr.prototype,"statePreservationMode",2);var Ka=Zr;var ru=te(le());function YG(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=ru.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:ru.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}a(YG,"importColorPalette");function T0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===ru.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}a(T0,"exportColorPalette");function E0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}a(E0,"exportDefaultSpan");var gm=class gm{};a(gm,"ChartSettingsType"),h([T({manifest:{path:()=>hn()+"/chartSettings"}})],gm.prototype,"showDataLabel",2);var EE=gm,Xa=class Xa{};a(Xa,"DefaultSpanObject"),h([T({manifest:{path:t=>Pe(t)}})],Xa.prototype,"cols",2),h([T({manifest:{path:t=>Pe(t)}})],Xa.prototype,"rows",2),h([T({manifest:{path:t=>Pe(t)}})],Xa.prototype,"showOnlyHeader",2),h([T({manifest:{path:t=>Pe(t)}})],Xa.prototype,"minimumTitleRow",2),h([T({manifest:{path:t=>Pe(t)}})],Xa.prototype,"minimumSubTitleRow",2);var bE=Xa,Gt=class Gt{};a(Gt,"CommonCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"entitySet",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"title",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"subTitle",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"annotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"dataPointAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"selectionPresentationAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"kpiAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"category",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"dynamicSubtitleAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"valueSelectionInfo",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"showFilterInHeader",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"sortBy",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"sortOrder",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"identificationAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"selectionAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"presentationAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"enableLocaleCurrencyFormatting",2),h([T({manifest:{path:t=>Pe(t),export:E0}})],Gt.prototype,"defaultSpan",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"requireAppAuthorization",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"showSortingInHeader",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"tabs",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"addODataSelect",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"showRefresh",2),h([T({manifest:{path:t=>Pe(t)}})],Gt.prototype,"customParams",2);var qa=Gt,yl=class yl{};a(yl,"CustomCard"),h([T({manifest:{path:t=>Pe(t)}})],yl.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],yl.prototype,"template",2),h([T({manifest:{path:t=>Pe(t)}})],yl.prototype,"settings",2);var AE=yl,Qa=class Qa extends qa{};a(Qa,"ListCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],Qa.prototype,"showLineItemDetail",2),h([T({manifest:{path:t=>Pe(t)}})],Qa.prototype,"imageSupported",2),h([T({manifest:{path:t=>Pe(t)}})],Qa.prototype,"enableAddToInsights",2),h([T({manifest:{path:t=>Pe(t)}})],Qa.prototype,"listFlavor",2),h([T({manifest:{path:t=>Pe(t)}})],Qa.prototype,"listType",2);var SE=Qa,ou=class ou{};a(ou,"ListCard"),h([T({manifest:{path:t=>Pe(t)}})],ou.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],ou.prototype,"template",2);var El=ou,no=class no extends qa{};a(no,"AnalyticalCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"chartAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"ignoreSapText",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"enableAddToInsights",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"navigation",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"valueSelectionInfo",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"chartProperties",2),h([T({manifest:{path:t=>Pe(t),import:YG,export:T0}})],no.prototype,"colorPalette",2),h([T({manifest:{path:t=>Pe(t)}})],no.prototype,"bEnableStableColors",2);var dm=no,mm=class mm extends dm{};a(mm,"AnalyticalCardSettingsv4"),h([T({manifest:{path:t=>Pe(t)}})],mm.prototype,"measureAggregate",2);var xE=mm,au=class au{};a(au,"AnalyticalCard"),h([T({manifest:{path:t=>Pe(t)}})],au.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],au.prototype,"template",2);var bl=au,vl=class vl extends qa{};a(vl,"StackCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],vl.prototype,"itemText",2),h([T({manifest:{path:t=>Pe(t)}})],vl.prototype,"objectStreamCardsNavigationProperty",2),h([T({manifest:{path:t=>Pe(t)}})],vl.prototype,"objectStreamCardsSettings",2);var PE=vl,su=class su{};a(su,"StackCard"),h([T({manifest:{path:t=>Pe(t)}})],su.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],su.prototype,"template",2);var uu=su,Tl=class Tl extends qa{};a(Tl,"LinkListCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],Tl.prototype,"listFlavor",2),h([T({manifest:{path:t=>Pe(t)}})],Tl.prototype,"headerAnnotationPath",2),h([T({manifest:{path:t=>Pe(t)}})],Tl.prototype,"staticContent",2);var CE=Tl,cu=class cu{};a(cu,"LinklistCard"),h([T({manifest:{path:t=>Pe(t)}})],cu.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],cu.prototype,"template",2);var pu=cu,lu=class lu extends qa{};a(lu,"TableCardSettings"),h([T({manifest:{path:t=>Pe(t)}})],lu.prototype,"showLineItemDetail",2),h([T({manifest:{path:t=>Pe(t)}})],lu.prototype,"enableAddToInsights",2);var IE=lu,fu=class fu{};a(fu,"TableCard"),h([T({manifest:{path:t=>Pe(t)}})],fu.prototype,"model",2),h([T({manifest:{path:t=>Pe(t)}})],fu.prototype,"template",2);var Al=fu;var b0=te(le());var JG=a((e,t,n,i,r)=>{let o=Qn(n[1],r),s=n.slice(-1)[0];return qt(e,[o,s,"GroupElement"])},"getSmartFieldControlId"),hm=class hm{};a(hm,"Field"),h([T({flex:{controlId:JG,controlType:()=>b0.ControlType.GroupElement,createFlexChange:Te},generate:mt})],hm.prototype,"visible",2);var OE=hm;var ic=te(le());function VE(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}a(VE,"importDateSettings");function ZG(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((o,s)=>{r[s]=o,o.equals&&typeof o.equals=="string"&&(r[s].equals=o.equals.split(","))})),r}a(ZG,"importDateSettingsField");function S0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let o=i[r];e[n][r]=o,o.equals&&Array.isArray(o.equals)&&(e[n][r].equals=o.equals.join())}}a(S0,"exportDateSettingsField");var Sl=class Sl{};a(Sl,"DateRange"),h([T({manifest:{path:t=>je(t)+ic.DATESETTINGSPATH}}),C({since:"1.77.0"})],Sl.prototype,"useDateRange",2),h([T({manifest:{path:t=>je(t)+ic.DATESETTINGSPATH,import:VE,export:Dg}}),C({since:"1.77.0"})],Sl.prototype,"selectedValues",2),h([T({manifest:{path:t=>je(t)+ic.DATESETTINGSPATH}}),C({since:"1.77.0"})],Sl.prototype,"exclude",2);var NE=Sl,ym={controlId:qt,controlType:()=>ic.ControlType.SmartFilterBar,createFlexChange:Te},du={path:(e,t,n)=>`${je(e)}${ic.DATESETTINGSPATH}/fields/${n}`},A0={...du,import:ZG,export:S0},vm=class vm{};a(vm,"DefaultDateRange"),h([T({manifest:du}),C({since:"1.90.0"})],vm.prototype,"operation",2);var LE=vm,za=class za{};a(za,"SelectionFieldDateSettings"),h([T({manifest:A0}),C({since:"1.77.0"})],za.prototype,"selectedValues",2),h([T({manifest:du}),C({since:"1.77.0"})],za.prototype,"exclude",2),h([T({manifest:du}),C({since:"1.77.0"})],za.prototype,"customDateRangeImplementation",2),h([T({manifest:A0}),C({since:"1.77.0"})],za.prototype,"filter",2),h([T({manifest:du}),C({since:"1.90.0"})],za.prototype,"defaultValue",2);var FE=za,ME=class ME{};a(ME,"SelectionFields");var RE=ME,io=class io{};a(io,"CommonFilterBar"),h([T({manifest:{path:t=>je(t)}}),C({since:"1.38.0"})],io.prototype,"smartVariantManagement",2),h([T({flex:ym}),C({since:"1.40.0"})],io.prototype,"liveMode",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.48.0"})],io.prototype,"variantManagementHidden",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.52.0"})],io.prototype,"subTitleIfVariantMgmtHidden",2),h([T({manifest:{path:t=>je(t)+"/filterSettings",import:VE}}),C({since:"1.77.0"})],io.prototype,"dateSettings",2),h([T({flex:ym}),C({since:"1.28.0"})],io.prototype,"showClearOnFB",2),h([T({flex:ym}),C({since:"1.38.0"})],io.prototype,"showFilterConfiguration",2),h([T({flex:ym}),C({since:"1.28.0"})],io.prototype,"showRestoreOnFB",2);var mu=io,gu=class gu extends mu{};a(gu,"AnalyticalListPageFilterBar"),h([T({manifest:{path:t=>je(t)}})],gu.prototype,"showGoButtonOnFilterBar",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.60.0"})],gu.prototype,"filterDefaultsFromSelectionVariant",2);var _E=gu,Tm=class Tm extends mu{};a(Tm,"ListReportFilterBar"),h([T({manifest:{path:t=>je(t)}}),Fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Tm.prototype,"annotationPath",2);var DE=Tm;var UE=te(le());var e8=a((e,t,n,i,r)=>{if(i()===UE.ControlType.Button){let o=n[n.length-1],s=Qn(n[1],r);return`${e}action::${o}::${s}::FormAction`}return qt(e,t)},"getFormActionButtonId"),Lo={controlId:e8,controlType:()=>UE.ControlType.Button,createFlexChange:Te},Ya=class Ya{};a(Ya,"FormAction"),h([T({flex:Lo,generate:mt})],Ya.prototype,"visible",2),h([T({flex:Lo})],Ya.prototype,"tooltip",2),h([T({flex:Lo})],Ya.prototype,"icon",2),h([T({flex:Lo})],Ya.prototype,"activeIcon",2),h([T({flex:Lo})],Ya.prototype,"type",2);var wE=Ya,Ja=class Ja{};a(Ja,"FieldForAction"),h([T({flex:Lo,generate:mt})],Ja.prototype,"visible",2),h([T({flex:Lo})],Ja.prototype,"tooltip",2),h([T({flex:Lo})],Ja.prototype,"icon",2),h([T({flex:Lo})],Ja.prototype,"activeIcon",2),h([T({flex:Lo}),C({since:"1.73.0"})],Ja.prototype,"type",2);var kE=Ja;var Tt=te(le()),ro=te(Gs());var HE=require("path"),v8=te(le()),M0=te(V0()),w0=require("fs");var T8=(0,HE.join)(__dirname,"templates");var E8=a((e,t)=>{let n=(0,w0.readFileSync)(e,"utf8");return(0,M0.render)(n,t)},"renderTemplate");var WE=a((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return E8((0,HE.join)(T8,t+".xml"),n)},"getSingleColumnContent"),GE=a((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=WE(i,t);n=n+`
289
289
  `+r}return n+`
290
290
  </core:FragmentDefinition>`},"getColumnFragmentContent"),KE=a(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
291
291
  <Text text="Placeholder"/>`}),t+`
292
- </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Am=require("path");var Ro="core:FragmentDefinition",bm="sap.ui.table",XE=new Map([[Tt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Tt.ViewTemplateType.TreeTableColumnsExtension,{namespace:bm,name:"Column"}],[Tt.ViewTemplateType.GridTableColumnsExtension,{namespace:bm,name:"Column"}],[Tt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:bm,name:"AnalyticalColumn"}]]),y8=new Map([[Tt.v2.FE_TEMPLATE_V2_LIST_REPORT,Tt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Tt.v2.FE_TEMPLATE_V2_ALP,Tt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Tt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Tt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),D0={type:"element",name:"Text",attributes:{text:"Placeholder"}},v8=JSON.stringify(D0);function T8(e,t){let n=t?e[Ro]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let o=i.get(n[r]);i.set(n[r],o?[...o,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}a(T8,"getFragmentNamespaces");function _0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}a(_0,"getTagName");function Sm(e,t,n=e){let i=T8(n,!!(t||n!==e));if(t){let r=XE.get(t);return _0(r,i.get(r.namespace))}else{let r=XE.keys();for(let o of r){let s=XE.get(o),l=i?_0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}a(Sm,"getTagNameFromFragmentJSON");function vu(e,t=e){let n=Sm(e,void 0,t);return e[n]}a(vu,"getRootCustomColumnFromFragmentJSON");function E8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let o=e[t][r];!n.includes(r)&&o!==void 0&&o.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${o.toString()}"`)}return i+="}",i}a(E8,"addP13nData");function V0(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,o=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===o.columnKey);return s<0?!1:(n=!0,r=E8(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}a(V0,"handleFragmentColumn");function b8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),o=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Tt.FRAGMENTNAMEPART+o;for(let u of t){let p=u.dataSourceUri.split(Am.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ro.xml2json)(u.fileContent,{compact:!0})),m=Sm(g[Ro]);m&&(delete g[Ro][m],u.fileContent=(0,ro.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}));break}}}a(b8,"deleteColumnsFromFragment");function M0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===v8&&(e.splice(n,1),t-=1,t===0));n++);}a(M0,"deleteNumberOfCells");function A8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Tt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(o)){let l=JSON.parse((0,ro.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&M0(l.elements[0].elements,u.length),s.fileContent=(0,ro.json2xml)(JSON.stringify(l),{spaces:4});break}}a(A8,"deleteCellsFromFragment");function xm(e,t,n,i){if(i){b8(e,i,t,n);let r=t.replace(Tt.ViewTemplateType.ResponsiveTableColumnsExtension,Tt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&A8(o,i,n)}}a(xm,"deleteColumnFromFragment");function S8(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(D0)}a(S8,"addNewColumnsInFragment");function x8(e,t){let n=JSON.parse((0,ro.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)S8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,o=n.elements[0].elements;M0(o,r)}e.fileContent=(0,ro.json2xml)(JSON.stringify(n),{spaces:4})}}a(x8,"updateNonEmptyCellsFragment");function P8(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(Am.sep);if(o[o.length-1]===t){i=!0,r.changeIndicator=Tt.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=KE(n):x8(r,n);break}}return i}a(P8,"updateCellsFragment");function C8(e,t,n,i,r){var g;let o,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Tt.LogSeverity.Error,message:J.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Tt.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,o=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Am.sep))+Tt.FRAGMENTNAMEPART+p}if(e.indexOf(Tt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Tt.ChangeIndicator.Updated;let m=e.replace(Tt.ViewTemplateType.ResponsiveTableColumnsExtension,Tt.ViewTemplateType.ResponsiveTableCellsExtension),v=Bn(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):f0(l,m)}return{manifestSection:u,lsFilePath:o,cellsFragmentName:s,fragmentType:p}}a(C8,"exportCustomColumnsToManifest");function I8(e,t,n,i,r){let o=WE(e,t);if(o){let s=JSON.parse((0,ro.xml2json)(o,{compact:!0})),l=vu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}a(I8,"insertNewColumnInFragment");function O8(e,t){let n=[];for(let i=0;i<e.length;i++)V0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}a(O8,"processCustomColumnInArray");function N8(e,t,n){if(e){if(Array.isArray(e))O8(e,t);else if(!V0(e,t)){let r=Sm(n[Ro]);r&&(delete n[Ro][r],e=void 0)}}return e}a(N8,"maintainExistingColumnInFragment");function L8(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let s=e.indexOf(o);n=I8(o,i,n,r,s)}return n}a(L8,"insertNewColumnsInFragment");function F8(e,t,n,i,r){let o=!1;if(!e)return o;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(o=!0,s.changeIndicator=Tt.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=GE(i,r);else{let u=JSON.parse((0,ro.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=vu(u[Ro]),l=N8(l,i,u),l=L8(i,n,l,r,u);let g=Sm(u,r);u[Ro][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ro.json2xml)(m,{compact:!0,spaces:4}))}break}return o}a(F8,"updateColumnsInFragment");function QE(e,t,n,i,r,o){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=C8(t,e,n,i,o),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),E=A.split(".");v=E[E.length-1]+Tt.FRAGMENTNAMEPART+g;let R=p==null?void 0:p.split("."),U=R?R[R.length-1]:null,j=U?U+Tt.FRAGMENTNAMEPART+g:null,G=F8(s,v,A,m,r),re=!1;if(p?re=P8(s,j,n):re=!0,!G){let Z={fileContent:GE(m,r),dataSourceUri:u,changeIndicator:Tt.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!re){let Z={fileContent:KE(n),dataSourceUri:u.replace(v,j),changeIndicator:Tt.ChangeIndicator.Deleted};e.fragments.push(Z)}}a(QE,"exportCustomColumnsToFragment");var Pm=a((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=y8.get((u=e.component)==null?void 0:u.name);if(!i){let v=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let o=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:o}},"getCustomColumnPath");var Jn=te(ce());var qE="/multiEdit",ts=a((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Jn.PropertyName.table:qt(e,t),"getSmartTableControlId");function Fm(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}a(Fm,"importCreateParameters");function Rm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(o=>r[o]=e[n][o]||{path:o}),e[n]=r}a(Rm,"exportCreateParametersFields");function R8(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let o in i)r.indexOf(o)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[o]=i[o],delete i[o]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}a(R8,"exportVariants");function _8(e,t){t.variants&&(Object.keys(t.variants).length>0?R8(e,t):delete e.variants)}a(_8,"exportQuickVariantSelectionX");function D8(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}a(D8,"importMultiEdit");var Cm=class Cm{};a(Cm,"CreateWithFilters"),h([T({manifest:{path:t=>je(t)+"/createWithFilters"}})],Cm.prototype,"strategy",2);var zE=Cm,Il=class Il{};a(Il,"MultiEdit"),h([T({manifest:{path:t=>eo(t)+qE}})],Il.prototype,"enabled",2),h([T({manifest:{path:t=>eo(t)+qE}})],Il.prototype,"annotationPath",2),h([T({manifest:{path:t=>eo(t)+qE,export:Dg}})],Il.prototype,"ignoredFields",2);var YE=Il;function bu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}a(bu,"importType");function Ll(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}a(Ll,"exportType");function Fl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}a(Fl,"deleteType");var Im=class Im{};a(Im,"DataLoadSettings"),h([T({manifest:{path:t=>p0(t)}}),C({since:"1.75.2"})],Im.prototype,"loadDataOnAppLaunch",2);var JE=Im,Om=class Om{};a(Om,"Fields4Dialog"),h([T({manifest:{path:t=>eo(t)+"/createWithParameterDialog",export:Rm}}),C({since:"1.77.0"})],Om.prototype,"fields",2);var ZE=Om,Tu=class Tu{};a(Tu,"QuickVariantSelection"),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATH}}),C({since:"1.48.0"})],Tu.prototype,"showCounts",2),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATH}}),C({since:"1.48.0"})],Tu.prototype,"variants",2);var eb=Tu,Ol=class Ol{};a(Ol,"QuickVariantSelectionX"),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATHX}}),C({since:"1.48.0"})],Ol.prototype,"showCounts",2),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATHX}}),C({since:"1.48.0"})],Ol.prototype,"enableAutoBinding",2),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATHX,export:_8}}),C({since:"1.48.0"})],Ol.prototype,"variants",2);var tb=Ol,oi=class oi{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}})}};a(oi,"CommonTableSettings"),h([T({manifest:{key:"createWithParameterDialog",path:t=>eo(t),import:Fm}}),C({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:qt,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.50.0"})],oi.prototype,"exportType",2),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}})],oi.prototype,"fitContainer",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.70.0"})],oi.prototype,"selectAll",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.42.0"})],oi.prototype,"condensedTableLayout",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.56.0"})],oi.prototype,"enableTableFilterInPageVariant",2),h([Mt("toolBar")],oi.prototype,"toolBar",2);var ns=oi,_o=class _o extends ns{};a(_o,"ResponsiveTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Ll,delete:Fl}}),C({since:"1.50.0"})],_o.prototype,"type",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.54.0"})],_o.prototype,"createWithFilters",2),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.Table,createFlexChange:Te},generate:qn}),C({since:"1.52.0"})],_o.prototype,"popinLayout",2),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.Table,createFlexChange:Te}})],_o.prototype,"includeItemInSelection",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.77.0"})],_o.prototype,"inlineDelete",2),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.Table,createFlexChange:Te}}),C({since:"1.16.0"})],_o.prototype,"growingThreshold",2),h([T({manifest:{path:t=>eo(t),import:D8}}),C({since:"1.98.0"})],_o.prototype,"multiEdit",2);var ac=_o,Nm=class Nm extends ns{};a(Nm,"TreeTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Ll,delete:Fl}}),C({since:"1.50.0"})],Nm.prototype,"type",2);var nb=Nm,oo=class oo extends ns{};a(oo,"AnalyticalTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Ll,delete:Fl}}),C({since:"1.50.0"})],oo.prototype,"type",2),h([T({manifest:{path:t=>je(t)}})],oo.prototype,"qualifier",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.38.0"}),T({manifest:{path:t=>je(t)}})],oo.prototype,"defaultContentView",2),h([T({manifest:{path:t=>je(t)}})],oo.prototype,"defaultFilterMode",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.60.0"})],oo.prototype,"contentTitle",2),h([T({manifest:{path:t=>je(t)}})],oo.prototype,"autoHide",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.78.0"})],oo.prototype,"allFiltersAsInParameters",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.54.0"})],oo.prototype,"createWithFilters",2);var ib=oo,Do=class Do extends ns{};a(Do,"TableALP"),h([T({manifest:{path:t=>je(t),import:bu,export:Ll,delete:Fl}}),C({since:"1.50.0"})],Do.prototype,"type",2),h([T({manifest:{path:t=>je(t)}})],Do.prototype,"qualifier",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.38.0"}),T({manifest:{path:t=>je(t)}})],Do.prototype,"defaultContentView",2),h([T({manifest:{path:t=>je(t)}})],Do.prototype,"defaultFilterMode",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.60.0"})],Do.prototype,"contentTitle",2),h([T({manifest:{path:t=>je(t)}})],Do.prototype,"autoHide",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.78.0"})],Do.prototype,"allFiltersAsInParameters",2);var Nl=Do,Lm=class Lm extends Nl{};a(Lm,"ALPResponsiveTable"),h([T({flex:{controlId:ts,controlType:()=>Jn.ControlType.Table,createFlexChange:Te}}),C({since:"1.16.0"})],Lm.prototype,"growingThreshold",2);var rb=Lm,cb=class cb extends Nl{};a(cb,"ALPGridTable");var ob=cb,lb=class lb extends Nl{};a(lb,"ALPAnalyticalTable");var ab=lb,Eu=class Eu extends ns{};a(Eu,"GridTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Ll,delete:Fl}}),C({since:"1.50.0"})],Eu.prototype,"type",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.54.0"})],Eu.prototype,"createWithFilters",2);var sb=Eu;var Au=te(ce());var V8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Hi(i).replace(":2f","::")}`},"getActionButtonId"),M8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}template::${i}`},"getStandardActionButtonId"),w8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}${Kg}${i}`},"getStandardFooterActionOPButtonId"),Eb=a((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Gi(n);return`${e}action::${i}::${Hi(r)}`},"buildIntentBasedActionId"),k8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Hi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),is={controlId:V8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},Su={controlId:M8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},w0={controlId:w8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},_m={controlId:k8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},sc=class sc{};a(sc,"Action"),h([T({flex:is})],sc.prototype,"tooltip",2),h([T({flex:is})],sc.prototype,"icon",2),h([T({flex:is})],sc.prototype,"activeIcon",2),h([T({flex:is})],sc.prototype,"type",2);var fb=sc,cc=class cc{};a(cc,"ToolBarAction"),h([T({flex:is})],cc.prototype,"tooltip",2),h([T({flex:is})],cc.prototype,"icon",2),h([T({flex:is})],cc.prototype,"activeIcon",2),h([T({flex:is})],cc.prototype,"type",2);var ub=cc,lc=class lc{};a(lc,"FooterAction"),h([T({flex:_m})],lc.prototype,"tooltip",2),h([T({flex:_m})],lc.prototype,"icon",2),h([T({flex:_m})],lc.prototype,"activeIcon",2),h([T({flex:_m})],lc.prototype,"type",2);var pb=lc,Dm=class Dm{};a(Dm,"Share"),h([T({flex:Su})],Dm.prototype,"visible",2);var db=Dm,Vm=class Vm{};a(Vm,"ShareOP"),h([T({flex:Su})],Vm.prototype,"visible",2);var gb=Vm,Mm=class Mm{};a(Mm,"UpAndDownNavigationOP"),h([T({flex:Su})],Mm.prototype,"visible",2);var mb=Mm,wm=class wm{};a(wm,"SaveAndEditOP"),h([T({flex:w0,generate:gt})],wm.prototype,"visible",2);var hb=wm,km=class km{};a(km,"HeaderActionStandard"),h([T({flex:Su})],km.prototype,"visible",2);var yb=km,Um=class Um{};a(Um,"ObjectPageHeaderActionStandard"),h([T({flex:Su})],Um.prototype,"visible",2);var vb=Um,jm=class jm{};a(jm,"ObjectPageFooterActionStandard"),h([T({flex:w0})],jm.prototype,"visible",2);var Tb=jm;var Cu=te(ce());var U8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=Gi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${o}`},"buildColumnActionId"),j8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:s}=Gi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${o}`},"buildColumnIntentBasedId"),$8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),bb={controlId:U8,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},xu={controlId:$8,controlType:()=>Cu.ControlType.Button,createFlexChange:Te},k0={...bb,controlId:j8},$m={...xu,controlId:Eb},Pu=class Pu{};a(Pu,"TableColumn"),h([T({flex:{controlId:cE,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te}})],Pu.prototype,"width",2),h([T({flex:{controlId:cE,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},generate:qn})],Pu.prototype,"hAlign",2);var Ab=Pu,ua=class ua{};a(ua,"TableColumnAction"),h([T({flex:bb})],ua.prototype,"width",2),h([T({flex:bb,generate:qn})],ua.prototype,"hAlign",2),h([T({flex:xu})],ua.prototype,"tooltip",2),h([T({flex:xu})],ua.prototype,"icon",2),h([T({flex:xu})],ua.prototype,"activeIcon",2),h([T({flex:xu})],ua.prototype,"type",2);var Bm=ua,pa=class pa extends Bm{};a(pa,"TableColumnActionIntentBased"),h([T({flex:k0})],pa.prototype,"width",2),h([T({flex:k0,generate:qn})],pa.prototype,"hAlign",2),h([T({flex:$m})],pa.prototype,"tooltip",2),h([T({flex:$m})],pa.prototype,"icon",2),h([T({flex:$m})],pa.prototype,"activeIcon",2),h([T({flex:$m})],pa.prototype,"type",2);var Sb=pa,Pb=class Pb{};a(Pb,"TableCustomColumn");var xb=Pb;var Ib=class Ib{};a(Ib,"ToolBar");var Cb=Ib;var fc=te(ce());var Iu=a(e=>e+fc.PropertyName.chart,"getSmartChartControlId"),rs=class rs{};a(rs,"ChartSettings"),h([T({flex:{controlId:Iu,controlType:()=>fc.ControlType.SmartChart,createFlexChange:Te}})],rs.prototype,"showLegendButton",2),h([T({flex:{controlId:Iu,controlType:()=>fc.ControlType.SmartChart,createFlexChange:Te}})],rs.prototype,"showDownloadButton",2),h([T({flex:{controlId:Iu,controlType:()=>fc.ControlType.SmartChart,createFlexChange:Te}})],rs.prototype,"showChartTypeSelectionButton",2),h([T({flex:{controlId:Iu,controlType:()=>fc.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:Te}})],rs.prototype,"ignoredChartTypes",2),h([T({manifest:{path:t=>u0(t)}}),C({since:"1.81.0"})],rs.prototype,"showDataLabel",2);var Ob=rs;var da=class da{};a(da,"KPISettings"),h([T({manifest:{path:(t,n,i)=>ic(t,i)}})],da.prototype,"model",2),h([T({manifest:{path:(t,n,i)=>ic(t,i)}})],da.prototype,"entitySet",2),h([T({manifest:{path:(t,n,i)=>ic(t,i)}})],da.prototype,"qualifier",2),h([T({manifest:{path:(t,n,i)=>ic(t,i)}})],da.prototype,"filterable",2),h([T({manifest:{path:(t,n,i)=>ic(t,i)}})],da.prototype,"detailNavigation",2),h([T({manifest:{path:(t,n,i)=>ic(t,i)}})],da.prototype,"groupId",2);var Nb=da;var U0=te(ce());var B8=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",qt(e,n)},"getAvatarControlId"),os=class os{};a(os,"ObjectPageHeader"),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.46.0"})],os.prototype,"showRelatedApps",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.46.0"})],os.prototype,"editableHeaderContent",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.48.0"})],os.prototype,"simpleHeaderFacets",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.48.0"}),Re("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],os.prototype,"showHeaderAsCarouselOnDesktop",2),h([T({flex:{controlId:B8,controlType:()=>U0.ControlType.Avatar,createFlexChange:Te},generate:gt})],os.prototype,"displayShape",2);var Lb=os;var Hm=te(ce());var H8=a((e,t,n,i)=>{if(i()===Hm.ControlType.Button||i()===Hm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Hi(r)}`}return qt(e,t)},"getActionButtonId"),Ou={controlId:H8,controlType:()=>Hm.ControlType.HeaderAction,createFlexChange:Te},as=class as{};a(as,"ObjectPageHeaderAction"),h([T({flex:Ou,generate:gt})],as.prototype,"visible",2),h([T({flex:Ou})],as.prototype,"tooltip",2),h([T({flex:Ou})],as.prototype,"icon",2),h([T({flex:Ou})],as.prototype,"activeIcon",2),h([T({flex:Ou})],as.prototype,"type",2);var Fb=as;var Nu=te(ce());var qm="header::headerEditable::",W8=a((e,t,n,i,r)=>`${e}${qm}${r}`,"getDataPointHeaderSectionId"),G8=a((e,t,n,i,r)=>`${e}${qm}${r}::ContactAddress`,"getAddressHeaderSectionId"),K8=a((e,t,n,i,r)=>`${e}${qm}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),j0=a((e,t,n,i,r)=>{let o=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Nu.FacetTitlePrefix)?r.split(Nu.FacetTitlePrefix)[1]:o;return`${e}${qm}${s}::Form`},"getFormHeaderSectionId"),Lu={controlType:()=>Nu.ControlType.ObjectPageHeaderSection,createFlexChange:Te},Wm=class Wm{};a(Wm,"CommonHeaderFacetSettings"),h([T({flex:{...Lu,controlId:j0},generate:gt})],Wm.prototype,"visible",2);var uc=Wm,Gm=class Gm extends uc{};a(Gm,"ObjectPageHeaderSectionForm"),h([T({flex:{...Lu,controlId:j0}})],Gm.prototype,"visible",2);var Rb=Gm,Km=class Km extends uc{};a(Km,"ObjectPageHeaderSectionChart"),h([T({flex:{...Lu,controlId:K8}})],Km.prototype,"visible",2);var _b=Km,Xm=class Xm extends uc{};a(Xm,"ObjectPageHeaderSectionDataPoint"),h([T({flex:{...Lu,controlId:W8}})],Xm.prototype,"visible",2);var Db=Xm,Qm=class Qm extends uc{};a(Qm,"ObjectPageHeaderSectionAddress"),h([T({flex:{...Lu,controlId:G8}})],Qm.prototype,"visible",2);var Vb=Qm,wb=class wb{};a(wb,"HeaderSections");var Mb=wb;var Ub=te(ce());var X8=a((e,t,n,i)=>{if(i()===Ub.ControlType.Button){let{actionId:r}=Gi(n);return`${e}action::${Hi(r)}::Determining`}return qt(e,t)},"getFooterActionButtonId"),Fu={controlId:X8,controlType:()=>Ub.ControlType.Button,createFlexChange:Te},ss=class ss{};a(ss,"ObjectPageFooterAction"),h([T({flex:Fu,generate:gt})],ss.prototype,"visible",2),h([T({flex:Fu})],ss.prototype,"tooltip",2),h([T({flex:Fu})],ss.prototype,"icon",2),h([T({flex:Fu})],ss.prototype,"activeIcon",2),h([T({flex:Fu})],ss.prototype,"type",2);var kb=ss;var Ru=te(ce());var zm=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",qt(e,n)},"getControlId"),pc=class pc{};a(pc,"ObjectPageLayout"),h([T({flex:{controlId:zm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te},generate:gt})],pc.prototype,"showHeaderContent",2),h([T({flex:{controlId:zm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te}})],pc.prototype,"showAnchorBar",2),h([T({flex:{controlId:zm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te}})],pc.prototype,"useIconTabBar",2),h([T({flex:{controlId:zm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te}}),C({since:"1.34.0"})],pc.prototype,"alwaysShowContentHeader",2);var jb=pc;var $0=te(ce());var dc=class dc{};a(dc,"BaseCustomSection"),h([T({manifest:{path:fa,export:!1,import:(t,n)=>n.split("|")[2]}}),C({since:"1.52.0"})],dc.prototype,"relatedFacet",2),h([T({manifest:{path:fa,export:!1,import:(t,n)=>n.split("|")[0]}}),C({since:"1.52.0"})],dc.prototype,"relativePosition",2),h([T({manifest:{path:(t,n,i)=>fa(t,{},i,$0.ManifestSection.generic)}}),C({since:"1.52.0"})],dc.prototype,"title",2),h([T({manifest:{path:fa}}),C({since:"1.52.0"})],dc.prototype,"className",2);var Vu=dc,_u=class _u extends Vu{};a(_u,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:fa}}),C({since:"1.52.0"})],_u.prototype,"fragmentName",2),h([T({manifest:{path:fa}}),C({since:"1.52.0"})],_u.prototype,"type",2);var Mu=_u,Du=class Du extends Vu{};a(Du,"ObjectPageCustomSectionView"),h([T({manifest:{path:fa}}),C({since:"1.52.0"})],Du.prototype,"viewName",2),h([T({manifest:{path:fa}}),C({since:"1.52.0"})],Du.prototype,"type",2);var wu=Du;var Qi=te(ce());var B0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),Qi.DefinitionName.Table];return qt(e,s)},"getTableSectionControlId"),H0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return qt(e,s)},"getFormSectionControlId"),W0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return qt(e,s)},"getChartSectionControlId"),gc=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return qt(e,s)},"getSectionControlId"),G0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return qt(e,s)},"getSubSectionControlId"),K0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return qt(e,s)},"getContactSubSectionControlId"),Ym=class Ym{};a(Ym,"ObjectPageSectionV2"),h([T({flex:{controlId:gc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:gt})],Ym.prototype,"visible",2);var $b=Ym,Jm=class Jm{};a(Jm,"ObjectPageSectionFormV2"),h([T({flex:{controlId:gc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:gt})],Jm.prototype,"visible",2);var Bb=Jm,Zm=class Zm{};a(Zm,"ObjectPageSectionChartV2"),h([T({flex:{controlId:gc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:gt})],Zm.prototype,"visible",2);var Hb=Zm,eh=class eh{};a(eh,"ObjectPageSectionTableV2"),h([T({flex:{controlId:gc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:gt})],eh.prototype,"visible",2);var Wb=eh,th=class th{};a(th,"ObjectPageSectionAddressV2"),h([T({flex:{controlId:gc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:gt})],th.prototype,"visible",2);var Gb=th,nh=class nh{};a(nh,"ObjectPageSectionContactV2"),h([T({flex:{controlId:gc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:gt})],nh.prototype,"visible",2);var Kb=nh,ih=class ih{};a(ih,"ObjectPageSubSectionV2"),h([T({flex:{controlId:G0,controlType:()=>Qi.ControlType.SubSection,createFlexChange:Te},generate:gt})],ih.prototype,"visible",2);var Xb=ih,rh=class rh{};a(rh,"ObjectPageSubSectionFormV2"),h([T({flex:{controlId:H0,controlType:()=>Qi.ControlType.Group,createFlexChange:Te},generate:gt})],rh.prototype,"visible",2);var Qb=rh,oh=class oh{};a(oh,"ObjectPageSubSectionChartV2"),h([T({flex:{controlId:W0,controlType:()=>Qi.ControlType.SmartChart,createFlexChange:Te},generate:gt})],oh.prototype,"visible",2);var qb=oh,ah=class ah{};a(ah,"ObjectPageSubSectionContactV2"),h([T({flex:{controlId:K0,controlType:()=>Qi.ControlType.SubSection,createFlexChange:Te},generate:gt})],ah.prototype,"visible",2);var zb=ah,sh=class sh{};a(sh,"ObjectPageSubSectionTableV2"),h([T({flex:{controlId:B0,controlType:()=>Qi.ControlType.SmartTable,createFlexChange:Te},generate:gt})],sh.prototype,"visible",2);var Yb=sh;var ch=class ch{};a(ch,"ObjectPageChart"),h([T({manifest:{path:d0}}),C({since:"1.78.0"})],ch.prototype,"variantManagement",2);var Jb=ch,lh=class lh{};a(lh,"GlobalChartSettings"),h([T({manifest:{path:t=>Ci(t)+"/chartSettings"}}),C({since:"1.78.0"})],lh.prototype,"variantManagement",2);var Zb=lh;var pr=te(ce());var mc=a((e,t,n,i,r)=>{let o=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=pr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),o.push(s),o[0]=Qn(o[0],r),qt(e,o)},"getSmartTableControlId"),ku=class ku{};a(ku,"QuickVariantSelectionOP"),h([T({manifest:{path:(t,n,i)=>to(t,n,i)+pr.QUICKVARPATH}}),C({since:"1.48.0"})],ku.prototype,"showCounts",2),h([T({manifest:{path:(t,n,i)=>to(t,n,i)+pr.QUICKVARPATH}}),C({since:"1.48.0"})],ku.prototype,"variants",2);var eA=ku,fh=class fh{};a(fh,"Fields4DialogOP"),h([T({manifest:{path:(t,n,i)=>Vr(t,n,i)+"/createWithParameterDialog",export:Rm}}),C({since:"1.77.0"})],fh.prototype,"fields",2);var tA=fh,vi=class vi{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};a(vi,"CommonTableSettingsForSections"),h([T({manifest:{key:"createWithParameterDialog",path:Vr,import:Fm}}),C({since:"1.77.0"})],vi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.28.0"})],vi.prototype,"editable",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.95.0"}),Re("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],vi.prototype,"showPasteButton",2),h([T({manifest:{path:Vr}}),C({since:"1.54.0"})],vi.prototype,"multiSelect",2),h([T({manifest:{path:Vr}}),C({since:"1.70.0"})],vi.prototype,"selectAll",2),h([T({manifest:{path:Vr}}),C({since:"1.70.0"})],vi.prototype,"selectionLimit",2),h([T({manifest:{path:to}}),C({since:"1.63.0"})],vi.prototype,"quickVariantSelection",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.26.0"})],vi.prototype,"useExportToExcel",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.50.0"})],vi.prototype,"exportType",2),h([T({manifest:{path:to}}),C({since:"1.48.5"}),Re("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],vi.prototype,"createMode",2),h([T({manifest:{path:to}}),C({since:"1.61.0"})],vi.prototype,"disableDefaultInlineCreateSort",2),h([T({manifest:{path:Vr}}),C({since:"1.78.0"})],vi.prototype,"variantManagement",2),h([Mt("toolBar")],vi.prototype,"toolBar",2);var hc=vi,cs=class cs extends hc{};a(cs,"ObjectPageResponsiveTable"),h([T({manifest:{path:Vr}})],cs.prototype,"type",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.Table,createFlexChange:Te}})],cs.prototype,"includeItemInSelection",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.Table,createFlexChange:Te},generate:gt}),C({since:"1.52.0"})],cs.prototype,"popinLayout",2),h([T({manifest:{path:Vr}}),C({since:"1.77.0"})],cs.prototype,"inlineDelete",2),h([T({flex:{controlId:mc,controlType:()=>pr.ControlType.Table,createFlexChange:Te}}),C({since:"1.16.0"})],cs.prototype,"growingThreshold",2);var yc=cs,Uu=class Uu extends hc{};a(Uu,"ObjectPageAnalyticalTable"),h([T({manifest:{path:Vr}})],Uu.prototype,"type",2),h([T({manifest:{path:to}}),C({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var nA=Uu,ju=class ju extends hc{};a(ju,"ObjectPageGridTable"),h([T({manifest:{path:Vr}})],ju.prototype,"type",2),h([T({manifest:{path:to}}),C({since:"1.67.0"})],ju.prototype,"condensedTableLayout",2);var iA=ju,$u=class $u extends hc{};a($u,"ObjectPageTreeTable"),h([T({manifest:{path:Vr}})],$u.prototype,"type",2),h([T({manifest:{path:to}}),C({since:"1.67.0"})],$u.prototype,"condensedTableLayout",2);var rA=$u,ga=class ga{};a(ga,"GlobalTableSettings"),h([T({manifest:{path:rc}}),C({since:"1.70.0"})],ga.prototype,"selectAll",2),h([T({manifest:{path:rc}}),C({since:"1.78.0"})],ga.prototype,"variantManagement",2),h([T({manifest:{path:rc}})],ga.prototype,"type",2),h([T({manifest:{path:rc}}),C({since:"1.54.0"})],ga.prototype,"multiSelect",2),h([T({manifest:{path:rc}}),C({since:"1.67.0"})],ga.prototype,"condensedTableLayout",2),h([T({manifest:{path:rc}}),C({since:"1.77.0"})],ga.prototype,"inlineDelete",2);var oA=ga;var X0=te(ce());var Q8=a((e,t,n,i,r)=>{let{actionId:o}=Gi(n),s=Qn(n[1],r);return`${e}${s}::action::${Hi(o).replace(":2f","::")}`},"getActionButtonId"),Bu={controlId:Q8,controlType:()=>X0.ControlType.Button,createFlexChange:Te},ls=class ls{};a(ls,"ObjectPageToolBarAction"),h([T({flex:Bu,generate:gt})],ls.prototype,"visible",2),h([T({flex:Bu})],ls.prototype,"tooltip",2),h([T({flex:Bu})],ls.prototype,"icon",2),h([T({flex:Bu})],ls.prototype,"activeIcon",2),h([T({flex:Bu})],ls.prototype,"type",2);var aA=ls;function fs(e){return e.replace("/","::")}a(fs,"convertActionKey");function cA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}a(cA,"convertSelector");function q8(e,t,n,i){var o,s,l,u;(((s=(o=i.definitions)==null?void 0:o.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}a(q8,"addSmartFilterBarFlex");function z8(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let o=Hi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=o.indexOf(":::");if(o.startsWith("DataField")&&s>-1){let u=o.split(":::"),p=u.find(v=>v.startsWith("sSemanticObject")),g=u.find(v=>v.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,A)}else i.set(m,r),i.set(r,o)}else i.set(o.replace(":2f","::"),r),i.set(r,o)}),i}a(z8,"filterActions");function Y8(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}a(Y8,"addColumnActionConfigPart");function J8(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}a(J8,"getActionId");function Z8(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=z8(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&Y8(s,e,m);let v=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}a(Z8,"addActionFlex");function eK(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[Ge.PropertyName.chart],t);(o=s==null?void 0:s.flex)!=null&&o.importFlexValue?s.flex.importFlexValue(n,e[Ge.PropertyName.chart],t):e[Ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}a(eK,"addSmartChartFlex");function tK(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===Ge.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Ge.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===Ge.ControlType.TableColumn)&&fm(e.table,i,n)}a(tK,"addAdditionalFlexChanges");function uh(e,t,n,i){var r,o;try{let s=Ba(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(Ge.PageTypeV2.ListReport)||(o=s.controlId)!=null&&o.includes(Ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=cA(s.controlId),s.controlType){case Ge.ControlType.SmartFilterBar:{q8(e,l,s,n);break}case Ge.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ge.ControlType.Button:{let u=J8(s);u&&Z8(e,l,s,n,u);break}case Ge.ControlType.SmartChart:{eK(e,l,s,n);break}default:{tK(e,s,n);break}}}catch(s){oe(i,{severity:Ge.LogSeverity.Error,message:J.t("FLEXERROR")},...s)}}a(uh,"addFlex");function nK(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}a(nK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,o){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,o);s=Bn(t,g),pl(p,s,u,e),$g(l,s,g,r)}nK(u,e)}}a(Dn,"transferSettingsOfObject");function ph(e,t){var r,o,s,l,u,p,g,m,v;let n=e[Ge.ManifestSection.generic].pages[t],i=Ge.v2.TableTypeV2.ResponsiveTable;return(r=e[Ge.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(o=e[Ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:o.tableSettings)!=null&&s.type||(l=e[Ge.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ge.v2.TableTypeV2.AnalyticalTable),i}a(ph,"determineTableType");function Q0(e,t,n,i,r,o,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:o};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}a(Q0,"evaluateFragmentColumn");function iK(e,t,n,i){let r;if(e===Ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let o of Object.keys(t)){let[s,l,u]=o.split("|");s===Ge.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[o].fragmentName)}return r}a(iK,"determineCellsFragmentName");function rK(e,t,n,i,r,o,s){var l;if(e[0]){let p=JSON.parse((0,q0.xml2json)(e[0].fileContent,{compact:!0}))[Ro],g=vu(p);if(g)if((l=t[Ge.PropertyName.table])!=null&&l.columns||(t[Ge.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)Q0(m,n,i,r,t,o,s);else Q0(g,n,i,r,t,o,s)}}a(rK,"analyzeFilteredFragments");function oK(e,t,n,i,r){for(let o of Object.keys(e)){let s=o.split("|"),[l,u]=s,p=s[2],g=Ge.ViewTemplateType[l];if(g&&"|"+u===t){let m=e[o].type?e[o].type.toLowerCase():"xml",v=e[o].fragmentName;if(!v)continue;let A=iK(g,e,u,p),E=v.split(".");v=E[E.length-1]+Ge.FRAGMENTNAMEPART+m;let O=r.filter(R=>R.dataSourceUri.endsWith(v));rK(O,i,e,o,p,g,A)}}}a(oK,"processViewExtensions");function Rl(e,t,n,i,r,o){if(!r)return;let s="|"+(o&&o.target?o.target:n.entitySet);if(t[Ge.ManifestSection.ui5]&&t[Ge.ManifestSection.ui5].extends&&t[Ge.ManifestSection.ui5].extends.extensions&&t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;oK(u,s,o,e,r)}}a(Rl,"addFragments");function dh(e,t,n){if(e.header={actions:{}},n[Ge.DefinitionName.HeaderActionsStandard]){let i=n[Ge.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(Ge.PageTypeV2.ListReport,r,{})}}a(dh,"importHeaderActions");var Kt=te(ce());var Y0=te(ce());var lA={};Gs(lA,{ANNOERR:()=>PK,ANNOTATIONFILE:()=>CK,COMPONENTNOTDEFINED:()=>IK,CONTEXTPATHCOULDNOTBERESOLVED:()=>bK,ENTITYSETNOTFOUND:()=>EK,FLEXERROR:()=>wK,INVALIDANCHOR:()=>kK,INVALIDEXTENSION:()=>UK,INVALIDTARGETDEFINITION:()=>$K,MACROS_ANNOTATION_ERROR:()=>WK,NOALP:()=>SK,NOANNOTATIONFORPATH:()=>vK,NOBASEPATH:()=>cK,NOCHARTS:()=>FK,NOENTITYSET:()=>dK,NOENTITYTYPE4SET:()=>gK,NOFE:()=>fK,NOFRAGMENT:()=>jK,NOGENERICSCHEMA:()=>uK,NOID4SECTION:()=>BK,NOLINEITEMANDCHARTS:()=>RK,NOLINEITEMFORPATH:()=>TK,NOLINEITEMS:()=>LK,NOLR:()=>AK,NOPAGEFORENTITYSET:()=>pK,NOPAGES:()=>lK,NOPRESENTATIONVARIANT:()=>mK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>hK,NOPRESENTATIONVARIANTFORSPV:()=>yK,NOROUTING:()=>OK,NOROUTINGID:()=>MK,NOTARGET:()=>VK,NOTARGETS:()=>DK,NOTEMPLATE:()=>xK,NOUIANNOTATIONS:()=>NK,NOVISUALIZATIONS:()=>_K,TYPEERROR:()=>GK,UNKNOWNMINUI5VERSION:()=>sK,WRONGMINUI5VERSION:()=>aK,XMLPARSEFAILURE:()=>HK,default:()=>KK});var aK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",sK="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",cK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",lK="No pages found in manifest for app with id '{{- appId}}'",fK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",uK="No generic schema found while generating page schema for {{- pageType}}",pK="No page found in manifest for entitySet '{{- entitySet}}'",dK="No entitySet defined for page '{{- pageName}}'",gK="No entityType could be found for the given entity set '{{- entitySetName}}'",mK="No PresentationVariant defined for '{{- key}}'",hK="No PresentationVariant found for default SelectionPresentationVariant",yK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",vK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",TK="No line item annotation found for path '{{- annotationPath}}'",EK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",bK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",AK="No page found in manifest for list report",SK="No page found in manifest for analytical list page",xK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",PK="Error while parsing annotation files",CK="Annotation file: '{{- file}}'",IK="Component name is not defined for page '{{- pageName}}'",OK="Incomplete manifest definition: no routing defined",NK="No UI Annotation defined for entity type '{{- entityType }}'",LK="UI.LineItem annotation has not been defined",FK="UI.Chart annotation has not been defined",RK="Neither UI.LineItem nor UI.Chart annotation has been defined",_K="Empty Collection for Visualizations",DK="Incomplete manifest definition: no targets defined",VK="Invalid reference: annotation target '{{- target}}' not found",MK="No page found in manifest for routingId '{{- routingId}}'",wK="Error while parsing flex change",kK="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",UK="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",jK="fragmentName is undefined for columnKey '{{- columnKey}}'",$K="Invalid routing target definition in manifest: '{{- target}}'",BK="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",HK="Parsing of XML file failed with error - {{- error}}",WK="Error during resolving annotation for '{{- control}}'",GK="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",KK={WRONGMINUI5VERSION:aK,UNKNOWNMINUI5VERSION:sK,NOBASEPATH:cK,NOPAGES:lK,NOFE:fK,NOGENERICSCHEMA:uK,NOPAGEFORENTITYSET:pK,NOENTITYSET:dK,NOENTITYTYPE4SET:gK,NOPRESENTATIONVARIANT:mK,NOPRESENTATIONVARIANTFORDEFAULTSPV:hK,NOPRESENTATIONVARIANTFORSPV:yK,NOANNOTATIONFORPATH:vK,NOLINEITEMFORPATH:TK,ENTITYSETNOTFOUND:EK,CONTEXTPATHCOULDNOTBERESOLVED:bK,NOLR:AK,NOALP:SK,NOTEMPLATE:xK,ANNOERR:PK,ANNOTATIONFILE:CK,COMPONENTNOTDEFINED:IK,NOROUTING:OK,NOUIANNOTATIONS:NK,NOLINEITEMS:LK,NOCHARTS:FK,NOLINEITEMANDCHARTS:RK,NOVISUALIZATIONS:_K,NOTARGETS:DK,NOTARGET:VK,NOROUTINGID:MK,FLEXERROR:wK,INVALIDANCHOR:kK,INVALIDEXTENSION:UK,NOFRAGMENT:jK,INVALIDTARGETDEFINITION:$K,NOID4SECTION:BK,XMLPARSEFAILURE:HK,MACROS_ANNOTATION_ERROR:WK,TYPEERROR:GK};function z0(e){e.addResourceBundle(e.language,"translation",lA)}a(z0,"initI18n");function en(e="en"){J.init({resources:{en:{translation:Y0.default}},lng:e,fallbackLng:"en",joinArrays:`
292
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var bm=require("path");var Fo="core:FragmentDefinition",Em="sap.ui.table",XE=new Map([[Tt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Tt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Em,name:"Column"}],[Tt.ViewTemplateType.GridTableColumnsExtension,{namespace:Em,name:"Column"}],[Tt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Em,name:"AnalyticalColumn"}]]),b8=new Map([[Tt.v2.FE_TEMPLATE_V2_LIST_REPORT,Tt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Tt.v2.FE_TEMPLATE_V2_ALP,Tt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Tt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Tt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),U0={type:"element",name:"Text",attributes:{text:"Placeholder"}},A8=JSON.stringify(U0);function S8(e,t){let n=t?e[Fo]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let o=i.get(n[r]);i.set(n[r],o?[...o,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}a(S8,"getFragmentNamespaces");function k0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}a(k0,"getTagName");function Am(e,t,n=e){let i=S8(n,!!(t||n!==e));if(t){let r=XE.get(t);return k0(r,i.get(r.namespace))}else{let r=XE.keys();for(let o of r){let s=XE.get(o),l=i?k0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}a(Am,"getTagNameFromFragmentJSON");function vu(e,t=e){let n=Am(e,void 0,t);return e[n]}a(vu,"getRootCustomColumnFromFragmentJSON");function x8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let o=e[t][r];!n.includes(r)&&o!==void 0&&o.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${o.toString()}"`)}return i+="}",i}a(x8,"addP13nData");function j0(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,o=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===o.columnKey);return s<0?!1:(n=!0,r=x8(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}a(j0,"handleFragmentColumn");function P8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),o=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Tt.FRAGMENTNAMEPART+o;for(let u of t){let p=u.dataSourceUri.split(bm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ro.xml2json)(u.fileContent,{compact:!0})),m=Am(g[Fo]);m&&(delete g[Fo][m],u.fileContent=(0,ro.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}));break}}}a(P8,"deleteColumnsFromFragment");function $0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===A8&&(e.splice(n,1),t-=1,t===0));n++);}a($0,"deleteNumberOfCells");function C8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Tt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(o)){let l=JSON.parse((0,ro.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&$0(l.elements[0].elements,u.length),s.fileContent=(0,ro.json2xml)(JSON.stringify(l),{spaces:4});break}}a(C8,"deleteCellsFromFragment");function Sm(e,t,n,i){if(i){P8(e,i,t,n);let r=t.replace(Tt.ViewTemplateType.ResponsiveTableColumnsExtension,Tt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&C8(o,i,n)}}a(Sm,"deleteColumnFromFragment");function I8(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(U0)}a(I8,"addNewColumnsInFragment");function O8(e,t){let n=JSON.parse((0,ro.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)I8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,o=n.elements[0].elements;$0(o,r)}e.fileContent=(0,ro.json2xml)(JSON.stringify(n),{spaces:4})}}a(O8,"updateNonEmptyCellsFragment");function N8(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(bm.sep);if(o[o.length-1]===t){i=!0,r.changeIndicator=Tt.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=KE(n):O8(r,n);break}}return i}a(N8,"updateCellsFragment");function L8(e,t,n,i,r){var g;let o,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){ae(r,{severity:Tt.LogSeverity.Error,message:J.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Tt.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,o=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,bm.sep))+Tt.FRAGMENTNAMEPART+p}if(e.indexOf(Tt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Tt.ChangeIndicator.Updated;let m=e.replace(Tt.ViewTemplateType.ResponsiveTableColumnsExtension,Tt.ViewTemplateType.ResponsiveTableCellsExtension),v=Bn(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):m0(l,m)}return{manifestSection:u,lsFilePath:o,cellsFragmentName:s,fragmentType:p}}a(L8,"exportCustomColumnsToManifest");function F8(e,t,n,i,r){let o=WE(e,t);if(o){let s=JSON.parse((0,ro.xml2json)(o,{compact:!0})),l=vu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}a(F8,"insertNewColumnInFragment");function R8(e,t){let n=[];for(let i=0;i<e.length;i++)j0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}a(R8,"processCustomColumnInArray");function _8(e,t,n){if(e){if(Array.isArray(e))R8(e,t);else if(!j0(e,t)){let r=Am(n[Fo]);r&&(delete n[Fo][r],e=void 0)}}return e}a(_8,"maintainExistingColumnInFragment");function D8(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let s=e.indexOf(o);n=F8(o,i,n,r,s)}return n}a(D8,"insertNewColumnsInFragment");function V8(e,t,n,i,r){let o=!1;if(!e)return o;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(o=!0,s.changeIndicator=Tt.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=GE(i,r);else{let u=JSON.parse((0,ro.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=vu(u[Fo]),l=_8(l,i,u),l=D8(i,n,l,r,u);let g=Am(u,r);u[Fo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ro.json2xml)(m,{compact:!0,spaces:4}))}break}return o}a(V8,"updateColumnsInFragment");function QE(e,t,n,i,r,o){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=L8(t,e,n,i,o),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),E=A.split(".");v=E[E.length-1]+Tt.FRAGMENTNAMEPART+g;let R=p==null?void 0:p.split("."),U=R?R[R.length-1]:null,H=U?U+Tt.FRAGMENTNAMEPART+g:null,W=V8(s,v,A,m,r),ie=!1;if(p?ie=N8(s,H,n):ie=!0,!W){let Z={fileContent:GE(m,r),dataSourceUri:u,changeIndicator:Tt.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ie){let Z={fileContent:KE(n),dataSourceUri:u.replace(v,H),changeIndicator:Tt.ChangeIndicator.Deleted};e.fragments.push(Z)}}a(QE,"exportCustomColumnsToFragment");var xm=a((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=b8.get((u=e.component)==null?void 0:u.name);if(!i){let v=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let o=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:o}},"getCustomColumnPath");var Jn=te(le());var qE="/multiEdit",Za=a((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Jn.PropertyName.table:qt(e,t),"getSmartTableControlId");function Lm(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}a(Lm,"importCreateParameters");function Fm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(o=>r[o]=e[n][o]||{path:o}),e[n]=r}a(Fm,"exportCreateParametersFields");function M8(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let o in i)r.indexOf(o)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[o]=i[o],delete i[o]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}a(M8,"exportVariants");function w8(e,t){t.variants&&(Object.keys(t.variants).length>0?M8(e,t):delete e.variants)}a(w8,"exportQuickVariantSelectionX");function k8(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}a(k8,"importMultiEdit");var Pm=class Pm{};a(Pm,"CreateWithFilters"),h([T({manifest:{path:t=>je(t)+"/createWithFilters"}})],Pm.prototype,"strategy",2);var zE=Pm,xl=class xl{};a(xl,"MultiEdit"),h([T({manifest:{path:t=>eo(t)+qE}})],xl.prototype,"enabled",2),h([T({manifest:{path:t=>eo(t)+qE}})],xl.prototype,"annotationPath",2),h([T({manifest:{path:t=>eo(t)+qE,export:Dg}})],xl.prototype,"ignoredFields",2);var YE=xl;function bu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}a(bu,"importType");function Il(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}a(Il,"exportType");function Ol(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}a(Ol,"deleteType");var Cm=class Cm{};a(Cm,"DataLoadSettings"),h([T({manifest:{path:t=>y0(t)}}),C({since:"1.75.2"})],Cm.prototype,"loadDataOnAppLaunch",2);var JE=Cm,Im=class Im{};a(Im,"Fields4Dialog"),h([T({manifest:{path:t=>eo(t)+"/createWithParameterDialog",export:Fm}}),C({since:"1.77.0"})],Im.prototype,"fields",2);var ZE=Im,Tu=class Tu{};a(Tu,"QuickVariantSelection"),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATH}}),C({since:"1.48.0"})],Tu.prototype,"showCounts",2),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATH}}),C({since:"1.48.0"})],Tu.prototype,"variants",2);var eb=Tu,Pl=class Pl{};a(Pl,"QuickVariantSelectionX"),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATHX}}),C({since:"1.48.0"})],Pl.prototype,"showCounts",2),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATHX}}),C({since:"1.48.0"})],Pl.prototype,"enableAutoBinding",2),h([T({manifest:{path:t=>je(t)+Jn.QUICKVARPATHX,export:w8}}),C({since:"1.48.0"})],Pl.prototype,"variants",2);var tb=Pl,oi=class oi{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}})}};a(oi,"CommonTableSettings"),h([T({manifest:{key:"createWithParameterDialog",path:t=>eo(t),import:Lm}}),C({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:qt,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.50.0"})],oi.prototype,"exportType",2),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.SmartTable,createFlexChange:Te}})],oi.prototype,"fitContainer",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.70.0"})],oi.prototype,"selectAll",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.42.0"})],oi.prototype,"condensedTableLayout",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.56.0"})],oi.prototype,"enableTableFilterInPageVariant",2),h([Mt("toolBar")],oi.prototype,"toolBar",2);var es=oi,Ro=class Ro extends es{};a(Ro,"ResponsiveTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Il,delete:Ol}}),C({since:"1.50.0"})],Ro.prototype,"type",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.54.0"})],Ro.prototype,"createWithFilters",2),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.Table,createFlexChange:Te},generate:qn}),C({since:"1.52.0"})],Ro.prototype,"popinLayout",2),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.Table,createFlexChange:Te}})],Ro.prototype,"includeItemInSelection",2),h([T({manifest:{path:t=>eo(t)}}),C({since:"1.77.0"})],Ro.prototype,"inlineDelete",2),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.Table,createFlexChange:Te}}),C({since:"1.16.0"})],Ro.prototype,"growingThreshold",2),h([T({manifest:{path:t=>eo(t),import:k8}}),C({since:"1.98.0"})],Ro.prototype,"multiEdit",2);var rc=Ro,Om=class Om extends es{};a(Om,"TreeTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Il,delete:Ol}}),C({since:"1.50.0"})],Om.prototype,"type",2);var nb=Om,oo=class oo extends es{};a(oo,"AnalyticalTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Il,delete:Ol}}),C({since:"1.50.0"})],oo.prototype,"type",2),h([T({manifest:{path:t=>je(t)}})],oo.prototype,"qualifier",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.38.0"}),T({manifest:{path:t=>je(t)}})],oo.prototype,"defaultContentView",2),h([T({manifest:{path:t=>je(t)}})],oo.prototype,"defaultFilterMode",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.60.0"})],oo.prototype,"contentTitle",2),h([T({manifest:{path:t=>je(t)}})],oo.prototype,"autoHide",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.78.0"})],oo.prototype,"allFiltersAsInParameters",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.54.0"})],oo.prototype,"createWithFilters",2);var ib=oo,_o=class _o extends es{};a(_o,"TableALP"),h([T({manifest:{path:t=>je(t),import:bu,export:Il,delete:Ol}}),C({since:"1.50.0"})],_o.prototype,"type",2),h([T({manifest:{path:t=>je(t)}})],_o.prototype,"qualifier",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.38.0"}),T({manifest:{path:t=>je(t)}})],_o.prototype,"defaultContentView",2),h([T({manifest:{path:t=>je(t)}})],_o.prototype,"defaultFilterMode",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.60.0"})],_o.prototype,"contentTitle",2),h([T({manifest:{path:t=>je(t)}})],_o.prototype,"autoHide",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.78.0"})],_o.prototype,"allFiltersAsInParameters",2);var Cl=_o,Nm=class Nm extends Cl{};a(Nm,"ALPResponsiveTable"),h([T({flex:{controlId:Za,controlType:()=>Jn.ControlType.Table,createFlexChange:Te}}),C({since:"1.16.0"})],Nm.prototype,"growingThreshold",2);var rb=Nm,cb=class cb extends Cl{};a(cb,"ALPGridTable");var ob=cb,lb=class lb extends Cl{};a(lb,"ALPAnalyticalTable");var ab=lb,Eu=class Eu extends es{};a(Eu,"GridTable"),h([T({manifest:{path:t=>je(t),import:bu,export:Il,delete:Ol}}),C({since:"1.50.0"})],Eu.prototype,"type",2),h([T({manifest:{path:t=>je(t)}}),C({since:"1.54.0"})],Eu.prototype,"createWithFilters",2);var sb=Eu;var Au=te(le());var U8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Hi(i).replace(":2f","::")}`},"getActionButtonId"),j8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}template::${i}`},"getStandardActionButtonId"),$8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}${Kg}${i}`},"getStandardFooterActionOPButtonId"),Eb=a((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Gi(n);return`${e}action::${i}::${Hi(r)}`},"buildIntentBasedActionId"),B8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Hi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ts={controlId:U8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},Su={controlId:j8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},B0={controlId:$8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},Rm={controlId:B8,controlType:()=>Au.ControlType.Button,createFlexChange:Te},oc=class oc{};a(oc,"Action"),h([T({flex:ts})],oc.prototype,"tooltip",2),h([T({flex:ts})],oc.prototype,"icon",2),h([T({flex:ts})],oc.prototype,"activeIcon",2),h([T({flex:ts})],oc.prototype,"type",2);var fb=oc,ac=class ac{};a(ac,"ToolBarAction"),h([T({flex:ts})],ac.prototype,"tooltip",2),h([T({flex:ts})],ac.prototype,"icon",2),h([T({flex:ts})],ac.prototype,"activeIcon",2),h([T({flex:ts})],ac.prototype,"type",2);var ub=ac,sc=class sc{};a(sc,"FooterAction"),h([T({flex:Rm})],sc.prototype,"tooltip",2),h([T({flex:Rm})],sc.prototype,"icon",2),h([T({flex:Rm})],sc.prototype,"activeIcon",2),h([T({flex:Rm})],sc.prototype,"type",2);var pb=sc,_m=class _m{};a(_m,"Share"),h([T({flex:Su})],_m.prototype,"visible",2);var db=_m,Dm=class Dm{};a(Dm,"ShareOP"),h([T({flex:Su})],Dm.prototype,"visible",2);var gb=Dm,Vm=class Vm{};a(Vm,"UpAndDownNavigationOP"),h([T({flex:Su})],Vm.prototype,"visible",2);var mb=Vm,Mm=class Mm{};a(Mm,"SaveAndEditOP"),h([T({flex:B0,generate:mt})],Mm.prototype,"visible",2);var hb=Mm,wm=class wm{};a(wm,"HeaderActionStandard"),h([T({flex:Su})],wm.prototype,"visible",2);var yb=wm,km=class km{};a(km,"ObjectPageHeaderActionStandard"),h([T({flex:Su})],km.prototype,"visible",2);var vb=km,Um=class Um{};a(Um,"ObjectPageFooterActionStandard"),h([T({flex:B0})],Um.prototype,"visible",2);var Tb=Um;var Cu=te(le());var H8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=Gi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${o}`},"buildColumnActionId"),W8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:s}=Gi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${o}`},"buildColumnIntentBasedId"),G8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),bb={controlId:H8,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},xu={controlId:G8,controlType:()=>Cu.ControlType.Button,createFlexChange:Te},H0={...bb,controlId:W8},jm={...xu,controlId:Eb},Pu=class Pu{};a(Pu,"TableColumn"),h([T({flex:{controlId:cE,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te}})],Pu.prototype,"width",2),h([T({flex:{controlId:cE,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},generate:qn})],Pu.prototype,"hAlign",2);var Ab=Pu,fa=class fa{};a(fa,"TableColumnAction"),h([T({flex:bb})],fa.prototype,"width",2),h([T({flex:bb,generate:qn})],fa.prototype,"hAlign",2),h([T({flex:xu})],fa.prototype,"tooltip",2),h([T({flex:xu})],fa.prototype,"icon",2),h([T({flex:xu})],fa.prototype,"activeIcon",2),h([T({flex:xu})],fa.prototype,"type",2);var $m=fa,ua=class ua extends $m{};a(ua,"TableColumnActionIntentBased"),h([T({flex:H0})],ua.prototype,"width",2),h([T({flex:H0,generate:qn})],ua.prototype,"hAlign",2),h([T({flex:jm})],ua.prototype,"tooltip",2),h([T({flex:jm})],ua.prototype,"icon",2),h([T({flex:jm})],ua.prototype,"activeIcon",2),h([T({flex:jm})],ua.prototype,"type",2);var Sb=ua,Pb=class Pb{};a(Pb,"TableCustomColumn");var xb=Pb;var Ib=class Ib{};a(Ib,"ToolBar");var Cb=Ib;var cc=te(le());var Iu=a(e=>e+cc.PropertyName.chart,"getSmartChartControlId"),ns=class ns{};a(ns,"ChartSettings"),h([T({flex:{controlId:Iu,controlType:()=>cc.ControlType.SmartChart,createFlexChange:Te}})],ns.prototype,"showLegendButton",2),h([T({flex:{controlId:Iu,controlType:()=>cc.ControlType.SmartChart,createFlexChange:Te}})],ns.prototype,"showDownloadButton",2),h([T({flex:{controlId:Iu,controlType:()=>cc.ControlType.SmartChart,createFlexChange:Te}})],ns.prototype,"showChartTypeSelectionButton",2),h([T({flex:{controlId:Iu,controlType:()=>cc.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:Te}})],ns.prototype,"ignoredChartTypes",2),h([T({manifest:{path:t=>h0(t)}}),C({since:"1.81.0"})],ns.prototype,"showDataLabel",2);var Ob=ns;var pa=class pa{};a(pa,"KPISettings"),h([T({manifest:{path:(t,n,i)=>tc(t,i)}})],pa.prototype,"model",2),h([T({manifest:{path:(t,n,i)=>tc(t,i)}})],pa.prototype,"entitySet",2),h([T({manifest:{path:(t,n,i)=>tc(t,i)}})],pa.prototype,"qualifier",2),h([T({manifest:{path:(t,n,i)=>tc(t,i)}})],pa.prototype,"filterable",2),h([T({manifest:{path:(t,n,i)=>tc(t,i)}})],pa.prototype,"detailNavigation",2),h([T({manifest:{path:(t,n,i)=>tc(t,i)}})],pa.prototype,"groupId",2);var Nb=pa;var W0=te(le());var K8=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",qt(e,n)},"getAvatarControlId"),is=class is{};a(is,"ObjectPageHeader"),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.46.0"})],is.prototype,"showRelatedApps",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.46.0"})],is.prototype,"editableHeaderContent",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.48.0"})],is.prototype,"simpleHeaderFacets",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.48.0"}),Fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],is.prototype,"showHeaderAsCarouselOnDesktop",2),h([T({flex:{controlId:K8,controlType:()=>W0.ControlType.Avatar,createFlexChange:Te},generate:mt})],is.prototype,"displayShape",2);var Lb=is;var Bm=te(le());var X8=a((e,t,n,i)=>{if(i()===Bm.ControlType.Button||i()===Bm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Hi(r)}`}return qt(e,t)},"getActionButtonId"),Ou={controlId:X8,controlType:()=>Bm.ControlType.HeaderAction,createFlexChange:Te},rs=class rs{};a(rs,"ObjectPageHeaderAction"),h([T({flex:Ou,generate:mt})],rs.prototype,"visible",2),h([T({flex:Ou})],rs.prototype,"tooltip",2),h([T({flex:Ou})],rs.prototype,"icon",2),h([T({flex:Ou})],rs.prototype,"activeIcon",2),h([T({flex:Ou})],rs.prototype,"type",2);var Fb=rs;var Nu=te(le());var Qm="header::headerEditable::",Q8=a((e,t,n,i,r)=>`${e}${Qm}${r}`,"getDataPointHeaderSectionId"),q8=a((e,t,n,i,r)=>`${e}${Qm}${r}::ContactAddress`,"getAddressHeaderSectionId"),z8=a((e,t,n,i,r)=>`${e}${Qm}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),G0=a((e,t,n,i,r)=>{let o=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Nu.FacetTitlePrefix)?r.split(Nu.FacetTitlePrefix)[1]:o;return`${e}${Qm}${s}::Form`},"getFormHeaderSectionId"),Lu={controlType:()=>Nu.ControlType.ObjectPageHeaderSection,createFlexChange:Te},Hm=class Hm{};a(Hm,"CommonHeaderFacetSettings"),h([T({flex:{...Lu,controlId:G0},generate:mt})],Hm.prototype,"visible",2);var lc=Hm,Wm=class Wm extends lc{};a(Wm,"ObjectPageHeaderSectionForm"),h([T({flex:{...Lu,controlId:G0}})],Wm.prototype,"visible",2);var Rb=Wm,Gm=class Gm extends lc{};a(Gm,"ObjectPageHeaderSectionChart"),h([T({flex:{...Lu,controlId:z8}})],Gm.prototype,"visible",2);var _b=Gm,Km=class Km extends lc{};a(Km,"ObjectPageHeaderSectionDataPoint"),h([T({flex:{...Lu,controlId:Q8}})],Km.prototype,"visible",2);var Db=Km,Xm=class Xm extends lc{};a(Xm,"ObjectPageHeaderSectionAddress"),h([T({flex:{...Lu,controlId:q8}})],Xm.prototype,"visible",2);var Vb=Xm,wb=class wb{};a(wb,"HeaderSections");var Mb=wb;var Ub=te(le());var Y8=a((e,t,n,i)=>{if(i()===Ub.ControlType.Button){let{actionId:r}=Gi(n);return`${e}action::${Hi(r)}::Determining`}return qt(e,t)},"getFooterActionButtonId"),Fu={controlId:Y8,controlType:()=>Ub.ControlType.Button,createFlexChange:Te},os=class os{};a(os,"ObjectPageFooterAction"),h([T({flex:Fu,generate:mt})],os.prototype,"visible",2),h([T({flex:Fu})],os.prototype,"tooltip",2),h([T({flex:Fu})],os.prototype,"icon",2),h([T({flex:Fu})],os.prototype,"activeIcon",2),h([T({flex:Fu})],os.prototype,"type",2);var kb=os;var Ru=te(le());var qm=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",qt(e,n)},"getControlId"),fc=class fc{};a(fc,"ObjectPageLayout"),h([T({flex:{controlId:qm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te},generate:mt})],fc.prototype,"showHeaderContent",2),h([T({flex:{controlId:qm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te}})],fc.prototype,"showAnchorBar",2),h([T({flex:{controlId:qm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te}})],fc.prototype,"useIconTabBar",2),h([T({flex:{controlId:qm,controlType:()=>Ru.ControlType.ObjectPageLayout,createFlexChange:Te}}),C({since:"1.34.0"})],fc.prototype,"alwaysShowContentHeader",2);var jb=fc;var K0=te(le());var uc=class uc{};a(uc,"BaseCustomSection"),h([T({manifest:{path:la,export:!1,import:(t,n)=>n.split("|")[2]}}),C({since:"1.52.0"})],uc.prototype,"relatedFacet",2),h([T({manifest:{path:la,export:!1,import:(t,n)=>n.split("|")[0]}}),C({since:"1.52.0"})],uc.prototype,"relativePosition",2),h([T({manifest:{path:(t,n,i)=>la(t,{},i,K0.ManifestSection.generic)}}),C({since:"1.52.0"})],uc.prototype,"title",2),h([T({manifest:{path:la}}),C({since:"1.52.0"})],uc.prototype,"className",2);var Vu=uc,_u=class _u extends Vu{};a(_u,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:la}}),C({since:"1.52.0"})],_u.prototype,"fragmentName",2),h([T({manifest:{path:la}}),C({since:"1.52.0"})],_u.prototype,"type",2);var Mu=_u,Du=class Du extends Vu{};a(Du,"ObjectPageCustomSectionView"),h([T({manifest:{path:la}}),C({since:"1.52.0"})],Du.prototype,"viewName",2),h([T({manifest:{path:la}}),C({since:"1.52.0"})],Du.prototype,"type",2);var wu=Du;var Qi=te(le());var X0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),Qi.DefinitionName.Table];return qt(e,s)},"getTableSectionControlId"),Q0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return qt(e,s)},"getFormSectionControlId"),q0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return qt(e,s)},"getChartSectionControlId"),pc=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return qt(e,s)},"getSectionControlId"),z0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return qt(e,s)},"getSubSectionControlId"),Y0=a((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return qt(e,s)},"getContactSubSectionControlId"),zm=class zm{};a(zm,"ObjectPageSectionV2"),h([T({flex:{controlId:pc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:mt})],zm.prototype,"visible",2);var $b=zm,Ym=class Ym{};a(Ym,"ObjectPageSectionFormV2"),h([T({flex:{controlId:pc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:mt})],Ym.prototype,"visible",2);var Bb=Ym,Jm=class Jm{};a(Jm,"ObjectPageSectionChartV2"),h([T({flex:{controlId:pc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:mt})],Jm.prototype,"visible",2);var Hb=Jm,Zm=class Zm{};a(Zm,"ObjectPageSectionTableV2"),h([T({flex:{controlId:pc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:mt})],Zm.prototype,"visible",2);var Wb=Zm,eh=class eh{};a(eh,"ObjectPageSectionAddressV2"),h([T({flex:{controlId:pc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:mt})],eh.prototype,"visible",2);var Gb=eh,th=class th{};a(th,"ObjectPageSectionContactV2"),h([T({flex:{controlId:pc,controlType:()=>Qi.ControlType.Section,createFlexChange:Te},generate:mt})],th.prototype,"visible",2);var Kb=th,nh=class nh{};a(nh,"ObjectPageSubSectionV2"),h([T({flex:{controlId:z0,controlType:()=>Qi.ControlType.SubSection,createFlexChange:Te},generate:mt})],nh.prototype,"visible",2);var Xb=nh,ih=class ih{};a(ih,"ObjectPageSubSectionFormV2"),h([T({flex:{controlId:Q0,controlType:()=>Qi.ControlType.Group,createFlexChange:Te},generate:mt})],ih.prototype,"visible",2);var Qb=ih,rh=class rh{};a(rh,"ObjectPageSubSectionChartV2"),h([T({flex:{controlId:q0,controlType:()=>Qi.ControlType.SmartChart,createFlexChange:Te},generate:mt})],rh.prototype,"visible",2);var qb=rh,oh=class oh{};a(oh,"ObjectPageSubSectionContactV2"),h([T({flex:{controlId:Y0,controlType:()=>Qi.ControlType.SubSection,createFlexChange:Te},generate:mt})],oh.prototype,"visible",2);var zb=oh,ah=class ah{};a(ah,"ObjectPageSubSectionTableV2"),h([T({flex:{controlId:X0,controlType:()=>Qi.ControlType.SmartTable,createFlexChange:Te},generate:mt})],ah.prototype,"visible",2);var Yb=ah;var sh=class sh{};a(sh,"ObjectPageChart"),h([T({manifest:{path:v0}}),C({since:"1.78.0"})],sh.prototype,"variantManagement",2);var Jb=sh,ch=class ch{};a(ch,"GlobalChartSettings"),h([T({manifest:{path:t=>Ci(t)+"/chartSettings"}}),C({since:"1.78.0"})],ch.prototype,"variantManagement",2);var Zb=ch;var pr=te(le());var dc=a((e,t,n,i,r)=>{let o=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=pr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),o.push(s),o[0]=Qn(o[0],r),qt(e,o)},"getSmartTableControlId"),ku=class ku{};a(ku,"QuickVariantSelectionOP"),h([T({manifest:{path:(t,n,i)=>to(t,n,i)+pr.QUICKVARPATH}}),C({since:"1.48.0"})],ku.prototype,"showCounts",2),h([T({manifest:{path:(t,n,i)=>to(t,n,i)+pr.QUICKVARPATH}}),C({since:"1.48.0"})],ku.prototype,"variants",2);var eA=ku,lh=class lh{};a(lh,"Fields4DialogOP"),h([T({manifest:{path:(t,n,i)=>Vr(t,n,i)+"/createWithParameterDialog",export:Fm}}),C({since:"1.77.0"})],lh.prototype,"fields",2);var tA=lh,vi=class vi{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};a(vi,"CommonTableSettingsForSections"),h([T({manifest:{key:"createWithParameterDialog",path:Vr,import:Lm}}),C({since:"1.77.0"})],vi.prototype,"createWithParameterDialog",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.28.0"})],vi.prototype,"editable",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.95.0"}),Fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],vi.prototype,"showPasteButton",2),h([T({manifest:{path:Vr}}),C({since:"1.54.0"})],vi.prototype,"multiSelect",2),h([T({manifest:{path:Vr}}),C({since:"1.70.0"})],vi.prototype,"selectAll",2),h([T({manifest:{path:Vr}}),C({since:"1.70.0"})],vi.prototype,"selectionLimit",2),h([T({manifest:{path:to}}),C({since:"1.63.0"})],vi.prototype,"quickVariantSelection",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.26.0"})],vi.prototype,"useExportToExcel",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.SmartTable,createFlexChange:Te}}),C({since:"1.50.0"})],vi.prototype,"exportType",2),h([T({manifest:{path:to}}),C({since:"1.48.5"}),Fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],vi.prototype,"createMode",2),h([T({manifest:{path:to}}),C({since:"1.61.0"})],vi.prototype,"disableDefaultInlineCreateSort",2),h([T({manifest:{path:Vr}}),C({since:"1.78.0"})],vi.prototype,"variantManagement",2),h([Mt("toolBar")],vi.prototype,"toolBar",2);var gc=vi,as=class as extends gc{};a(as,"ObjectPageResponsiveTable"),h([T({manifest:{path:Vr}})],as.prototype,"type",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.Table,createFlexChange:Te}})],as.prototype,"includeItemInSelection",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.Table,createFlexChange:Te},generate:mt}),C({since:"1.52.0"})],as.prototype,"popinLayout",2),h([T({manifest:{path:Vr}}),C({since:"1.77.0"})],as.prototype,"inlineDelete",2),h([T({flex:{controlId:dc,controlType:()=>pr.ControlType.Table,createFlexChange:Te}}),C({since:"1.16.0"})],as.prototype,"growingThreshold",2);var mc=as,Uu=class Uu extends gc{};a(Uu,"ObjectPageAnalyticalTable"),h([T({manifest:{path:Vr}})],Uu.prototype,"type",2),h([T({manifest:{path:to}}),C({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var nA=Uu,ju=class ju extends gc{};a(ju,"ObjectPageGridTable"),h([T({manifest:{path:Vr}})],ju.prototype,"type",2),h([T({manifest:{path:to}}),C({since:"1.67.0"})],ju.prototype,"condensedTableLayout",2);var iA=ju,$u=class $u extends gc{};a($u,"ObjectPageTreeTable"),h([T({manifest:{path:Vr}})],$u.prototype,"type",2),h([T({manifest:{path:to}}),C({since:"1.67.0"})],$u.prototype,"condensedTableLayout",2);var rA=$u,da=class da{};a(da,"GlobalTableSettings"),h([T({manifest:{path:nc}}),C({since:"1.70.0"})],da.prototype,"selectAll",2),h([T({manifest:{path:nc}}),C({since:"1.78.0"})],da.prototype,"variantManagement",2),h([T({manifest:{path:nc}})],da.prototype,"type",2),h([T({manifest:{path:nc}}),C({since:"1.54.0"})],da.prototype,"multiSelect",2),h([T({manifest:{path:nc}}),C({since:"1.67.0"})],da.prototype,"condensedTableLayout",2),h([T({manifest:{path:nc}}),C({since:"1.77.0"})],da.prototype,"inlineDelete",2);var oA=da;var J0=te(le());var J8=a((e,t,n,i,r)=>{let{actionId:o}=Gi(n),s=Qn(n[1],r);return`${e}${s}::action::${Hi(o).replace(":2f","::")}`},"getActionButtonId"),Bu={controlId:J8,controlType:()=>J0.ControlType.Button,createFlexChange:Te},ss=class ss{};a(ss,"ObjectPageToolBarAction"),h([T({flex:Bu,generate:mt})],ss.prototype,"visible",2),h([T({flex:Bu})],ss.prototype,"tooltip",2),h([T({flex:Bu})],ss.prototype,"icon",2),h([T({flex:Bu})],ss.prototype,"activeIcon",2),h([T({flex:Bu})],ss.prototype,"type",2);var aA=ss;function cs(e){return e.replace("/","::")}a(cs,"convertActionKey");function cA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}a(cA,"convertSelector");function Z8(e,t,n,i){var o,s,l,u;(((s=(o=i.definitions)==null?void 0:o.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}a(Z8,"addSmartFilterBarFlex");function eK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let o=Hi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=o.indexOf(":::");if(o.startsWith("DataField")&&s>-1){let u=o.split(":::"),p=u.find(v=>v.startsWith("sSemanticObject")),g=u.find(v=>v.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,A)}else i.set(m,r),i.set(r,o)}else i.set(o.replace(":2f","::"),r),i.set(r,o)}),i}a(eK,"filterActions");function tK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}a(tK,"addColumnActionConfigPart");function nK(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}a(nK,"getActionId");function iK(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=eK(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&tK(s,e,m);let v=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}a(iK,"addActionFlex");function rK(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[Ge.PropertyName.chart],t);(o=s==null?void 0:s.flex)!=null&&o.importFlexValue?s.flex.importFlexValue(n,e[Ge.PropertyName.chart],t):e[Ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}a(rK,"addSmartChartFlex");function oK(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===Ge.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Ge.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===Ge.ControlType.TableColumn)&&lm(e.table,i,n)}a(oK,"addAdditionalFlexChanges");function fh(e,t,n,i){var r,o;try{let s=ja(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(Ge.PageTypeV2.ListReport)||(o=s.controlId)!=null&&o.includes(Ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=cA(s.controlId),s.controlType){case Ge.ControlType.SmartFilterBar:{Z8(e,l,s,n);break}case Ge.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ge.ControlType.Button:{let u=nK(s);u&&iK(e,l,s,n,u);break}case Ge.ControlType.SmartChart:{rK(e,l,s,n);break}default:{oK(e,s,n);break}}}catch(s){ae(i,{severity:Ge.LogSeverity.Error,message:J.t("FLEXERROR")},...s)}}a(fh,"addFlex");function aK(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}a(aK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,o){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,o);s=Bn(t,g),ll(p,s,u,e),$g(l,s,g,r)}aK(u,e)}}a(Dn,"transferSettingsOfObject");function uh(e,t){var r,o,s,l,u,p,g,m,v;let n=e[Ge.ManifestSection.generic].pages[t],i=Ge.v2.TableTypeV2.ResponsiveTable;return(r=e[Ge.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(o=e[Ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:o.tableSettings)!=null&&s.type||(l=e[Ge.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ge.v2.TableTypeV2.AnalyticalTable),i}a(uh,"determineTableType");function Z0(e,t,n,i,r,o,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:o};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}a(Z0,"evaluateFragmentColumn");function sK(e,t,n,i){let r;if(e===Ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let o of Object.keys(t)){let[s,l,u]=o.split("|");s===Ge.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[o].fragmentName)}return r}a(sK,"determineCellsFragmentName");function cK(e,t,n,i,r,o,s){var l;if(e[0]){let p=JSON.parse((0,e1.xml2json)(e[0].fileContent,{compact:!0}))[Fo],g=vu(p);if(g)if((l=t[Ge.PropertyName.table])!=null&&l.columns||(t[Ge.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)Z0(m,n,i,r,t,o,s);else Z0(g,n,i,r,t,o,s)}}a(cK,"analyzeFilteredFragments");function lK(e,t,n,i,r){for(let o of Object.keys(e)){let s=o.split("|"),[l,u]=s,p=s[2],g=Ge.ViewTemplateType[l];if(g&&"|"+u===t){let m=e[o].type?e[o].type.toLowerCase():"xml",v=e[o].fragmentName;if(!v)continue;let A=sK(g,e,u,p),E=v.split(".");v=E[E.length-1]+Ge.FRAGMENTNAMEPART+m;let O=r.filter(R=>R.dataSourceUri.endsWith(v));cK(O,i,e,o,p,g,A)}}}a(lK,"processViewExtensions");function Nl(e,t,n,i,r,o){if(!r)return;let s="|"+(o&&o.target?o.target:n.entitySet);if(t[Ge.ManifestSection.ui5]&&t[Ge.ManifestSection.ui5].extends&&t[Ge.ManifestSection.ui5].extends.extensions&&t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;lK(u,s,o,e,r)}}a(Nl,"addFragments");function ph(e,t,n){if(e.header={actions:{}},n[Ge.DefinitionName.HeaderActionsStandard]){let i=n[Ge.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(Ge.PageTypeV2.ListReport,r,{})}}a(ph,"importHeaderActions");var Kt=te(le());var n1=te(le());var lA={};Hs(lA,{ANNOERR:()=>NK,ANNOTATIONFILE:()=>LK,COMPONENTNOTDEFINED:()=>FK,CONTEXTPATHCOULDNOTBERESOLVED:()=>PK,ENTITYSETNOTFOUND:()=>xK,FLEXERROR:()=>$K,INVALIDANCHOR:()=>BK,INVALIDEXTENSION:()=>HK,INVALIDTARGETDEFINITION:()=>GK,MACROS_ANNOTATION_ERROR:()=>QK,NOALP:()=>IK,NOANNOTATIONFORPATH:()=>AK,NOBASEPATH:()=>pK,NOCHARTS:()=>VK,NOENTITYSET:()=>yK,NOENTITYTYPE4SET:()=>vK,NOFE:()=>gK,NOFRAGMENT:()=>WK,NOGENERICSCHEMA:()=>mK,NOID4SECTION:()=>KK,NOLINEITEMANDCHARTS:()=>MK,NOLINEITEMFORPATH:()=>SK,NOLINEITEMS:()=>DK,NOLR:()=>CK,NOPAGEFORENTITYSET:()=>hK,NOPAGES:()=>dK,NOPRESENTATIONVARIANT:()=>TK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>EK,NOPRESENTATIONVARIANTFORSPV:()=>bK,NOROUTING:()=>RK,NOROUTINGID:()=>jK,NOTARGET:()=>UK,NOTARGETS:()=>kK,NOTEMPLATE:()=>OK,NOUIANNOTATIONS:()=>_K,NOVISUALIZATIONS:()=>wK,TYPEERROR:()=>qK,UNKNOWNMINUI5VERSION:()=>uK,WRONGMINUI5VERSION:()=>fK,XMLPARSEFAILURE:()=>XK,default:()=>zK});var fK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",uK="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",pK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",dK="No pages found in manifest for app with id '{{- appId}}'",gK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",mK="No generic schema found while generating page schema for {{- pageType}}",hK="No page found in manifest for entitySet '{{- entitySet}}'",yK="No entitySet defined for page '{{- pageName}}'",vK="No entityType could be found for the given entity set '{{- entitySetName}}'",TK="No PresentationVariant defined for '{{- key}}'",EK="No PresentationVariant found for default SelectionPresentationVariant",bK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",AK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",SK="No line item annotation found for path '{{- annotationPath}}'",xK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",PK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",CK="No page found in manifest for list report",IK="No page found in manifest for analytical list page",OK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",NK="Error while parsing annotation files",LK="Annotation file: '{{- file}}'",FK="Component name is not defined for page '{{- pageName}}'",RK="Incomplete manifest definition: no routing defined",_K="No UI Annotation defined for entity type '{{- entityType }}'",DK="UI.LineItem annotation has not been defined",VK="UI.Chart annotation has not been defined",MK="Neither UI.LineItem nor UI.Chart annotation has been defined",wK="Empty Collection for Visualizations",kK="Incomplete manifest definition: no targets defined",UK="Invalid reference: annotation target '{{- target}}' not found",jK="No page found in manifest for routingId '{{- routingId}}'",$K="Error while parsing flex change",BK="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",HK="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",WK="fragmentName is undefined for columnKey '{{- columnKey}}'",GK="Invalid routing target definition in manifest: '{{- target}}'",KK="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",XK="Parsing of XML file failed with error - {{- error}}",QK="Error during resolving annotation for '{{- control}}'",qK="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",zK={WRONGMINUI5VERSION:fK,UNKNOWNMINUI5VERSION:uK,NOBASEPATH:pK,NOPAGES:dK,NOFE:gK,NOGENERICSCHEMA:mK,NOPAGEFORENTITYSET:hK,NOENTITYSET:yK,NOENTITYTYPE4SET:vK,NOPRESENTATIONVARIANT:TK,NOPRESENTATIONVARIANTFORDEFAULTSPV:EK,NOPRESENTATIONVARIANTFORSPV:bK,NOANNOTATIONFORPATH:AK,NOLINEITEMFORPATH:SK,ENTITYSETNOTFOUND:xK,CONTEXTPATHCOULDNOTBERESOLVED:PK,NOLR:CK,NOALP:IK,NOTEMPLATE:OK,ANNOERR:NK,ANNOTATIONFILE:LK,COMPONENTNOTDEFINED:FK,NOROUTING:RK,NOUIANNOTATIONS:_K,NOLINEITEMS:DK,NOCHARTS:VK,NOLINEITEMANDCHARTS:MK,NOVISUALIZATIONS:wK,NOTARGETS:kK,NOTARGET:UK,NOROUTINGID:jK,FLEXERROR:$K,INVALIDANCHOR:BK,INVALIDEXTENSION:HK,NOFRAGMENT:WK,INVALIDTARGETDEFINITION:GK,NOID4SECTION:KK,XMLPARSEFAILURE:XK,MACROS_ANNOTATION_ERROR:QK,TYPEERROR:qK};function t1(e){e.addResourceBundle(e.language,"translation",lA)}a(t1,"initI18n");function en(e="en"){J.init({resources:{en:{translation:n1.default}},lng:e,fallbackLng:"en",joinArrays:`
293
293
 
294
- `}),z0(J)}a(en,"initI18n");var Ut=te(ce());function vc(e,t,n){var r;let i;for(let o in e){let s=e[o];if(aa((r=s.component)==null?void 0:r.name)===Ut.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(o),s;if(s.pages&&(i=vc(s.pages,t,n),i))return n.unshift(o),i}}a(vc,"findObjectPageV2");function _l(e,t){var n;for(let i in e){let r=e[i];if(aa((n=r.component)==null?void 0:n.name)===Ut.PageTypeV2.ListReport)return t.push(i),r}}a(_l,"findListReportPageV2");function Dl(e){if(!e.manifest[Ut.ManifestSection.generic]){oe(e.logger,{severity:Ut.LogSeverity.Error,message:J.t("NOFE"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}let t=e.manifest[Ut.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:Ut.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}return t}a(Dl,"getV2Pages");function Vl(e,t,n){var i;if(!e){oe(t,{severity:Ut.LogSeverity.Error,message:J.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:Ut.LogSeverity.Error,message:J.t("NOENTITYSET",{pageName:r}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}}a(Vl,"checkV2Page");function Ml(e,t,n){var i;for(let r in e){let o=e[r];if(t.push(r),aa((i=o.component)==null?void 0:i.name)===Ut.PageTypeV2.AnalyticalListPage)return o}oe(n,{severity:Ut.LogSeverity.Error,message:J.t("NOALP"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}a(Ml,"findAnalyticalListPage");function fA(e,t){let n=e.split("|");return Ut.v2.SectionPosition[n[0]]&&n[1]===t}a(fA,"isAssociatedCustomSection");function J0(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${Ut.v2.SAPUI5_VIEW_EXTENSION}/${Ut.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)fA(r,t)&&(i[r]=n[r]);return i}a(J0,"findCustomSectionExtensions");function XK(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}a(XK,"removeEmptySettingsOfFooter");function QK(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}a(QK,"removeEmptySettingsOfFilterBar");function qK(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}a(qK,"removeEmptySettingsOfToolBar");function gh(e){qK(e),QK(e),XK(e)}a(gh,"removeEmptySettings");var pA={};Gs(pA,{AnalyticalListPage:()=>wr,ListReport:()=>ao,ObjectPage:()=>ai,OverviewPage:()=>zt,exportFilterSettings:()=>t1,importDateSettingsOVP:()=>Z0,importFilterSettings:()=>e1});var mh=te(ce());var wr=class{};a(wr,"AnalyticalListPage"),h([T({flex:{controlId:wg,controlType:()=>mh.ControlType.DynamicPage,createFlexChange:Te}})],wr.prototype,"fitContent",2),h([Mt("table")],wr.prototype,"table",2),h([Mt("template::SmartFilterBar")],wr.prototype,"filterBar",2),h([Mt("analyticalListPageChart")],wr.prototype,"chart",2),h([Mt("analyticalListFooter")],wr.prototype,"footer",2),wr=h([Dr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:mh.v2.FE_TEMPLATE_V2_ALP})],wr);var Hu=te(ce());var ao=class{};a(ao,"ListReport"),h([T({flex:{controlId:wg,controlType:()=>Hu.ControlType.DynamicPage,createFlexChange:Te}})],ao.prototype,"fitContent",2),h([Mt("listReportFilter")],ao.prototype,"filterBar",2),h([Mt("listReport")],ao.prototype,"table",2),h([Mt("listReportFooter")],ao.prototype,"footer",2),ao=h([Dr({id:Hu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hu.v2.FE_TEMPLATE_V2_LIST_REPORT})],ao);var uA=te(ce());var ai=class{};a(ai,"ObjectPage"),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.52.0"})],ai.prototype,"showConfirmationOnDraftActivate",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.52.1"})],ai.prototype,"hideChevronForUnauthorizedExtNav",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.48.0"})],ai.prototype,"allowDeepLinking",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.52.0"})],ai.prototype,"navToListOnSave",2),h([Mt("header")],ai.prototype,"header",2),h([Mt("sections")],ai.prototype,"sections",2),h([Mt("layout")],ai.prototype,"layout",2),h([T({manifest:{path:t=>dm(t)}}),C({since:"1.77.0"})],ai.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([T({manifest:{path:t=>Ci(t),import:t=>{if("chartSettings"in t)return t.chartSettings},key:"chartSettings"}}),C({since:"1.78.0"})],ai.prototype,"globalChartSettings",2),h([T({manifest:{path:t=>Ci(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:zs}}),C({since:"1.71.0"})],ai.prototype,"globalTableSettings",2),ai=h([Dr({id:uA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:uA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ai);function zK(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let o=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=o,o.equals&&typeof o.equals=="string"&&(t.fields[n].filter[r].equals=o.equals.split(","))}}}a(zK,"importDateSettingsFieldsOVP");function Z0(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&zK(e,t),t}a(Z0,"importDateSettingsOVP");function e1(e){let t={};return t.dateSettings=Z0(e.filterSettings),t}a(e1,"importFilterSettings");function YK(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let o in r.filter){let s=r.filter[o];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[o].equals=s.equals.join())}}}a(YK,"exportFilterFields");function t1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&YK(t,n,e))}a(t1,"exportFilterSettings");var zt=class{};a(zt,"OverviewPage"),h([T({manifest:{path:()=>hn()}})],zt.prototype,"globalFilterModel",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"globalFilterEntityType",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"globalFilterEntitySet",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"showBasicSearch",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"disableErrorPage",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"smartVariantRequired",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"bHeaderExpanded",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"containerLayout",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"showDateInRelativeFormat",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"disableTableCardFlexibility",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"enableLiveFilter",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"enableLazyRendering",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"refreshStrategyOnAppRestore",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"considerAnalyticalParameters",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"refreshIntervalInMinutes",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"useDateRangeType",2),h([T({manifest:{path:()=>hn(),import:e1,export:t1}}),C({since:"1.80.0"})],zt.prototype,"filterSettings",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"dataLoadSettings",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"resizableLayout",2),zt=h([Dr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],zt);var dA=class dA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let o=this.controls[r]?this.controls[r]:this.controls[n];return o||(o=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),o?Object.assign(new o,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};a(dA,"MetadataFactory");var wl=dA;var Zn=te(ce());var JK={},ZK={Table:ac,ResponsiveTableWithMultiSelect:ac,ResponsiveTableWithInlineDelete:ac},e3={[Zn.v2.CardSettingsType.listCardSettings]:Sl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Sl,[Zn.v2.CardSettingsType.analyticalCardSettings]:xl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:xl,[Zn.v2.CardSettingsType.stackCardSettings]:uu,[Zn.v2.CardSettingsType.linkListCardSettings]:pu,[Zn.v2.CardSettingsType.tableCardSettings]:Pl,[Zn.v2.CardSettingsType.tableCardSettingsv4]:Pl},t3={[Zn.SAPUI5_VIEW_CLASS]:wu,[Zn.SAPUI5_FRAGMENT_CLASS]:Mu,Table:yc,ObjectPageResponsiveTableWithMultiSelect:yc,ObjectPageResponsiveTableWithInlineDelete:yc},n3={[Zn.PageTypeV2.AnalyticalListPage]:JK,[Zn.PageTypeV2.ListReport]:ZK,[Zn.PageTypeV2.ObjectPage]:t3,[Zn.PageTypeV2.OverviewPage]:e3},gA=class gA extends wl{constructor(){super(sA,pA,n3)}};a(gA,"MetadataInstanceFactoryV2");var Ii=gA;function i3(e,t,n,i,r){if(e.filterBar=t.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Kt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let o=i.SelectionFields.properties;for(let s in o){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Kt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}a(i3,"importFilterBar");function r3(e,t,n,i,r){var s;let o;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?o=t[e+"<LineItems>"]:t[Wg]&&t[Gg]&&(o=JSON.parse(JSON.stringify(t[Wg])),o.properties={...o.properties,...t[Gg].properties}),Dn(n.table,i.manifest,o,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:Kt.LogSeverity.Error,message:J.t("NOLINEITEMS")})}a(r3,"importTable");function o3(e,t,n,i){let r=e.jsonSchema.definitions,o=ph(e.manifest,i);if(t.table=n.createInstance(Kt.PageTypeV2.ListReport,o,t.table),dh(t,n,r),r3(o,r,t,e,i),t.table.toolBar=n.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Kt.DefinitionName.ToolBarLR],i,e.logger),r[Kt.DefinitionName.ActionsLR])for(let l in r[Kt.DefinitionName.ActionsLR].properties){let u=fs(l);t.table.toolBar.actions[u]=n.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Kt.DefinitionName.Action],i,e.logger)}i3(t,n,e,r,i),t.footer={actions:{}};let s=r[Kt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=fs(l);t.footer.actions[u]=n.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Kt.DefinitionName.Action],i,e.logger)}}a(o3,"addSettings");function hh(e){if(en(),!Dl(e))return;let n=new Ii,i=n.createPageInstance(Kt.PageTypeV2.ListReport),r=[],o=_l(e.manifest[Kt.ManifestSection.generic].pages,r);if(Vl(o,e.logger,o==null?void 0:o.entitySet),!!o)return o3(e,i,n,r[0]),e.flex.forEach(s=>{Ba(s)&&uh(i,s,e.jsonSchema,e.logger)}),Rl(i,e.manifest,o,Kt.PageTypeV2.ListReport,e.fragments),gh(i),i}a(hh,"createListReportConfig");var St=te(ce());function a3(e,t,n,i){var u,p;let r=ph(e.manifest,i),o=e.jsonSchema.definitions;if(dh(t,n,o),t.table=n.createInstance(St.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Dn(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,o[St.DefinitionName.ToolBar],i,e.logger),o[St.DefinitionName.ActionsLR])for(let g in o[St.DefinitionName.ActionsLR].properties){let m=fs(g);t.table.toolBar.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.Action),Dn(t.table.toolBar.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,o[St.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),o[St.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let g=o[St.DefinitionName.SelectionFields].properties;for(let m in g){let v=m;t.filterBar.selectionFields[v]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[v],e.manifest,o.SelectionFieldDateSettings,i,e.logger,v)}}t.chart=n.createInstance(St.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let s=o[St.DefinitionName.FooterActionsLR];if(s)for(let g in s.properties){let m=fs(g);t.footer.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.FooterAction),Dn(t.footer.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[St.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(g=>{t.keyPerformanceIndicators[g]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[g],e.manifest,o.KPISettings,i,e.logger,g)})}a(a3,"addSettings");function yh(e){if(en(),!Dl(e))return;let n=new Ii,i=n.createPageInstance(St.PageTypeV2.AnalyticalListPage),r=[],o=Ml(e.manifest[St.ManifestSection.generic].pages,r,e.logger);if(Vl(o,e.logger,o==null?void 0:o.entitySet),!!o)return a3(e,i,n,r[0]),e.flex.forEach(s=>{Ba(s)&&uh(i,s,e.jsonSchema)}),Rl(i,e.manifest,o,St.PageTypeV2.AnalyticalListPage,e.fragments),gh(i),i}a(yh,"createAnalyticalListPageConfig");var Ee=te(ce());var Wu=require("@sap-ux/vocabularies-types/vocabularies/UI");var c3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function l3(e,t){let n=e[0].split("-"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Wu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ActionTitlePrefix}${t}`;else if(e[0].indexOf(Wu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}a(l3,"getSingleSelectorIdPart");function f3(e){let t,n=e.split(":::");if(n.length===1)t=l3(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Wu.UIAnnotationTerms.LineItem}`,`/@${Wu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}a(f3,"getFacetID");function u3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=Ba(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let A=f3(v);v=cA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${g.content.property}`]={controlId:v,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){oe(n,{severity:Ee.LogSeverity.Error,message:J.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}a(u3,"prepareFlexChanges");var p3=a(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(B,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(B,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function d3(e,t,n,i,r,o){let s;r?s=[r.replace(/@/g,"")]:s=[o.replace(/@/g,""),o==null?void 0:o.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,g=t==="columns"&&u.controlType===Ee.ControlType.TableColumn;(p||g)&&s.indexOf(u==null?void 0:u.facetId)>-1&&fm(n,u,i.jsonSchema)}}a(d3,"importFlexChangesOfTable");function g3(e,t){return e.facetId==="template"&&t}a(g3,"isStandardActionFlexChange");var n1=a((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,o=e.slice(i,r);return o.length===t.length&&t.every(s=>o.includes(s))},"idElementChecker");function m3(e,t,n,i,r,o){var O;let s=!1,l=!1;o?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ActionTitlePrefix))&&!r&&s,m=r&&n1(u,r.split("::"))&&s,v=e.title&&n1(u,e.title.split("::"),!0),A=!t.facetId&&c3.includes(t.controlType),E=g3(t,l);return p||g||m||v||A||E}a(m3,"matchSelector");function h3(e,t,n,i,r,o){var u;let s=new RegExp(`.*${o}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;m3(e,g,s,l,r,o)&&(t[i]=g.newValue)}}a(h3,"importFlexChanges");function y3(e,t,n,i){if(e&&t)for(let r in e){let o=t[r];o&&(oe(n.logger,{severity:Ee.LogSeverity.Warning,message:jg(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}a(y3,"checkDeprecatedProperties");function v3(e,t,n,i,r,o,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return y3(p,o,n,u),p}a(v3,"importManifestSetting");function Oi(e,t,n,i,r,o){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let g=zn(t,p);if(p==="columns"||g!=null&&g.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))d3(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);h3(n,t,i.flexChanges,p,m,o)}else g!=null&&g.manifest&&v3(g,i.pageKeys,e,t,p,s,r)}}a(Oi,"transferSettingsAndFlexChanges");function r1(e,t,n,i){let r=Hi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${BR}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Kg}${r}`;break}}return r.replace(/@/g,"")}a(r1,"getActionId");function T3(e,t,n,i){var r;for(let o in t){let s=t[o].$ref.split(B)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[o].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=r1(s,o,"","");e.actions[o]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Oi(n,e[Ee.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},u)}}}a(T3,"fillStandardActions");function vh(e,t,n,i,r,o){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};o&&(u.id=o);for(let p in t){let g=fs(p),m=r1(s,g,r,o);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Oi(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}T3(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}a(vh,"fillActions");function E3(e,t,n,i,r){var s;let o;i[t.id].form.fields={};for(let l in n){o=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${o}`:`${t.title}::${o}`;Oi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}a(E3,"fillFields");function b3(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}a(b3,"prepareTableSchema");function A3(e,t,n,i,r){var l,u;let o=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=b3(p,t,m);Oi(e,i[t.id],t.schema,r,{title:t.title}),Oi(e,i[t.id][Ee.PropertyName.table],v,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");vh(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}a(A3,"fillTableInConfig");function S3(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?Bg(r.$ref):void 0;if(o){let s={key:t.replace("@",""),target:o};Rl(n[t],e.manifest,i,Ee.PageTypeV2.ObjectPage,e.fragments,s)}}a(S3,"fillCustomColumnsInConfig");function x3(e,t,n,i,r){let o=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Oi(e,i[t.id],t.schema,r,{title:t.title}),Oi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}a(x3,"fillChartSection");function P3(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Oi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}a(P3,"fillHeaderSection");function C3(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Oi(e,n[t.id],t.schema,i,{title:t.title});let o=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");o!=null&&o.properties&&vh(e,o.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&E3(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}a(C3,"fillFormSection");function i1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Oi(e,i[t.id],t.schema,r,t);let o,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?o=s.subsections.properties:o=s,mA(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}a(i1,"fillSubSection");function mA(e,t,n,i,r){var s;let o=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:p3(t[l]),schema:t[l],title:fE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=o[`${p.type}<${l}>`],A3(e,p,n,i,r),S3(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=o[`${p.type}<${l}>`],x3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=o[`${p.type}<${l}>`],C3(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=o[`${p.type}<${l}>`],i1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=o[`${p.type}<${l}>`],P3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=o[`${p.type}<${l}>`],i1(e,p,n,i,r))}}a(mA,"fillSectionsInConfig");function I3(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let o in e){let s="fragmentName"in e[o]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[o]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Oi(r,s,l,n,{id:o}),t.sections.custom.push(s)}}}a(I3,"fillCustomSectionsInConfig");function O3(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Oi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Oi(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Oi(e,n.header,r,t);let o=i[Ee.DefinitionName.ObjectPageHeaderActions];o&&vh(e,o.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&vh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Oi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;mA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;mA(e,u.properties,v,n.sections,t)}let p=J0(e.manifest,e.entitySet);return I3(p,n,t,i,e),n}a(O3,"fillConfig");function Th(e){en();let t=Dl(e);if(!t)return;let n=e.entitySet,i=[],r=vc(t,e.entitySet,i);if(Vl(r,e.logger,n),!r)return;let o=u3(e.flex,n),s=new Ii;return O3(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:s})}a(Th,"createObjectPageConfigV2");function bh(e,t){var n,i;return(n=e.component)!=null&&n.name?_g(aa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}a(bh,"generateId");function N3(e,t,n,i,r,o,s){e.navigation={};let l=o1(t.pages,n,i,r,o);for(let u in l){let p=l[u];s[u]=p}for(let u in t.pages){let p=bh(t.pages[u],u);e.entitySet?e.navigation[p]=l[p].navigationProperty?`${e.entitySet}.${l[p].navigationProperty}`:e.entitySet:e.navigation[p]=l[p].navigationProperty?l[p].navigationProperty:p}}a(N3,"getPageConfigsAndNavigations");function o1(e,t,n,i,r,o){var l;let s={};for(let u in e){let p=e[u],g=bh(p,u);if(!g)continue;let m={pageType:aa((l=p.component)==null?void 0:l.name),entitySet:p.entitySet,...p.navigationProperty&&{navigationProperty:p.navigationProperty},...p.defaultLayoutType&&{defaultLayoutType:p.defaultLayoutType}};s[g]=m;let v=Object.keys(i).find(A=>A.includes(g))||Object.keys(i).find(A=>A.includes(g.slice(0,-1)))||Object.keys(i).find(A=>A.includes(m.pageType));if(v)if(m.pageType===yn.PageTypeV2.ListReport){let A={manifest:n,flex:t,jsonSchema:i[v],fragments:r,logger:o};m.config=hh(A)}else if(m.pageType===yn.PageTypeV2.AnalyticalListPage){let A={manifest:n,flex:t,jsonSchema:i[v],fragments:r,logger:o};m.config=yh(A)}else{let A={manifest:n,flex:t,jsonSchema:i[v],entitySet:m.entitySet,fragments:r,logger:o};m.config=Th(A)}p.pages&&N3(m,p,t,n,i,r,s)}return s}a(o1,"getPagesAndConfigs");var hA=class hA extends Xa{constructor(t){en();let n;t.manifest[yn.ManifestSection.generic]?n=t.manifest[yn.ManifestSection.generic].pages:oe(t.logger,{severity:yn.LogSeverity.Error,message:J.t("NOFE"),location:{path:yn.MANIFESTPATH,range:[yn.ManifestSection.generic]}}),n||oe(t.logger,{severity:yn.LogSeverity.Error,message:J.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:yn.MANIFESTPATH,range:[yn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&bh(n[i],i),o=new Qa,s=Ft(yn.SchemaType.Application),l=t.appSchemas[s.filename];Dn(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,o1(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),yn.FioriElementsVersion.v2,o)}};a(hA,"V2AppProvider");var Eh=hA;function Gu(e,t,n){var r,o;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:yn.LogSeverity.Error,message:J.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:yn.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let u=bh(l,s);i[u]=l}if(t===yn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Gu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}a(Gu,"getPages");var ma=te(ce());var Vo=te(ce());var vA=te(_T());var Xt=te(ce());var L3=["colorPalette","tabs"];function F3(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}a(F3,"createCard");function a1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),a1(e,n.join("|"))}return t}a(a1,"findAvailableId");function Ku(e,t,n,i,r,o,s){i!=null&&i.properties&&yA(e,t,n,i.properties,r,o,s)}a(Ku,"transferManifestEntriesOVP");function Tc(e,t,n,i){return e.createInstance(Xt.PageTypeV2.OverviewPage,i,n,t)}a(Tc,"assignReflectMetadataRules");function R3(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(B),r=e.appSchema.definitions[i[1]];t=Tc(e.factory,i[1],t,"CustomCard"),Ku(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}a(R3,"processAnyOfDefinitionsOfOVP");function _3(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!L3.includes(i)?t[i]=(0,vA.default)(t[i]||{},r||{},{arrayMerge:sE}):t[i]=r}a(_3,"checkSyncRuleForExport");function D3(e,t,n,i,r,o){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Xt.v2.CardSettingsType||n==="settings")l.settings=(0,vA.default)(l.settings||{},r||{},{arrayMerge:sE});else if(r!==void 0){let u=e.manifest.export;_3(u,l,o,n,r)}else l[n]!==void 0&&delete l[n]}a(D3,"transferToManifest");function V3(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,s;Object.values(Xt.v2.CardTemplateType).includes(o)?s=Object.keys(t.definitions).filter(l=>{var p;let u=(p=t.definitions[l].properties)==null?void 0:p.template;if(u!=null&&u.enum)return u.enum.indexOf(e[r].template)>-1;if(u!=null&&u.const)return u.const===e[r].template}):s=["CustomCard"],e[r]=Tc(n,s[0],e[r],"CustomCard"),F3(r,i.manifest[Xt.ManifestSection.ovp]),Ku(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[Xt.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Xt.ManifestSection.ovp].cards[r]})}a(V3,"transferCards");function M3(e,t,n){if(t==="cards")V3(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Oo(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Xt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(B);e.currentObject=Tc(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ku(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],yA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],yA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}a(M3,"exportOfObject");function yA(e,t,n,i,r,o,s){for(let l in i){if(l==="description"||s&&o&&s[o.length]!==l&&!Jf(o,s))continue;let u=e[l],p=zn(e,l),g={pathHierarchy:o,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t};o[o.length-1]==="anyOf"?(g.currentObject=e[o[o.length-2]],u=R3(g)):u&&typeof u=="object"&&i[l]&&M3(g,l,r),p!=null&&p.manifest&&D3(p,o,l,t,u,e)}}a(yA,"processProperties");function w3(e,t,n,i,r,o,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=UR(o,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=n.flex.createFlexChange(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let R=JSON.parse(m);return R={content:R.content,selector:R.selector},JSON.stringify(O)===JSON.stringify(R)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}a(w3,"evaluateFlexRule");function k3(e,t,n,i,r,o){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[o]===void 0&&(n[o]={},e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,o):s!==!1&&(n[o]=i[r]),e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated}}a(k3,"exportConfigValueToManifest");function U3(e,t,n,i,r){let o=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)k3(e,n,o,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(o,r,i,s):Object.prototype.hasOwnProperty.call(o,s)&&delete o[s],e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated,$a(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}a(U3,"evaluateManifestRule");function j3(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Xt.FacetTitlePrefix)?r.split(Xt.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}a(j3,"getManifestPathOfSections");function $3(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}a($3,"getManifestPathOfTable");function B3(e,t,n,i,r){let o;return t[0]===Xt.PropertyName.sections?o=j3(t,o,n,e,r):t[0]===Xt.PropertyName.table?o=$3(t,o,n,e,i):t[0]==="keyPerformanceIndicators"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):o=n.manifest.path(e.pageKeys),o}a(B3,"getManifestPath");function H3(e,t,n,i,r,o,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)w3(e,i,t,r,o,n,s);else if(t.manifest){let u=B3(e,i,t,n,o);U3(e,u,t,s,n)}}a(H3,"evaluateExportRule");function W3(e,t,n){var s;let i=e.split("|"),r=i[1],o=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===o||o===void 0&&u.tabKey===""||o&&t.sectionKey===o)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(xm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Xt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Xt.ViewTemplateType.ResponsiveTableColumnsExtension,Xt.ViewTemplateType.ResponsiveTableCellsExtension);xm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}a(W3,"deleteObsoleteColumn");function G3(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=l0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated,W3(r,e,n))}a(G3,"deleteObsoleteColumnsFromFragment");function K3(e,t,n,i,r){let o={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=Pm(n,i,s.tabKey||r,s.extensionType);o[l]||(o[l]={viewTemplateType:u,columns:[]}),o[l].columns.push(s)}return o}a(K3,"clusterConfigColumnsByPath");function s1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Xt.v2.TableColumnExtensionTypeV2){let{path:u}=Pm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};G3(p)}if(t){let l=K3(t,n,e.v2Page,s,r);for(let u in l)QE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}a(s1,"transferColumnExtensions");function X3(e,t,n,i,r,o){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=a1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=o.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split(B),v=e.appSchema.definitions[m[m.length-1]];us(e,t[p],i,[...r,s[p]],v)}let u=Bn(e.exportResults.manifest,TE());for(let p in u)fA(p,l)&&!s.includes(p)&&delete u[p]}a(X3,"transferManifestExtensions");function Q3(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Xt.PropertyName.table){n=e[i-1];break}return Qn(n,t)}a(Q3,"getSectionId");function q3(e,t,n,i,r,o){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Oo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);us(t,u.configObject,r,[...o,i],u.targetDefinition,l)})}a(q3,"transferIndexTable");function z3(e,t,n,i,r,o){let s,l=Bg(e.$ref);l&&(s={target:l,key:Q3(t,n)}),s1(i,r==null?void 0:r.custom,o.targetDefinition,s)}a(z3,"transferCustomColumns");function Y3(e,t,n,i,r,o,s){e.anyOf.forEach(l=>{let u=Oo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&us(t,u.configObject,o,[...s,r],u.targetDefinition,u.title)})}a(Y3,"handleAnyOfDefinitions");function J3(e,t,n,i,r,o,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")X3(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){z3(l,t,s,e,n,o);return}else o?us(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&Y3(l,e,s,n==null?void 0:n[r],r,i,t)}a(J3,"transferComplexProperty");function us(e,t,n,i,r,o){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Jf(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&kg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Oo(e.appSchema,o,s,m,l,e.factory,e.pageType);if(H3(e,g,t,[...i],p,o,l),q3(s,e,o,l,p,i),s===void 0||typeof s=="object")J3(e,i,t,p,l,v,o);else if((m==null?void 0:m.$ref)===B+"TableCustomColumns"){s1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}a(us,"transferManifestEntriesAndFlexChange");function c1(e,t,n,i,r,o){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Tc(r,i,n[i],s),o.push(i),TA(r,n[i],e,l.properties,o)}a(c1,"transferSettingsOfRef");function Z3(e,t,n,i,r,o){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(B);c1(i,s,e,t,r,o)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${B}${Vo.v2.cardTemplateSettingsMap[e.template]}`.split(B);c1(i,l,e,t,r,o)}}a(Z3,"processPropertiesOfObject");function eX(e,t,n,i,r,o){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{pl(s,u,t,e)}catch(p){oe(i.logger,{severity:Vo.LogSeverity.Error,message:J.t("XMLPARSEFAILURE",{error:Vg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&Z3(e,t,r,i,o,n)}a(eX,"processOvpProperty");function TA(e,t,n,i,r){for(let o in i)eX(t,o,r,n,i,e)}a(TA,"processOvpProperties");function tX(e,t,n){TA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Vo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Vo.ManifestSection.ovp].cards[i].template,o=Vo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Tc(n,o,{},"CustomCard"),e.cards=Tc(n,o,e.cards,"CustomCard"),TA(n,e.cards[i],t,t.jsonSchema.definitions[o].properties,[i])})}a(tX,"addSettings");function Ah(e){let t=new Ii,n=t.createPageInstance(Vo.PageTypeV2.OverviewPage);return e.jsonSchema&&tX(n,e,t),n}a(Ah,"createOverviewPageConfig");var EA=class EA extends Xa{constructor(t){let n={},i=t.manifest[ma.ManifestSection.ovp],r=new Qa,o=Ft(ma.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(ma.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:ma.PageTypeV2.OverviewPage,config:Ah(l),entitySet:i.globalFilterEntitySet},p=_g(u.pageType,u.entitySet);n[p]=u,super(t.manifest,t.appSchemas,p,n,ma.FioriElementsVersion.v2,r,t.logger)}};a(EA,"V2OvpProvider");var Sh=EA;var Mo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(ce()),l1=require("path");function nX(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}a(nX,"sortByPropertyIndex");function Xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(nX())}a(Xu,"sortPropertiesRecords");function f1(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}a(f1,"getExtensionText");function bA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ne.v4.Placement.After)===ne.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}a(bA,"addExtensionToSortedArray");function iX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}a(iX,"addRemainingTargetByBefore");function AA(e,t,n,i,r=!1){var u,p;let o=Object.entries(e).length,s=a((g,m)=>{let v=f1(g);return{$ref:`${B}${t}`,description:v,keys:[{name:ne.SchemaKeyName.key,value:`${m}`}]}},"getExtensionDetails");for(let g of Object.keys(e)){let m=e[g],v=s(m,g);if((u=m.position)!=null&&u.anchor&&((p=m.position)!=null&&p.placement)){let A=n.findIndex(E=>E[0]===m.position.anchor);A>-1?(bA(m,n,A,g,v),delete e[g]):g===m.position.anchor||Object.keys(e).indexOf(m.position.anchor)===-1?(oe(i,{severity:Ni.LogSeverity.Error,message:J.t("INVALIDANCHOR",{id:g,anchor:m.position.anchor}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.generic]}}),n.splice(n.length,0,[g,v]),delete e[g]):r&&iX(e,g,m,n,v)}else r&&(bA(m,n,n.length,g,v),delete e[g])}let l=Object.entries(e).length;l>0&&o!==l?AA(e,t,n,i):l>0&&AA(e,t,n,i,!0)}a(AA,"adjustCustomExtReferringToCustomExt");function rX(e,t){var r,o;let n=((r=e.position)==null?void 0:r.placement)||ne.v4.Placement.After,i=(o=e.position)==null?void 0:o.anchor;if(!i){let s=n===ne.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}a(rX,"getExtensionAnchor");function oX(e,t){var i;let n=[];for(let r in e){let o=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===o);o&&!s&&n.push(r)}return n}a(oX,"getLocalExtensionsToSkip");function aX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let o=a((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===ne.v4.Placement.Before?s=o(0,p=>!p):s=o(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ne.v4.Placement.Before))}),s>-1?s:0}a(aX,"getExtensionIndexByMergedApproach");function sX(e,t,n,i,r=!1){return r?aX(e,t,n):n.findIndex(o=>o[0]===i)}a(sX,"getExtensionIndex");function cX(e,t,n,i,r){oe(e,{severity:Ni.LogSeverity.Error,message:J.t("INVALIDEXTENSION",{id:t}),location:{path:ne.MANIFESTPATH}}),n.push([t,i]),delete r[t]}a(cX,"handleInvalidExtension");function ps(e,t,n,i="template",r,o=!1){let s=[...t],l={...e},u=oX(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m={$ref:`${B}${n}`,description:f1(g)||p,keys:[{name:ne.SchemaKeyName.key,value:`${p}`}],actionType:ne.ActionType.Custom};if(typeof g!="object"){cX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=rX(g,s);if(v){let A=sX(g,e,t,v,o);A>-1&&(bA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&AA(l,n,t,r),t}a(ps,"addExtensionToArray");function Ec(e,t,n,i=ne.DefinitionName.CustomColumn,r,o){var v,A,E,O;let s=r||ne.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Xu(l),p=o?o.replace(/::/g,"/"):`@${Mo.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=ps(g,u,i,void 0,n));for(let R=0;R<u.length;R++)u[R][1][ne.SchemaTag.propertyIndex]=R;let m={};u.forEach(([R,U])=>m[R]=U),e.definitions[s].properties=m}a(Ec,"addCustomColumnDefinition");function lX(e){let t;return e.lineItemId.startsWith(ne.DefinitionName.LineItemsOfView)?t=ne.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ne.DefinitionName.LineItems)?t=ne.DefinitionName.ToolBarAction:t=ne.DefinitionName.ObjectPageToolBarAction,t}a(lX,"determineActionDefinitionName");function fX(e,t,n){e[ne.SchemaTag.keys]=[],t[ne.SchemaKeyName.semanticObject]&&e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.semanticObject,value:t[ne.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ec(n,!0);e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.action,value:i}),r&&(e[ne.SchemaTag.target]=r)}a(fX,"addTargetAndKeysOfAction");function uX(e,t,n,i,r,o=!0){if(i.Determining===!0)return;let s=lX(e),l=yi(i,e.entityType),u=i.$Type.split(`${ne.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Hg(p),m=t.properties[`${u}::${g}`]={description:l};if(o?m.$ref=$n(s,ut(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[ne.SchemaTag.propertyIndex]=r,m[ne.SchemaTag.dataType]=Jr(i),fX(m,i,p),m[ne.SchemaTag.annotationType]=i.$Type,o){let v=kt(s,ut(g),e.appSchema);v[ne.SchemaTag.annotationPath]=`${n}/${r}`}else m[ne.SchemaTag.annotationPath]=`${n}/${r}`}a(uX,"addActionRecordToSchema");function pX(e,t,n,i,r){var u;let o=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(ne.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ca(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[o]);let g=p.properties,m={description:yi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=B+n,m[ne.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[ne.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[ne.SchemaTag.propertyIndex]=i,m[ne.SchemaTag.dataType]=Jr(s),g[l]=m,em(s,g,l)}}a(pX,"addLineItemRecordToSchema");function SA(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let o=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Mo.UIAnnotationTypes.DataFieldForAction||s.$Type===Mo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))uX(e,t,n,s,o,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Mo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;pX(e,l,u,o,i)}o++})}a(SA,"appendLineItemsToSchema");function bc(e,t=ne.DefinitionName.TableColumn,n=ne.DefinitionName.CustomColumn,i=ne.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:o}=Jg(e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);SA(e,r,o,void 0,t)}a(bc,"addLineItemsTypeToSchema");function Ac(e,t,n,i=ne.DefinitionName.Position,r){var p,g,m,v,A;let o=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(o)for(let E in o)E!=="custom"&&s.push(E);let l=t!==ne.DefinitionName.LineItems?r:`@${Mo.UIAnnotationTerms.LineItem}`,u=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;la(s,E)}}a(Ac,"addFragmentEnumForAnchor");function wo(e,t,n=ne.DefinitionName.CustomActionPosition){Ga(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}a(wo,"addEnumForActionAnchor");function xh(e,t,n,i){var o,s,l,u;let r;for(let p in e)if((i&&((s=(o=e[p].options)==null?void 0:o.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===ne.v4.FE_TEMPLATE_V4_ALP&&e[p].name===ne.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}a(xh,"findPageV4");function u1(e,t){let n,i=e.properties[ne.PropertyName.table];return t.templateType===ne.TemplateType.AnalyticalListPageV4?(n=ne.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${B}${ne.DefinitionName.ALPTableView}`,delete e.definitions[ne.DefinitionName.Table],delete e.definitions[ne.DefinitionName.LRChartView],delete e.definitions[ne.DefinitionName.LRTableView],delete e.definitions[ne.DefinitionName.MultiTableModeV4]):t.templateType===ne.TemplateType.ListReportObjectPageV4&&(n=ne.DefinitionName.Table,delete i.anyOf,i.$ref=`${B}${ne.DefinitionName.Table}`,e.definitions[n].properties[ne.PropertyName.annotationPath][ne.SchemaTag.hidden]=!0,delete e.definitions[ne.DefinitionName.ALPTableView],e.properties[ne.PropertyName.defaultPath][ne.SchemaTag.hidden]=!0),n}a(u1,"alignSchemaWithTemplateType");function ds(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",o=""){var g,m,v,A;let s=e.definitions[r];if(!s)return;let l=Xu(s),u;o?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=o.replace(/::/g,"#"):u=o.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Mo.UIAnnotationTerms.FieldGroup}`:u=`@${Mo.UIAnnotationTerms.LineItem}`;let p=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[u])==null?void 0:A.actions;if(p&&(l=ps(p,l,i,"press",n)),l){for(let O=0;O<l.length;O++)l[O][1][ne.SchemaTag.propertyIndex]=O;let E={};l.forEach(([O,R])=>E[O]=R),e.definitions[r].properties=E}}a(ds,"addCustomActionDefinition");function Ph(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,E,O,R;let o=e.definitions[r];if(!o)return;let s=Xu(o),l;[ne.DefinitionName.CustomHeaderAction,ne.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(R=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:R.actions,l&&(s=ps(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][ne.SchemaTag.propertyIndex]=U;s.forEach(([U,j])=>u[U]=j)}e.definitions[r].properties=u}a(Ph,"addHeaderFooterCustomActionDefinition");function Sc(e,t,n){let i=Mg(e,[ne.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:Ni.LogSeverity.Error,message:J.t("NOTARGETS"),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}let r=Mg(i,[t]);if(!r){oe(n,{severity:Ni.LogSeverity.Error,message:J.t("NOROUTINGID",{routingId:t}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}return r}a(Sc,"getManifestPage");function xc(e,t,n,i,r){var o,s;if(r){let l=((o=n["sap.app"])==null?void 0:o.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,l1.join)(...p,g),v=e.find(A=>A.dataSourceUri.endsWith(m));if(v){let A=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}a(xc,"getPageCustomExtensionFile");function gs(e,t,n,i){let r=Sc(n,t,i),o=Mg(r,["options","settings","viewName"]);return r&&typeof o=="string"?xc(e,r,n,"view",o):void 0}a(gs,"getPageCustomViewFile");function p1(e,t,n,i,r,o,s){var g,m,v,A,E,O,R,U;let l=Xu(t),u=new Map;if(l=l.map(j=>{let G=lm(e,j[1],j[0],{keyProperties:[ne.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(G.const,j[0]),[G.const,j[1]]}),o){let j=(E=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[o];j&&"subSections"in j&&(l=ps(j.subSections,l,i,"template",s,r))}else{let j=(U=(R=(O=n.options)==null?void 0:O.settings)==null?void 0:R.content)==null?void 0:U.header;j&&"facets"in j&&(l=ps(j.facets,l,i,"template",s,r))}for(let j=0;j<l.length;j++)l[j][1][ne.SchemaTag.propertyIndex]=j;let p={};l.forEach(([j,G])=>{j=u.get(j)||j,p[j]=G}),t.properties=p}a(p1,"addCustomSectionDefinition");function d1(e,t,n){var l,u,p;let i=Xu(t),r=new Map;i=i.map(g=>{let m=lm(e,g[1],g[0],{keyProperties:[ne.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let o=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Mo.UIAnnotationTerms.SelectionFields}`];typeof o=="object"&&"filterFields"in o&&(i=ps(o.filterFields,i,ne.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ne.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}a(d1,"addCustomFilterFieldDefinition");var _=te(ce()),Pc=require("@sap-ux/vocabularies-types/vocabularies/UI");var dX=["header","filterBar","chart","table"],xA="@UI.LineItem";function PA(e,t,n,i){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=fr(e.fullyQualifiedName,Pc.UIAnnotationTerms.SelectionFields));let r=0;return n==null||n.forEach(o=>{var p,g;let s=o.value,l="SelectionField::"+ut(o.value);o.type==="PropertyPath"&&(s=Ng(o,e)),i.properties[l]={$ref:B+l},i.properties[l][_.SchemaTag.propertyIndex]=r;let u=Jr(o);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...u&&{dataType:u}},t.definitions[l][_.SchemaTag.isViewNode]=!0,t.definitions[l][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${o.value}`}],((p=o.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][_.SchemaTag.target]=o.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(g=o.$target)!=null&&g.fullyQualifiedName&&(t.definitions[l][_.SchemaTag.target]=o.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][_.SchemaTag.annotationType]=o==null?void 0:o.type,t.definitions[l][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${r}`,r++}),i}a(PA,"addSelectionFields");function gX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Pc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let o={};return Object.keys(t).forEach(s=>{t[s].template||(o[s]=t[s])}),Object.keys(o).length>0?o:void 0}}a(gX,"getVisualFilters");function mX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}a(mX,"getPropertiesIndex");function hX(e,t,n,i){var s,l,u,p,g,m;let r=mX(i,e),o=t.definitions[_.DefinitionName.VisualFilters];o.properties={};for(let v in n){let A=n[v];if(!A.template){let E=o.properties[v]={$ref:$n(_.DefinitionName.VisualFilter,v)},O=r.indexOf(v);O!==-1&&(E[_.SchemaTag.propertyIndex]=O);let R=kt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(R[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(j=>j.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();R.description=U||v,R[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}a(hX,"addVisualFilters");function yX(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},d1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ga(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}a(yX,"applyCustomFilterFields");function vX(e,t,n,i){var l,u;let r=gX(n),o=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},hX(e,t,r,o);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=PA(e,t,o,s),yX(t,s,n)}a(vX,"addFilterBar");function g1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let o=e.definitions[t];o.properties={},o.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ut(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=yi(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=o.properties[`${m}::${u.Action}`]={$ref:B+p,description:g};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=u.$Type,v[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}a(g1,"defineActions");function m1(e,t,n,i){var l;let r,o,s;return e&&(n==="primary"?o=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?o=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?o=e.find(u=>u.value.indexOf(i)>-1):o=e[0],r=typeof(o==null?void 0:o.value)=="string"?ul(o.value):void 0,(l=o==null?void 0:o.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${o.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}a(m1,"findTheRightVisualization");function TX(e,t,n,i){let r="@UI.Chart",o=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:o,chartTitle:s}}a(TX,"analyzeChartAnnotation");function EX(e,t,n,i,r,o){var u;let{visualization:s,targetAnnotation:l}=m1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(oe(r,{severity:_.LogSeverity.Error,message:J.t("NOVISUALIZATIONS")}),s=xA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),o=o||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:o}}a(EX,"analyzeSPVforView");function kl(e,t,n,i,r,o){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=m1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return EX(p,s,i,r,o,l);if(u.startsWith("SelectionVariant")){let g=xA,m=`/${s}/@${Pc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=xA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:v}=TX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}a(kl,"analyzeViewAnnotation");function bX(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${B}${_.DefinitionName.ALPChart}`,t){let o=t.split(_.UIVOCABULARYDOT)[1],s=i[o].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}a(bX,"addALPChartView");function AX(e,t,n,i,r,o){var U,j,G,re,Z,he,De,D;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(re=(G=(j=t==null?void 0:t[0])==null?void 0:j.primary)==null?void 0:G[0])==null?void 0:re[_.SchemaTag.annotationPath],{targetAnnotation:u}=kl(l,s,n.serviceAVT,"primary",void 0,n.logger);bX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=B+p,g1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=kl((De=(he=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:he[0])==null?void 0:De[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[o];g||i?(v.properties.toolBar.$ref=`${B}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:B+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let A=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${B}${_.DefinitionName.ALPTable}`):i||(A.properties={}),A[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(_.UIVOCABULARYDOT)[1]),E){let Pt={appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};bc(Pt,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let pt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${pt[0]}/@${pt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Ec(e,r,n.logger);let R=`${_.DefinitionName.Actions}<${ut(_.DefinitionName.LineItems)}>`;ds(e,r,n.logger,void 0,R),wo(e,R,_.DefinitionName.CustomActionPosition)}a(AX,"addALPViews");function SX(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${B}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return g1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${B}${r}`,n}a(SX,"addViewChartDefinitions");function xX(e,t,n,i,r,o){let s=SX(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${B}${s}`,description:o||l,title:l}}a(xX,"addViewChart");function PX(e,t,n,i,r){var m;let o=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=kt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Wa(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${B}${o}`,description:e.title||u,title:u},Wa(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};bc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}a(PX,"addViewLineItems");function CX(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}a(CX,"addTagsToView");function IX(e,t,n){var o;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(o=n.serviceAVT)==null?void 0:o.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}a(IX,"getTargetEntityType");function OX(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Pc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=kt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Wa(l.properties.position,_.DefinitionName.ViewPosition,r),kt(_.DefinitionName.ViewPosition,r,e.appSchema),Ec(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Ac(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&(delete e.appSchema.definitions.Position,delete e.appSchema.definitions.TableCustomColumn);let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;ds(e.appSchema,i,t.logger,p,u,s),kt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${B}${g}`,wo(e.appSchema,u,g)}a(OX,"addViewCustomExtensions");function NX(e,t,n,i,r,o,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)PX(n,t,e,n.targetAnnotation,i),OX(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)xX(n,o,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${B}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${B}${_.DefinitionName.LRTableView}`}}}a(NX,"addLRViewParts");function LX(e,t,n,i,r){var l;let o=e.definitions[r];o.properties={annotationPath:o.properties.annotationPath,initialLoad:o.properties.initialLoad,views:o.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=IX(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:E,title:O}=kl(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(j=>j.targetTypeName===E))==null?void 0:l.name);let R=ut(u[_.SchemaTag.key]),U={viewKey:R,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};NX(v,s,U,n,i,m,u),CX(s,R,E,u)}}a(LX,"addLRViews");function FX(e,t,n,i,r,o){var g,m,v,A,E,O,R,U,j,G;let s=e.definitions[o],{visualization:l,targetAnnotation:u,namespace:p}=kl(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let re=l.split(".")[1],Z=`${_.DefinitionName.LineItems}OfSPV::${ut(re)}`,he=e.definitions[`${o}SPV`]=JSON.parse(JSON.stringify(e.definitions[o]));delete he[_.SchemaTag.isViewNode],Wa(he.properties.toolBar,_.DefinitionName.ToolBar,Z),he[_.SchemaTag.annotationPath]=u,he.properties.columns={},Wa(he.properties.columns,Z),delete s.properties,Wa(s,`${o}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let De=(m=t.entityType)==null?void 0:m.annotations.UI[re];De||oe(t.logger,{severity:_.LogSeverity.Error,message:J.t("NOTARGET",{target:re})});let D={appSchema:e,lineItemAnnotation:De,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Z};bc(D);let Pt=(v=re.split("#"))==null?void 0:v[1],pt=Pt?`@${Pc.UIAnnotationTerms.LineItem}#${Pt}`:`@${Pc.UIAnnotationTerms.LineItem}`;Ec(e,i,t.logger,void 0,Z,pt),Ac(e,Z,i,void 0,pt);let $e=`${_.DefinitionName.Actions}<${Z}>`,fn=am(e,Z,_.DefinitionName.CustomTableAction);ds(e,i,t.logger,gn(fn),$e,pt),wo(e,$e,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${B}${_.DefinitionName.ToolBarLR}`,Wa(s.properties.columns,_.DefinitionName.LineItems);let re=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;re||oe(t.logger,{severity:_.LogSeverity.Error,message:J.t("NOLINEITEMS")});let Z={appSchema:e,lineItemAnnotation:re,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};bc(Z),Ec(e,i,t.logger),Ac(e,_.DefinitionName.LineItems,i),re&&!((j=(U=(R=i.options)==null?void 0:R.settings)==null?void 0:U.views)!=null&&j.paths)&&(s[_.SchemaTag.annotationPath]=fr((G=t.entityType)==null?void 0:G.fullyQualifiedName,re.term,re.qualifier));let he=`${_.DefinitionName.Actions}<${ut(_.DefinitionName.LineItems)}>`;ds(e,i,t.logger,void 0,he),wo(e,he,_.DefinitionName.CustomActionPosition)}}a(FX,"adaptTableDefinition");function RX(e,t,n){var i,r,o,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((o=e.options.settings)!=null&&o.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}a(RX,"getDefaultAnnotationPath");function _X(e,t,n,i){var u,p,g,m,v;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,o=n.entityType,s=RX(t,n.entityType,n.templateType),l=u1(e,n);vX(o,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(FX(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],LX(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(AX(e,r,n,s,t,l),Ac(e,_.DefinitionName.LineItems,t))}a(_X,"addTableAndViews");function DX(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let o=_.DefinitionName.CustomHeaderAction,s=e.definitions[o];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Ph(e,t,n,o,i);let l=_.DefinitionName.CustomHeaderActionPosition;kt(l,l,e,!1),s.properties.position.$ref=`${B}${l}`,wo(e,i,l)}a(DX,"addHeaderActions");function Qu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),o=e.entityType,s=e.serviceAVT&&ri(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Ha(o,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:_.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=xh(l,n,e.entitySet,i);if(!u)return r;DX(r,u,e.logger),_X(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,No(r,dX),r}a(Qu,"generateListReportSchemaV4");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),L=te(ce());var sV=te(Xs()),cV=te(aV()),lV=te(cS());var fV=te(ce()),uV=te(ce());function a6(e,t){var i;let n=e;for(let r of t){let o=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=o==null?void 0:o[r.index]}return n}a(a6,"findElementByXMLPath");function pV(e,t){return e[t]?!1:(e[t]={},!0)}a(pV,"ensureObjectExists");function s6(e,t){let n={},i=gn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}a(s6,"getPropertiesFromRef");function c6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:o,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=pV(l,i),m=l[i];return Rc({fullSchema:u,schema:p[i],element:o,contextPath:s,config:m,parent:e},t)||g}a(c6,"traverseDefaultAggregation");function l6(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}a(l6,"isDefaultAggregationAppliable");function Rc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:o={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=s6(s,n.$ref));for(let v in u){let A=u[v],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===v&&l6(u,p)&&(l=c6(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,R=O.slice(r.length),U=a6(i,R);l=pV(o,v)||l;let j=o[v];l=Rc({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:j,parent:e},t)||l}else l=t(e,A,o,v)||l}return l}a(Rc,"traverseSchema");function tf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:o}=(0,lV.parse)(e.fileContent),s=(0,cV.buildAst)(r,o);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,sV.xml2js)(e.fileContent)}catch(r){oe(n,{severity:uV.LogSeverity.Error,message:J.t("XMLPARSEFAILURE",{error:Vg(r)}),location:{path:e.dataSourceUri}})}return i}a(tf,"parseXML");function nf(e){return`${fV.DefinitionName.CustomExtensionFragment}<${e}>`}a(nf,"getCustomExtensionFragmentDefinitionKey");function yy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}a(yy,"getRootElement");var TS=te(ce()),ES=te(ce());var bp=te(ce());function bs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}a(bs,"getAttribute");function dV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}a(dV,"getNodeByName");function f6(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}a(f6,"resolveMetaPath");function gS(e){var m;let{node:t,serviceAVT:n,connectionContext:i}=e,r=bs(t,"contextPath")||i.contextPath,o=bs(t,"metaPath"),s=i.entitySet,l=o==null?void 0:o.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(o){let v=f6(o);v.path&&(u=l?v.path:`${u}/${v.path}`,o=v.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((m=p==null?void 0:p.target)==null?void 0:m._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}return g?{entityType:g,metaPath:o}:void 0}a(gS,"getEntityTypeResolution");function gV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}a(gV,"applyAnnotationPath");function u6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,o,s;if(r&&i){let g=kl(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];o=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],o!=null&&o.fullyQualifiedName&&(s=nE(r,o.fullyQualifiedName))}}if(o)return{lineItem:o,annotationPath:s}}a(u6,"getTableLineItemAnnotationData");var mV={"sap.fe.macros.Chart":e=>{let t=gS(e);gV(e.schema,t)},"sap.fe.macros.FilterBar":e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=gS(e),o=(s=t.properties)==null?void 0:s.filterFields;if(typeof o=="object"&&r){o.properties||(o.properties={});let g=ri(bp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p.SelectionFields);PA(r.entityType,i,m,o)}},"sap.fe.macros.Table":e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=gS(e),o=t.properties.columns,s=t.properties.actions;if(typeof o=="object"&&typeof s=="object"&&r){o.properties||(o.properties={}),s.properties||(s.properties={});let l=ri(bp.UIVOCABULARY,n);if(gV(t,r),t.annotationPath){let u=u6(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:bp.DefinitionName.LineItems};SA(p,s,t.annotationPath,o)}}}};var hV=te(ce());var p6=new Map([["filterFields","SelectionField::"]]),d6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ap={anchor:"anchor",placement:"placement",key:"key"};function g6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[gn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Ap.anchor in r&&Ap.placement in r}return!1}a(g6,"isCustomExtensionSchema");function yV(e){let t=p6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=d6.get(e),t&&(n.prefix=t)),n}a(yV,"getAnnotationPrefix");function m6(e,t,n,i){let r=t.properties[n],o=yV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=bs(l,Ap.key)||n,p=bs(l,Ap.anchor),g=bs(l,Ap.placement)||hV.v4.Placement.After,m=o.replace?`${o.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}a(m6,"getExtensionData");function h6(e,t,n){let i={},r=[],o={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=m6(e,t,s,n);i[p]=u,o[p]=s}else r.push([s,l])}ps(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in o&&(u=t.properties[o[l]]),u&&(u.propertyIndex=s)}}a(h6,"updatePropertyIndices");function y6(e,t,n,i){var o;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((o=i==null?void 0:i.metadata)!=null&&o.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=bs(e.subElements[s],"key")||r}return r}a(y6,"getCorrectedAnchorEnumKey");function v6(e,t,n,i){var o,s;let r=yV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ga(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(o=p.properties)==null?void 0:o[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=y6(e,m.const,r,t.properties[m.const]))}}a(v6,"applyEnumsForAnchors");function vV(e,t,n,i){g6(t,n)&&(i=i||e.name,h6(e,t,i),v6(e,t,n,i))}a(vV,"handleExtensions");var TV=te(require("crypto"));var Ty=new Uint8Array(256),vy=Ty.length;function mS(){return vy>Ty.length-16&&(TV.default.randomFillSync(Ty),vy=0),Ty.slice(vy,vy+=16)}a(mS,"rng");var li=[];for(let e=0;e<256;++e)li.push((e+256).toString(16).slice(1));function EV(e,t=0){return li[e[t+0]]+li[e[t+1]]+li[e[t+2]]+li[e[t+3]]+"-"+li[e[t+4]]+li[e[t+5]]+"-"+li[e[t+6]]+li[e[t+7]]+"-"+li[e[t+8]]+li[e[t+9]]+"-"+li[e[t+10]]+li[e[t+11]]+li[e[t+12]]+li[e[t+13]]+li[e[t+14]]+li[e[t+15]]}a(EV,"unsafeStringify");var bV=te(require("crypto")),hS={randomUUID:bV.default.randomUUID};function T6(e,t,n){if(hS.randomUUID&&!t&&!e)return hS.randomUUID();e=e||{};let i=e.random||(e.rng||mS)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return EV(i)}a(T6,"v4");var yS=T6;var vS="sap.fe.macros",E6=["id","key","title","text","label","header"];function AV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}a(AV,"getElementName");function b6(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}a(b6,"isElementWithNamespace");function A6(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:o}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[o]=s}return t}a(A6,"getDependencies");function S6(e,t){let n="",i=e.attributes||[];for(let r of E6){let o=i.find(s=>s.key===r);if(o){n=`${r==="id"?"#":""}${o.value}`;break}}return n?`${t} ${n}`:t}a(S6,"getViewNodeDescription");function x6(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}a(x6,"findAvailableName");function SV(e,t){if(e.properties={},e.$ref){let n=gn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}a(SV,"prepareSchemaProperties");function P6(e,t,n){t.properties||SV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let o=i[r.key];o&&o.metadata&&(o.metadata.position=r.position)}}a(P6,"handleAttributes");function C6(e){e.type===ES.MacrosPropertyType.Control&&(e.internalId=yS())}a(C6,"applyIdForMacros");function I6(e,t,n){var i,r;try{(r=(i=mV)[e])==null||r.call(i,t)}catch{oe(n,{severity:TS.LogSeverity.Error,message:J.t("MACROS_ANNOTATION_ERROR",{control:e})})}}a(I6,"callAnnotationHandler");function O6(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===ES.MacrosPropertyType.Control&&(e.controlName=n)}a(O6,"updateMetadataByReference");function N6(e,t,n,i){var v,A,E,O,R;let r=n.schema;t.properties||SV(t,r);let o=t.properties[i],s=(v=o==null?void 0:o.metadata)==null?void 0:v.type,l=(A=o==null?void 0:o.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=o==null?void 0:o.metadata)==null?void 0:E.path)!=null&&O.length?x6(i,t.properties):i,g=[];o!=null&&o.$ref?g.push(gn(o.$ref)):g=[`${vS}.${i}`,`${vS}.table.${i}`,`${vS}.filterBar.${i}`];let m=!1;for(let U of g){let j=(R=r.definitions)==null?void 0:R[U];if(typeof j!="object")continue;O6(u,j,U);let G=S6(e,i),re={$ref:ER(U),description:G,propertyIndex:n.index,metadata:u};P6(e,re,r),t.properties[p]=re,m=!0,I6(U,{...n,node:e,schema:re,rootSchema:n.schema},n.logger);break}if(C6(u),!m)if(o!=null&&o.properties)o.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}a(N6,"addControlToSchema");function xV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let o=r.$ref.split(B)[1];o&&t.indexOf(o)===-1&&t.push(o)}xV(r,t)}}a(xV,"populateUsedDefinitionKeys");function L6(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}a(L6,"isElementAddableToSchema");function F6(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!dV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}a(F6,"getDefaultAggregation");function R6(e,t,n,i){let r={};for(let o=0;o<e.length;o++){let s=e[o],l=!r[s.name];r[s.name]=!0,PV(s,t,{...n,isUnique:l,index:o,path:[...n.path,{name:AV(s),index:o}]},i)}}a(R6,"handleSubElementsOfXMLNode");function PV(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:o}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[gn(t.$ref)]:t;if(b6(e,o)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&L6(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=N6(e,t,n,E[E.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),xV(t,i));let p=F6(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),R6(l,t,n,i),r.push({node:e,schema:t});for(let A of r)vV(A.node,A.schema,n.schema,A.name)}a(PV,"handleXMLNode");function _6(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}a(_6,"getMacrosPrefixes");function _c(e,t,n,i){let r=tf(t.file,!0,i),o=[];if(!r)return;en();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:TS.LogSeverity.Error,message:J.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=A6(l),p=_6(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],A=!g[v.name];g[v.name]=!0,PV(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:AV(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},o)}for(let m in s.definitions)s.definitions[m].metadata&&!o.includes(m)&&delete s.definitions[m]}return s}a(_c,"generateMacrosSchemaDefinition");function CV(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&CV(i.subSections,t)}}a(CV,"populateTemplates");function IV(e,t,n,i){var s,l,u;let r=Sc(n.manifest,i),o=[];CV(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},o);for(let p of o){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=nf(p);e.definitions[m]=g;let v=xc(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:E={}}=_c(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}a(IV,"resolveFragments");var D6=["header","layout","sections","footer"],V6=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],bS="Custom Action";function AS(e,t,n,i,r,o,s){let{actionName:l,namespace:u}=nm(t.item,e),p=ca(t.item),g=t.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${ut(p)}>`,v=i.definitions[m]={type:"object",$ref:`${B}${L.DefinitionName.ObjectPageHeaderAction}`,description:yi(t.item,r)};v[L.SchemaTag.isViewNode]=!0,v[L.SchemaTag.dataType]=Jr(t.item),v[L.SchemaTag.propertyIndex]=s,v[L.SchemaTag.keys]=[],t.item[L.SchemaKeyName.semanticObject]&&v[L.SchemaTag.keys].push({name:L.SchemaKeyName.semanticObject,value:t.item[L.SchemaKeyName.semanticObject]}),v[L.SchemaTag.keys].push({name:L.SchemaKeyName.action,value:l}),u&&(i.definitions[m][L.SchemaTag.target]=u),v[L.SchemaTag.actionType]=n,v[L.SchemaTag.annotationPath]=`/${g}`,o.properties[p]={$ref:`${B}${m}`},o.properties[p][L.SchemaTag.propertyIndex]=s}a(AS,"addSingleHeaderActionV4");function OV(e,t,n,i){let r=`${e}Action`,o=`ObjectPageHeaderAction<${r}>`,s=t.definitions[o]={type:"object",description:`${e}`,additionalProperties:!0};return s[L.SchemaTag.isViewNode]=!0,s[L.SchemaTag.propertyIndex]=i,s[L.SchemaTag.keys]=[],s[L.SchemaTag.keys].push({name:L.SchemaKeyName.action,value:e}),s[L.SchemaTag.actionType]=L.ActionType.Standard,n.properties[r]={$ref:`${B}${o}`},n.properties[r][L.SchemaTag.propertyIndex]=i,s}a(OV,"addStandardHeaderAction");function NV(e,t,n,i,r,o){let s=ca(e.item),l=yi(e.item,n),u=ut(`${L.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${B}${L.DefinitionName.FooterActionV4}`,description:l};g[L.SchemaTag.isViewNode]=!0,g[L.SchemaTag.actionType]=t,g[L.SchemaTag.propertyIndex]=o,g[L.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${B}${u}`}}a(NV,"addSingleFooterAction");function M6(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===vr.UIAnnotationTypes.DataFieldForAction||i.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(V6.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}a(M6,"groupByCriticality");function w6(e,t,n,i,r){for(let o=0;o<e.length;o++)AS(t,e[o],L.ActionType.Criticality,n,i,r,o)}a(w6,"addCriticalActions");function k6(e,t,n,i,r,o){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(AS(t,e[s],L.ActionType.Copy,n,i,r,o),o++,e.splice(s,1))}a(k6,"addCopyAction");function U6(e,t,n,i,r,o){for(let s of e)AS(t,s,L.ActionType.Annotation,n,i,r,o),o++}a(U6,"addUncriticalActions");function LV(e,t,n,i){var r,o,s,l;(o=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&o[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[L.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${L.UIVOCABULARYALPHADOT}${i}`:e[L.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${L.UIVOCABULARYALPHADOT}${i}`}a(LV,"setAnnotationPathFromEntitySetOrEntityType");function j6(e,t,n,i,r,o){let{criticalActions:s=[],unCriticalActions:l=[]}=n?M6(n):{};if(w6(s,r,t,e,i),o){let p=qR(o),g=zR(o);if(qg(o)&&g){let m=OV("Edit",t,i,s.length);LV(m,o,e,"UpdateHidden")}if(p){let m=OV("Delete",t,i,s.length+1);LV(m,o,e,"DeleteHidden")}}let u=s.length+2;k6(l,r,t,e,i,u),U6(l,r,t,e,i,u)}a(j6,"addHeaderActionCallBackV4");function $6(e,t,n,i){let r=[],o=[];i.forEach((s,l)=>{s.Determining&&s.$Type===vr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):o.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];NV(l,L.ActionType.Criticality,e,t,n,s)}for(let s=0;s<o.length;s++){let l=o[s];NV(l,L.ActionType.Annotation,e,t,n,r.length+s)}}a($6,"addFooterActionCallBackV4");function B6(e,t,n,i,r){let o=n!==L.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${L.DefinitionName.CustomColumnOP}<${n}>`:L.DefinitionName.CustomColumnOP,l=e.definitions[s];l[L.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${L.DefinitionName.CustomColumnOP}<${n}>`;Ec(e,t,r,u,n,i);let p=o?n:L.DefinitionName.PositionOP;kt(L.DefinitionName.PositionOP,p,e,o);let g=o?`${L.DefinitionName.PositionOP}<${n}>`:L.DefinitionName.PositionOP;l.properties.position.$ref=`${B}${g}`,Ac(e,n,t,g,i.replace(/::/g,"/"))}a(B6,"addCustomColumnsOP");function H6(e,t,n,i,r){let o=n!==L.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${L.DefinitionName.CustomTableActionOP}<${n}>`:L.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[L.SchemaTag.isViewNode]=!0,l.description=bS;let u=`${L.DefinitionName.CustomTableActionOP}<${n}>`,p=`${L.DefinitionName.Actions}<${ut(n)}>`;ds(e,t,r,u,p,i);let g=o?n:L.DefinitionName.CustomActionPositionOP;kt(L.DefinitionName.CustomActionPositionOP,g,e,o);let m=o?`${L.DefinitionName.CustomActionPositionOP}<${n}>`:L.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${B}${m}`,wo(e,p,m)}a(H6,"addTableCustomActionsOP");function RV(e,t,n,i){let r=e.definitions[n];r[L.SchemaTag.isViewNode]=!0,r.description=bS;let o=n===L.DefinitionName.CustomHeaderActionOP?L.DefinitionName.ObjectPageHeaderActions:L.DefinitionName.FooterActions;Ph(e,t,i,n,o);let s=n===L.DefinitionName.CustomHeaderActionOP?L.DefinitionName.CustomHeaderActionPositionOP:L.DefinitionName.CustomFooterActionPositionOP;kt(s,s,e,!1),r.properties.position.$ref=`${B}${s}`,wo(e,o,s),e.definitions[o]&&(e.definitions[o].additionalProperties={$ref:`${B}${n}`})}a(RV,"addHeaderFooterCustomActionsOP");function W6(e,t,n,i,r){let o=`${L.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[o];s[L.SchemaTag.isViewNode]=!0,s.description=bS;let l=`${L.DefinitionName.CustomFormActionOP}<${n}>`,u=`${L.DefinitionName.SectionActions}<${ut(n)}>`;ds(e,t,r,l,u,i),kt(L.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${L.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${B}${p}`,wo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${B}${o}`})}a(W6,"addFormCustomActionsOP");function G6(e,t,n,i,r,o,s){let l=hl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=kt(L.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[L.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${B}${l}`},g.properties.toolBar.$ref=$n(L.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(L.DefinitionName.QuickVariantSelectionV4OP,t);let m=kt(L.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(L.DefinitionName.AnnotationPathAsObject,t),kt(L.DefinitionName.AnnotationPathAsObject,t,n),Ha(e.entityType,n,`${L.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return bc(v,L.DefinitionName.ObjectPageTableColumn,L.DefinitionName.CustomColumnOP,L.DefinitionName.CustomTableActionOP),B6(n,o,l,t,s),H6(n,o,l,t,s),g}a(G6,"handleLineItem");function _V(e,t,n,i,r,o,s){s&&(s.properties[t]={$ref:$n(L.DefinitionName.ObjectPageSectionTableV4,t)});let l=kt(L.DefinitionName.ObjectPageSectionTableV4,t,n);ja(e,l,hl(t)),l[L.SchemaTag.annotationPath]=e.annotationPath,l[L.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(L.DefinitionName.ObjectPageTable,t);let u=G6(e,t,n,i,r.serviceAVT,o,r.logger);return{sectionTable:l,table:u}}a(_V,"handleSectionTable");function K6(e,t,n,i,r,o,s){let l;o===L.SectionType.Section?l=L.DefinitionName.ObjectPageSectionForm:o===L.SectionType.HeaderSection&&(l=L.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=kt(l,n,r);e.ID||(u.properties={}),ja(e,u,n),u[L.SchemaTag.annotationPath]=e.annotationPath,u[L.SchemaTag.target]=e.namespace,u[L.SchemaTag.isViewNode]=!0;let p=tm(o,e,u,r,L.FioriElementsVersion.v4,n);if(e.base===L.FacetBase.Form){let g=hl(n);kt(L.DefinitionName.CustomFormActionOP,p,r),W6(r,t,p,g,s)}}a(K6,"handleFormIdentification");function FV(e,t,n,i,r){n.properties[t]={$ref:`${B}${r}`};let o=kt(L.DefinitionName.CommonHeaderFacetSettings,r,i,!1);fl(e,o,t),o[L.SchemaTag.annotationPath]=e.annotationPath,o[L.SchemaTag.target]=e.namespace,o[L.SchemaTag.dataType]=tc(e==null?void 0:e.target),o[L.SchemaTag.isViewNode]=!0}a(FV,"handleHeaderFacet");function X6(e,t,n,i){let r=kt(L.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let o=0;e.Actions.forEach(s=>{let l=yi(s,i),u=s.$Type.split(L.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),g=r.properties[`${u}::${s.Action}`]={$ref:$n(L.DefinitionName.ObjectPageToolBarAction,p),description:l};g[L.SchemaTag.propertyIndex]=o,g[L.SchemaTag.annotationType]=s.$Type;let m=kt(L.DefinitionName.ObjectPageToolBarAction,ut(p),n);m[L.SchemaTag.annotationPath]=cm(s),m[L.SchemaTag.dataType]=Jr(s),m.properties={},o++})}return r}a(X6,"handleChartActions");function Q6(e,t,n,i){let r=kt(L.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[L.SchemaTag.annotationPath]=cm(e),r[L.SchemaTag.dataType]=tc(e.target||e),r[L.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(L.DefinitionName.ObjectPageToolBar,t);let o=kt(L.DefinitionName.ObjectPageToolBar,t,n);o.properties.actions.$ref=$n(L.DefinitionName.ObjectPageToolBarActions,t);let s=X6(e,t,n,i);return{chart:r,chartActions:s}}a(Q6,"handleChart");function DV(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(L.DefinitionName.ObjectPageSectionChart,t)});let o=kt(L.DefinitionName.ObjectPageSectionChart,t,n);fl(e,o,t),o[L.SchemaTag.annotationPath]=cm(e),o.properties.chart.$ref=$n(L.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=Q6(e.target||e,t,n,r);return{sectionChart:o,chart:s,chartActions:l}}a(DV,"handleSectionChart");function q6(e,t,n,i,r,o){var m,v;let s,l,u;if(!(e!=null&&e.target)){oe(r.logger,{severity:L.LogSeverity.Error,message:J.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=(m=e==null?void 0:e.target)==null?void 0:m.Visualizations,g=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l=`@${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,u=s;else{s=p[0],l="@"+gE(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let E=r.entityType.navigationProperties.find(R=>R.name===g).targetType,O=l==null?void 0:l.split(L.UIVOCABULARYDOT)[1];u=O&&((v=E==null?void 0:E.annotations)==null?void 0:v.UI[O])}if(s){let A=l.split(L.UIVOCABULARYDOT)[1],E=e.target[L.SchemaTag.fullyQualifiedName].split("@")[0],O=g?`${g}::${l}`:l;if(A.startsWith(L.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(L.DefinitionName.ObjectPageSectionChart,O)};let{sectionChart:R,chart:U}=DV(s,O,n,void 0,e.entityType);R[L.SchemaTag.annotationPath]=e.annotationPath,fl(e,R,t),U[L.SchemaTag.annotationPath]=`/${E}/${l}`,U[L.SchemaTag.target]=E}else if(A.startsWith(L.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(L.DefinitionName.ObjectPageSectionTableV4,O)};let{sectionTable:R,table:U}=_V(e,O,n,{target:u,entityType:e.entityType},r,o);R[L.SchemaTag.annotationPath]=e.annotationPath,fl(e,R,t),delete R[L.SchemaTag.isViewNode],U[L.SchemaTag.annotationPath]=`/${E}/${l}`,U[L.SchemaTag.target]=E}}}a(q6,"handleSectionPresentationVariant");function z6(e){let t=e.facets||{};for(let n in t)if(t[n].base===L.FacetBase.CollectionFacet)return!0;return!1}a(z6,"containsCollectionFacet");function Y6(e,t,n){var o;let i=`${L.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[L.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((o=r.properties)==null?void 0:o.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};qs(n,L.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}a(Y6,"createCustomSubSectionReference");function VV(e,t,n,i,r,o){var g,m,v,A,E;let s=!1,l;r&&o?(s=!z6(r),l=Y6(t,o,n.featureToggles)):l=L.DefinitionName.ObjectPageCustomHeaderSectionFragment,e.additionalProperties={$ref:`${B}${l}`},p1(t,e,i,l,s,o,n.logger);let u=t.definitions[l];typeof u=="object"&&Ga(t,e,{schema:u,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[L.SchemaKeyName.id,L.SchemaKeyName.key],descriptionAsFallback:!0});let p=u.properties.relatedFacet;if(l!=null&&l.includes(L.DefinitionName.ObjectPageCustomSubSectionFragment)&&s&&typeof p=="object"){let O=(E=(A=(v=(m=(g=i.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[o],R=O&&"subSections"in O?O.subSections:{};for(let U=p.oneOf.length-1;U>=0;U--){let j=p.oneOf[U];R[j.const]||(j.hidden=!0)}}}a(VV,"applyCustomSections");function J6(e,t,n,i,r,o,s,l){let u=l===0,p=i.properties[t]=Io(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[L.SchemaTag.annotationPath]=e.annotationPath,g[L.SchemaTag.target]=e.namespace,g[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:e.ID}],g[L.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)SS(o,e.facets,v,g,n,r,s,m);u&&VV(g,n,o,s,e,t)}a(J6,"handleCollection");function SS(e,t,n,i,r,o,s,l=0){let u=t[n],p=`ObjectPage${o}${u.base}<${hl(n)}>`;switch(u.base){case L.FacetBase.PresentationVariant:{q6(u,n,r,i,e,s);break}case L.FacetBase.CollectionFacet:{J6(u,n,r,i,o,e,s,l);break}case L.FacetBase.LineItem:{if(o===L.SectionType.Section){let g=t[n];_V(u,n,r,g,e,s,i)}break}case L.FacetBase.Form:case L.FacetBase.Identification:{K6(u,s,n,i,r,o,e.logger);break}case L.FacetBase.DataPoint:{FV(u,n,i,r,p);break}case L.FacetBase.Chart:{o===L.SectionType.HeaderSection?FV(u,n,i,r,p):o===L.SectionType.Section&&DV(u,n,r,i);break}case L.FacetBase.Address:case L.FacetBase.Contact:{nu(u,n,i,r,o);break}default:i.properties[n]=Io(r,u,n)}}a(SS,"addSection");function Z6(e,t,n){let i=Fg(e.entityType,e.serviceAVT,L.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[L.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[L.DefinitionName.Sections];for(let o in i)SS(e,i,o,r,t,L.SectionType.Section,n);t.definitions[L.DefinitionName.CustomSections]&&(r.properties={...r.properties,...t.definitions[L.DefinitionName.CustomSections].properties})}a(Z6,"addSections");function eq(e,t,n,i){let r=Lg(n,e.serviceAVT,L.FioriElementsVersion.v4,e.logger),o=t.definitions[L.DefinitionName.HeaderSections];if(o.properties={},o.additionalProperties=!1,!!r){for(let s in r)SS(e,r,s,o,t,L.SectionType.HeaderSection,i);VV(o,t,e,i),delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionAddress]}}a(eq,"addHeaderSections");function tq(e,t,n,i){Object.keys(n).forEach(r=>{var o,s,l,u,p;if(n[r].options&&n[r].options.settings&&(n[r].options.settings.entitySet===((o=e==null?void 0:e.entitySet)==null?void 0:o.name)||i&&n[r].options.settings.contextPath===i)&&n[r].name===L.v4.FE_TEMPLATE_V4_OBJECT_PAGE){let g=Rg(e.entityType,e.serviceAVT,e.logger),v=(p=(u=(l=(s=n[r].options)==null?void 0:s.settings)==null?void 0:l.content)==null?void 0:u.body)==null?void 0:p.sections;if(v)for(let A in v){let E=v[A];g.some(O=>O.key===A)||g.push({key:A,title:E.title,custom:!0})}sm(t,[L.DefinitionName.ObjectPageCustomSectionFragment],g,["ID","label","key"])}})}a(tq,"addRelatedFacetKeysType");function nq(e,t,n){let i=e.entityType;om(t,i),rm(t,i,e.entitySet,e.serviceAVT,j6),RV(t,n,L.DefinitionName.CustomHeaderActionOP,e.logger),i&&(t.definitions[L.DefinitionName.HeaderSections][L.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${vr.UIAnnotationTerms.HeaderFacets}`),eq(e,t,i,n)}a(nq,"addHeader");function Sp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${B}${L.DefinitionName.Sections}`},!e.manifest[L.ManifestSection.ui5].routing||!e.manifest[L.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:L.LogSeverity.Error,message:J.t("NOROUTING"),location:{path:L.MANIFESTPATH}}),r;let o=r.definitions[L.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:L.DefinitionName.Sections};if(o[L.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[L.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:L.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}}),r;let l=xh(s,L.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(nq(e,r,l),o[L.SchemaTag.isViewNode]=!0,e.entityType&&(o[L.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${vr.UIAnnotationTerms.Facets}`),Z6(e,r,l),tq(e,r,s,n),qs(e.featureToggles,L.Features.BuildingBlocks)&&i){r.definitions[L.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{IV(r,i,e,l.id)}catch(u){oe(e.logger,{severity:L.LogSeverity.Error,message:u})}}im(r,e,L.FioriElementsVersion.v4,$6),RV(r,l,L.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[L.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[L.DefinitionName.GenericColumnsOP],delete r.definitions[L.DefinitionName.GenericSections],delete r.definitions[L.DefinitionName.GenericSubSections],delete r.definitions[L.DefinitionName.ObjectPageChart],delete r.definitions[L.DefinitionName.ObjectPageSectionAddress],delete r.definitions[L.DefinitionName.ObjectPageSectionChart],delete r.definitions[L.DefinitionName.ObjectPageSectionContact],delete r.definitions[L.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[L.DefinitionName.ObjectPageSectionForm],delete r.definitions[L.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[L.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[L.DefinitionName.ObjectPageSubSections],delete r.definitions[L.DefinitionName.ObjectPageTable],delete r.definitions[L.DefinitionName.ObjectPageToolBar],delete r.definitions[L.DefinitionName.ObjectPageToolBarAction],delete r.definitions[L.DefinitionName.ObjectPageToolBarActions],delete r.definitions[L.DefinitionName.QuickVariantSelectionV4OP],No(r,D6),r}a(Sp,"generateObjectPageSchemaV4");function xS(e,t){return JSON.parse(JSON.stringify(t))}a(xS,"generateFreestyleSchemaV4");var Br=te(ce());function PS(e,t,n,i,r,o,s,l,u){let p=Po(n,r),{entitySet:g,entityType:m}=Dc(p,s,t,r),v={templateType:Br.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Br.FioriElementsVersion.v4,manifest:i,fragments:o,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Sp(v,e,s,l)}a(PS,"generateObjectPageInterfaceV4");function Ey(e,t,n,i,r,o,s){en();let l=Po(i,r),{entitySet:u,entityType:p}=Dc(l,s,n,r),g={templateType:e,fioriElementsVersion:Br.FioriElementsVersion.v4,manifest:o,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Br.TemplateType.ListReportObjectPageV4?Br.v4.FE_TEMPLATE_V4_LIST_REPORT:Br.v4.FE_TEMPLATE_V4_ALP;return Qu(g,t,m,s)}a(Ey,"generateListReportInterfaceV4");function CS(e,t,n,i,r,o){let s=Po(n,o),l={templateType:e,fioriElementsVersion:Br.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:o};return xS(l,t)}a(CS,"generateFreestyleInterfaceV4");function IS(e,t,n,i,r,o,s){let l={};if(qs(o,Br.Features.BuildingBlocks)){let u=Po(r,s),p=gs(i||[],t,n,s);l=p!=null&&p.file.fileContent?_c(e,p,u,s):{}}return l}a(IS,"generateFPMCustomPageInterfaceV4");var Mc=require("@sap-ux/vocabularies-types/vocabularies/UI"),jV=te(ce());var Vc=te(ce());var kV=new Map([[Vc.PageTypeV2.ListReport,Vc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Vc.PageTypeV2.ObjectPage,Vc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),MV=a((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),wV=a(e=>{var t;for(let[n,i]of kV)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let o=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${o}`}return r}},"getExtensionKeyForImport"),iq=a((e,t)=>{let n="";for(let[r,o]of kV)e.startsWith(r)&&(n=o);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),UV={manifest:{path:()=>`sap.ui5/extends/extensions/${Vc.v4.SAPUI5_CONTROLLER_EXTENSION}`,import:e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=wV(n);i&&(t[i]={},MV(e[n],t[i]))}return Object.keys(t).length?t:void 0},export:(e,t,n)=>{var o;let i=(t==null?void 0:t.id)||"",r=((o=t==null?void 0:t.settings)==null?void 0:o[n])||{};for(let s in r){let l=iq(s,i);e[l]||(e[l]={}),MV(r[s],e[l])}for(let s in e){let l=wV(s);l&&!r[l]&&delete e[s]}}}};var yt=a(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Sy=a(e=>yt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),xy=a(e=>yt(e)+"/content/header","getSettingsPathForHeaderOP"),rq=a(e=>yt(e)+"/content/footer","getSettingsPathForFooterOP"),Hr=a(e=>yt(e)+"/controlConfiguration","getControlConfigurationPath"),Py=a((e,t,n)=>Hr(e)+`/@${Mc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Cy=a(e=>Hr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),As=a((e,t,n,i)=>Hr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),OS=a((e,t,n,i)=>Cy(e)+`/filterFields/${i}`,"getFilterFieldPath"),Tr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/tableSettings`:void 0},"getTableSettingsPathForView"),zi=a((e,t,n,i,r)=>r?Tr(e,t,n,i,r):Hr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Iy=a((e,t,n,i,r)=>zi(e,t,n,i,r)+jV.QUICKVARPATH,"getQuickVariantPath"),Yi=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/columns/${i}`:void 0},"getColumnsPathForView"),Di=a((e,t,n,i,r)=>r?Yi(e,t,n,i,r):Hr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Wr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/actions/${i}`:void 0},"getActionsPathForView"),Er=a((e,t,n,i,r)=>r?Wr(e,t,n,i,r):Hr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Ji=a((e,t,n,i)=>Hr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=a((e,t,n,i)=>Hr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),fi=a((e,t,n,i)=>xy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),fo=a((e,t,n,i)=>rq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Fn=a((e,t,n)=>Hr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Sa=a((e,t,n,i)=>{let r=yt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),br=a((e,t,n,i)=>{let r=yt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),of=a((e,t,n,i,r,o,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=yt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Ay=class Ay{};a(Ay,"ApplicationV4"),h([Mt("settings")],Ay.prototype,"settings",2);var by=Ay,Bo=class Bo{};a(Bo,"AppSettings"),h([T({manifest:{path:()=>"sap.app"}})],Bo.prototype,"title",2),h([T({manifest:{path:()=>"sap.app"}})],Bo.prototype,"description",2),h([T({manifest:{path:()=>"sap.ui5/routing/config"}}),C({since:"1.78.0"})],Bo.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:()=>"sap.ui5"}}),C({since:"1.56.0"})],Bo.prototype,"flexEnabled",2),h([T({manifest:{path:()=>"sap.ui5/routing/config"}})],Bo.prototype,"viewType",2),h([T({manifest:{path:()=>"sap.ui5/routing/config"}})],Bo.prototype,"path",2),h([T(UV)],Bo.prototype,"controllerExtensions",2);var rf=Bo;var me=te(ce());function Et(e,t,n,i,r,o,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=o&&o.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Co(t,v,o,p,!0),l&&Object.keys(l).length>0&&(pl(m,l,g,e,o,r),$g(u,l,v,s))}}}a(Et,"importSettingsOfObject");var fP={};Gs(fP,{ALPChart:()=>_S,ALPTable:()=>uf,ActionAfterExecutionConfiguration:()=>$S,ActionAfterExecutionConfigurationFooter:()=>aP,ActionAfterExecutionConfigurationForm:()=>qx,ActionAfterExecutionConfigurationOP:()=>Xp,ActionAfterExecutionConfigurationObjectPageHeader:()=>tP,ActionAfterExecutionConfigurationToolBarLR:()=>JS,Actions:()=>QS,CommonHeaderFacetSettings:()=>Is,CommonViewSettings:()=>ff,CustomActionPosition:()=>tx,CustomActionPositionOP:()=>ax,CustomFilterField:()=>px,CustomFilterFieldPosition:()=>ux,CustomFooterActionOP:()=>lP,CustomFooterActionPositionOP:()=>cP,CustomFormActionOP:()=>cx,CustomHeaderAction:()=>yx,CustomHeaderActionOP:()=>rP,CustomHeaderActionPosition:()=>Hp,CustomHeaderActionPositionOP:()=>iP,CustomTableAction:()=>nx,CustomTableActionOP:()=>sx,FilterBar:()=>lx,FlexSettings:()=>Nx,FooterActionV4:()=>sP,FormAction:()=>zx,Header:()=>gx,HeaderActions:()=>dx,HeaderSections:()=>Vx,LRChartView:()=>DS,LRTableView:()=>VS,MultiTableModeV4:()=>wS,ObjectPageCustomHeaderSectionFlexSettings:()=>Kx,ObjectPageCustomHeaderSectionFragment:()=>Xx,ObjectPageCustomSectionFragment:()=>yf,ObjectPageCustomSubSectionFragment:()=>Qx,ObjectPageFooter:()=>Cx,ObjectPageFooterActions:()=>Px,ObjectPageForm:()=>Jx,ObjectPageFormActions:()=>Yx,ObjectPageHeader:()=>Sx,ObjectPageHeaderAction:()=>nP,ObjectPageHeaderActions:()=>Ax,ObjectPageHeaderSectionAddress:()=>Dx,ObjectPageHeaderSectionChart:()=>Fx,ObjectPageHeaderSectionContact:()=>_x,ObjectPageHeaderSectionDataPoint:()=>Rx,ObjectPageHeaderSectionForm:()=>Lx,ObjectPageLayout:()=>Bx,ObjectPageTable:()=>qp,ObjectPageTableColumn:()=>df,ObjectPageTableColumnAction:()=>vx,ObjectPageToolBarAction:()=>ox,PersonalizationType:()=>LS,PersonalizationTypeOP:()=>Wx,Position:()=>WS,PositionOP:()=>Tx,QuickVariantSelectionV4:()=>RS,QuickVariantSelectionV4OP:()=>Gx,Table:()=>kS,TableColumn:()=>_y,TableColumnAction:()=>BS,TableCreationModeOP:()=>Hx,TableCustomColumn:()=>KS,TableCustomColumnOP:()=>Ex,TableSettings:()=>Oy,TableViewExtension:()=>MS,TableViewSettings:()=>Cp,ToolBar:()=>qS,ToolBarAction:()=>ZS,ViewCustomActionPosition:()=>ix,ViewPersonalizationType:()=>FS,ViewPosition:()=>GS,ViewTableColumn:()=>Dy,ViewTableColumnAction:()=>HS,ViewTableCustomAction:()=>rx,ViewTableCustomColumn:()=>XS,ViewToolBarAction:()=>ex,VisualFilter:()=>fx,checkViewOrder:()=>US,deleteCreationModeProperty:()=>Op,deletePersonalizationProperty:()=>mo,exportCreationModeProperty:()=>Ip,exportPersonalization:()=>Ry,exportPersonalizationProperty:()=>go});var NS=te(ce());var oq=a((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function po(e,t,n,i,r,o){let s=Sy(e),l=oq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[NS.SchemaTag.key]===(o==null?void 0:o.key)||g[NS.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}a(po,"getSettingsPathForLRViewsPath");function aq(e,t,n,i,r,o){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+o)]=g:s[u]=g}return s}a(aq,"fillNewlyOrderedViews");function US(e,t){let n=t.key,i=e.findIndex(o=>(o==null?void 0:o.key)===n),r=t.index;if(i>-1&&i!==r){let o=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=aq(e,n,r,s,l,o);for(let p of Object.keys(u))e[p]=u[p]}}a(US,"checkViewOrder");function Ry(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}a(Ry,"exportPersonalization");function go(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}a(go,"exportPersonalizationProperty");function mo(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}a(mo,"deletePersonalizationProperty");function jS(e,t,n,i,r,o){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=o.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}a(jS,"deleteView");function Ip(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}a(Ip,"exportCreationModeProperty");function Op(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}a(Op,"deleteCreationModeProperty");function $V(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}a($V,"importPersonalization");function BV(e,t,n,i){let r=e.findIndex(o=>o.key===i[0]);return r===-1?void 0:r}a(BV,"determineIndexOfView");var af=class af{};a(af,"PersonalizationType"),h([T({manifest:{path:zi,export:go,delete:mo}})],af.prototype,"column",2),h([T({manifest:{path:zi,export:go,delete:mo}})],af.prototype,"sort",2),h([T({manifest:{path:zi,export:go,delete:mo}})],af.prototype,"filter",2);var LS=af,sf=class sf{};a(sf,"ViewPersonalizationType"),h([T({manifest:{path:Tr,export:go,delete:mo}})],sf.prototype,"column",2),h([T({manifest:{path:Tr,export:go,delete:mo}})],sf.prototype,"sort",2),h([T({manifest:{path:zi,export:go,delete:mo}})],sf.prototype,"filter",2);var FS=sf,cf=class cf{};a(cf,"QuickVariantSelectionV4"),h([T({manifest:{path:Iy}})],cf.prototype,"paths",2),h([T({manifest:{path:Iy}})],cf.prototype,"hideTableTitle",2),h([T({manifest:{path:Iy}})],cf.prototype,"showCounts",2);var RS=cf,uo=class uo{};a(uo,"TableSettings"),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],uo.prototype,"type",2),h([T({manifest:{path:zi,import:$V,export:Ry}}),C({since:"1.86.0"})],uo.prototype,"personalization",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],uo.prototype,"selectionMode",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"})],uo.prototype,"selectAll",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"})],uo.prototype,"selectionLimit",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],uo.prototype,"enableExport",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"})],uo.prototype,"quickVariantSelection",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],uo.prototype,"condensedTableLayout",2);var Oy=uo,Ny=class Ny{};a(Ny,"ALPChart"),h([T({manifest:{path:t=>yt(t)+"/views/paths/0/primary/0",delete:jS}})],Ny.prototype,"annotationPath",2);var _S=Ny,wc=class wc{};a(wc,"CommonViewSettings"),h([T({manifest:{path:po,delete:zs}})],wc.prototype,"key",2),h([T({manifest:{path:Sy,import:BV,export:(t,n)=>{US(t,n)},delete:jS}})],wc.prototype,"index",2),h([T({manifest:{path:po,delete:zs}})],wc.prototype,"annotationPath",2),h([T({manifest:{path:po}})],wc.prototype,"entitySet",2);var ff=wc,Gr=class Gr extends ff{};a(Gr,"TableViewSettings"),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"type",2),h([T({manifest:{path:Tr,import:$V}}),C({since:"1.86.0"})],Gr.prototype,"personalization",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"selectionMode",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"selectAll",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"selectionLimit",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Gr.prototype,"enableExport",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"quickVariantSelection",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Gr.prototype,"condensedTableLayout",2),h([T({manifest:{path:Tr}}),C({since:"1.117.0"}),Re("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Gr.prototype,"hierarchyQualifier",2);var Cp=Gr;function sq(e){return Cp}a(sq,"getTableViewSettings");var xp=class xp extends Cp{};a(xp,"ALPTable"),h([T({manifest:{path:t=>yt(t)+"/views/paths/0/secondary/0",delete:zs}})],xp.prototype,"annotationPath",2),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],xp.prototype,"initialLoad",2);var uf=xp,Ly=class Ly extends ff{};a(Ly,"LRChartView"),h([T({manifest:{path:po},generate:qn})],Ly.prototype,"visible",2);var DS=Ly,lf=class lf extends sq(ff){};a(lf,"LRTableView"),h([T({manifest:{path:po}})],lf.prototype,"keepPreviousPersonalization",2),h([T({manifest:{path:po}})],lf.prototype,"entitySet",2),h([T({manifest:{path:po},generate:qn})],lf.prototype,"visible",2);var VS=lf,Ss=class Ss{};a(Ss,"TableViewExtension"),h([T({manifest:{path:po}})],Ss.prototype,"key",2),h([T({manifest:{path:Sy,import:BV,export:(t,n)=>{US(t,n)},delete:jS}})],Ss.prototype,"index",2),h([T({manifest:{path:po}})],Ss.prototype,"label",2),h([T({manifest:{path:po}})],Ss.prototype,"template",2),h([T({manifest:{path:po},generate:qn})],Ss.prototype,"visible",2);var MS=Ss,Fy=class Fy{};a(Fy,"MultiTableModeV4"),h([T({manifest:{path:t=>yt(t)+"/views"}})],Fy.prototype,"showCounts",2);var wS=Fy,Pp=class Pp extends Oy{};a(Pp,"Table"),h([T({manifest:{path:t=>yt(t)+"/views/paths/0/secondary/0",delete:zs}})],Pp.prototype,"annotationPath",2),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Pp.prototype,"initialLoad",2);var kS=Pp;var Np=class Np{};a(Np,"ActionAfterExecutionConfiguration"),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Np.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Np.prototype,"enableAutoScroll",2);var $S=Np,Lp=class Lp{};a(Lp,"TableColumn"),h([T({manifest:{path:Di}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Lp.prototype,"width",2),h([T({manifest:{path:Di}}),C({since:"1.85.0"})],Lp.prototype,"availability",2);var _y=Lp,Fp=class Fp{};a(Fp,"ViewTableColumn"),h([T({manifest:{path:Yi}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Fp.prototype,"width",2),h([T({manifest:{path:Yi}}),C({since:"1.85.0"})],Fp.prototype,"availability",2);var Dy=Fp,Vy=class Vy extends _y{};a(Vy,"TableColumnAction"),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Vy.prototype,"afterExecution",2);var BS=Vy,My=class My extends Dy{};a(My,"ViewTableColumnAction"),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],My.prototype,"afterExecution",2);var HS=My,Rp=class Rp{};a(Rp,"Position"),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],Rp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],Rp.prototype,"placement",2);var WS=Rp,_p=class _p{};a(_p,"ViewPosition"),h([T({manifest:{path:(t,n,i,r,o)=>Yi(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],_p.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Yi(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],_p.prototype,"placement",2);var GS=_p,Ho=class Ho{};a(Ho,"TableCustomColumn"),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"position",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"header",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ho.prototype,"width",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"template",2),h([T({manifest:{path:Di}}),C({since:"1.86.0"})],Ho.prototype,"horizontalAlign",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"availability",2),h([T({manifest:{path:Di}}),C({since:"1.85.0"})],Ho.prototype,"properties",2);var KS=Ho,Wo=class Wo{};a(Wo,"ViewTableCustomColumn"),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"position",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"header",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"template",2),h([T({manifest:{path:Yi}}),C({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"availability",2),h([T({manifest:{path:Yi}}),C({since:"1.85.0"})],Wo.prototype,"properties",2);var XS=Wo;var zS=class zS{};a(zS,"Actions");var QS=zS,YS=class YS{};a(YS,"ToolBar");var qS=YS;var Dp=class Dp{};a(Dp,"ActionAfterExecutionConfigurationToolBarLR"),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/afterExecution"}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/afterExecution"}})],Dp.prototype,"enableAutoScroll",2);var JS=Dp,Vp=class Vp{};a(Vp,"ToolBarAction"),h([T({manifest:{path:Er}})],Vp.prototype,"enableOnSelect",2),h([T({manifest:{path:Er}})],Vp.prototype,"afterExecution",2);var ZS=Vp,Mp=class Mp{};a(Mp,"ViewToolBarAction"),h([T({manifest:{path:Wr}})],Mp.prototype,"enableOnSelect",2),h([T({manifest:{path:Wr}})],Mp.prototype,"afterExecution",2);var ex=Mp,wp=class wp{};a(wp,"CustomActionPosition"),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],wp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],wp.prototype,"placement",2);var tx=wp,xa=class xa{};a(xa,"CustomTableAction"),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"text",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"position",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"press",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([T({manifest:{path:Er},generate:qn}),C({since:"1.84.0"})],xa.prototype,"visible",2),h([T({manifest:{path:Er},generate:qn}),C({since:"1.84.0"})],xa.prototype,"enabled",2);var nx=xa,kp=class kp{};a(kp,"ViewCustomActionPosition"),h([T({manifest:{path:(t,n,i,r,o)=>Wr(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],kp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Wr(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],kp.prototype,"placement",2);var ix=kp,Pa=class Pa{};a(Pa,"ViewTableCustomAction"),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"text",2),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"position",2),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"press",2),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"requiresSelection",2),h([T({manifest:{path:Wr},generate:qn}),C({since:"1.84.0"})],Pa.prototype,"visible",2),h([T({manifest:{path:Wr},generate:qn}),C({since:"1.84.0"})],Pa.prototype,"enabled",2);var rx=Pa;var wy=class wy{};a(wy,"ObjectPageToolBarAction"),h([T({manifest:{path:kn}})],wy.prototype,"enableOnSelect",2);var ox=wy,Up=class Up{};a(Up,"CustomActionPositionOP"),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Up.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Up.prototype,"placement",2);var ax=Up,Ca=class Ca{};a(Ca,"CustomTableActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ca.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ca.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ca.prototype,"press",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ca.prototype,"requiresSelection",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],Ca.prototype,"visible",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],Ca.prototype,"enabled",2);var sx=Ca;var xs=class xs{};a(xs,"CustomFormActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],xs.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],xs.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],xs.prototype,"press",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],xs.prototype,"visible",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],xs.prototype,"enabled",2);var cx=xs;function cq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}a(cq,"exportVisualFilterValueList");var pf=class pf{};a(pf,"FilterBar"),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.99.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],pf.prototype,"hideFilterBar",2),h([T({manifest:{path:Cy}}),C({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],pf.prototype,"initialLayout",2),h([T({manifest:{path:Cy}}),C({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],pf.prototype,"layout",2);var lx=pf,jp=class jp{};a(jp,"VisualFilter"),h([T({manifest:{path:OS}}),C({since:"1.93.0"}),Re("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],jp.prototype,"availability",2),h([T({manifest:{path:OS,import:t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},export:cq,key:"visualFilter"}}),C({since:"1.93.0"})],jp.prototype,"visualFilterValueList",2);var fx=jp,$p=class $p{};a($p,"CustomFilterFieldPosition"),h([T({manifest:{path:(t,n,i,r)=>As(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],$p.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>As(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],$p.prototype,"placement",2);var ux=$p,Ps=class Ps{};a(Ps,"CustomFilterField"),h([T({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"label",2),h([T({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"property",2),h([T({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"template",2),h([T({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"required",2),h([T({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"position",2);var px=Ps;var mx=class mx{};a(mx,"HeaderActions");var dx=mx,hx=class hx{};a(hx,"Header");var gx=hx;var Bp=class Bp{};a(Bp,"CustomHeaderActionPosition"),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Bp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Bp.prototype,"placement",2);var Hp=Bp,Cs=class Cs{};a(Cs,"CustomHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Cs.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Cs.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Cs.prototype,"press",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],Cs.prototype,"visible",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],Cs.prototype,"enabled",2);var yx=Cs;var Wp=class Wp{};a(Wp,"ActionAfterExecutionConfigurationOP"),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/afterExecution"}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Wp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/afterExecution"}})],Wp.prototype,"enableAutoScroll",2);var Xp=Wp,Gp=class Gp{};a(Gp,"ObjectPageTableColumn"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Gp.prototype,"width",2),h([T({manifest:{path:Ji}}),C({since:"1.85.0"})],Gp.prototype,"availability",2);var df=Gp,bx=class bx extends df{};a(bx,"ObjectPageTableColumnAction");var vx=bx,Kp=class Kp{};a(Kp,"PositionOP"),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Kp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Kp.prototype,"placement",2);var Tx=Kp,Go=class Go{};a(Go,"TableCustomColumnOP"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Go.prototype,"position",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Go.prototype,"header",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Go.prototype,"width",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Go.prototype,"template",2),h([T({manifest:{path:Ji}}),C({since:"1.86.0"})],Go.prototype,"horizontalAlign",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Go.prototype,"availability",2),h([T({manifest:{path:Ji}}),C({since:"1.85.0"})],Go.prototype,"properties",2);var Ex=Go;var xx=class xx{};a(xx,"ObjectPageHeaderActions");var Ax=xx,kc=class kc{};a(kc,"ObjectPageHeader"),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"})],kc.prototype,"editableHeaderContent",2),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"})],kc.prototype,"showRelatedApps",2),h([T({manifest:{path:xy}}),C({since:"1.84.0"})],kc.prototype,"visible",2),h([T({manifest:{path:xy}}),C({since:"1.84.0"})],kc.prototype,"anchorBarVisible",2);var Sx=kc;var Ix=class Ix{};a(Ix,"ObjectPageFooterActions");var Px=Ix,Ox=class Ox{};a(Ox,"ObjectPageFooter");var Cx=Ox;var ky=class ky{};a(ky,"FlexSettings"),h([T({manifest:{path:(t,n,i)=>Py(t,n,i)+"/flexSettings"}}),C({since:"1.81.0"}),Re("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],ky.prototype,"designtime",2);var Nx=ky,Qp=class Qp{};a(Qp,"CommonHeaderFacetSettings"),h([T({manifest:{path:Py}}),C({since:"1.81.0"})],Qp.prototype,"stashed",2),h([T({manifest:{path:Py}}),C({since:"1.81.0"})],Qp.prototype,"flexSettings",2);var Is=Qp,Mx=class Mx extends Is{};a(Mx,"ObjectPageHeaderSectionForm");var Lx=Mx,wx=class wx extends Is{};a(wx,"ObjectPageHeaderSectionChart");var Fx=wx,kx=class kx extends Is{};a(kx,"ObjectPageHeaderSectionDataPoint");var Rx=kx,Ux=class Ux extends Is{};a(Ux,"ObjectPageHeaderSectionContact");var _x=Ux,jx=class jx extends Is{};a(jx,"ObjectPageHeaderSectionAddress");var Dx=jx,$x=class $x{};a($x,"HeaderSections");var Vx=$x;var Uy=class Uy{};a(Uy,"ObjectPageLayout"),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Uy.prototype,"sectionLayout",2);var Bx=Uy;var jy=te(ce());var gf=class gf{};a(gf,"TableCreationModeOP"),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:(t,n,i)=>{Ip(t,n,i)},delete:(t,n,i,r)=>{Op(t,r)}}})],gf.prototype,"name",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:(t,n,i)=>{Ip(t,n,i)},delete:(t,n,i,r)=>{Op(t,r)}}})],gf.prototype,"createAtEnd",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:(t,n,i)=>{Ip(t,n,i)},delete:(t,n,i,r)=>{Op(t,r)}}})],gf.prototype,"inlineCreationRowsHiddenInEditMode",2);var Hx=gf,mf=class mf{};a(mf,"PersonalizationTypeOP"),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:go,delete:mo}})],mf.prototype,"column",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:go,delete:mo}})],mf.prototype,"sort",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:go,delete:mo}})],mf.prototype,"filter",2);var Wx=mf,hf=class hf{};a(hf,"QuickVariantSelectionV4OP"),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i)+jy.QUICKVARPATH}})],hf.prototype,"paths",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i)+jy.QUICKVARPATH}})],hf.prototype,"hideTableTitle",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i)+jy.QUICKVARPATH}})],hf.prototype,"showCounts",2);var Gx=hf,Zi=class Zi{};a(Zi,"ObjectPageTable"),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],Zi.prototype,"type",2),h([T({manifest:{path:Fn,import:t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}}}}),C({since:"1.84.0"})],Zi.prototype,"creationMode",2),h([T({manifest:{path:Fn,import:t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},export:Ry}}),C({since:"1.86.0"})],Zi.prototype,"personalization",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],Zi.prototype,"selectionMode",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],Zi.prototype,"selectAll",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],Zi.prototype,"selectionLimit",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Zi.prototype,"enableExport",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],Zi.prototype,"quickVariantSelection",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Zi.prototype,"condensedTableLayout",2),h([T({manifest:{path:Fn}}),C({since:"1.86.0"})],Zi.prototype,"enableFullScreen",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],Zi.prototype,"enablePaste",2);var qp=Zi;var $y=class $y{};a($y,"ObjectPageCustomHeaderSectionFlexSettings"),h([T({manifest:{path:(t,n,i)=>br(t,n,i,"flexSettings")}}),C({since:"1.81.0"})],$y.prototype,"designtime",2);var Kx=$y,er=class er{};a(er,"ObjectPageCustomHeaderSectionFragment"),h([T({manifest:{path:(t,n,i)=>br(t,n,i,"position"),key:"anchor"}}),C({since:"1.77.0"})],er.prototype,"relatedFacet",2),h([T({manifest:{path:(t,n,i)=>br(t,n,i,"position"),key:"placement"}}),C({since:"1.77.0"})],er.prototype,"relativePosition",2),h([T({manifest:{path:br},generate:Ki}),C({since:"1.84.0"})],er.prototype,"visible",2),h([T({manifest:{path:br}}),C({since:"1.77.0"})],er.prototype,"title",2),h([T({manifest:{path:br}}),C({since:"1.77.0"})],er.prototype,"subTitle",2),h([T({manifest:{path:br,import:t=>t.name||t.template,key:"template"}}),C({since:"1.77.0"})],er.prototype,"fragmentName",2),h([T({manifest:{path:br,import:t=>t.templateEdit,key:"templateEdit"}}),C({since:"1.86.0"})],er.prototype,"templateEdit",2),h([T({manifest:{path:br}}),C({since:"1.81.0"})],er.prototype,"stashed",2),h([T({manifest:{path:br}}),C({since:"1.81.0"})],er.prototype,"flexSettings",2),h([T({manifest:{path:br}}),C({since:"1.81.0"})],er.prototype,"requestGroupId",2),h([T({manifest:{path:br,import:!1,export:!1},xml:t=>t.fragmentName}),C({since:"1.96.0"})],er.prototype,"controls",2);var Xx=er;var Ns=te(ce());var ho=class ho{};a(ho,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:(t,n,i)=>Sa(t,n,i,"position"),key:"anchor"}}),C({since:"1.77.0"})],ho.prototype,"relatedFacet",2),h([T({manifest:{path:Sa,import:(t,n)=>n,export:!1}}),C({since:"1.77.0"})],ho.prototype,"id",2),h([T({manifest:{path:(t,n,i)=>Sa(t,n,i,"position"),key:"placement"}}),C({since:"1.77.0"})],ho.prototype,"relativePosition",2),h([T({manifest:{path:Sa}}),C({since:"1.77.0"})],ho.prototype,"title",2),h([T({manifest:{path:Sa,import:t=>!t.type||t.type.startsWith(Ns.v4.CustomSectionViewTypesV4.XML)?Ns.v4.CustomSectionViewTypesV4.XML:"",export:(t,n)=>{let i="";"type"in n&&(i+=n.type),"className"in n&&(n.className===Ns.SAPUI5_FRAGMENT_CLASS?i+="Fragment":i+=n.className),t.type=i}}}),C({since:"1.77.0"})],ho.prototype,"type",2),h([T({manifest:{path:Sa,import:t=>!t.type||t.type.startsWith(Ns.v4.CustomSectionViewTypesV4.XML)?!t.type||t.type==="XMLFragment"?Ns.SAPUI5_FRAGMENT_CLASS:t.type.slice(Ns.v4.CustomSectionViewTypesV4.XML.length):t.type,export:!1}}),C({since:"1.77.0"})],ho.prototype,"className",2),h([T({manifest:{path:Sa,import:t=>t.name||t.template,key:"template"}}),C({since:"1.77.0"})],ho.prototype,"fragmentName",2),h([T({manifest:{path:Sa,import:!1,export:!1},xml:t=>t.fragmentName}),C({since:"1.96.0"})],ho.prototype,"controls",2);var yf=ho,Os=class Os extends yf{};a(Os,"ObjectPageCustomSubSectionFragment"),h([T({manifest:{path:(...t)=>`${of.apply({},t)}/position`,key:"anchor"}}),C({since:"1.77.0"})],Os.prototype,"relatedFacet",2),h([T({manifest:{path:(...t)=>`${of.apply({},t)}/position`,key:"placement"}}),C({since:"1.77.0"})],Os.prototype,"relativePosition",2),h([T({manifest:{path:of}}),C({since:"1.77.0"})],Os.prototype,"title",2),h([T({manifest:{path:of,import:t=>t.name||t.template,key:"template"}}),C({since:"1.77.0"})],Os.prototype,"fragmentName",2),h([T({manifest:{path:of,import:!1,export:!1},xml:t=>t.fragmentName}),C({since:"1.96.0"})],Os.prototype,"controls",2);var Qx=Os;var zp=class zp{};a(zp,"ActionAfterExecutionConfigurationForm"),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/afterExecution"}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/afterExecution"}})],zp.prototype,"enableAutoScroll",2);var qx=zp,By=class By{};a(By,"FormAction"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],By.prototype,"afterExecution",2);var zx=By,Zx=class Zx{};a(Zx,"ObjectPageFormActions");var Yx=Zx,eP=class eP{};a(eP,"ObjectPageForm");var Jx=eP;var Yp=class Yp{};a(Yp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/afterExecution"}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Yp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/afterExecution"}})],Yp.prototype,"enableAutoScroll",2);var tP=Yp,Hy=class Hy{};a(Hy,"ObjectPageHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Hy.prototype,"afterExecution",2);var nP=Hy,oP=class oP extends Hp{};a(oP,"CustomHeaderActionPositionOP");var iP=oP,Ls=class Ls{};a(Ls,"CustomHeaderActionOP"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Ls.prototype,"press",2),h([T({manifest:{path:fi},generate:Ki}),C({since:"1.84.0"})],Ls.prototype,"visible",2),h([T({manifest:{path:fi},generate:Ki}),C({since:"1.84.0"})],Ls.prototype,"enabled",2);var rP=Ls;var Jp=class Jp{};a(Jp,"ActionAfterExecutionConfigurationFooter"),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/afterExecution"}}),Re("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Jp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/afterExecution"}})],Jp.prototype,"enableAutoScroll",2);var aP=Jp,Wy=class Wy{};a(Wy,"FooterActionV4"),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],Wy.prototype,"afterExecution",2);var sP=Wy,Zp=class Zp{};a(Zp,"CustomFooterActionPositionOP"),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var cP=Zp,Fs=class Fs{};a(Fs,"CustomFooterActionOP"),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],Fs.prototype,"text",2),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],Fs.prototype,"position",2),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],Fs.prototype,"press",2),h([T({manifest:{path:fo},generate:Ki}),C({since:"1.84.0"})],Fs.prototype,"visible",2),h([T({manifest:{path:fo},generate:Ki}),C({since:"1.84.0"})],Fs.prototype,"enabled",2);var lP=Fs;var gP={};Gs(gP,{FreestylePage:()=>pP,ListReport:()=>Ar,ObjectPage:()=>yo});function lq(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(o=>delete e[o])}a(lq,"deleteAllALPViews");function fq(){}a(fq,"doNotExport");function uq(){}a(uq,"doNotImport");var Ar=class{};a(Ar,"ListReport"),h([T({manifest:{path:t=>yt(t)+"/views",import:uq,export:fq,delete:lq}})],Ar.prototype,"chart",2),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"})],Ar.prototype,"variantManagement",2),h([T({manifest:{path:t=>yt(t)+"/views/paths/[]/0"}}),Re("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Ar.prototype,"defaultPath",2),h([T({manifest:{path:t=>yt(t)}})],Ar.prototype,"defaultTemplateAnnotationPath",2),h([Mt("header")],Ar.prototype,"header",2),h([Mt("fe::FilterBar")],Ar.prototype,"filterBar",2),Ar=h([Dr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Ar);var uP=te(ce());var yo=class{};a(yo,"ObjectPage"),h([Mt("header")],yo.prototype,"header",2),h([Mt("layout")],yo.prototype,"layout",2),h([T({manifest:{path:t=>yt(t)}}),C({since:"1.84.0"}),Re("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],yo.prototype,"variantManagement",2),h([Mt("sections")],yo.prototype,"sections",2),yo=h([Dr({id:`${uP.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:uP.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],yo);var dP=class dP{};a(dP,"FreestylePage");var pP=dP;var Gy=te(ce());var pq={ALPTableView:uf},dq={ALPTableView:uf},gq={Table:qp,TableColumn:df,ObjectPageCustomSectionView:yf,ActionAfterExecutionConfiguration:Xp},mq={[Gy.PageTypeV2.AnalyticalListPage]:pq,[Gy.PageTypeV2.ListReport]:dq,[Gy.PageTypeV2.ObjectPage]:gq},mP=class mP extends wl{constructor(){super(fP,gP,mq)}};a(mP,"MetadataInstanceFactoryV4");var Ia=mP;var hP=require("@sap-ux/vocabularies-types/vocabularies/UI");function yP(e,t,n,i,r,o,s){var g,m,v,A,E,O;let l=t.jsonSchema.definitions,u=o&&o!==`@${hP.UIAnnotationTerms.LineItem}`?o:me.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let R in p.properties){let j=l[u].properties[R].$ref.split(B)[1].split("<")[0];e.columns[R]=n.createInstance(i,j);let G=s||o;Et(e.columns[R],t.manifest,l[j],r,[R,G],G,t.logger),Lo(e.columns,R)}Lo(e,"columns")}else{let R=(O=(E=(A=(v=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!R||R.paths.length<1)&&oe(t.logger,{severity:me.LogSeverity.Error,message:J.t("NOLINEITEMS")})}}a(yP,"transferColumns");function hq(e,t,n,i,r){let o=e.jsonSchema.definitions,s=o[me.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=gn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Et(t.visualFilters[l],e.manifest,o[p],r,[l])}}Lo(t,"visualFilters")}}a(hq,"importVisualFilters");function yq(e,t,n,i,r,o=me.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[me.DefinitionName.LineItems,`${me.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(o)===-1&&(u=`@${hP.UIAnnotationTerms.LineItem}#${o.split("::").pop()}`);let p=l[`${me.DefinitionName.Actions}<${o}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=gn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),Et(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),Lo(t.toolBar.actions,g)}}}a(yq,"importActions");function vP(e,t,n,i,r,o=me.DefinitionName.LineItems,s){let l=n.createInstance(i,me.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Et(u.toolBar,e.manifest,e.jsonSchema.definitions[me.DefinitionName.ToolBarLR],r,[]),yq(e,u,n,i,r,o,s),Lo(u.toolBar,"actions"),Lo(u,"toolBar")}a(vP,"transferToolBar");function HV(e,t,n){var s;let i=(s=e[t])==null?void 0:s[me.SchemaTag.annotationPath],r=n?`/${n}/`:"",o=i==null?void 0:i.substr(i.lastIndexOf("@"));return o=r?`${r}${o}`:o,o}a(HV,"determineTargetAnnotationOfView");function vq(e,t,n,i,r){let o=e.jsonSchema.definitions;t.chart=n.createInstance(i,me.DefinitionName.ALPChart);let s=o[me.DefinitionName.ALPChart],l=s[me.SchemaTag.annotationPath];Et(t.chart,e.manifest,s,r,[s[me.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,me.DefinitionName.ToolBar,{actions:{}}),Et(t.chart.toolBar,e.manifest,o[me.DefinitionName.ViewChartToolBar],r,[]);let u=o[me.DefinitionName.ALPTable][me.SchemaTag.annotationPath];if(u){let p=o[me.DefinitionName.ALPTable],g=t.table=n.createInstance(i,me.DefinitionName.ALPTable);vP(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Et(g,e.manifest,p,r,[p[me.SchemaTag.key],m]),yP(g,e,n,i,r,void 0,m)}}a(vq,"importALPViews");function Tq(e){let t;return e.indexOf(me.DefinitionName.LRTableView)>-1?t=me.DefinitionName.LRTableView:e.indexOf(me.DefinitionName.LRChartView)>-1?t=me.DefinitionName.LRChartView:e===me.DefinitionName.TableViewExtension&&(t=me.DefinitionName.TableViewExtension),t}a(Tq,"getViewTypeByDefinition");function Eq(e,t,n,i,r){let o=t.table.views=n.createInstance(i,me.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Et(o,e.manifest,s[me.DefinitionName.MultiTableModeV4],r,[]);let l=s[me.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][me.SchemaTag.propertyIndex]-g[1][me.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(B)[1],m=Tq(g),v=o[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=HV(s,g,A);if(Et(v,e.manifest,s[g],r,[p[0],E]),m===me.DefinitionName.LRTableView){let O=`${me.DefinitionName.LineItemsOfView}::${p[0]}`;vP(e,v,n,i,r,O,E),yP(v,e,n,i,r,O,E)}Object.keys(v).length===0&&delete o[p[0]]}Lo(t.table,"views")}a(Eq,"importLRViews");function bq(e,t,n,i,r){let o=me.DefinitionName.HeaderActions,s=me.PropertyName.header,l=e.definitions[o];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=gn(p.$ref),m=e.definitions[g],v=gn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(me.PageTypeV4.ObjectPage,v),Et(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),Lo(t.header,"actions"),Lo(t,"header")}}}}a(bq,"transferHeaderActions");function Aq(e,t,n,i){let r=e.jsonSchema.definitions,o={};for(let s of[me.DefinitionName.SelectionFields,me.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(o=l.properties)}for(let s in o){let l=o[s];if(typeof l!="object"||l.$ref!==B+me.DefinitionName.CustomFilterField)continue;let u=n.createInstance(me.PageTypeV4.ListReport,me.DefinitionName.CustomFilterField),p=l.$ref.split(B)[1];Et(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}a(Aq,"importCustomFilterFields");function Sq(e,t,n,i,r,o){if(Et(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,me.DefinitionName.Header),Et(t.header,e.manifest,e.jsonSchema.definitions[me.DefinitionName.Header],r,[]),bq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,me.DefinitionName.FilterBar),Et(t.filterBar,e.manifest,e.jsonSchema.definitions[me.DefinitionName.FilterBar],r,[]),hq(e,t.filterBar,n,i,r),Aq(e,t.filterBar,n,r),o===me.SchemaType.ListReport){let s=me.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(B)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(B)[1]),t.table=n.createInstance(i,me.DefinitionName.Table);let p=HV(e.jsonSchema.definitions,s);Et(t.table,e.manifest,l,r,[s,p]),vP(e,t,n,i,r,u),yP(t.table,e,n,i,r,u,p),Eq(e,t,n,i,r)}else o===me.SchemaType.AnalyticalListPage&&vq(e,t,n,i,r)}a(Sq,"addSettings");function Uc(e,t){if(en(),!e.jsonSchema)return;if(!e.manifest[me.ManifestSection.ui5]||!e.manifest[me.ManifestSection.ui5].routing){oe(e.logger,{severity:me.LogSeverity.Error,message:J.t("NOROUTING"),location:{path:me.MANIFESTPATH,range:[me.ManifestSection.ui5]}});return}let n=e.manifest[me.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:me.LogSeverity.Error,message:J.t("NOTARGETS"),location:{path:me.MANIFESTPATH,range:[me.ManifestSection.ui5]}});return}let i=new Ia,r=i.createPageInstance(me.PageTypeV4.ListReport);for(let o in n){let s=n[o],l=ZT(s);if("name"in s&&(l===me.PageTypeV4.ListReport||l===me.PageTypeV4.AnalyticalListPage)){Sq(e,r,i,me.PageTypeV4.ListReport,o,t);break}}return r}a(Uc,"createListReportConfig");var Ae=te(ce()),jc=require("@sap-ux/vocabularies-types/vocabularies/UI");function xq(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}a(xq,"isBoolean");function Pq(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}a(Pq,"isNumber");function Cq(e,t){let n=e.toString();return xq(n,t)?n==="true":Pq(n,t)?parseFloat(n):e}a(Cq,"convertValue");function Iq(e,t,n,i){let{element:r}=e,o=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Cq(r.attributes[i],t);s!==n[i]&&(n[i]=s,o=!0)}return o}a(Iq,"importProperty");function WV(e,t,n){let i,r=tf(e.file,!1,n);if(r){let o=yy(r);i={},Rc({fullSchema:t,schema:t,element:o,contextPath:[],config:i},Iq)}return i}a(WV,"convertXmlFileToConfig");function Ky(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:o}=e;if(!i||Object.keys(i).length===0)return;let s=gs(t||[],r,n,o),l;return s&&(l=WV(s,i,e.logger)),l}a(Ky,"createCustomPageConfig");function ed(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:o,logger:s}=e,l=nf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=Sc(i,o),g=xc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=WV(g,A,s)}return m}a(ed,"createCustomFragmentConfig");function TP(e,t=!1,n){var r,o,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(o=l[0])==null?void 0:o.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}a(TP,"getManifestId");function Xy(e){return e.replace(/#/g,"::").replace(/\//g,"::")}a(Xy,"getDefinitionId");function Oq(e,t,n,i,r,o){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Xy(o)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(Ae.DefinitionName.CustomColumnOP)>-1?s=Ae.DefinitionName.CustomColumnOP:s=Ae.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(Ae.PageTypeV4.ObjectPage,s);Et(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],o),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}a(Oq,"fillTableColumnsInConfig");function Nq(e,t,n,i,r=t){let o=e.jsonSchema.definitions[`${Ae.DefinitionName.Actions}<${Xy(r)}>`];if(typeof o=="object")for(let s in o.properties){let l=o.properties[s];if(typeof l=="object"&&l.$ref){let u=gn(l.$ref),p=u.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(Ae.PageTypeV4.ObjectPage,p),Et(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],r),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}a(Nq,"fillTableActionsInConfig");function Lq(e,t,n,i,r,o=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${Ae.DefinitionName.ObjectPageSectionForm}<${Xy(o)}>`].properties.form.$ref.split(B)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split(B)[1],m=e.jsonSchema.definitions[g];for(let v in m.properties){let A=m.properties[v],E=gn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===jc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let R=gn(O.$ref)||E.split("<")[0];i[n].form.actions[v]=r.createInstance(Ae.PageTypeV4.ObjectPage,R),Et(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[R],e.routingId,[v.replace("/","??")],o),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}a(Lq,"fillFormActionsInConfig");function GV(e,t,n,i,r,o){var u;let s=o||TP(i,!1,jc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageTable);let p=`${Ae.DefinitionName.ObjectPageTable}<${o?Xy(o):i.replace("#","::")}>`;Et(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ToolBar,{actions:{}}),Nq(e,i,n,r,s),Oq(e,l,n,i,r,s)}}a(GV,"fillTableInConfig");function Fq(e,t,n,i,r){var l;let o=TP(i),s=(l=t.controlConfiguration)==null?void 0:l[o];s&&(n[i]={},n[i].form=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageForm,{actions:{}}),Lq(e,s,i,n,r,o))}a(Fq,"fillFormInConfig");function Rq(e,t,n,i,r,o){let s=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(B)[1];if(Et(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],o),s.fragmentName){let u=ed(e,s.fragmentName);s.controls=u}n[i]=s}a(Rq,"fillCustomSubSectionInConfig");function XV(e,t,n,i,r,o){var s,l,u,p,g;for(let m in t){let v=t[m],A=m;if(m.includes(jc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(B+Ae.DefinitionName.ObjectPageSectionTableV4))){let E=v.$ref.split(B)[1];A=E?TP(E,!0,jc.UIAnnotationTerms.LineItem):m,GV(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith(B+Ae.DefinitionName.ObjectPageSectionTableV4)?GV(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},XV(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith(B+Ae.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${jc.UIAnnotationTerms.FieldGroup}::`))?Fq(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith(B+Ae.DefinitionName.ObjectPageCustomSubSectionFragment)&&Rq(e,v,i,m,r,o)}}a(XV,"fillSectionsInConfig");function _q(e,t,n,i){var o,s;let r=(s=(o=t.content)==null?void 0:o.body)==null?void 0:s.sections;if(r){n.sections.custom=[];for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageCustomSectionFragment);Et(p,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l);let g=u.template;if(g){let m=ed(e,g);p.controls=m}n.sections.custom.push(p)}}}a(_q,"fillCustomSectionsInConfig");function Dq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,o=r&&"facets"in r?r.facets:void 0;if(o)for(let l in o){let u=o[l],p=i.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageCustomHeaderSectionFragment);Et(p,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=ed(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=ed(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}a(Dq,"fillCustomHeaderSectionsInConfig");function Vq(e,t,n,i,r){var s,l;let o=e.definitions[Ae.DefinitionName.HeaderSections];if(o&&o.properties){t.header.sections={};for(let u in o.properties){let p=o.properties[u],g,m=(s=o.properties[u].$ref)==null?void 0:s.split(B)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(Ae.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(Ae.PageTypeV4.ObjectPage,g):{},Et(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(Ae.FacetTitlePrefix)[1]))}}}a(Vq,"fillHeaderFacets");function Mq(e,t,n,i,r,o,s){let l=gn(e.$ref),u=t.definitions[l],p=gn(u.$ref||e.$ref),g=n.createInstance(Ae.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;Et(m,o,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}a(Mq,"importActionSettingsOfReference");function KV(e,t,n,i,r,o,s){let l=e.definitions[o];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&Mq(g,e,n,u,p,i,r)}}}a(KV,"fillHeaderFooterActions");function wq(e,t,n){var o,s;let i=n.createPageInstance(Ae.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageHeader),Et(i.header,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageFooter),Et(i.footer,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageLayout),Et(i.layout,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageLayout],e.routingId,[]),Et(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(o=r.content)==null?void 0:o.body)!=null&&s.sections)&&e.jsonSchema.definitions[Ae.DefinitionName.Sections]&&(i.sections={},XV(e,e.jsonSchema.definitions[Ae.DefinitionName.Sections].properties,r,i.sections,n)),_q(e,r,i,n),Vq(e.jsonSchema,i,n,e.manifest,e.routingId),Dq(e,r,i,n),KV(e.jsonSchema,i,n,e.manifest,e.routingId,Ae.DefinitionName.ObjectPageHeaderActions,Ae.PropertyName.header),KV(e.jsonSchema,i,n,e.manifest,e.routingId,Ae.DefinitionName.FooterActions,Ae.PropertyName.footer)),i}a(wq,"fillObjectPageConfig");function Qy(e){if(en(),!e.manifest[Ae.ManifestSection.ui5]||!e.manifest[Ae.ManifestSection.ui5].routing){oe(e.logger,{severity:Ae.LogSeverity.Error,message:J.t("NOROUTING"),location:{path:Ae.MANIFESTPATH,range:[Ae.ManifestSection.ui5]}});return}let t=e.manifest[Ae.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:Ae.LogSeverity.Error,message:J.t("NOTARGETS"),location:{path:Ae.MANIFESTPATH,range:[Ae.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:Ae.LogSeverity.Error,message:J.t("NOROUTINGID",{routingId:e.routingId}),location:{path:Ae.MANIFESTPATH,range:[Ae.ManifestSection.ui5,"routing"]}});return}let i=new Ia;return wq(e,n,i)}a(Qy,"createObjectPageConfigV4");var He=te(ce());var EP=[],qy={};function kq(e,t){let n=e.target,i=t.target,r=Array.isArray(n),o=Array.isArray(i);return r&&o?n.length-i.length:!r&&!o?0:r?1:-1}a(kq,"routesSorter");function bP(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}a(bP,"resolveTarget");function Uq(e){let t={};e=e.concat().sort(kq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),o;Array.isArray(i.target)?(o=bP(i.target,n),n.push(i.target)):o=i.target;for(let s of r){let l=s.split("(")[0];t[o]=t[o]?`${t[o]}.${l}`:l}}return t}a(Uq,"populateAssociations");function jq(e,t,n){let i;return e.name?e.name===He.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=He.PageTypeV4.FPMCustomPage:e.name.endsWith(He.PageTypeV4.ListReport)||e.name.endsWith(He.PageTypeV4.AnalyticalListPage)?i=He.PageTypeV4.ListReport:e.name.endsWith(He.PageTypeV4.ObjectPage)?i=He.PageTypeV4.ObjectPage:i=He.PageTypeV4.CustomPage:"viewId"in e?i=He.PageTypeV4.CustomPage:(oe(t,{severity:He.LogSeverity.Error,message:J.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:He.MANIFESTPATH,range:[`${He.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in He.ViewTypes&&"viewName"in e&&(i=He.PageTypeV4.CustomPage)),i}a(jq,"determinePageType");function $q(e){let t=e.target.viewId||e.target.id,n=Ft(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===He.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===He.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=Qy(r)}else if(e.page.pageType===He.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=Ky(r)}else if(e.templateType===He.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,He.SchemaType.ListReport)}else if(e.templateType===He.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,He.SchemaType.AnalyticalListPage)}else if(e.templateType===He.TemplateType.FreestylePageV4&&e.page.pageType===He.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Zf(e.target)===He.TemplateType.AnalyticalListPageV4?He.SchemaType.AnalyticalListPage:He.SchemaType.ListReport;e.page.config=Uc(r,s)}}}a($q,"convertSettingsToConfig");function Bq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");EP.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");EP.push(t[t.length-1])}}a(Bq,"updateUnhandledControllers");function Hq(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}a(Hq,"setVariantManagmentAndNavigation");function Wq(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:o,entityType:s}=Dc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(o==null?void 0:o.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}a(Wq,"setEntitySetEntityTypeContextPath");function Gq(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([He.PageTypeV4.CustomPage,He.PageTypeV4.FPMCustomPage].includes(n)){let o=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...o&&{name:o},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}a(Gq,"evaluateCustomPageSettings");function Kq(e,t,n,i){let r=e.targets[t],o=jq(r,i.logger,t),s={pageType:o};if(Wq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),qy[t]&&qy[t].indexOf(".")!==-1){let p=qy[t].split(".");s.navigationProperty=p[p.length-1]}Gq(r,s,o),Hq(r,s),Bq(r);let l=e.routes.find(p=>p.name===t);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:o,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};$q(u)}a(Kq,"getSinglePageAndConfig");function QV(e){let t={},n=e.manifest[He.ManifestSection.ui5].routing;if(!n||!n.routes){let i=J.t("NOROUTING");return oe(e.logger,{severity:He.LogSeverity.Error,message:i,location:{path:He.MANIFESTPATH,range:[He.ManifestSection.ui5]}}),t}qy=Uq(n.routes||[]);for(let i in n.targets)Kq(n,i,t,e);return t}a(QV,"getPagesAndConfigs");function qV(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return bP(t?t.target:e.routes[0].target)}else return}a(qV,"getHome");function zV(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}a(zV,"getSettings");function vf(e,t){let n=e[He.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let o=n.targets[r];o.name===t&&(i[r]=o)}return i}a(vf,"getPages");var AP=class AP extends Xa{constructor(t){en();let n=new rf,i=Ft(He.SchemaType.Application),r=t.appSchemas[i.filename];Et(n,t.manifest,r.definitions.AppSettings,"",[]),super(t.manifest,t.appSchemas,qV(t.manifest[He.ManifestSection.ui5].routing),QV(t),He.FioriElementsVersion.v4,{...zV(t.manifest[He.ManifestSection.ui5].routing),...n},t.logger),this.unhandledControllers=EP}};a(AP,"V4AppProvider");var td=AP;var YV=require("fs"),$c=require("path"),nd=te(ce());var JV=a((e,t,n=__dirname)=>{let i;switch(t){case nd.SchemaType.Application:{i=`${nd.SchemaType.Application}${e.toUpperCase()}.json`;break}case nd.SchemaType.FPMCustomPage:{i=`${nd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,$c.join)(n,"schemas",e,i);if(n.endsWith((0,$c.join)("specification","packages","specification")))return(0,$c.join)(n,"dist","schemas",e,i);if(n.endsWith((0,$c.join)("src","specification")))return(0,$c.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,$c.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Xq=a(async e=>new Promise((t,n)=>{(0,YV.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),zy=a(async(e,t)=>{try{let n=JV(e,t,__dirname);return await Xq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Qq(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FreestylePage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let o=Ft(r);n[o.filename]=await zy(t,r)}return n}a(Qq,"getGenericSchemas");function eM(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ri(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:o,Facets:s}=r.annotations[i];o&&!o.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}a(eM,"getAnnotationsForUi");function id(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}a(id,"getEntitySetByEntitySetName");function qq(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let o=2;o<e.objectPath.length;o++){let s=e.objectPath[o];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}a(qq,"resolveNavigationProperty");function Dc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),o,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(o=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:o,entitySet:s}=qq(r,e):oe(i,{severity:fe.LogSeverity.Error,message:J.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!o&&oe(i,{severity:fe.LogSeverity.Error,message:J.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:o,entitySet:s}}a(Dc,"getEntityTypeEntitySetFromContextPath");function ZV(e,t,n){let i=Gu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let o=i[r].entitySet,s=id(o,e.serviceAVT);s||oe(e.logger,{severity:fe.LogSeverity.Error,message:J.t("ENTITYSETNOTFOUND",{entitySetName:o})}),e.entitySet=s;let l=Ft(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||o),u=Ft(fe.SchemaType.ObjectPage);n[l.filename]=rd(e,t[u.filename])}}a(ZV,"generateObjectPageSchemasV2");function zq(e,t,n){var l,u;let i=vf(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=vf(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),o={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in o){let g=(l=o[p].options.settings)==null?void 0:l.entitySet,m=(u=o[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=Dc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let E=Ft(fe.SchemaType.ListReport,p),O=Ft(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=Zf(o[p])),n[E.filename]=Qu(e,t[O.filename],o[p].name,m)}}a(zq,"generateListReportSchemasV4");function Yq(e,t,n){var r;let i=Gu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let o in i){let s=i[o].entitySet;e.entitySet=id(s,e.serviceAVT);let l=Ft(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Ft(fe.SchemaType.ListReport);t[l.filename]=od(e,n[u.filename])}}a(Yq,"generateAppSchemaV2LR");function Jq(e,t,n){var o,s;let i=vf(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(o=i[l].options.settings)==null?void 0:o.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Dc(r,p,u);e.entitySet=m,e.entityType=g;let v=Ft(fe.SchemaType.ObjectPage,l),A=Ft(fe.SchemaType.ObjectPage),E=Ft(fe.SchemaType.FPMCustomPage);n[v.filename]=Sp(e,t[A.filename],p,t[E.filename])}}a(Jq,"generateObjectPageSchemasV4");function Zq(e,t,n,i){var o;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)Yq(e,r,t),ZV(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=Gu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=id(u,e.serviceAVT);let p=Ft(fe.SchemaType.AnalyticalListPage,((o=e.entitySet)==null?void 0:o.name)||u),g=Ft(fe.SchemaType.AnalyticalListPage);r[p.filename]=ad(e,t[g.filename])}ZV(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=Ft(fe.SchemaType.OverviewPage),l=Ft(fe.SchemaType.OverviewPage);r[s.filename]=sd(t[l.filename],e.manifest)}return{...t,...r}}a(Zq,"generateAppSchemasV2");function e9(e,t,n){if(!qs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=vf(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let o=i[r],s=gs(e.views||[],r,e.manifest,e.logger),l=o.viewId||o.id||r;if(s){let u=Ft(fe.SchemaType.FPMCustomPage,void 0,l),p=Ft(fe.SchemaType.FPMCustomPage);n[u.filename]=_c(t[p.filename],s,e.serviceAVT,e.logger)}}}a(e9,"generateCustomPageSchemasV4");function t9(e,t,n){let i={};return n&&(zq(e,t,i),Jq(e,t,i),e9(e,t,i)),{...t,...i}}a(t9,"generateAppSchemasV4");async function tM(e,t,n){let i=await Qq(n,e.fioriElementsVersion);return e.fioriElementsVersion===fe.FioriElementsVersion.v4?t9(e,i,t):Zq(e,i,t,n)}a(tM,"generateAppSchemas");function n9(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Eh(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new td(e);break;case fe.TemplateType.OverviewPageV2:t=new Sh(e);break;default:break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let o in i)n.push({dataSourceUri:o,fileContent:JSON.stringify(i[o],null,4)});for(let o in r)n.push({dataSourceUri:o,fileContent:JSON.stringify(r[o],null,4)})}return n}a(n9,"importConfigs");function nM(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}a(nM,"getFileList");async function SP(e){var E,O;en();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:s}=e;new iu().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=rE(t),p=Po(n,i),g=eM(p),m=oE(t,u,i),A=await tM({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:o,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return nM(A)}a(SP,"importProjectSchema");async function xP(e){var U,j;en();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:s,featureToggles:l}=e;new iu().doesUi5VersionFitDistTags((j=(U=t["sap.ui5"])==null?void 0:U.dependencies)==null?void 0:j.minUI5Version,i);let p=rE(t),g=Po(n,i),m=oE(t,p,i),v={templateType:m,manifest:t,serviceAVT:g,fragments:r,views:o,fioriElementsVersion:p,logger:i,featureToggles:l},A=eM(g),E=await tM(v,A,m),R=n9({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:g,fragments:r,views:o});return nM(E,R)}a(xP,"importProjectSchemaAndConfig");var i9=["header","sections","footer"];function r9(e,t,n,i){t.properties[n][ae.SchemaTag.artifactType]=ae.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=ae.ControlType.Section;break;case"ObjectPageSubSectionV2":r=ae.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=ae.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=ae.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=ae.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=ae.ControlType.ObjectPageHeaderSection;break}r&&(gt(e,t,n),t.properties[n][ae.SchemaTag.controlType]=r)}a(r9,"addFlexChangeForSection");function o9(e,t,n,i,r){n==null||n.forEach(o=>{if(!o.Determining&&o.$Type===vo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=nm(o,r);if(!l)return;let p=o.Label||s,g=`ObjectPageHeaderAction<${ut(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=o.fullyQualifiedName.replace(`@${vo.UIAnnotationTerms.Identification}`,`/@${vo.UIAnnotationTerms.Identification}`);t.definitions[g][ae.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][ae.SchemaTag.actionType]=ae.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][ae.SchemaTag.keys]=[{name:ae.SchemaKeyName.action,value:s}],u&&(t.definitions[g][ae.SchemaTag.target]=u),i.properties[l]={$ref:`${B}${g}`}}})}a(o9,"addHeaderActionCallBackV2");function a9(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===vo.UIAnnotationTypes.DataFieldForAction){let o=ca(r).split("::").splice(1).join("::"),s=yi(r,e),l=ut(`${ae.DefinitionName.ObjectPageFooterAction}<${o}>`),u=r.fullyQualifiedName.replace(`@${vo.UIAnnotationTerms.Identification}`,`/@${vo.UIAnnotationTerms.Identification}`);t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[ae.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`},n.properties[o]={$ref:`${B}${l}`}}})}a(a9,"addFooterActionCallBackV2");function s9(e,t,n,i,r,o,s,l){let u,p;if(o.ID&&o.Label?u=o.ID+o.Label.replace(/\s+/g,""):o.ID?u=o.ID:o.Label&&(u=o.Label.replace(/\s+/g,"")),u?p=`${ae.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${ae.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${ae.DefinitionName.CustomColumn}<${n}>`,m=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[g]=m;let v=[],A=r==null?void 0:r.entityTypes.find(O=>O.name===i),E=vc(t[ae.ManifestSection.generic].pages,n,v);return gl(e,A,E,t,l,p,g,o.ID),p}a(s9,"ensureCustomColumnDefinitionExists");function ld(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&r9(e,t,"visible",n)}a(ld,"addAppSchemaDefinition");function c9(e,t,n){e.properties[t]={$ref:`${B}${n}`}}a(c9,"addSectionReference");function cd(e,t,n,i){let r=ut(`${e}<${t}>`);i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e])),i.definitions[r].properties.columns.$ref=B+t,i.definitions[r].properties.toolBar.$ref=`${B}ObjectPageToolBar<${t}>`,i.definitions[r][ae.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=ae.FacetTitlePrefix+n.ID,i.definitions[r][ae.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=ae.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${B}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${B}QuickVariant<${t}>`,Ha(n.entityType,i,`QuickVariant<${t}>`)}a(cd,"addTableDefinition");function l9(e,t,n,i,r,o){if(i.base!==ae.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${o}<${t}>`;n.definitions[l]=Io(n,i,t);let u=n.definitions[l];ld(n,u,o,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[ae.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${B}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${B}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${B}ObjectPageAnalyticalTable<${t}>`},{$ref:`${B}ObjectPageGridTable<${t}>`},{$ref:`${B}ObjectPageTreeTable<${t}>`}],u[ae.SchemaTag.annotationPath]=i.annotationPath,ja(i,u,t),cd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),cd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),cd("ObjectPageGridTable",t,i,n),cd("ObjectPageTreeTable",t,i,n),cd("ObjectPageAnalyticalTable",t,i,n);let p,g=e0(i.entityType,e.serviceAVT);g&&(p=s9(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===ae.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&dl(n,v.target,v.entityType,v.ID||m,p)}}a(l9,"handleLineItem");function f9(e,t,n,i,r,o=!1){e.definitions[t]=Io(e,n,i);let s=e.definitions[t],l=o?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";ld(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[ae.SchemaTag.isViewNode]=!0}a(f9,"handleSubSection");function u9(e,t,n,i,r){e.definitions[t]=Io(e,n,i);let o=e.definitions[t];ld(e,o,r,"ObjectPageSectionChartV2")}a(u9,"handleSectionChart");function iM(e,t,n,i,r,o){e.definitions[t]=Io(e,n,i);let s=e.definitions[t];ld(e,s,r,o||"CommonHeaderFacetSettings"),s[ae.SchemaTag.annotationPath]=n.annotationPath,s[ae.SchemaTag.isViewNode]=!0,s[ae.SchemaTag.dataType]=tc(n==null?void 0:n.target)}a(iM,"handleHeaderFacet");function p9(e,t,n){let i=e.definitions[t],r=i[ae.SchemaTag.dataType]=tc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}a(p9,"addDataPointHeaderFacetDataType");function d9(e,t,n,i,r){e.definitions[t]=Io(e,n,i);let o=e.definitions[t];return ld(e,o,r,"ObjectPageSectionFormV2"),o[ae.SchemaTag.annotationPath]=n.annotationPath,o[ae.SchemaTag.isViewNode]=!0,o}a(d9,"handleFormSection");function g9(e,t,n){let i=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ae.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ae.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ae.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ae.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ae.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSectionFormV2"]]),o=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?o.get(e):r.get(e)}a(g9,"getSectionType");function m9(e,t,n){let i=e.ID||t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${vo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}a(m9,"getReferenceKey");function oM(e,t,n,i,r,o=!1,s=!1){let l=t[n],u=g9(l.base,o,s),p=m9(l,n,u),g=`${u}<${p}>`;switch(c9(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{o=!s,f9(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)oM(e,l.facets,v,m,r,o,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{l9(e,p,r,l,t,u),yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{u9(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=d9(r,g,l,p,u);tm(ae.SectionType.Section,l,m,r,ae.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{nu(l,p,i,r,ae.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{nu(l,p,i,r,ae.SectionType.Section,ae.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{iM(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{iM(r,g,l,p,u),p9(r,g,l);break}default:i.properties[n]=Io(r,l,p)}}a(oM,"addSection");function rM(e,t,n,i,r,o=!1){if(e)for(let s in t)oM(i,t,s,n,r,!1,o)}a(rM,"addSectionsFromFacets");function aM(e,t,n){var g,m,v,A,E,O;let i=t.definitions[ae.DefinitionName.Sections];i[ae.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${vo.UIAnnotationTerms.Facets}`);let r=t.definitions[ae.DefinitionName.HeaderSections];if(r[ae.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${vo.UIAnnotationTerms.HeaderFacets}`),!n)return;let o=Fg((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),s=Lg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),l=o&&!!Object.keys(o).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let R in n){let U=n[R];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(U.entitySet)?(rM(l,o,i,e,t),rM(u,s,r,e,t,!0)):aM(e,t,U.pages)}let p=t.definitions.CustomSections;for(let R in p.properties)i.properties[R]=p.properties[R]}a(aM,"addSections");function h9(e,t,n,i){om(e,n),rm(e,n,t,i,o9,!0)}a(h9,"addHeader");function y9(e,t,n,i){let r=Rg(t,n,i,void 0,!0);r&&sm(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}a(y9,"addRelatedFacetKeysType");function rd(e,t){var s;en();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[ae.PropertyName.sections]={$ref:B+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let o=e.manifest[ae.ManifestSection.generic].pages;return o?(h9(n,e.entitySet,r,e.serviceAVT),n.definitions[ae.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},aM(e,n,o),y9(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[ae.SchemaTag.isViewNode]=!0):delete n.properties[ae.PropertyName.sections]),im(n,e,ae.FioriElementsVersion.v2,a9,o),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,No(n,i9),n):(oe(e.logger,{severity:ae.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ae.MANIFESTPATH,range:[ae.ManifestSection.generic]}}),n)}a(rd,"generateObjectPageSchemaV2");var ti=te(ce());var Tf=require("@sap-ux/vocabularies-types/vocabularies/UI");var T9=["filterBar","table","footer"],E9=ti.UIVOCABULARYALPHADOT.substring(1);function PP(e,t,n,i){Ha(e,n,"QuickVariant"),t0(n,"QuickVariantX",t),n0(i,n,"QuickVariantX")}a(PP,"addEnumForVariantPaths");function b9(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Tf.UIAnnotationTerms.SelectionPresentationVariant,Tf.UIAnnotationTerms.SelectionVariant,Tf.UIAnnotationTerms.PresentationVariant];tu(e,r,i)}a(b9,"addEnumForFilterBarAnnotationPath");function A9(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let o=r.includes(Tf.UIAnnotationTerms.SelectionPresentationVariant),s=!o&&r.includes(Tf.UIAnnotationTerms.PresentationVariant),l=o||s?r.replace(E9,""):void 0,u=l?e[l]:void 0;u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):l&&(oe(n,{severity:ti.LogSeverity.Warning,message:J.t("NOANNOTATIONFORPATH",{annotationPath:r})}),o&&(i=e.PresentationVariant))}else i=e.PresentationVariant;return i}a(A9,"getPresentationVariantForLineItem");function S9(e,t,n){if(Yg(t,"annotationPath",n))return;let i=A9(e,t,n),r=(i==null?void 0:i.Visualizations)||[],o="";r.some(function(l){return o=eu("LineItem",l),o}),o=o||"LineItem";let s=e[o];return s||oe(n,{severity:ti.LogSeverity.Warning,message:J.t("NOLINEITEMFORPATH",{annotationPath:o})}),s}a(S9,"getLineItemAnnotation");function od(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:B+ti.DefinitionName.LineItems},r=B+ti.DefinitionName.ToolBarLR;uE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=B+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:o,uIAnnotations:s}=zg(e);if(s){let u=[],p=_l(e.manifest[ti.ManifestSection.generic].pages,u);ml(n);let g=S9(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=fr(o.fullyQualifiedName,g.term,g.qualifier);uE.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=v})}dl(n,g,o);let m=s.SelectionFields;if(Qg(n,m,o),yl(n,o),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],QR(n.definitions.MultiEdit.properties.ignoredFields.items.enum,o),!p)return oe(e.logger,{severity:ti.LogSeverity.Error,message:J.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;gl(n,o,p,e.manifest,e.fragments),PP(o,e.entitySet,n,e.serviceAVT),b9(o,n,ti.DefinitionName.ListReportFilterBar),i0(o,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return No(n,T9),n}a(od,"generateListReportSchemaV2");var Jt=te(ce());var x9=["filterBar","keyPerformanceIndicators","chart","table","footer"];function P9(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(Yg(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,o=a(function(O){let R=O+(r?"#"+r:"");return t[R]},"getAnnotationWithQualifier"),s=o("SelectionPresentationVariant"),l=s?s.PresentationVariant:o("PresentationVariant");if(s&&!l){let O=r?J.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):J.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return oe(n,{severity:Jt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||eu("LineItem",O),g=g||eu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m?0:1)+(v?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],R=J.t(O);oe(n,{severity:Jt.LogSeverity.Warning,message:R})}return{lineItemAnnotation:m,chartAnnotation:v}}a(P9,"getLineItemAndChartAnnotation");function C9(e,t){let n=e.definitions[Jt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Jt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}a(C9,"addChart");function ad(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Jt.PropertyName.table].anyOf[0].$ref=B+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${B}${Jt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${B}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Jt.PropertyName.table].anyOf[1].$ref=`${B}ALPGridTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));r.properties.columns.$ref=`${B}${Jt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${B}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=r,n.properties[Jt.PropertyName.table].anyOf[2].$ref=`${B}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${B}${Jt.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${B}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,XR(n.definitions.TableColumnExtensionTypeV2.enum,[Jt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:s,uIAnnotations:l}=zg(e);if(l){ml(n);let u=[],p=Ml(e.manifest[Jt.ManifestSection.generic].pages,u,e.logger),{lineItemAnnotation:g,chartAnnotation:m}=P9(p,l,e.logger);g&&$R.forEach(A=>{n.definitions[A][Jt.SchemaTag.annotationPath]=fr(s.fullyQualifiedName,g.term,g.qualifier)}),dl(n,g,s),m&&C9(n,m);let v=l.SelectionFields;if(Qg(n,v,s),yl(n,s),!p)return oe(e.logger,{severity:Jt.LogSeverity.Error,message:J.t("NOLR"),location:{path:Jt.MANIFESTPATH,range:[Jt.ManifestSection.generic]}}),n;gl(n,s,p,e.manifest,e.fragments),PP(s,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return No(n,x9),n}a(ad,"generateAnalyticalListReportSchemaV2");function I9(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}a(I9,"getCardDefinitionNames");function O9(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},o=[];o=o.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},la(o,s.CardModel);let l=I9(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=B+"CardModel"}}a(O9,"addModelsEnum");function sM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},O9(n,t),n}a(sM,"generateOverviewPageSchemaV2");var Rs=te(ce());function CP(e,t,n,i,r,o){en();let s=Po(e,t),l={templateType:o,fioriElementsVersion:Rs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=id(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:Rs.LogSeverity.Error,message:J.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}a(CP,"prepareGenerationV2");function IP(e,t,n,i,r,o){let s=CP(n,o,i,r,t,Rs.TemplateType.ListReportObjectPageV2);return rd(s,e)}a(IP,"generateObjectPageInterfaceV2");function OP(e,t,n,i,r,o){let s=CP(n,o,i,r,t,Rs.TemplateType.ListReportObjectPageV2);return od(s,e)}a(OP,"generateListReportInterfaceV2");function NP(e,t,n,i,r,o){let s=CP(n,o,i,r,t,Rs.TemplateType.AnalyticalListPageV2);return ad(s,e)}a(NP,"generateAnalyticalListPageInterfaceV2");function sd(e,t){return sM(e,t)}a(sd,"generateOVPInterfaceV2");var we=te(ce());var fd=a(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function cM(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}a(cM,"getClassesForSingleSection");function lM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],cM(n,i,t),lM(n,t)}}a(lM,"getSubsectionClasses");function N9(e,t,n){let i;for(let r in e.sections)i=t.sections[r],cM(i,r,n),lM(i,n)}a(N9,"getExportClassesForSections");function L9(e,t){let n=_l(t.manifest[we.ManifestSection.generic].pages,e);if(!n){oe(t.logger,{severity:we.LogSeverity.Error,message:J.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){oe(t.logger,{severity:we.LogSeverity.Error,message:J.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}a(L9,"findV2Page");function LP(e,t){let n=Ug(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}a(LP,"calculateBaseId");function fM(e,t,n=!1){let i=fd(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let o=[],s=L9(o,e),l=new Ii,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:LP(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:o,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};us(p,u,[],[],e.jsonSchema)}return i}a(fM,"exportListReportPage");function uM(e,t,n=!1){let i=e.page.config,r=fd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=[],s=Ml(e.manifest[we.ManifestSection.generic].pages,o,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Ii,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:LP(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:o,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};us(p,u,[],[],e.jsonSchema)}return r}a(uM,"exportAnalyticalListPage");function pM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,o=fd(e.fragments);if(o.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return oe(e.logger,{severity:we.LogSeverity.Error,message:J.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),o;let u=new Ii,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&N9(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:o,appId:e.appId,baseId:LP(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};us(g,p,[],[],e.jsonSchema)}}return o}a(pM,"exportObjectPage");var dM=a(e=>{let t=fd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ii,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ku(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),F9=a((e,t,n)=>{var s;let i=fd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new um,e);r.settings=Object.assign(new Qa,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],$a(i.manifest,p,!1))}}let o=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return o&&e.pages&&vE(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function gM(e,t){if(e[we.SchemaType.ListReport])return fM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return pM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return dM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return F9(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return uM(e[we.SchemaType.AnalyticalListPage],t)}a(gM,"exportPageV2");function FP(e,t,n=!1){if(e[we.SchemaType.ListReport])return fM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return pM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return dM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return uM(e[we.SchemaType.AnalyticalListPage],t,n)}a(FP,"exportConfigEntityByPathV2");var Ef=te(ce()),hM=require("@sap-ux/vocabularies-types/vocabularies/UI");function mM(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}a(mM,"updateDependencyLib");function Yy(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}a(Yy,"extractLastIdPart");function yM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:Ef.LogSeverity.Error,message:J.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let o=r.lastIndexOf(Ef.PropertyName.sections),s=o>-1?Yy(r[o+1]):void 0,l=s?s.replace(/::/g,"/"):`@${hM.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Ef.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return RP(g),!0}a(yM,"createNewCustomColumn");var Oa=te(ce());var TM=a((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),vM=a((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function R9(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}a(R9,"initializeRouting");function _9(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}a(_9,"setTargetOptions");function D9(e,t,n){let i="";return e.forEach((r,o)=>{let s="";t&&t.pageType!==Oa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${o?o+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}a(D9,"calculateQueryPattern");function EM(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let o;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,o=n[s])}if(o){EM(e,t,n,s);return}}}a(EM,"fillNavigationParts");function V9(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),o=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=o}),t}a(V9,"fillParentKeys");function M9(e,t,n,i,r){for(let o in e.navigation){let s=e.navigation[o],l=t[s.route];if(_9(n,o,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=[];EM(u,o,t,r,l==null?void 0:l.contextPath);let p=V9(e.routePattern),g=D9(u,l,p);i.routes.push(TM(g,s.route,s.route))}}}a(M9,"handlePageNavigation");function w9(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}a(w9,"removeDeletedPages");function k9(e,t){var n,i,r,o;e.contextPath?(t.options||(t.options=vM({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=vM({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(o=(r=t.options)==null?void 0:r.settings)==null||delete o.entitySet}a(k9,"transferEntitySetandContextPath");function U9(e,t){var i,r,o,s,l;let n=(s=(o=(r=(i=t==null?void 0:t.options)==null?void 0:i.settings)==null?void 0:r.content)==null?void 0:o.body)==null?void 0:s.sections;if(e.pageType===Oa.PageTypeV4.ObjectPage&&n&&typeof n=="object"){let u=e.config,g=(Array.isArray((l=u==null?void 0:u.sections)==null?void 0:l.custom)?u.sections.custom:[]).map(v=>v.id),m=Object.keys(n);if(g)for(let v of m)!g.includes(v)&&!("subSections"in n[v])&&delete n[v]}}a(U9,"deleteRemovedCustomSections");function j9(e,t,n){let i=e.routes.find(r=>r.name===t);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}a(j9,"updateRouteLayout");function $9(e,t,n,i){return e.pageType&&![Oa.PageTypeV4.CustomPage,Oa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Oa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}a($9,"fillTarget");function bM(e,t,n){var r,o;let i=R9(n[Oa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.name===e)&&i.routes.push(TM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=$9(u,l,s,t),k9(u,l),U9(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(o=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&o.navigation&&(l.options.settings.navigation={}),M9(u,t,l,i,s),j9(i,s,u),i.targets[s]=l}return w9(i,t),i}a(bM,"transformRoutingV4");var bi=te(ce());var AM=[bi.FlexibleColumnLayoutAggregations.BeginColumnPages,bi.FlexibleColumnLayoutAggregations.MidColumnPages,bi.FlexibleColumnLayoutAggregations.EndColumnPages],SM=a((e,t,n,i=[],r=0)=>{var p;let o=e.routing.routes.find(g=>g.name===n);if(!o)return;typeof o.target=="string"&&(o.target=r<=2?[...i,o.target]:[o.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:AM[r]?s.controlAggregation=AM[r]:s.controlAggregation=bi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=o.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)SM(e,t,l.navigation[g].route,o.target,r)}},"applyFCLRouting"),B9=a((e,t)=>{e.routing.config.routerClass=bi.v4.FIORI_FCL_ROUTER_CLASS,SM(e,t,t.home);let n={viewName:bi.FIORI_FCL_ROOT_VIEW_NAME,type:bi.ViewTypes.XML,async:!0,id:bi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,mM(e,bi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),H9=a(e=>{if(e.rootView&&e.rootView.viewName===bi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,e.routing){e.routing.config&&e.routing.config.routerClass===bi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass;let t=e.routing.routes||[];for(let n of t)n.target&&Array.isArray(n.target)&&(n.target=n.name)}},"disableFcl"),xM=a((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?B9(e,t):H9(e)},"updateFcl");var ie=te(ce()),ud=require("@sap-ux/vocabularies-types/vocabularies/UI");var PM=te(Xs()),Jy=te(ce());function W9(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}a(W9,"isExportValueEquals");function G9(e,t){var s;let{element:n,schema:i,parent:r,contextPath:o}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===Jy.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=o[o.length-1];l&&r.element.elements.splice(l.index,1)}}a(G9,"deleteProperty");function CM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:o,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Rc({fullSchema:o,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},CM)}else W9((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(G9(e,i),l=!0);return l}a(CM,"exportProperty");function IM(e,t,n,i,r,o){let s=tf(e.file,!1,o);if(s){let l=yy(s);if(Rc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},CM)){let p=(0,PM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:Jy.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}a(IM,"getExtensionExportResult");var OM=a((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:o,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=gs(n||[],o.name,i,s)),u&&IM(u,l,o.config,r,"view",s),l},"exportFPMCustomPageConfig"),NM=a((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:o,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Sc(u,s[0]);p=xc(o,m,u,g,t)}if(p){let m=nf(t),A={...i.definitions[m],definitions:i.definitions};IM(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var LM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],K9=[...LM,"views","initialLoad","template"],DP=a(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function X9(e,t,n){var s,l,u,p;let i=`@${ud.UIAnnotationTerms.LineItem}`,r=`@${ud.UIAnnotationTerms.LineItem}`,o=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&o){let g=o.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}a(X9,"determineTargetAnnotationOfTable");function Q9(e,t,n){var o,s;let i,r;if(e.length>1){let l=(o=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:o[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}a(Q9,"determineTargetAnnotationOfChart");function q9(e,t,n,i,r){var o;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(o=i.$ref)==null?void 0:o.split(B)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}a(q9,"determineTargetAnnotationBasedOnParentView");function z9(e,t){var o;let n,i,r=(o=e.appSchema.definitions.MultiTableModeV4)==null?void 0:o.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=q9(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}a(z9,"determineTargetAnnotationOfView");function Y9(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FacetTitlePrefix)>-1?i=r=n.split(ie.FacetTitlePrefix)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}a(Y9,"determineTargetAnnotationOfHeaderSections");function J9(e,t){let n,i;if(e[1]==="custom"&&e[2]!==e[e.length-1])t=!0,i=e[2],n=i&&i.replace(/::/g,"/");else{let r=Yy(e[1]);i=r&&r.replace(/\//g,"::"),n=i&&i.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:i,targetAnnotation:n}}a(J9,"determineTargetAnnotationOfSections");function Z9(e,t,n){let i,r,o=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=X9(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Q9(e,t,n):e[0]===ie.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=J9(e,o):e[1]===ie.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=Y9(e,o,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=z9(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:o}}a(Z9,"determineTargetAnnotation");function ez(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}a(ez,"determineKeyForSyncRule");function tz(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}a(tz,"createNewObjectInManifest");function FM(e,t,n){var i,r;t.type!=="array"&&((i=n==null?void 0:n.targetDefinition)==null?void 0:i.type)==="object"&&((r=n==null?void 0:n.targetDefinition)!=null&&r.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&tz(e):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey])}a(FM,"transferPropertyToManifest");function nz(e,t,n,i,r,o,s){var u,p,g;let l=(u=n.appSchema.definitions.MultiTableModeV4)==null?void 0:u.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((p=n.config.table)!=null&&p.views)||e[1]==="views"&&((g=n.config.table)!=null&&g.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&LM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&K9.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config)}else i[t.manifestKey]!==void 0&&delete i[t.manifestKey];$a(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,o,s)}a(nz,"deleteFromManifest");function iz(e,t,n,i){let r=[...e],o=e.indexOf("subsections");for(;o>-1;)e.splice(o-1,2),o=e.indexOf("subsections");let{targetAnnotationEncoded:s,targetAnnotation:l,custom:u}=Z9(e,n.transferParameters,n.configObject),p=ez(e),g=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,s,p,l,n.configObject,r),m=Co(n.transferParameters.exportResults.manifest,g,l,u?void 0:s);if(m){let v={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:p};n.configObject[n.key]!==void 0?FM(v,n.propertyDefinition,i):nz(e,v,n.transferParameters,m,g,l,s)}}a(iz,"exportManifestChange");function rz(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);NM(e.transferParameters,r,n.configObject)}else i.manifest&&iz(t,i,e,n)}a(rz,"evaluateExportRule");function oz(e,t,n,i,r){let o=[],s=!1;e.propertyDefinition.$ref&&t?o.push(t.configObject):e.propertyDefinition.anyOf?o.push(n):e.propertyDefinition.type==="array"?(o=n,s=!0):o.push(n),e.index=0;for(let l of o){let u=[];e.breadcrumbs[0]===ie.PropertyName.sections&&e.key==="custom"&&s&&u.push(l.id),e.transferParameters.title=t==null?void 0:t.title,VP(e.transferParameters,l,[...i,...u],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}}a(oz,"transferSubObject");function az(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=yt(e.pageNameArray)+"/views",o=Co(e.exportResults.manifest,r);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}a(az,"createALPTableView");function sz(e){var o,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=yt(e.transferParameters.pageNameArray)+"/views",r=Co(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(o=e.configObject)==null?void 0:o.table)==null?void 0:s.annotationPath)||ud.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}a(sz,"createALPChartView");function cz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=yt(e.pageNameArray),r=Co(e.exportResults.manifest,i),o=`@${ud.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[o]?r.controlConfiguration[o].filterFields||(r.controlConfiguration[o].filterFields={},n=!0):(r.controlConfiguration[o]={filterFields:{}},n=!0):(r.controlConfiguration={[o]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[o].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}a(cz,"createVisualFilters");function lz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,o=yt(t.pageNameArray)+"/views",s=Co(t.exportResults.manifest,o),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}a(lz,"createLRTableView");function fz(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(ie.DefinitionName.CustomColumn))i=yM(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return sz(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return az(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=lz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=cz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}a(fz,"createNewElement");function uz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}a(uz,"isDefinitionTraversable");function _P(e,t,n,i=!1){var g;let r=e.configObject[e.key],o=kg(e.configObject,e.key),s=Oo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=fz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(B)[1],i),p=o?[...t,o]:[...t,e.key];if(l||rz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||uz(e.propertyDefinition)&&s.configObject)&&!u){let m=o?[...n,o]:n;oz(e,s,r,p,m)}}a(_P,"transferSortedListEntry");function pz(e,t,n,i,r){let o=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return o;s.sort((l,u)=>l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],_P(e,i,r),o=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,_P(e,i,r),o=!0)}),e.index++})}return o}a(pz,"transferConfigEntriesWithAnyOfDefinitions");function dz(e,t,n,i){let r=aE(e.appSchema,t,i);if(r){n||(n=[]);for(let o of r)n.some(s=>s[0]===o)||n.push([o,t])}}a(dz,"mergeEntriesForInsert");function gz(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}a(gz,"sortProperties");function mz(e,t,n,i,r,o){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split(B)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=pz(n,p,i,r,o)}return s}a(mz,"checkIfAnyOfDefinition");function VP(e,t,n,i,r,o){if(!(o!=null&&o.properties)&&!(o!=null&&o.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=o.additionalProperties,p=mz(u,e,l,o,n,i),g=gz(o.properties);u!=null&&u.$ref&&dz(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Jf(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,_P(l,n,i,p),m[1].$ref&&s++)})}a(VP,"transferManifestEntriesAndFlexChange");function RM(e,t,n){if(t==="custom"&&Array.isArray(e.sections[t])){let i=e.sections.custom;for(let r=0;r<i.length;r++)i[r]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[r],i[r].className)}}a(RM,"getClassesForSingleSection");function _M(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],RM(n,i,t),_M(n,t)}}a(_M,"getSubsectionClasses");function hz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],RM(e,r,n),_M(i,n)}a(hz,"getExportClassesForSections");function DM(e,t){let n=Ug(e);return`${t.appId}::${n.id}::${t.page.name}--`}a(DM,"calculateBaseId");var VM=a((e,t,n=!1)=>{var l;let i=DP(e.manifest),r=new Ia,o=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&hz(e.page.config,o,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:DM(o,e),appSchema:e.jsonSchema,config:o,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return VP(s,o,[],[],[],e.jsonSchema),i},"exportObjectPage"),yz=a((e,t,n,i,r,o,s=!1)=>{var E,O;let l=DP(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(B)[1]);let v=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&v)for(let R in v.properties)g.toolBar.actions[R]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[R]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:DM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:o,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return VP(A,n,[],[],[],u),l},"exportListPage"),MP=a((e,t,n,i=!1)=>{let r=new Ia,o=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return yz(e,r,o,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),MM=a((e,t,n=!1)=>MP(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),vz=a((e,t,n,i,r,o)=>{let s=Co(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=eE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=o.definitions.AppSettings.properties[n];FM(u,p,{}),!l&&Object.keys(s).length&&TR(r,t,s)},"applyExportRule"),Tz=a((e,t,n)=>{var o;let i=DP(t),r=Object.assign(new by,e);r.settings=Object.assign(new rf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)vz(l,u,s,e,i.manifest,n);else{let p=Co(i.manifest,u);((o=e.settings)==null?void 0:o[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],$a(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=bM(e.home,e.pages,i.manifest),xM(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),wM=a((e,t)=>{if(e[ie.SchemaType.ListReport])return MP(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return VM(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return Tz(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return MM(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return OM(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),wP=a((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return MP(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return VM(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return MM(e[ie.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var An=require("@sap-ux/fe-fpm-writer");var Ez=new Map([[pe.CustomExtensionType.CustomPage,An.generateCustomPage],[pe.CustomExtensionType.CustomColumn,An.generateCustomColumn],[pe.CustomExtensionType.CustomSection,An.generateCustomSection],[pe.CustomExtensionType.ObjectPage,An.generateObjectPage],[pe.CustomExtensionType.CustomAction,An.generateCustomAction],[pe.CustomExtensionType.CustomView,An.generateCustomView],[pe.CustomExtensionType.ControllerExtension,An.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,An.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,An.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,An.generateCustomHeaderSection]]);function bz(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=OP(i,r,o,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=IP(i,r,o,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=sd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=NP(i,r,o,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=Ey(pe.TemplateType.ListReportObjectPageV4,i,r,o,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=PS(i,r,o,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=Ey(pe.TemplateType.AnalyticalListPageV4,i,r,o,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=CS(pe.TemplateType.FreestylePageV4,i,o,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:o,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=IS(i,r,o,s,u,e.featureToggles,l)}}return t}a(bz,"generateSchema");function Az(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=gM(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=wM(i,n)}return t}a(Az,"exportConfig");function Sz(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=FP(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=wP(i,n)}return t}a(Sz,"exportConfigEntityByPath");function xz(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=FP(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=wP(i,n,!0)}return t}a(xz,"deleteConfigEntityByPath");function Pz(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=hh(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=Th(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Ah(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=yh(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=Uc(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=Qy(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=Uc(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=Ky(n[pe.SchemaType.FPMCustomPage]))}return t}a(Pz,"importConfig");async function Cz(e){return xP(e)}a(Cz,"importProject");async function Iz(e){return SP(e)}a(Iz,"importProjectSchema");function Oz(){return{version:"15",fpmWriter:"14"}}a(Oz,"getApiVersion");function RP(e){let t=Ez.get(e.customExtension);if(t&&typeof t=="function")return(0,An.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}a(RP,"generateCustomExtension");var Kr=require("path"),_s=require("fs");var bf=a(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),Nz=a(async e=>JSON.parse(await bf(e)),"readJSON"),kP=a(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),Lz=a(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),UM=a(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),Fz=a(async e=>Nz((0,Kr.join)(e,"manifest.json")),"getManifest"),jM=a(async e=>{let t=[],n=(0,Kr.join)(e,"changes");if(!await UM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await kP(n);for(let o of r)i.some(s=>o.endsWith(s))&&t.push(await bf((0,Kr.join)(n,o)));return t},"getChanges"),kM=a(async(e,t="fragments")=>{let n=[],i=(0,Kr.join)(e,"ext",t);if(!await UM(i))return n;let r=await kP(i);for(let o of r){let s=(0,Kr.join)(i,o),l=await bf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),Rz=a(async(e,t)=>{var r,o,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(o=i==null?void 0:i.mainService)==null?void 0:o.settings)!=null&&s.localUri){let v=(0,Kr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await bf(v)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let v of i.mainService.settings.annotations)if((g=(p=i[v])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,Kr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await bf(A)})}}if(n.length===0)for(let v in i){let A=i[v];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,Kr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await bf(E)})}}return n},"getAnnotations"),_z=a(async e=>{let t=(0,Kr.basename)(e),n=(0,Kr.join)(e,"webapp"),i=await Fz(n),r=await Rz(i,n),o=await jM(n),s=await kM(n),l=await kM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:s,views:l}},"getProject");Ks(Ni,te(ce()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
294
+ `}),t1(J)}a(en,"initI18n");var Ut=te(le());function hc(e,t,n){var r;let i;for(let o in e){let s=e[o];if(oa((r=s.component)==null?void 0:r.name)===Ut.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(o),s;if(s.pages&&(i=hc(s.pages,t,n),i))return n.unshift(o),i}}a(hc,"findObjectPageV2");function Ll(e,t){var n;for(let i in e){let r=e[i];if(oa((n=r.component)==null?void 0:n.name)===Ut.PageTypeV2.ListReport)return t.push(i),r}}a(Ll,"findListReportPageV2");function Fl(e){if(!e.manifest[Ut.ManifestSection.generic]){ae(e.logger,{severity:Ut.LogSeverity.Error,message:J.t("NOFE"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}let t=e.manifest[Ut.ManifestSection.generic].pages;if(!t){ae(e.logger,{severity:Ut.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}return t}a(Fl,"getV2Pages");function Rl(e,t,n){var i;if(!e){ae(t,{severity:Ut.LogSeverity.Error,message:J.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ae(t,{severity:Ut.LogSeverity.Error,message:J.t("NOENTITYSET",{pageName:r}),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}}a(Rl,"checkV2Page");function _l(e,t,n){var i;for(let r in e){let o=e[r];if(t.push(r),oa((i=o.component)==null?void 0:i.name)===Ut.PageTypeV2.AnalyticalListPage)return o}ae(n,{severity:Ut.LogSeverity.Error,message:J.t("NOALP"),location:{path:Ut.MANIFESTPATH,range:[Ut.ManifestSection.generic]}})}a(_l,"findAnalyticalListPage");function fA(e,t){let n=e.split("|");return Ut.v2.SectionPosition[n[0]]&&n[1]===t}a(fA,"isAssociatedCustomSection");function i1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${Ut.v2.SAPUI5_VIEW_EXTENSION}/${Ut.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)fA(r,t)&&(i[r]=n[r]);return i}a(i1,"findCustomSectionExtensions");function YK(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}a(YK,"removeEmptySettingsOfFooter");function JK(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}a(JK,"removeEmptySettingsOfFilterBar");function ZK(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}a(ZK,"removeEmptySettingsOfToolBar");function dh(e){ZK(e),JK(e),YK(e)}a(dh,"removeEmptySettings");var pA={};Hs(pA,{AnalyticalListPage:()=>wr,ListReport:()=>ao,ObjectPage:()=>ai,OverviewPage:()=>zt,exportFilterSettings:()=>a1,importDateSettingsOVP:()=>r1,importFilterSettings:()=>o1});var gh=te(le());var wr=class{};a(wr,"AnalyticalListPage"),h([T({flex:{controlId:wg,controlType:()=>gh.ControlType.DynamicPage,createFlexChange:Te}})],wr.prototype,"fitContent",2),h([Mt("table")],wr.prototype,"table",2),h([Mt("template::SmartFilterBar")],wr.prototype,"filterBar",2),h([Mt("analyticalListPageChart")],wr.prototype,"chart",2),h([Mt("analyticalListFooter")],wr.prototype,"footer",2),wr=h([Dr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:gh.v2.FE_TEMPLATE_V2_ALP})],wr);var Hu=te(le());var ao=class{};a(ao,"ListReport"),h([T({flex:{controlId:wg,controlType:()=>Hu.ControlType.DynamicPage,createFlexChange:Te}})],ao.prototype,"fitContent",2),h([Mt("listReportFilter")],ao.prototype,"filterBar",2),h([Mt("listReport")],ao.prototype,"table",2),h([Mt("listReportFooter")],ao.prototype,"footer",2),ao=h([Dr({id:Hu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hu.v2.FE_TEMPLATE_V2_LIST_REPORT})],ao);var uA=te(le());var ai=class{};a(ai,"ObjectPage"),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.52.0"})],ai.prototype,"showConfirmationOnDraftActivate",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.52.1"})],ai.prototype,"hideChevronForUnauthorizedExtNav",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.48.0"})],ai.prototype,"allowDeepLinking",2),h([T({manifest:{path:t=>Ci(t)}}),C({since:"1.52.0"})],ai.prototype,"navToListOnSave",2),h([Mt("header")],ai.prototype,"header",2),h([Mt("sections")],ai.prototype,"sections",2),h([Mt("layout")],ai.prototype,"layout",2),h([T({manifest:{path:t=>pm(t)}}),C({since:"1.77.0"})],ai.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([T({manifest:{path:t=>Ci(t),import:t=>{if("chartSettings"in t)return t.chartSettings},key:"chartSettings"}}),C({since:"1.78.0"})],ai.prototype,"globalChartSettings",2),h([T({manifest:{path:t=>Ci(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:Qs}}),C({since:"1.71.0"})],ai.prototype,"globalTableSettings",2),ai=h([Dr({id:uA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:uA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ai);function e3(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let o=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=o,o.equals&&typeof o.equals=="string"&&(t.fields[n].filter[r].equals=o.equals.split(","))}}}a(e3,"importDateSettingsFieldsOVP");function r1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&e3(e,t),t}a(r1,"importDateSettingsOVP");function o1(e){let t={};return t.dateSettings=r1(e.filterSettings),t}a(o1,"importFilterSettings");function t3(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let o in r.filter){let s=r.filter[o];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[o].equals=s.equals.join())}}}a(t3,"exportFilterFields");function a1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&t3(t,n,e))}a(a1,"exportFilterSettings");var zt=class{};a(zt,"OverviewPage"),h([T({manifest:{path:()=>hn()}})],zt.prototype,"globalFilterModel",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"globalFilterEntityType",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"globalFilterEntitySet",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"showBasicSearch",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"disableErrorPage",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"smartVariantRequired",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"bHeaderExpanded",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"containerLayout",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"showDateInRelativeFormat",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"disableTableCardFlexibility",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"enableLiveFilter",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"enableLazyRendering",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"refreshStrategyOnAppRestore",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"considerAnalyticalParameters",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"refreshIntervalInMinutes",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"useDateRangeType",2),h([T({manifest:{path:()=>hn(),import:o1,export:a1}}),C({since:"1.80.0"})],zt.prototype,"filterSettings",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"dataLoadSettings",2),h([T({manifest:{path:()=>hn()}})],zt.prototype,"resizableLayout",2),zt=h([Dr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],zt);var dA=class dA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let o=this.controls[r]?this.controls[r]:this.controls[n];return o||(o=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),o?Object.assign(new o,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};a(dA,"MetadataFactory");var Dl=dA;var Zn=te(le());var n3={},i3={Table:rc,ResponsiveTableWithMultiSelect:rc,ResponsiveTableWithInlineDelete:rc},r3={[Zn.v2.CardSettingsType.listCardSettings]:El,[Zn.v2.CardSettingsType.listCardSettingsv4]:El,[Zn.v2.CardSettingsType.analyticalCardSettings]:bl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:bl,[Zn.v2.CardSettingsType.stackCardSettings]:uu,[Zn.v2.CardSettingsType.linkListCardSettings]:pu,[Zn.v2.CardSettingsType.tableCardSettings]:Al,[Zn.v2.CardSettingsType.tableCardSettingsv4]:Al},o3={[Zn.SAPUI5_VIEW_CLASS]:wu,[Zn.SAPUI5_FRAGMENT_CLASS]:Mu,Table:mc,ObjectPageResponsiveTableWithMultiSelect:mc,ObjectPageResponsiveTableWithInlineDelete:mc},a3={[Zn.PageTypeV2.AnalyticalListPage]:n3,[Zn.PageTypeV2.ListReport]:i3,[Zn.PageTypeV2.ObjectPage]:o3,[Zn.PageTypeV2.OverviewPage]:r3},gA=class gA extends Dl{constructor(){super(sA,pA,a3)}};a(gA,"MetadataInstanceFactoryV2");var Ii=gA;function s3(e,t,n,i,r){if(e.filterBar=t.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Kt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let o=i.SelectionFields.properties;for(let s in o){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Kt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}a(s3,"importFilterBar");function c3(e,t,n,i,r){var s;let o;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?o=t[e+"<LineItems>"]:t[Wg]&&t[Gg]&&(o=JSON.parse(JSON.stringify(t[Wg])),o.properties={...o.properties,...t[Gg].properties}),Dn(n.table,i.manifest,o,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&ae(i.logger,{severity:Kt.LogSeverity.Error,message:J.t("NOLINEITEMS")})}a(c3,"importTable");function l3(e,t,n,i){let r=e.jsonSchema.definitions,o=uh(e.manifest,i);if(t.table=n.createInstance(Kt.PageTypeV2.ListReport,o,t.table),ph(t,n,r),c3(o,r,t,e,i),t.table.toolBar=n.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Kt.DefinitionName.ToolBarLR],i,e.logger),r[Kt.DefinitionName.ActionsLR])for(let l in r[Kt.DefinitionName.ActionsLR].properties){let u=cs(l);t.table.toolBar.actions[u]=n.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Kt.DefinitionName.Action],i,e.logger)}s3(t,n,e,r,i),t.footer={actions:{}};let s=r[Kt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=cs(l);t.footer.actions[u]=n.createInstance(Kt.PageTypeV2.ListReport,Kt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Kt.DefinitionName.Action],i,e.logger)}}a(l3,"addSettings");function mh(e){if(en(),!Fl(e))return;let n=new Ii,i=n.createPageInstance(Kt.PageTypeV2.ListReport),r=[],o=Ll(e.manifest[Kt.ManifestSection.generic].pages,r);if(Rl(o,e.logger,o==null?void 0:o.entitySet),!!o)return l3(e,i,n,r[0]),e.flex.forEach(s=>{ja(s)&&fh(i,s,e.jsonSchema,e.logger)}),Nl(i,e.manifest,o,Kt.PageTypeV2.ListReport,e.fragments),dh(i),i}a(mh,"createListReportConfig");var St=te(le());function f3(e,t,n,i){var u,p;let r=uh(e.manifest,i),o=e.jsonSchema.definitions;if(ph(t,n,o),t.table=n.createInstance(St.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Dn(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,o[St.DefinitionName.ToolBar],i,e.logger),o[St.DefinitionName.ActionsLR])for(let g in o[St.DefinitionName.ActionsLR].properties){let m=cs(g);t.table.toolBar.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.Action),Dn(t.table.toolBar.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,o[St.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),o[St.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let g=o[St.DefinitionName.SelectionFields].properties;for(let m in g){let v=m;t.filterBar.selectionFields[v]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[v],e.manifest,o.SelectionFieldDateSettings,i,e.logger,v)}}t.chart=n.createInstance(St.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let s=o[St.DefinitionName.FooterActionsLR];if(s)for(let g in s.properties){let m=cs(g);t.footer.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.FooterAction),Dn(t.footer.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[St.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(g=>{t.keyPerformanceIndicators[g]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[g],e.manifest,o.KPISettings,i,e.logger,g)})}a(f3,"addSettings");function hh(e){if(en(),!Fl(e))return;let n=new Ii,i=n.createPageInstance(St.PageTypeV2.AnalyticalListPage),r=[],o=_l(e.manifest[St.ManifestSection.generic].pages,r,e.logger);if(Rl(o,e.logger,o==null?void 0:o.entitySet),!!o)return f3(e,i,n,r[0]),e.flex.forEach(s=>{ja(s)&&fh(i,s,e.jsonSchema)}),Nl(i,e.manifest,o,St.PageTypeV2.AnalyticalListPage,e.fragments),dh(i),i}a(hh,"createAnalyticalListPageConfig");var Ee=te(le());var Wu=require("@sap-ux/vocabularies-types/vocabularies/UI");var p3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function d3(e,t){let n=e[0].split("-"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Wu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ActionTitlePrefix}${t}`;else if(e[0].indexOf(Wu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}a(d3,"getSingleSelectorIdPart");function g3(e){let t,n=e.split(":::");if(n.length===1)t=d3(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Wu.UIAnnotationTerms.LineItem}`,`/@${Wu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}a(g3,"getFacetID");function m3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=ja(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let A=g3(v);v=cA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${g.content.property}`]={controlId:v,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){ae(n,{severity:Ee.LogSeverity.Error,message:J.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}a(m3,"prepareFlexChanges");var h3=a(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function y3(e,t,n,i,r,o){let s;r?s=[r.replace(/@/g,"")]:s=[o.replace(/@/g,""),o==null?void 0:o.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,g=t==="columns"&&u.controlType===Ee.ControlType.TableColumn;(p||g)&&s.indexOf(u==null?void 0:u.facetId)>-1&&lm(n,u,i.jsonSchema)}}a(y3,"importFlexChangesOfTable");function v3(e,t){return e.facetId==="template"&&t}a(v3,"isStandardActionFlexChange");var s1=a((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,o=e.slice(i,r);return o.length===t.length&&t.every(s=>o.includes(s))},"idElementChecker");function T3(e,t,n,i,r,o){var O;let s=!1,l=!1;o?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ActionTitlePrefix))&&!r&&s,m=r&&s1(u,r.split("::"))&&s,v=e.title&&s1(u,e.title.split("::"),!0),A=!t.facetId&&p3.includes(t.controlType),E=v3(t,l);return p||g||m||v||A||E}a(T3,"matchSelector");function E3(e,t,n,i,r,o){var u;let s=new RegExp(`.*${o}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;T3(e,g,s,l,r,o)&&(t[i]=g.newValue)}}a(E3,"importFlexChanges");function b3(e,t,n,i){if(e&&t)for(let r in e){let o=t[r];o&&(ae(n.logger,{severity:Ee.LogSeverity.Warning,message:jg(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}a(b3,"checkDeprecatedProperties");function A3(e,t,n,i,r,o,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return b3(p,o,n,u),p}a(A3,"importManifestSetting");function Oi(e,t,n,i,r,o){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let g=zn(t,p);if(p==="columns"||g!=null&&g.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))y3(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);E3(n,t,i.flexChanges,p,m,o)}else g!=null&&g.manifest&&A3(g,i.pageKeys,e,t,p,s,r)}}a(Oi,"transferSettingsAndFlexChanges");function l1(e,t,n,i){let r=Hi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${KR}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Kg}${r}`;break}}return r.replace(/@/g,"")}a(l1,"getActionId");function S3(e,t,n,i){var r;for(let o in t){let s=t[o].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[o].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=l1(s,o,"","");e.actions[o]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Oi(n,e[Ee.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},u)}}}a(S3,"fillStandardActions");function yh(e,t,n,i,r,o){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};o&&(u.id=o);for(let p in t){let g=cs(p),m=l1(s,g,r,o);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Oi(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}S3(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}a(yh,"fillActions");function x3(e,t,n,i,r){var s;let o;i[t.id].form.fields={};for(let l in n){o=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${o}`:`${t.title}::${o}`;Oi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}a(x3,"fillFields");function P3(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}a(P3,"prepareTableSchema");function C3(e,t,n,i,r){var l,u;let o=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=P3(p,t,m);Oi(e,i[t.id],t.schema,r,{title:t.title}),Oi(e,i[t.id][Ee.PropertyName.table],v,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");yh(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}a(C3,"fillTableInConfig");function I3(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?Bg(r.$ref):void 0;if(o){let s={key:t.replace("@",""),target:o};Nl(n[t],e.manifest,i,Ee.PageTypeV2.ObjectPage,e.fragments,s)}}a(I3,"fillCustomColumnsInConfig");function O3(e,t,n,i,r){let o=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Oi(e,i[t.id],t.schema,r,{title:t.title}),Oi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}a(O3,"fillChartSection");function N3(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Oi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}a(N3,"fillHeaderSection");function L3(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Oi(e,n[t.id],t.schema,i,{title:t.title});let o=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");o!=null&&o.properties&&yh(e,o.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&x3(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}a(L3,"fillFormSection");function c1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Oi(e,i[t.id],t.schema,r,t);let o,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?o=s.subsections.properties:o=s,mA(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}a(c1,"fillSubSection");function mA(e,t,n,i,r){var s;let o=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:h3(t[l]),schema:t[l],title:fE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=o[`${p.type}<${l}>`],C3(e,p,n,i,r),I3(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=o[`${p.type}<${l}>`],O3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=o[`${p.type}<${l}>`],L3(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=o[`${p.type}<${l}>`],c1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=o[`${p.type}<${l}>`],N3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=o[`${p.type}<${l}>`],c1(e,p,n,i,r))}}a(mA,"fillSectionsInConfig");function F3(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let o in e){let s="fragmentName"in e[o]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[o]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Oi(r,s,l,n,{id:o}),t.sections.custom.push(s)}}}a(F3,"fillCustomSectionsInConfig");function R3(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Oi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Oi(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Oi(e,n.header,r,t);let o=i[Ee.DefinitionName.ObjectPageHeaderActions];o&&yh(e,o.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&yh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Oi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;mA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;mA(e,u.properties,v,n.sections,t)}let p=i1(e.manifest,e.entitySet);return F3(p,n,t,i,e),n}a(R3,"fillConfig");function vh(e){en();let t=Fl(e);if(!t)return;let n=e.entitySet,i=[],r=hc(t,e.entitySet,i);if(Rl(r,e.logger,n),!r)return;let o=m3(e.flex,n),s=new Ii;return R3(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:s})}a(vh,"createObjectPageConfigV2");function Eh(e,t){var n,i;return(n=e.component)!=null&&n.name?_g(oa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}a(Eh,"generateId");function _3(e,t,n,i,r,o,s){e.navigation={};let l=f1(t.pages,n,i,r,o);for(let u in l){let p=l[u];s[u]=p}for(let u in t.pages){let p=Eh(t.pages[u],u);e.entitySet?e.navigation[p]=l[p].navigationProperty?`${e.entitySet}.${l[p].navigationProperty}`:e.entitySet:e.navigation[p]=l[p].navigationProperty?l[p].navigationProperty:p}}a(_3,"getPageConfigsAndNavigations");function f1(e,t,n,i,r,o){var l;let s={};for(let u in e){let p=e[u],g=Eh(p,u);if(!g)continue;let m={pageType:oa((l=p.component)==null?void 0:l.name),entitySet:p.entitySet,...p.navigationProperty&&{navigationProperty:p.navigationProperty},...p.defaultLayoutType&&{defaultLayoutType:p.defaultLayoutType}};s[g]=m;let v=Object.keys(i).find(A=>A.includes(g))||Object.keys(i).find(A=>A.includes(g.slice(0,-1)))||Object.keys(i).find(A=>A.includes(m.pageType));if(v)if(m.pageType===yn.PageTypeV2.ListReport){let A={manifest:n,flex:t,jsonSchema:i[v],fragments:r,logger:o};m.config=mh(A)}else if(m.pageType===yn.PageTypeV2.AnalyticalListPage){let A={manifest:n,flex:t,jsonSchema:i[v],fragments:r,logger:o};m.config=hh(A)}else{let A={manifest:n,flex:t,jsonSchema:i[v],entitySet:m.entitySet,fragments:r,logger:o};m.config=vh(A)}p.pages&&_3(m,p,t,n,i,r,s)}return s}a(f1,"getPagesAndConfigs");var hA=class hA extends Ga{constructor(t){en();let n;t.manifest[yn.ManifestSection.generic]?n=t.manifest[yn.ManifestSection.generic].pages:ae(t.logger,{severity:yn.LogSeverity.Error,message:J.t("NOFE"),location:{path:yn.MANIFESTPATH,range:[yn.ManifestSection.generic]}}),n||ae(t.logger,{severity:yn.LogSeverity.Error,message:J.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:yn.MANIFESTPATH,range:[yn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Eh(n[i],i),o=new Ka,s=Ft(yn.SchemaType.Application),l=t.appSchemas[s.filename];Dn(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,f1(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),yn.FioriElementsVersion.v2,o)}};a(hA,"V2AppProvider");var Th=hA;function Gu(e,t,n){var r,o;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||ae(n,{severity:yn.LogSeverity.Error,message:J.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:yn.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let u=Eh(l,s);i[u]=l}if(t===yn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Gu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}a(Gu,"getPages");var ga=te(le());var Do=te(le());var vA=te(_T());var Xt=te(le());var D3=["colorPalette","tabs"];function V3(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}a(V3,"createCard");function u1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),u1(e,n.join("|"))}return t}a(u1,"findAvailableId");function Ku(e,t,n,i,r,o,s){i!=null&&i.properties&&yA(e,t,n,i.properties,r,o,s)}a(Ku,"transferManifestEntriesOVP");function yc(e,t,n,i){return e.createInstance(Xt.PageTypeV2.OverviewPage,i,n,t)}a(yc,"assignReflectMetadataRules");function M3(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=yc(e.factory,i[1],t,"CustomCard"),Ku(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}a(M3,"processAnyOfDefinitionsOfOVP");function w3(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!D3.includes(i)?t[i]=(0,vA.default)(t[i]||{},r||{},{arrayMerge:sE}):t[i]=r}a(w3,"checkSyncRuleForExport");function k3(e,t,n,i,r,o){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Xt.v2.CardSettingsType||n==="settings")l.settings=(0,vA.default)(l.settings||{},r||{},{arrayMerge:sE});else if(r!==void 0){let u=e.manifest.export;w3(u,l,o,n,r)}else l[n]!==void 0&&delete l[n]}a(k3,"transferToManifest");function U3(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,s;Object.values(Xt.v2.CardTemplateType).includes(o)?s=Object.keys(t.definitions).filter(l=>{var p;let u=(p=t.definitions[l].properties)==null?void 0:p.template;if(u!=null&&u.enum)return u.enum.indexOf(e[r].template)>-1;if(u!=null&&u.const)return u.const===e[r].template}):s=["CustomCard"],e[r]=yc(n,s[0],e[r],"CustomCard"),V3(r,i.manifest[Xt.ManifestSection.ovp]),Ku(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[Xt.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Xt.ManifestSection.ovp].cards[r]})}a(U3,"transferCards");function j3(e,t,n){if(t==="cards")U3(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Io(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Xt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split($);e.currentObject=yc(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ku(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],yA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],yA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}a(j3,"exportOfObject");function yA(e,t,n,i,r,o,s){for(let l in i){if(l==="description"||s&&o&&s[o.length]!==l&&!Jf(o,s))continue;let u=e[l],p=zn(e,l),g={pathHierarchy:o,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t};o[o.length-1]==="anyOf"?(g.currentObject=e[o[o.length-2]],u=M3(g)):u&&typeof u=="object"&&i[l]&&j3(g,l,r),p!=null&&p.manifest&&k3(p,o,l,t,u,e)}}a(yA,"processProperties");function $3(e,t,n,i,r,o,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=HR(o,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=n.flex.createFlexChange(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let R=JSON.parse(m);return R={content:R.content,selector:R.selector},JSON.stringify(O)===JSON.stringify(R)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}a($3,"evaluateFlexRule");function B3(e,t,n,i,r,o){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[o]===void 0&&(n[o]={},e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,o):s!==!1&&(n[o]=i[r]),e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated}}a(B3,"exportConfigValueToManifest");function H3(e,t,n,i,r){let o=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)B3(e,n,o,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(o,r,i,s):Object.prototype.hasOwnProperty.call(o,s)&&delete o[s],e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated,Ua(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}a(H3,"evaluateManifestRule");function W3(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Xt.FacetTitlePrefix)?r.split(Xt.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}a(W3,"getManifestPathOfSections");function G3(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}a(G3,"getManifestPathOfTable");function K3(e,t,n,i,r){let o;return t[0]===Xt.PropertyName.sections?o=W3(t,o,n,e,r):t[0]===Xt.PropertyName.table?o=G3(t,o,n,e,i):t[0]==="keyPerformanceIndicators"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):o=n.manifest.path(e.pageKeys),o}a(K3,"getManifestPath");function X3(e,t,n,i,r,o,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)$3(e,i,t,r,o,n,s);else if(t.manifest){let u=K3(e,i,t,n,o);H3(e,u,t,s,n)}}a(X3,"evaluateExportRule");function Q3(e,t,n){var s;let i=e.split("|"),r=i[1],o=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===o||o===void 0&&u.tabKey===""||o&&t.sectionKey===o)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Sm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Xt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Xt.ViewTemplateType.ResponsiveTableColumnsExtension,Xt.ViewTemplateType.ResponsiveTableCellsExtension);Sm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}a(Q3,"deleteObsoleteColumn");function q3(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=g0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Xt.ChangeIndicator.Updated,Q3(r,e,n))}a(q3,"deleteObsoleteColumnsFromFragment");function z3(e,t,n,i,r){let o={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=xm(n,i,s.tabKey||r,s.extensionType);o[l]||(o[l]={viewTemplateType:u,columns:[]}),o[l].columns.push(s)}return o}a(z3,"clusterConfigColumnsByPath");function p1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Xt.v2.TableColumnExtensionTypeV2){let{path:u}=xm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};q3(p)}if(t){let l=z3(t,n,e.v2Page,s,r);for(let u in l)QE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}a(p1,"transferColumnExtensions");function Y3(e,t,n,i,r,o){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=u1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=o.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split($),v=e.appSchema.definitions[m[m.length-1]];ls(e,t[p],i,[...r,s[p]],v)}let u=Bn(e.exportResults.manifest,TE());for(let p in u)fA(p,l)&&!s.includes(p)&&delete u[p]}a(Y3,"transferManifestExtensions");function J3(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Xt.PropertyName.table){n=e[i-1];break}return Qn(n,t)}a(J3,"getSectionId");function Z3(e,t,n,i,r,o){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Io(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ls(t,u.configObject,r,[...o,i],u.targetDefinition,l)})}a(Z3,"transferIndexTable");function eX(e,t,n,i,r,o){let s,l=Bg(e.$ref);l&&(s={target:l,key:J3(t,n)}),p1(i,r==null?void 0:r.custom,o.targetDefinition,s)}a(eX,"transferCustomColumns");function tX(e,t,n,i,r,o,s){e.anyOf.forEach(l=>{let u=Io(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ls(t,u.configObject,o,[...s,r],u.targetDefinition,u.title)})}a(tX,"handleAnyOfDefinitions");function nX(e,t,n,i,r,o,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")Y3(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){eX(l,t,s,e,n,o);return}else o?ls(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&tX(l,e,s,n==null?void 0:n[r],r,i,t)}a(nX,"transferComplexProperty");function ls(e,t,n,i,r,o){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Jf(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&kg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Io(e.appSchema,o,s,m,l,e.factory,e.pageType);if(X3(e,g,t,[...i],p,o,l),Z3(s,e,o,l,p,i),s===void 0||typeof s=="object")nX(e,i,t,p,l,v,o);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){p1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}a(ls,"transferManifestEntriesAndFlexChange");function d1(e,t,n,i,r,o){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=yc(r,i,n[i],s),o.push(i),TA(r,n[i],e,l.properties,o)}a(d1,"transferSettingsOfRef");function iX(e,t,n,i,r,o){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);d1(i,s,e,t,r,o)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Do.v2.cardTemplateSettingsMap[e.template]}`.split($);d1(i,l,e,t,r,o)}}a(iX,"processPropertiesOfObject");function rX(e,t,n,i,r,o){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ll(s,u,t,e)}catch(p){ae(i.logger,{severity:Do.LogSeverity.Error,message:J.t("XMLPARSEFAILURE",{error:Vg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&iX(e,t,r,i,o,n)}a(rX,"processOvpProperty");function TA(e,t,n,i,r){for(let o in i)rX(t,o,r,n,i,e)}a(TA,"processOvpProperties");function oX(e,t,n){TA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Do.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Do.ManifestSection.ovp].cards[i].template,o=Do.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=yc(n,o,{},"CustomCard"),e.cards=yc(n,o,e.cards,"CustomCard"),TA(n,e.cards[i],t,t.jsonSchema.definitions[o].properties,[i])})}a(oX,"addSettings");function bh(e){let t=new Ii,n=t.createPageInstance(Do.PageTypeV2.OverviewPage);return e.jsonSchema&&oX(n,e,t),n}a(bh,"createOverviewPageConfig");var EA=class EA extends Ga{constructor(t){let n={},i=t.manifest[ga.ManifestSection.ovp],r=new Ka,o=Ft(ga.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(ga.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:ga.PageTypeV2.OverviewPage,config:bh(l),entitySet:i.globalFilterEntitySet},p=_g(u.pageType,u.entitySet);n[p]=u,super(t.manifest,t.appSchemas,p,n,ga.FioriElementsVersion.v2,r,t.logger)}};a(EA,"V2OvpProvider");var Ah=EA;var Vo=require("@sap-ux/vocabularies-types/vocabularies/UI");var re=te(le()),g1=require("path");function aX(){return([e,t],[n,i])=>t[re.SchemaTag.propertyIndex]-i[re.SchemaTag.propertyIndex]}a(aX,"sortByPropertyIndex");function Xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(aX())}a(Xu,"sortPropertiesRecords");function m1(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}a(m1,"getExtensionText");function bA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||re.v4.Placement.After)===re.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}a(bA,"addExtensionToSortedArray");function sX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}a(sX,"addRemainingTargetByBefore");function AA(e,t,n,i,r=!1){var u,p;let o=Object.entries(e).length,s=a((g,m)=>{let v=m1(g);return{$ref:`${$}${t}`,description:v,keys:[{name:re.SchemaKeyName.key,value:`${m}`}]}},"getExtensionDetails");for(let g of Object.keys(e)){let m=e[g],v=s(m,g);if((u=m.position)!=null&&u.anchor&&((p=m.position)!=null&&p.placement)){let A=n.findIndex(E=>E[0]===m.position.anchor);A>-1?(bA(m,n,A,g,v),delete e[g]):g===m.position.anchor||Object.keys(e).indexOf(m.position.anchor)===-1?(ae(i,{severity:Ni.LogSeverity.Error,message:J.t("INVALIDANCHOR",{id:g,anchor:m.position.anchor}),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.generic]}}),n.splice(n.length,0,[g,v]),delete e[g]):r&&sX(e,g,m,n,v)}else r&&(bA(m,n,n.length,g,v),delete e[g])}let l=Object.entries(e).length;l>0&&o!==l?AA(e,t,n,i):l>0&&AA(e,t,n,i,!0)}a(AA,"adjustCustomExtReferringToCustomExt");function cX(e,t){var r,o;let n=((r=e.position)==null?void 0:r.placement)||re.v4.Placement.After,i=(o=e.position)==null?void 0:o.anchor;if(!i){let s=n===re.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}a(cX,"getExtensionAnchor");function lX(e,t){var i;let n=[];for(let r in e){let o=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===o);o&&!s&&n.push(r)}return n}a(lX,"getLocalExtensionsToSkip");function fX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||re.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let o=a((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===re.v4.Placement.Before?s=o(0,p=>!p):s=o(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==re.v4.Placement.Before))}),s>-1?s:0}a(fX,"getExtensionIndexByMergedApproach");function uX(e,t,n,i,r=!1){return r?fX(e,t,n):n.findIndex(o=>o[0]===i)}a(uX,"getExtensionIndex");function pX(e,t,n,i,r){ae(e,{severity:Ni.LogSeverity.Error,message:J.t("INVALIDEXTENSION",{id:t}),location:{path:re.MANIFESTPATH}}),n.push([t,i]),delete r[t]}a(pX,"handleInvalidExtension");function ma(e,t,n,i="template",r,o=!1){let s=[...t],l={...e},u=lX(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m={$ref:`${$}${n}`,description:m1(g)||p,keys:[{name:re.SchemaKeyName.key,value:`${p}`}],actionType:re.ActionType.Custom};if(typeof g!="object"){pX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=cX(g,s);if(v){let A=uX(g,e,t,v,o);A>-1&&(bA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&AA(l,n,t,r),t}a(ma,"addExtensionToArray");function vc(e,t,n,i=re.DefinitionName.CustomColumn,r,o){var v,A,E,O;let s=r||re.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Xu(l),p=o?o.replace(/::/g,"/"):`@${Vo.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=ma(g,u,i,void 0,n));for(let R=0;R<u.length;R++)u[R][1][re.SchemaTag.propertyIndex]=R;let m={};u.forEach(([R,U])=>m[R]=U),e.definitions[s].properties=m}a(vc,"addCustomColumnDefinition");function dX(e){let t;return e.lineItemId.startsWith(re.DefinitionName.LineItemsOfView)?t=re.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(re.DefinitionName.LineItems)?t=re.DefinitionName.ToolBarAction:t=re.DefinitionName.ObjectPageToolBarAction,t}a(dX,"determineActionDefinitionName");function gX(e,t,n){e[re.SchemaTag.keys]=[],t[re.SchemaKeyName.semanticObject]&&e[re.SchemaTag.keys].push({name:re.SchemaKeyName.semanticObject,value:t[re.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Js(n,!0);e[re.SchemaTag.keys].push({name:re.SchemaKeyName.action,value:i}),r&&(e[re.SchemaTag.target]=r)}a(gX,"addTargetAndKeysOfAction");function mX(e,t,n,i,r,o=!0){if(i.Determining===!0)return;let s=dX(e),l=yi(i,e.entityType),u=i.$Type.split(`${re.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Hg(p),m=t.properties[`${u}::${g}`]={description:l};if(o?m.$ref=$n(s,ut(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[re.SchemaTag.propertyIndex]=r,m[re.SchemaTag.dataType]=Jr(i),gX(m,i,p),m[re.SchemaTag.annotationType]=i.$Type,o){let v=kt(s,ut(g),e.appSchema);v[re.SchemaTag.annotationPath]=`${n}/${r}`}else m[re.SchemaTag.annotationPath]=`${n}/${r}`}a(mX,"addActionRecordToSchema");function hX(e,t,n,i,r){var u;let o=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(re.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=sa(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[o]);let g=p.properties,m={description:yi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[re.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[re.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[re.SchemaTag.propertyIndex]=i,m[re.SchemaTag.dataType]=Jr(s),g[l]=m,em(s,g,l)}}a(hX,"addLineItemRecordToSchema");function SA(e,t,n,i,r=re.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let o=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Vo.UIAnnotationTypes.DataFieldForAction||s.$Type===Vo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))mX(e,t,n,s,o,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Vo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;hX(e,l,u,o,i)}o++})}a(SA,"appendLineItemsToSchema");function Tc(e,t=re.DefinitionName.TableColumn,n=re.DefinitionName.CustomColumn,i=re.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:o}=Jg(e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);SA(e,r,o,void 0,t)}a(Tc,"addLineItemsTypeToSchema");function Ec(e,t,n,i=re.DefinitionName.Position,r){var p,g,m,v,A;let o=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(o)for(let E in o)E!=="custom"&&s.push(E);let l=t!==re.DefinitionName.LineItems?r:`@${Vo.UIAnnotationTerms.LineItem}`,u=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;ca(s,E)}}a(Ec,"addFragmentEnumForAnchor");function Mo(e,t,n=re.DefinitionName.CustomActionPosition){Ha(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}a(Mo,"addEnumForActionAnchor");function Sh(e,t,n,i){var o,s,l,u;let r;for(let p in e)if((i&&((s=(o=e[p].options)==null?void 0:o.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===re.v4.FE_TEMPLATE_V4_ALP&&e[p].name===re.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}a(Sh,"findPageV4");function h1(e,t){let n,i=e.properties[re.PropertyName.table];return t.templateType===re.TemplateType.AnalyticalListPageV4?(n=re.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${re.DefinitionName.ALPTableView}`,delete e.definitions[re.DefinitionName.Table],delete e.definitions[re.DefinitionName.LRChartView],delete e.definitions[re.DefinitionName.LRTableView],delete e.definitions[re.DefinitionName.MultiTableModeV4]):t.templateType===re.TemplateType.ListReportObjectPageV4&&(n=re.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${re.DefinitionName.Table}`,e.definitions[n].properties[re.PropertyName.annotationPath][re.SchemaTag.hidden]=!0,delete e.definitions[re.DefinitionName.ALPTableView],e.properties[re.PropertyName.defaultPath][re.SchemaTag.hidden]=!0),n}a(h1,"alignSchemaWithTemplateType");function fs(e,t,n,i=re.DefinitionName.CustomTableAction,r="",o=""){var g,m,v,A;let s=e.definitions[r];if(!s)return;let l=Xu(s),u;o?i.indexOf(re.DefinitionName.CustomFormActionOP)!==-1?u=o.replace(/::/g,"#"):u=o.replace(/::/g,"/"):i===re.DefinitionName.CustomFormActionOP?u=`@${Vo.UIAnnotationTerms.FieldGroup}`:u=`@${Vo.UIAnnotationTerms.LineItem}`;let p=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[u])==null?void 0:A.actions;if(p&&(l=ma(p,l,i,"press",n)),l){for(let O=0;O<l.length;O++)l[O][1][re.SchemaTag.propertyIndex]=O;let E={};l.forEach(([O,R])=>E[O]=R),e.definitions[r].properties=E}}a(fs,"addCustomActionDefinition");function xh(e,t,n,i=re.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,E,O,R;let o=e.definitions[r];if(!o)return;let s=Xu(o),l;[re.DefinitionName.CustomHeaderAction,re.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(R=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:R.actions,l&&(s=ma(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][re.SchemaTag.propertyIndex]=U;s.forEach(([U,H])=>u[U]=H)}e.definitions[r].properties=u}a(xh,"addHeaderFooterCustomActionDefinition");function bc(e,t,n){let i=Mg(e,[re.ManifestSection.ui5,"routing","targets"]);if(!i){ae(n,{severity:Ni.LogSeverity.Error,message:J.t("NOTARGETS"),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.ui5,"routing"]}});return}let r=Mg(i,[t]);if(!r){ae(n,{severity:Ni.LogSeverity.Error,message:J.t("NOROUTINGID",{routingId:t}),location:{path:re.MANIFESTPATH,range:[re.ManifestSection.ui5,"routing"]}});return}return r}a(bc,"getManifestPage");function Ac(e,t,n,i,r){var o,s;if(r){let l=((o=n["sap.app"])==null?void 0:o.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,g1.join)(...p,g),v=e.find(A=>A.dataSourceUri.endsWith(m));if(v){let A=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}a(Ac,"getPageCustomExtensionFile");function us(e,t,n,i){let r=bc(n,t,i),o=Mg(r,["options","settings","viewName"]);return r&&typeof o=="string"?Ac(e,r,n,"view",o):void 0}a(us,"getPageCustomViewFile");function y1(e,t,n,i,r,o,s){var g,m,v,A,E,O,R,U,H,W,ie,Z;let l=Xu(t),u=new Map;if(l=l.map(ne=>{let Le=cm(e,ne[1],ne[0],{keyProperties:[re.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Le.const,ne[0]),[Le.const,ne[1]]}),o){let ne=(E=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:E[o];ne&&"subSections"in ne&&(l=ma(ne.subSections,l,i,"template",s,r))}else if(i.includes(re.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let ne=(U=(R=(O=n.options)==null?void 0:O.settings)==null?void 0:R.content)==null?void 0:U.header;ne&&"facets"in ne&&(l=ma(ne.facets,l,i,"template",s,r))}else{let ne=(Z=(ie=(W=(H=n.options)==null?void 0:H.settings)==null?void 0:W.content)==null?void 0:ie.body)==null?void 0:Z.sections;ne&&(l=ma(ne,l,i,"template",s,r))}for(let ne=0;ne<l.length;ne++)l[ne][1][re.SchemaTag.propertyIndex]=ne;let p={};l.forEach(([ne,Le])=>{ne=u.get(ne)||ne,p[ne]=Le}),t.properties=p}a(y1,"addCustomSectionDefinition");function v1(e,t,n){var l,u,p;let i=Xu(t),r=new Map;i=i.map(g=>{let m=cm(e,g[1],g[0],{keyProperties:[re.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let o=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Vo.UIAnnotationTerms.SelectionFields}`];typeof o=="object"&&"filterFields"in o&&(i=ma(o.filterFields,i,re.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][re.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}a(v1,"addCustomFilterFieldDefinition");var _=te(le()),Sc=require("@sap-ux/vocabularies-types/vocabularies/UI");var yX=["header","filterBar","chart","table"],xA="@UI.LineItem";function PA(e,t,n,i){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=fr(e.fullyQualifiedName,Sc.UIAnnotationTerms.SelectionFields));let r=0;return n==null||n.forEach(o=>{var p,g;let s=o.value,l="SelectionField::"+ut(o.value);o.type==="PropertyPath"&&(s=Lg(o,e)),i.properties[l]={$ref:$+l},i.properties[l][_.SchemaTag.propertyIndex]=r;let u=Jr(o);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...u&&{dataType:u}},t.definitions[l][_.SchemaTag.isViewNode]=!0,t.definitions[l][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${o.value}`}],((p=o.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][_.SchemaTag.target]=o.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(g=o.$target)!=null&&g.fullyQualifiedName&&(t.definitions[l][_.SchemaTag.target]=o.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][_.SchemaTag.annotationType]=o==null?void 0:o.type,t.definitions[l][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${r}`,r++}),i}a(PA,"addSelectionFields");function vX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Sc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let o={};return Object.keys(t).forEach(s=>{t[s].template||(o[s]=t[s])}),Object.keys(o).length>0?o:void 0}}a(vX,"getVisualFilters");function TX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}a(TX,"getPropertiesIndex");function EX(e,t,n,i){var s,l,u,p,g,m;let r=TX(i,e),o=t.definitions[_.DefinitionName.VisualFilters];o.properties={};for(let v in n){let A=n[v];if(!A.template){let E=o.properties[v]={$ref:$n(_.DefinitionName.VisualFilter,v)},O=r.indexOf(v);O!==-1&&(E[_.SchemaTag.propertyIndex]=O);let R=kt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(R[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(H=>H.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();R.description=U||v,R[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}a(EX,"addVisualFilters");function bX(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},v1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ha(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}a(bX,"applyCustomFilterFields");function AX(e,t,n,i){var l,u;let r=vX(n),o=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},EX(e,t,r,o);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=PA(e,t,o,s),bX(t,s,n)}a(AX,"addFilterBar");function T1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let o=e.definitions[t];o.properties={},o.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ut(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=yi(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=o.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=u.$Type,v[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}a(T1,"defineActions");function E1(e,t,n,i){var l;let r,o,s;return e&&(n==="primary"?o=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?o=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?o=e.find(u=>u.value.indexOf(i)>-1):o=e[0],r=typeof(o==null?void 0:o.value)=="string"?cl(o.value):void 0,(l=o==null?void 0:o.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${o.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}a(E1,"findTheRightVisualization");function SX(e,t,n,i){let r="@UI.Chart",o=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:o,chartTitle:s}}a(SX,"analyzeChartAnnotation");function xX(e,t,n,i,r,o){var u;let{visualization:s,targetAnnotation:l}=E1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(ae(r,{severity:_.LogSeverity.Error,message:J.t("NOVISUALIZATIONS")}),s=xA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),o=o||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:o}}a(xX,"analyzeSPVforView");function Vl(e,t,n,i,r,o){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=E1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return xX(p,s,i,r,o,l);if(u.startsWith("SelectionVariant")){let g=xA,m=`/${s}/@${Sc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=xA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:v}=SX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}a(Vl,"analyzeViewAnnotation");function PX(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let o=t.split(_.UIVOCABULARYDOT)[1],s=i[o].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}a(PX,"addALPChartView");function CX(e,t,n,i,r,o){var U,H,W,ie,Z,ne,Le,D;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ie=(W=(H=t==null?void 0:t[0])==null?void 0:H.primary)==null?void 0:W[0])==null?void 0:ie[_.SchemaTag.annotationPath],{targetAnnotation:u}=Vl(l,s,n.serviceAVT,"primary",void 0,n.logger);PX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,T1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Vl((Le=(ne=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:ne[0])==null?void 0:Le[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[o];g||i?(v.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:$+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let A=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(A.properties={}),A[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(_.UIVOCABULARYDOT)[1]),E){let Pt={appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(Pt,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let dt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${dt[0]}/@${dt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}vc(e,r,n.logger);let R=`${_.DefinitionName.Actions}<${ut(_.DefinitionName.LineItems)}>`;fs(e,r,n.logger,void 0,R),Mo(e,R,_.DefinitionName.CustomActionPosition)}a(CX,"addALPViews");function IX(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return T1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}a(IX,"addViewChartDefinitions");function OX(e,t,n,i,r,o){let s=IX(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:o||l,title:l}}a(OX,"addViewChart");function NX(e,t,n,i,r){var m;let o=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=kt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ba(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${o}`,description:e.title||u,title:u},Ba(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Tc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}a(NX,"addViewLineItems");function LX(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}a(LX,"addTagsToView");function FX(e,t,n){var o;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(o=n.serviceAVT)==null?void 0:o.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}a(FX,"getTargetEntityType");function RX(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Sc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=kt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Ba(l.properties.position,_.DefinitionName.ViewPosition,r),kt(_.DefinitionName.ViewPosition,r,e.appSchema),vc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Ec(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&(delete e.appSchema.definitions.Position,delete e.appSchema.definitions.TableCustomColumn);let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;fs(e.appSchema,i,t.logger,p,u,s),kt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,Mo(e.appSchema,u,g)}a(RX,"addViewCustomExtensions");function _X(e,t,n,i,r,o,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)NX(n,t,e,n.targetAnnotation,i),RX(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)OX(n,o,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}a(_X,"addLRViewParts");function DX(e,t,n,i,r){var l;let o=e.definitions[r];o.properties={annotationPath:o.properties.annotationPath,initialLoad:o.properties.initialLoad,views:o.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=FX(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:E,title:O}=Vl(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(H=>H.targetTypeName===E))==null?void 0:l.name);let R=ut(u[_.SchemaTag.key]),U={viewKey:R,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};_X(v,s,U,n,i,m,u),LX(s,R,E,u)}}a(DX,"addLRViews");function VX(e,t,n,i,r,o){var g,m,v,A,E,O,R,U,H,W;let s=e.definitions[o],{visualization:l,targetAnnotation:u,namespace:p}=Vl(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let ie=l.split(".")[1],Z=`${_.DefinitionName.LineItems}OfSPV::${ut(ie)}`,ne=e.definitions[`${o}SPV`]=JSON.parse(JSON.stringify(e.definitions[o]));delete ne[_.SchemaTag.isViewNode],Ba(ne.properties.toolBar,_.DefinitionName.ToolBar,Z),ne[_.SchemaTag.annotationPath]=u,ne.properties.columns={},Ba(ne.properties.columns,Z),delete s.properties,Ba(s,`${o}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let Le=(m=t.entityType)==null?void 0:m.annotations.UI[ie];Le||ae(t.logger,{severity:_.LogSeverity.Error,message:J.t("NOTARGET",{target:ie})});let D={appSchema:e,lineItemAnnotation:Le,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:Z};Tc(D);let Pt=(v=ie.split("#"))==null?void 0:v[1],dt=Pt?`@${Sc.UIAnnotationTerms.LineItem}#${Pt}`:`@${Sc.UIAnnotationTerms.LineItem}`;vc(e,i,t.logger,void 0,Z,dt),Ec(e,Z,i,void 0,dt);let $e=`${_.DefinitionName.Actions}<${Z}>`,fn=am(e,Z,_.DefinitionName.CustomTableAction);fs(e,i,t.logger,gn(fn),$e,dt),Mo(e,$e,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Ba(s.properties.columns,_.DefinitionName.LineItems);let ie=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;ie||ae(t.logger,{severity:_.LogSeverity.Error,message:J.t("NOLINEITEMS")});let Z={appSchema:e,lineItemAnnotation:ie,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(Z),vc(e,i,t.logger),Ec(e,_.DefinitionName.LineItems,i),ie&&!((H=(U=(R=i.options)==null?void 0:R.settings)==null?void 0:U.views)!=null&&H.paths)&&(s[_.SchemaTag.annotationPath]=fr((W=t.entityType)==null?void 0:W.fullyQualifiedName,ie.term,ie.qualifier));let ne=`${_.DefinitionName.Actions}<${ut(_.DefinitionName.LineItems)}>`;fs(e,i,t.logger,void 0,ne),Mo(e,ne,_.DefinitionName.CustomActionPosition)}}a(VX,"adaptTableDefinition");function MX(e,t,n){var i,r,o,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((o=e.options.settings)!=null&&o.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}a(MX,"getDefaultAnnotationPath");function wX(e,t,n,i){var u,p,g,m,v;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,o=n.entityType,s=MX(t,n.entityType,n.templateType),l=h1(e,n);AX(o,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(VX(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],DX(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(CX(e,r,n,s,t,l),Ec(e,_.DefinitionName.LineItems,t))}a(wX,"addTableAndViews");function kX(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let o=_.DefinitionName.CustomHeaderAction,s=e.definitions[o];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",xh(e,t,n,o,i);let l=_.DefinitionName.CustomHeaderActionPosition;kt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,Mo(e,i,l)}a(kX,"addHeaderActions");function Qu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),o=e.entityType,s=e.serviceAVT&&ri(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,$a(o,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return ae(e.logger,{severity:_.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Sh(l,n,e.entitySet,i);if(!u)return r;kX(r,u,e.logger),wX(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Oo(r,yX),r}a(Qu,"generateListReportSchemaV4");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),L=te(le());var pV=te(Gs()),dV=te(uV()),gV=te(cS());var mV=te(le()),hV=te(le());function f6(e,t){var i;let n=e;for(let r of t){let o=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=o==null?void 0:o[r.index]}return n}a(f6,"findElementByXMLPath");function yV(e,t){return e[t]?!1:(e[t]={},!0)}a(yV,"ensureObjectExists");function u6(e,t){let n={},i=gn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}a(u6,"getPropertiesFromRef");function p6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:o,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=yV(l,i),m=l[i];return Lc({fullSchema:u,schema:p[i],element:o,contextPath:s,config:m,parent:e},t)||g}a(p6,"traverseDefaultAggregation");function d6(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}a(d6,"isDefaultAggregationAppliable");function Lc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:o={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=u6(s,n.$ref));for(let v in u){let A=u[v],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===v&&d6(u,p)&&(l=p6(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,R=O.slice(r.length),U=f6(i,R);l=yV(o,v)||l;let H=o[v];l=Lc({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:H,parent:e},t)||l}else l=t(e,A,o,v)||l}return l}a(Lc,"traverseSchema");function Jl(e,t,n){let i;try{if(t){let{cst:r,tokenVector:o}=(0,gV.parse)(e.fileContent),s=(0,dV.buildAst)(r,o);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,pV.xml2js)(e.fileContent)}catch(r){ae(n,{severity:hV.LogSeverity.Error,message:J.t("XMLPARSEFAILURE",{error:Vg(r)}),location:{path:e.dataSourceUri}})}return i}a(Jl,"parseXML");function Zl(e){return`${mV.DefinitionName.CustomExtensionFragment}<${e}>`}a(Zl,"getCustomExtensionFragmentDefinitionKey");function hy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}a(hy,"getRootElement");var TS=te(le()),ES=te(le());var bp=te(le());function vs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}a(vs,"getAttribute");function vV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}a(vV,"getNodeByName");function g6(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}a(g6,"resolveMetaPath");function gS(e){var m;let{node:t,serviceAVT:n,connectionContext:i}=e,r=vs(t,"contextPath")||i.contextPath,o=vs(t,"metaPath"),s=i.entitySet,l=o==null?void 0:o.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(o){let v=g6(o);v.path&&(u=l?v.path:`${u}/${v.path}`,o=v.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((m=p==null?void 0:p.target)==null?void 0:m._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}return g?{entityType:g,metaPath:o}:void 0}a(gS,"getEntityTypeResolution");function TV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}a(TV,"applyAnnotationPath");function m6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,o,s;if(r&&i){let g=Vl(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];o=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],o!=null&&o.fullyQualifiedName&&(s=nE(r,o.fullyQualifiedName))}}if(o)return{lineItem:o,annotationPath:s}}a(m6,"getTableLineItemAnnotationData");var EV={"sap.fe.macros.Chart":e=>{let t=gS(e);TV(e.schema,t)},"sap.fe.macros.FilterBar":e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=gS(e),o=(s=t.properties)==null?void 0:s.filterFields;if(typeof o=="object"&&r){o.properties||(o.properties={});let g=ri(bp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p.SelectionFields);PA(r.entityType,i,m,o)}},"sap.fe.macros.Table":e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=gS(e),o=t.properties.columns,s=t.properties.actions;if(typeof o=="object"&&typeof s=="object"&&r){o.properties||(o.properties={}),s.properties||(s.properties={});let l=ri(bp.UIVOCABULARY,n);if(TV(t,r),t.annotationPath){let u=m6(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:bp.DefinitionName.LineItems};SA(p,s,t.annotationPath,o)}}}};var bV=te(le());var h6=new Map([["filterFields","SelectionField::"]]),y6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ap={anchor:"anchor",placement:"placement",key:"key"};function v6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[gn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Ap.anchor in r&&Ap.placement in r}return!1}a(v6,"isCustomExtensionSchema");function AV(e){let t=h6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=y6.get(e),t&&(n.prefix=t)),n}a(AV,"getAnnotationPrefix");function T6(e,t,n,i){let r=t.properties[n],o=AV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=vs(l,Ap.key)||n,p=vs(l,Ap.anchor),g=vs(l,Ap.placement)||bV.v4.Placement.After,m=o.replace?`${o.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}a(T6,"getExtensionData");function E6(e,t,n){let i={},r=[],o={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=T6(e,t,s,n);i[p]=u,o[p]=s}else r.push([s,l])}ma(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in o&&(u=t.properties[o[l]]),u&&(u.propertyIndex=s)}}a(E6,"updatePropertyIndices");function b6(e,t,n,i){var o;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((o=i==null?void 0:i.metadata)!=null&&o.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=vs(e.subElements[s],"key")||r}return r}a(b6,"getCorrectedAnchorEnumKey");function A6(e,t,n,i){var o,s;let r=AV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ha(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(o=p.properties)==null?void 0:o[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=b6(e,m.const,r,t.properties[m.const]))}}a(A6,"applyEnumsForAnchors");function SV(e,t,n,i){v6(t,n)&&(i=i||e.name,E6(e,t,i),A6(e,t,n,i))}a(SV,"handleExtensions");var xV=te(require("crypto"));var vy=new Uint8Array(256),yy=vy.length;function mS(){return yy>vy.length-16&&(xV.default.randomFillSync(vy),yy=0),vy.slice(yy,yy+=16)}a(mS,"rng");var li=[];for(let e=0;e<256;++e)li.push((e+256).toString(16).slice(1));function PV(e,t=0){return li[e[t+0]]+li[e[t+1]]+li[e[t+2]]+li[e[t+3]]+"-"+li[e[t+4]]+li[e[t+5]]+"-"+li[e[t+6]]+li[e[t+7]]+"-"+li[e[t+8]]+li[e[t+9]]+"-"+li[e[t+10]]+li[e[t+11]]+li[e[t+12]]+li[e[t+13]]+li[e[t+14]]+li[e[t+15]]}a(PV,"unsafeStringify");var CV=te(require("crypto")),hS={randomUUID:CV.default.randomUUID};function S6(e,t,n){if(hS.randomUUID&&!t&&!e)return hS.randomUUID();e=e||{};let i=e.random||(e.rng||mS)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return PV(i)}a(S6,"v4");var yS=S6;var vS="sap.fe.macros",x6=["id","key","title","text","label","header"];function IV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}a(IV,"getElementName");function P6(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}a(P6,"isElementWithNamespace");function C6(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:o}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[o]=s}return t}a(C6,"getDependencies");function I6(e,t){let n="",i=e.attributes||[];for(let r of x6){let o=i.find(s=>s.key===r);if(o){n=`${r==="id"?"#":""}${o.value}`;break}}return n?`${t} ${n}`:t}a(I6,"getViewNodeDescription");function O6(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}a(O6,"findAvailableName");function OV(e,t){if(e.properties={},e.$ref){let n=gn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}a(OV,"prepareSchemaProperties");function N6(e,t,n){t.properties||OV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let o=i[r.key];o&&o.metadata&&(o.metadata.position=r.position)}}a(N6,"handleAttributes");function L6(e){e.type===ES.MacrosPropertyType.Control&&(e.internalId=yS())}a(L6,"applyIdForMacros");function F6(e,t,n){var i,r;try{(r=(i=EV)[e])==null||r.call(i,t)}catch{ae(n,{severity:TS.LogSeverity.Error,message:J.t("MACROS_ANNOTATION_ERROR",{control:e})})}}a(F6,"callAnnotationHandler");function R6(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===ES.MacrosPropertyType.Control&&(e.controlName=n)}a(R6,"updateMetadataByReference");function _6(e,t,n,i){var v,A,E,O,R;let r=n.schema;t.properties||OV(t,r);let o=t.properties[i],s=(v=o==null?void 0:o.metadata)==null?void 0:v.type,l=(A=o==null?void 0:o.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=o==null?void 0:o.metadata)==null?void 0:E.path)!=null&&O.length?O6(i,t.properties):i,g=[];o!=null&&o.$ref?g.push(gn(o.$ref)):g=[`${vS}.${i}`,`${vS}.table.${i}`,`${vS}.filterBar.${i}`];let m=!1;for(let U of g){let H=(R=r.definitions)==null?void 0:R[U];if(typeof H!="object")continue;R6(u,H,U);let W=I6(e,i),ie={$ref:xR(U),description:W,propertyIndex:n.index,metadata:u};N6(e,ie,r),t.properties[p]=ie,m=!0,F6(U,{...n,node:e,schema:ie,rootSchema:n.schema},n.logger);break}if(L6(u),!m)if(o!=null&&o.properties)o.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}a(_6,"addControlToSchema");function NV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let o=r.$ref.split($)[1];o&&t.indexOf(o)===-1&&t.push(o)}NV(r,t)}}a(NV,"populateUsedDefinitionKeys");function D6(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}a(D6,"isElementAddableToSchema");function V6(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!vV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}a(V6,"getDefaultAggregation");function M6(e,t,n,i){let r={};for(let o=0;o<e.length;o++){let s=e[o],l=!r[s.name];r[s.name]=!0,LV(s,t,{...n,isUnique:l,index:o,path:[...n.path,{name:IV(s),index:o}]},i)}}a(M6,"handleSubElementsOfXMLNode");function LV(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:o}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[gn(t.$ref)]:t;if(P6(e,o)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&D6(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=_6(e,t,n,E[E.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),NV(t,i));let p=V6(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),M6(l,t,n,i),r.push({node:e,schema:t});for(let A of r)SV(A.node,A.schema,n.schema,A.name)}a(LV,"handleXMLNode");function w6(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}a(w6,"getMacrosPrefixes");function Fc(e,t,n,i){let r=Jl(t.file,!0,i),o=[];if(!r)return;en();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){ae(i,{severity:TS.LogSeverity.Error,message:J.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=C6(l),p=w6(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],A=!g[v.name];g[v.name]=!0,LV(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:IV(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},o)}for(let m in s.definitions)s.definitions[m].metadata&&!o.includes(m)&&delete s.definitions[m]}return s}a(Fc,"generateMacrosSchemaDefinition");function FV(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&FV(i.subSections,t)}}a(FV,"populateTemplates");function RV(e,t,n,i){var s,l,u;let r=bc(n.manifest,i),o=[];FV(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},o);for(let p of o){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=Zl(p);e.definitions[m]=g;let v=Ac(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:E={}}=Fc(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}a(RV,"resolveFragments");var k6=["header","layout","sections","footer"],U6=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],bS="Custom Action";function AS(e,t,n,i,r,o,s){let{actionName:l,namespace:u}=nm(t.item,e),p=sa(t.item),g=t.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${ut(p)}>`,v=i.definitions[m]={type:"object",$ref:`${$}${L.DefinitionName.ObjectPageHeaderAction}`,description:yi(t.item,r)};v[L.SchemaTag.isViewNode]=!0,v[L.SchemaTag.dataType]=Jr(t.item),v[L.SchemaTag.propertyIndex]=s,v[L.SchemaTag.keys]=[],t.item[L.SchemaKeyName.semanticObject]&&v[L.SchemaTag.keys].push({name:L.SchemaKeyName.semanticObject,value:t.item[L.SchemaKeyName.semanticObject]}),v[L.SchemaTag.keys].push({name:L.SchemaKeyName.action,value:l}),u&&(i.definitions[m][L.SchemaTag.target]=u),v[L.SchemaTag.actionType]=n,v[L.SchemaTag.annotationPath]=`/${g}`,o.properties[p]={$ref:`${$}${m}`},o.properties[p][L.SchemaTag.propertyIndex]=s}a(AS,"addSingleHeaderActionV4");function _V(e,t,n,i){let r=`${e}Action`,o=`ObjectPageHeaderAction<${r}>`,s=t.definitions[o]={type:"object",description:`${e}`,additionalProperties:!0};return s[L.SchemaTag.isViewNode]=!0,s[L.SchemaTag.propertyIndex]=i,s[L.SchemaTag.keys]=[],s[L.SchemaTag.keys].push({name:L.SchemaKeyName.action,value:e}),s[L.SchemaTag.actionType]=L.ActionType.Standard,n.properties[r]={$ref:`${$}${o}`},n.properties[r][L.SchemaTag.propertyIndex]=i,s}a(_V,"addStandardHeaderAction");function DV(e,t,n,i,r,o){let s=sa(e.item),l=yi(e.item,n),u=ut(`${L.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${L.DefinitionName.FooterActionV4}`,description:l};g[L.SchemaTag.isViewNode]=!0,g[L.SchemaTag.actionType]=t,g[L.SchemaTag.propertyIndex]=o,g[L.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}a(DV,"addSingleFooterAction");function j6(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===vr.UIAnnotationTypes.DataFieldForAction||i.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(U6.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}a(j6,"groupByCriticality");function $6(e,t,n,i,r){for(let o=0;o<e.length;o++)AS(t,e[o],L.ActionType.Criticality,n,i,r,o)}a($6,"addCriticalActions");function B6(e,t,n,i,r,o){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(AS(t,e[s],L.ActionType.Copy,n,i,r,o),o++,e.splice(s,1))}a(B6,"addCopyAction");function H6(e,t,n,i,r,o){for(let s of e)AS(t,s,L.ActionType.Annotation,n,i,r,o),o++}a(H6,"addUncriticalActions");function W6(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[L.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[L.SchemaTag.artifactType]=L.ArtifactType.Manifest,n[L.SchemaTag.actionType]=L.ActionType.Standard,n[L.SchemaTag.isViewNode]=!0,n[L.SchemaTag.keys]=[{name:L.SchemaKeyName.action,value:t}]}a(W6,"addRelatedAppsButton");function VV(e,t,n,i){var r,o,s,l;(o=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&o[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[L.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${L.UIVOCABULARYALPHADOT}${i}`:e[L.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${L.UIVOCABULARYALPHADOT}${i}`}a(VV,"setAnnotationPathFromEntitySetOrEntityType");function G6(e,t,n,i,r,o){let{criticalActions:s=[],unCriticalActions:l=[]}=n?j6(n):{};if($6(s,r.serviceAVT,t,e,i),r.entitySet){let p=ZR(r.entitySet),g=e0(r.entitySet);if(qg(r.entitySet)&&g){let m=_V("Edit",t,i,s.length);VV(m,r.entitySet,e,"UpdateHidden")}if(p){let m=_V("Delete",t,i,s.length+1);VV(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;B6(l,r.serviceAVT,t,e,i,u),H6(l,r.serviceAVT,t,e,i,u),wV(t,o,L.DefinitionName.CustomHeaderActionOP,r.logger),W6(i)}a(G6,"addHeaderActionCallBackV4");function K6(e,t,n,i){let r=[],o=[];i.forEach((s,l)=>{s.Determining&&s.$Type===vr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):o.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];DV(l,L.ActionType.Criticality,e,t,n,s)}for(let s=0;s<o.length;s++){let l=o[s];DV(l,L.ActionType.Annotation,e,t,n,r.length+s)}}a(K6,"addFooterActionCallBackV4");function X6(e,t,n,i,r){let o=n!==L.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${L.DefinitionName.CustomColumnOP}<${n}>`:L.DefinitionName.CustomColumnOP,l=e.definitions[s];l[L.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${L.DefinitionName.CustomColumnOP}<${n}>`;vc(e,t,r,u,n,i);let p=o?n:L.DefinitionName.PositionOP;kt(L.DefinitionName.PositionOP,p,e,o);let g=o?`${L.DefinitionName.PositionOP}<${n}>`:L.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Ec(e,n,t,g,i.replace(/::/g,"/"))}a(X6,"addCustomColumnsOP");function Q6(e,t,n,i,r){let o=n!==L.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${L.DefinitionName.CustomTableActionOP}<${n}>`:L.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[L.SchemaTag.isViewNode]=!0,l.description=bS;let u=`${L.DefinitionName.CustomTableActionOP}<${n}>`,p=`${L.DefinitionName.Actions}<${ut(n)}>`;fs(e,t,r,u,p,i);let g=o?n:L.DefinitionName.CustomActionPositionOP;kt(L.DefinitionName.CustomActionPositionOP,g,e,o);let m=o?`${L.DefinitionName.CustomActionPositionOP}<${n}>`:L.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,Mo(e,p,m)}a(Q6,"addTableCustomActionsOP");function wV(e,t,n,i){let r=e.definitions[n];r[L.SchemaTag.isViewNode]=!0,r.description=bS;let o=n===L.DefinitionName.CustomHeaderActionOP?L.DefinitionName.ObjectPageHeaderActions:L.DefinitionName.FooterActions;xh(e,t,i,n,o);let s=n===L.DefinitionName.CustomHeaderActionOP?L.DefinitionName.CustomHeaderActionPositionOP:L.DefinitionName.CustomFooterActionPositionOP;kt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,Mo(e,o,s),e.definitions[o]&&(e.definitions[o].additionalProperties={$ref:`${$}${n}`})}a(wV,"addHeaderFooterCustomActionsOP");function q6(e,t,n,i,r){let o=`${L.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[o];s[L.SchemaTag.isViewNode]=!0,s.description=bS;let l=`${L.DefinitionName.CustomFormActionOP}<${n}>`,u=`${L.DefinitionName.SectionActions}<${ut(n)}>`;fs(e,t,r,l,u,i),kt(L.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${L.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,Mo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${o}`})}a(q6,"addFormCustomActionsOP");function z6(e,t,n,i,r,o,s){let l=dl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=kt(L.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[L.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=$n(L.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(L.DefinitionName.QuickVariantSelectionV4OP,t);let m=kt(L.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(L.DefinitionName.AnnotationPathAsObject,t),kt(L.DefinitionName.AnnotationPathAsObject,t,n),$a(e.entityType,n,`${L.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Tc(v,L.DefinitionName.ObjectPageTableColumn,L.DefinitionName.CustomColumnOP,L.DefinitionName.CustomTableActionOP),X6(n,o,l,t,s),Q6(n,o,l,t,s),g}a(z6,"handleLineItem");function kV(e,t,n,i,r,o,s){s&&(s.properties[t]={$ref:$n(L.DefinitionName.ObjectPageSectionTableV4,t)});let l=kt(L.DefinitionName.ObjectPageSectionTableV4,t,n);ka(e,l,dl(t)),l[L.SchemaTag.annotationPath]=e.annotationPath,l[L.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(L.DefinitionName.ObjectPageTable,t);let u=z6(e,t,n,i,r.serviceAVT,o,r.logger);return{sectionTable:l,table:u}}a(kV,"handleSectionTable");function Y6(e,t,n,i,r,o,s){let l;o===L.SectionType.Section?l=L.DefinitionName.ObjectPageSectionForm:o===L.SectionType.HeaderSection&&(l=L.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=kt(l,n,r);e.ID||(u.properties={}),ka(e,u,n),u[L.SchemaTag.annotationPath]=e.annotationPath,u[L.SchemaTag.target]=e.namespace,u[L.SchemaTag.isViewNode]=!0;let p=tm(o,e,u,r,L.FioriElementsVersion.v4,n);if(e.base===L.FacetBase.Form){let g=dl(n);kt(L.DefinitionName.CustomFormActionOP,p,r),q6(r,t,p,g,s)}}a(Y6,"handleFormIdentification");function MV(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let o=kt(L.DefinitionName.CommonHeaderFacetSettings,r,i,!1);sl(e,o,t),o[L.SchemaTag.annotationPath]=e.annotationPath,o[L.SchemaTag.target]=e.namespace,o[L.SchemaTag.dataType]=Zs(e==null?void 0:e.target),o[L.SchemaTag.isViewNode]=!0}a(MV,"handleHeaderFacet");function J6(e,t,n,i){let r=kt(L.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let o=0;e.Actions.forEach(s=>{let l=yi(s,i),u=s.$Type.split(L.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),g=r.properties[`${u}::${s.Action}`]={$ref:$n(L.DefinitionName.ObjectPageToolBarAction,p),description:l};g[L.SchemaTag.propertyIndex]=o,g[L.SchemaTag.annotationType]=s.$Type;let m=kt(L.DefinitionName.ObjectPageToolBarAction,ut(p),n);m[L.SchemaTag.annotationPath]=sm(s),m[L.SchemaTag.dataType]=Jr(s),m.properties={},o++})}return r}a(J6,"handleChartActions");function Z6(e,t,n,i){let r=kt(L.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[L.SchemaTag.annotationPath]=sm(e),r[L.SchemaTag.dataType]=Zs(e.target||e),r[L.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(L.DefinitionName.ObjectPageToolBar,t);let o=kt(L.DefinitionName.ObjectPageToolBar,t,n);o.properties.actions.$ref=$n(L.DefinitionName.ObjectPageToolBarActions,t);let s=J6(e,t,n,i);return{chart:r,chartActions:s}}a(Z6,"handleChart");function UV(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(L.DefinitionName.ObjectPageSectionChart,t)});let o=kt(L.DefinitionName.ObjectPageSectionChart,t,n);sl(e,o,t),o[L.SchemaTag.annotationPath]=sm(e),o.properties.chart.$ref=$n(L.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=Z6(e.target||e,t,n,r);return{sectionChart:o,chart:s,chartActions:l}}a(UV,"handleSectionChart");function eq(e,t,n,i,r,o){var m,v;let s,l,u;if(!(e!=null&&e.target)){ae(r.logger,{severity:L.LogSeverity.Error,message:J.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=(m=e==null?void 0:e.target)==null?void 0:m.Visualizations,g=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l=`@${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,u=s;else{s=p[0],l="@"+gE(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let E=r.entityType.navigationProperties.find(R=>R.name===g).targetType,O=l==null?void 0:l.split(L.UIVOCABULARYDOT)[1];u=O&&((v=E==null?void 0:E.annotations)==null?void 0:v.UI[O])}if(s){let A=l.split(L.UIVOCABULARYDOT)[1],E=e.target[L.SchemaTag.fullyQualifiedName].split("@")[0],O=g?`${g}::${l}`:l;if(A.startsWith(L.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(L.DefinitionName.ObjectPageSectionChart,O)};let{sectionChart:R,chart:U}=UV(s,O,n,void 0,e.entityType);R[L.SchemaTag.annotationPath]=e.annotationPath,sl(e,R,t),U[L.SchemaTag.annotationPath]=`/${E}/${l}`,U[L.SchemaTag.target]=E}else if(A.startsWith(L.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(L.DefinitionName.ObjectPageSectionTableV4,O)};let{sectionTable:R,table:U}=kV(e,O,n,{target:u,entityType:e.entityType},r,o);R[L.SchemaTag.annotationPath]=e.annotationPath,sl(e,R,t),delete R[L.SchemaTag.isViewNode],U[L.SchemaTag.annotationPath]=`/${E}/${l}`,U[L.SchemaTag.target]=E}}}a(eq,"handleSectionPresentationVariant");function tq(e){let t=e.facets||{};for(let n in t)if(t[n].base===L.FacetBase.CollectionFacet)return!0;return!1}a(tq,"containsCollectionFacet");function nq(e,t,n){var o;let i=`${L.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[L.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((o=r.properties)==null?void 0:o.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Xs(n,L.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}a(nq,"createCustomSubSectionReference");function SS(e,t,n,i,r,o,s){var m,v,A,E,O;let l=!1,u;o&&s?(l=!tq(o),u=nq(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},y1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];typeof p=="object"&&Ha(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[L.SchemaKeyName.id,L.SchemaKeyName.key],descriptionAsFallback:!0});let g=p.properties.relatedFacet;if(u!=null&&u.includes(L.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let R=(O=(E=(A=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:A.body)==null?void 0:E.sections)==null?void 0:O[s],U=R&&"subSections"in R?R.subSections:{};for(let H=g.oneOf.length-1;H>=0;H--){let W=g.oneOf[H];U[W.const]||(W.hidden=!0)}}}a(SS,"applyCustomSections");function iq(e,t,n,i,r,o,s,l){let u=l===0,p=i.properties[t]=Co(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[L.SchemaTag.annotationPath]=e.annotationPath,g[L.SchemaTag.target]=e.namespace,g[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:e.ID}],g[L.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)xS(o,e.facets,v,g,n,r,s,m);u&&SS(g,n,o,s,L.DefinitionName.ObjectPageCustomSectionFragment,e,t)}a(iq,"handleCollection");function xS(e,t,n,i,r,o,s,l=0){let u=t[n],p=`ObjectPage${o}${u.base}<${dl(n)}>`;switch(u.base){case L.FacetBase.PresentationVariant:{eq(u,n,r,i,e,s);break}case L.FacetBase.CollectionFacet:{iq(u,n,r,i,o,e,s,l);break}case L.FacetBase.LineItem:{if(o===L.SectionType.Section){let g=t[n];kV(u,n,r,g,e,s,i)}break}case L.FacetBase.Form:case L.FacetBase.Identification:{Y6(u,s,n,i,r,o,e.logger);break}case L.FacetBase.DataPoint:{MV(u,n,i,r,p);break}case L.FacetBase.Chart:{o===L.SectionType.HeaderSection?MV(u,n,i,r,p):o===L.SectionType.Section&&UV(u,n,r,i);break}case L.FacetBase.Address:case L.FacetBase.Contact:{nu(u,n,i,r,o);break}default:i.properties[n]=Co(r,u,n)}}a(xS,"addSection");function rq(e,t,n){let i=Rg(e.entityType,e.serviceAVT,L.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[L.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[L.DefinitionName.Sections];for(let o in i)xS(e,i,o,r,t,L.SectionType.Section,n);SS(r,t,e,n,L.DefinitionName.ObjectPageCustomSectionFragment)}a(rq,"addSections");function oq(e,t,n,i){let r=Fg(n,e.serviceAVT,L.FioriElementsVersion.v4,e.logger),o=t.definitions[L.DefinitionName.HeaderSections];if(o.properties={},o.additionalProperties=!1,!!r){for(let s in r)xS(e,r,s,o,t,L.SectionType.HeaderSection,i);SS(o,t,e,i,L.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[L.DefinitionName.ObjectPageHeaderSectionAddress]}}a(oq,"addHeaderSections");function aq(e,t,n){let i=e.entityType;om(t,i),rm(t,i,e,G6,n),i&&(t.definitions[L.DefinitionName.HeaderSections][L.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${vr.UIAnnotationTerms.HeaderFacets}`),oq(e,t,i,n)}a(aq,"addHeader");function Sp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${L.DefinitionName.Sections}`},!e.manifest[L.ManifestSection.ui5].routing||!e.manifest[L.ManifestSection.ui5].routing.targets)return ae(e.logger,{severity:L.LogSeverity.Error,message:J.t("NOROUTING"),location:{path:L.MANIFESTPATH}}),r;let o=r.definitions[L.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:L.DefinitionName.Sections};if(o[L.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[L.ManifestSection.ui5].routing.targets;if(!s)return ae(e.logger,{severity:L.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}}),r;let l=Sh(s,L.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(aq(e,r,l),o[L.SchemaTag.isViewNode]=!0,e.entityType&&(o[L.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${vr.UIAnnotationTerms.Facets}`),rq(e,r,l),Xs(e.featureToggles,L.Features.BuildingBlocks)&&i){r.definitions[L.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{RV(r,i,e,l.id)}catch(u){ae(e.logger,{severity:L.LogSeverity.Error,message:u})}}im(r,e,L.FioriElementsVersion.v4,K6),wV(r,l,L.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[L.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[L.DefinitionName.GenericColumnsOP],delete r.definitions[L.DefinitionName.GenericSections],delete r.definitions[L.DefinitionName.GenericSubSections],delete r.definitions[L.DefinitionName.ObjectPageChart],delete r.definitions[L.DefinitionName.ObjectPageSectionAddress],delete r.definitions[L.DefinitionName.ObjectPageSectionChart],delete r.definitions[L.DefinitionName.ObjectPageSectionContact],delete r.definitions[L.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[L.DefinitionName.ObjectPageSectionForm],delete r.definitions[L.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[L.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[L.DefinitionName.ObjectPageSubSections],delete r.definitions[L.DefinitionName.ObjectPageTable],delete r.definitions[L.DefinitionName.ObjectPageToolBar],delete r.definitions[L.DefinitionName.ObjectPageToolBarAction],delete r.definitions[L.DefinitionName.ObjectPageToolBarActions],delete r.definitions[L.DefinitionName.QuickVariantSelectionV4OP],Oo(r,k6),r}a(Sp,"generateObjectPageSchemaV4");function PS(e,t){return JSON.parse(JSON.stringify(t))}a(PS,"generateFreestyleSchemaV4");var Br=te(le());function CS(e,t,n,i,r,o,s,l,u){let p=xo(n,r),{entitySet:g,entityType:m}=Rc(p,s,t,r),v={templateType:Br.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Br.FioriElementsVersion.v4,manifest:i,fragments:o,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Sp(v,e,s,l)}a(CS,"generateObjectPageInterfaceV4");function Ty(e,t,n,i,r,o,s){en();let l=xo(i,r),{entitySet:u,entityType:p}=Rc(l,s,n,r),g={templateType:e,fioriElementsVersion:Br.FioriElementsVersion.v4,manifest:o,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Br.TemplateType.ListReportObjectPageV4?Br.v4.FE_TEMPLATE_V4_LIST_REPORT:Br.v4.FE_TEMPLATE_V4_ALP;return Qu(g,t,m,s)}a(Ty,"generateListReportInterfaceV4");function IS(e,t,n,i,r,o){let s=xo(n,o),l={templateType:e,fioriElementsVersion:Br.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:o};return PS(l,t)}a(IS,"generateFreestyleInterfaceV4");function OS(e,t,n,i,r,o,s){let l={};if(Xs(o,Br.Features.BuildingBlocks)){let u=xo(r,s),p=us(i||[],t,n,s);l=p!=null&&p.file.fileContent?Fc(e,p,u,s):{}}return l}a(OS,"generateFPMCustomPageInterfaceV4");var Dc=require("@sap-ux/vocabularies-types/vocabularies/UI"),WV=te(le());var _c=te(le());var BV=new Map([[_c.PageTypeV2.ListReport,_c.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[_c.PageTypeV2.ObjectPage,_c.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),jV=a((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),$V=a(e=>{var t;for(let[n,i]of BV)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let o=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${o}`}return r}},"getExtensionKeyForImport"),sq=a((e,t)=>{let n="";for(let[r,o]of BV)e.startsWith(r)&&(n=o);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),HV={manifest:{path:()=>`sap.ui5/extends/extensions/${_c.v4.SAPUI5_CONTROLLER_EXTENSION}`,import:e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=$V(n);i&&(t[i]={},jV(e[n],t[i]))}return Object.keys(t).length?t:void 0},export:(e,t,n)=>{var o;let i=(t==null?void 0:t.id)||"",r=((o=t==null?void 0:t.settings)==null?void 0:o[n])||{};for(let s in r){let l=sq(s,i);e[l]||(e[l]={}),jV(r[s],e[l])}for(let s in e){let l=$V(s);l&&!r[l]&&delete e[s]}}}};var pt=a(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ay=a(e=>pt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Sy=a(e=>pt(e)+"/content/header","getSettingsPathForHeaderOP"),cq=a(e=>pt(e)+"/content/footer","getSettingsPathForFooterOP"),Hr=a(e=>pt(e)+"/controlConfiguration","getControlConfigurationPath"),xy=a((e,t,n)=>Hr(e)+`/@${Dc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Py=a(e=>Hr(e)+`/@${Dc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ts=a((e,t,n,i)=>Hr(e)+`/@${Dc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),NS=a((e,t,n,i)=>Py(e)+`/filterFields/${i}`,"getFilterFieldPath"),Tr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/tableSettings`:void 0},"getTableSettingsPathForView"),zi=a((e,t,n,i,r)=>r?Tr(e,t,n,i,r):Hr(e)+`/@${Dc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Cy=a((e,t,n,i,r)=>zi(e,t,n,i,r)+WV.QUICKVARPATH,"getQuickVariantPath"),Yi=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/columns/${i}`:void 0},"getColumnsPathForView"),Di=a((e,t,n,i,r)=>r?Yi(e,t,n,i,r):Hr(e)+`/@${Dc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Wr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/actions/${i}`:void 0},"getActionsPathForView"),Er=a((e,t,n,i,r)=>r?Wr(e,t,n,i,r):Hr(e)+`/@${Dc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Ji=a((e,t,n,i)=>Hr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=a((e,t,n,i)=>Hr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),fi=a((e,t,n,i)=>Sy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),Iy=a((e,t,n,i)=>pt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),fo=a((e,t,n,i)=>cq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Fn=a((e,t,n)=>Hr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),tf=a((e,t,n,i)=>{let r=pt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),br=a((e,t,n,i)=>{let r=pt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),nf=a((e,t,n,i,r,o,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=pt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),by=class by{};a(by,"ApplicationV4"),h([Mt("settings")],by.prototype,"settings",2);var Ey=by,$o=class $o{};a($o,"AppSettings"),h([T({manifest:{path:()=>"sap.app"}})],$o.prototype,"title",2),h([T({manifest:{path:()=>"sap.app"}})],$o.prototype,"description",2),h([T({manifest:{path:()=>"sap.ui5/routing/config"}}),C({since:"1.78.0"})],$o.prototype,"flexibleColumnLayout",2),h([T({manifest:{path:()=>"sap.ui5"}}),C({since:"1.56.0"})],$o.prototype,"flexEnabled",2),h([T({manifest:{path:()=>"sap.ui5/routing/config"}})],$o.prototype,"viewType",2),h([T({manifest:{path:()=>"sap.ui5/routing/config"}})],$o.prototype,"path",2),h([T(HV)],$o.prototype,"controllerExtensions",2);var ef=$o;var he=te(le());function Et(e,t,n,i,r,o,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=o&&o.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Po(t,v,o,p,!0),l&&Object.keys(l).length>0&&(ll(m,l,g,e,o,r),$g(u,l,v,s))}}}a(Et,"importSettingsOfObject");var dP={};Hs(dP,{ALPChart:()=>Nx,ALPTable:()=>pf,ActionAfterExecutionConfiguration:()=>qx,ActionAfterExecutionConfigurationFooter:()=>KS,ActionAfterExecutionConfigurationForm:()=>zS,ActionAfterExecutionConfigurationOP:()=>Bp,ActionAfterExecutionConfigurationObjectPageHeader:()=>ax,ActionAfterExecutionConfigurationToolBarLR:()=>aP,Actions:()=>nP,AdditionalSemanticObject:()=>Xx,CommonHeaderFacetSettings:()=>Is,CommonViewSettings:()=>uf,CustomActionPosition:()=>lP,CustomActionPositionOP:()=>Gx,CustomFilterField:()=>_S,CustomFilterFieldPosition:()=>RS,CustomFooterActionOP:()=>qS,CustomFooterActionPositionOP:()=>QS,CustomFormActionOP:()=>nx,CustomHeaderAction:()=>kS,CustomHeaderActionOP:()=>lx,CustomHeaderActionPosition:()=>Ip,CustomHeaderActionPositionOP:()=>cx,CustomTableAction:()=>fP,CustomTableActionOP:()=>Kx,FilterBar:()=>LS,FlexSettings:()=>ux,FooterActionV4:()=>XS,FormAction:()=>YS,Header:()=>VS,HeaderActions:()=>DS,HeaderSections:()=>yx,LRChartView:()=>Lx,LRTableView:()=>Fx,MultiTableModeV4:()=>_x,ObjectPageCustomHeaderSectionFlexSettings:()=>US,ObjectPageCustomHeaderSectionFragment:()=>jS,ObjectPageCustomSectionFragment:()=>of,ObjectPageCustomSubSectionFragment:()=>$S,ObjectPageFooter:()=>HS,ObjectPageFooterActions:()=>BS,ObjectPageForm:()=>ZS,ObjectPageFormActions:()=>JS,ObjectPageHeader:()=>rx,ObjectPageHeaderAction:()=>sx,ObjectPageHeaderActions:()=>ix,ObjectPageHeaderSectionAddress:()=>hx,ObjectPageHeaderSectionChart:()=>dx,ObjectPageHeaderSectionContact:()=>mx,ObjectPageHeaderSectionDataPoint:()=>gx,ObjectPageHeaderSectionForm:()=>px,ObjectPageLayout:()=>xx,ObjectPageTable:()=>kp,ObjectPageTableColumn:()=>hf,ObjectPageTableColumnAction:()=>jx,ObjectPageToolBarAction:()=>Wx,PersonalizationType:()=>Cx,PersonalizationTypeOP:()=>kx,Position:()=>Jx,PositionOP:()=>$x,QuickVariantSelectionV4:()=>Ox,QuickVariantSelectionV4OP:()=>Ux,RelatedApps:()=>Qx,Table:()=>Dx,TableColumn:()=>$y,TableColumnAction:()=>zx,TableCreationModeOP:()=>wx,TableCustomColumn:()=>eP,TableCustomColumnOP:()=>Bx,TableSettings:()=>Dy,TableViewExtension:()=>Rx,TableViewSettings:()=>Vp,ToolBar:()=>iP,ToolBarAction:()=>sP,ViewCustomActionPosition:()=>uP,ViewPersonalizationType:()=>Ix,ViewPosition:()=>Zx,ViewTableColumn:()=>By,ViewTableColumnAction:()=>Yx,ViewTableCustomAction:()=>pP,ViewTableCustomColumn:()=>tP,ViewToolBarAction:()=>cP,VisualFilter:()=>FS,checkViewOrder:()=>Vx,deleteCreationModeProperty:()=>wp,deletePersonalizationProperty:()=>mo,exportCreationModeProperty:()=>Mp,exportPersonalization:()=>ky,exportPersonalizationProperty:()=>go});function lq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}a(lq,"exportVisualFilterValueList");var rf=class rf{};a(rf,"FilterBar"),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.99.0"}),Fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],rf.prototype,"hideFilterBar",2),h([T({manifest:{path:Py}}),C({since:"1.93.0"}),Fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],rf.prototype,"initialLayout",2),h([T({manifest:{path:Py}}),C({since:"1.93.0"}),Fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],rf.prototype,"layout",2);var LS=rf,xp=class xp{};a(xp,"VisualFilter"),h([T({manifest:{path:NS}}),C({since:"1.93.0"}),Fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],xp.prototype,"availability",2),h([T({manifest:{path:NS,import:t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},export:lq,key:"visualFilter"}}),C({since:"1.93.0"})],xp.prototype,"visualFilterValueList",2);var FS=xp,Pp=class Pp{};a(Pp,"CustomFilterFieldPosition"),h([T({manifest:{path:(t,n,i,r)=>Ts(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Pp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>Ts(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Pp.prototype,"placement",2);var RS=Pp,Es=class Es{};a(Es,"CustomFilterField"),h([T({manifest:{path:Ts}}),C({since:"1.77.0"})],Es.prototype,"label",2),h([T({manifest:{path:Ts}}),C({since:"1.77.0"})],Es.prototype,"property",2),h([T({manifest:{path:Ts}}),C({since:"1.77.0"})],Es.prototype,"template",2),h([T({manifest:{path:Ts}}),C({since:"1.77.0"})],Es.prototype,"required",2),h([T({manifest:{path:Ts}}),C({since:"1.77.0"})],Es.prototype,"position",2);var _S=Es;var MS=class MS{};a(MS,"HeaderActions");var DS=MS,wS=class wS{};a(wS,"Header");var VS=wS;var Cp=class Cp{};a(Cp,"CustomHeaderActionPosition"),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Cp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Cp.prototype,"placement",2);var Ip=Cp,bs=class bs{};a(bs,"CustomHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],bs.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],bs.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],bs.prototype,"press",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],bs.prototype,"visible",2),h([T({manifest:{path:fi},generate:qn}),C({since:"1.84.0"})],bs.prototype,"enabled",2);var kS=bs;var Oy=class Oy{};a(Oy,"ObjectPageCustomHeaderSectionFlexSettings"),h([T({manifest:{path:(t,n,i)=>br(t,n,i,"flexSettings")}}),C({since:"1.81.0"})],Oy.prototype,"designtime",2);var US=Oy,Zi=class Zi{};a(Zi,"ObjectPageCustomHeaderSectionFragment"),h([T({manifest:{path:(t,n,i)=>br(t,n,i,"position"),key:"anchor"}}),C({since:"1.77.0"})],Zi.prototype,"relatedFacet",2),h([T({manifest:{path:(t,n,i)=>br(t,n,i,"position"),key:"placement"}}),C({since:"1.77.0"})],Zi.prototype,"relativePosition",2),h([T({manifest:{path:br},generate:Ki}),C({since:"1.84.0"})],Zi.prototype,"visible",2),h([T({manifest:{path:br}}),C({since:"1.77.0"})],Zi.prototype,"title",2),h([T({manifest:{path:br}}),C({since:"1.77.0"})],Zi.prototype,"subTitle",2),h([T({manifest:{path:br,import:t=>t.name||t.template,key:"template"}}),C({since:"1.77.0"})],Zi.prototype,"fragmentName",2),h([T({manifest:{path:br,import:t=>t.templateEdit,key:"templateEdit"}}),C({since:"1.86.0"})],Zi.prototype,"templateEdit",2),h([T({manifest:{path:br}}),C({since:"1.81.0"})],Zi.prototype,"stashed",2),h([T({manifest:{path:br}}),C({since:"1.81.0"})],Zi.prototype,"flexSettings",2),h([T({manifest:{path:br}}),C({since:"1.81.0"})],Zi.prototype,"requestGroupId",2),h([T({manifest:{path:br,import:!1,export:!1},xml:t=>t.fragmentName}),C({since:"1.96.0"})],Zi.prototype,"controls",2);var jS=Zi;var As=class As{};a(As,"ObjectPageCustomSectionFragment"),h([T({manifest:{path:(t,n,i)=>tf(t,n,i,"position"),key:"anchor"}}),C({since:"1.77.0"})],As.prototype,"relatedFacet",2),h([T({manifest:{path:(t,n,i)=>tf(t,n,i,"position"),key:"placement"}}),C({since:"1.77.0"})],As.prototype,"relativePosition",2),h([T({manifest:{path:tf}}),C({since:"1.77.0"})],As.prototype,"title",2),h([T({manifest:{path:tf,import:t=>t.name||t.template,key:"template"}}),C({since:"1.77.0"})],As.prototype,"fragmentName",2),h([T({manifest:{path:tf,import:!1,export:!1},xml:t=>t.fragmentName}),C({since:"1.96.0"})],As.prototype,"controls",2);var of=As,Ss=class Ss extends of{};a(Ss,"ObjectPageCustomSubSectionFragment"),h([T({manifest:{path:(...t)=>`${nf.apply({},t)}/position`,key:"anchor"}}),C({since:"1.77.0"})],Ss.prototype,"relatedFacet",2),h([T({manifest:{path:(...t)=>`${nf.apply({},t)}/position`,key:"placement"}}),C({since:"1.77.0"})],Ss.prototype,"relativePosition",2),h([T({manifest:{path:nf}}),C({since:"1.77.0"})],Ss.prototype,"title",2),h([T({manifest:{path:nf,import:t=>t.name||t.template,key:"template"}}),C({since:"1.77.0"})],Ss.prototype,"fragmentName",2),h([T({manifest:{path:nf,import:!1,export:!1},xml:t=>t.fragmentName}),C({since:"1.96.0"})],Ss.prototype,"controls",2);var $S=Ss;var WS=class WS{};a(WS,"ObjectPageFooterActions");var BS=WS,GS=class GS{};a(GS,"ObjectPageFooter");var HS=GS;var Op=class Op{};a(Op,"ActionAfterExecutionConfigurationFooter"),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/afterExecution"}}),Fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Op.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/afterExecution"}})],Op.prototype,"enableAutoScroll",2);var KS=Op,Ny=class Ny{};a(Ny,"FooterActionV4"),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],Ny.prototype,"afterExecution",2);var XS=Ny,Np=class Np{};a(Np,"CustomFooterActionPositionOP"),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Np.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>fo(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Np.prototype,"placement",2);var QS=Np,xs=class xs{};a(xs,"CustomFooterActionOP"),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],xs.prototype,"text",2),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],xs.prototype,"position",2),h([T({manifest:{path:fo}}),C({since:"1.84.0"})],xs.prototype,"press",2),h([T({manifest:{path:fo},generate:Ki}),C({since:"1.84.0"})],xs.prototype,"visible",2),h([T({manifest:{path:fo},generate:Ki}),C({since:"1.84.0"})],xs.prototype,"enabled",2);var qS=xs;var Lp=class Lp{};a(Lp,"ActionAfterExecutionConfigurationForm"),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/afterExecution"}}),Fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Lp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/afterExecution"}})],Lp.prototype,"enableAutoScroll",2);var zS=Lp,Ly=class Ly{};a(Ly,"FormAction"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ly.prototype,"afterExecution",2);var YS=Ly,ex=class ex{};a(ex,"ObjectPageFormActions");var JS=ex,tx=class tx{};a(tx,"ObjectPageForm");var ZS=tx;var Ps=class Ps{};a(Ps,"CustomFormActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ps.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ps.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Ps.prototype,"press",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],Ps.prototype,"visible",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],Ps.prototype,"enabled",2);var nx=Ps;var ox=class ox{};a(ox,"ObjectPageHeaderActions");var ix=ox,af=class af{};a(af,"ObjectPageHeader"),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"})],af.prototype,"editableHeaderContent",2),h([T({manifest:{path:Sy}}),C({since:"1.84.0"})],af.prototype,"visible",2),h([T({manifest:{path:Sy}}),C({since:"1.84.0"})],af.prototype,"anchorBarVisible",2);var rx=af;var Fp=class Fp{};a(Fp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/afterExecution"}}),Fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Fp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>fi(t,n,i,r)+"/afterExecution"}})],Fp.prototype,"enableAutoScroll",2);var ax=Fp,Fy=class Fy{};a(Fy,"ObjectPageHeaderAction"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Fy.prototype,"afterExecution",2);var sx=Fy,fx=class fx extends Ip{};a(fx,"CustomHeaderActionPositionOP");var cx=fx,Cs=class Cs{};a(Cs,"CustomHeaderActionOP"),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Cs.prototype,"text",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Cs.prototype,"position",2),h([T({manifest:{path:fi}}),C({since:"1.84.0"})],Cs.prototype,"press",2),h([T({manifest:{path:fi},generate:Ki}),C({since:"1.84.0"})],Cs.prototype,"visible",2),h([T({manifest:{path:fi},generate:Ki}),C({since:"1.84.0"})],Cs.prototype,"enabled",2);var lx=Cs;var Ry=class Ry{};a(Ry,"FlexSettings"),h([T({manifest:{path:(t,n,i)=>xy(t,n,i)+"/flexSettings"}}),C({since:"1.81.0"}),Fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Ry.prototype,"designtime",2);var ux=Ry,Rp=class Rp{};a(Rp,"CommonHeaderFacetSettings"),h([T({manifest:{path:xy}}),C({since:"1.81.0"})],Rp.prototype,"stashed",2),h([T({manifest:{path:xy}}),C({since:"1.81.0"})],Rp.prototype,"flexSettings",2);var Is=Rp,vx=class vx extends Is{};a(vx,"ObjectPageHeaderSectionForm");var px=vx,Tx=class Tx extends Is{};a(Tx,"ObjectPageHeaderSectionChart");var dx=Tx,Ex=class Ex extends Is{};a(Ex,"ObjectPageHeaderSectionDataPoint");var gx=Ex,bx=class bx extends Is{};a(bx,"ObjectPageHeaderSectionContact");var mx=bx,Ax=class Ax extends Is{};a(Ax,"ObjectPageHeaderSectionAddress");var hx=Ax,Sx=class Sx{};a(Sx,"HeaderSections");var yx=Sx;var _y=class _y{};a(_y,"ObjectPageLayout"),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],_y.prototype,"sectionLayout",2);var xx=_y;var Uy=te(le());var Px=te(le());var fq=a((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function po(e,t,n,i,r,o){let s=Ay(e),l=fq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[Px.SchemaTag.key]===(o==null?void 0:o.key)||g[Px.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}a(po,"getSettingsPathForLRViewsPath");function uq(e,t,n,i,r,o){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+o)]=g:s[u]=g}return s}a(uq,"fillNewlyOrderedViews");function Vx(e,t){let n=t.key,i=e.findIndex(o=>(o==null?void 0:o.key)===n),r=t.index;if(i>-1&&i!==r){let o=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=uq(e,n,r,s,l,o);for(let p of Object.keys(u))e[p]=u[p]}}a(Vx,"checkViewOrder");function ky(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}a(ky,"exportPersonalization");function go(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}a(go,"exportPersonalizationProperty");function mo(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}a(mo,"deletePersonalizationProperty");function Mx(e,t,n,i,r,o){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=o.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}a(Mx,"deleteView");function Mp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}a(Mp,"exportCreationModeProperty");function wp(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}a(wp,"deleteCreationModeProperty");function GV(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}a(GV,"importPersonalization");function KV(e,t,n,i){let r=e.findIndex(o=>o.key===i[0]);return r===-1?void 0:r}a(KV,"determineIndexOfView");var sf=class sf{};a(sf,"PersonalizationType"),h([T({manifest:{path:zi,export:go,delete:mo}})],sf.prototype,"column",2),h([T({manifest:{path:zi,export:go,delete:mo}})],sf.prototype,"sort",2),h([T({manifest:{path:zi,export:go,delete:mo}})],sf.prototype,"filter",2);var Cx=sf,cf=class cf{};a(cf,"ViewPersonalizationType"),h([T({manifest:{path:Tr,export:go,delete:mo}})],cf.prototype,"column",2),h([T({manifest:{path:Tr,export:go,delete:mo}})],cf.prototype,"sort",2),h([T({manifest:{path:zi,export:go,delete:mo}})],cf.prototype,"filter",2);var Ix=cf,lf=class lf{};a(lf,"QuickVariantSelectionV4"),h([T({manifest:{path:Cy}})],lf.prototype,"paths",2),h([T({manifest:{path:Cy}})],lf.prototype,"hideTableTitle",2),h([T({manifest:{path:Cy}})],lf.prototype,"showCounts",2);var Ox=lf,uo=class uo{};a(uo,"TableSettings"),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],uo.prototype,"type",2),h([T({manifest:{path:zi,import:GV,export:ky}}),C({since:"1.86.0"})],uo.prototype,"personalization",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],uo.prototype,"selectionMode",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"})],uo.prototype,"selectAll",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"})],uo.prototype,"selectionLimit",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],uo.prototype,"enableExport",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"})],uo.prototype,"quickVariantSelection",2),h([T({manifest:{path:zi}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],uo.prototype,"condensedTableLayout",2);var Dy=uo,Vy=class Vy{};a(Vy,"ALPChart"),h([T({manifest:{path:t=>pt(t)+"/views/paths/0/primary/0",delete:Mx}})],Vy.prototype,"annotationPath",2);var Nx=Vy,Vc=class Vc{};a(Vc,"CommonViewSettings"),h([T({manifest:{path:po,delete:Qs}})],Vc.prototype,"key",2),h([T({manifest:{path:Ay,import:KV,export:(t,n)=>{Vx(t,n)},delete:Mx}})],Vc.prototype,"index",2),h([T({manifest:{path:po,delete:Qs}})],Vc.prototype,"annotationPath",2),h([T({manifest:{path:po}})],Vc.prototype,"entitySet",2);var uf=Vc,Gr=class Gr extends uf{};a(Gr,"TableViewSettings"),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"type",2),h([T({manifest:{path:Tr,import:GV}}),C({since:"1.86.0"})],Gr.prototype,"personalization",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"selectionMode",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"selectAll",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"selectionLimit",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Gr.prototype,"enableExport",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"})],Gr.prototype,"quickVariantSelection",2),h([T({manifest:{path:Tr}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Gr.prototype,"condensedTableLayout",2),h([T({manifest:{path:Tr}}),C({since:"1.117.0"}),Fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Gr.prototype,"hierarchyQualifier",2);var Vp=Gr;function pq(e){return Vp}a(pq,"getTableViewSettings");var _p=class _p extends Vp{};a(_p,"ALPTable"),h([T({manifest:{path:t=>pt(t)+"/views/paths/0/secondary/0",delete:Qs}})],_p.prototype,"annotationPath",2),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],_p.prototype,"initialLoad",2);var pf=_p,My=class My extends uf{};a(My,"LRChartView"),h([T({manifest:{path:po},generate:qn})],My.prototype,"visible",2);var Lx=My,ff=class ff extends pq(uf){};a(ff,"LRTableView"),h([T({manifest:{path:po}})],ff.prototype,"keepPreviousPersonalization",2),h([T({manifest:{path:po}})],ff.prototype,"entitySet",2),h([T({manifest:{path:po},generate:qn})],ff.prototype,"visible",2);var Fx=ff,Os=class Os{};a(Os,"TableViewExtension"),h([T({manifest:{path:po}})],Os.prototype,"key",2),h([T({manifest:{path:Ay,import:KV,export:(t,n)=>{Vx(t,n)},delete:Mx}})],Os.prototype,"index",2),h([T({manifest:{path:po}})],Os.prototype,"label",2),h([T({manifest:{path:po}})],Os.prototype,"template",2),h([T({manifest:{path:po},generate:qn})],Os.prototype,"visible",2);var Rx=Os,wy=class wy{};a(wy,"MultiTableModeV4"),h([T({manifest:{path:t=>pt(t)+"/views"}})],wy.prototype,"showCounts",2);var _x=wy,Dp=class Dp extends Dy{};a(Dp,"Table"),h([T({manifest:{path:t=>pt(t)+"/views/paths/0/secondary/0",delete:Qs}})],Dp.prototype,"annotationPath",2),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Dp.prototype,"initialLoad",2);var Dx=Dp;var df=class df{};a(df,"TableCreationModeOP"),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:(t,n,i)=>{Mp(t,n,i)},delete:(t,n,i,r)=>{wp(t,r)}}})],df.prototype,"name",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:(t,n,i)=>{Mp(t,n,i)},delete:(t,n,i,r)=>{wp(t,r)}}})],df.prototype,"createAtEnd",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:(t,n,i)=>{Mp(t,n,i)},delete:(t,n,i,r)=>{wp(t,r)}}})],df.prototype,"inlineCreationRowsHiddenInEditMode",2);var wx=df,gf=class gf{};a(gf,"PersonalizationTypeOP"),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:go,delete:mo}})],gf.prototype,"column",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:go,delete:mo}})],gf.prototype,"sort",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i),export:go,delete:mo}})],gf.prototype,"filter",2);var kx=gf,mf=class mf{};a(mf,"QuickVariantSelectionV4OP"),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i)+Uy.QUICKVARPATH}})],mf.prototype,"paths",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i)+Uy.QUICKVARPATH}})],mf.prototype,"hideTableTitle",2),h([T({manifest:{path:(t,n,i)=>Fn(t,n,i)+Uy.QUICKVARPATH}})],mf.prototype,"showCounts",2);var Ux=mf,er=class er{};a(er,"ObjectPageTable"),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],er.prototype,"type",2),h([T({manifest:{path:Fn,import:t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}}}}),C({since:"1.84.0"})],er.prototype,"creationMode",2),h([T({manifest:{path:Fn,import:t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},export:ky}}),C({since:"1.86.0"})],er.prototype,"personalization",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],er.prototype,"selectionMode",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],er.prototype,"selectAll",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],er.prototype,"selectionLimit",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],er.prototype,"enableExport",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],er.prototype,"quickVariantSelection",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],er.prototype,"condensedTableLayout",2),h([T({manifest:{path:Fn}}),C({since:"1.86.0"})],er.prototype,"enableFullScreen",2),h([T({manifest:{path:Fn}}),C({since:"1.84.0"})],er.prototype,"enablePaste",2);var kp=er;var Up=class Up{};a(Up,"ActionAfterExecutionConfigurationOP"),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/afterExecution"}}),Fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Up.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/afterExecution"}})],Up.prototype,"enableAutoScroll",2);var Bp=Up,jp=class jp{};a(jp,"ObjectPageTableColumn"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],jp.prototype,"width",2),h([T({manifest:{path:Ji}}),C({since:"1.85.0"})],jp.prototype,"availability",2);var hf=jp,Hx=class Hx extends hf{};a(Hx,"ObjectPageTableColumnAction");var jx=Hx,$p=class $p{};a($p,"PositionOP"),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],$p.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>Ji(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],$p.prototype,"placement",2);var $x=$p,Bo=class Bo{};a(Bo,"TableCustomColumnOP"),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Bo.prototype,"position",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Bo.prototype,"header",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Bo.prototype,"width",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Bo.prototype,"template",2),h([T({manifest:{path:Ji}}),C({since:"1.86.0"})],Bo.prototype,"horizontalAlign",2),h([T({manifest:{path:Ji}}),C({since:"1.84.0"})],Bo.prototype,"availability",2),h([T({manifest:{path:Ji}}),C({since:"1.85.0"})],Bo.prototype,"properties",2);var Bx=Bo;var jy=class jy{};a(jy,"ObjectPageToolBarAction"),h([T({manifest:{path:kn}})],jy.prototype,"enableOnSelect",2);var Wx=jy,Hp=class Hp{};a(Hp,"CustomActionPositionOP"),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Hp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r)=>kn(t,n,i,r)+"/position"}}),C({since:"1.84.0"})],Hp.prototype,"placement",2);var Gx=Hp,Sa=class Sa{};a(Sa,"CustomTableActionOP"),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Sa.prototype,"text",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Sa.prototype,"position",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Sa.prototype,"press",2),h([T({manifest:{path:kn}}),C({since:"1.84.0"})],Sa.prototype,"requiresSelection",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],Sa.prototype,"visible",2),h([T({manifest:{path:kn},generate:Ki}),C({since:"1.84.0"})],Sa.prototype,"enabled",2);var Kx=Sa;var yf=class yf{};a(yf,"AdditionalSemanticObject"),h([T({manifest:{path:Iy}}),Fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],yf.prototype,"allowedActions",2),h([T({manifest:{path:Iy}}),Fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],yf.prototype,"unavailableActions",2),h([T({manifest:{path:Iy}}),Fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],yf.prototype,"mapping",2);var Xx=yf,Wp=class Wp{};a(Wp,"RelatedApps"),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"})],Wp.prototype,"showRelatedApps",2),h([T({manifest:{path:pt}})],Wp.prototype,"additionalSemanticObjects",2);var Qx=Wp;var Gp=class Gp{};a(Gp,"ActionAfterExecutionConfiguration"),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}}),Fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Gp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Gp.prototype,"enableAutoScroll",2);var qx=Gp,Kp=class Kp{};a(Kp,"TableColumn"),h([T({manifest:{path:Di}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Kp.prototype,"width",2),h([T({manifest:{path:Di}}),C({since:"1.85.0"})],Kp.prototype,"availability",2);var $y=Kp,Xp=class Xp{};a(Xp,"ViewTableColumn"),h([T({manifest:{path:Yi}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xp.prototype,"width",2),h([T({manifest:{path:Yi}}),C({since:"1.85.0"})],Xp.prototype,"availability",2);var By=Xp,Hy=class Hy extends $y{};a(Hy,"TableColumnAction"),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Hy.prototype,"afterExecution",2);var zx=Hy,Wy=class Wy extends By{};a(Wy,"ViewTableColumnAction"),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wy.prototype,"afterExecution",2);var Yx=Wy,Qp=class Qp{};a(Qp,"Position"),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],Qp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],Qp.prototype,"placement",2);var Jx=Qp,qp=class qp{};a(qp,"ViewPosition"),h([T({manifest:{path:(t,n,i,r,o)=>Yi(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],qp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Yi(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],qp.prototype,"placement",2);var Zx=qp,Ho=class Ho{};a(Ho,"TableCustomColumn"),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"position",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"header",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ho.prototype,"width",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"template",2),h([T({manifest:{path:Di}}),C({since:"1.86.0"})],Ho.prototype,"horizontalAlign",2),h([T({manifest:{path:Di}}),C({since:"1.84.0"})],Ho.prototype,"availability",2),h([T({manifest:{path:Di}}),C({since:"1.85.0"})],Ho.prototype,"properties",2);var eP=Ho,Wo=class Wo{};a(Wo,"ViewTableCustomColumn"),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"position",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"header",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"template",2),h([T({manifest:{path:Yi}}),C({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([T({manifest:{path:Yi}}),C({since:"1.84.0"})],Wo.prototype,"availability",2),h([T({manifest:{path:Yi}}),C({since:"1.85.0"})],Wo.prototype,"properties",2);var tP=Wo;var rP=class rP{};a(rP,"Actions");var nP=rP,oP=class oP{};a(oP,"ToolBar");var iP=oP;var zp=class zp{};a(zp,"ActionAfterExecutionConfigurationToolBarLR"),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/afterExecution"}}),Fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/afterExecution"}})],zp.prototype,"enableAutoScroll",2);var aP=zp,Yp=class Yp{};a(Yp,"ToolBarAction"),h([T({manifest:{path:Er}})],Yp.prototype,"enableOnSelect",2),h([T({manifest:{path:Er}})],Yp.prototype,"afterExecution",2);var sP=Yp,Jp=class Jp{};a(Jp,"ViewToolBarAction"),h([T({manifest:{path:Wr}})],Jp.prototype,"enableOnSelect",2),h([T({manifest:{path:Wr}})],Jp.prototype,"afterExecution",2);var cP=Jp,Zp=class Zp{};a(Zp,"CustomActionPosition"),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Er(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var lP=Zp,xa=class xa{};a(xa,"CustomTableAction"),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"text",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"position",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"press",2),h([T({manifest:{path:Er}}),C({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([T({manifest:{path:Er},generate:qn}),C({since:"1.84.0"})],xa.prototype,"visible",2),h([T({manifest:{path:Er},generate:qn}),C({since:"1.84.0"})],xa.prototype,"enabled",2);var fP=xa,ed=class ed{};a(ed,"ViewCustomActionPosition"),h([T({manifest:{path:(t,n,i,r,o)=>Wr(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],ed.prototype,"anchor",2),h([T({manifest:{path:(t,n,i,r,o)=>Wr(t,n,i,r,o)+"/position"}}),C({since:"1.84.0"})],ed.prototype,"placement",2);var uP=ed,Pa=class Pa{};a(Pa,"ViewTableCustomAction"),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"text",2),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"position",2),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"press",2),h([T({manifest:{path:Wr}}),C({since:"1.84.0"})],Pa.prototype,"requiresSelection",2),h([T({manifest:{path:Wr},generate:qn}),C({since:"1.84.0"})],Pa.prototype,"visible",2),h([T({manifest:{path:Wr},generate:qn}),C({since:"1.84.0"})],Pa.prototype,"enabled",2);var pP=Pa;var yP={};Hs(yP,{FreestylePage:()=>mP,ListReport:()=>Ar,ObjectPage:()=>ho});function dq(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(o=>delete e[o])}a(dq,"deleteAllALPViews");function gq(){}a(gq,"doNotExport");function mq(){}a(mq,"doNotImport");var Ar=class{};a(Ar,"ListReport"),h([T({manifest:{path:t=>pt(t)+"/views",import:mq,export:gq,delete:dq}})],Ar.prototype,"chart",2),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"})],Ar.prototype,"variantManagement",2),h([T({manifest:{path:t=>pt(t)+"/views/paths/[]/0"}}),Fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Ar.prototype,"defaultPath",2),h([T({manifest:{path:t=>pt(t)}})],Ar.prototype,"defaultTemplateAnnotationPath",2),h([Mt("header")],Ar.prototype,"header",2),h([Mt("fe::FilterBar")],Ar.prototype,"filterBar",2),Ar=h([Dr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Ar);var gP=te(le());var ho=class{};a(ho,"ObjectPage"),h([Mt("header")],ho.prototype,"header",2),h([Mt("layout")],ho.prototype,"layout",2),h([T({manifest:{path:t=>pt(t)}}),C({since:"1.84.0"}),Fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],ho.prototype,"variantManagement",2),h([Mt("sections")],ho.prototype,"sections",2),ho=h([Dr({id:`${gP.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:gP.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],ho);var hP=class hP{};a(hP,"FreestylePage");var mP=hP;var Gy=te(le());var hq={ALPTableView:pf},yq={ALPTableView:pf},vq={Table:kp,TableColumn:hf,ObjectPageCustomSectionView:of,ActionAfterExecutionConfiguration:Bp},Tq={[Gy.PageTypeV2.AnalyticalListPage]:hq,[Gy.PageTypeV2.ListReport]:yq,[Gy.PageTypeV2.ObjectPage]:vq},vP=class vP extends Dl{constructor(){super(dP,yP,Tq)}};a(vP,"MetadataInstanceFactoryV4");var Ca=vP;var TP=require("@sap-ux/vocabularies-types/vocabularies/UI");function EP(e,t,n,i,r,o,s){var g,m,v,A,E,O;let l=t.jsonSchema.definitions,u=o&&o!==`@${TP.UIAnnotationTerms.LineItem}`?o:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let R in p.properties){let H=l[u].properties[R].$ref.split($)[1].split("<")[0];e.columns[R]=n.createInstance(i,H);let W=s||o;Et(e.columns[R],t.manifest,l[H],r,[R,W],W,t.logger),No(e.columns,R)}No(e,"columns")}else{let R=(O=(E=(A=(v=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!R||R.paths.length<1)&&ae(t.logger,{severity:he.LogSeverity.Error,message:J.t("NOLINEITEMS")})}}a(EP,"transferColumns");function Eq(e,t,n,i,r){let o=e.jsonSchema.definitions,s=o[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=gn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Et(t.visualFilters[l],e.manifest,o[p],r,[l])}}No(t,"visualFilters")}}a(Eq,"importVisualFilters");function bq(e,t,n,i,r,o=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(o)===-1&&(u=`@${TP.UIAnnotationTerms.LineItem}#${o.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${o}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=gn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),Et(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),No(t.toolBar.actions,g)}}}a(bq,"importActions");function bP(e,t,n,i,r,o=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Et(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),bq(e,u,n,i,r,o,s),No(u.toolBar,"actions"),No(u,"toolBar")}a(bP,"transferToolBar");function XV(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",o=i==null?void 0:i.substr(i.lastIndexOf("@"));return o=r?`${r}${o}`:o,o}a(XV,"determineTargetAnnotationOfView");function Aq(e,t,n,i,r){let o=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=o[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Et(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Et(t.chart.toolBar,e.manifest,o[he.DefinitionName.ViewChartToolBar],r,[]);let u=o[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=o[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);bP(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Et(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),EP(g,e,n,i,r,void 0,m)}}a(Aq,"importALPViews");function Sq(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}a(Sq,"getViewTypeByDefinition");function xq(e,t,n,i,r){let o=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Et(o,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=Sq(g),v=o[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=XV(s,g,A);if(Et(v,e.manifest,s[g],r,[p[0],E]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;bP(e,v,n,i,r,O,E),EP(v,e,n,i,r,O,E)}Object.keys(v).length===0&&delete o[p[0]]}No(t.table,"views")}a(xq,"importLRViews");function Pq(e,t,n,i,r){let o=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[o];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=gn(p.$ref),m=e.definitions[g],v=gn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,v),Et(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),No(t.header,"actions"),No(t,"header")}}}}a(Pq,"transferHeaderActions");function Cq(e,t,n,i){let r=e.jsonSchema.definitions,o={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(o=l.properties)}for(let s in o){let l=o[s];if(typeof l!="object"||l.$ref!==$+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];Et(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}a(Cq,"importCustomFilterFields");function Iq(e,t,n,i,r,o){if(Et(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Et(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),Pq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Et(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),Eq(e,t.filterBar,n,i,r),Cq(e,t.filterBar,n,r),o===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=XV(e.jsonSchema.definitions,s);Et(t.table,e.manifest,l,r,[s,p]),bP(e,t,n,i,r,u),EP(t.table,e,n,i,r,u,p),xq(e,t,n,i,r)}else o===he.SchemaType.AnalyticalListPage&&Aq(e,t,n,i,r)}a(Iq,"addSettings");function Mc(e,t){if(en(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){ae(e.logger,{severity:he.LogSeverity.Error,message:J.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){ae(e.logger,{severity:he.LogSeverity.Error,message:J.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ca,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let o in n){let s=n[o],l=ZT(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){Iq(e,r,i,he.PageTypeV4.ListReport,o,t);break}}return r}a(Mc,"createListReportConfig");var Ae=te(le()),wc=require("@sap-ux/vocabularies-types/vocabularies/UI");function Oq(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}a(Oq,"isBoolean");function Nq(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}a(Nq,"isNumber");function Lq(e,t){let n=e.toString();return Oq(n,t)?n==="true":Nq(n,t)?parseFloat(n):e}a(Lq,"convertValue");function Fq(e,t,n,i){let{element:r}=e,o=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Lq(r.attributes[i],t);s!==n[i]&&(n[i]=s,o=!0)}return o}a(Fq,"importProperty");function QV(e,t,n){let i,r=Jl(e.file,!1,n);if(r){let o=hy(r);i={},Lc({fullSchema:t,schema:t,element:o,contextPath:[],config:i},Fq)}return i}a(QV,"convertXmlFileToConfig");function Ky(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:o}=e;if(!i||Object.keys(i).length===0)return;let s=us(t||[],r,n,o),l;return s&&(l=QV(s,i,e.logger)),l}a(Ky,"createCustomPageConfig");function td(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:o,logger:s}=e,l=Zl(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=bc(i,o),g=Ac(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=QV(g,A,s)}return m}a(td,"createCustomFragmentConfig");function AP(e,t=!1,n){var r,o,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(o=l[0])==null?void 0:o.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}a(AP,"getManifestId");function Xy(e){return e.replace(/#/g,"::").replace(/\//g,"::")}a(Xy,"getDefinitionId");function Rq(e,t,n,i,r,o){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Xy(o)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(Ae.DefinitionName.CustomColumnOP)>-1?s=Ae.DefinitionName.CustomColumnOP:s=Ae.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(Ae.PageTypeV4.ObjectPage,s);Et(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],o),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}a(Rq,"fillTableColumnsInConfig");function _q(e,t,n,i,r=t){let o=e.jsonSchema.definitions[`${Ae.DefinitionName.Actions}<${Xy(r)}>`];if(typeof o=="object")for(let s in o.properties){let l=o.properties[s];if(typeof l=="object"&&l.$ref){let u=gn(l.$ref),p=u.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(Ae.PageTypeV4.ObjectPage,p),Et(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],r),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}a(_q,"fillTableActionsInConfig");function Dq(e,t,n,i,r,o=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${Ae.DefinitionName.ObjectPageSectionForm}<${Xy(o)}>`].properties.form.$ref.split($)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split($)[1],m=e.jsonSchema.definitions[g];for(let v in m.properties){let A=m.properties[v],E=gn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===wc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let R=gn(O.$ref)||E.split("<")[0];i[n].form.actions[v]=r.createInstance(Ae.PageTypeV4.ObjectPage,R),Et(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[R],e.routingId,[v.replace("/","??")],o),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}a(Dq,"fillFormActionsInConfig");function qV(e,t,n,i,r,o){var u;let s=o||AP(i,!1,wc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageTable);let p=`${Ae.DefinitionName.ObjectPageTable}<${o?Xy(o):i.replace("#","::")}>`;Et(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ToolBar,{actions:{}}),_q(e,i,n,r,s),Rq(e,l,n,i,r,s)}}a(qV,"fillTableInConfig");function Vq(e,t,n,i,r){var l;let o=AP(i),s=(l=t.controlConfiguration)==null?void 0:l[o];s&&(n[i]={},n[i].form=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageForm,{actions:{}}),Dq(e,s,i,n,r,o))}a(Vq,"fillFormInConfig");function Mq(e,t,n,i,r,o){let s=r.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(Et(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],o),s.fragmentName){let u=td(e,s.fragmentName);s.controls=u}n[i]=s}a(Mq,"fillCustomSubSectionInConfig");function YV(e,t,n,i,r,o){var s,l,u,p,g;for(let m in t){let v=t[m],A=m;if(m.includes(wc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith($+Ae.DefinitionName.ObjectPageSectionTableV4))){let E=v.$ref.split($)[1];A=E?AP(E,!0,wc.UIAnnotationTerms.LineItem):m,qV(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith($+Ae.DefinitionName.ObjectPageSectionTableV4)?qV(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},YV(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith($+Ae.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${wc.UIAnnotationTerms.FieldGroup}::`))?Vq(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith($+Ae.DefinitionName.ObjectPageCustomSubSectionFragment)&&Mq(e,v,i,m,r,o)}}a(YV,"fillSectionsInConfig");function wq(e,t,n,i){var o,s;let r=(s=(o=t.content)==null?void 0:o.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageCustomSectionFragment);Et(p,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l);let g=u.template;if(g){let m=td(e,g);p.controls=m}n.sections[l]=p}}a(wq,"fillCustomSectionsInConfig");function kq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,o=r&&"facets"in r?r.facets:void 0;if(o)for(let l in o){let u=o[l],p=i.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageCustomHeaderSectionFragment);Et(p,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=td(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=td(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}a(kq,"fillCustomHeaderSectionsInConfig");function Uq(e,t,n,i,r){var s,l;let o=e.definitions[Ae.DefinitionName.HeaderSections];if(o&&o.properties){t.header.sections={};for(let u in o.properties){let p=o.properties[u],g,m=(s=o.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(Ae.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(Ae.PageTypeV4.ObjectPage,g):{},Et(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(Ae.FacetTitlePrefix)[1]))}}}a(Uq,"fillHeaderFacets");function jq(e,t,n,i,r,o,s){let l=gn(e.$ref),u=t.definitions[l],p=gn(u.$ref||e.$ref),g=n.createInstance(Ae.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;Et(m,o,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}a(jq,"importActionSettingsOfReference");function zV(e,t,n,i,r,o,s){let l=e.definitions[o];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&jq(g,e,n,u,p,i,r)}}}a(zV,"fillHeaderFooterActions");function $q(e,t,n){var o,s;let i=n.createPageInstance(Ae.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageHeader),Et(i.header,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageFooter),Et(i.footer,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(Ae.PageTypeV4.ObjectPage,Ae.DefinitionName.ObjectPageLayout),Et(i.layout,e.manifest,e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageLayout],e.routingId,[]),Et(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(o=r.content)==null?void 0:o.body)!=null&&s.sections)&&e.jsonSchema.definitions[Ae.DefinitionName.Sections]&&(i.sections={},YV(e,e.jsonSchema.definitions[Ae.DefinitionName.Sections].properties,r,i.sections,n)),wq(e,r,i,n),Uq(e.jsonSchema,i,n,e.manifest,e.routingId),kq(e,r,i,n),zV(e.jsonSchema,i,n,e.manifest,e.routingId,Ae.DefinitionName.ObjectPageHeaderActions,Ae.PropertyName.header),zV(e.jsonSchema,i,n,e.manifest,e.routingId,Ae.DefinitionName.FooterActions,Ae.PropertyName.footer)),i}a($q,"fillObjectPageConfig");function Qy(e){if(en(),!e.manifest[Ae.ManifestSection.ui5]||!e.manifest[Ae.ManifestSection.ui5].routing){ae(e.logger,{severity:Ae.LogSeverity.Error,message:J.t("NOROUTING"),location:{path:Ae.MANIFESTPATH,range:[Ae.ManifestSection.ui5]}});return}let t=e.manifest[Ae.ManifestSection.ui5].routing.targets;if(!t){ae(e.logger,{severity:Ae.LogSeverity.Error,message:J.t("NOTARGETS"),location:{path:Ae.MANIFESTPATH,range:[Ae.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){ae(e.logger,{severity:Ae.LogSeverity.Error,message:J.t("NOROUTINGID",{routingId:e.routingId}),location:{path:Ae.MANIFESTPATH,range:[Ae.ManifestSection.ui5,"routing"]}});return}let i=new Ca;return $q(e,n,i)}a(Qy,"createObjectPageConfigV4");var He=te(le());var SP=[],qy={};function Bq(e,t){let n=e.target,i=t.target,r=Array.isArray(n),o=Array.isArray(i);return r&&o?n.length-i.length:!r&&!o?0:r?1:-1}a(Bq,"routesSorter");function xP(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}a(xP,"resolveTarget");function Hq(e){let t={};e=e.concat().sort(Bq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),o;Array.isArray(i.target)?(o=xP(i.target,n),n.push(i.target)):o=i.target;for(let s of r){let l=s.split("(")[0];t[o]=t[o]?`${t[o]}.${l}`:l}}return t}a(Hq,"populateAssociations");function Wq(e,t,n){let i;return e.name?e.name===He.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=He.PageTypeV4.FPMCustomPage:e.name.endsWith(He.PageTypeV4.ListReport)||e.name.endsWith(He.PageTypeV4.AnalyticalListPage)?i=He.PageTypeV4.ListReport:e.name.endsWith(He.PageTypeV4.ObjectPage)?i=He.PageTypeV4.ObjectPage:i=He.PageTypeV4.CustomPage:"viewId"in e?i=He.PageTypeV4.CustomPage:(ae(t,{severity:He.LogSeverity.Error,message:J.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:He.MANIFESTPATH,range:[`${He.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in He.ViewTypes&&"viewName"in e&&(i=He.PageTypeV4.CustomPage)),i}a(Wq,"determinePageType");function Gq(e){let t=e.target.viewId||e.target.id,n=Ft(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===He.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===He.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=Qy(r)}else if(e.page.pageType===He.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=Ky(r)}else if(e.templateType===He.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Mc(r,He.SchemaType.ListReport)}else if(e.templateType===He.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Mc(r,He.SchemaType.AnalyticalListPage)}else if(e.templateType===He.TemplateType.FreestylePageV4&&e.page.pageType===He.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Zf(e.target)===He.TemplateType.AnalyticalListPageV4?He.SchemaType.AnalyticalListPage:He.SchemaType.ListReport;e.page.config=Mc(r,s)}}}a(Gq,"convertSettingsToConfig");function Kq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");SP.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");SP.push(t[t.length-1])}}a(Kq,"updateUnhandledControllers");function Xq(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}a(Xq,"setVariantManagmentAndNavigation");function Qq(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:o,entityType:s}=Rc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(o==null?void 0:o.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}a(Qq,"setEntitySetEntityTypeContextPath");function qq(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([He.PageTypeV4.CustomPage,He.PageTypeV4.FPMCustomPage].includes(n)){let o=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...o&&{name:o},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}a(qq,"evaluateCustomPageSettings");function zq(e,t,n,i){let r=e.targets[t],o=Wq(r,i.logger,t),s={pageType:o};if(Qq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),qy[t]&&qy[t].indexOf(".")!==-1){let p=qy[t].split(".");s.navigationProperty=p[p.length-1]}qq(r,s,o),Xq(r,s),Kq(r);let l=e.routes.find(p=>p.name===t);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:o,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};Gq(u)}a(zq,"getSinglePageAndConfig");function JV(e){let t={},n=e.manifest[He.ManifestSection.ui5].routing;if(!n||!n.routes){let i=J.t("NOROUTING");return ae(e.logger,{severity:He.LogSeverity.Error,message:i,location:{path:He.MANIFESTPATH,range:[He.ManifestSection.ui5]}}),t}qy=Hq(n.routes||[]);for(let i in n.targets)zq(n,i,t,e);return t}a(JV,"getPagesAndConfigs");function ZV(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return xP(t?t.target:e.routes[0].target)}else return}a(ZV,"getHome");function eM(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}a(eM,"getSettings");function vf(e,t){let n=e[He.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let o=n.targets[r];o.name===t&&(i[r]=o)}return i}a(vf,"getPages");var PP=class PP extends Ga{constructor(t){en();let n=new ef,i=Ft(He.SchemaType.Application),r=t.appSchemas[i.filename];Et(n,t.manifest,r.definitions.AppSettings,"",[]),super(t.manifest,t.appSchemas,ZV(t.manifest[He.ManifestSection.ui5].routing),JV(t),He.FioriElementsVersion.v4,{...eM(t.manifest[He.ManifestSection.ui5].routing),...n},t.logger),this.unhandledControllers=SP}};a(PP,"V4AppProvider");var nd=PP;var tM=require("fs"),kc=require("path"),id=te(le());var nM=a((e,t,n=__dirname)=>{let i;switch(t){case id.SchemaType.Application:{i=`${id.SchemaType.Application}${e.toUpperCase()}.json`;break}case id.SchemaType.FPMCustomPage:{i=`${id.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,kc.join)(n,"schemas",e,i);if(n.endsWith((0,kc.join)("specification","packages","specification")))return(0,kc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,kc.join)("src","specification")))return(0,kc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,kc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Yq=a(async e=>new Promise((t,n)=>{(0,tM.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),zy=a(async(e,t)=>{try{let n=nM(e,t,__dirname);return await Yq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Jq(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FreestylePage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let o=Ft(r);n[o.filename]=await zy(t,r)}return n}a(Jq,"getGenericSchemas");function rM(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ri(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:o,Facets:s}=r.annotations[i];o&&!o.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}a(rM,"getAnnotationsForUi");function rd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}a(rd,"getEntitySetByEntitySetName");function Zq(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let o=2;o<e.objectPath.length;o++){let s=e.objectPath[o];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}a(Zq,"resolveNavigationProperty");function Rc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),o,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(o=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:o,entitySet:s}=Zq(r,e):ae(i,{severity:ue.LogSeverity.Error,message:J.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!o&&ae(i,{severity:ue.LogSeverity.Error,message:J.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:o,entitySet:s}}a(Rc,"getEntityTypeEntitySetFromContextPath");function iM(e,t,n){let i=Gu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let o=i[r].entitySet,s=rd(o,e.serviceAVT);s||ae(e.logger,{severity:ue.LogSeverity.Error,message:J.t("ENTITYSETNOTFOUND",{entitySetName:o})}),e.entitySet=s;let l=Ft(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||o),u=Ft(ue.SchemaType.ObjectPage);n[l.filename]=od(e,t[u.filename])}}a(iM,"generateObjectPageSchemasV2");function e9(e,t,n){var l,u;let i=vf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=vf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),o={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in o){let g=(l=o[p].options.settings)==null?void 0:l.entitySet,m=(u=o[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=Rc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let E=Ft(ue.SchemaType.ListReport,p),O=Ft(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=Zf(o[p])),n[E.filename]=Qu(e,t[O.filename],o[p].name,m)}}a(e9,"generateListReportSchemasV4");function t9(e,t,n){var r;let i=Gu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let o in i){let s=i[o].entitySet;e.entitySet=rd(s,e.serviceAVT);let l=Ft(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Ft(ue.SchemaType.ListReport);t[l.filename]=ad(e,n[u.filename])}}a(t9,"generateAppSchemaV2LR");function n9(e,t,n){var o,s;let i=vf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(o=i[l].options.settings)==null?void 0:o.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Rc(r,p,u);e.entitySet=m,e.entityType=g;let v=Ft(ue.SchemaType.ObjectPage,l),A=Ft(ue.SchemaType.ObjectPage),E=Ft(ue.SchemaType.FPMCustomPage);n[v.filename]=Sp(e,t[A.filename],p,t[E.filename])}}a(n9,"generateObjectPageSchemasV4");function i9(e,t,n,i){var o;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)t9(e,r,t),iM(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Gu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=rd(u,e.serviceAVT);let p=Ft(ue.SchemaType.AnalyticalListPage,((o=e.entitySet)==null?void 0:o.name)||u),g=Ft(ue.SchemaType.AnalyticalListPage);r[p.filename]=sd(e,t[g.filename])}iM(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Ft(ue.SchemaType.OverviewPage),l=Ft(ue.SchemaType.OverviewPage);r[s.filename]=cd(t[l.filename],e.manifest)}return{...t,...r}}a(i9,"generateAppSchemasV2");function r9(e,t,n){if(!Xs(e.featureToggles,ue.Features.BuildingBlocks))return;let i=vf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let o=i[r],s=us(e.views||[],r,e.manifest,e.logger),l=o.viewId||o.id||r;if(s){let u=Ft(ue.SchemaType.FPMCustomPage,void 0,l),p=Ft(ue.SchemaType.FPMCustomPage);n[u.filename]=Fc(t[p.filename],s,e.serviceAVT,e.logger)}}}a(r9,"generateCustomPageSchemasV4");function o9(e,t,n){let i={};return n&&(e9(e,t,i),n9(e,t,i),r9(e,t,i)),{...t,...i}}a(o9,"generateAppSchemasV4");async function oM(e,t,n){let i=await Jq(n,e.fioriElementsVersion);return e.fioriElementsVersion===ue.FioriElementsVersion.v4?o9(e,i,t):i9(e,i,t,n)}a(oM,"generateAppSchemas");function a9(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new Th(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new nd(e);break;case ue.TemplateType.OverviewPageV2:t=new Ah(e);break;default:break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let o in i)n.push({dataSourceUri:o,fileContent:JSON.stringify(i[o],null,4)});for(let o in r)n.push({dataSourceUri:o,fileContent:JSON.stringify(r[o],null,4)})}return n}a(a9,"importConfigs");function aM(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}a(aM,"getFileList");async function CP(e){var E,O;en();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:s}=e;new iu().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=rE(t),p=xo(n,i),g=rM(p),m=oE(t,u,i),A=await oM({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:o,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return aM(A)}a(CP,"importProjectSchema");async function IP(e){var U,H;en();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:s,featureToggles:l}=e;new iu().doesUi5VersionFitDistTags((H=(U=t["sap.ui5"])==null?void 0:U.dependencies)==null?void 0:H.minUI5Version,i);let p=rE(t),g=xo(n,i),m=oE(t,p,i),v={templateType:m,manifest:t,serviceAVT:g,fragments:r,views:o,fioriElementsVersion:p,logger:i,featureToggles:l},A=rM(g),E=await oM(v,A,m),R=a9({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:g,fragments:r,views:o});return aM(E,R)}a(IP,"importProjectSchemaAndConfig");var s9=["header","sections","footer"];function c9(e,t,n,i){t.properties[n][se.SchemaTag.artifactType]=se.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=se.ControlType.Section;break;case"ObjectPageSubSectionV2":r=se.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=se.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=se.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=se.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=se.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][se.SchemaTag.controlType]=r)}a(c9,"addFlexChangeForSection");function l9(e,t,n,i,r){n==null||n.forEach(o=>{if(!o.Determining&&o.$Type===yo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=nm(o,r.serviceAVT);if(!l)return;let p=o.Label||s,g=`ObjectPageHeaderAction<${ut(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=o.fullyQualifiedName.replace(`@${yo.UIAnnotationTerms.Identification}`,`/@${yo.UIAnnotationTerms.Identification}`);t.definitions[g][se.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][se.SchemaTag.actionType]=se.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:s}],u&&(t.definitions[g][se.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}a(l9,"addHeaderActionCallBackV2");function f9(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===yo.UIAnnotationTypes.DataFieldForAction){let o=sa(r).split("::").splice(1).join("::"),s=yi(r,e),l=ut(`${se.DefinitionName.ObjectPageFooterAction}<${o}>`),u=r.fullyQualifiedName.replace(`@${yo.UIAnnotationTerms.Identification}`,`/@${yo.UIAnnotationTerms.Identification}`);t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[se.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`},n.properties[o]={$ref:`${$}${l}`}}})}a(f9,"addFooterActionCallBackV2");function u9(e,t,n,i,r,o,s,l){let u,p;if(o.ID&&o.Label?u=o.ID+o.Label.replace(/\s+/g,""):o.ID?u=o.ID:o.Label&&(u=o.Label.replace(/\s+/g,"")),u?p=`${se.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${se.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${se.DefinitionName.CustomColumn}<${n}>`,m=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[g]=m;let v=[],A=r==null?void 0:r.entityTypes.find(O=>O.name===i),E=hc(t[se.ManifestSection.generic].pages,n,v);return ul(e,A,E,t,l,p,g,o.ID),p}a(u9,"ensureCustomColumnDefinitionExists");function fd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&c9(e,t,"visible",n)}a(fd,"addAppSchemaDefinition");function p9(e,t,n){e.properties[t]={$ref:`${$}${n}`}}a(p9,"addSectionReference");function ld(e,t,n,i){let r=ut(`${e}<${t}>`);i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e])),i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][se.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=se.FacetTitlePrefix+n.ID,i.definitions[r][se.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=se.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,$a(n.entityType,i,`QuickVariant<${t}>`)}a(ld,"addTableDefinition");function d9(e,t,n,i,r,o){if(i.base!==se.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${o}<${t}>`;n.definitions[l]=Co(n,i,t);let u=n.definitions[l];fd(n,u,o,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[se.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[se.SchemaTag.annotationPath]=i.annotationPath,ka(i,u,t),ld("ObjectPageResponsiveTableWithMultiSelect",t,i,n),ld("ObjectPageResponsiveTableWithInlineDelete",t,i,n),ld("ObjectPageGridTable",t,i,n),ld("ObjectPageTreeTable",t,i,n),ld("ObjectPageAnalyticalTable",t,i,n);let p,g=r0(i.entityType,e.serviceAVT);g&&(p=u9(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===se.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&fl(n,v.target,v.entityType,v.ID||m,p)}}a(d9,"handleLineItem");function g9(e,t,n,i,r,o=!1){e.definitions[t]=Co(e,n,i);let s=e.definitions[t],l=o?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";fd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[se.SchemaTag.isViewNode]=!0}a(g9,"handleSubSection");function m9(e,t,n,i,r){e.definitions[t]=Co(e,n,i);let o=e.definitions[t];fd(e,o,r,"ObjectPageSectionChartV2")}a(m9,"handleSectionChart");function sM(e,t,n,i,r,o){e.definitions[t]=Co(e,n,i);let s=e.definitions[t];fd(e,s,r,o||"CommonHeaderFacetSettings"),s[se.SchemaTag.annotationPath]=n.annotationPath,s[se.SchemaTag.isViewNode]=!0,s[se.SchemaTag.dataType]=Zs(n==null?void 0:n.target)}a(sM,"handleHeaderFacet");function h9(e,t,n){let i=e.definitions[t],r=i[se.SchemaTag.dataType]=Zs(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}a(h9,"addDataPointHeaderFacetDataType");function y9(e,t,n,i,r){e.definitions[t]=Co(e,n,i);let o=e.definitions[t];return fd(e,o,r,"ObjectPageSectionFormV2"),o[se.SchemaTag.annotationPath]=n.annotationPath,o[se.SchemaTag.isViewNode]=!0,o}a(y9,"handleFormSection");function v9(e,t,n){let i=new Map([[se.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[se.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[se.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[se.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[se.FacetBase.Form,"ObjectPageHeaderSectionForm"],[se.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[se.FacetBase.LineItem,"ObjectPageSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSectionChartV2"],[se.FacetBase.Address,"ObjectPageSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSectionContactV2"],[se.FacetBase.Form,"ObjectPageSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSectionFormV2"]]),o=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[se.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[se.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[se.FacetBase.Form,"ObjectPageSubSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?o.get(e):r.get(e)}a(v9,"getSectionType");function T9(e,t,n){let i=e.ID||t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${yo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}a(T9,"getReferenceKey");function lM(e,t,n,i,r,o=!1,s=!1){let l=t[n],u=v9(l.base,o,s),p=T9(l,n,u),g=`${u}<${p}>`;switch(p9(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{o=!s,g9(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)lM(e,l.facets,v,m,r,o,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{d9(e,p,r,l,t,u),gl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{m9(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=y9(r,g,l,p,u);tm(se.SectionType.Section,l,m,r,se.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{nu(l,p,i,r,se.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{nu(l,p,i,r,se.SectionType.Section,se.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{sM(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{sM(r,g,l,p,u),h9(r,g,l);break}default:i.properties[n]=Co(r,l,p)}}a(lM,"addSection");function cM(e,t,n,i,r,o=!1){if(e)for(let s in t)lM(i,t,s,n,r,!1,o)}a(cM,"addSectionsFromFacets");function fM(e,t,n){var g,m,v,A,E,O;let i=t.definitions[se.DefinitionName.Sections];i[se.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${yo.UIAnnotationTerms.Facets}`);let r=t.definitions[se.DefinitionName.HeaderSections];if(r[se.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${yo.UIAnnotationTerms.HeaderFacets}`),!n)return;let o=Rg((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),s=Fg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),l=o&&!!Object.keys(o).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let R in n){let U=n[R];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(U.entitySet)?(cM(l,o,i,e,t),cM(u,s,r,e,t,!0)):fM(e,t,U.pages)}let p=t.definitions.CustomSections;for(let R in p.properties)i.properties[R]=p.properties[R]}a(fM,"addSections");function E9(e,t,n){om(e,n),rm(e,n,t,l9,void 0,!0)}a(E9,"addHeader");function b9(e,t,n,i){let r=SR(t,n,i,void 0,!0);r&&c0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}a(b9,"addRelatedFacetKeysType");function od(e,t){var s;en();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[se.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let o=e.manifest[se.ManifestSection.generic].pages;return o?(E9(n,e,r),n.definitions[se.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},fM(e,n,o),b9(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[se.SchemaTag.isViewNode]=!0):delete n.properties[se.PropertyName.sections]),im(n,e,se.FioriElementsVersion.v2,f9,o),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Oo(n,s9),n):(ae(e.logger,{severity:se.LogSeverity.Error,message:J.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),n)}a(od,"generateObjectPageSchemaV2");var ti=te(le());var Tf=require("@sap-ux/vocabularies-types/vocabularies/UI");var S9=["filterBar","table","footer"],x9=ti.UIVOCABULARYALPHADOT.substring(1);function OP(e,t,n,i){$a(e,n,"QuickVariant"),o0(n,"QuickVariantX",t),a0(i,n,"QuickVariantX")}a(OP,"addEnumForVariantPaths");function P9(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Tf.UIAnnotationTerms.SelectionPresentationVariant,Tf.UIAnnotationTerms.SelectionVariant,Tf.UIAnnotationTerms.PresentationVariant];tu(e,r,i)}a(P9,"addEnumForFilterBarAnnotationPath");function C9(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let o=r.includes(Tf.UIAnnotationTerms.SelectionPresentationVariant),s=!o&&r.includes(Tf.UIAnnotationTerms.PresentationVariant);if(o||s){let l=r.replace(x9,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(ae(n,{severity:ti.LogSeverity.Warning,message:J.t("NOANNOTATIONFORPATH",{annotationPath:r})}),o&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}a(C9,"getPresentationVariantForLineItem");function I9(e,t,n){if(Yg(t,"annotationPath",n))return;let i=C9(e,t,n),r=(i==null?void 0:i.Visualizations)||[],o="";r.some(function(l){return o=eu("LineItem",l),o}),o=o||"LineItem";let s=e[o];return s||ae(n,{severity:ti.LogSeverity.Warning,message:J.t("NOLINEITEMFORPATH",{annotationPath:o})}),s}a(I9,"getLineItemAnnotation");function ad(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;uE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:o,uIAnnotations:s}=zg(e);if(s){let u=[],p=Ll(e.manifest[ti.ManifestSection.generic].pages,u);pl(n);let g=I9(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=fr(o.fullyQualifiedName,g.term,g.qualifier);uE.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=v})}fl(n,g,o);let m=s.SelectionFields;if(Qg(n,m,o),gl(n,o),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],JR(n.definitions.MultiEdit.properties.ignoredFields.items.enum,o),!p)return ae(e.logger,{severity:ti.LogSeverity.Error,message:J.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;ul(n,o,p,e.manifest,e.fragments),OP(o,e.entitySet,n,e.serviceAVT),P9(o,n,ti.DefinitionName.ListReportFilterBar),s0(o,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Oo(n,S9),n}a(ad,"generateListReportSchemaV2");var Jt=te(le());var O9=["filterBar","keyPerformanceIndicators","chart","table","footer"];function N9(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(Yg(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,o=a(function(O){let R=O+(r?"#"+r:"");return t[R]},"getAnnotationWithQualifier"),s=o("SelectionPresentationVariant"),l=s?s.PresentationVariant:o("PresentationVariant");if(s&&!l){let O=r?J.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):J.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return ae(n,{severity:Jt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||eu("LineItem",O),g=g||eu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m?0:1)+(v?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],R=J.t(O);ae(n,{severity:Jt.LogSeverity.Warning,message:R})}return{lineItemAnnotation:m,chartAnnotation:v}}a(N9,"getLineItemAndChartAnnotation");function L9(e,t){let n=e.definitions[Jt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Jt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}a(L9,"addChart");function sd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Jt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Jt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Jt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));r.properties.columns.$ref=`${$}${Jt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=r,n.properties[Jt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${$}${Jt.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${$}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,YR(n.definitions.TableColumnExtensionTypeV2.enum,[Jt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:s,uIAnnotations:l}=zg(e);if(l){pl(n);let u=[],p=_l(e.manifest[Jt.ManifestSection.generic].pages,u,e.logger),{lineItemAnnotation:g,chartAnnotation:m}=N9(p,l,e.logger);g&&GR.forEach(A=>{n.definitions[A][Jt.SchemaTag.annotationPath]=fr(s.fullyQualifiedName,g.term,g.qualifier)}),fl(n,g,s),m&&L9(n,m);let v=l.SelectionFields;if(Qg(n,v,s),gl(n,s),!p)return ae(e.logger,{severity:Jt.LogSeverity.Error,message:J.t("NOLR"),location:{path:Jt.MANIFESTPATH,range:[Jt.ManifestSection.generic]}}),n;ul(n,s,p,e.manifest,e.fragments),OP(s,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Oo(n,O9),n}a(sd,"generateAnalyticalListReportSchemaV2");function F9(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}a(F9,"getCardDefinitionNames");function R9(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},o=[];o=o.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},ca(o,s.CardModel);let l=F9(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}a(R9,"addModelsEnum");function uM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},R9(n,t),n}a(uM,"generateOverviewPageSchemaV2");var Ns=te(le());function NP(e,t,n,i,r,o){en();let s=xo(e,t),l={templateType:o,fioriElementsVersion:Ns.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=rd(r,l.serviceAVT),l.entitySet||ae(l.logger,{severity:Ns.LogSeverity.Error,message:J.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}a(NP,"prepareGenerationV2");function LP(e,t,n,i,r,o){let s=NP(n,o,i,r,t,Ns.TemplateType.ListReportObjectPageV2);return od(s,e)}a(LP,"generateObjectPageInterfaceV2");function FP(e,t,n,i,r,o){let s=NP(n,o,i,r,t,Ns.TemplateType.ListReportObjectPageV2);return ad(s,e)}a(FP,"generateListReportInterfaceV2");function RP(e,t,n,i,r,o){let s=NP(n,o,i,r,t,Ns.TemplateType.AnalyticalListPageV2);return sd(s,e)}a(RP,"generateAnalyticalListPageInterfaceV2");function cd(e,t){return uM(e,t)}a(cd,"generateOVPInterfaceV2");var we=te(le());var ud=a(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function pM(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}a(pM,"getClassesForSingleSection");function dM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],pM(n,i,t),dM(n,t)}}a(dM,"getSubsectionClasses");function _9(e,t,n){let i;for(let r in e.sections)i=t.sections[r],pM(i,r,n),dM(i,n)}a(_9,"getExportClassesForSections");function D9(e,t){let n=Ll(t.manifest[we.ManifestSection.generic].pages,e);if(!n){ae(t.logger,{severity:we.LogSeverity.Error,message:J.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){ae(t.logger,{severity:we.LogSeverity.Error,message:J.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}a(D9,"findV2Page");function _P(e,t){let n=Ug(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}a(_P,"calculateBaseId");function gM(e,t,n=!1){let i=ud(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let o=[],s=D9(o,e),l=new Ii,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:_P(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:o,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ls(p,u,[],[],e.jsonSchema)}return i}a(gM,"exportListReportPage");function mM(e,t,n=!1){let i=e.page.config,r=ud(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=[],s=_l(e.manifest[we.ManifestSection.generic].pages,o,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Ii,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:_P(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:o,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ls(p,u,[],[],e.jsonSchema)}return r}a(mM,"exportAnalyticalListPage");function hM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,o=ud(e.fragments);if(o.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=hc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return ae(e.logger,{severity:we.LogSeverity.Error,message:J.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),o;let u=new Ii,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&_9(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:o,appId:e.appId,baseId:_P(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ls(g,p,[],[],e.jsonSchema)}}return o}a(hM,"exportObjectPage");var yM=a(e=>{let t=ud();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ii,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ku(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),V9=a((e,t,n)=>{var s;let i=ud();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new fm,e);r.settings=Object.assign(new Ka,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ua(i.manifest,p,!1))}}let o=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return o&&e.pages&&vE(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function vM(e,t){if(e[we.SchemaType.ListReport])return gM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return hM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return yM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return V9(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return mM(e[we.SchemaType.AnalyticalListPage],t)}a(vM,"exportPageV2");function DP(e,t,n=!1){if(e[we.SchemaType.ListReport])return gM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return hM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return yM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return mM(e[we.SchemaType.AnalyticalListPage],t,n)}a(DP,"exportConfigEntityByPathV2");var Ef=te(le()),EM=require("@sap-ux/vocabularies-types/vocabularies/UI");function TM(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}a(TM,"updateDependencyLib");function Yy(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}a(Yy,"extractLastIdPart");function bM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return ae(i,{severity:Ef.LogSeverity.Error,message:J.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let o=r.lastIndexOf(Ef.PropertyName.sections),s=o>-1?Yy(r[o+1]):void 0,l=s?s.replace(/::/g,"/"):`@${EM.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Ef.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return VP(g),!0}a(bM,"createNewCustomColumn");var Ls=te(le());var SM=a((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),AM=a((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function M9(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}a(M9,"initializeRouting");function w9(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}a(w9,"setTargetOptions");function k9(e,t,n){let i="";return e.forEach((r,o)=>{let s="";t&&t.pageType!==Ls.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${o?o+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}a(k9,"calculateQueryPattern");function xM(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let o;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,o=n[s])}if(o){xM(e,t,n,s);return}}}a(xM,"fillNavigationParts");function U9(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),o=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=o}),t}a(U9,"fillParentKeys");function j9(e,t,n,i,r){for(let o in e.navigation){let s=e.navigation[o],l=t[s.route];if(w9(n,o,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=[];xM(u,o,t,r,l==null?void 0:l.contextPath);let p=U9(e.routePattern),g=k9(u,l,p);i.routes.push(SM(g,s.route,s.route))}}}a(j9,"handlePageNavigation");function $9(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}a($9,"removeDeletedPages");function B9(e,t){var n,i,r,o;e.contextPath?(t.options||(t.options=AM({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=AM({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(o=(r=t.options)==null?void 0:r.settings)==null||delete o.entitySet}a(B9,"transferEntitySetandContextPath");function H9(e,t,n){let i=e.routes.find(r=>r.name===t);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}a(H9,"updateRouteLayout");function W9(e,t,n,i){return e.pageType&&![Ls.PageTypeV4.CustomPage,Ls.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ls.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}a(W9,"fillTarget");function PM(e,t,n){var r,o;let i=M9(n[Ls.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.name===e)&&i.routes.push(SM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=W9(u,l,s,t),B9(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(o=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&o.navigation&&(l.options.settings.navigation={}),j9(u,t,l,i,s),H9(i,s,u),i.targets[s]=l}return $9(i,t),i}a(PM,"transformRoutingV4");var bi=te(le());var CM=[bi.FlexibleColumnLayoutAggregations.BeginColumnPages,bi.FlexibleColumnLayoutAggregations.MidColumnPages,bi.FlexibleColumnLayoutAggregations.EndColumnPages],IM=a((e,t,n,i=[],r=0)=>{var p;let o=e.routing.routes.find(g=>g.name===n);if(!o)return;typeof o.target=="string"&&(o.target=r<=2?[...i,o.target]:[o.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:CM[r]?s.controlAggregation=CM[r]:s.controlAggregation=bi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=o.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)IM(e,t,l.navigation[g].route,o.target,r)}},"applyFCLRouting"),G9=a((e,t)=>{e.routing.config.routerClass=bi.v4.FIORI_FCL_ROUTER_CLASS,IM(e,t,t.home);let n={viewName:bi.FIORI_FCL_ROOT_VIEW_NAME,type:bi.ViewTypes.XML,async:!0,id:bi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,TM(e,bi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),K9=a(e=>{if(e.rootView&&e.rootView.viewName===bi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,e.routing){e.routing.config&&e.routing.config.routerClass===bi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass;let t=e.routing.routes||[];for(let n of t)n.target&&Array.isArray(n.target)&&(n.target=n.name)}},"disableFcl"),OM=a((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?G9(e,t):K9(e)},"updateFcl");var oe=te(le()),pd=require("@sap-ux/vocabularies-types/vocabularies/UI");var NM=te(Gs()),Jy=te(le());function X9(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}a(X9,"isExportValueEquals");function Q9(e,t){var s;let{element:n,schema:i,parent:r,contextPath:o}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===Jy.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=o[o.length-1];l&&r.element.elements.splice(l.index,1)}}a(Q9,"deleteProperty");function LM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:o,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Lc({fullSchema:o,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},LM)}else X9((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(Q9(e,i),l=!0);return l}a(LM,"exportProperty");function FM(e,t,n,i,r,o){let s=Jl(e.file,!1,o);if(s){let l=hy(s);if(Lc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},LM)){let p=(0,NM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:Jy.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}a(FM,"getExtensionExportResult");var RM=a((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:o,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=us(n||[],o.name,i,s)),u&&FM(u,l,o.config,r,"view",s),l},"exportFPMCustomPageConfig"),_M=a((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:o,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=bc(u,s[0]);p=Ac(o,m,u,g,t)}if(p){let m=Zl(t),A={...i.definitions[m],definitions:i.definitions};FM(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var DM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],q9=[...DM,"views","initialLoad","template"],wP=a(e=>{let t=oe.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function z9(e,t,n){var s,l,u,p;let i=`@${pd.UIAnnotationTerms.LineItem}`,r=`@${pd.UIAnnotationTerms.LineItem}`,o=(s=t.appSchema.definitions[oe.DefinitionName.TableSPV])==null?void 0:s[oe.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[oe.DefinitionName.ALPTable])==null?void 0:u[oe.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===oe.PropertyName.table&&o){let g=o.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}a(z9,"determineTargetAnnotationOfTable");function Y9(e,t,n){var o,s;let i,r;if(e.length>1){let l=(o=t.appSchema.definitions[oe.DefinitionName.ALPChart])==null?void 0:o[oe.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}a(Y9,"determineTargetAnnotationOfChart");function J9(e,t,n,i,r){var o;if(e.length===3)t=n=i[oe.SchemaTag.annotationPath]&&i[oe.SchemaTag.annotationPath].substr(i[oe.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(o=i.$ref)==null?void 0:o.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[oe.SchemaTag.annotationPath])&&l[oe.SchemaTag.annotationPath].substr(l[oe.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}a(J9,"determineTargetAnnotationBasedOnParentView");function Z9(e,t){var o;let n,i,r=(o=e.appSchema.definitions.MultiTableModeV4)==null?void 0:o.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=J9(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[oe.SchemaTag.annotationPath]&&l[oe.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[oe.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[oe.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}a(Z9,"determineTargetAnnotationOfView");function ez(e,t,n){let i,r;return e[2].split(`@${oe.UIVOCABULARY}`)[1]?n&&n.indexOf(oe.FacetTitlePrefix)>-1?i=r=n.split(oe.FacetTitlePrefix)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}a(ez,"determineTargetAnnotationOfHeaderSections");function tz(e,t){let n=e[1].split(`@${oe.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let o=Yy(e[1]);r=o&&o.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}a(tz,"determineTargetAnnotationOfSections");function nz(e,t,n){let i,r,o=!1;return e[0]===oe.PropertyName.table&&e[1]!==oe.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=z9(e,t,n):e[0]===oe.PropertyName.chart&&t.templateType===oe.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Y9(e,t,n):e[0]===oe.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=tz(e,o):e[1]===oe.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=ez(e,o,t.title):e[1]===oe.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Z9(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:o}}a(nz,"determineTargetAnnotation");function iz(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([oe.PropertyName.actions,oe.PropertyName.columns,oe.PropertyName.views,oe.PropertyName.visualFilters,oe.PropertyName.selectionFields].includes(oe.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}a(iz,"determineKeyForSyncRule");function rz(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}a(rz,"createNewObjectInManifest");function VM(e,t,n){var i,r;t.type!=="array"&&((i=n==null?void 0:n.targetDefinition)==null?void 0:i.type)==="object"&&((r=n==null?void 0:n.targetDefinition)!=null&&r.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&rz(e):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey])}a(VM,"transferPropertyToManifest");function oz(e,t,n,i,r,o,s){var u,p,g;let l=(u=n.appSchema.definitions.MultiTableModeV4)==null?void 0:u.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((p=n.config.table)!=null&&p.views)||e[1]==="views"&&((g=n.config.table)!=null&&g.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&DM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&q9.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config)}else i[t.manifestKey]!==void 0&&delete i[t.manifestKey];Ua(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,o,s)}a(oz,"deleteFromManifest");function az(e,t,n,i){let r=[...e],o=e.indexOf("subsections");for(;o>-1;)e.splice(o-1,2),o=e.indexOf("subsections");let{targetAnnotationEncoded:s,targetAnnotation:l,custom:u}=nz(e,n.transferParameters,n.configObject),p=iz(e),g=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,s,p,l,n.configObject,r),m=Po(n.transferParameters.exportResults.manifest,g,l,u?void 0:s);if(m){let v={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:p};n.configObject[n.key]!==void 0?VM(v,n.propertyDefinition,i):oz(e,v,n.transferParameters,m,g,l,s)}}a(az,"exportManifestChange");function sz(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);_M(e.transferParameters,r,n.configObject)}else i.manifest&&az(t,i,e,n)}a(sz,"evaluateExportRule");function cz(e,t,n,i,r){let o=[],s=!1;e.propertyDefinition.$ref&&t?o.push(t.configObject):e.propertyDefinition.anyOf?o.push(n):e.propertyDefinition.type==="array"?(o=n,s=!0):o.push(n),e.index=0;for(let l of o)e.transferParameters.title=t==null?void 0:t.title,kP(e.transferParameters,l,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}a(cz,"transferSubObject");function lz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=pt(e.pageNameArray)+"/views",o=Po(e.exportResults.manifest,r);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}a(lz,"createALPTableView");function fz(e){var o,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=pt(e.transferParameters.pageNameArray)+"/views",r=Po(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(o=e.configObject)==null?void 0:o.table)==null?void 0:s.annotationPath)||pd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}a(fz,"createALPChartView");function uz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=pt(e.pageNameArray),r=Po(e.exportResults.manifest,i),o=`@${pd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[o]?r.controlConfiguration[o].filterFields||(r.controlConfiguration[o].filterFields={},n=!0):(r.controlConfiguration[o]={filterFields:{}},n=!0):(r.controlConfiguration={[o]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[o].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}a(uz,"createVisualFilters");function pz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,o=pt(t.pageNameArray)+"/views",s=Po(t.exportResults.manifest,o),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}a(pz,"createLRTableView");function dz(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(oe.DefinitionName.CustomColumn))i=bM(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===oe.DefinitionName.ALPChartView&&e.key===oe.PropertyName.chart&&e.configObject)return fz(e);if(t===oe.DefinitionName.ALPTableView&&e.key===oe.PropertyName.table&&e.configObject)return lz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(oe.DefinitionName.LRTableView)||t.startsWith(oe.DefinitionName.LRChartView))?i=pz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(oe.DefinitionName.VisualFilters)&&(i=uz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}a(dz,"createNewElement");function gz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}a(gz,"isDefinitionTraversable");function MP(e,t,n,i=!1){var g;let r=e.configObject[e.key],o=kg(e.configObject,e.key),s=Io(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=dz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=o?[...t,o]:[...t,e.key];if(l||sz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||gz(e.propertyDefinition)&&s.configObject)&&!u){let m=o?[...n,o]:n;cz(e,s,r,p,m)}}a(MP,"transferSortedListEntry");function mz(e,t,n,i,r){let o=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return o;s.sort((l,u)=>l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],MP(e,i,r),o=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,MP(e,i,r),o=!0)}),e.index++})}return o}a(mz,"transferConfigEntriesWithAnyOfDefinitions");function hz(e,t,n,i){let r=aE(e.appSchema,t,i);if(r){n||(n=[]);for(let o of r)n.some(s=>s[0]===o)||n.push([o,t])}}a(hz,"mergeEntriesForInsert");function yz(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][oe.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][oe.SchemaTag.propertyIndex]-r[1][oe.SchemaTag.propertyIndex])),t}a(yz,"sortProperties");function vz(e,t,n,i,r,o){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=mz(n,p,i,r,o)}return s}a(vz,"checkIfAnyOfDefinition");function kP(e,t,n,i,r,o){if(!(o!=null&&o.properties)&&!(o!=null&&o.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=o.additionalProperties,p=vz(u,e,l,o,n,i),g=yz(o.properties);u!=null&&u.$ref&&hz(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Jf(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,MP(l,n,i,p),m[1].$ref&&s++)})}a(kP,"transferManifestEntriesAndFlexChange");function MM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(oe.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}a(MM,"getClassesForSingleSection");function wM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],MM(n,i,t),wM(n,t)}}a(wM,"getSubsectionClasses");function Tz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],MM(e,r,n),wM(i,n)}a(Tz,"getExportClassesForSections");function kM(e,t){let n=Ug(e);return`${t.appId}::${n.id}::${t.page.name}--`}a(kM,"calculateBaseId");var UM=a((e,t,n=!1)=>{var l;let i=wP(e.manifest),r=new Ca,o=r.createPageInstance(oe.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[oe.PropertyName.sections]&&Tz(e.page.config,o,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:kM(o,e),appSchema:e.jsonSchema,config:o,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:oe.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:oe.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return kP(s,o,[],[],[],e.jsonSchema),i},"exportObjectPage"),Ez=a((e,t,n,i,r,o,s=!1)=>{var E,O;let l=wP(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[oe.PropertyName.annotationPath]?oe.DefinitionName.ALPTableView:oe.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=oe.DefinitionName.LineItems;u.definitions[oe.DefinitionName.TableSPV]&&(m=u.definitions[oe.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let v=u.definitions[`${oe.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&v)for(let R in v.properties)g.toolBar.actions[R]=t.createInstance(i,oe.DefinitionName.ToolBarAction,g.toolBar.actions[R]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:kM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:oe.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:o,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return kP(A,n,[],[],[],u),l},"exportListPage"),UP=a((e,t,n,i=!1)=>{let r=new Ca,o=r.createPageInstance(oe.PageTypeV2.ListReport,e.page.config);return Ez(e,r,o,oe.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),jM=a((e,t,n=!1)=>UP(e,t,oe.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),bz=a((e,t,n,i,r,o)=>{let s=Po(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=eE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=o.definitions.AppSettings.properties[n];VM(u,p,{}),!l&&Object.keys(s).length&&AR(r,t,s)},"applyExportRule"),Az=a((e,t,n)=>{var o;let i=wP(t),r=Object.assign(new Ey,e);r.settings=Object.assign(new ef,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)bz(l,u,s,e,i.manifest,n);else{let p=Po(i.manifest,u);((o=e.settings)==null?void 0:o[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ua(i.manifest,u,!1))}}}return i.manifest[oe.ManifestSection.ui5].routing=PM(e.home,e.pages,i.manifest),OM(i.manifest[oe.ManifestSection.ui5],e),i},"exportApplicationV4"),$M=a((e,t)=>{if(e[oe.SchemaType.ListReport])return UP(e[oe.SchemaType.ListReport],t,oe.TemplateType.ListReportObjectPageV4);if(e[oe.SchemaType.ObjectPage])return UM(e[oe.SchemaType.ObjectPage],t);if(e[oe.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[oe.SchemaType.Application];return Az(n,i,r)}else{if(e[oe.SchemaType.AnalyticalListPage])return jM(e[oe.SchemaType.AnalyticalListPage],t);if(e[oe.SchemaType.FPMCustomPage])return RM(e[oe.SchemaType.FPMCustomPage],oe.defaultExportResult)}},"exportPageV4"),jP=a((e,t,n=!1)=>{if(e[oe.SchemaType.ListReport])return UP(e[oe.SchemaType.ListReport],t,oe.TemplateType.ListReportObjectPageV4,n);if(e[oe.SchemaType.ObjectPage])return UM(e[oe.SchemaType.ObjectPage],t,n);if(e[oe.SchemaType.AnalyticalListPage])return jM(e[oe.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var An=require("@sap-ux/fe-fpm-writer");var Sz=new Map([[de.CustomExtensionType.CustomPage,An.generateCustomPage],[de.CustomExtensionType.CustomColumn,An.generateCustomColumn],[de.CustomExtensionType.CustomSection,An.generateCustomSection],[de.CustomExtensionType.ObjectPage,An.generateObjectPage],[de.CustomExtensionType.CustomAction,An.generateCustomAction],[de.CustomExtensionType.CustomView,An.generateCustomView],[de.CustomExtensionType.ControllerExtension,An.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,An.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,An.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,An.generateCustomHeaderSection]]);function xz(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=FP(i,r,o,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=LP(i,r,o,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=cd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=RP(i,r,o,s,l,u)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=Ty(de.TemplateType.ListReportObjectPageV4,i,r,o,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=CS(i,r,o,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=Ty(de.TemplateType.AnalyticalListPageV4,i,r,o,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=IS(de.TemplateType.FreestylePageV4,i,o,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:o,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=OS(i,r,o,s,u,e.featureToggles,l)}}return t}a(xz,"generateSchema");function Pz(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=vM(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=$M(i,n)}return t}a(Pz,"exportConfig");function Cz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=DP(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=jP(i,n)}return t}a(Cz,"exportConfigEntityByPath");function Iz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=DP(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=jP(i,n,!0)}return t}a(Iz,"deleteConfigEntityByPath");function Oz(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=mh(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=vh(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=bh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=hh(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Mc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=Qy(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Mc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=Ky(n[de.SchemaType.FPMCustomPage]))}return t}a(Oz,"importConfig");async function Nz(e){return IP(e)}a(Nz,"importProject");async function Lz(e){return CP(e)}a(Lz,"importProjectSchema");function Fz(){return{version:"15",fpmWriter:"14"}}a(Fz,"getApiVersion");function VP(e){let t=Sz.get(e.customExtension);if(t&&typeof t=="function")return(0,An.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}a(VP,"generateCustomExtension");var Kr=require("path"),Fs=require("fs");var bf=a(async e=>new Promise((t,n)=>{(0,Fs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),Rz=a(async e=>JSON.parse(await bf(e)),"readJSON"),$P=a(async e=>new Promise((t,n)=>{(0,Fs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),_z=a(async e=>new Promise(t=>{(0,Fs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),HM=a(async e=>new Promise(t=>{(0,Fs.exists)(e,n=>{t(n)})}),"resourceExists"),Dz=a(async e=>Rz((0,Kr.join)(e,"manifest.json")),"getManifest"),WM=a(async e=>{let t=[],n=(0,Kr.join)(e,"changes");if(!await HM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await $P(n);for(let o of r)i.some(s=>o.endsWith(s))&&t.push(await bf((0,Kr.join)(n,o)));return t},"getChanges"),BM=a(async(e,t="fragments")=>{let n=[],i=(0,Kr.join)(e,"ext",t);if(!await HM(i))return n;let r=await $P(i);for(let o of r){let s=(0,Kr.join)(i,o),l=await bf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),Vz=a(async(e,t)=>{var r,o,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(o=i==null?void 0:i.mainService)==null?void 0:o.settings)!=null&&s.localUri){let v=(0,Kr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await bf(v)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let v of i.mainService.settings.annotations)if((g=(p=i[v])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,Kr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await bf(A)})}}if(n.length===0)for(let v in i){let A=i[v];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,Kr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await bf(E)})}}return n},"getAnnotations"),Mz=a(async e=>{let t=(0,Kr.basename)(e),n=(0,Kr.join)(e,"webapp"),i=await Dz(n),r=await Vz(i,n),o=await WM(n),s=await BM(n),l=await BM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:s,views:l}},"getProject");Ws(Ni,te(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
295
295
  /*! Bundled license information:
296
296
 
297
297
  sax/lib/sax.js: