@sap/ux-specification 1.124.7 → 1.124.9
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.
- package/CHANGELOG.md +58 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +67 -67
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v4/BuildingBlocksConfig.json +239 -202
- package/dist/specification/package.json +3 -3
- package/dist/specification/scripts/macros/corrections.d.ts +1 -0
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +17 -1
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/types.d.ts +2 -0
- package/dist/specification/scripts/macros/types.d.ts.map +1 -1
- package/dist/specification/src/api.js +2 -2
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +3 -1
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +30 -6
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +12 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +1 -0
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/manifest.js +2 -0
- package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +7 -1
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/package.json +3 -3
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var BB=Object.create;var tl=Object.defineProperty;var NO=Object.getOwnPropertyDescriptor;var HB=Object.getOwnPropertyNames;var GB=Object.getPrototypeOf,WB=Object.prototype.hasOwnProperty;var o=(e,t)=>tl(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ks=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},ag=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of HB(t))!WB.call(e,r)&&r!==n&&tl(e,r,{get:()=>t[r],enumerable:!(i=NO(t,r))||i.enumerable});return e},Xs=(e,t,n)=>(ag(e,t,"default"),n&&ag(n,t,"default")),ne=(e,t,n)=>(n=e!=null?BB(GB(e)):{},ag(t||!e||!e.__esModule?tl(n,"default",{value:e,enumerable:!0}):n,e)),sg=e=>ag(tl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?NO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&tl(t,n,r),r};var oL=Ye((mz,rL)=>{var TT=Object.defineProperty,KB=Object.getOwnPropertyDescriptor,XB=Object.getOwnPropertyNames,QB=Object.prototype.hasOwnProperty,bT=o((e,t)=>{for(var n in t)TT(e,n,{get:t[n],enumerable:!0})},"C"),qB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of XB(t))!QB.call(e,r)&&r!==n&&TT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=KB(t,r))||i.enumerable});return e},"$e"),YB=o(e=>qB(TT({},"__esModule",{value:!0}),e),"Ze"),LO={};bT(LO,{ACTIONTITLEPREFIX:o(()=>eH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>MO,"ALPViewType"),ActionType:o(()=>jO,"ActionType"),ArtifactType:o(()=>UO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>nH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>WO,"ChangeIndicator"),ChartColor:o(()=>sN,"ChartColor"),ColorPaletteDefinitionType:o(()=>oN,"ColorPaletteDefinitionType"),ControlType:o(()=>$O,"ControlType"),CustomExtensionType:o(()=>fN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>uH,"DATESETTINGSPATH"),DataSourceType:o(()=>iN,"DataSourceType"),DefinitionName:o(()=>QO,"DefinitionName"),DirName:o(()=>HO,"DirName"),DraftDiscardEnabledSettings:o(()=>ZO,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>wO,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>ZB,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>mH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>gH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>pH,"FRAGMENTNAMEPART"),FacetBase:o(()=>KO,"FacetBase"),Features:o(()=>uN,"Features"),FileName:o(()=>GO,"FileName"),FioriElementsVersion:o(()=>RO,"FioriElementsVersion"),FlexChangeLayer:o(()=>_O,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>nN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>DO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>dH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>cN,"LogSeverity"),MANIFESTPATH:o(()=>iH,"MANIFESTPATH"),MacrosPropertyType:o(()=>JO,"MacrosPropertyType"),ManifestSection:o(()=>rN,"ManifestSection"),OdataVersion:o(()=>FO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>JB,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>zB,"PageType"),PageTypeV2:o(()=>ET,"PageTypeV2"),PageTypeV4:o(()=>AT,"PageTypeV4"),PropertyName:o(()=>qO,"PropertyName"),QUICKVARPATH:o(()=>lH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>fH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>yH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>hH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>zO,"SchemaKeyName"),SchemaTag:o(()=>YO,"SchemaTag"),SchemaType:o(()=>VO,"SchemaType"),SectionType:o(()=>kO,"SectionType"),StatePreservationMode:o(()=>tN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>eN,"TableColumnVerticalAlignment"),TemplateType:o(()=>lN,"TemplateType"),UIVOCABULARY:o(()=>aH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>cH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>sH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>oH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>rH,"VOCWITHSLASH"),ViewTemplateType:o(()=>XO,"ViewTemplateType"),ViewTypes:o(()=>aN,"ViewTypes"),Visualization:o(()=>BO,"Visualization"),defaultExportResult:o(()=>tH,"defaultExportResult"),logSeverityLabel:o(()=>vH,"logSeverityLabel"),v2:o(()=>pN,"v2"),v4:o(()=>MN,"v4")});rL.exports=YB(LO);var ET=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ET||{}),AT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(AT||{}),zB={...ET,...AT},JB=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"]]),RO=(e=>(e.v2="v2",e.v4="v4",e))(RO||{}),FO=(e=>(e.v2="v2",e.v4="v4",e))(FO||{}),DO=(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))(DO||{}),_O=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(_O||{}),VO=(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))(VO||{}),wO=(e=>(e.flex="flex",e.manifest="manifest",e))(wO||{}),MO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(MO||{}),kO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(kO||{}),UO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(UO||{}),jO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(jO||{}),$O=(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))($O||{}),BO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(BO||{}),HO=(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))(HO||{}),GO=(e=>(e.App="app.json",e))(GO||{}),ZB="Facet ID: ",eH="Action ID: ",WO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(WO||{}),tH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},KO=(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))(KO||{}),nH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",XO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(XO||{}),QO=(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.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(QO||{}),qO=(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))(qO||{}),YO=(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))(YO||{}),zO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(zO||{}),iH="webapp/manifest.json",rH="/@com.sap.vocabularies",oH="::@com.sap.vocabularies",aH="com.sap.vocabularies.UI.v1",sH="com.sap.vocabularies.UI.v1.",cH="@com.sap.vocabularies.UI.v1.",lH="/quickVariantSelection",fH="/quickVariantSelectionX",uH="/filterSettings/dateSettings",pH=".fragment.",JO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(JO||{}),ZO=(e=>(e.restricted="restricted",e))(ZO||{}),eN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(eN||{}),tN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(tN||{}),nN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(nN||{}),iN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(iN||{}),rN=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(rN||{}),dH="sap.ui.generic.app/settings",oN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(oN||{}),gH="sap.fe.templates.RootContainer.view.Fcl",mH="appRootView",aN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(aN||{}),hH="sap.ui.core.mvc.View",yH="sap.ui.core.Fragment",sN=(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))(sN||{}),cN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(cN||{}),vH={error:"Error",warning:"Warning",info:"Information"},lN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(lN||{}),fN=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(fN||{}),uN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(uN||{}),pN={};bT(pN,{CardSettingsType:o(()=>mN,"CardSettingsType"),CardTemplateType:o(()=>gN,"CardTemplateType"),ChartCardType:o(()=>dN,"ChartCardType"),ChartType:o(()=>FN,"ChartType"),ContainerLayoutType:o(()=>wN,"ContainerLayoutType"),CreateMode:o(()=>VN,"CreateMode"),DateRangeType:o(()=>EN,"DateRangeType"),DefaultContentView:o(()=>NN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>AN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>LN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>_N,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>EH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>PH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>SH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>AH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>SN,"FilterPathType"),IgnoredFieldsType:o(()=>ON,"IgnoredFieldsType"),LinkListFlavorType:o(()=>bN,"LinkListFlavorType"),ListFlavorType:o(()=>yN,"ListFlavorType"),ListTypeType:o(()=>vN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>RN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>hN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>xH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>CH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>NH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>OH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>IH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>DN,"SectionPosition"),SortOrderType:o(()=>TN,"SortOrderType"),Strategy:o(()=>IN,"Strategy"),TableColumnExtensionTypeV2:o(()=>xN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>CN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>bH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>TH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>PN,"customColumnViewTypes")});var dN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(dN||{}),gN=(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))(gN||{}),TH={"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"},bH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},mN=(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))(mN||{}),hN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(hN||{}),yN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(yN||{}),vN=(e=>(e.extended="extended",e.condensed="condensed",e))(vN||{}),TN=(e=>(e.ascending="ascending",e.descending="descending",e))(TN||{}),bN=(e=>(e.standard="standard",e.carousel="carousel",e))(bN||{}),EN=(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))(EN||{}),AN=(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))(AN||{}),SN=(e=>(e.key="key",e.catgory="category",e))(SN||{}),PN=(e=>(e.XML="XML",e))(PN||{}),CN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(CN||{}),xN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(xN||{}),IN=(e=>(e.extension="extension",e))(IN||{}),ON=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(ON||{}),NN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(NN||{}),LN=(e=>(e.visual="visual",e.compact="compact",e))(LN||{}),RN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(RN||{}),FN=(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))(FN||{}),DN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(DN||{}),_N=(e=>(e.XML="XML",e))(_N||{}),VN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(VN||{}),EH="sap.suite.ui.generic.template",AH="sap.suite.ui.generic.template.ObjectPage",SH="sap.suite.ui.generic.template.ListReport",PH="sap.suite.ui.generic.template.AnalyticalListPage",CH="sap.ui.viewExtensions",xH="sap.ui.controllerExtensions",IH="sap.suite.ui.generic.template.ObjectPage.view.Details",OH="sap.suite.ui.generic.template.ListReport.view.ListReport",NH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",wN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(wN||{}),MN={};bT(MN,{ActionPlacement:o(()=>kN,"ActionPlacement"),Availability:o(()=>ZN,"Availability"),CloudDevAdaptationStatus:o(()=>iL,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>qN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>BN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>LH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>_H,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>RH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>DH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>FH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>wH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>WN,"FilterFieldPlacement"),HorizontalAlign:o(()=>eL,"HorizontalAlign"),InitialLayoutType:o(()=>GN,"InitialLayoutType"),InitialLoadType:o(()=>$N,"InitialLoadType"),LayoutType:o(()=>HN,"LayoutType"),Placement:o(()=>JN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>kH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>MH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>VH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>jH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>UH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>XN,"SectionLayoutType"),SectionPosition:o(()=>QN,"SectionPosition"),SectionPositionV4:o(()=>zN,"SectionPositionV4"),SelectType:o(()=>KN,"SelectType"),SelectionMode:o(()=>UN,"SelectionMode"),TableCreationModeType:o(()=>YN,"TableCreationModeType"),TableTypeV4:o(()=>jN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>nL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>tL,"VariantManagementTypeObjectPage")});var kN=(e=>(e.After="After",e.Before="Before",e))(kN||{}),UN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(UN||{}),jN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(jN||{}),$N=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))($N||{}),BN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(BN||{}),HN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(HN||{}),GN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(GN||{}),WN=(e=>(e.After="After",e.Before="Before",e))(WN||{}),KN=(e=>(e.single="single",e.multi="multi",e))(KN||{}),XN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(XN||{}),QN=(e=>(e.After="After",e.Before="Before",e))(QN||{}),qN=(e=>(e.XML="XML",e))(qN||{}),YN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(YN||{}),LH="sap.fe.templates",RH="sap.fe.core.fpm",FH="sap.fe.templates.ObjectPage",DH="sap.fe.templates.ListReport",_H="sap.fe.templates.AnalyticalListPage",VH="XMLFragment",zN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(zN||{}),wH="sap.f.routing.Router",MH="sap.f",kH="sap.ui.controllerExtensions",UH="sap.fe.templates.ObjectPage.ObjectPageController",jH="sap.fe.templates.ListReport.ListReportController",JN=(e=>(e.After="After",e.Before="Before",e))(JN||{}),ZN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(ZN||{}),eL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(eL||{}),tL=(e=>(e.None="None",e.Control="Control",e))(tL||{}),nL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(nL||{}),iL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(iL||{})});var fL=Ye(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Features=kr.CustomExtensionType=kr.TemplateType=kr.logSeverityLabel=kr.LogSeverity=void 0;var aL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(aL||(kr.LogSeverity=aL={}));kr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var sL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(sL||(kr.TemplateType=sL={}));var cL;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(cL||(kr.CustomExtensionType=cL={}));var lL;(function(e){e.BuildingBlocks="BuildingBlocks"})(lL||(kr.Features=lL={}))});var ML=Ye((vz,wL)=>{var ST=Object.defineProperty,$H=Object.getOwnPropertyDescriptor,BH=Object.getOwnPropertyNames,HH=Object.prototype.hasOwnProperty,GH=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"h"),WH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of BH(t))!HH.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=$H(t,r))||i.enumerable});return e},"M"),KH=o(e=>WH(ST({},"__esModule",{value:!0}),e),"Q"),uL={};GH(uL,{CardSettingsType:o(()=>gL,"CardSettingsType"),CardTemplateType:o(()=>dL,"CardTemplateType"),ChartCardType:o(()=>pL,"ChartCardType"),ChartType:o(()=>RL,"ChartType"),ContainerLayoutType:o(()=>VL,"ContainerLayoutType"),CreateMode:o(()=>_L,"CreateMode"),DateRangeType:o(()=>bL,"DateRangeType"),DefaultContentView:o(()=>OL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>EL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>NL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>DL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>qH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>JH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>zH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>YH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>AL,"FilterPathType"),IgnoredFieldsType:o(()=>IL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>TL,"LinkListFlavorType"),ListFlavorType:o(()=>hL,"ListFlavorType"),ListTypeType:o(()=>yL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>LL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>mL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>e5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>ZH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>i5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>n5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>t5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>FL,"SectionPosition"),SortOrderType:o(()=>vL,"SortOrderType"),Strategy:o(()=>xL,"Strategy"),TableColumnExtensionTypeV2:o(()=>CL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>PL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>QH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>XH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>SL,"customColumnViewTypes")});wL.exports=KH(uL);var pL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(pL||{}),dL=(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))(dL||{}),XH={"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"},QH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},gL=(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))(gL||{}),mL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(mL||{}),hL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(hL||{}),yL=(e=>(e.extended="extended",e.condensed="condensed",e))(yL||{}),vL=(e=>(e.ascending="ascending",e.descending="descending",e))(vL||{}),TL=(e=>(e.standard="standard",e.carousel="carousel",e))(TL||{}),bL=(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))(bL||{}),EL=(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))(EL||{}),AL=(e=>(e.key="key",e.catgory="category",e))(AL||{}),SL=(e=>(e.XML="XML",e))(SL||{}),PL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(PL||{}),CL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(CL||{}),xL=(e=>(e.extension="extension",e))(xL||{}),IL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(IL||{}),OL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(OL||{}),NL=(e=>(e.visual="visual",e.compact="compact",e))(NL||{}),LL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(LL||{}),RL=(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))(RL||{}),FL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(FL||{}),DL=(e=>(e.XML="XML",e))(DL||{}),_L=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(_L||{}),qH="sap.suite.ui.generic.template",YH="sap.suite.ui.generic.template.ObjectPage",zH="sap.suite.ui.generic.template.ListReport",JH="sap.suite.ui.generic.template.AnalyticalListPage",ZH="sap.ui.viewExtensions",e5="sap.ui.controllerExtensions",t5="sap.suite.ui.generic.template.ObjectPage.view.Details",n5="sap.suite.ui.generic.template.ListReport.view.ListReport",i5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",VL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(VL||{})});var aR=Ye((bz,oR)=>{var PT=Object.defineProperty,r5=Object.getOwnPropertyDescriptor,o5=Object.getOwnPropertyNames,a5=Object.prototype.hasOwnProperty,s5=o((e,t)=>{for(var n in t)PT(e,n,{get:t[n],enumerable:!0})},"R"),c5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of o5(t))!a5.call(e,r)&&r!==n&&PT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=r5(t,r))||i.enumerable});return e},"h"),l5=o(e=>c5(PT({},"__esModule",{value:!0}),e),"j"),kL={};s5(kL,{ActionPlacement:o(()=>UL,"ActionPlacement"),Availability:o(()=>eR,"Availability"),CloudDevAdaptationStatus:o(()=>rR,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>YL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>HL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>f5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>g5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>u5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>d5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>p5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>h5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>KL,"FilterFieldPlacement"),HorizontalAlign:o(()=>tR,"HorizontalAlign"),InitialLayoutType:o(()=>WL,"InitialLayoutType"),InitialLoadType:o(()=>BL,"InitialLoadType"),LayoutType:o(()=>GL,"LayoutType"),Placement:o(()=>ZL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>v5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>y5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>m5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>b5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>T5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>QL,"SectionLayoutType"),SectionPosition:o(()=>qL,"SectionPosition"),SectionPositionV4:o(()=>JL,"SectionPositionV4"),SelectType:o(()=>XL,"SelectType"),SelectionMode:o(()=>jL,"SelectionMode"),TableCreationModeType:o(()=>zL,"TableCreationModeType"),TableTypeV4:o(()=>$L,"TableTypeV4"),VariantManagementTypeListReport:o(()=>iR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>nR,"VariantManagementTypeObjectPage")});oR.exports=l5(kL);var UL=(e=>(e.After="After",e.Before="Before",e))(UL||{}),jL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(jL||{}),$L=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($L||{}),BL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(BL||{}),HL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(HL||{}),GL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(GL||{}),WL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(WL||{}),KL=(e=>(e.After="After",e.Before="Before",e))(KL||{}),XL=(e=>(e.single="single",e.multi="multi",e))(XL||{}),QL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(QL||{}),qL=(e=>(e.After="After",e.Before="Before",e))(qL||{}),YL=(e=>(e.XML="XML",e))(YL||{}),zL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(zL||{}),f5="sap.fe.templates",u5="sap.fe.core.fpm",p5="sap.fe.templates.ObjectPage",d5="sap.fe.templates.ListReport",g5="sap.fe.templates.AnalyticalListPage",m5="XMLFragment",JL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(JL||{}),h5="sap.f.routing.Router",y5="sap.f",v5="sap.ui.controllerExtensions",T5="sap.fe.templates.ObjectPage.ObjectPageController",b5="sap.fe.templates.ListReport.ListReportController",ZL=(e=>(e.After="After",e.Before="Before",e))(ZL||{}),eR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(eR||{}),tR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(tR||{}),nR=(e=>(e.None="None",e.Control="Control",e))(nR||{}),iR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(iR||{}),rR=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(rR||{})});var le=Ye(bi=>{"use strict";var sR=bi&&bi.__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:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),E5=bi&&bi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cR=bi&&bi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&sR(t,e,n)},lR=bi&&bi.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&sR(n,t,i[r]);return E5(n,t),n}}();Object.defineProperty(bi,"__esModule",{value:!0});bi.v4=bi.v2=void 0;cR(oL(),bi);cR(fL(),bi);bi.v2=lR(ML());bi.v4=lR(aR())});var BT=Ye((jz,SR)=>{"use strict";var j5=o(function(t){return $5(t)&&!B5(t)},"isMergeableObject");function $5(e){return!!e&&typeof e=="object"}o($5,"isNonNullObject");function B5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||W5(e)}o(B5,"isSpecial");var H5=typeof Symbol=="function"&&Symbol.for,G5=H5?Symbol.for("react.element"):60103;function W5(e){return e.$$typeof===G5}o(W5,"isReactElement");function K5(e){return Array.isArray(e)?[]:{}}o(K5,"emptyTarget");function Zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ol(K5(e),e,t):e}o(Zf,"cloneUnlessOtherwiseSpecified");function X5(e,t,n){return e.concat(t).map(function(i){return Zf(i,n)})}o(X5,"defaultArrayMerge");function Q5(e,t){if(!t.customMerge)return ol;var n=t.customMerge(e);return typeof n=="function"?n:ol}o(Q5,"getMergeFunction");function q5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(q5,"getEnumerableOwnPropertySymbols");function ER(e){return Object.keys(e).concat(q5(e))}o(ER,"getKeys");function AR(e,t){try{return t in e}catch{return!1}}o(AR,"propertyIsOnObject");function Y5(e,t){return AR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(Y5,"propertyIsUnsafe");function z5(e,t,n){var i={};return n.isMergeableObject(e)&&ER(e).forEach(function(r){i[r]=Zf(e[r],n)}),ER(t).forEach(function(r){Y5(e,r)||(AR(e,r)&&n.isMergeableObject(t[r])?i[r]=Q5(r,n)(e[r],t[r],n):i[r]=Zf(t[r],n))}),i}o(z5,"mergeObject");function ol(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||X5,n.isMergeableObject=n.isMergeableObject||j5,n.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):z5(e,t,n):Zf(t,n)}o(ol,"deepmerge");ol.all=o(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 J5=ol;SR.exports=J5});var yg=Ye(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.Double=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var Z5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return Z5.EnumIsFlag},"get")});var eG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return eG.TermToTypes},"get")});var tG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return tG.VocabularyReferences},"get")});function PR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(PR,"splitAt");function CR(e,t){return t<0?e:e.substring(0,t)}o(CR,"substringAt");function hg(e,t){return PR(e,e.indexOf(t))}o(hg,"splitAtFirst");vt.splitAtFirst=hg;function xR(e,t){return PR(e,e.lastIndexOf(t))}o(xR,"splitAtLast");vt.splitAtLast=xR;function nG(e,t){return CR(e,e.indexOf(t))}o(nG,"substringBeforeFirst");vt.substringBeforeFirst=nG;function iG(e,t){return CR(e,e.lastIndexOf(t))}o(iG,"substringBeforeLast");vt.substringBeforeLast=iG;function IR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=xR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=hg(t,"@");return`${a}@${IR(e,s)}`}else return t}o(IR,"alias");vt.alias=IR;function HT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=hg(a,".");if(!l||l.includes("."))return a;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}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=hg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(HT,"unalias");vt.unalias=HT;function rG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(rG,"isComplexTypeDefinition");vt.isComplexTypeDefinition=rG;function oG(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(oG,"Double");vt.Double=oG;function aG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(aG,"Decimal");vt.Decimal=aG;function sG(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(sG,"lazy");vt.lazy=sG;function OR(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(OR,"createIndexedFind");vt.createIndexedFind=OR;function cG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:OR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(cG,"addGetByValue");vt.addGetByValue=cG;function lG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=HT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=HT(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},{})}o(lG,"mergeAnnotations");vt.mergeAnnotations=lG});var BR=Ye(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.convert=void 0;var vg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=yg(),no=Symbol("Annotation Target");function oa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(oa,"appendObjectPath");function gr(e,t,n,i){var r,a,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,b]=(0,Se.splitAtFirst)(v,"@");m.push(A),m.push(`@${b}`)}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=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a: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[no]!==void 0)t=t[no];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,b,O,F,U;let K=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=oa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[j,ae]=e.splitTerm(v),Z=(A=m.target.annotations[j.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):K(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(v==="$AnnotationPath"?j=m.target.value:v==="$Path"&&(j=m.target.path),j!==void 0){let ae=gr(e,m.target[no],j);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=oa(m.objectPath,Z))}),m.target=ae.target,m.objectPath=oa(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let re=(F=(O=Z.entitySets.by_name(v))!==null&&O!==void 0?O:Z.singletons.by_name(v))!==null&&F!==void 0?F:Z.actionImports.by_name(v);if(re)return m.target=re,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 Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let re=gr(e,Z.entityType,v);return m.target=re.target,m.objectPath=re.objectPath.reduce(oa,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let re=Z.entityProperties.by_name(v);if(re)return m.target=re,m;let Pe=Z.navigationProperties.by_name(v);if(Pe)return m.target=Pe,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=gr(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(oa,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 re=(U=Z.parameters[v])!==null&&U!==void 0?U:Z.parameters.find(Pe=>Pe.name===v);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Pe=re.properties.by_name(v);if(Pe)return m.target=Pe,m;let D=re.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=gr(e,j,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(oa,m.objectPath),m}break;case"NavigationProperty":let ae=gr(e,m.target.targetType,v);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(oa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=oa(m.objectPath,m.target),m}return K(`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=DR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var BB=Object.create;var tl=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var HB=Object.getOwnPropertyNames;var GB=Object.getPrototypeOf,WB=Object.prototype.hasOwnProperty;var o=(e,t)=>tl(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ks=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},ag=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of HB(t))!WB.call(e,r)&&r!==n&&tl(e,r,{get:()=>t[r],enumerable:!(i=LO(t,r))||i.enumerable});return e},Xs=(e,t,n)=>(ag(e,t,"default"),n&&ag(n,t,"default")),ie=(e,t,n)=>(n=e!=null?BB(GB(e)):{},ag(t||!e||!e.__esModule?tl(n,"default",{value:e,enumerable:!0}):n,e)),sg=e=>ag(tl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?LO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&tl(t,n,r),r};var aL=Ye((hz,oL)=>{var ET=Object.defineProperty,KB=Object.getOwnPropertyDescriptor,XB=Object.getOwnPropertyNames,QB=Object.prototype.hasOwnProperty,AT=o((e,t)=>{for(var n in t)ET(e,n,{get:t[n],enumerable:!0})},"C"),qB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of XB(t))!QB.call(e,r)&&r!==n&&ET(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=KB(t,r))||i.enumerable});return e},"$e"),YB=o(e=>qB(ET({},"__esModule",{value:!0}),e),"Ze"),RO={};AT(RO,{ACTIONTITLEPREFIX:o(()=>eH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>kO,"ALPViewType"),ActionType:o(()=>$O,"ActionType"),ArtifactType:o(()=>jO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>nH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>KO,"ChangeIndicator"),ChartColor:o(()=>cN,"ChartColor"),ColorPaletteDefinitionType:o(()=>aN,"ColorPaletteDefinitionType"),ControlType:o(()=>BO,"ControlType"),CustomExtensionType:o(()=>uN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>uH,"DATESETTINGSPATH"),DataSourceType:o(()=>rN,"DataSourceType"),DefinitionName:o(()=>qO,"DefinitionName"),DirName:o(()=>GO,"DirName"),DraftDiscardEnabledSettings:o(()=>eN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>MO,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>ZB,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>mH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>gH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>pH,"FRAGMENTNAMEPART"),FacetBase:o(()=>XO,"FacetBase"),Features:o(()=>pN,"Features"),FileName:o(()=>WO,"FileName"),FioriElementsVersion:o(()=>FO,"FioriElementsVersion"),FlexChangeLayer:o(()=>VO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>iN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>_O,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>dH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>lN,"LogSeverity"),MANIFESTPATH:o(()=>iH,"MANIFESTPATH"),MacrosPropertyType:o(()=>ZO,"MacrosPropertyType"),ManifestSection:o(()=>oN,"ManifestSection"),OdataVersion:o(()=>DO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>JB,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>zB,"PageType"),PageTypeV2:o(()=>ST,"PageTypeV2"),PageTypeV4:o(()=>PT,"PageTypeV4"),PropertyName:o(()=>YO,"PropertyName"),QUICKVARPATH:o(()=>lH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>fH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>yH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>hH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>JO,"SchemaKeyName"),SchemaTag:o(()=>zO,"SchemaTag"),SchemaType:o(()=>wO,"SchemaType"),SectionType:o(()=>UO,"SectionType"),StatePreservationMode:o(()=>nN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>tN,"TableColumnVerticalAlignment"),TemplateType:o(()=>fN,"TemplateType"),UIVOCABULARY:o(()=>aH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>cH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>sH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>oH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>rH,"VOCWITHSLASH"),ViewTemplateType:o(()=>QO,"ViewTemplateType"),ViewTypes:o(()=>sN,"ViewTypes"),Visualization:o(()=>HO,"Visualization"),defaultExportResult:o(()=>tH,"defaultExportResult"),logSeverityLabel:o(()=>vH,"logSeverityLabel"),v2:o(()=>dN,"v2"),v4:o(()=>kN,"v4")});oL.exports=YB(RO);var ST=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ST||{}),PT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(PT||{}),zB={...ST,...PT},JB=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"]]),FO=(e=>(e.v2="v2",e.v4="v4",e))(FO||{}),DO=(e=>(e.v2="v2",e.v4="v4",e))(DO||{}),_O=(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))(_O||{}),VO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(VO||{}),wO=(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))(wO||{}),MO=(e=>(e.flex="flex",e.manifest="manifest",e))(MO||{}),kO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(kO||{}),UO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(UO||{}),jO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(jO||{}),$O=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))($O||{}),BO=(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))(BO||{}),HO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(HO||{}),GO=(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))(GO||{}),WO=(e=>(e.App="app.json",e))(WO||{}),ZB="Facet ID: ",eH="Action ID: ",KO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(KO||{}),tH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},XO=(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))(XO||{}),nH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",QO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(QO||{}),qO=(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.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(qO||{}),YO=(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))(YO||{}),zO=(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))(zO||{}),JO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(JO||{}),iH="webapp/manifest.json",rH="/@com.sap.vocabularies",oH="::@com.sap.vocabularies",aH="com.sap.vocabularies.UI.v1",sH="com.sap.vocabularies.UI.v1.",cH="@com.sap.vocabularies.UI.v1.",lH="/quickVariantSelection",fH="/quickVariantSelectionX",uH="/filterSettings/dateSettings",pH=".fragment.",ZO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(ZO||{}),eN=(e=>(e.restricted="restricted",e))(eN||{}),tN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(tN||{}),nN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(nN||{}),iN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(iN||{}),rN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(rN||{}),oN=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(oN||{}),dH="sap.ui.generic.app/settings",aN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(aN||{}),gH="sap.fe.templates.RootContainer.view.Fcl",mH="appRootView",sN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(sN||{}),hH="sap.ui.core.mvc.View",yH="sap.ui.core.Fragment",cN=(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))(cN||{}),lN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(lN||{}),vH={error:"Error",warning:"Warning",info:"Information"},fN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(fN||{}),uN=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(uN||{}),pN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(pN||{}),dN={};AT(dN,{CardSettingsType:o(()=>hN,"CardSettingsType"),CardTemplateType:o(()=>mN,"CardTemplateType"),ChartCardType:o(()=>gN,"ChartCardType"),ChartType:o(()=>DN,"ChartType"),ContainerLayoutType:o(()=>MN,"ContainerLayoutType"),CreateMode:o(()=>wN,"CreateMode"),DateRangeType:o(()=>AN,"DateRangeType"),DefaultContentView:o(()=>LN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>SN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>RN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>VN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>EH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>PH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>SH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>AH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>PN,"FilterPathType"),IgnoredFieldsType:o(()=>NN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>EN,"LinkListFlavorType"),ListFlavorType:o(()=>vN,"ListFlavorType"),ListTypeType:o(()=>TN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>FN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>yN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>xH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>CH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>NH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>OH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>IH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>_N,"SectionPosition"),SortOrderType:o(()=>bN,"SortOrderType"),Strategy:o(()=>ON,"Strategy"),TableColumnExtensionTypeV2:o(()=>IN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>xN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>bH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>TH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>CN,"customColumnViewTypes")});var gN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(gN||{}),mN=(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))(mN||{}),TH={"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"},bH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},hN=(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))(hN||{}),yN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(yN||{}),vN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(vN||{}),TN=(e=>(e.extended="extended",e.condensed="condensed",e))(TN||{}),bN=(e=>(e.ascending="ascending",e.descending="descending",e))(bN||{}),EN=(e=>(e.standard="standard",e.carousel="carousel",e))(EN||{}),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||{}),PN=(e=>(e.key="key",e.catgory="category",e))(PN||{}),CN=(e=>(e.XML="XML",e))(CN||{}),xN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(xN||{}),IN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(IN||{}),ON=(e=>(e.extension="extension",e))(ON||{}),NN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NN||{}),LN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(LN||{}),RN=(e=>(e.visual="visual",e.compact="compact",e))(RN||{}),FN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(FN||{}),DN=(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))(DN||{}),_N=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(_N||{}),VN=(e=>(e.XML="XML",e))(VN||{}),wN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(wN||{}),EH="sap.suite.ui.generic.template",AH="sap.suite.ui.generic.template.ObjectPage",SH="sap.suite.ui.generic.template.ListReport",PH="sap.suite.ui.generic.template.AnalyticalListPage",CH="sap.ui.viewExtensions",xH="sap.ui.controllerExtensions",IH="sap.suite.ui.generic.template.ObjectPage.view.Details",OH="sap.suite.ui.generic.template.ListReport.view.ListReport",NH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",MN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(MN||{}),kN={};AT(kN,{ActionPlacement:o(()=>UN,"ActionPlacement"),Availability:o(()=>eL,"Availability"),CloudDevAdaptationStatus:o(()=>rL,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>YN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>HN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>LH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>_H,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>RH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>DH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>FH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>wH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>KN,"FilterFieldPlacement"),HorizontalAlign:o(()=>tL,"HorizontalAlign"),InitialLayoutType:o(()=>WN,"InitialLayoutType"),InitialLoadType:o(()=>BN,"InitialLoadType"),LayoutType:o(()=>GN,"LayoutType"),Placement:o(()=>ZN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>kH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>MH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>VH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>jH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>UH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>QN,"SectionLayoutType"),SectionPosition:o(()=>qN,"SectionPosition"),SectionPositionV4:o(()=>JN,"SectionPositionV4"),SelectType:o(()=>XN,"SelectType"),SelectionMode:o(()=>jN,"SelectionMode"),TableCreationModeType:o(()=>zN,"TableCreationModeType"),TableTypeV4:o(()=>$N,"TableTypeV4"),VariantManagementTypeListReport:o(()=>iL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>nL,"VariantManagementTypeObjectPage")});var UN=(e=>(e.After="After",e.Before="Before",e))(UN||{}),jN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(jN||{}),$N=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($N||{}),BN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(BN||{}),HN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(HN||{}),GN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(GN||{}),WN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(WN||{}),KN=(e=>(e.After="After",e.Before="Before",e))(KN||{}),XN=(e=>(e.single="single",e.multi="multi",e))(XN||{}),QN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(QN||{}),qN=(e=>(e.After="After",e.Before="Before",e))(qN||{}),YN=(e=>(e.XML="XML",e))(YN||{}),zN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(zN||{}),LH="sap.fe.templates",RH="sap.fe.core.fpm",FH="sap.fe.templates.ObjectPage",DH="sap.fe.templates.ListReport",_H="sap.fe.templates.AnalyticalListPage",VH="XMLFragment",JN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(JN||{}),wH="sap.f.routing.Router",MH="sap.f",kH="sap.ui.controllerExtensions",UH="sap.fe.templates.ObjectPage.ObjectPageController",jH="sap.fe.templates.ListReport.ListReportController",ZN=(e=>(e.After="After",e.Before="Before",e))(ZN||{}),eL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(eL||{}),tL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(tL||{}),nL=(e=>(e.None="None",e.Control="Control",e))(nL||{}),iL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(iL||{}),rL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(rL||{})});var uL=Ye(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Features=kr.CustomExtensionType=kr.TemplateType=kr.logSeverityLabel=kr.LogSeverity=void 0;var sL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(sL||(kr.LogSeverity=sL={}));kr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var cL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(cL||(kr.TemplateType=cL={}));var lL;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(lL||(kr.CustomExtensionType=lL={}));var fL;(function(e){e.BuildingBlocks="BuildingBlocks"})(fL||(kr.Features=fL={}))});var kL=Ye((Tz,ML)=>{var CT=Object.defineProperty,$H=Object.getOwnPropertyDescriptor,BH=Object.getOwnPropertyNames,HH=Object.prototype.hasOwnProperty,GH=o((e,t)=>{for(var n in t)CT(e,n,{get:t[n],enumerable:!0})},"h"),WH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of BH(t))!HH.call(e,r)&&r!==n&&CT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=$H(t,r))||i.enumerable});return e},"M"),KH=o(e=>WH(CT({},"__esModule",{value:!0}),e),"Q"),pL={};GH(pL,{CardSettingsType:o(()=>mL,"CardSettingsType"),CardTemplateType:o(()=>gL,"CardTemplateType"),ChartCardType:o(()=>dL,"ChartCardType"),ChartType:o(()=>FL,"ChartType"),ContainerLayoutType:o(()=>wL,"ContainerLayoutType"),CreateMode:o(()=>VL,"CreateMode"),DateRangeType:o(()=>EL,"DateRangeType"),DefaultContentView:o(()=>NL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>AL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>LL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>_L,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>qH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>JH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>zH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>YH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>SL,"FilterPathType"),IgnoredFieldsType:o(()=>OL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>bL,"LinkListFlavorType"),ListFlavorType:o(()=>yL,"ListFlavorType"),ListTypeType:o(()=>vL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>RL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>hL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>e5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>ZH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>i5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>n5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>t5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>DL,"SectionPosition"),SortOrderType:o(()=>TL,"SortOrderType"),Strategy:o(()=>IL,"Strategy"),TableColumnExtensionTypeV2:o(()=>xL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>CL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>QH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>XH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>PL,"customColumnViewTypes")});ML.exports=KH(pL);var dL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(dL||{}),gL=(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))(gL||{}),XH={"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"},QH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},mL=(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))(mL||{}),hL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(hL||{}),yL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(yL||{}),vL=(e=>(e.extended="extended",e.condensed="condensed",e))(vL||{}),TL=(e=>(e.ascending="ascending",e.descending="descending",e))(TL||{}),bL=(e=>(e.standard="standard",e.carousel="carousel",e))(bL||{}),EL=(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))(EL||{}),AL=(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))(AL||{}),SL=(e=>(e.key="key",e.catgory="category",e))(SL||{}),PL=(e=>(e.XML="XML",e))(PL||{}),CL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(CL||{}),xL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(xL||{}),IL=(e=>(e.extension="extension",e))(IL||{}),OL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(OL||{}),NL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(NL||{}),LL=(e=>(e.visual="visual",e.compact="compact",e))(LL||{}),RL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(RL||{}),FL=(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))(FL||{}),DL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(DL||{}),_L=(e=>(e.XML="XML",e))(_L||{}),VL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(VL||{}),qH="sap.suite.ui.generic.template",YH="sap.suite.ui.generic.template.ObjectPage",zH="sap.suite.ui.generic.template.ListReport",JH="sap.suite.ui.generic.template.AnalyticalListPage",ZH="sap.ui.viewExtensions",e5="sap.ui.controllerExtensions",t5="sap.suite.ui.generic.template.ObjectPage.view.Details",n5="sap.suite.ui.generic.template.ListReport.view.ListReport",i5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",wL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(wL||{})});var sR=Ye((Ez,aR)=>{var xT=Object.defineProperty,r5=Object.getOwnPropertyDescriptor,o5=Object.getOwnPropertyNames,a5=Object.prototype.hasOwnProperty,s5=o((e,t)=>{for(var n in t)xT(e,n,{get:t[n],enumerable:!0})},"R"),c5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of o5(t))!a5.call(e,r)&&r!==n&&xT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=r5(t,r))||i.enumerable});return e},"h"),l5=o(e=>c5(xT({},"__esModule",{value:!0}),e),"j"),UL={};s5(UL,{ActionPlacement:o(()=>jL,"ActionPlacement"),Availability:o(()=>tR,"Availability"),CloudDevAdaptationStatus:o(()=>oR,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>zL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>GL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>f5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>g5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>u5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>d5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>p5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>h5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>XL,"FilterFieldPlacement"),HorizontalAlign:o(()=>nR,"HorizontalAlign"),InitialLayoutType:o(()=>KL,"InitialLayoutType"),InitialLoadType:o(()=>HL,"InitialLoadType"),LayoutType:o(()=>WL,"LayoutType"),Placement:o(()=>eR,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>v5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>y5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>m5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>b5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>T5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>qL,"SectionLayoutType"),SectionPosition:o(()=>YL,"SectionPosition"),SectionPositionV4:o(()=>ZL,"SectionPositionV4"),SelectType:o(()=>QL,"SelectType"),SelectionMode:o(()=>$L,"SelectionMode"),TableCreationModeType:o(()=>JL,"TableCreationModeType"),TableTypeV4:o(()=>BL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>rR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>iR,"VariantManagementTypeObjectPage")});aR.exports=l5(UL);var jL=(e=>(e.After="After",e.Before="Before",e))(jL||{}),$L=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))($L||{}),BL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(BL||{}),HL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(HL||{}),GL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(GL||{}),WL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(WL||{}),KL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(KL||{}),XL=(e=>(e.After="After",e.Before="Before",e))(XL||{}),QL=(e=>(e.single="single",e.multi="multi",e))(QL||{}),qL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(qL||{}),YL=(e=>(e.After="After",e.Before="Before",e))(YL||{}),zL=(e=>(e.XML="XML",e))(zL||{}),JL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(JL||{}),f5="sap.fe.templates",u5="sap.fe.core.fpm",p5="sap.fe.templates.ObjectPage",d5="sap.fe.templates.ListReport",g5="sap.fe.templates.AnalyticalListPage",m5="XMLFragment",ZL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ZL||{}),h5="sap.f.routing.Router",y5="sap.f",v5="sap.ui.controllerExtensions",T5="sap.fe.templates.ObjectPage.ObjectPageController",b5="sap.fe.templates.ListReport.ListReportController",eR=(e=>(e.After="After",e.Before="Before",e))(eR||{}),tR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(tR||{}),nR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(nR||{}),iR=(e=>(e.None="None",e.Control="Control",e))(iR||{}),rR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(rR||{}),oR=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(oR||{})});var le=Ye(bi=>{"use strict";var cR=bi&&bi.__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:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),E5=bi&&bi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lR=bi&&bi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cR(t,e,n)},fR=bi&&bi.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&cR(n,t,i[r]);return E5(n,t),n}}();Object.defineProperty(bi,"__esModule",{value:!0});bi.v4=bi.v2=void 0;lR(aL(),bi);lR(uL(),bi);bi.v2=fR(kL());bi.v4=fR(sR())});var GT=Ye(($z,PR)=>{"use strict";var j5=o(function(t){return $5(t)&&!B5(t)},"isMergeableObject");function $5(e){return!!e&&typeof e=="object"}o($5,"isNonNullObject");function B5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||W5(e)}o(B5,"isSpecial");var H5=typeof Symbol=="function"&&Symbol.for,G5=H5?Symbol.for("react.element"):60103;function W5(e){return e.$$typeof===G5}o(W5,"isReactElement");function K5(e){return Array.isArray(e)?[]:{}}o(K5,"emptyTarget");function eu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ol(K5(e),e,t):e}o(eu,"cloneUnlessOtherwiseSpecified");function X5(e,t,n){return e.concat(t).map(function(i){return eu(i,n)})}o(X5,"defaultArrayMerge");function Q5(e,t){if(!t.customMerge)return ol;var n=t.customMerge(e);return typeof n=="function"?n:ol}o(Q5,"getMergeFunction");function q5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(q5,"getEnumerableOwnPropertySymbols");function AR(e){return Object.keys(e).concat(q5(e))}o(AR,"getKeys");function SR(e,t){try{return t in e}catch{return!1}}o(SR,"propertyIsOnObject");function Y5(e,t){return SR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(Y5,"propertyIsUnsafe");function z5(e,t,n){var i={};return n.isMergeableObject(e)&&AR(e).forEach(function(r){i[r]=eu(e[r],n)}),AR(t).forEach(function(r){Y5(e,r)||(SR(e,r)&&n.isMergeableObject(t[r])?i[r]=Q5(r,n)(e[r],t[r],n):i[r]=eu(t[r],n))}),i}o(z5,"mergeObject");function ol(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||X5,n.isMergeableObject=n.isMergeableObject||j5,n.cloneUnlessOtherwiseSpecified=eu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):z5(e,t,n):eu(t,n)}o(ol,"deepmerge");ol.all=o(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 J5=ol;PR.exports=J5});var yg=Ye(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.Double=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var Z5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return Z5.EnumIsFlag},"get")});var eG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return eG.TermToTypes},"get")});var tG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return tG.VocabularyReferences},"get")});function CR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(CR,"splitAt");function xR(e,t){return t<0?e:e.substring(0,t)}o(xR,"substringAt");function hg(e,t){return CR(e,e.indexOf(t))}o(hg,"splitAtFirst");vt.splitAtFirst=hg;function IR(e,t){return CR(e,e.lastIndexOf(t))}o(IR,"splitAtLast");vt.splitAtLast=IR;function nG(e,t){return xR(e,e.indexOf(t))}o(nG,"substringBeforeFirst");vt.substringBeforeFirst=nG;function iG(e,t){return xR(e,e.lastIndexOf(t))}o(iG,"substringBeforeLast");vt.substringBeforeLast=iG;function OR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=IR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=hg(t,"@");return`${a}@${OR(e,s)}`}else return t}o(OR,"alias");vt.alias=OR;function WT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=hg(a,".");if(!l||l.includes("."))return a;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}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=hg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(WT,"unalias");vt.unalias=WT;function rG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(rG,"isComplexTypeDefinition");vt.isComplexTypeDefinition=rG;function oG(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(oG,"Double");vt.Double=oG;function aG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(aG,"Decimal");vt.Decimal=aG;function sG(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(sG,"lazy");vt.lazy=sG;function NR(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(NR,"createIndexedFind");vt.createIndexedFind=NR;function cG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:NR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(cG,"addGetByValue");vt.addGetByValue=cG;function lG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=WT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=WT(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},{})}o(lG,"mergeAnnotations");vt.mergeAnnotations=lG});var HR=Ye(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.convert=void 0;var vg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=yg(),no=Symbol("Annotation Target");function aa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(aa,"appendObjectPath");function gr(e,t,n,i){var r,a,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,b]=(0,Se.splitAtFirst)(v,"@");m.push(A),m.push(`@${b}`)}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=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a: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[no]!==void 0)t=t[no];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,b,O,F,U;let K=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=aa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[j,ae]=e.splitTerm(v),Z=(A=m.target.annotations[j.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):K(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(v==="$AnnotationPath"?j=m.target.value:v==="$Path"&&(j=m.target.path),j!==void 0){let ae=gr(e,m.target[no],j);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=aa(m.objectPath,Z))}),m.target=ae.target,m.objectPath=aa(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let re=(F=(O=Z.entitySets.by_name(v))!==null&&O!==void 0?O:Z.singletons.by_name(v))!==null&&F!==void 0?F:Z.actionImports.by_name(v);if(re)return m.target=re,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 Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let re=gr(e,Z.entityType,v);return m.target=re.target,m.objectPath=re.objectPath.reduce(aa,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let re=Z.entityProperties.by_name(v);if(re)return m.target=re,m;let Pe=Z.navigationProperties.by_name(v);if(Pe)return m.target=Pe,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=gr(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,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 re=(U=Z.parameters[v])!==null&&U!==void 0?U:Z.parameters.find(Pe=>Pe.name===v);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Pe=re.properties.by_name(v);if(Pe)return m.target=Pe,m;let D=re.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=gr(e,j,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,m.objectPath),m}break;case"NavigationProperty":let ae=gr(e,m.target.targetType,v);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(aa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=aa(m.objectPath,m.target),m}return K(`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=_R(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,13 +10,13 @@ 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}o(gr,"resolveTarget");function fG(e){return e.includes("@")}o(fG,"isAnnotationPath");function
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return g}o(gr,"resolveTarget");function fG(e){return e.includes("@")}o(fG,"isAnnotationPath");function LR(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[no]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,t.PropertyPath,r).target),a}o(LR,"mapPropertyPath");function RR(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[no]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,a.value,r).target),a}o(RR,"mapAnnotationPath");function FR(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[no]:i};return(0,Se.lazy)(s,"$target",()=>gr(e,i,t.NavigationPropertyPath,r).target),s}o(FR,"mapNavigationPropertyPath");function uG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[no]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,t.Path,r).target),a}o(uG,"mapPath");function DR(e,t,n,i,r,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,Se.Double)(a.Double);case"Decimal":return(0,Se.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Se.alias)(vg.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return LR(e,a,s,t,n);case"NavigationPropertyPath":return FR(e,a,s,t,n);case"AnnotationPath":return RR(e,a,s,t,n);case"Path":return fG(a.Path)?gr(e,t,a.Path,n).target:uG(e,a,s,t,n);case"Record":return QT(e,n,t,i,r,a.Record,s);case"Collection":return VR(e,t,n,i,r,a.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 a}}o(DR,"parseValue");function _R(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}o(DR,"inferTypeFromTerm");function pG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(pG,"isDataFieldWithForAction");function dG(e,t,n,i,r){let a;return!r.type&&t?a=DR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(dG,"parseRecordType");function KT(e,t,n,i,r,a,s){let l={$Type:dG(e,t,n,i,a),fullyQualifiedName:s,[no]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>FR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",wR(e,a,l)),pG(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}o(KT,"parseRecord");function gG(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}o(gG,"getOrInferCollectionType");function _R(e,t,n,i,r,a,s){switch(gG(a)){case"PropertyPath":return a.map((u,p)=>NR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>gr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>LR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>RR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>KT(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 a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(_R,"parseCollection");function mG(e){return!!e.targetTypeName}o(mG,"isV4NavigationProperty");function hG(e,t,n){var i;let r;if(n.record)r=KT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=FR(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=_R(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[no]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,vg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",wR(e,n,r))}catch{}return r}o(hG,"convertAnnotation");var XT=class XT{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,MR)}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,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,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 a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(vg.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:""}};o(XT,"Converter");var GT=XT;function eu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(eu,"resolveEntityType");function VR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(VR,"resolveNavigationPropertyBindings");function aa(e,t){let n=t.annotations;return()=>Tg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(aa,"resolveAnnotations");function wR(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(a=>{a.target=i,a.__source=n.__source,a[no]=n[no],a.fullyQualifiedName=`${i}@${a.term}`}),Tg(e,n,r??[])}}o(wR,"resolveAnnotationsOnAnnotation");function Tg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>hG(u,t,p))),i},{})}o(Tg,"createAnnotationsObject");function MR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",aa(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,UR)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,kR)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,$R)),n}o(MR,"convertEntityContainer");function kR(e,t){let n=t;(0,Se.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",aa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",VR(e,i)),n}o(kR,"convertSingleton");function UR(e,t){let n=t;(0,Se.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",aa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",VR(e,i)),n}o(UR,"convertEntitySet");function yG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",aa(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,WT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,WT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,jR)),(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 a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=gr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(yG,"convertEntityType");function WT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",aa(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(WT,"convertProperty");function jR(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!mG(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);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(a,"targetType",eu(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",aa(e,t)),a}o(jR,"convertNavigationProperty");function $R(e,t){let n=t;return(0,Se.lazy)(n,"annotations",aa(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}o($R,"convertActionImport");function vG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",eu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",eu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,TG)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Tg(e,t,a)}),n}o(vG,"convertAction");function TG(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.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Tg(e,t,a)}),n}o(TG,"convertActionParameter");function bG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,WT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,jR)),(0,Se.lazy)(n,"annotations",aa(e,t)),n}o(bG,"convertComplexType");function EG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",aa(e,t)),n}o(EG,"convertTypeDefinition");function AG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vg.VocabularyReferences,diagnostics:[]},n=new GT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,MR)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,UR)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,kR)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,yG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,vG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,bG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,$R)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,EG)),t.resolvePath=o(function(r){let a=gr(n,void 0,r);return a.target&&oa(a.objectPath,a.target),a},"resolvePath"),t}o(AG,"convert");bg.convert=AG});var KR=Ye(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.revertTermToGenericType=void 0;var SG=yg();function PG(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t))p={type:"Collection",Collection:t.map(g=>Eg(e,g))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Eg(e,t)});return p}o(PG,"revertObjectToRawType");function HR(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.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=PG(e,t);break}return n}o(HR,"revertValueToRawType");var CG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function GR(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=WR(e,t[i][r]);if(!a.term){let s=(0,SG.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(GR,"revertAnnotationsToRawType");function Eg(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(CG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:HR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],GR(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};if(t.type==="Constant")return t.value}}o(Eg,"revertCollectionItemToRawType");function WR(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=[],GR(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Eg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Eg(e,t)}:{...n,value:HR(e,t)}}o(WR,"revertTermToGenericType");Ag.revertTermToGenericType=WR});var XR=Ye(sa=>{"use strict";var xG=sa&&sa.__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:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),QT=sa&&sa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xG(t,e,n)};Object.defineProperty(sa,"__esModule",{value:!0});QT(BR(),sa);QT(yg(),sa);QT(KR(),sa)});var ZT=Ye($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.MergedRawMetadata=$a.RawMetadataInstance=$a.ensureArray=void 0;function IG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(IG,"ensureArray");$a.ensureArray=IG;var zT=class zT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(zT,"RawMetadataInstance");var qT=zT;$a.RawMetadataInstance=qT;var JT=class JT{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))}};o(JT,"MergedRawMetadata");var YT=JT;$a.MergedRawMetadata=YT});var QR=Ye(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.merge=void 0;var OG=ZT();function NG(...e){let t=new OG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(NG,"merge");Sg.merge=NG});var qR=Ye(Pg=>{(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(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!I),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),yt(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(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,V=0,_e=t.length;V<_e;V++){var Rt=I[t[V]].length;if(Rt>S)switch(t[V]){case"textNode":an(I);break;case"cdata":je(I,"oncdata",I.cdata),I.cdata="";break;case"script":je(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Rt)}var Qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=Qe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,Y=t.length;S<Y;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){an(I),I.cdata!==""&&(je(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(je(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(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(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(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 V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),Y.emit.apply(Y,V)}),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/",b={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]/,F=/[:_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]/,K=/[#:_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 j(I){return I===" "||I===`
|
|
19
|
+
</Annotations>`),r}o(_R,"inferTypeFromTerm");function pG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(pG,"isDataFieldWithForAction");function dG(e,t,n,i,r){let a;return!r.type&&t?a=_R(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(dG,"parseRecordType");function QT(e,t,n,i,r,a,s){let l={$Type:dG(e,t,n,i,a),fullyQualifiedName:s,[no]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>DR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",MR(e,a,l)),pG(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}o(QT,"parseRecord");function gG(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}o(gG,"getOrInferCollectionType");function VR(e,t,n,i,r,a,s){switch(gG(a)){case"PropertyPath":return a.map((u,p)=>LR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>gr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>RR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>FR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>QT(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 a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(VR,"parseCollection");function mG(e){return!!e.targetTypeName}o(mG,"isV4NavigationProperty");function hG(e,t,n){var i;let r;if(n.record)r=QT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=DR(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=VR(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[no]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,vg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",MR(e,n,r))}catch{}return r}o(hG,"convertAnnotation");var qT=class qT{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,kR)}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,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,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 a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(vg.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:""}};o(qT,"Converter");var KT=qT;function tu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(tu,"resolveEntityType");function wR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(wR,"resolveNavigationPropertyBindings");function sa(e,t){let n=t.annotations;return()=>Tg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(sa,"resolveAnnotations");function MR(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(a=>{a.target=i,a.__source=n.__source,a[no]=n[no],a.fullyQualifiedName=`${i}@${a.term}`}),Tg(e,n,r??[])}}o(MR,"resolveAnnotationsOnAnnotation");function Tg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>hG(u,t,p))),i},{})}o(Tg,"createAnnotationsObject");function kR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,jR)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,UR)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,BR)),n}o(kR,"convertEntityContainer");function UR(e,t){let n=t;(0,Se.lazy)(n,"entityType",tu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",wR(e,i)),n}o(UR,"convertSingleton");function jR(e,t){let n=t;(0,Se.lazy)(n,"entityType",tu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",wR(e,i)),n}o(jR,"convertEntitySet");function yG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,XT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,XT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,$R)),(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 a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=gr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(yG,"convertEntityType");function XT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(XT,"convertProperty");function $R(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!mG(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);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(a,"targetType",tu(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",sa(e,t)),a}o($R,"convertNavigationProperty");function BR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(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}o(BR,"convertActionImport");function vG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",tu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",tu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,TG)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Tg(e,t,a)}),n}o(vG,"convertAction");function TG(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.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Tg(e,t,a)}),n}o(TG,"convertActionParameter");function bG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,XT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,$R)),(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(bG,"convertComplexType");function EG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(EG,"convertTypeDefinition");function AG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vg.VocabularyReferences,diagnostics:[]},n=new KT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,kR)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,jR)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,UR)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,yG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,vG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,bG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,BR)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,EG)),t.resolvePath=o(function(r){let a=gr(n,void 0,r);return a.target&&aa(a.objectPath,a.target),a},"resolvePath"),t}o(AG,"convert");bg.convert=AG});var XR=Ye(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.revertTermToGenericType=void 0;var SG=yg();function PG(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t))p={type:"Collection",Collection:t.map(g=>Eg(e,g))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Eg(e,t)});return p}o(PG,"revertObjectToRawType");function GR(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.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=PG(e,t);break}return n}o(GR,"revertValueToRawType");var CG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function WR(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=KR(e,t[i][r]);if(!a.term){let s=(0,SG.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(WR,"revertAnnotationsToRawType");function Eg(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(CG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:GR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],WR(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};if(t.type==="Constant")return t.value}}o(Eg,"revertCollectionItemToRawType");function KR(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=[],WR(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Eg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Eg(e,t)}:{...n,value:GR(e,t)}}o(KR,"revertTermToGenericType");Ag.revertTermToGenericType=KR});var QR=Ye(ca=>{"use strict";var xG=ca&&ca.__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:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),YT=ca&&ca.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xG(t,e,n)};Object.defineProperty(ca,"__esModule",{value:!0});YT(HR(),ca);YT(yg(),ca);YT(XR(),ca)});var tb=Ye(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.MergedRawMetadata=Ba.RawMetadataInstance=Ba.ensureArray=void 0;function IG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(IG,"ensureArray");Ba.ensureArray=IG;var ZT=class ZT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(ZT,"RawMetadataInstance");var zT=ZT;Ba.RawMetadataInstance=zT;var eb=class eb{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))}};o(eb,"MergedRawMetadata");var JT=eb;Ba.MergedRawMetadata=JT});var qR=Ye(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.merge=void 0;var OG=tb();function NG(...e){let t=new OG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(NG,"merge");Sg.merge=NG});var YR=Ye(Pg=>{(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(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!I),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),yt(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(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,V=0,_e=t.length;V<_e;V++){var Rt=I[t[V]].length;if(Rt>S)switch(t[V]){case"textNode":an(I);break;case"cdata":je(I,"oncdata",I.cdata),I.cdata="";break;case"script":je(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Rt)}var Qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=Qe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,Y=t.length;S<Y;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){an(I),I.cdata!==""&&(je(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(je(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(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(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(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 V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),Y.emit.apply(Y,V)}),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/",b={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]/,F=/[:_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]/,K=/[#:_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 j(I){return I===" "||I===`
|
|
20
20
|
`||I==="\r"||I===" "}o(j,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function Pe(I,S){return!re(I,S)}o(Pe,"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 ut in e.STATE)e.STATE[e.STATE[ut]]=ut;D=e.STATE;function yt(I,S,Y){I[S]&&I[S](Y)}o(yt,"emit");function je(I,S,Y){I.textNode&&an(I),yt(I,S,Y)}o(je,"emitNode");function an(I){I.textNode=Wn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(an,"closeText");function Wn(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}o(Wn,"textopts");function en(I,S){return an(I),I.trackPosition&&(S+=`
|
|
21
21
|
Line: `+I.line+`
|
|
22
22
|
Column: `+I.column+`
|
|
@@ -24,9 +24,9 @@ Char: `+I.c),S=new Error(S),I.error=S,yt(I,"onerror",S),I}o(en,"error");function
|
|
|
24
24
|
Actual: `+I.attribValue);else if(V==="xmlns"&&I.attribValue!==A)Re(I,"xmlns: prefix must be bound to "+A+`
|
|
25
25
|
Actual: `+I.attribValue);else{var _e=I.tag,Rt=I.tags[I.tags.length-1]||I;_e.ns===Rt.ns&&(_e.ns=Object.create(Rt.ns)),_e.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,je(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Mt,"attrib");function sn(I,S){if(I.opt.xmlns){var Y=I.tag,V=It(I.tagName);Y.prefix=V.prefix,Y.local=V.local,Y.uri=Y.ns[V.prefix]||"",Y.prefix&&!Y.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=V.prefix);var _e=I.tags[I.tags.length-1]||I;Y.ns&&_e.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Gt){je(I,"onopennamespace",{prefix:Gt,uri:Y.ns[Gt]})});for(var Rt=0,Qe=I.attribList.length;Rt<Qe;Rt++){var kt=I.attribList[Rt],vn=kt[0],cn=kt[1],Ht=It(vn,!0),ni=Ht.prefix,ar=Ht.local,gn=ni===""?"":Y.ns[ni]||"",yi={name:vn,value:cn,prefix:ni,local:ar,uri:gn};ni&&ni!=="xmlns"&&!gn&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ni)),yi.uri=ni),I.tag.attributes[vn]=yi,je(I,"onattribute",yi)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),je(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}o(sn,"openTag");function Hi(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}je(I,"onscript",I.script),I.script=""}var S=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var V=Y;S--;){var _e=I.tags[S];if(_e.name!==V)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 Rt=I.tags.length;Rt-- >S;){var Qe=I.tag=I.tags.pop();I.tagName=I.tag.name,je(I,"onclosetag",I.tagName);var kt={};for(var vn in Qe.ns)kt[vn]=Qe.ns[vn];var cn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&Qe.ns!==cn.ns&&Object.keys(Qe.ns).forEach(function(Ht){var ni=Qe.ns[Ht];je(I,"onclosenamespace",{prefix:Ht,uri:ni})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}o(Hi,"closeTag");function Fe(I){var S=I.entity,Y=S.toLowerCase(),V,_e="";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),V=parseInt(S,16),_e=V.toString(16)):(S=S.slice(1),V=parseInt(S,10),_e=V.toString(10))),S=S.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Kn(I,S){S==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):j(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=D.TEXT)}o(Kn,"beginWhiteSpace");function Or(I,S){var Y="";return S<I.length&&(Y=I.charAt(S)),Y}o(Or,"charAt");function at(I){var S=this;if(this.error)throw this.error;if(S.closed)return en(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(S);typeof I=="object"&&(I=I.toString());for(var Y=0,V="";V=Or(I,Y++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
|
|
26
26
|
`?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Kn(S,V);continue;case D.BEGIN_WHITESPACE:Kn(S,V);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var _e=Y-1;V&&V!=="<"&&V!=="&";)V=Or(I,Y++),V&&S.trackPosition&&(S.position++,V===`
|
|
27
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(_e,Y-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!j(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=D.TEXT_ENTITY:S.textNode+=V);continue;case D.SCRIPT:V==="<"?S.state=D.SCRIPT_ENDING:S.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+V,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!j(V))if(re(O,V))S.state=D.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Rt=S.position-S.startTagPosition;V=new Array(Rt).join(" ")+V}S.textNode+="<"+V,S.state=D.TEXT}continue;case D.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=D.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=D.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(je(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(je(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ae(V)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(S.state=D.TEXT,je(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:ae(V)&&(S.state=D.DOCTYPE_QUOTED,S.q=V));continue;case D.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=D.DOCTYPE):V==="<"?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=D.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:V==="-"?S.state=D.COMMENT_ENDING:S.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(S.state=D.COMMENT_ENDED,S.comment=Wn(S.opt,S.comment),S.comment&&je(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=D.COMMENT):S.doctype&&S.doctype!==!0?S.state=D.DOCTYPE_DTD:S.state=D.TEXT;continue;case D.CDATA:V==="]"?S.state=D.CDATA_ENDING:S.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(S.cdata&&je(S,"oncdata",S.cdata),je(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=D.CDATA);continue;case D.PROC_INST:V==="?"?S.state=D.PROC_INST_ENDING:j(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&j(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(je(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+V,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:re(F,V)?S.tagName+=V:(Oi(S),V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(j(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(sn(S,!0),Hi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(j(V))continue;V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?S.state=D.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):j(V)?S.state=D.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=D.ATTRIB_VALUE;else{if(j(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",je(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(j(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:j(V)?S.state=D.ATTRIB:V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)V===">"?Hi(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(j(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;Pe(O,V)?S.script?(S.script+="</"+V,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?Hi(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,kt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var vn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=Qe,S.write(vn)):(S[kt]+=vn,S.entity="",S.state=Qe)}else re(S.entity.length?K:U,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[kt]+="&"+S.entity+V,S.entity="",S.state=Qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(at,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=o(function(){var V=16384,_e=[],Rt,Qe,kt=-1,vn=arguments.length;if(!vn)return"";for(var cn="";++kt<vn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||S(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Rt=(Ht>>10)+55296,Qe=Ht%1024+56320,_e.push(Rt,Qe)),(kt+1===vn||_e.length>V)&&(cn+=I.apply(null,_e),_e.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Pg>"u"?Pg.sax={}:Pg)});var Cg=Ye((nJ,YR)=>{YR.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var xg=Ye((rJ,zR)=>{var LG=Cg().isArray;zR.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!LG(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var tb=Ye((aJ,oF)=>{var RG=qR(),FG={on:o(function(){},"on"),parse:o(function(){},"parse")},it=xg(),al=Cg().isArray,H,eb=!0,$e;function DG(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(DG,"validateOptions");function iF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(iF,"nativeType");function tu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(al(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!al($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),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,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}al($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[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,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(tu,"addField");function rF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(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]=iF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(rF,"manipulateAttributes");function _G(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=rF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}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,tu("instruction",r)}}o(_G,"onInstruction");function JR(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=rF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),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 $e)&&(al(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!al($e[e])&&($e[e]=[$e[e]]),al($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[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]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(JR,"onStartElement");function ZR(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=iF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),tu("text",e))}o(ZR,"onText");function eF(e){H.ignoreComment||(H.trim&&(e=e.trim()),tu("comment",e))}o(eF,"onComment");function tF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(tF,"onEndElement");function VG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),tu("cdata",e))}o(VG,"onCdata");function wG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),tu("doctype",e))}o(wG,"onDoctype");function nF(e){e.note=e}o(nF,"onError");oF.exports=function(e,t){var n=eb?RG.parser(!0,{}):n=new FG.Parser("UTF-8"),i={};if($e=i,H=DG(t),eb?(n.opt={strictEntities:!0},n.onopentag=JR,n.ontext=ZR,n.oncomment=eF,n.onclosetag=tF,n.onerror=nF,n.oncdata=VG,n.ondoctype=wG,n.onprocessinginstruction=_G):(n.on("startElement",JR),n.on("text",ZR),n.on("comment",eF),n.on("endElement",tF),n.on("error",nF)),eb)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 cF=Ye((cJ,sF)=>{var aF=xg(),MG=tb();function kG(e){var t=aF.copyOptions(e);return aF.ensureSpacesExists(t),t}o(kG,"validateOptions");sF.exports=function(e,t){var n,i,r,a;return n=kG(t),i=MG(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var ib=Ye((fJ,yF)=>{var ct=xg(),UG=Cg().isArray,Ei,Ai;function jG(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(jG,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}o(Io,"writeIndentation");function Ig(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ai,Ei));var i,r,a,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,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ai,Ei):i,l.push(t.spaces&&t.indentAttributes?Io(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ai,Ei):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Io(t,n,!1)),l.join("")}o(Ig,"writeAttributes");function
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(BG,"writeElement");function gF(e,t,n,i){return e.reduce(function(r,a){var s=Io(t,n,i&&!r);switch(a.type){case"element":return r+s+BG(a,t,n);case"comment":return r+s+uF(a[t.commentKey],t);case"doctype":return r+s+dF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+pF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+nb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+fF(l,t,n)}},"")}o(gF,"writeElements");function mF(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}o(mF,"hasContentCompact");function HG(e,t,n,i,r){Ei=e,Ai=t;var a="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?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+nb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Ig(e[n.attributesKey],n,i));var l=mF(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(hF(e,n,i+1,!1)),Ei=e,Ai=t,t&&s.push((r?Io(n,i,!1):"")+"</"+a+">"),s.join("")}o(HG,"writeElementCompact");function hF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=UG(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(lF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+fF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+nb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+pF(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+dF(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+uF(s[r],t));break;default:l.push(Io(t,n,i)+HG(s[r],a,t,n,mF(s[r],t)))}i=i&&!l.length}return l.join("")}o(hF,"writeElementsCompact");yF.exports=function(e,t){t=jG(t);var n=[];return Ei=e,Ai="_root_",t.compact?n.push(hF(e,t,0,!0)):(e[t.declarationKey]&&n.push(lF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(gF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var TF=Ye((pJ,vF)=>{var GG=ib();vF.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 GG(n,t)}});var Qs=Ye((dJ,bF)=>{var WG=tb(),KG=cF(),XG=ib(),QG=TF();bF.exports={xml2js:WG,xml2json:KG,js2xml:XG,json2xml:QG}});var xF=Ye(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function qG(e,t,n){let i=[];switch(t){case"EntitySet":AF(e,i);break;case"EntityType":CF(e,i);break;case"NavigationProperty":SF(e,n,i);break;case"Property":PF(e,n,i);break;case"Singleton":break;default:break}return EF(e,n,i),i}o(qG,"convertV2Annotations");qi.convertV2Annotations=qG;function EF(e,t,n){function i(r,a){r&&n.push(a)}if(o(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}]}})}o(EF,"convertGenericAnnotations");qi.convertGenericAnnotations=EF;function AF(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"]}}]}})}o(AF,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=AF;function SF(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}}]}}}]}]}}]}})}o(SF,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=SF;function PF(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}]}}]}})}o(PF,"convertPropertyAnnotations");qi.convertPropertyAnnotations=PF;function CF(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:[]}}]}})}o(CF,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=CF});var FF=Ye(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.parse=void 0;var YG=Qs(),He=ZT(),nu=xF(),Lg=/^Collection\((.+)\)$/;function zG(e){return e.Type!==null&&e.Type!==void 0}o(zG,"isV4NavProperty");function JG(e){return e.map(t=>t._attributes.Name)}o(JG,"getEntityTypeKeys");function NF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:sl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,nu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(NF,"parseProperties");function ZG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(ZG,"parseReferentialConstraint");function eW(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(eW,"parseV2ReferentialConstraint");function LF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(zG(s)){let l=s.Type.match(Lg),u=l!==null,p=Oo(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:ZG((0,He.ensureArray)(a.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,nu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(qs(`${n}/${s.Name}`,g))}return r},[])}o(LF,"parseNavigationProperties");function tW(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.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:a}})}o(tW,"parseAssociationSets");function nW(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:eW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(nW,"parseAssociations");function iW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?JG((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=NF((0,He.ensureArray)(r.Property),a,s,t),p=LF((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,nu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(iW,"parseEntityTypes");function rW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=NF((0,He.ensureArray)(r.Property),[],a,t),l=LF((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(rW,"parseComplexTypes");function oW(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},[])}o(oW,"parseTypeDefinitions");function aW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Oo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(aW,"parseEntitySets");function sW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Oo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(sW,"parseSingletons");function IF(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>sl(u._attributes.Type).type).join(","):s=a?sl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?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:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Lg)!==null:!1}})}o(IF,"parseActions");function cW(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Lg)!==null:!1}})}o(cW,"parseV2FunctionImport");function OF(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:Oo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Oo(r)}})}o(OF,"parseActionImports");function lW(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Ng(s,p,n,!1):u&&(l.value=RF({[u]:a[u]},p,n)),i.Annotation){let g=Fg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(qs(p,g))}}return l})}o(lW,"parsePropertyValues");function Rg(e,t,n){let i=Fg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Oo(e._attributes.Type):void 0,propertyValues:lW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Rg,"parseRecord");function ca(e,t){return e[t]!=null}o(ca,"isExpressionOfType");function Og(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}}}o(Og,"parseModelPath");function ob(e,t,n){if(ca(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Rg(r,t+"/"+a,n));return i.type="Record",i}else if(ca(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Og(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ca(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Og(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ca(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ca(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Og(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ca(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Og(r,"Path"));return i.type="Path",i}else if(ca(e,"If")){let i=(0,He.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[]}o(ob,"parseCollection");function bn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Ng({[i]:r},"",[],!0))):n.push(Ng({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function RF(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"Double":return{type:"Double",Double:parseFloat(e.Double)};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:ob(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:bn(e.Function)};case"And":return{type:"And",$And:bn(e.And)};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};case"If":return{type:"If",$If:bn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(RF,"parseInlineExpression");function Ng(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:bn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._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[a]._text};case"Collection":return{type:"Collection",Collection:ob(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:bn(e.And)};case"Ne":return{type:"Ne",$Ne:bn(e.Ne)};case"Not":return{type:"Not",$Not:bn(e.Not)[0]};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"If":return{type:"If",$If:bn(e.If)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Ng,"parseExpression");function fW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Oo(i),qualifier:r},l=`${t}@${Oo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=RF(a,l,n)),e.Annotation){let p=Fg((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ca(e,"Record")?s.record=Rg(e.Record,l,n):ca(e,"Collection")?s.collection=ob(e.Collection,l,n):u.length===1?s.value=Ng({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(fW,"parseAnnotation");function Fg(e,t,n){return e.map(i=>fW(i,t,n))}o(Fg,"parseAnnotations");function qs(e,t){return{target:e,annotations:t}}o(qs,"createAnnotationList");function uW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(qs(Oo(n._attributes.Target),Fg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(uW,"parseAnnotationLists");function pW(e,t,n){let i=e._attributes.Namespace,r=[],a=iW((0,He.ensureArray)(e.EntityType),r,i),s=rW((0,He.ensureArray)(e.ComplexType),r,i),l=oW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=aW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=sW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=tW((0,He.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(cW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(OF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(OF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(IF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(IF((0,He.ensureArray)(e.Function),i,!0)));let b=nW((0,He.ensureArray)(e.Association),i);uW((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(pW,"parseSchema");function dW(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(dW,"parseReferences");var rb={};function sl(e){let t=e.match(Lg),n=t?t[1]:e,i=Oo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(sl,"unaliasType");function Oo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=rb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(Oo,"unalias");function gW(e){let t=e.reduce((A,b)=>A.concat(b.associations),[]),n=e.reduce((A,b)=>A.concat(b.associationSets),[]),i=e.reduce((A,b)=>A.concat(b.entitySets),[]),r=e.reduce((A,b)=>A.concat(b.singletons),[]),a=e.reduce((A,b)=>A.concat(b.entityTypes),[]),s=e.reduce((A,b)=>A.concat(b.actions),[]),l=e.reduce((A,b)=>A.concat(b.actionImports),[]),u=e.reduce((A,b)=>A.concat(b.complexTypes),[]),p=e.reduce((A,b)=>A.concat(b.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 b=a.find(O=>O.fullyQualifiedName===A.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let F=O,U=n.find(K=>K.association===F.relationship);if(U){let K=U.associationEnd.find(j=>j.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[O.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let O=b,F=t.find(U=>U.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.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:a}}o(gW,"mergeSchemas");function mW(e,t){rb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{rb[n._attributes.Alias]=n._attributes.Namespace})}o(mW,"createAliasMap");function hW(e,t="serviceFile"){let n=(0,YG.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=dW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));mW(a,r);let s=r.map(u=>pW(u,i,t));return new He.RawMetadataInstance(t,i,gW(s),a)}o(hW,"parse");Dg.parse=hW});var DF=Ye(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.parse=cl.merge=void 0;var yW=QR();Object.defineProperty(cl,"merge",{enumerable:!0,get:o(function(){return yW.merge},"get")});var vW=FF();Object.defineProperty(cl,"parse",{enumerable:!0,get:o(function(){return vW.parse},"get")})});var XF=Ye(()=>{var KF;(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)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=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 ws(Object.create(null))}:u?function(){return ws({__proto__:null})}:function(){return ws({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Rf(),b=typeof WeakMap=="function"?WeakMap:Ff(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Gi(),U=Nf(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Rt(k))throw new TypeError;if(!kt(B))throw new TypeError;return an(k,B)}else{if(!Rt(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Kn(ce))throw new TypeError;return Kn(ce)&&(ce=void 0),Q=_e(Q),Wn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function j(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;It(k,B,ce,Le)}return o(Q,"decorator"),Q}o(j,"metadata"),t("metadata",j);function ae(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),It(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),en(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Lt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Pe(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Re(k,B,Q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function D(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Oi(k,B,Q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),Mt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),sn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function je(k,B,Q){if(!at(B))throw new TypeError;if(Fe(Q)||(Q=_e(Q)),!at(B))throw new TypeError;Fe(Q)||(Q=_e(Q));var ce=Nr(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function an(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Kn(Le)){if(!kt(Le))throw new TypeError;B=Le}}return B}o(an,"DecorateConstructor");function Wn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var mn=k[Le],xn=mn(B,Q,ce);if(!Fe(xn)&&!Kn(xn)){if(!at(xn))throw new TypeError;ce=xn}}return ce}o(Wn,"DecorateProperty");function en(k,B,Q){var ce=Lt(k,B,Q);if(ce)return!0;var Le=Gt(B);return Kn(Le)?!1:en(k,Le,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,B,Q){var ce=Nr(B,Q,!1);return Fe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Lt(k,B,Q);if(ce)return Oi(k,B,Q);var Le=Gt(B);if(!Kn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Oi(k,B,Q){var ce=Nr(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Oi,"OrdinaryGetOwnMetadata");function It(k,B,Q,ce){var Le=Nr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=sn(k,B),ce=Gt(k);if(ce===null)return Q;var Le=Mt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var mn=new A,xn=[],tt=0,he=Q;tt<he.length;tt++){var be=he[tt],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}for(var Oe=0,rt=Le;Oe<rt.length;Oe++){var be=rt[Oe],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}return xn}o(Mt,"OrdinaryMetadataKeys");function sn(k,B){var Q=Nr(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(sn,"OrdinaryOwnMetadataKeys");function Hi(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}}o(Hi,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Kn(k){return k===null}o(Kn,"IsNull");function Or(k){return typeof k=="symbol"}o(Or,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function I(k,B){switch(Hi(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=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var mn=k.toString;if(Qe(mn)){var ce=mn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=I(k,3);return Or(B)?B:V(B)}o(_e,"ToPropertyKey");function Rt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Rt,"IsArray");function Qe(k){return typeof k=="function"}o(Qe,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function vn(k){switch(Hi(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function cn(k,B){return k===B||k!==k&&B!==B}o(cn,"SameValueZero");function Ht(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Ht,"GetMethod");function ni(k){var B=Ht(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ni,"GetIterator");function ar(k){return k.value}o(ar,"IteratorValue");function gn(k){var B=k.next();return B.done?!1:B}o(gn,"IteratorStep");function yi(k){var B=k.return;B&&B.call(k)}o(yi,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return B;var Le=ce.constructor;return typeof Le!="function"||Le===k?B:Le}o(Gt,"OrdinaryGetPrototypeOf");function qo(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Vs(n.Reflect));var B,Q,ce,Le=new b,mn={registerProvider:xn,getProvider:he,setProvider:Ce};return mn;function xn(Oe){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(Q):Q=Oe;break;case Q===Oe:break;default:ce===void 0&&(ce=new A),ce.add(Oe);break}}function tt(Oe,rt){if(!Fe(B)){if(B.isProviderFor(Oe,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Oe,rt))return B;if(!Fe(ce))for(var Wt=ni(ce);;){var ln=gn(Wt);if(!ln)return;var sr=ar(ln);if(sr.isProviderFor(Oe,rt))return yi(Wt),sr}}}if(!Fe(k)&&k.isProviderFor(Oe,rt))return k}function he(Oe,rt){var Wt=Le.get(Oe),ln;return Fe(Wt)||(ln=Wt.get(rt)),Fe(ln)&&(ln=tt(Oe,rt),Fe(ln)||(Fe(Wt)&&(Wt=new v,Le.set(Oe,Wt)),Wt.set(rt,ln))),ln}function be(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||Q===Oe||!Fe(ce)&&ce.has(Oe)}function Ce(Oe,rt,Wt){if(!be(Wt))throw new Error("Metadata provider not registered.");var ln=he(Oe,rt);if(ln!==Wt){if(!Fe(ln))return!1;var sr=Le.get(Oe);Fe(sr)&&(sr=new v,Le.set(Oe,sr)),sr.set(rt,Wt)}return!0}}o(qo,"CreateMetadataRegistry");function Gi(){var k;return!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=qo()),!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Gi,"GetOrCreateMetadataRegistry");function Nf(k){var B=new b,Q={isProviderFor:o(function(be,Ce){var Oe=B.get(be);return Fe(Oe)?!1:Oe.has(Ce)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:he};return F.registerProvider(Q),Q;function ce(be,Ce,Oe){var rt=B.get(be),Wt=!1;if(Fe(rt)){if(!Oe)return;rt=new v,B.set(be,rt),Wt=!0}var ln=rt.get(Ce);if(Fe(ln)){if(!Oe)return;if(ln=new v,rt.set(Ce,ln),!k.setProvider(be,Ce,Q))throw rt.delete(Ce),Wt&&B.delete(be),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Le(be,Ce,Oe){var rt=ce(Ce,Oe,!1);return Fe(rt)?!1:Y(rt.has(be))}o(Le,"OrdinaryHasOwnMetadata");function mn(be,Ce,Oe){var rt=ce(Ce,Oe,!1);if(!Fe(rt))return rt.get(be)}o(mn,"OrdinaryGetOwnMetadata");function xn(be,Ce,Oe,rt){var Wt=ce(Oe,rt,!0);Wt.set(be,Ce)}o(xn,"OrdinaryDefineOwnMetadata");function tt(be,Ce){var Oe=[],rt=ce(be,Ce,!1);if(Fe(rt))return Oe;for(var Wt=rt.keys(),ln=ni(Wt),sr=0;;){var yd=gn(ln);if(!yd)return Oe.length=sr,Oe;var sv=ar(yd);try{Oe[sr]=sv}catch(Df){try{yi(ln)}finally{throw Df}}sr++}}o(tt,"OrdinaryOwnMetadataKeys");function he(be,Ce,Oe){var rt=ce(Ce,Oe,!1);if(Fe(rt)||!rt.delete(be))return!1;if(rt.size===0){var Wt=B.get(Ce);Fe(Wt)||(Wt.delete(Oe),Wt.size===0&&B.delete(Wt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Nf,"CreateMetadataProvider");function Vs(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,mn=k.deleteMetadata,xn=new b,tt={isProviderFor:o(function(he,be){var Ce=xn.get(he);return!Fe(Ce)&&Ce.has(be)?!0:Le(he,be).length?(Fe(Ce)&&(Ce=new A,xn.set(he,Ce)),Ce.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return tt}o(Vs,"CreateFallbackProvider");function Nr(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,U))return U;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Lf(){var k={},B=[],Q=function(){function tt(he,be,Ce){this._index=0,this._keys=he,this._values=be,this._selector=Ce}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},tt.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(he){return this._find(he,!1)>=0},tt.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},tt.prototype.set=function(he,be){var Ce=this._find(he,!0);return this._values[Ce]=be,this},tt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var Ce=this._keys.length,Oe=be+1;Oe<Ce;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,cn(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,mn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(he,be){if(!cn(this._cacheKey,he)){this._cacheIndex=-1;for(var Ce=0;Ce<this._keys.length;Ce++)if(cn(this._keys[Ce],he)){this._cacheIndex=Ce;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},tt}();return ce;function Le(tt,he){return tt}function mn(tt,he){return he}function xn(tt,he){return[tt,he]}}o(Lf,"CreateMapPolyfill");function Rf(){var k=function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(Q){return this._map.has(Q)},B.prototype.add=function(Q){return this._map.set(Q,Q),this},B.prototype.delete=function(Q){return this._map.delete(Q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return k}o(Rf,"CreateSetPolyfill");function Ff(){var k=16,B=g.create(),Q=ce();return function(){function he(){this._key=ce()}return o(he,"WeakMap"),he.prototype.has=function(be){var Ce=Le(be,!1);return Ce!==void 0?g.has(Ce,this._key):!1},he.prototype.get=function(be){var Ce=Le(be,!1);return Ce!==void 0?g.get(Ce,this._key):void 0},he.prototype.set=function(be,Ce){var Oe=Le(be,!0);return Oe[this._key]=Ce,this},he.prototype.delete=function(be){var Ce=Le(be,!1);return Ce!==void 0?delete Ce[this._key]:!1},he.prototype.clear=function(){this._key=ce()},he}();function ce(){var he;do he="@@WeakMap@@"+tt();while(g.has(B,he));return B[he]=!0,he}function Le(he,be){if(!i.call(he,Q)){if(!be)return;Object.defineProperty(he,Q,{value:g.create()})}return he[Q]}function mn(he,be){for(var Ce=0;Ce<be;++Ce)he[Ce]=Math.random()*255|0;return he}function xn(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):mn(be,he),be}return mn(new Array(he),he)}function tt(){var he=xn(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",Ce=0;Ce<k;++Ce){var Oe=he[Ce];(Ce===4||Ce===6||Ce===8)&&(be+="-"),Oe<16&&(be+="0"),be+=Oe.toString(16).toLowerCase()}return be}}o(Ff,"CreateWeakMapPolyfill");function ws(k){return k.__=void 0,delete k.__,k}o(ws,"MakeDictionary")})})(KF||(KF={}))});var ZF=Ye((VJ,JF)=>{var GW=0,zF="changeUtils: ";function WW(){return"id-"+new Date().valueOf()+"-"+GW++}o(WW,"uid");function KW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(KW,"appendComponentToReference");function XW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return KW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(XW,"getFlexReference");function QW(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}o(QW,"getAppVersion");function qW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(qW,"getProjectId");function YF(e){return JSON.stringify({fileName:e.id||WW().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:zF+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})}o(YF,"createString");JF.exports={parse:o(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(zF,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(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=XW(t),e.appVersion=QW(t),e.projectId=qW(t,e.reference),YF(e)},"createChangeString"),toString:o(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 YF(e)},"toString")}});var t0=Ye((MJ,e0)=>{e0.exports={change:ZF()}});var X0=Ye($r=>{"use strict";var L8=/[|\\{}()[\]^$+*?.]/g,R8=Object.prototype.hasOwnProperty,Qb=o(function(e,t){return R8.apply(e,[t])},"hasOwn");$r.escapeRegExpChars=function(e){return e?String(e).replace(L8,"\\$&"):""};var F8={"&":"&","<":"<",">":">",'"':""","'":"'"},D8=/[&<>'"]/g;function _8(e){return F8[e]||e}o(_8,"encode_char");var V8=`var _ENCODE_HTML_RULES = {
|
|
27
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(_e,Y-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!j(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=D.TEXT_ENTITY:S.textNode+=V);continue;case D.SCRIPT:V==="<"?S.state=D.SCRIPT_ENDING:S.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+V,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!j(V))if(re(O,V))S.state=D.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Rt=S.position-S.startTagPosition;V=new Array(Rt).join(" ")+V}S.textNode+="<"+V,S.state=D.TEXT}continue;case D.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=D.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=D.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(je(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(je(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ae(V)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(S.state=D.TEXT,je(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:ae(V)&&(S.state=D.DOCTYPE_QUOTED,S.q=V));continue;case D.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=D.DOCTYPE):V==="<"?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=D.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:V==="-"?S.state=D.COMMENT_ENDING:S.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(S.state=D.COMMENT_ENDED,S.comment=Wn(S.opt,S.comment),S.comment&&je(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=D.COMMENT):S.doctype&&S.doctype!==!0?S.state=D.DOCTYPE_DTD:S.state=D.TEXT;continue;case D.CDATA:V==="]"?S.state=D.CDATA_ENDING:S.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(S.cdata&&je(S,"oncdata",S.cdata),je(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=D.CDATA);continue;case D.PROC_INST:V==="?"?S.state=D.PROC_INST_ENDING:j(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&j(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(je(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+V,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:re(F,V)?S.tagName+=V:(Oi(S),V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(j(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(sn(S,!0),Hi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(j(V))continue;V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?S.state=D.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):j(V)?S.state=D.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=D.ATTRIB_VALUE;else{if(j(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",je(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(j(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:j(V)?S.state=D.ATTRIB:V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)V===">"?Hi(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(j(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;Pe(O,V)?S.script?(S.script+="</"+V,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?Hi(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,kt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var vn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=Qe,S.write(vn)):(S[kt]+=vn,S.entity="",S.state=Qe)}else re(S.entity.length?K:U,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[kt]+="&"+S.entity+V,S.entity="",S.state=Qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(at,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=o(function(){var V=16384,_e=[],Rt,Qe,kt=-1,vn=arguments.length;if(!vn)return"";for(var cn="";++kt<vn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||S(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Rt=(Ht>>10)+55296,Qe=Ht%1024+56320,_e.push(Rt,Qe)),(kt+1===vn||_e.length>V)&&(cn+=I.apply(null,_e),_e.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Pg>"u"?Pg.sax={}:Pg)});var Cg=Ye((iJ,zR)=>{zR.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var xg=Ye((oJ,JR)=>{var LG=Cg().isArray;JR.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!LG(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var ib=Ye((sJ,aF)=>{var RG=YR(),FG={on:o(function(){},"on"),parse:o(function(){},"parse")},it=xg(),al=Cg().isArray,H,nb=!0,$e;function DG(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(DG,"validateOptions");function rF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(rF,"nativeType");function nu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(al(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!al($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),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,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}al($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[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,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(nu,"addField");function oF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(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]=rF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(oF,"manipulateAttributes");function _G(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=oF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}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,nu("instruction",r)}}o(_G,"onInstruction");function ZR(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=oF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),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 $e)&&(al(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!al($e[e])&&($e[e]=[$e[e]]),al($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[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]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(ZR,"onStartElement");function eF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=rF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),nu("text",e))}o(eF,"onText");function tF(e){H.ignoreComment||(H.trim&&(e=e.trim()),nu("comment",e))}o(tF,"onComment");function nF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(nF,"onEndElement");function VG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),nu("cdata",e))}o(VG,"onCdata");function wG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),nu("doctype",e))}o(wG,"onDoctype");function iF(e){e.note=e}o(iF,"onError");aF.exports=function(e,t){var n=nb?RG.parser(!0,{}):n=new FG.Parser("UTF-8"),i={};if($e=i,H=DG(t),nb?(n.opt={strictEntities:!0},n.onopentag=ZR,n.ontext=eF,n.oncomment=tF,n.onclosetag=nF,n.onerror=iF,n.oncdata=VG,n.ondoctype=wG,n.onprocessinginstruction=_G):(n.on("startElement",ZR),n.on("text",eF),n.on("comment",tF),n.on("endElement",nF),n.on("error",iF)),nb)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 lF=Ye((lJ,cF)=>{var sF=xg(),MG=ib();function kG(e){var t=sF.copyOptions(e);return sF.ensureSpacesExists(t),t}o(kG,"validateOptions");cF.exports=function(e,t){var n,i,r,a;return n=kG(t),i=MG(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var ob=Ye((uJ,vF)=>{var ct=xg(),UG=Cg().isArray,Ei,Ai;function jG(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(jG,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}o(Io,"writeIndentation");function Ig(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ai,Ei));var i,r,a,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,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ai,Ei):i,l.push(t.spaces&&t.indentAttributes?Io(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ai,Ei):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Io(t,n,!1)),l.join("")}o(Ig,"writeAttributes");function fF(e,t,n){return Ei=e,Ai="xml",t.ignoreDeclaration?"":"<?xml"+Ig(e[t.attributesKey],t,n)+"?>"}o(fF,"writeDeclaration");function uF(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],Ai,Ei):i;if(typeof e[i]=="object")return Ei=e,Ai=r,"<?"+r+Ig(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ai,Ei)),"<?"+r+(a?" "+a:"")+"?>"}o(uF,"writeInstruction");function pF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ai,Ei):e)+"-->"}o(pF,"writeComment");function dF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ai,Ei):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(dF,"writeCdata");function gF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ai,Ei):e)+">"}o(gF,"writeDoctype");function rb(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,Ai,Ei):e)}o(rb,"writeText");function $G(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}o($G,"hasContent");function BG(e,t,n){Ei=e,Ai=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Ig(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(mF(e[t.elementsKey],t,n+1)),Ei=e,Ai=e.name),i.push(t.spaces&&$G(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(BG,"writeElement");function mF(e,t,n,i){return e.reduce(function(r,a){var s=Io(t,n,i&&!r);switch(a.type){case"element":return r+s+BG(a,t,n);case"comment":return r+s+pF(a[t.commentKey],t);case"doctype":return r+s+gF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+dF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+rb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+uF(l,t,n)}},"")}o(mF,"writeElements");function hF(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}o(hF,"hasContentCompact");function HG(e,t,n,i,r){Ei=e,Ai=t;var a="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?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+rb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Ig(e[n.attributesKey],n,i));var l=hF(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)),Ei=e,Ai=t,t&&s.push((r?Io(n,i,!1):"")+"</"+a+">"),s.join("")}o(HG,"writeElementCompact");function yF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=UG(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(fF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+uF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+rb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+dF(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+gF(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+pF(s[r],t));break;default:l.push(Io(t,n,i)+HG(s[r],a,t,n,hF(s[r],t)))}i=i&&!l.length}return l.join("")}o(yF,"writeElementsCompact");vF.exports=function(e,t){t=jG(t);var n=[];return Ei=e,Ai="_root_",t.compact?n.push(yF(e,t,0,!0)):(e[t.declarationKey]&&n.push(fF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(mF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var bF=Ye((dJ,TF)=>{var GG=ob();TF.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 GG(n,t)}});var Qs=Ye((gJ,EF)=>{var WG=ib(),KG=lF(),XG=ob(),QG=bF();EF.exports={xml2js:WG,xml2json:KG,js2xml:XG,json2xml:QG}});var IF=Ye(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function qG(e,t,n){let i=[];switch(t){case"EntitySet":SF(e,i);break;case"EntityType":xF(e,i);break;case"NavigationProperty":PF(e,n,i);break;case"Property":CF(e,n,i);break;case"Singleton":break;default:break}return AF(e,n,i),i}o(qG,"convertV2Annotations");qi.convertV2Annotations=qG;function AF(e,t,n){function i(r,a){r&&n.push(a)}if(o(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}]}})}o(AF,"convertGenericAnnotations");qi.convertGenericAnnotations=AF;function SF(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"]}}]}})}o(SF,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=SF;function PF(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}}]}}}]}]}}]}})}o(PF,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=PF;function CF(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}]}}]}})}o(CF,"convertPropertyAnnotations");qi.convertPropertyAnnotations=CF;function xF(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:[]}}]}})}o(xF,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=xF});var DF=Ye(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.parse=void 0;var YG=Qs(),He=tb(),iu=IF(),Lg=/^Collection\((.+)\)$/;function zG(e){return e.Type!==null&&e.Type!==void 0}o(zG,"isV4NavProperty");function JG(e){return e.map(t=>t._attributes.Name)}o(JG,"getEntityTypeKeys");function LF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:sl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,iu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(LF,"parseProperties");function ZG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(ZG,"parseReferentialConstraint");function eW(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(eW,"parseV2ReferentialConstraint");function RF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(zG(s)){let l=s.Type.match(Lg),u=l!==null,p=Oo(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:ZG((0,He.ensureArray)(a.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,iu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(qs(`${n}/${s.Name}`,g))}return r},[])}o(RF,"parseNavigationProperties");function tW(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.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:a}})}o(tW,"parseAssociationSets");function nW(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:eW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(nW,"parseAssociations");function iW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?JG((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=LF((0,He.ensureArray)(r.Property),a,s,t),p=RF((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,iu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(iW,"parseEntityTypes");function rW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=LF((0,He.ensureArray)(r.Property),[],a,t),l=RF((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(rW,"parseComplexTypes");function oW(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},[])}o(oW,"parseTypeDefinitions");function aW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Oo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,iu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(aW,"parseEntitySets");function sW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Oo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,iu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(qs(l.fullyQualifiedName,u)),l})}o(sW,"parseSingletons");function OF(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>sl(u._attributes.Type).type).join(","):s=a?sl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?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:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Lg)!==null:!1}})}o(OF,"parseActions");function cW(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Lg)!==null:!1}})}o(cW,"parseV2FunctionImport");function NF(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:Oo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Oo(r)}})}o(NF,"parseActionImports");function lW(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Ng(s,p,n,!1):u&&(l.value=FF({[u]:a[u]},p,n)),i.Annotation){let g=Fg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(qs(p,g))}}return l})}o(lW,"parsePropertyValues");function Rg(e,t,n){let i=Fg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Oo(e._attributes.Type):void 0,propertyValues:lW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Rg,"parseRecord");function la(e,t){return e[t]!=null}o(la,"isExpressionOfType");function Og(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}}}o(Og,"parseModelPath");function sb(e,t,n){if(la(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Rg(r,t+"/"+a,n));return i.type="Record",i}else if(la(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Og(r,"PropertyPath"));return i.type="PropertyPath",i}else if(la(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Og(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(la(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(la(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Og(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(la(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Og(r,"Path"));return i.type="Path",i}else if(la(e,"If")){let i=(0,He.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[]}o(sb,"parseCollection");function bn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Ng({[i]:r},"",[],!0))):n.push(Ng({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function FF(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"Double":return{type:"Double",Double:parseFloat(e.Double)};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:sb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:bn(e.Function)};case"And":return{type:"And",$And:bn(e.And)};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};case"If":return{type:"If",$If:bn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(FF,"parseInlineExpression");function Ng(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:bn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._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[a]._text};case"Collection":return{type:"Collection",Collection:sb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:bn(e.And)};case"Ne":return{type:"Ne",$Ne:bn(e.Ne)};case"Not":return{type:"Not",$Not:bn(e.Not)[0]};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"If":return{type:"If",$If:bn(e.If)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Ng,"parseExpression");function fW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Oo(i),qualifier:r},l=`${t}@${Oo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=FF(a,l,n)),e.Annotation){let p=Fg((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return la(e,"Record")?s.record=Rg(e.Record,l,n):la(e,"Collection")?s.collection=sb(e.Collection,l,n):u.length===1?s.value=Ng({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(fW,"parseAnnotation");function Fg(e,t,n){return e.map(i=>fW(i,t,n))}o(Fg,"parseAnnotations");function qs(e,t){return{target:e,annotations:t}}o(qs,"createAnnotationList");function uW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(qs(Oo(n._attributes.Target),Fg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(uW,"parseAnnotationLists");function pW(e,t,n){let i=e._attributes.Namespace,r=[],a=iW((0,He.ensureArray)(e.EntityType),r,i),s=rW((0,He.ensureArray)(e.ComplexType),r,i),l=oW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=aW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=sW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=tW((0,He.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(cW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(NF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(NF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(OF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(OF((0,He.ensureArray)(e.Function),i,!0)));let b=nW((0,He.ensureArray)(e.Association),i);uW((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(pW,"parseSchema");function dW(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(dW,"parseReferences");var ab={};function sl(e){let t=e.match(Lg),n=t?t[1]:e,i=Oo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(sl,"unaliasType");function Oo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=ab[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(Oo,"unalias");function gW(e){let t=e.reduce((A,b)=>A.concat(b.associations),[]),n=e.reduce((A,b)=>A.concat(b.associationSets),[]),i=e.reduce((A,b)=>A.concat(b.entitySets),[]),r=e.reduce((A,b)=>A.concat(b.singletons),[]),a=e.reduce((A,b)=>A.concat(b.entityTypes),[]),s=e.reduce((A,b)=>A.concat(b.actions),[]),l=e.reduce((A,b)=>A.concat(b.actionImports),[]),u=e.reduce((A,b)=>A.concat(b.complexTypes),[]),p=e.reduce((A,b)=>A.concat(b.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 b=a.find(O=>O.fullyQualifiedName===A.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let F=O,U=n.find(K=>K.association===F.relationship);if(U){let K=U.associationEnd.find(j=>j.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[O.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let O=b,F=t.find(U=>U.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.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:a}}o(gW,"mergeSchemas");function mW(e,t){ab=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{ab[n._attributes.Alias]=n._attributes.Namespace})}o(mW,"createAliasMap");function hW(e,t="serviceFile"){let n=(0,YG.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=dW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));mW(a,r);let s=r.map(u=>pW(u,i,t));return new He.RawMetadataInstance(t,i,gW(s),a)}o(hW,"parse");Dg.parse=hW});var _F=Ye(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.parse=cl.merge=void 0;var yW=qR();Object.defineProperty(cl,"merge",{enumerable:!0,get:o(function(){return yW.merge},"get")});var vW=DF();Object.defineProperty(cl,"parse",{enumerable:!0,get:o(function(){return vW.parse},"get")})});var QF=Ye(()=>{var XF;(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)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=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 ws(Object.create(null))}:u?function(){return ws({__proto__:null})}:function(){return ws({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Rf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ff(),b=typeof WeakMap=="function"?WeakMap:Df(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Gi(),U=Lf(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Rt(k))throw new TypeError;if(!kt(B))throw new TypeError;return an(k,B)}else{if(!Rt(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Kn(ce))throw new TypeError;return Kn(ce)&&(ce=void 0),Q=_e(Q),Wn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function j(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;It(k,B,ce,Le)}return o(Q,"decorator"),Q}o(j,"metadata"),t("metadata",j);function ae(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),It(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),en(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Lt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Pe(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Re(k,B,Q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function D(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Oi(k,B,Q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),Mt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),sn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function je(k,B,Q){if(!at(B))throw new TypeError;if(Fe(Q)||(Q=_e(Q)),!at(B))throw new TypeError;Fe(Q)||(Q=_e(Q));var ce=Nr(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function an(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Kn(Le)){if(!kt(Le))throw new TypeError;B=Le}}return B}o(an,"DecorateConstructor");function Wn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var mn=k[Le],xn=mn(B,Q,ce);if(!Fe(xn)&&!Kn(xn)){if(!at(xn))throw new TypeError;ce=xn}}return ce}o(Wn,"DecorateProperty");function en(k,B,Q){var ce=Lt(k,B,Q);if(ce)return!0;var Le=Gt(B);return Kn(Le)?!1:en(k,Le,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,B,Q){var ce=Nr(B,Q,!1);return Fe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Lt(k,B,Q);if(ce)return Oi(k,B,Q);var Le=Gt(B);if(!Kn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Oi(k,B,Q){var ce=Nr(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Oi,"OrdinaryGetOwnMetadata");function It(k,B,Q,ce){var Le=Nr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=sn(k,B),ce=Gt(k);if(ce===null)return Q;var Le=Mt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var mn=new A,xn=[],tt=0,he=Q;tt<he.length;tt++){var be=he[tt],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}for(var Oe=0,rt=Le;Oe<rt.length;Oe++){var be=rt[Oe],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}return xn}o(Mt,"OrdinaryMetadataKeys");function sn(k,B){var Q=Nr(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(sn,"OrdinaryOwnMetadataKeys");function Hi(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}}o(Hi,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Kn(k){return k===null}o(Kn,"IsNull");function Or(k){return typeof k=="symbol"}o(Or,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function I(k,B){switch(Hi(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=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var mn=k.toString;if(Qe(mn)){var ce=mn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=I(k,3);return Or(B)?B:V(B)}o(_e,"ToPropertyKey");function Rt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Rt,"IsArray");function Qe(k){return typeof k=="function"}o(Qe,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function vn(k){switch(Hi(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function cn(k,B){return k===B||k!==k&&B!==B}o(cn,"SameValueZero");function Ht(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Ht,"GetMethod");function ni(k){var B=Ht(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ni,"GetIterator");function ar(k){return k.value}o(ar,"IteratorValue");function gn(k){var B=k.next();return B.done?!1:B}o(gn,"IteratorStep");function yi(k){var B=k.return;B&&B.call(k)}o(yi,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return B;var Le=ce.constructor;return typeof Le!="function"||Le===k?B:Le}o(Gt,"OrdinaryGetPrototypeOf");function Yo(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Vs(n.Reflect));var B,Q,ce,Le=new b,mn={registerProvider:xn,getProvider:he,setProvider:Ce};return mn;function xn(Oe){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(Q):Q=Oe;break;case Q===Oe:break;default:ce===void 0&&(ce=new A),ce.add(Oe);break}}function tt(Oe,rt){if(!Fe(B)){if(B.isProviderFor(Oe,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Oe,rt))return B;if(!Fe(ce))for(var Wt=ni(ce);;){var ln=gn(Wt);if(!ln)return;var sr=ar(ln);if(sr.isProviderFor(Oe,rt))return yi(Wt),sr}}}if(!Fe(k)&&k.isProviderFor(Oe,rt))return k}function he(Oe,rt){var Wt=Le.get(Oe),ln;return Fe(Wt)||(ln=Wt.get(rt)),Fe(ln)&&(ln=tt(Oe,rt),Fe(ln)||(Fe(Wt)&&(Wt=new v,Le.set(Oe,Wt)),Wt.set(rt,ln))),ln}function be(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||Q===Oe||!Fe(ce)&&ce.has(Oe)}function Ce(Oe,rt,Wt){if(!be(Wt))throw new Error("Metadata provider not registered.");var ln=he(Oe,rt);if(ln!==Wt){if(!Fe(ln))return!1;var sr=Le.get(Oe);Fe(sr)&&(sr=new v,Le.set(Oe,sr)),sr.set(rt,Wt)}return!0}}o(Yo,"CreateMetadataRegistry");function Gi(){var k;return!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=Yo()),!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Gi,"GetOrCreateMetadataRegistry");function Lf(k){var B=new b,Q={isProviderFor:o(function(be,Ce){var Oe=B.get(be);return Fe(Oe)?!1:Oe.has(Ce)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:he};return F.registerProvider(Q),Q;function ce(be,Ce,Oe){var rt=B.get(be),Wt=!1;if(Fe(rt)){if(!Oe)return;rt=new v,B.set(be,rt),Wt=!0}var ln=rt.get(Ce);if(Fe(ln)){if(!Oe)return;if(ln=new v,rt.set(Ce,ln),!k.setProvider(be,Ce,Q))throw rt.delete(Ce),Wt&&B.delete(be),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Le(be,Ce,Oe){var rt=ce(Ce,Oe,!1);return Fe(rt)?!1:Y(rt.has(be))}o(Le,"OrdinaryHasOwnMetadata");function mn(be,Ce,Oe){var rt=ce(Ce,Oe,!1);if(!Fe(rt))return rt.get(be)}o(mn,"OrdinaryGetOwnMetadata");function xn(be,Ce,Oe,rt){var Wt=ce(Oe,rt,!0);Wt.set(be,Ce)}o(xn,"OrdinaryDefineOwnMetadata");function tt(be,Ce){var Oe=[],rt=ce(be,Ce,!1);if(Fe(rt))return Oe;for(var Wt=rt.keys(),ln=ni(Wt),sr=0;;){var yd=gn(ln);if(!yd)return Oe.length=sr,Oe;var lv=ar(yd);try{Oe[sr]=lv}catch(_f){try{yi(ln)}finally{throw _f}}sr++}}o(tt,"OrdinaryOwnMetadataKeys");function he(be,Ce,Oe){var rt=ce(Ce,Oe,!1);if(Fe(rt)||!rt.delete(be))return!1;if(rt.size===0){var Wt=B.get(Ce);Fe(Wt)||(Wt.delete(Oe),Wt.size===0&&B.delete(Wt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Lf,"CreateMetadataProvider");function Vs(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,mn=k.deleteMetadata,xn=new b,tt={isProviderFor:o(function(he,be){var Ce=xn.get(he);return!Fe(Ce)&&Ce.has(be)?!0:Le(he,be).length?(Fe(Ce)&&(Ce=new A,xn.set(he,Ce)),Ce.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return tt}o(Vs,"CreateFallbackProvider");function Nr(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,U))return U;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Rf(){var k={},B=[],Q=function(){function tt(he,be,Ce){this._index=0,this._keys=he,this._values=be,this._selector=Ce}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},tt.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(he){return this._find(he,!1)>=0},tt.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},tt.prototype.set=function(he,be){var Ce=this._find(he,!0);return this._values[Ce]=be,this},tt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var Ce=this._keys.length,Oe=be+1;Oe<Ce;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,cn(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,mn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(he,be){if(!cn(this._cacheKey,he)){this._cacheIndex=-1;for(var Ce=0;Ce<this._keys.length;Ce++)if(cn(this._keys[Ce],he)){this._cacheIndex=Ce;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},tt}();return ce;function Le(tt,he){return tt}function mn(tt,he){return he}function xn(tt,he){return[tt,he]}}o(Rf,"CreateMapPolyfill");function Ff(){var k=function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(Q){return this._map.has(Q)},B.prototype.add=function(Q){return this._map.set(Q,Q),this},B.prototype.delete=function(Q){return this._map.delete(Q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return k}o(Ff,"CreateSetPolyfill");function Df(){var k=16,B=g.create(),Q=ce();return function(){function he(){this._key=ce()}return o(he,"WeakMap"),he.prototype.has=function(be){var Ce=Le(be,!1);return Ce!==void 0?g.has(Ce,this._key):!1},he.prototype.get=function(be){var Ce=Le(be,!1);return Ce!==void 0?g.get(Ce,this._key):void 0},he.prototype.set=function(be,Ce){var Oe=Le(be,!0);return Oe[this._key]=Ce,this},he.prototype.delete=function(be){var Ce=Le(be,!1);return Ce!==void 0?delete Ce[this._key]:!1},he.prototype.clear=function(){this._key=ce()},he}();function ce(){var he;do he="@@WeakMap@@"+tt();while(g.has(B,he));return B[he]=!0,he}function Le(he,be){if(!i.call(he,Q)){if(!be)return;Object.defineProperty(he,Q,{value:g.create()})}return he[Q]}function mn(he,be){for(var Ce=0;Ce<be;++Ce)he[Ce]=Math.random()*255|0;return he}function xn(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):mn(be,he),be}return mn(new Array(he),he)}function tt(){var he=xn(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",Ce=0;Ce<k;++Ce){var Oe=he[Ce];(Ce===4||Ce===6||Ce===8)&&(be+="-"),Oe<16&&(be+="0"),be+=Oe.toString(16).toLowerCase()}return be}}o(Df,"CreateWeakMapPolyfill");function ws(k){return k.__=void 0,delete k.__,k}o(ws,"MakeDictionary")})})(XF||(XF={}))});var e0=Ye((wJ,ZF)=>{var GW=0,JF="changeUtils: ";function WW(){return"id-"+new Date().valueOf()+"-"+GW++}o(WW,"uid");function KW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(KW,"appendComponentToReference");function XW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return KW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(XW,"getFlexReference");function QW(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}o(QW,"getAppVersion");function qW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(qW,"getProjectId");function zF(e){return JSON.stringify({fileName:e.id||WW().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:JF+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})}o(zF,"createString");ZF.exports={parse:o(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(JF,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(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=XW(t),e.appVersion=QW(t),e.projectId=qW(t,e.reference),zF(e)},"createChangeString"),toString:o(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 zF(e)},"toString")}});var n0=Ye((kJ,t0)=>{t0.exports={change:e0()}});var Q0=Ye($r=>{"use strict";var L8=/[|\\{}()[\]^$+*?.]/g,R8=Object.prototype.hasOwnProperty,Yb=o(function(e,t){return R8.apply(e,[t])},"hasOwn");$r.escapeRegExpChars=function(e){return e?String(e).replace(L8,"\\$&"):""};var F8={"&":"&","<":"<",">":">",'"':""","'":"'"},D8=/[&<>'"]/g;function _8(e){return F8[e]||e}o(_8,"encode_char");var V8=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,17 +37,17 @@ Actual: `+I.attribValue);else{var _e=I.tag,Rt=I.tags[I.tags.length-1]||I;_e.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;$r.escapeXML=function(e){return e==null?"":String(e).replace(D8,_8)};function
|
|
41
|
-
`+V8}o(
|
|
40
|
+
`;$r.escapeXML=function(e){return e==null?"":String(e).replace(D8,_8)};function X0(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+V8}o(X0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty($r.escapeXML,"toString",{value:X0}):$r.escapeXML.toString=X0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}$r.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Yb(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};$r.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(!Yb(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};$r.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};$r.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};$r.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();$r.hasOwnOnlyObject=function(e){var t=$r.createNullProtoObjWherePossible();for(var n in e)Yb(e,n)&&(t[n]=e[n]);return t}});var q0=Ye((iee,w8)=>{w8.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 r1=Ye(Pt=>{"use strict";var Jb=require("fs"),Au=require("path"),Nn=Q0(),Y0=!1,M8=q0().version,k8="<",U8=">",j8="%",n1="locals",$8="ejs",B8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",i1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],H8=i1.concat("cache"),z0=/^\uFEFF/,zb=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Nn.cache;Pt.fileLoader=Jb.readFileSync;Pt.localsName=n1;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Au.dirname,r=Au.extname,a=Au.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function J0(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),Jb.existsSync(n)}))return n}o(J0,"resolvePaths");function G8(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=J0(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),Jb.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=J0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(G8,"getIncludePath");function Su(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=Pt.cache.get(i),n)return n;r||(t=Z0(i).toString().replace(z0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Z0(i).toString().replace(z0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Su,"handleCache");function W8(e,t,n){var i;if(n){try{i=Su(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Pt.promiseImpl=="function")return new Pt.promiseImpl(function(r,a){try{i=Su(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(W8,"tryHandleCache");function Z0(e){return Pt.fileLoader(e)}o(Z0,"fileLoader");function K8(e,t){var n=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),t);if(n.filename=G8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Su(n,i.template)}return Su(n)}o(K8,"includeFile");function e1(e,t,n,i,r){var a=t.split(`
|
|
42
42
|
`),s=Math.max(i-3,0),l=Math.min(a.length,i+3),u=r(n),p=a.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}o(
|
|
46
|
+
`+e.message,e}o(e1,"rethrow");function t1(e){return e.replace(/;(\s*$)/,"$1")}o(t1,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(Y0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Y0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Nn.createNullProtoObjWherePossible(),r=n||Nn.createNullProtoObjWherePossible();return arguments.length==2&&Nn.shallowCopyFromList(r,i,i1),Su(r,e)(i)};Pt.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Nn.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&Nn.shallowCopy(i,a)),Nn.shallowCopyFromList(i,r,H8)),i.filename=t):r=Nn.createNullProtoObjWherePossible(),W8(i,r,n)};Pt.Template=Hn;Pt.clearCache=function(){Pt.cache.reset()};function Hn(e,t){var n=Nn.hasOwnOnlyObject(t),i=Nn.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||Nn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||k8,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||U8,i.delimiter=n.delimiter||Pt.delimiter||j8,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||Pt.localsName||n1,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()}o(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:o(function(){var e=B8,t=Nn.escapeRegExpChars(this.opts.delimiter),n=Nn.escapeRegExpChars(this.opts.openDelimiter),i=Nn.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",a=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
|
-
`,n.outputFunctionName){if(!
|
|
49
|
-
`}if(n.localsName&&!
|
|
50
|
-
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!
|
|
48
|
+
`,n.outputFunctionName){if(!zb.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
|
+
`}if(n.localsName&&!zb.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+` || {}),
|
|
50
|
+
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!zb.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
|
|
51
51
|
`),u+=g+" = __locals."+g}i+=u+`;
|
|
52
52
|
`}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
|
|
53
53
|
`,r+=` }
|
|
@@ -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 || "+a.toString()+`;
|
|
63
|
-
`+e,n.compileDebug&&(e="rethrow = rethrow || "+
|
|
63
|
+
`+e,n.compileDebug&&(e="rethrow = rethrow || "+e1.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
|
`,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
|
|
71
|
-
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var F=o(function(U,K){var j=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),O);return K&&(j=Nn.shallowCopy(j,K)),K8(U,n)(j)},"include");return t.apply(n.context,[O||Nn.createNullProtoObjWherePossible(),a,F,
|
|
71
|
+
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var F=o(function(U,K){var j=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),O);return K&&(j=Nn.shallowCopy(j,K)),K8(U,n)(j)},"include");return t.apply(n.context,[O||Nn.createNullProtoObjWherePossible(),a,F,e1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,A=Au.basename(v,Au.extname(v));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(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,a=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+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(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},"parseTemplateText"),_addOutput:o(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
|
`},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=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,10 +76,10 @@ 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("+
|
|
80
|
-
`;break;case Hn.modes.RAW:this.source+=" ; __append("+
|
|
79
|
+
`;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+t1(e)+`))
|
|
80
|
+
`;break;case Hn.modes.RAW:this.source+=" ; __append("+t1(e)+`)
|
|
81
81
|
`;break;case Hn.modes.COMMENT:break;case Hn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=M8;Pt.name=$8;typeof window<"u"&&(window.ejs=Pt)});var tp,
|
|
82
|
+
`)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=M8;Pt.name=$8;typeof window<"u"&&(window.ejs=Pt)});var tp,UA=qe(()=>{tp="7.1.1"});function ot(e){return e&&e.length===0}function Mi(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 W1(e,t){for(var n=[],i=Mi(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function pe(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Ln(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Ln(i)):t.push(i)}return t}function Ci(e){return ot(e)?void 0:e[0]}function _h(e){var t=e&&e.length;return t?e[t-1]:void 0}function ve(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Vh(e))for(var i=Mi(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function Hr(e){return typeof e=="string"}function xi(e){return e===void 0}function go(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function gs(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Gr(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 ba(e,t){return Gr(e,function(n){return!t(n)})}function Tr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function Ie(e,t){return Vh(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return Ea(e,function(n){return n===t})!==void 0}function An(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function ms(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Ea(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function K1(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 un(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Aa(e){return ba(e,function(t){return t==null})}function np(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return un(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function vre(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 fi(e){return Array.isArray(e)}function mo(e){return e instanceof RegExp}function Vh(e){return e instanceof Object}function ui(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Ic(e,t){return ba(e,function(n){return Vt(t,n)})}function wh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function X1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Tre(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function bre(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 br(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],a=Mi(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function h7(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],a=Mi(r),s=0;s<a.length;s++){var l=a[s];Ie(e,l)||(e[l]=r[l])}return e}function ip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return h7.apply(null,[{}].concat(e))}function Q1(e,t){var n={};return ve(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function jA(e,t){for(var n=ms(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Mn(){}function $A(e){return e}function q1(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 rp(e){console&&console.error&&console.error("Error: "+e)}function Mh(e){console&&console.warn&&console.warn("Warning: "+e)}function BA(){return typeof Map=="function"}function Y1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function kh(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function op(e){return e[e.length-1]}function Uh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var Tt=qe(()=>{o(ot,"isEmpty");o(Mi,"keys");o(Vn,"values");o(W1,"mapValues");o(pe,"map");o(Ln,"flatten");o(Ci,"first");o(_h,"last");o(ve,"forEach");o(Hr,"isString");o(xi,"isUndefined");o(go,"isFunction");o(wn,"drop");o(gs,"dropRight");o(Gr,"filter");o(ba,"reject");o(Tr,"pick");o(Ie,"has");o(Vt,"contains");o(An,"cloneArr");o(ms,"cloneObj");o(Ea,"find");o(K1,"findAll");o(un,"reduce");o(Aa,"compact");o(np,"uniq");o(vre,"partial");o(fi,"isArray");o(mo,"isRegExp");o(Vh,"isObject");o(ui,"every");o(Ic,"difference");o(wh,"some");o(X1,"indexOf");o(Tre,"sortBy");o(bre,"zipObject");o(br,"assign");o(h7,"assignNoOverwrite");o(ip,"defaults");o(Q1,"groupBy");o(jA,"merge");o(Mn,"NOOP");o($A,"IDENTITY");o(q1,"packArray");o(rp,"PRINT_ERROR");o(Mh,"PRINT_WARNING");o(BA,"isES2015MapSupported");o(Y1,"applyMixins");o(kh,"toFastProperties");o(op,"peek");o(Uh,"timer")});var $h=Ye((J1,jh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof jh=="object"&&jh.exports?jh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:J1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var F={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],O=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(O)}},e.prototype.alternative=function(){for(var b=[],O=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var F=this.disjunction();return this.consumeChar(")"),{type:O,value:F,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var O,F=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 K;this.isDigit()?(K=this.integerIncludingZero(),O={atLeast:U,atMost:K}):O={atLeast:U,atMost:1/0},this.consumeChar("}");break}if(b===!0&&O===void 0)return;l(O);break}if(!(b===!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(F),O},e.prototype.atom=function(){var b,O=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(O),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},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 b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,O=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,O=!0;break;case"s":b=v;break;case"S":b=v,O=!0;break;case"w":b=m;break;case"W":b=m,O=!0;break}return l(b),{type:"Set",value:b,complement:O}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
|
|
84
84
|
`);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var O=b.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 b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
85
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var F=this.classAtom(),U=F.type==="Character";if(U&&this.isRangeDash()){this.consumeChar("-");var K=this.classAtom(),j=K.type==="Character";if(j){if(K.value<F.value)throw Error("Range out of order in character class");b.push({from:F.value,to:K.value})}else a(F.value,b),b.push(r("-")),a(K.value,b)}else a(F.value,b)}return this.consumeChar("]"),{type:"Set",complement:O,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
@@ -87,7 +87,7 @@ try {
|
|
|
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(b)}}},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(b){switch(b===void 0&&(b=0),this.peekChar(b)){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 b=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(b)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
89
89
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var O="",F=0;F<b;F++){var U=this.popChar();if(t.test(U)===!1)throw Error("Expecting a HexDecimal digits");O+=U}var K=parseInt(O,16);return{type:"Character",value:K}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' 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(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,O){b.length!==void 0?b.forEach(function(F){O.push(F)}):O.push(b)}o(a,"insertToSet");function s(b,O){if(b[O]===!0)throw"duplicate flag "+O;b[O]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(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 o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(b){for(var O in b){var F=b[O];b.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},A.prototype.visitPattern=function(b){},A.prototype.visitFlags=function(b){},A.prototype.visitDisjunction=function(b){},A.prototype.visitAlternative=function(b){},A.prototype.visitStartAnchor=function(b){},A.prototype.visitEndAnchor=function(b){},A.prototype.visitWordBoundary=function(b){},A.prototype.visitNonWordBoundary=function(b){},A.prototype.visitLookahead=function(b){},A.prototype.visitNegativeLookahead=function(b){},A.prototype.visitCharacter=function(b){},A.prototype.visitSet=function(b){},A.prototype.visitGroup=function(b){},A.prototype.visitGroupBackReference=function(b){},A.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function
|
|
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 o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(b){for(var O in b){var F=b[O];b.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},A.prototype.visitPattern=function(b){},A.prototype.visitFlags=function(b){},A.prototype.visitDisjunction=function(b){},A.prototype.visitAlternative=function(b){},A.prototype.visitStartAnchor=function(b){},A.prototype.visitEndAnchor=function(b){},A.prototype.visitWordBoundary=function(b){},A.prototype.visitNonWordBoundary=function(b){},A.prototype.visitLookahead=function(b){},A.prototype.visitNegativeLookahead=function(b){},A.prototype.visitCharacter=function(b){},A.prototype.visitSet=function(b){},A.prototype.visitGroup=function(b){},A.prototype.visitGroupBackReference=function(b){},A.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function jl(e){var t=e.toString();if(Bh.hasOwnProperty(t))return Bh[t];var n=y7.pattern(t);return Bh[t]=n,n}function eD(){Bh={}}var Z1,Bh,y7,Hh=qe(()=>{Z1=ie($h()),Bh={},y7=new Z1.RegExpParser;o(jl,"getRegExpAst");o(eD,"clearRegExpParserCache")});function iD(e,t){t===void 0&&(t=!1);try{var n=jl(e),i=HA(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===nD)t&&Mh(""+ap+(" 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=`
|
|
@@ -95,47 +95,47 @@ try {
|
|
|
95
95
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),rp(ap+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
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
|
|
99
|
-
`;o(
|
|
100
|
-
`],tracer:o(function(K,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function HA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)HA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Gh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(nD);ve(s.value,function(p){if(typeof p=="number")Gh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Gh(m,t,n);else{for(var m=g.from;m<=g.to&&m<$l;m++)Gh(m,t,n);if(g.to>=$l)for(var v=g.from>=$l?g.from:$l,A=g.to,b=Ho(v),O=Ho(A),F=b;F<=O;F++)t[F]=F}}});break;case"Group":HA(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"&&GA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Gh(e,t,n){var i=Ho(e);t[i]=i,n===!0&&T7(e,t)}function T7(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Ho(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Ho(a.charCodeAt(0));t[r]=r}}}function tD(e,t){return Ea(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return Ea(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function GA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?fi(e.value)?ui(e.value,GA):GA(e.value):!1}function Kh(e,t){if(t instanceof RegExp){var n=jl(t),i=new b7(e);return i.visit(n),i.found}else return Ea(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Wh,v7,nD,ap,b7,rD=qe(()=>{Wh=ie($h());Tt();Hh();WA();v7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),nD="Complement Sets are not supported for first char optimization",ap=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(iD,"getOptimizedStartCodesIndices");o(HA,"firstCharOptimizedIndices");o(Gh,"addOptimizedIdxToResult");o(T7,"handleIgnoreCase");o(tD,"findCode");o(GA,"isWholeOptional");b7=function(e){v7(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(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){Vt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?tD(n,this.targetCharCodes)===void 0&&(this.found=!0):tD(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Wh.BaseRegExpVisitor);o(Kh,"canMatchCharCode")});function cD(e,t){t=ip(t,{useSticky:QA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(K,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){k7()});var i;n("Reject Lexer.NA",function(){i=ba(e,function(K){return K[Go]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(K){var j=K[Go];if(mo(j)){var ae=j.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!j.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?aD(j):oD(j)}else{if(go(j))return r=!0,{exec:j};if(Ie(j,"exec"))return r=!0,j;if(typeof j=="string"){if(j.length===1)return j;var Z=j.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?aD(re):oD(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=pe(i,function(K){return K.tokenTypeIdx}),l=pe(i,function(K){var j=K.GROUP;if(j!==ki.SKIPPED){if(Hr(j))return j;if(xi(j))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(K){var j=K.LONGER_ALT;if(j){var ae=X1(i,j);return ae}}),p=pe(i,function(K){return K.PUSH_MODE}),g=pe(i,function(K){return Ie(K,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var K=hD(t.lineTerminatorCharacters);m=pe(i,function(j){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function(j){if(Ie(j,"LINE_BREAKS"))return j.LINE_BREAKS;if(mD(j,K)===!1)return Kh(K,j.PATTERN)}))});var v,A,b,O;n("Misc Mapping #2",function(){v=pe(i,dD),A=pe(a,w7),b=un(i,function(K,j){var ae=j.GROUP;return Hr(ae)&&ae!==ki.SKIPPED&&(K[ae]=[]),K},{}),O=pe(a,function(K,j){return{pattern:a[j],longerAlt:u[j],canLineTerminator:m[j],isCustom:v[j],short:A[j],group:l[j],push:p[j],pop:g[j],tokenTypeIdx:s[j],tokenType:i[j]}})});var F=!0,U=[];return t.safeMode||n("First Char Optimization",function(){U=un(i,function(K,j,ae){if(typeof j.PATTERN=="string"){var Z=j.PATTERN.charCodeAt(0),re=Ho(Z);KA(K,re,O[ae])}else if(fi(j.START_CHARS_HINT)){var Pe;ve(j.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,je=Ho(yt);Pe!==je&&(Pe=je,KA(K,je,O[ae]))})}else if(mo(j.PATTERN))if(j.PATTERN.unicode)F=!1,t.ensureOptimizations&&rp(""+ap+(" Unable to analyze < "+j.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=
|
|
103
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=iD(j.PATTERN,t.ensureOptimizations);ot(D)&&(F=!1),ve(D,function(ut){KA(K,ut,O[ae])})}else t.ensureOptimizations&&rp(""+ap+(" TokenType: <"+j.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`),F=!1;return K},[])}),n("ArrayPacking",function(){U=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),F=!1;return K},[])}),n("ArrayPacking",function(){U=q1(U)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:U,hasCustom:r,canBeOptimized:F}}function lD(e,t){var n=[],i=A7(e);n=n.concat(i.errors);var r=S7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(E7(a)),n=n.concat(R7(a)),n=n.concat(F7(a,t)),n=n.concat(D7(a)),n}function E7(e){var t=[],n=Gr(e,function(i){return mo(i[Go])});return t=t.concat(C7(n)),t=t.concat(O7(n)),t=t.concat(N7(n)),t=t.concat(L7(n)),t=t.concat(x7(n)),t}function A7(e){var t=Gr(e,function(r){return!Ie(r,Go)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:pn.MISSING_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function S7(e){var t=Gr(e,function(r){var a=r[Go];return!mo(a)&&!go(a)&&!Ie(a,"exec")&&!Hr(a)}),n=pe(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:pn.INVALID_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function C7(e){var t=function(r){sD(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a}(XA.BaseRegExpVisitor),n=Gr(e,function(r){var a=r[Go];try{var s=jl(a),l=new t;return l.visit(s),l.found}catch{return P7.test(a.source)}}),i=pe(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:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function x7(e){var t=Gr(e,function(i){var r=i[Go];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:pn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function O7(e){var t=function(r){sD(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a}(XA.BaseRegExpVisitor),n=Gr(e,function(r){var a=r[Go];try{var s=jl(a),l=new t;return l.visit(s),l.found}catch{return I7.test(a.source)}}),i=pe(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:pn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
109
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function N7(e){var t=Gr(e,function(i){var r=i[Go];return r instanceof RegExp&&(r.multiline||r.global)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:pn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function L7(e){var t=[],n=pe(e,function(a){return un(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Vt(t,l)&&l.PATTERN!==ki.NA&&(t.push(l),s.push(l)),s},[])});n=Aa(n);var i=Gr(n,function(a){return a.length>1}),r=pe(i,function(a){var s=pe(a,function(u){return u.name}),l=Ci(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:pn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function R7(e){var t=Gr(e,function(i){if(!Ie(i,"GROUP"))return!1;var r=i.GROUP;return r!==ki.SKIPPED&&r!==ki.NA&&!Hr(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:pn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function F7(e,t){var n=Gr(e,function(r){return r.PUSH_MODE!==void 0&&!Vt(t,r.PUSH_MODE)}),i=pe(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:pn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function D7(e){var t=[],n=un(e,function(i,r,a){var s=r.PATTERN;return s===ki.NA||(Hr(s)?i.push({str:s,idx:a,tokenType:r}):mo(s)&&V7(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return ve(e,function(i,r){ve(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&_7(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:pn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function
|
|
111
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:pn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function _7(e,t){if(mo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(go(t))return t(e,0,[],{});if(Ie(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function V7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Ea(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function oD(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function aD(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function fD(e,t,n){var i=[];return Ie(e,hs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+hs+`> property in its definition
|
|
112
112
|
`,type:pn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ie(e,Xh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Xh+`> property in its definition
|
|
113
113
|
`,type:pn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ie(e,Xh)&&Ie(e,hs)&&!Ie(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+hs+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:pn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ie(e,Xh)&&ve(e.modes,function(r,a){ve(r,function(s,l){xi(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
-
`),type:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function
|
|
115
|
+
`),type:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function uD(e,t,n){var i=[],r=!1,a=Aa(Ln(W1(e.modes,function(u){return u}))),s=ba(a,function(u){return u[Go]===ki.NA}),l=hD(n);return t&&ve(s,function(u){var p=mD(u,l);if(p!==!1){var g=M7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ie(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.
|
|
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:pn.NO_LINE_BREAKS_FLAGS}),i}function
|
|
119
|
+
for details.`,type:pn.NO_LINE_BREAKS_FLAGS}),i}function pD(e){var t={},n=Mi(e);return ve(n,function(i){var r=e[i];if(fi(r))t[i]=[];else throw Error("non exhaustive match")}),t}function dD(e){var t=e.PATTERN;if(mo(t))return!1;if(go(t))return!0;if(Ie(t,"exec"))return!0;if(Hr(t))return!1;throw Error("non exhaustive match")}function w7(e){return Hr(e)&&e.length===1?e.charCodeAt(0):!1}function mD(e,t){if(Ie(e,"LINE_BREAKS"))return!1;if(mo(e.PATTERN)){try{Kh(t,e.PATTERN)}catch(n){return{issue:pn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Hr(e.PATTERN))return!1;if(dD(e))return{issue:pn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function M7(e,t){if(t.issue===pn.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===pn.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
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function hD(e){var t=pe(e,function(n){return Hr(n)&&n.length>0?n.charCodeAt(0):n});return t}function KA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Ho(e){return e<$l?e:Qh[e]}function k7(){if(ot(Qh)){Qh=new Array(65536);for(var e=0;e<65536;e++)Qh[e]=e>255?255+~~(e/255):e}}var XA,sD,Go,hs,Xh,QA,P7,I7,gD,$l,Qh,WA=qe(()=>{XA=ie($h());sp();Tt();rD();Hh();sD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Go="PATTERN",hs="defaultMode",Xh="modes",QA=typeof new RegExp("(?:)").sticky=="boolean";o(cD,"analyzeTokenTypes");o(lD,"validatePatterns");o(E7,"validateRegExpPattern");o(A7,"findMissingPatterns");o(S7,"findInvalidPatterns");P7=/[^\\][\$]/;o(C7,"findEndOfInputAnchor");o(x7,"findEmptyMatchRegExps");I7=/[^\\[][\^]|^\^/;o(O7,"findStartOfInputAnchor");o(N7,"findUnsupportedFlags");o(L7,"findDuplicatePatterns");o(R7,"findInvalidGroupType");o(F7,"findModesThatDoNotExist");o(D7,"findUnreachablePatterns");o(_7,"testTokenType");o(V7,"noMetaChar");o(oD,"addStartOfInput");o(aD,"addStickyFlag");o(fD,"performRuntimeChecks");o(uD,"performWarningRuntimeChecks");o(pD,"cloneEmptyGroups");o(dD,"isCustomPattern");o(w7,"isShortPattern");gD={test:o(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},"test"),lastIndex:0};o(mD,"checkLineBreaksIssues");o(M7,"buildLineBreakIssueMessage");o(hD,"getCharCodes");o(KA,"addToMapOfArrays");$l=256;o(Ho,"charCodeToOptimizedIndex");Qh=[];o(k7,"initCharCodeToOptimizedIndexMap")});function Oc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Bl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Sa(e){var t=U7(e);j7(t),B7(t),$7(t),ve(t,function(n){n.isParent=n.categoryMatches.length>0})}function U7(e){for(var t=An(e),n=e,i=!0;i;){n=Aa(Ln(pe(n,function(a){return a.CATEGORIES})));var r=Ic(n,t);t=t.concat(r),ot(r)?i=!1:n=r}return t}function j7(e){ve(e,function(t){qA(t)||(TD[yD]=t,t.tokenTypeIdx=yD++),vD(t)&&!fi(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),vD(t)||(t.CATEGORIES=[]),H7(t)||(t.categoryMatches=[]),G7(t)||(t.categoryMatchesMap={})})}function $7(e){ve(e,function(t){t.categoryMatches=[],ve(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(TD[i].tokenTypeIdx)})})}function B7(e){ve(e,function(t){bD([],t)})}function bD(e,t){ve(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ve(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||bD(i,n)})}function qA(e){return Ie(e,"tokenTypeIdx")}function vD(e){return Ie(e,"CATEGORIES")}function H7(e){return Ie(e,"categoryMatches")}function G7(e){return Ie(e,"categoryMatchesMap")}function ED(e){return Ie(e,"tokenTypeIdx")}var yD,TD,Hl=qe(()=>{Tt();o(Oc,"tokenStructuredMatcher");o(Bl,"tokenStructuredMatcherNoCategories");yD=1,TD={};o(Sa,"augmentTokenTypes");o(U7,"expandCategories");o(j7,"assignTokenDefaultProps");o($7,"assignCategoriesTokensProp");o(B7,"assignCategoriesMapProp");o(bD,"singleAssignCategoriesToksMap");o(qA,"hasShortKeyProperty");o(vD,"hasCategoriesProperty");o(H7,"hasExtendingTokensTypesProperty");o(G7,"hasExtendingTokensTypesMapProperty");o(ED,"isTokenType")});var qh,YA=qe(()=>{qh={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var pn,cp,ki,sp=qe(()=>{WA();Tt();Hl();YA();Hh();(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"})(pn||(pn={}));cp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
125
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:qh,traceInitPerf:!1,skipValidations:!1};Object.freeze(cp);ki=function(){function e(t,n){var i=this;if(n===void 0&&(n=cp),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=
|
|
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),fi(t)?(a={modes:{}},a.modes[hs]=An(t),a[hs]=hs):(s=!1,a=ms(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(
|
|
126
|
+
a boolean 2nd argument is no longer supported`);this.config=jA(cp,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 a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===cp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=gD;else if(i.config.lineTerminatorCharacters===cp.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),fi(t)?(a={modes:{}},a.modes[hs]=An(t),a[hs]=hs):(s=!1,a=ms(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(fD(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(uD(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ve(a.modes,function(g,m){a.modes[m]=ba(g,function(v){return xi(v)})});var l=Mi(a.modes);if(ve(a.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(lD(g,l))}),ot(i.lexerDefinitionErrors)){Sa(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=cD(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=jA(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ot(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=pe(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
|
|
128
128
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
129
|
-
`+p)}ve(i.lexerDefinitionWarning,function(g){Mh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(
|
|
129
|
+
`+p)}ve(i.lexerDefinitionWarning,function(g){Mh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(QA?(i.chopInput=$A,i.match=i.matchWithTest):(i.updateLastIndex=Mn,i.match=i.matchWithExec),s&&(i.handleModes=Mn),i.trackStartLines===!1&&(i.computeNewColumn=$A),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Mn),/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=un(i.canModeBeOptimized,function(m,v,A){return v===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!ot(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(){
|
|
131
|
+
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){eD()}),i.TRACE_INIT("toFastProperties",function(){kh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ot(this.lexerDefinitionErrors)){var i=pe(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 a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,v,A,b,O,F,U,K,j=t,ae=j.length,Z=0,re=0,Pe=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Pe),ut=[],yt=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,an=
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,ED)&&(n.CATEGORIES=e[ED]),Aa([n]),Ie(e,AD)&&(n.LABEL=e[AD]),Ie(e,SD)&&(n.GROUP=e[SD]),Ie(e,CD)&&(n.POP_MODE=e[CD]),Ie(e,PD)&&(n.PUSH_MODE=e[PD]),Ie(e,xD)&&(n.LONGER_ALT=e[xD]),Ie(e,ID)&&(n.LINE_BREAKS=e[ID]),Ie(e,OD)&&(n.START_CHARS_HINT=e[OD]),n}function ys(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function LD(e,t){return Oc(e,t)}var WX,ED,AD,SD,PD,CD,xD,ID,OD,Wr,vs=qe(()=>{Tt();sp();Bl();o(Go,"tokenLabel");o(ND,"tokenName");o(qA,"hasTokenLabel");WX="parent",ED="categories",AD="label",SD="group",PD="push_mode",CD="pop_mode",xD="longer_alt",ID="line_breaks",OD="start_chars_hint";o(lp,"createToken");o(KX,"createTokenInternal");Wr=lp({name:"EOF",pattern:ki.NA});Aa([Wr]);o(ys,"createTokenInstance");o(LD,"tokenMatcher")});function Yh(e){return pe(e,Hl)}function Hl(e){function t(r){return pe(r,Hl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Go(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=mo(i)?i.source:i),n}else{if(e instanceof Er)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Sa,ho,rn,Er,Jt,on,Rn,Fn,Nt,Sn,Pn,ht,Ui=qe(()=>{Tt();vs();Sa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ho=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ve(this.definition,function(n){n.accept(t)})},e}(),rn=function(e){Sa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(ho),Er=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(ho),Jt=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(ho),on=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(ho),Rn=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(ho),Fn=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(ho),Nt=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(ho),Sn=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(ho),Pn=function(e){Sa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(ho),ht=function(){function e(t){this.idx=1,br(this,Tr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Yh,"serializeGrammar");o(Hl,"serializeProduction")});function RD(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Nc,zh=qe(()=>{Tt();Ui();Nc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ve(t.definition,function(r,a){var s=wn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Rn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Sn)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Pn)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 on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=RD(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=RD(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ve(t.definition,function(s){var l=new Jt({definition:[s]});r.walk(l,a)})},e}();o(RD,"restForRepetitionWithSeparator")});var Kr,Gl=qe(()=>{Ui();Kr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case rn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case on:return this.visitOption(n);case Rn:return this.visitRepetitionMandatory(n);case Fn:return this.visitRepetitionMandatoryWithSeparator(n);case Sn:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Pn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case Er: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 FD(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof Er}function Wl(e,t){t===void 0&&(t=[]);var n=e instanceof on||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?wh(e.definition,function(i){return Wl(i,t)}):e instanceof rn&&Vt(t,e)?!1:e instanceof ho?(e instanceof rn&&t.push(e),ui(e.definition,function(i){return Wl(i,t)})):!1}function DD(e){return e instanceof Pn}function Ar(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Rn)return"AT_LEAST_ONE";if(e instanceof Fn)return"AT_LEAST_ONE_SEP";if(e instanceof Sn)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function _D(e){Jh.reset(),e.accept(Jh);var t=Jh.dslMethods;return Jh.reset(),t}var XX,YA,Jh,Kl=qe(()=>{Tt();Ui();Gl();XX=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(FD,"isSequenceProd");o(Wl,"isOptionalProd");o(DD,"isBranchingProd");o(Ar,"getProductionDslName");YA=function(e){XX(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 o(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";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(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}(Kr),Jh=new YA;o(_D,"collectMethods")});function Lc(e){if(e instanceof rn)return Lc(e.referencedRule);if(e instanceof ht)return YX(e);if(FD(e))return QX(e);if(DD(e))return qX(e);throw Error("non exhaustive match")}function QX(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Wl(a),t=t.concat(Lc(a)),i=i+1,r=n.length>i;return np(t)}function qX(e){var t=pe(e.definition,function(n){return Lc(n)});return np(Ln(t))}function YX(e){return[e.terminalType]}var zA=qe(()=>{Tt();Ui();Kl();o(Lc,"first");o(QX,"firstForSequence");o(qX,"firstForBranching");o(YX,"firstForTerminal")});var Zh,JA=qe(()=>{Zh="_~IN~_"});function VD(e){var t={};return ve(e,function(n){var i=new JX(n).startWalking();br(t,i)}),t}function ZX(e,t){return e.name+t+Zh}var zX,JX,wD=qe(()=>{zh();zA();Tt();JA();Ui();zX=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),JX=function(e){zX(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(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 a=ZX(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Lc(l);this.follows[a]=u},t}(Nc);o(VD,"computeAllProdsFollows");o(ZX,"buildBetweenProdsFollowPrefix")});var fp,ey,Ts,up=qe(()=>{vs();Tt();Tt();Ui();Kl();fp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=qA(t),s=a?"--> "+Go(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ci(n).image,u=`
|
|
135
|
-
but found: '`+l+"'";if(r)return s+r+u;var p=un(t,function(A,b){return A.concat(b)},[]),g=pe(p,function(A){return"["+pe(A,function(b){return
|
|
133
|
+
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,v,A,b,O,F,U,K,j=t,ae=j.length,Z=0,re=0,Pe=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Pe),ut=[],yt=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,an=pD(this.emptyGroups),Wn=this.trackStartLines,en=this.config.lineTerminatorsPattern,Lt=0,Re=[],Oi=[],It=[],Mt=[];Object.freeze(Mt);var sn=void 0;function Hi(){return Re}o(Hi,"getPossiblePatternsSlow");function Fe(Gt){var Yo=Ho(Gt),Gi=Oi[Yo];return Gi===void 0?Mt:Gi}o(Fe,"getPossiblePatternsOptimized");var Kn=o(function(Gt){if(It.length===1&&Gt.tokenType.PUSH_MODE===void 0){var Yo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Gt);ut.push({offset:Gt.startOffset,line:Gt.startLine!==void 0?Gt.startLine:void 0,column:Gt.startColumn!==void 0?Gt.startColumn:void 0,length:Gt.image.length,message:Yo})}else{It.pop();var Gi=_h(It);Re=i.patternIdxToConfig[Gi],Oi=i.charCodeToPatternIdxToConfig[Gi],Lt=Re.length;var Lf=i.canModeBeOptimized[Gi]&&i.config.safeMode===!1;Oi&&Lf?sn=Fe:sn=Hi}},"pop_mode");function Or(Gt){It.push(Gt),Oi=this.charCodeToPatternIdxToConfig[Gt],Re=this.patternIdxToConfig[Gt],Lt=Re.length,Lt=Re.length;var Yo=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;Oi&&Yo?sn=Fe:sn=Hi}o(Or,"push_mode"),Or.call(this,n);for(var at;Z<ae;){u=null;var I=j.charCodeAt(Z),S=sn(I),Y=S.length;for(r=0;r<Y;r++){at=S[r];var V=at.pattern;p=null;var _e=at.short;if(_e!==!1?I===_e&&(u=V):at.isCustom===!0?(K=V.exec(j,Z,D,an),K!==null?(u=K[0],K.payload!==void 0&&(p=K.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=at.longerAlt,l!==void 0){var Rt=Re[l],Qe=Rt.pattern;g=null,Rt.isCustom===!0?(K=Qe.exec(j,Z,D,an),K!==null?(s=K[0],K.payload!==void 0&&(g=K.payload)):s=null):(this.updateLastIndex(Qe,Z),s=this.match(Qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,at=Rt)}break}}if(u!==null){if(m=u.length,v=at.group,v!==void 0&&(A=at.tokenTypeIdx,b=this.createTokenInstance(u,Z,A,at.tokenType,yt,je,m),this.handlePayload(b,p),v===!1?re=this.addToken(D,re,b):an[v].push(b)),t=this.chopInput(t,m),Z=Z+m,je=this.computeNewColumn(je,m),Wn===!0&&at.canLineTerminator===!0){var kt=0,vn=void 0,cn=void 0;en.lastIndex=0;do vn=en.test(u),vn===!0&&(cn=en.lastIndex-1,kt++);while(vn===!0);kt!==0&&(yt=yt+kt,je=m-cn,this.updateTokenEndLineColumnLocation(b,v,cn,kt,yt,je,m))}this.handleModes(at,Kn,Or,b)}else{for(var Ht=Z,ni=yt,ar=je,gn=!1;!gn&&Z<ae;)for(F=j.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var yi=Re[a],V=yi.pattern,_e=yi.short;if(_e!==!1?j.charCodeAt(Z)===_e&&(gn=!0):yi.isCustom===!0?gn=V.exec(j,Z,D,an)!==null:(this.updateLastIndex(V,Z),gn=V.exec(t)!==null),gn===!0)break}O=Z-Ht,U=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(j,Ht,O,ni,ar),ut.push({offset:Ht,line:ni,column:ar,length:O,message:U})}}return this.hasCustom||(D.length=re),{tokens:D,groups:an,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}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,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+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,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,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=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"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 Wo(e){return zA(e)?e.LABEL:e.name}function LD(e){return e.name}function zA(e){return Hr(e.LABEL)&&e.LABEL!==""}function lp(e){return K7(e)}function K7(e){var t=e.pattern,n={};if(n.name=e.name,xi(t)||(n.PATTERN=t),Ie(e,W7))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,AD)&&(n.CATEGORIES=e[AD]),Sa([n]),Ie(e,SD)&&(n.LABEL=e[SD]),Ie(e,PD)&&(n.GROUP=e[PD]),Ie(e,xD)&&(n.POP_MODE=e[xD]),Ie(e,CD)&&(n.PUSH_MODE=e[CD]),Ie(e,ID)&&(n.LONGER_ALT=e[ID]),Ie(e,OD)&&(n.LINE_BREAKS=e[OD]),Ie(e,ND)&&(n.START_CHARS_HINT=e[ND]),n}function ys(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function RD(e,t){return Oc(e,t)}var W7,AD,SD,PD,CD,xD,ID,OD,ND,Wr,vs=qe(()=>{Tt();sp();Hl();o(Wo,"tokenLabel");o(LD,"tokenName");o(zA,"hasTokenLabel");W7="parent",AD="categories",SD="label",PD="group",CD="push_mode",xD="pop_mode",ID="longer_alt",OD="line_breaks",ND="start_chars_hint";o(lp,"createToken");o(K7,"createTokenInternal");Wr=lp({name:"EOF",pattern:ki.NA});Sa([Wr]);o(ys,"createTokenInstance");o(RD,"tokenMatcher")});function Yh(e){return pe(e,Gl)}function Gl(e){function t(r){return pe(r,Gl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Gl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Gl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Wo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=mo(i)?i.source:i),n}else{if(e instanceof Er)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Pa,ho,rn,Er,Jt,on,Rn,Fn,Nt,Sn,Pn,ht,Ui=qe(()=>{Tt();vs();Pa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ho=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ve(this.definition,function(n){n.accept(t)})},e}(),rn=function(e){Pa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(ho),Er=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(ho),Jt=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(ho),on=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(ho),Rn=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(ho),Fn=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(ho),Nt=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(ho),Sn=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(ho),Pn=function(e){Pa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(ho),ht=function(){function e(t){this.idx=1,br(this,Tr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Yh,"serializeGrammar");o(Gl,"serializeProduction")});function FD(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Nc,zh=qe(()=>{Tt();Ui();Nc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ve(t.definition,function(r,a){var s=wn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Rn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Sn)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Pn)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 on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=FD(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=FD(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ve(t.definition,function(s){var l=new Jt({definition:[s]});r.walk(l,a)})},e}();o(FD,"restForRepetitionWithSeparator")});var Kr,Wl=qe(()=>{Ui();Kr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case rn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case on:return this.visitOption(n);case Rn:return this.visitRepetitionMandatory(n);case Fn:return this.visitRepetitionMandatoryWithSeparator(n);case Sn:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Pn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case Er: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 DD(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof Er}function Kl(e,t){t===void 0&&(t=[]);var n=e instanceof on||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?wh(e.definition,function(i){return Kl(i,t)}):e instanceof rn&&Vt(t,e)?!1:e instanceof ho?(e instanceof rn&&t.push(e),ui(e.definition,function(i){return Kl(i,t)})):!1}function _D(e){return e instanceof Pn}function Ar(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Rn)return"AT_LEAST_ONE";if(e instanceof Fn)return"AT_LEAST_ONE_SEP";if(e instanceof Sn)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function VD(e){Jh.reset(),e.accept(Jh);var t=Jh.dslMethods;return Jh.reset(),t}var X7,JA,Jh,Xl=qe(()=>{Tt();Ui();Wl();X7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(DD,"isSequenceProd");o(Kl,"isOptionalProd");o(_D,"isBranchingProd");o(Ar,"getProductionDslName");JA=function(e){X7(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 o(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";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(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}(Kr),Jh=new JA;o(VD,"collectMethods")});function Lc(e){if(e instanceof rn)return Lc(e.referencedRule);if(e instanceof ht)return Y7(e);if(DD(e))return Q7(e);if(_D(e))return q7(e);throw Error("non exhaustive match")}function Q7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Kl(a),t=t.concat(Lc(a)),i=i+1,r=n.length>i;return np(t)}function q7(e){var t=pe(e.definition,function(n){return Lc(n)});return np(Ln(t))}function Y7(e){return[e.terminalType]}var ZA=qe(()=>{Tt();Ui();Xl();o(Lc,"first");o(Q7,"firstForSequence");o(q7,"firstForBranching");o(Y7,"firstForTerminal")});var Zh,eS=qe(()=>{Zh="_~IN~_"});function wD(e){var t={};return ve(e,function(n){var i=new J7(n).startWalking();br(t,i)}),t}function Z7(e,t){return e.name+t+Zh}var z7,J7,MD=qe(()=>{zh();ZA();Tt();eS();Ui();z7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),J7=function(e){z7(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(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 a=Z7(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Lc(l);this.follows[a]=u},t}(Nc);o(wD,"computeAllProdsFollows");o(Z7,"buildBetweenProdsFollowPrefix")});var fp,ey,Ts,up=qe(()=>{vs();Tt();Tt();Ui();Xl();fp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=zA(t),s=a?"--> "+Wo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ci(n).image,u=`
|
|
135
|
+
but found: '`+l+"'";if(r)return s+r+u;var p=un(t,function(A,b){return A.concat(b)},[]),g=pe(p,function(A){return"["+pe(A,function(b){return Wo(b)}).join(", ")+"]"}),m=pe(g,function(A,b){return" "+(b+1)+". "+A}),v=`one of these possible Token sequences:
|
|
136
136
|
`+m.join(`
|
|
137
137
|
`);return s+v+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=Ci(n).image,l=`
|
|
138
|
-
but found: '`+s+"'";if(i)return a+i+l;var u=pe(t,function(g){return"["+pe(g,function(m){return
|
|
138
|
+
but found: '`+s+"'";if(i)return a+i+l;var u=pe(t,function(g){return"["+pe(g,function(m){return Wo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
139
139
|
`+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(fp);ey={buildRuleNotFoundError:o(function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
|
140
140
|
inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},Ts={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof rn?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=Ci(t),a=r.idx,s=Ar(r),l=n(r),u=a>0,p="->"+s+(u?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
|
|
141
141
|
appears more than once (`+t.length+" times) in the top level rule: ->"+i+`<-.
|
|
@@ -145,11 +145,11 @@ inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},Ts={
|
|
|
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},"buildNamespaceConflictError"),buildAlternationPrefixAmbiguityError:o(function(e){var t=pe(e.prefixPath,function(r){return
|
|
148
|
+
and Non-Terminal names start with a lower case letter.`;return t},"buildNamespaceConflictError"),buildAlternationPrefixAmbiguityError:o(function(e){var t=pe(e.prefixPath,function(r){return Wo(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},"buildAlternationPrefixAmbiguityError"),buildAlternationAmbiguityError:o(function(e){var t=pe(e.prefixPath,function(r){return
|
|
152
|
+
For Further details.`;return i},"buildAlternationPrefixAmbiguityError"),buildAlternationAmbiguityError:o(function(e){var t=pe(e.prefixPath,function(r){return Wo(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},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=Ar(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.
|
|
@@ -161,33 +161,33 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
|
|
|
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},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Er?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function MD(e,t){var n=new t9(e,t);return n.resolveRefs(),n.errors}var e9,t9,kD=qe(()=>{Sr();Tt();Gl();e9=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(MD,"resolveGrammar");t9=function(e){e9(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ve(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:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Kr)});function ny(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ny(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Rn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return ve(l.definition,function(p){ot(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:wn(e,r)}),i}function iy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var v=m.pop();if(v===s){l&&_h(m).idx<=p&&m.pop();continue}var A=v.def,b=v.idx,O=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var U=A[0];if(U===r){var K={idx:b,def:wn(A),ruleStack:gs(O),occurrenceStack:gs(F)};m.push(K)}else if(U instanceof ht)if(b<u-1){var j=b+1,ae=t[j];if(n(ae,U.terminalType)){var K={idx:j,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(K)}}else if(b===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(U instanceof rn){var Z=An(O);Z.push(U.nonTerminalName);var re=An(F);re.push(U.idx);var K={idx:b,def:U.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(U instanceof on){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var D={idx:b,def:U.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(D)}else if(U instanceof Rn){var ut=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Fn){var je=new ht({terminalType:U.separator}),ut=new Nt({definition:[je].concat(U.definition),idx:U.idx}),yt=U.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Sn){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var je=new ht({terminalType:U.separator}),an=new Nt({definition:[je].concat(U.definition),idx:U.idx}),yt=U.definition.concat([an],wn(A)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(U instanceof Nt){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var an=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([an],wn(A)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(U instanceof Pn)for(var Wn=U.definition.length-1;Wn>=0;Wn--){var en=U.definition[Wn],Lt={idx:b,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(Lt),m.push(s)}else if(U instanceof Jt)m.push({idx:b,def:U.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F});else if(U instanceof Er)m.push(i9(U,b,O,F));else throw Error("non exhaustive match")}}return g}function i9(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Rc,n9,UD,ty,jD,ZA,$D,eS,pp=qe(()=>{zh();Tt();zA();Ui();Rc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),n9=function(e){Rc(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 o(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=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(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 a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Nc),UD=function(e){Rc(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 o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Lc(s),this.found=!0}},t}(n9),ty=function(e){Rc(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 o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Nc),jD=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(ty),ZA=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(ty),$D=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(ty),eS=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(ty);o(ny,"possiblePathsFrom");o(iy,"nextPossibleTokensAfter");o(i9,"expandTopLevelRule")});function GD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Rn)return wt.REPETITION_MANDATORY;if(e instanceof Fn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return wt.ALTERNATION;throw Error("non exhaustive match")}function WD(e,t,n,i,r,a){var s=dp(e,t,n),l=JD(s)?$l:Oc;return a(s,i,l,r)}function KD(e,t,n,i,r,a){var s=gp(e,t,r,n),l=JD(s)?$l:Oc;return a(s[0],l,i)}function XD(e,t,n,i){var r=e.length,a=ui(e,function(u){return ui(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(j){return j.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 b=0;b<v;b++){for(var O=m[b],F=O.length,U=0;U<F;U++){var K=this.LA(U+1);if(n(K,O[U])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ve(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ve(m.categoryMatches,function(v){Ie(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,b=0;b<A;b++){var O=this.LA(b+1);if(n(O,v[b])===!1)continue e}return u}}}}function QD(e,t,n){var i=ui(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ve(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 BD(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function tS(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];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 o9(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function YD(e,t){for(var n=pe(e,function(g){return ny([g],1)}),i=BD(n.length),r=pe(n,function(g){var m={};return ve(g,function(v){var A=tS(v.partialPath);ve(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=BD(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,b=m[v].suffixDef,O=tS(A),F=o9(r,O,g);if(F||ot(b)||A.length===t){var U=i[g];if(ry(U,A)===!1){U.push(A);for(var K=0;K<O.length;K++){var j=O[K];r[g][j]=!0}}}else{var ae=ny(b,s+1,A);a[g]=a[g].concat(ae),ve(ae,function(Z){var re=tS(Z.partialPath);ve(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function dp(e,t,n,i){var r=new qD(e,wt.ALTERNATION,i);return t.accept(r),YD(r.result,n)}function gp(e,t,n,i){var r=new qD(e,n);t.accept(r);var a=r.result,s=new r9(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return YD([u,p],i)}function ry(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 a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function zD(e,t){return e.length<t.length&&ui(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function JD(e){return ui(e,function(t){return ui(t,function(n){return ui(n,function(i){return ot(i.categoryMatches)})})})}var HD,wt,r9,qD,mp=qe(()=>{Tt();pp();zh();Bl();Ui();Gl();HD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(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"})(wt||(wt={}));o(GD,"getProdType");o(WD,"buildLookaheadFuncForOr");o(KD,"buildLookaheadFuncForOptionalProd");o(XD,"buildAlternativesLookAheadFunc");o(QD,"buildSingleAlternativeLookaheadFunction");r9=function(e){HD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Nc),qD=function(e){HD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(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,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Kr);o(BD,"initializeArrayOfArrays");o(tS,"pathToHashKeys");o(o9,"isUniquePrefixHash");o(YD,"lookAheadSequenceFromAlternatives");o(dp,"getLookaheadPathsForOr");o(gp,"getLookaheadPathsForOptionalProd");o(ry,"containsPath");o(zD,"isStrictPrefixOfPath");o(JD,"areTokenCategoriesNotUsed")});function ZD(e,t,n,i,r){var a=pe(e,function(A){return a9(A,i)}),s=pe(e,function(A){return n_(A,A,i)}),l=[],u=[],p=[];ui(s,ot)&&(l=pe(e,function(A){return f9(A,i)}),u=pe(e,function(A){return u9(A,t,i)}),p=g9(e,t,i));var g=y9(e,n,i),m=pe(e,function(A){return d9(A,i)}),v=pe(e,function(A){return l9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,v))}function a9(e,t){var n=new c9;e.accept(n);var i=n.allProductions,r=X1(i,s9),a=Tr(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=Ci(l),p=t.buildDuplicateFoundError(e,l),g=Ar(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=e_(u);return v&&(m.parameter=v),m});return s}function s9(e){return Ar(e)+"_#_"+e.idx+"_#_"+e_(e)}function e_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function l9(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function t_(e,t,n){var i=[],r;return Vt(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:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function n_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=oy(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Ic(a,i.concat([e])),p=pe(u,function(g){var m=An(i);return m.push(g),n_(e,g,n,m)});return r.concat(Ln(p))}function oy(e){var t=[];if(ot(e))return t;var n=Ci(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(oy(n.definition));else if(n instanceof Pn)t=Ln(pe(n.definition,function(s){return oy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Wl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(oy(a))}else return t}function f9(e,t){var n=new iS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=gs(s.definition),u=pe(l,function(p,g){var m=iy([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Ea(u))},[]);return r}function u9(e,t,n){var i=new iS;e.accept(i);var r=i.alternations;r=Ta(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=dp(u,e,p,l),m=m9(g,l,e,n),v=h9(g,l,e,n);return s.concat(m,v)},[]);return a}function d9(e,t){var n=new iS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function g9(e,t,n){var i=[];return ve(e,function(r){var a=new p9;r.accept(a);var s=a.allProductions;ve(s,function(l){var u=GD(l),p=l.maxLookahead||t,g=l.idx,m=gp(g,r,u,p),v=m[0];if(ot(Ln(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function m9(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ve(u,function(g){var m=[p];ve(e,function(v,A){p!==A&&ry(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ry(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function h9(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ve(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=W1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&zD(v.path,p)}),m=pe(g,function(v){var A=[v.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function y9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ve(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var nS,c9,iS,p9,rS=qe(()=>{Tt();Tt();Sr();Kl();mp();pp();Ui();Gl();nS=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(ZD,"validateGrammar");o(a9,"validateDuplicateProductions");o(s9,"identifyProductionForDuplicates");o(e_,"getExtraProductionArgument");c9=function(e){nS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(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}(Kr);o(l9,"validateRuleDoesNotAlreadyExist");o(t_,"validateRuleIsOverridden");o(n_,"validateNoLeftRecursion");o(oy,"getFirstNoneTerminal");iS=function(e){nS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Kr);o(f9,"validateEmptyOrAlternative");o(u9,"validateAmbiguousAlternationAlternatives");p9=function(e){nS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(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}(Kr);o(d9,"validateTooManyAlts");o(g9,"validateSomeNonEmptyLookaheadPath");o(m9,"checkAlternativesAmbiguities");o(h9,"checkPrefixAlternativesAmbiguities");o(y9,"checkTerminalAndNoneTerminalsNameSpace")});function ay(e){e=ip(e,{errMsgProvider:ey});var t={};return ve(e.rules,function(n){t[n.name]=n}),MD(t,e.errMsgProvider)}function sy(e){return e=ip(e,{errMsgProvider:Ts}),ZD(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function i_(e){ve(e.rules,function(t){var n=new YA;t.accept(n),ve(n.dslMethods,function(i){ve(i,function(r,a){r.idx=a+1})})})}var oS=qe(()=>{Tt();kD();rS();up();Kl();o(ay,"resolveGrammar");o(sy,"validateGrammar");o(i_,"assignOccurrenceIndices")});function Pa(e){return Vt(c_,e.name)}var hp,r_,o_,a_,s_,c_,cy,Xl,ly,fy,uy,Ql=qe(()=>{Tt();hp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),r_="MismatchedTokenException",o_="NoViableAltException",a_="EarlyExitException",s_="NotAllInputParsedException",c_=[r_,o_,a_,s_];Object.freeze(c_);o(Pa,"isRecognitionException");cy=function(e){hp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),Xl=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=r_,a}return o(t,"MismatchedTokenException"),t}(cy),ly=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=o_,a}return o(t,"NoViableAltException"),t}(cy),fy=function(e){hp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=s_,r}return o(t,"NotAllInputParsedException"),t}(cy),uy=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=a_,a}return o(t,"EarlyExitException"),t}(cy)});function l_(e){this.name=sS,this.message=e}function v9(e,t,n,i,r,a,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 a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var v=u.token,A=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=Wr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var aS,sS,f_,cS=qe(()=>{vs();Tt();Ql();JA();Sr();aS={},sS="InRuleRecoveryException";o(l_,"InRuleRecoveryException");l_.prototype=Error.prototype;f_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=v9)},e.prototype.getTokenToInsert=function(t){var n=ys(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 a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),v=o(function(){var A=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new Xl(b,g,a.LA(0));O.resyncedTokens=gs(u),a.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 l_("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)||ot(n))return!1;var r=this.LA(1),a=ba(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},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 Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return aS;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 pe(n,function(r,a){return a===0?aS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===aS)return[Wr];var n=t.ruleName+t.idxInCallingRule+Zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Wr)||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 gs(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(v9,"attemptInRepetitionRecovery")});function gy(e,t,n){return n|t|e}var u_,Wo,T9,py,dy,yp,vp,Tp,ql,Pae,my=qe(()=>{u_=4,Wo=8,T9=8,py=1<<Wo,dy=2<<Wo,yp=3<<Wo,vp=4<<Wo,Tp=5<<Wo,ql=6<<Wo;o(gy,"getKeyForAutomaticLookahead");Pae=32-T9});var p_,d_=qe(()=>{mp();Tt();Sr();my();Kl();p_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:tr.maxLookahead,this.lookAheadFuncsCache=jA()?new Map:[],jA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ve(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=_D(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ve(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Ar(m)+v,function(){var A=WD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=gy(n.fullRuleNameToShort[i.name],py,m.idx);n.setLaFuncCache(b,A)})}),ve(s,function(m){n.computeLookaheadFunc(i,m.idx,yp,wt.REPETITION,m.maxLookahead,Ar(m))}),ve(l,function(m){n.computeLookaheadFunc(i,m.idx,dy,wt.OPTION,m.maxLookahead,Ar(m))}),ve(u,function(m){n.computeLookaheadFunc(i,m.idx,vp,wt.REPETITION_MANDATORY,m.maxLookahead,Ar(m))}),ve(p,function(m){n.computeLookaheadFunc(i,m.idx,ql,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Ar(m))}),ve(g,function(m){n.computeLookaheadFunc(i,m.idx,Tp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Ar(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=KD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=gy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return QD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return XD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return gy(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 lS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function fS(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 m_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var h_=qe(()=>{o(lS,"setNodeLocationOnlyOffset");o(fS,"setNodeLocationFull");o(g_,"addTerminalToCst");o(m_,"addNoneTerminalToCst")});function v_(e){return bp(e.constructor)}function bp(e){var t=e.name;return t||"anonymous"}function uS(e,t){var n=Object.getOwnPropertyDescriptor(e,y_);return xi(n)||n.configurable?(Object.defineProperty(e,y_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var y_,pS=qe(()=>{Tt();o(v_,"classNameFromInstance");y_="name";o(bp,"functionName");o(uS,"defineNameProp")});function b9(e,t){for(var n=Mi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function T_(e,t){var n=o(function(){},"derivedConstructor");uS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(fi(r)&&(r=r[0]),!xi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=E9(this,t);if(!ot(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+bp(this.constructor)+`>:
|
|
164
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Er?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function kD(e,t){var n=new t9(e,t);return n.resolveRefs(),n.errors}var e9,t9,UD=qe(()=>{Sr();Tt();Wl();e9=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(kD,"resolveGrammar");t9=function(e){e9(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ve(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:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Kr)});function ny(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ny(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Rn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return ve(l.definition,function(p){ot(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:wn(e,r)}),i}function iy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var v=m.pop();if(v===s){l&&_h(m).idx<=p&&m.pop();continue}var A=v.def,b=v.idx,O=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var U=A[0];if(U===r){var K={idx:b,def:wn(A),ruleStack:gs(O),occurrenceStack:gs(F)};m.push(K)}else if(U instanceof ht)if(b<u-1){var j=b+1,ae=t[j];if(n(ae,U.terminalType)){var K={idx:j,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(K)}}else if(b===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(U instanceof rn){var Z=An(O);Z.push(U.nonTerminalName);var re=An(F);re.push(U.idx);var K={idx:b,def:U.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(U instanceof on){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var D={idx:b,def:U.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(D)}else if(U instanceof Rn){var ut=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Fn){var je=new ht({terminalType:U.separator}),ut=new Nt({definition:[je].concat(U.definition),idx:U.idx}),yt=U.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Sn){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var je=new ht({terminalType:U.separator}),an=new Nt({definition:[je].concat(U.definition),idx:U.idx}),yt=U.definition.concat([an],wn(A)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(U instanceof Nt){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var an=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([an],wn(A)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(U instanceof Pn)for(var Wn=U.definition.length-1;Wn>=0;Wn--){var en=U.definition[Wn],Lt={idx:b,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(Lt),m.push(s)}else if(U instanceof Jt)m.push({idx:b,def:U.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F});else if(U instanceof Er)m.push(i9(U,b,O,F));else throw Error("non exhaustive match")}}return g}function i9(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Rc,n9,jD,ty,$D,tS,BD,nS,pp=qe(()=>{zh();Tt();ZA();Ui();Rc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),n9=function(e){Rc(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 o(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=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(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 a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Nc),jD=function(e){Rc(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 o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Lc(s),this.found=!0}},t}(n9),ty=function(e){Rc(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 o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Nc),$D=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(ty),tS=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(ty),BD=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(ty),nS=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(ty);o(ny,"possiblePathsFrom");o(iy,"nextPossibleTokensAfter");o(i9,"expandTopLevelRule")});function WD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Rn)return wt.REPETITION_MANDATORY;if(e instanceof Fn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return wt.ALTERNATION;throw Error("non exhaustive match")}function KD(e,t,n,i,r,a){var s=dp(e,t,n),l=ZD(s)?Bl:Oc;return a(s,i,l,r)}function XD(e,t,n,i,r,a){var s=gp(e,t,r,n),l=ZD(s)?Bl:Oc;return a(s[0],l,i)}function QD(e,t,n,i){var r=e.length,a=ui(e,function(u){return ui(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(j){return j.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 b=0;b<v;b++){for(var O=m[b],F=O.length,U=0;U<F;U++){var K=this.LA(U+1);if(n(K,O[U])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ve(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ve(m.categoryMatches,function(v){Ie(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,b=0;b<A;b++){var O=this.LA(b+1);if(n(O,v[b])===!1)continue e}return u}}}}function qD(e,t,n){var i=ui(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ve(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 HD(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function iS(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];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 o9(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function zD(e,t){for(var n=pe(e,function(g){return ny([g],1)}),i=HD(n.length),r=pe(n,function(g){var m={};return ve(g,function(v){var A=iS(v.partialPath);ve(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=HD(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,b=m[v].suffixDef,O=iS(A),F=o9(r,O,g);if(F||ot(b)||A.length===t){var U=i[g];if(ry(U,A)===!1){U.push(A);for(var K=0;K<O.length;K++){var j=O[K];r[g][j]=!0}}}else{var ae=ny(b,s+1,A);a[g]=a[g].concat(ae),ve(ae,function(Z){var re=iS(Z.partialPath);ve(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function dp(e,t,n,i){var r=new YD(e,wt.ALTERNATION,i);return t.accept(r),zD(r.result,n)}function gp(e,t,n,i){var r=new YD(e,n);t.accept(r);var a=r.result,s=new r9(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return zD([u,p],i)}function ry(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 a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function JD(e,t){return e.length<t.length&&ui(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function ZD(e){return ui(e,function(t){return ui(t,function(n){return ui(n,function(i){return ot(i.categoryMatches)})})})}var GD,wt,r9,YD,mp=qe(()=>{Tt();pp();zh();Hl();Ui();Wl();GD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(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"})(wt||(wt={}));o(WD,"getProdType");o(KD,"buildLookaheadFuncForOr");o(XD,"buildLookaheadFuncForOptionalProd");o(QD,"buildAlternativesLookAheadFunc");o(qD,"buildSingleAlternativeLookaheadFunction");r9=function(e){GD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Nc),YD=function(e){GD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(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,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Kr);o(HD,"initializeArrayOfArrays");o(iS,"pathToHashKeys");o(o9,"isUniquePrefixHash");o(zD,"lookAheadSequenceFromAlternatives");o(dp,"getLookaheadPathsForOr");o(gp,"getLookaheadPathsForOptionalProd");o(ry,"containsPath");o(JD,"isStrictPrefixOfPath");o(ZD,"areTokenCategoriesNotUsed")});function e_(e,t,n,i,r){var a=pe(e,function(A){return a9(A,i)}),s=pe(e,function(A){return i_(A,A,i)}),l=[],u=[],p=[];ui(s,ot)&&(l=pe(e,function(A){return f9(A,i)}),u=pe(e,function(A){return u9(A,t,i)}),p=g9(e,t,i));var g=y9(e,n,i),m=pe(e,function(A){return d9(A,i)}),v=pe(e,function(A){return l9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,v))}function a9(e,t){var n=new c9;e.accept(n);var i=n.allProductions,r=Q1(i,s9),a=Tr(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=Ci(l),p=t.buildDuplicateFoundError(e,l),g=Ar(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=t_(u);return v&&(m.parameter=v),m});return s}function s9(e){return Ar(e)+"_#_"+e.idx+"_#_"+t_(e)}function t_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function l9(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function n_(e,t,n){var i=[],r;return Vt(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:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function i_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=oy(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Ic(a,i.concat([e])),p=pe(u,function(g){var m=An(i);return m.push(g),i_(e,g,n,m)});return r.concat(Ln(p))}function oy(e){var t=[];if(ot(e))return t;var n=Ci(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(oy(n.definition));else if(n instanceof Pn)t=Ln(pe(n.definition,function(s){return oy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Kl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(oy(a))}else return t}function f9(e,t){var n=new oS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=gs(s.definition),u=pe(l,function(p,g){var m=iy([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Aa(u))},[]);return r}function u9(e,t,n){var i=new oS;e.accept(i);var r=i.alternations;r=ba(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=dp(u,e,p,l),m=m9(g,l,e,n),v=h9(g,l,e,n);return s.concat(m,v)},[]);return a}function d9(e,t){var n=new oS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function g9(e,t,n){var i=[];return ve(e,function(r){var a=new p9;r.accept(a);var s=a.allProductions;ve(s,function(l){var u=WD(l),p=l.maxLookahead||t,g=l.idx,m=gp(g,r,u,p),v=m[0];if(ot(Ln(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function m9(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ve(u,function(g){var m=[p];ve(e,function(v,A){p!==A&&ry(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ry(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function h9(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ve(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=K1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&JD(v.path,p)}),m=pe(g,function(v){var A=[v.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function y9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ve(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var rS,c9,oS,p9,aS=qe(()=>{Tt();Tt();Sr();Xl();mp();pp();Ui();Wl();rS=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(e_,"validateGrammar");o(a9,"validateDuplicateProductions");o(s9,"identifyProductionForDuplicates");o(t_,"getExtraProductionArgument");c9=function(e){rS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(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}(Kr);o(l9,"validateRuleDoesNotAlreadyExist");o(n_,"validateRuleIsOverridden");o(i_,"validateNoLeftRecursion");o(oy,"getFirstNoneTerminal");oS=function(e){rS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Kr);o(f9,"validateEmptyOrAlternative");o(u9,"validateAmbiguousAlternationAlternatives");p9=function(e){rS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(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}(Kr);o(d9,"validateTooManyAlts");o(g9,"validateSomeNonEmptyLookaheadPath");o(m9,"checkAlternativesAmbiguities");o(h9,"checkPrefixAlternativesAmbiguities");o(y9,"checkTerminalAndNoneTerminalsNameSpace")});function ay(e){e=ip(e,{errMsgProvider:ey});var t={};return ve(e.rules,function(n){t[n.name]=n}),kD(t,e.errMsgProvider)}function sy(e){return e=ip(e,{errMsgProvider:Ts}),e_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function r_(e){ve(e.rules,function(t){var n=new JA;t.accept(n),ve(n.dslMethods,function(i){ve(i,function(r,a){r.idx=a+1})})})}var sS=qe(()=>{Tt();UD();aS();up();Xl();o(ay,"resolveGrammar");o(sy,"validateGrammar");o(r_,"assignOccurrenceIndices")});function Ca(e){return Vt(l_,e.name)}var hp,o_,a_,s_,c_,l_,cy,Ql,ly,fy,uy,ql=qe(()=>{Tt();hp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),o_="MismatchedTokenException",a_="NoViableAltException",s_="EarlyExitException",c_="NotAllInputParsedException",l_=[o_,a_,s_,c_];Object.freeze(l_);o(Ca,"isRecognitionException");cy=function(e){hp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),Ql=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=o_,a}return o(t,"MismatchedTokenException"),t}(cy),ly=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=a_,a}return o(t,"NoViableAltException"),t}(cy),fy=function(e){hp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=c_,r}return o(t,"NotAllInputParsedException"),t}(cy),uy=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=s_,a}return o(t,"EarlyExitException"),t}(cy)});function f_(e){this.name=lS,this.message=e}function v9(e,t,n,i,r,a,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 a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var v=u.token,A=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=Wr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var cS,lS,u_,fS=qe(()=>{vs();Tt();ql();eS();Sr();cS={},lS="InRuleRecoveryException";o(f_,"InRuleRecoveryException");f_.prototype=Error.prototype;u_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=v9)},e.prototype.getTokenToInsert=function(t){var n=ys(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 a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),v=o(function(){var A=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new Ql(b,g,a.LA(0));O.resyncedTokens=gs(u),a.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 f_("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)||ot(n))return!1;var r=this.LA(1),a=Ea(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},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 Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return cS;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 pe(n,function(r,a){return a===0?cS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===cS)return[Wr];var n=t.ruleName+t.idxInCallingRule+Zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Wr)||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 gs(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(v9,"attemptInRepetitionRecovery")});function gy(e,t,n){return n|t|e}var p_,Ko,T9,py,dy,yp,vp,Tp,Yl,Cae,my=qe(()=>{p_=4,Ko=8,T9=8,py=1<<Ko,dy=2<<Ko,yp=3<<Ko,vp=4<<Ko,Tp=5<<Ko,Yl=6<<Ko;o(gy,"getKeyForAutomaticLookahead");Cae=32-T9});var d_,g_=qe(()=>{mp();Tt();Sr();my();Xl();d_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:tr.maxLookahead,this.lookAheadFuncsCache=BA()?new Map:[],BA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ve(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=VD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ve(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Ar(m)+v,function(){var A=KD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=gy(n.fullRuleNameToShort[i.name],py,m.idx);n.setLaFuncCache(b,A)})}),ve(s,function(m){n.computeLookaheadFunc(i,m.idx,yp,wt.REPETITION,m.maxLookahead,Ar(m))}),ve(l,function(m){n.computeLookaheadFunc(i,m.idx,dy,wt.OPTION,m.maxLookahead,Ar(m))}),ve(u,function(m){n.computeLookaheadFunc(i,m.idx,vp,wt.REPETITION_MANDATORY,m.maxLookahead,Ar(m))}),ve(p,function(m){n.computeLookaheadFunc(i,m.idx,Yl,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Ar(m))}),ve(g,function(m){n.computeLookaheadFunc(i,m.idx,Tp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Ar(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=XD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=gy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return qD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return QD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return gy(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 uS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function pS(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 m_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function h_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var y_=qe(()=>{o(uS,"setNodeLocationOnlyOffset");o(pS,"setNodeLocationFull");o(m_,"addTerminalToCst");o(h_,"addNoneTerminalToCst")});function T_(e){return bp(e.constructor)}function bp(e){var t=e.name;return t||"anonymous"}function dS(e,t){var n=Object.getOwnPropertyDescriptor(e,v_);return xi(n)||n.configurable?(Object.defineProperty(e,v_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var v_,gS=qe(()=>{Tt();o(T_,"classNameFromInstance");v_="name";o(bp,"functionName");o(dS,"defineNameProp")});function b9(e,t){for(var n=Mi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function b_(e,t){var n=o(function(){},"derivedConstructor");dS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(fi(r)&&(r=r[0]),!xi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=E9(this,t);if(!ot(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+bp(this.constructor)+`>:
|
|
165
165
|
`+(""+a.join(`
|
|
166
166
|
|
|
167
167
|
`).replace(/\n/g,`
|
|
168
|
-
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function
|
|
168
|
+
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function E_(e,t,n){var i=o(function(){},"derivedConstructor");dS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ve(t,function(a){r[a]=b9}),i.prototype=r,i.prototype.constructor=i,i}function E9(e,t){var n=A9(e,t),i=P9(e,t);return n.concat(i)}function A9(e,t){var n=pe(t,function(i){if(!go(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+bp(e.constructor)+" CST Visitor.",type:hy.MISSING_METHOD,methodName:i}});return Aa(n)}function P9(e,t){var n=[];for(var i in e)go(e[i])&&!Vt(S9,i)&&!Vt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+bp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:hy.REDUNDANT_METHOD,methodName:i});return n}var hy,S9,E_=qe(()=>{Tt();pS();o(b9,"defaultVisit");o(T_,"createBaseSemanticVisitorConstructor");o(b_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(hy||(hy={}));o(E9,"validateVisitor");o(A9,"validateMissingCstMethods");S9=["constructor","visit","validateVisitor"];o(P9,"validateRedundantMethods")});var A_,S_=qe(()=>{h_();Tt();E_();Sr();A_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:tr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=fS,this.setNodeLocationFromNode=fS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=lS,this.setNodeLocationFromNode=lS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;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];m_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(xi(this.baseCstVisitorConstructor)){var t=T_(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(xi(this.baseCstVisitorWithDefaultsConstructor)){var t=b_(this.className,Mi(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 P_,C_=qe(()=>{Sr();P_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(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},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Yl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Yl: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 x_,I_=qe(()=>{Tt();Ql();Sr();up();rS();Ui();x_=function(){function e(){}return o(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=zl),Vt(this.definedRulesNames,t)){var r=Ts.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}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=zl);var r=[];r=r.concat(t_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},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(Pa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Yh(Vn(this.gastProductionsCache))},e}()});var O_,N_=qe(()=>{Tt();my();Ql();mp();pp();Sr();cS();vs();Bl();pS();O_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=v_(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={},Ie(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:hy.REDUNDANT_METHOD,methodName:i});return n}var hy,S9,A_=qe(()=>{Tt();gS();o(b9,"defaultVisit");o(b_,"createBaseSemanticVisitorConstructor");o(E_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(hy||(hy={}));o(E9,"validateVisitor");o(A9,"validateMissingCstMethods");S9=["constructor","visit","validateVisitor"];o(P9,"validateRedundantMethods")});var S_,P_=qe(()=>{y_();Tt();A_();Sr();S_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:tr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=pS,this.setNodeLocationFromNode=pS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=uS,this.setNodeLocationFromNode=uS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;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];m_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];h_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(xi(this.baseCstVisitorConstructor)){var t=b_(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(xi(this.baseCstVisitorWithDefaultsConstructor)){var t=E_(this.className,Mi(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 C_,x_=qe(()=>{Sr();C_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(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},"set"),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 I_,O_=qe(()=>{Tt();ql();Sr();up();aS();Ui();I_=function(){function e(){}return o(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=Jl),Vt(this.definedRulesNames,t)){var r=Ts.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}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=Jl);var r=[];r=r.concat(n_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},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(Ca(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Yh(Vn(this.gastProductionsCache))},e}()});var N_,L_=qe(()=>{Tt();my();ql();mp();pp();Sr();fS();vs();Hl();gS();N_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=T_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Bl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ie(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(fi(t)){if(ot(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(fi(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(Ie(t,"modes")&&ui(Ln(Vn(t.modes)),
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ie(i,"resyncEnabled")?i.resyncEnabled:zl.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:zl.recoveryValueFunc,s=this.ruleShortNameIdx<<u_+Wo;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,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(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,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Pa(t)){var s=t;if(a){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(dy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,vp,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,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,eS],u,ql,t,eS)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,yp,t,jD,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,ZA],u,Tp,t,ZA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,ql,t,a)},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(py,n),r=fi(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.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 fy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),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 Pa(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 a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,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,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Xl(r,n,a))},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(a){throw a.name===sS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(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),Wr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var L_,R_=qe(()=>{Ql();Tt();mp();Sr();L_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:tr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Pa(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(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:o(function(){return An(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=gp(t,a,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 uy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=dp(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:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ly(p,this.LA(1),u))},e}()});var F_,D_=qe(()=>{pp();Tt();F_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(xi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return iy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ci(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new UD(r,t).startWalking();return a},e}()});function Ep(e,t,n,i){i===void 0&&(i=!1),yy(n);var r=op(this.recordingProdStack),a=go(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),vy}function x9(e,t){var n=this;yy(t);var i=op(this.recordingProdStack),r=fi(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=wh(a,function(u){return go(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ve(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),vy}function w_(e){return e===0?"":""+e}function yy(e){if(e<0||e>V_){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+(
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(
|
|
180
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},
|
|
176
|
+
For Further details.`)}if(fi(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(Ie(t,"modes")&&ui(Ln(Vn(t.modes)),ED)){var i=Ln(Vn(t.modes)),r=np(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(Vh(t))this.tokensMap=ms(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=Wr;var a=ui(Vn(t),function(s){return ot(s.categoryMatches)});this.tokenMatcher=a?Bl:Oc,Sa(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=Ie(i,"resyncEnabled")?i.resyncEnabled:Jl.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:Jl.recoveryValueFunc,s=this.ruleShortNameIdx<<p_+Ko;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,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(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,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ca(t)){var s=t;if(a){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(dy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,vp,t,BD)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Yl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,nS],u,Yl,t,nS)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,yp,t,$D,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,tS],u,Tp,t,tS)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Yl,t,a)},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(py,n),r=fi(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.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 fy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),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 Ca(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 a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,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,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Ql(r,n,a))},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(a){throw a.name===lS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(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),Wr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var R_,F_=qe(()=>{ql();Tt();mp();Sr();R_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:tr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ca(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(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:o(function(){return An(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=gp(t,a,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 uy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=dp(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:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ly(p,this.LA(1),u))},e}()});var D_,__=qe(()=>{pp();Tt();D_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(xi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return iy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ci(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new jD(r,t).startWalking();return a},e}()});function Ep(e,t,n,i){i===void 0&&(i=!1),yy(n);var r=op(this.recordingProdStack),a=go(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),vy}function x9(e,t){var n=this;yy(t);var i=op(this.recordingProdStack),r=fi(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=wh(a,function(u){return go(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ve(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),vy}function M_(e){return e===0?"":""+e}function yy(e){if(e<0||e>w_){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(w_+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var vy,V_,w_,k_,U_,C9,j_,$_=qe(()=>{Tt();Ui();sp();Hl();vs();Sr();my();vy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(vy);V_=!0,w_=Math.pow(2,Ko)-1,k_=lp({name:"RECORDING_PHASE_TOKEN",pattern:ki.NA});Sa([k_]);U_=ys(k_,`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(U_);C9={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:{}},j_=function(){function e(){}return o(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=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},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 Er({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 Ep.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Ep.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Ep.call(this,Fn,n,t,
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?C9:vy},e.prototype.consumeInternalRecord=function(t,n,i){if(yy(n),!
|
|
184
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),
|
|
182
|
+
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return Ep.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Ep.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Ep.call(this,Fn,n,t,V_)},e.prototype.manyInternalRecord=function(t,n){Ep.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Ep.call(this,Sn,n,t,V_)},e.prototype.orInternalRecord=function(t,n){return x9.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(yy(n),!t||Ie(t,"ruleName")===!1){var r=new Error("<SUBRULE"+M_(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 a=op(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?C9:vy},e.prototype.consumeInternalRecord=function(t,n,i){if(yy(n),!qA(t)){var r=new Error("<CONSUME"+M_(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 a=op(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),U_},e}();o(Ep,"recordProd");o(x9,"recordOrProd");o(M_,"getIdxSuffix");o(yy,"assertMethodIdxIsValid")});var B_,H_=qe(()=>{Tt();Sr();B_=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ie(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=tr.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=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function W_(e){return e===void 0&&(e=void 0),function(){return e}}var G_,zl,tr,Jl,Gn,mS,K_,X_,Sr=qe(()=>{Tt();MD();vs();up();sS();fS();g_();P_();x_();O_();L_();F_();__();$_();H_();G_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),zl=ys(Wr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(zl);tr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:fp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Jl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),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"})(Gn||(Gn={}));o(W_,"EMPTY_ALT");mS=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),Ie(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=Ie(n,"skipValidations")?n.skipValidations:tr.skipValidations}return o(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(){kh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ve(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(a+" Rule",function(){u=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=ay({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=sy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Ts,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=
|
|
187
|
+
For further details.`);this.skipValidations=Ie(n,"skipValidations")?n.skipValidations:tr.skipValidations}return o(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(){kh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ve(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(a+" Rule",function(){u=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=ay({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=sy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Ts,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=wD(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ot(t.definitionErrors))throw n=pe(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
|
|
188
188
|
`+n.join(`
|
|
189
189
|
-------------------------------
|
|
190
|
-
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();
|
|
190
|
+
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();Y1(mS,[u_,d_,S_,C_,N_,I_,R_,D_,j_,B_]);K_=function(e){G_(t,e);function t(n,i){i===void 0&&(i=tr);var r=this,a=ms(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(mS),X_=function(e){G_(t,e);function t(n,i){i===void 0&&(i=tr);var r=this,a=ms(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(mS)});function Q_(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/diagrams.css":a,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
|
|
218
|
+
`;return l+u+p+g+m+v}var q_=qe(()=>{UA();o(Q_,"createSyntaxDiagramsCode")});function z_(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
|
-
`+
|
|
234
|
+
`+Z_(e)+`
|
|
235
235
|
|
|
236
236
|
return {
|
|
237
237
|
`+e.name+": "+e.name+`
|
|
238
238
|
}
|
|
239
239
|
}));
|
|
240
|
-
`}function
|
|
241
|
-
`+
|
|
240
|
+
`}function J_(e){return`
|
|
241
|
+
`+Z_(e)+`
|
|
242
242
|
return new `+e.name+`(tokenVocabulary, config)
|
|
243
|
-
`}function
|
|
243
|
+
`}function Z_(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'
|
|
@@ -261,14 +261,14 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
261
261
|
`+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
|
|
262
262
|
`+e.name+".prototype.constructor = "+e.name+`
|
|
263
263
|
`;return t}function I9(e){var t=pe(e,function(n){return O9(n,1)});return t.join(`
|
|
264
|
-
`)}function O9(e,t){var n=ji(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=Ty(e.definition,t+1),n+=ji(t+1,"})")+ei,n}function N9(e,t){var n=e.terminalType.name;return ji(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function L9(e,t){return ji(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function R9(e,t){var n=ji(t,"$.OR"+e.idx+"([")+ei,i=pe(e.definition,function(r){return F9(r,t+1)});return n+=i.join(","+ei),n+=ei+ji(t,"])"+ei),n}function F9(e,t){var n=ji(t,"{")+ei;return n+=ji(t+1,"ALT: function() {")+ei,n+=Ty(e.definition,t+1),n+=ji(t+1,"}")+ei,n+=ji(t,"}"),n}function D9(e,t){if(e instanceof rn)return L9(e,t);if(e instanceof on)return Ap("OPTION",e,t);if(e instanceof Rn)return Ap("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Ap("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Ap("MANY_SEP",e,t);if(e instanceof Nt)return Ap("MANY",e,t);if(e instanceof Pn)return R9(e,t);if(e instanceof ht)return N9(e,t);if(e instanceof Jt)return Ty(e.definition,t);throw Error("non exhaustive match")}function Ap(e,t,n){var i=ji(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=ji(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+
|
|
265
|
-
`;o(
|
|
264
|
+
`)}function O9(e,t){var n=ji(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=Ty(e.definition,t+1),n+=ji(t+1,"})")+ei,n}function N9(e,t){var n=e.terminalType.name;return ji(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function L9(e,t){return ji(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function R9(e,t){var n=ji(t,"$.OR"+e.idx+"([")+ei,i=pe(e.definition,function(r){return F9(r,t+1)});return n+=i.join(","+ei),n+=ei+ji(t,"])"+ei),n}function F9(e,t){var n=ji(t,"{")+ei;return n+=ji(t+1,"ALT: function() {")+ei,n+=Ty(e.definition,t+1),n+=ji(t+1,"}")+ei,n+=ji(t,"}"),n}function D9(e,t){if(e instanceof rn)return L9(e,t);if(e instanceof on)return Ap("OPTION",e,t);if(e instanceof Rn)return Ap("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Ap("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Ap("MANY_SEP",e,t);if(e instanceof Nt)return Ap("MANY",e,t);if(e instanceof Pn)return R9(e,t);if(e instanceof ht)return N9(e,t);if(e instanceof Jt)return Ty(e.definition,t);throw Error("non exhaustive match")}function Ap(e,t,n){var i=ji(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=ji(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+Y_(t.definition,n+2)+ei,i+=ji(n,"}")+ei):i+=Y_(t.definition,n+1),i+=ji(n,")")+ei,i}function Y_(e,t){var n="function() {"+ei;return n+=Ty(e,t),n+=ji(t,"}")+ei,n}function Ty(e,t){var n="";return ve(e,function(i){n+=D9(i,t+1)}),n}function ji(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,eV=qe(()=>{Tt();Ui();ei=`
|
|
265
|
+
`;o(z_,"genUmdModule");o(J_,"genWrapperFunction");o(Z_,"genClass");o(I9,"genAllRules");o(O9,"genRule");o(N9,"genTerminal");o(L9,"genNonTerminal");o(R9,"genAlternation");o(F9,"genSingleAlt");o(D9,"genProd");o(Ap,"genDSLRule");o(Y_,"genDefFunction");o(Ty,"genDefinition");o(ji,"indent")});function tV(e){var t=J_({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Ey(),sg(by)))}}function nV(e){return z_({name:e.name,rules:e.rules})}var iV=qe(()=>{eV();o(tV,"generateParserFactory");o(nV,"generateParserModule")});var by={};Ks(by,{Alternation:()=>Pn,Alternative:()=>Jt,CstParser:()=>K_,EMPTY_ALT:()=>W_,EOF:()=>Wr,EarlyExitException:()=>uy,EmbeddedActionsParser:()=>X_,GAstVisitor:()=>Kr,Lexer:()=>ki,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>Ql,NoViableAltException:()=>ly,NonTerminal:()=>rn,NotAllInputParsedException:()=>fy,Option:()=>on,Parser:()=>V9,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>Er,Terminal:()=>ht,VERSION:()=>tp,assignOccurrenceIndices:()=>r_,clearCache:()=>_9,createSyntaxDiagramsCode:()=>Q_,createToken:()=>lp,createTokenInstance:()=>ys,defaultGrammarResolverErrorProvider:()=>ey,defaultGrammarValidatorErrorProvider:()=>Ts,defaultLexerErrorProvider:()=>qh,defaultParserErrorProvider:()=>fp,generateParserFactory:()=>tV,generateParserModule:()=>nV,isRecognitionException:()=>Ca,resolveGrammar:()=>ay,serializeGrammar:()=>Yh,serializeProduction:()=>Gl,tokenLabel:()=>Wo,tokenMatcher:()=>RD,tokenName:()=>LD,validateGrammar:()=>sy});function _9(){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 V9,Ey=qe(()=>{
|
|
268
|
-
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});cV.exports={xmlLexer:r6,tokensDictionary:oV}});var fV=Ye((Lce,lV)=>{var{CstParser:o6,tokenMatcher:a6}=(Ey(),sg(by)),{tokensDictionary:xt}=hS(),vS=class vS extends o6{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:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),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:o(()=>{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")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),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:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),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(a=>a6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(vS,"Parser");var yS=vS,s6=new yS;lV.exports={xmlParser:s6}});var TS=Ye((Fce,uV)=>{var{xmlLexer:c6}=hS(),{xmlParser:Ay}=fV();uV.exports={parse:o(function(t){let n=c6.tokenize(t);return Ay.input=n.tokens,{cst:Ay.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ay.errors}},"parse"),BaseXmlCstVisitor:Ay.getBaseCstVisitorConstructor()}});var Cp=Ye((Zl,Pp)=>{(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",a="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,b=1,O=2,F=4,U=8,K=16,j=32,ae=64,Z=128,re=256,Pe=512,D=30,ut="...",yt=800,je=16,an=1,Wn=2,en=3,Lt=1/0,Re=9007199254740991,Oi=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,Hi=Mt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",U],["curryRight",K],["flip",Pe],["partial",j],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Or="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Qe="[object Map]",kt="[object Number]",vn="[object Null]",cn="[object Object]",Ht="[object Promise]",ni="[object Proxy]",ar="[object RegExp]",gn="[object Set]",yi="[object String]",Gt="[object Symbol]",qo="[object Undefined]",Gi="[object WeakMap]",Nf="[object WeakSet]",Vs="[object ArrayBuffer]",Nr="[object DataView]",Lf="[object Float32Array]",Rf="[object Float64Array]",Ff="[object Int8Array]",ws="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,Ce=RegExp(he.source),Oe=RegExp(be.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yd=/^\w*$/,sv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Df=/[\\^$.*+?()[\]{}|]/g,yM=RegExp(Df.source),cv=/^\s+/,vM=/\s/,TM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bM=/\{\n\/\* \[wrapped with (.+)\] \*/,EM=/,? & /,AM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,SM=/[()=,{}\[\]\/\s]/,PM=/\\(\\)?/g,CM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ix=/\w*$/,xM=/^[-+]0x[0-9a-f]+$/i,IM=/^0b[01]+$/i,OM=/^\[object .+?Constructor\]$/,NM=/^0o[0-7]+$/i,LM=/^(?:0|[1-9]\d*)$/,RM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vd=/($^)/,FM=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",DM="\\u0300-\\u036f",_M="\\ufe20-\\ufe2f",VM="\\u20d0-\\u20ff",rx=DM+_M+VM,ox="\\u2700-\\u27bf",ax="a-z\\xdf-\\xf6\\xf8-\\xff",wM="\\xac\\xb1\\xd7\\xf7",MM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kM="\\u2000-\\u206f",UM=" \\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",sx="A-Z\\xc0-\\xd6\\xd8-\\xde",cx="\\ufe0e\\ufe0f",lx=wM+MM+kM+UM,lv="['\u2019]",jM="["+Td+"]",fx="["+lx+"]",bd="["+rx+"]",ux="\\d+",$M="["+ox+"]",px="["+ax+"]",dx="[^"+Td+lx+ux+ox+ax+sx+"]",fv="\\ud83c[\\udffb-\\udfff]",BM="(?:"+bd+"|"+fv+")",gx="[^"+Td+"]",uv="(?:\\ud83c[\\udde6-\\uddff]){2}",pv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bc="["+sx+"]",mx="\\u200d",hx="(?:"+px+"|"+dx+")",HM="(?:"+Bc+"|"+dx+")",yx="(?:"+lv+"(?:d|ll|m|re|s|t|ve))?",vx="(?:"+lv+"(?:D|LL|M|RE|S|T|VE))?",Tx=BM+"?",bx="["+cx+"]?",GM="(?:"+mx+"(?:"+[gx,uv,pv].join("|")+")"+bx+Tx+")*",WM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",KM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ex=bx+Tx+GM,XM="(?:"+[$M,uv,pv].join("|")+")"+Ex,QM="(?:"+[gx+bd+"?",bd,uv,pv,jM].join("|")+")",qM=RegExp(lv,"g"),YM=RegExp(bd,"g"),dv=RegExp(fv+"(?="+fv+")|"+QM+Ex,"g"),zM=RegExp([Bc+"?"+px+"+"+yx+"(?="+[fx,Bc,"$"].join("|")+")",HM+"+"+vx+"(?="+[fx,Bc+hx,"$"].join("|")+")",Bc+"?"+hx+"+"+yx,Bc+"+"+vx,KM,WM,ux,XM].join("|"),"g"),JM=RegExp("["+mx+Td+rx+cx+"]"),ZM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,e2=["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"],t2=-1,tn={};tn[Lf]=tn[Rf]=tn[Ff]=tn[ws]=tn[k]=tn[B]=tn[Q]=tn[ce]=tn[Le]=!0,tn[Kn]=tn[Or]=tn[Vs]=tn[I]=tn[Nr]=tn[S]=tn[V]=tn[_e]=tn[Qe]=tn[kt]=tn[cn]=tn[ar]=tn[gn]=tn[yi]=tn[Gi]=!1;var qt={};qt[Kn]=qt[Or]=qt[Vs]=qt[Nr]=qt[I]=qt[S]=qt[Lf]=qt[Rf]=qt[Ff]=qt[ws]=qt[k]=qt[Qe]=qt[kt]=qt[cn]=qt[ar]=qt[gn]=qt[yi]=qt[Gt]=qt[B]=qt[Q]=qt[ce]=qt[Le]=!0,qt[V]=qt[_e]=qt[Gi]=!1;var n2={\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"},i2={"&":"&","<":"<",">":">",'"':""","'":"'"},r2={"&":"&","<":"<",">":">",""":'"',"'":"'"},o2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},a2=parseFloat,s2=parseInt,Ax=typeof global=="object"&&global&&global.Object===Object&&global,c2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Ax||c2||Function("return this")(),gv=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,Ms=gv&&typeof Pp=="object"&&Pp&&!Pp.nodeType&&Pp,Sx=Ms&&Ms.exports===gv,mv=Sx&&Ax.process,Lr=function(){try{var w=Ms&&Ms.require&&Ms.require("util").types;return w||mv&&mv.binding&&mv.binding("util")}catch{}}(),Px=Lr&&Lr.isArrayBuffer,Cx=Lr&&Lr.isDate,xx=Lr&&Lr.isMap,Ix=Lr&&Lr.isRegExp,Ox=Lr&&Lr.isSet,Nx=Lr&&Lr.isTypedArray;function cr(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(cr,"apply");function l2(w,X,W,Ae){for(var We=-1,St=w==null?0:w.length;++We<St;){var Un=w[We];X(Ae,Un,W(Un),w)}return Ae}o(l2,"arrayAggregator");function Rr(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae&&X(w[W],W,w)!==!1;);return w}o(Rr,"arrayEach");function f2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(f2,"arrayEachRight");function Lx(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(!X(w[W],W,w))return!1;return!0}o(Lx,"arrayEvery");function Ra(w,X){for(var W=-1,Ae=w==null?0:w.length,We=0,St=[];++W<Ae;){var Un=w[W];X(Un,W,w)&&(St[We++]=Un)}return St}o(Ra,"arrayFilter");function Ed(w,X){var W=w==null?0:w.length;return!!W&&Hc(w,X,0)>-1}o(Ed,"arrayIncludes");function hv(w,X,W){for(var Ae=-1,We=w==null?0:w.length;++Ae<We;)if(W(X,w[Ae]))return!0;return!1}o(hv,"arrayIncludesWith");function fn(w,X){for(var W=-1,Ae=w==null?0:w.length,We=Array(Ae);++W<Ae;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function Fa(w,X){for(var W=-1,Ae=X.length,We=w.length;++W<Ae;)w[We+W]=X[W];return w}o(Fa,"arrayPush");function yv(w,X,W,Ae){var We=-1,St=w==null?0:w.length;for(Ae&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(yv,"arrayReduce");function u2(w,X,W,Ae){var We=w==null?0:w.length;for(Ae&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(u2,"arrayReduceRight");function vv(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(X(w[W],W,w))return!0;return!1}o(vv,"arraySome");var p2=Tv("length");function d2(w){return w.split("")}o(d2,"asciiToArray");function g2(w){return w.match(AM)||[]}o(g2,"asciiWords");function Rx(w,X,W){var Ae;return W(w,function(We,St,Un){if(X(We,St,Un))return Ae=St,!1}),Ae}o(Rx,"baseFindKey");function Ad(w,X,W,Ae){for(var We=w.length,St=W+(Ae?1:-1);Ae?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Ad,"baseFindIndex");function Hc(w,X,W){return X===X?I2(w,X,W):Ad(w,Fx,W)}o(Hc,"baseIndexOf");function m2(w,X,W,Ae){for(var We=W-1,St=w.length;++We<St;)if(Ae(w[We],X))return We;return-1}o(m2,"baseIndexOfWith");function Fx(w){return w!==w}o(Fx,"baseIsNaN");function Dx(w,X){var W=w==null?0:w.length;return W?Ev(w,X)/W:It}o(Dx,"baseMean");function Tv(w){return function(X){return X==null?e:X[w]}}o(Tv,"baseProperty");function bv(w){return function(X){return w==null?e:w[X]}}o(bv,"basePropertyOf");function _x(w,X,W,Ae,We){return We(w,function(St,Un,Kt){W=Ae?(Ae=!1,St):X(W,St,Un,Kt)}),W}o(_x,"baseReduce");function h2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(h2,"baseSortBy");function Ev(w,X){for(var W,Ae=-1,We=w.length;++Ae<We;){var St=X(w[Ae]);St!==e&&(W=W===e?St:W+St)}return W}o(Ev,"baseSum");function Av(w,X){for(var W=-1,Ae=Array(w);++W<w;)Ae[W]=X(W);return Ae}o(Av,"baseTimes");function y2(w,X){return fn(X,function(W){return[W,w[W]]})}o(y2,"baseToPairs");function Vx(w){return w&&w.slice(0,Ux(w)+1).replace(cv,"")}o(Vx,"baseTrim");function lr(w){return function(X){return w(X)}}o(lr,"baseUnary");function Sv(w,X){return fn(X,function(W){return w[W]})}o(Sv,"baseValues");function _f(w,X){return w.has(X)}o(_f,"cacheHas");function wx(w,X){for(var W=-1,Ae=w.length;++W<Ae&&Hc(X,w[W],0)>-1;);return W}o(wx,"charsStartIndex");function Mx(w,X){for(var W=w.length;W--&&Hc(X,w[W],0)>-1;);return W}o(Mx,"charsEndIndex");function T2(w,X){for(var W=w.length,Ae=0;W--;)w[W]===X&&++Ae;return Ae}o(T2,"countHolders");var b2=bv(n2),E2=bv(i2);function A2(w){return"\\"+o2[w]}o(A2,"escapeStringChar");function S2(w,X){return w==null?e:w[X]}o(S2,"getValue");function Gc(w){return JM.test(w)}o(Gc,"hasUnicode");function P2(w){return ZM.test(w)}o(P2,"hasUnicodeWord");function C2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(C2,"iteratorToArray");function Pv(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae,We){W[++X]=[We,Ae]}),W}o(Pv,"mapToArray");function kx(w,X){return function(W){return w(X(W))}}o(kx,"overArg");function Da(w,X){for(var W=-1,Ae=w.length,We=0,St=[];++W<Ae;){var Un=w[W];(Un===X||Un===u)&&(w[W]=u,St[We++]=W)}return St}o(Da,"replaceHolders");function Sd(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=Ae}),W}o(Sd,"setToArray");function x2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=[Ae,Ae]}),W}o(x2,"setToPairs");function I2(w,X,W){for(var Ae=W-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(I2,"strictIndexOf");function O2(w,X,W){for(var Ae=W+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(O2,"strictLastIndexOf");function Wc(w){return Gc(w)?L2(w):p2(w)}o(Wc,"stringSize");function Jr(w){return Gc(w)?R2(w):d2(w)}o(Jr,"stringToArray");function Ux(w){for(var X=w.length;X--&&vM.test(w.charAt(X)););return X}o(Ux,"trimmedEndIndex");var N2=bv(r2);function L2(w){for(var X=dv.lastIndex=0;dv.test(w);)++X;return X}o(L2,"unicodeSize");function R2(w){return w.match(dv)||[]}o(R2,"unicodeToArray");function F2(w){return w.match(zM)||[]}o(F2,"unicodeWords");var D2=o(function w(X){X=X==null?Xn:_a.defaults(Xn.Object(),X,_a.pick(Xn,e2));var W=X.Array,Ae=X.Date,We=X.Error,St=X.Function,Un=X.Math,Kt=X.Object,Cv=X.RegExp,_2=X.String,Fr=X.TypeError,Pd=W.prototype,V2=St.prototype,Kc=Kt.prototype,Cd=X["__core-js_shared__"],xd=V2.toString,Ft=Kc.hasOwnProperty,w2=0,jx=function(){var c=/[^.]+$/.exec(Cd&&Cd.keys&&Cd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Id=Kc.toString,M2=xd.call(Kt),k2=Xn._,U2=Cv("^"+xd.call(Ft).replace(Df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Od=Sx?X.Buffer:e,Va=X.Symbol,Nd=X.Uint8Array,$x=Od?Od.allocUnsafe:e,Ld=kx(Kt.getPrototypeOf,Kt),Bx=Kt.create,Hx=Kc.propertyIsEnumerable,Rd=Pd.splice,Gx=Va?Va.isConcatSpreadable:e,Vf=Va?Va.iterator:e,ks=Va?Va.toStringTag:e,Fd=function(){try{var c=Hs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),j2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,$2=Ae&&Ae.now!==Xn.Date.now&&Ae.now,B2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,Dd=Un.ceil,_d=Un.floor,xv=Kt.getOwnPropertySymbols,H2=Od?Od.isBuffer:e,Wx=X.isFinite,G2=Pd.join,W2=kx(Kt.keys,Kt),jn=Un.max,vi=Un.min,K2=Ae.now,X2=X.parseInt,Kx=Un.random,Q2=Pd.reverse,Iv=Hs(X,"DataView"),wf=Hs(X,"Map"),Ov=Hs(X,"Promise"),Xc=Hs(X,"Set"),Mf=Hs(X,"WeakMap"),kf=Hs(Kt,"create"),Vd=Mf&&new Mf,Qc={},q2=Gs(Iv),Y2=Gs(wf),z2=Gs(Ov),J2=Gs(Xc),Z2=Gs(Mf),wd=Va?Va.prototype:e,Uf=wd?wd.valueOf:e,Xx=wd?wd.toString:e;function P(c){if(Tn(c)&&!Xe(c)&&!(c instanceof pt)){if(c instanceof Dr)return c;if(Ft.call(c,"__wrapped__"))return QI(c)}return new Dr(c)}o(P,"lodash");var qc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(Bx)return Bx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Md(){}o(Md,"baseLodash");function Dr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Dr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=Md.prototype,P.prototype.constructor=P,Dr.prototype=qc(Md.prototype),Dr.prototype.constructor=Dr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function ek(){var c=new pt(this.__wrapped__);return c.__actions__=Wi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Wi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Wi(this.__views__),c}o(ek,"lazyClone");function tk(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(tk,"lazyReverse");function nk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),T=f<0,E=d?c.length:0,x=gU(0,E,this.__views__),L=x.start,R=x.end,M=R-L,z=T?R:L-1,J=this.__iteratees__,ee=J.length,me=0,Ne=vi(M,this.__takeCount__);if(!d||!T&&E==M&&Ne==M)return yI(c,this.__actions__);var Me=[];e:for(;M--&&me<Ne;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ee;){var st=J[Ze],gt=st.iteratee,pr=st.type,Ri=gt(ke);if(pr==Wn)ke=Ri;else if(!Ri){if(pr==an)continue e;break e}}Me[me++]=ke}return Me}o(nk,"lazyValue"),pt.prototype=qc(Md.prototype),pt.prototype.constructor=pt;function Us(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(Us,"Hash");function ik(){this.__data__=kf?kf(null):{},this.size=0}o(ik,"hashClear");function rk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(rk,"hashDelete");function ok(c){var f=this.__data__;if(kf){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ok,"hashGet");function ak(c){var f=this.__data__;return kf?f[c]!==e:Ft.call(f,c)}o(ak,"hashHas");function sk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=kf&&f===e?s:f,this}o(sk,"hashSet"),Us.prototype.clear=ik,Us.prototype.delete=rk,Us.prototype.get=ok,Us.prototype.has=ak,Us.prototype.set=sk;function Yo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(Yo,"ListCache");function ck(){this.__data__=[],this.size=0}o(ck,"listCacheClear");function lk(c){var f=this.__data__,d=kd(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():Rd.call(f,d,1),--this.size,!0}o(lk,"listCacheDelete");function fk(c){var f=this.__data__,d=kd(f,c);return d<0?e:f[d][1]}o(fk,"listCacheGet");function uk(c){return kd(this.__data__,c)>-1}o(uk,"listCacheHas");function pk(c,f){var d=this.__data__,T=kd(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(pk,"listCacheSet"),Yo.prototype.clear=ck,Yo.prototype.delete=lk,Yo.prototype.get=fk,Yo.prototype.has=uk,Yo.prototype.set=pk;function zo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(zo,"MapCache");function dk(){this.size=0,this.__data__={hash:new Us,map:new(wf||Yo),string:new Us}}o(dk,"mapCacheClear");function gk(c){var f=Yd(this,c).delete(c);return this.size-=f?1:0,f}o(gk,"mapCacheDelete");function mk(c){return Yd(this,c).get(c)}o(mk,"mapCacheGet");function hk(c){return Yd(this,c).has(c)}o(hk,"mapCacheHas");function yk(c,f){var d=Yd(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(yk,"mapCacheSet"),zo.prototype.clear=dk,zo.prototype.delete=gk,zo.prototype.get=mk,zo.prototype.has=hk,zo.prototype.set=yk;function js(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new zo;++f<d;)this.add(c[f])}o(js,"SetCache");function vk(c){return this.__data__.set(c,s),this}o(vk,"setCacheAdd");function Tk(c){return this.__data__.has(c)}o(Tk,"setCacheHas"),js.prototype.add=js.prototype.push=vk,js.prototype.has=Tk;function Zr(c){var f=this.__data__=new Yo(c);this.size=f.size}o(Zr,"Stack");function bk(){this.__data__=new Yo,this.size=0}o(bk,"stackClear");function Ek(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Ek,"stackDelete");function Ak(c){return this.__data__.get(c)}o(Ak,"stackGet");function Sk(c){return this.__data__.has(c)}o(Sk,"stackHas");function Pk(c,f){var d=this.__data__;if(d instanceof Yo){var T=d.__data__;if(!wf||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new zo(T)}return d.set(c,f),this.size=d.size,this}o(Pk,"stackSet"),Zr.prototype.clear=bk,Zr.prototype.delete=Ek,Zr.prototype.get=Ak,Zr.prototype.has=Sk,Zr.prototype.set=Pk;function Qx(c,f){var d=Xe(c),T=!d&&Ws(c),E=!d&&!T&&ja(c),x=!d&&!T&&!E&&Zc(c),L=d||T||E||x,R=L?Av(c.length,_2):[],M=R.length;for(var z in c)(f||Ft.call(c,z))&&!(L&&(z=="length"||E&&(z=="offset"||z=="parent")||x&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ta(z,M)))&&R.push(z);return R}o(Qx,"arrayLikeKeys");function qx(c){var f=c.length;return f?c[Uv(0,f-1)]:e}o(qx,"arraySample");function Ck(c,f){return zd(Wi(c),$s(f,0,c.length))}o(Ck,"arraySampleSize");function xk(c){return zd(Wi(c))}o(xk,"arrayShuffle");function Nv(c,f,d){(d!==e&&!eo(c[f],d)||d===e&&!(f in c))&&Jo(c,f,d)}o(Nv,"assignMergeValue");function jf(c,f,d){var T=c[f];(!(Ft.call(c,f)&&eo(T,d))||d===e&&!(f in c))&&Jo(c,f,d)}o(jf,"assignValue");function kd(c,f){for(var d=c.length;d--;)if(eo(c[d][0],f))return d;return-1}o(kd,"assocIndexOf");function Ik(c,f,d,T){return wa(c,function(E,x,L){f(T,E,d(E),L)}),T}o(Ik,"baseAggregator");function Yx(c,f){return c&&Po(f,Qn(f),c)}o(Yx,"baseAssign");function Ok(c,f){return c&&Po(f,Xi(f),c)}o(Ok,"baseAssignIn");function Jo(c,f,d){f=="__proto__"&&Fd?Fd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Jo,"baseAssignValue");function Lv(c,f){for(var d=-1,T=f.length,E=W(T),x=c==null;++d<T;)E[d]=x?e:fT(c,f[d]);return E}o(Lv,"baseAt");function $s(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o($s,"baseClamp");function _r(c,f,d,T,E,x){var L,R=f&p,M=f&g,z=f&m;if(d&&(L=E?d(c,T,E,x):d(c)),L!==e)return L;if(!hn(c))return c;var J=Xe(c);if(J){if(L=hU(c),!R)return Wi(c,L)}else{var ee=Ti(c),me=ee==_e||ee==Rt;if(ja(c))return bI(c,R);if(ee==cn||ee==Kn||me&&!E){if(L=M||me?{}:UI(c),!R)return M?oU(c,Ok(L,c)):rU(c,Yx(L,c))}else{if(!qt[ee])return E?c:{};L=yU(c,ee,R)}}x||(x=new Zr);var Ne=x.get(c);if(Ne)return Ne;x.set(c,L),gO(c)?c.forEach(function(ke){L.add(_r(ke,f,d,ke,c,x))}):pO(c)&&c.forEach(function(ke,st){L.set(st,_r(ke,f,d,st,c,x))});var Me=z?M?Yv:qv:M?Xi:Qn,Ze=J?e:Me(c);return Rr(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),jf(L,st,_r(ke,f,d,st,c,x))}),L}o(_r,"baseClone");function Nk(c){var f=Qn(c);return function(d){return zx(d,c,f)}}o(Nk,"baseConforms");function zx(c,f,d){var T=d.length;if(c==null)return!T;for(c=Kt(c);T--;){var E=d[T],x=f[E],L=c[E];if(L===e&&!(E in c)||!x(L))return!1}return!0}o(zx,"baseConformsTo");function Jx(c,f,d){if(typeof c!="function")throw new Fr(r);return Xf(function(){c.apply(e,d)},f)}o(Jx,"baseDelay");function $f(c,f,d,T){var E=-1,x=Ed,L=!0,R=c.length,M=[],z=f.length;if(!R)return M;d&&(f=fn(f,lr(d))),T?(x=hv,L=!1):f.length>=n&&(x=_f,L=!1,f=new js(f));e:for(;++E<R;){var J=c[E],ee=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ee===ee){for(var me=z;me--;)if(f[me]===ee)continue e;M.push(J)}else x(f,ee,T)||M.push(J)}return M}o($f,"baseDifference");var wa=CI(So),Zx=CI(Fv,!0);function Lk(c,f){var d=!0;return wa(c,function(T,E,x){return d=!!f(T,E,x),d}),d}o(Lk,"baseEvery");function Ud(c,f,d){for(var T=-1,E=c.length;++T<E;){var x=c[T],L=f(x);if(L!=null&&(R===e?L===L&&!ur(L):d(L,R)))var R=L,M=x}return M}o(Ud,"baseExtremum");function Rk(c,f,d,T){var E=c.length;for(d=Je(d),d<0&&(d=-d>E?0:E+d),T=T===e||T>E?E:Je(T),T<0&&(T+=E),T=d>T?0:hO(T);d<T;)c[d++]=f;return c}o(Rk,"baseFill");function eI(c,f){var d=[];return wa(c,function(T,E,x){f(T,E,x)&&d.push(T)}),d}o(eI,"baseFilter");function ii(c,f,d,T,E){var x=-1,L=c.length;for(d||(d=TU),E||(E=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ii(R,f-1,d,T,E):Fa(E,R):T||(E[E.length]=R)}return E}o(ii,"baseFlatten");var Rv=xI(),tI=xI(!0);function So(c,f){return c&&Rv(c,f,Qn)}o(So,"baseForOwn");function Fv(c,f){return c&&tI(c,f,Qn)}o(Fv,"baseForOwnRight");function jd(c,f){return Ra(f,function(d){return na(c[d])})}o(jd,"baseFunctions");function Bs(c,f){f=ka(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[Co(f[d++])];return d&&d==T?c:e}o(Bs,"baseGet");function nI(c,f,d){var T=f(c);return Xe(c)?T:Fa(T,d(c))}o(nI,"baseGetAllKeys");function Ni(c){return c==null?c===e?qo:vn:ks&&ks in Kt(c)?dU(c):xU(c)}o(Ni,"baseGetTag");function Dv(c,f){return c>f}o(Dv,"baseGt");function Fk(c,f){return c!=null&&Ft.call(c,f)}o(Fk,"baseHas");function Dk(c,f){return c!=null&&f in Kt(c)}o(Dk,"baseHasIn");function _k(c,f,d){return c>=vi(f,d)&&c<jn(f,d)}o(_k,"baseInRange");function _v(c,f,d){for(var T=d?hv:Ed,E=c[0].length,x=c.length,L=x,R=W(x),M=1/0,z=[];L--;){var J=c[L];L&&f&&(J=fn(J,lr(f))),M=vi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new js(L&&J):e}J=c[0];var ee=-1,me=R[0];e:for(;++ee<E&&z.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(me?_f(me,Me):T(z,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?_f(Ze,Me):T(c[L],Me,d)))continue e}me&&me.push(Me),z.push(Ne)}}return z}o(_v,"baseIntersection");function Vk(c,f,d,T){return So(c,function(E,x,L){f(T,d(E),x,L)}),T}o(Vk,"baseInverter");function Bf(c,f,d){f=ka(f,c),c=HI(c,f);var T=c==null?c:c[Co(wr(f))];return T==null?e:cr(T,c,d)}o(Bf,"baseInvoke");function iI(c){return Tn(c)&&Ni(c)==Kn}o(iI,"baseIsArguments");function wk(c){return Tn(c)&&Ni(c)==Vs}o(wk,"baseIsArrayBuffer");function Mk(c){return Tn(c)&&Ni(c)==S}o(Mk,"baseIsDate");function Hf(c,f,d,T,E){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:kk(c,f,d,T,Hf,E)}o(Hf,"baseIsEqual");function kk(c,f,d,T,E,x){var L=Xe(c),R=Xe(f),M=L?Or:Ti(c),z=R?Or:Ti(f);M=M==Kn?cn:M,z=z==Kn?cn:z;var J=M==cn,ee=z==cn,me=M==z;if(me&&ja(c)){if(!ja(f))return!1;L=!0,J=!1}if(me&&!J)return x||(x=new Zr),L||Zc(c)?wI(c,f,d,T,E,x):uU(c,f,M,d,T,E,x);if(!(d&v)){var Ne=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Ne||Me){var Ze=Ne?c.value():c,ke=Me?f.value():f;return x||(x=new Zr),E(Ze,ke,d,T,x)}}return me?(x||(x=new Zr),pU(c,f,d,T,E,x)):!1}o(kk,"baseIsEqualDeep");function Uk(c){return Tn(c)&&Ti(c)==Qe}o(Uk,"baseIsMap");function Vv(c,f,d,T){var E=d.length,x=E,L=!T;if(c==null)return!x;for(c=Kt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<x;){R=d[E];var M=R[0],z=c[M],J=R[1];if(L&&R[2]){if(z===e&&!(M in c))return!1}else{var ee=new Zr;if(T)var me=T(z,J,M,c,f,ee);if(!(me===e?Hf(J,z,v|A,T,ee):me))return!1}}return!0}o(Vv,"baseIsMatch");function rI(c){if(!hn(c)||EU(c))return!1;var f=na(c)?U2:OM;return f.test(Gs(c))}o(rI,"baseIsNative");function jk(c){return Tn(c)&&Ni(c)==ar}o(jk,"baseIsRegExp");function $k(c){return Tn(c)&&Ti(c)==gn}o($k,"baseIsSet");function Bk(c){return Tn(c)&&ig(c.length)&&!!tn[Ni(c)]}o(Bk,"baseIsTypedArray");function oI(c){return typeof c=="function"?c:c==null?Qi:typeof c=="object"?Xe(c)?cI(c[0],c[1]):sI(c):IO(c)}o(oI,"baseIteratee");function wv(c){if(!Kf(c))return W2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(wv,"baseKeys");function Hk(c){if(!hn(c))return CU(c);var f=Kf(c),d=[];for(var T in c)T=="constructor"&&(f||!Ft.call(c,T))||d.push(T);return d}o(Hk,"baseKeysIn");function Mv(c,f){return c<f}o(Mv,"baseLt");function aI(c,f){var d=-1,T=Ki(c)?W(c.length):[];return wa(c,function(E,x,L){T[++d]=f(E,x,L)}),T}o(aI,"baseMap");function sI(c){var f=Jv(c);return f.length==1&&f[0][2]?$I(f[0][0],f[0][1]):function(d){return d===c||Vv(d,c,f)}}o(sI,"baseMatches");function cI(c,f){return eT(c)&&jI(f)?$I(Co(c),f):function(d){var T=fT(d,c);return T===e&&T===f?uT(d,c):Hf(f,T,v|A)}}o(cI,"baseMatchesProperty");function $d(c,f,d,T,E){c!==f&&Rv(f,function(x,L){if(E||(E=new Zr),hn(x))Gk(c,f,L,d,$d,T,E);else{var R=T?T(nT(c,L),x,L+"",c,f,E):e;R===e&&(R=x),Nv(c,L,R)}},Xi)}o($d,"baseMerge");function Gk(c,f,d,T,E,x,L){var R=nT(c,d),M=nT(f,d),z=L.get(M);if(z){Nv(c,d,z);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var me=Xe(M),Ne=!me&&ja(M),Me=!me&&!Ne&&Zc(M);J=M,me||Ne||Me?Xe(R)?J=R:In(R)?J=Wi(R):Ne?(ee=!1,J=bI(M,!0)):Me?(ee=!1,J=EI(M,!0)):J=[]:Qf(M)||Ws(M)?(J=R,Ws(R)?J=yO(R):(!hn(R)||na(R))&&(J=UI(M))):ee=!1}ee&&(L.set(M,J),E(J,M,T,x,L),L.delete(M)),Nv(c,d,J)}o(Gk,"baseMergeDeep");function lI(c,f){var d=c.length;if(d)return f+=f<0?d:0,ta(f,d)?c[f]:e}o(lI,"baseNth");function fI(c,f,d){f.length?f=fn(f,function(x){return Xe(x)?function(L){return Bs(L,x.length===1?x[0]:x)}:x}):f=[Qi];var T=-1;f=fn(f,lr(Ve()));var E=aI(c,function(x,L,R){var M=fn(f,function(z){return z(x)});return{criteria:M,index:++T,value:x}});return h2(E,function(x,L){return iU(x,L,d)})}o(fI,"baseOrderBy");function Wk(c,f){return uI(c,f,function(d,T){return uT(c,T)})}o(Wk,"basePick");function uI(c,f,d){for(var T=-1,E=f.length,x={};++T<E;){var L=f[T],R=Bs(c,L);d(R,L)&&Gf(x,ka(L,c),R)}return x}o(uI,"basePickBy");function Kk(c){return function(f){return Bs(f,c)}}o(Kk,"basePropertyDeep");function kv(c,f,d,T){var E=T?m2:Hc,x=-1,L=f.length,R=c;for(c===f&&(f=Wi(f)),d&&(R=fn(c,lr(d)));++x<L;)for(var M=0,z=f[x],J=d?d(z):z;(M=E(R,J,M,T))>-1;)R!==c&&Rd.call(R,M,1),Rd.call(c,M,1);return c}o(kv,"basePullAll");function pI(c,f){for(var d=c?f.length:0,T=d-1;d--;){var E=f[d];if(d==T||E!==x){var x=E;ta(E)?Rd.call(c,E,1):Bv(c,E)}}return c}o(pI,"basePullAt");function Uv(c,f){return c+_d(Kx()*(f-c+1))}o(Uv,"baseRandom");function Xk(c,f,d,T){for(var E=-1,x=jn(Dd((f-c)/(d||1)),0),L=W(x);x--;)L[T?x:++E]=c,c+=d;return L}o(Xk,"baseRange");function jv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=_d(f/2),f&&(c+=c);while(f);return d}o(jv,"baseRepeat");function nt(c,f){return iT(BI(c,f,Qi),c+"")}o(nt,"baseRest");function Qk(c){return qx(el(c))}o(Qk,"baseSample");function qk(c,f){var d=el(c);return zd(d,$s(f,0,d.length))}o(qk,"baseSampleSize");function Gf(c,f,d,T){if(!hn(c))return c;f=ka(f,c);for(var E=-1,x=f.length,L=x-1,R=c;R!=null&&++E<x;){var M=Co(f[E]),z=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];z=T?T(J,M,R):e,z===e&&(z=hn(J)?J:ta(f[E+1])?[]:{})}jf(R,M,z),R=R[M]}return c}o(Gf,"baseSet");var dI=Vd?function(c,f){return Vd.set(c,f),c}:Qi,Yk=Fd?function(c,f){return Fd(c,"toString",{configurable:!0,enumerable:!1,value:dT(f),writable:!0})}:Qi;function zk(c){return zd(el(c))}o(zk,"baseShuffle");function Vr(c,f,d){var T=-1,E=c.length;f<0&&(f=-f>E?0:E+f),d=d>E?E:d,d<0&&(d+=E),E=f>d?0:d-f>>>0,f>>>=0;for(var x=W(E);++T<E;)x[T]=c[T+f];return x}o(Vr,"baseSlice");function Jk(c,f){var d;return wa(c,function(T,E,x){return d=f(T,E,x),!d}),!!d}o(Jk,"baseSome");function Bd(c,f,d){var T=0,E=c==null?T:c.length;if(typeof f=="number"&&f===f&&E<=Hi){for(;T<E;){var x=T+E>>>1,L=c[x];L!==null&&!ur(L)&&(d?L<=f:L<f)?T=x+1:E=x}return E}return $v(c,f,Qi,d)}o(Bd,"baseSortedIndex");function $v(c,f,d,T){var E=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=ur(f),z=f===e;E<x;){var J=_d((E+x)/2),ee=d(c[J]),me=ee!==e,Ne=ee===null,Me=ee===ee,Ze=ur(ee);if(L)var ke=T||Me;else z?ke=Me&&(T||me):R?ke=Me&&me&&(T||!Ne):M?ke=Me&&me&&!Ne&&(T||!Ze):Ne||Ze?ke=!1:ke=T?ee<=f:ee<f;ke?E=J+1:x=J}return vi(x,sn)}o($v,"baseSortedIndexBy");function gI(c,f){for(var d=-1,T=c.length,E=0,x=[];++d<T;){var L=c[d],R=f?f(L):L;if(!d||!eo(R,M)){var M=R;x[E++]=L===0?0:L}}return x}o(gI,"baseSortedUniq");function mI(c){return typeof c=="number"?c:ur(c)?It:+c}o(mI,"baseToNumber");function fr(c){if(typeof c=="string")return c;if(Xe(c))return fn(c,fr)+"";if(ur(c))return Xx?Xx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(fr,"baseToString");function Ma(c,f,d){var T=-1,E=Ed,x=c.length,L=!0,R=[],M=R;if(d)L=!1,E=hv;else if(x>=n){var z=f?null:lU(c);if(z)return Sd(z);L=!1,E=_f,M=new js}else M=f?[]:R;e:for(;++T<x;){var J=c[T],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var me=M.length;me--;)if(M[me]===ee)continue e;f&&M.push(ee),R.push(J)}else E(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(Ma,"baseUniq");function Bv(c,f){return f=ka(f,c),c=HI(c,f),c==null||delete c[Co(wr(f))]}o(Bv,"baseUnset");function hI(c,f,d,T){return Gf(c,f,d(Bs(c,f)),T)}o(hI,"baseUpdate");function Hd(c,f,d,T){for(var E=c.length,x=T?E:-1;(T?x--:++x<E)&&f(c[x],x,c););return d?Vr(c,T?0:x,T?x+1:E):Vr(c,T?x+1:0,T?E:x)}o(Hd,"baseWhile");function yI(c,f){var d=c;return d instanceof pt&&(d=d.value()),yv(f,function(T,E){return E.func.apply(E.thisArg,Fa([T],E.args))},d)}o(yI,"baseWrapperValue");function Hv(c,f,d){var T=c.length;if(T<2)return T?Ma(c[0]):[];for(var E=-1,x=W(T);++E<T;)for(var L=c[E],R=-1;++R<T;)R!=E&&(x[E]=$f(x[E]||L,c[R],f,d));return Ma(ii(x,1),f,d)}o(Hv,"baseXor");function vI(c,f,d){for(var T=-1,E=c.length,x=f.length,L={};++T<E;){var R=T<x?f[T]:e;d(L,c[T],R)}return L}o(vI,"baseZipObject");function Gv(c){return In(c)?c:[]}o(Gv,"castArrayLikeObject");function Wv(c){return typeof c=="function"?c:Qi}o(Wv,"castFunction");function ka(c,f){return Xe(c)?c:eT(c,f)?[c]:XI(Ot(c))}o(ka,"castPath");var Zk=nt;function Ua(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Vr(c,f,d)}o(Ua,"castSlice");var TI=j2||function(c){return Xn.clearTimeout(c)};function bI(c,f){if(f)return c.slice();var d=c.length,T=$x?$x(d):new c.constructor(d);return c.copy(T),T}o(bI,"cloneBuffer");function Kv(c){var f=new c.constructor(c.byteLength);return new Nd(f).set(new Nd(c)),f}o(Kv,"cloneArrayBuffer");function eU(c,f){var d=f?Kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(eU,"cloneDataView");function tU(c){var f=new c.constructor(c.source,ix.exec(c));return f.lastIndex=c.lastIndex,f}o(tU,"cloneRegExp");function nU(c){return Uf?Kt(Uf.call(c)):{}}o(nU,"cloneSymbol");function EI(c,f){var d=f?Kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(EI,"cloneTypedArray");function AI(c,f){if(c!==f){var d=c!==e,T=c===null,E=c===c,x=ur(c),L=f!==e,R=f===null,M=f===f,z=ur(f);if(!R&&!z&&!x&&c>f||x&&L&&M&&!R&&!z||T&&L&&M||!d&&M||!E)return 1;if(!T&&!x&&!z&&c<f||z&&d&&E&&!T&&!x||R&&d&&E||!L&&E||!M)return-1}return 0}o(AI,"compareAscending");function iU(c,f,d){for(var T=-1,E=c.criteria,x=f.criteria,L=E.length,R=d.length;++T<L;){var M=AI(E[T],x[T]);if(M){if(T>=R)return M;var z=d[T];return M*(z=="desc"?-1:1)}}return c.index-f.index}o(iU,"compareMultiple");function SI(c,f,d,T){for(var E=-1,x=c.length,L=d.length,R=-1,M=f.length,z=jn(x-L,0),J=W(M+z),ee=!T;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<x)&&(J[d[E]]=c[E]);for(;z--;)J[R++]=c[E++];return J}o(SI,"composeArgs");function PI(c,f,d,T){for(var E=-1,x=c.length,L=-1,R=d.length,M=-1,z=f.length,J=jn(x-R,0),ee=W(J+z),me=!T;++E<J;)ee[E]=c[E];for(var Ne=E;++M<z;)ee[Ne+M]=f[M];for(;++L<R;)(me||E<x)&&(ee[Ne+d[L]]=c[E++]);return ee}o(PI,"composeArgsRight");function Wi(c,f){var d=-1,T=c.length;for(f||(f=W(T));++d<T;)f[d]=c[d];return f}o(Wi,"copyArray");function Po(c,f,d,T){var E=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=T?T(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Jo(d,R,M):jf(d,R,M)}return d}o(Po,"copyObject");function rU(c,f){return Po(c,Zv(c),f)}o(rU,"copySymbols");function oU(c,f){return Po(c,MI(c),f)}o(oU,"copySymbolsIn");function Gd(c,f){return function(d,T){var E=Xe(d)?l2:Ik,x=f?f():{};return E(d,c,Ve(T,2),x)}}o(Gd,"createAggregator");function Yc(c){return nt(function(f,d){var T=-1,E=d.length,x=E>1?d[E-1]:e,L=E>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(E--,x):e,L&&Li(d[0],d[1],L)&&(x=E<3?e:x,E=1),f=Kt(f);++T<E;){var R=d[T];R&&c(f,R,T,x)}return f})}o(Yc,"createAssigner");function CI(c,f){return function(d,T){if(d==null)return d;if(!Ki(d))return c(d,T);for(var E=d.length,x=f?E:-1,L=Kt(d);(f?x--:++x<E)&&T(L[x],x,L)!==!1;);return d}}o(CI,"createBaseEach");function xI(c){return function(f,d,T){for(var E=-1,x=Kt(f),L=T(f),R=L.length;R--;){var M=L[c?R:++E];if(d(x[M],M,x)===!1)break}return f}}o(xI,"createBaseFor");function aU(c,f,d){var T=f&b,E=Wf(c);function x(){var L=this&&this!==Xn&&this instanceof x?E:c;return L.apply(T?d:this,arguments)}return o(x,"wrapper"),x}o(aU,"createBind");function II(c){return function(f){f=Ot(f);var d=Gc(f)?Jr(f):e,T=d?d[0]:f.charAt(0),E=d?Ua(d,1).join(""):f.slice(1);return T[c]()+E}}o(II,"createCaseFirst");function zc(c){return function(f){return yv(CO(PO(f).replace(qM,"")),c,"")}}o(zc,"createCompounder");function Wf(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),T=c.apply(d,f);return hn(T)?T:d}}o(Wf,"createCtor");function sU(c,f,d){var T=Wf(c);function E(){for(var x=arguments.length,L=W(x),R=x,M=Jc(E);R--;)L[R]=arguments[R];var z=x<3&&L[0]!==M&&L[x-1]!==M?[]:Da(L,M);if(x-=z.length,x<d)return FI(c,f,Wd,E.placeholder,e,L,z,e,e,d-x);var J=this&&this!==Xn&&this instanceof E?T:c;return cr(J,this,L)}return o(E,"wrapper"),E}o(sU,"createCurry");function OI(c){return function(f,d,T){var E=Kt(f);if(!Ki(f)){var x=Ve(d,3);f=Qn(f),d=o(function(R){return x(E[R],R,E)},"predicate")}var L=c(f,d,T);return L>-1?E[x?f[L]:L]:e}}o(OI,"createFind");function NI(c){return ea(function(f){var d=f.length,T=d,E=Dr.prototype.thru;for(c&&f.reverse();T--;){var x=f[T];if(typeof x!="function")throw new Fr(r);if(E&&!L&&qd(x)=="wrapper")var L=new Dr([],!0)}for(T=L?T:d;++T<d;){x=f[T];var R=qd(x),M=R=="wrapper"?zv(x):e;M&&tT(M[0])&&M[1]==(Z|U|j|re)&&!M[4].length&&M[9]==1?L=L[qd(M[0])].apply(L,M[3]):L=x.length==1&&tT(x)?L[R]():L.thru(x)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,me=d?f[ee].apply(this,z):J;++ee<d;)me=f[ee].call(this,me);return me}})}o(NI,"createFlow");function Wd(c,f,d,T,E,x,L,R,M,z){var J=f&Z,ee=f&b,me=f&O,Ne=f&(U|K),Me=f&Pe,Ze=me?e:Wf(c);function ke(){for(var st=arguments.length,gt=W(st),pr=st;pr--;)gt[pr]=arguments[pr];if(Ne)var Ri=Jc(ke),dr=T2(gt,Ri);if(T&&(gt=SI(gt,T,E,Ne)),x&&(gt=PI(gt,x,L,Ne)),st-=dr,Ne&&st<z){var On=Da(gt,Ri);return FI(c,f,Wd,ke.placeholder,d,gt,On,R,M,z-st)}var to=ee?d:this,ra=me?to[c]:c;return st=gt.length,R?gt=IU(gt,R):Me&&st>1&>.reverse(),J&&M<st&&(gt.length=M),this&&this!==Xn&&this instanceof ke&&(ra=Ze||Wf(ra)),ra.apply(to,gt)}return o(ke,"wrapper"),ke}o(Wd,"createHybrid");function LI(c,f){return function(d,T){return Vk(d,c,f(T),{})}}o(LI,"createInverter");function Kd(c,f){return function(d,T){var E;if(d===e&&T===e)return f;if(d!==e&&(E=d),T!==e){if(E===e)return T;typeof d=="string"||typeof T=="string"?(d=fr(d),T=fr(T)):(d=mI(d),T=mI(T)),E=c(d,T)}return E}}o(Kd,"createMathOperation");function Xv(c){return ea(function(f){return f=fn(f,lr(Ve())),nt(function(d){var T=this;return c(f,function(E){return cr(E,T,d)})})})}o(Xv,"createOver");function Xd(c,f){f=f===e?" ":fr(f);var d=f.length;if(d<2)return d?jv(f,c):f;var T=jv(f,Dd(c/Wc(f)));return Gc(f)?Ua(Jr(T),0,c).join(""):T.slice(0,c)}o(Xd,"createPadding");function cU(c,f,d,T){var E=f&b,x=Wf(c);function L(){for(var R=-1,M=arguments.length,z=-1,J=T.length,ee=W(J+M),me=this&&this!==Xn&&this instanceof L?x:c;++z<J;)ee[z]=T[z];for(;M--;)ee[z++]=arguments[++R];return cr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(cU,"createPartial");function RI(c){return function(f,d,T){return T&&typeof T!="number"&&Li(f,d,T)&&(d=T=e),f=ia(f),d===e?(d=f,f=0):d=ia(d),T=T===e?f<d?1:-1:ia(T),Xk(f,d,T,c)}}o(RI,"createRange");function Qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Mr(f),d=Mr(d)),c(f,d)}}o(Qd,"createRelationalOperation");function FI(c,f,d,T,E,x,L,R,M,z){var J=f&U,ee=J?L:e,me=J?e:L,Ne=J?x:e,Me=J?e:x;f|=J?j:ae,f&=~(J?ae:j),f&F||(f&=~(b|O));var Ze=[c,f,E,Ne,ee,Me,me,R,M,z],ke=d.apply(e,Ze);return tT(c)&&GI(ke,Ze),ke.placeholder=T,WI(ke,c,f)}o(FI,"createRecurry");function Qv(c){var f=Un[c];return function(d,T){if(d=Mr(d),T=T==null?0:vi(Je(T),292),T&&Wx(d)){var E=(Ot(d)+"e").split("e"),x=f(E[0]+"e"+(+E[1]+T));return E=(Ot(x)+"e").split("e"),+(E[0]+"e"+(+E[1]-T))}return f(d)}}o(Qv,"createRound");var lU=Xc&&1/Sd(new Xc([,-0]))[1]==Lt?function(c){return new Xc(c)}:hT;function DI(c){return function(f){var d=Ti(f);return d==Qe?Pv(f):d==gn?x2(f):y2(f,c(f))}}o(DI,"createToPairs");function Zo(c,f,d,T,E,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Fr(r);var z=T?T.length:0;if(z||(f&=~(j|ae),T=E=e),L=L===e?L:jn(Je(L),0),R=R===e?R:Je(R),z-=E?E.length:0,f&ae){var J=T,ee=E;T=E=e}var me=M?e:zv(c),Ne=[c,f,d,T,E,J,ee,x,L,R];if(me&&PU(Ne,me),c=Ne[0],f=Ne[1],d=Ne[2],T=Ne[3],E=Ne[4],R=Ne[9]=Ne[9]===e?M?0:c.length:jn(Ne[9]-z,0),!R&&f&(U|K)&&(f&=~(U|K)),!f||f==b)var Me=aU(c,f,d);else f==U||f==K?Me=sU(c,f,R):(f==j||f==(b|j))&&!E.length?Me=cU(c,f,d,T):Me=Wd.apply(e,Ne);var Ze=me?dI:GI;return WI(Ze(Me,Ne),c,f)}o(Zo,"createWrap");function _I(c,f,d,T){return c===e||eo(c,Kc[d])&&!Ft.call(T,d)?f:c}o(_I,"customDefaultsAssignIn");function VI(c,f,d,T,E,x){return hn(c)&&hn(f)&&(x.set(f,c),$d(c,f,e,VI,x),x.delete(f)),c}o(VI,"customDefaultsMerge");function fU(c){return Qf(c)?e:c}o(fU,"customOmitClone");function wI(c,f,d,T,E,x){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var z=x.get(c),J=x.get(f);if(z&&J)return z==f&&J==c;var ee=-1,me=!0,Ne=d&A?new js:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(T)var ke=L?T(Ze,Me,ee,f,c,x):T(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;me=!1;break}if(Ne){if(!vv(f,function(st,gt){if(!_f(Ne,gt)&&(Me===st||E(Me,st,d,T,x)))return Ne.push(gt)})){me=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,T,x))){me=!1;break}}return x.delete(c),x.delete(f),me}o(wI,"equalArrays");function uU(c,f,d,T,E,x,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Vs:return!(c.byteLength!=f.byteLength||!x(new Nd(c),new Nd(f)));case I:case S:case kt:return eo(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ar:case yi:return c==f+"";case Qe:var R=Pv;case gn:var M=T&v;if(R||(R=Sd),c.size!=f.size&&!M)return!1;var z=L.get(c);if(z)return z==f;T|=A,L.set(c,f);var J=wI(R(c),R(f),T,E,x,L);return L.delete(c),J;case Gt:if(Uf)return Uf.call(c)==Uf.call(f)}return!1}o(uU,"equalByTag");function pU(c,f,d,T,E,x){var L=d&v,R=qv(c),M=R.length,z=qv(f),J=z.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var me=R[ee];if(!(L?me in f:Ft.call(f,me)))return!1}var Ne=x.get(c),Me=x.get(f);if(Ne&&Me)return Ne==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){me=R[ee];var st=c[me],gt=f[me];if(T)var pr=L?T(gt,st,me,f,c,x):T(st,gt,me,c,f,x);if(!(pr===e?st===gt||E(st,gt,d,T,x):pr)){Ze=!1;break}ke||(ke=me=="constructor")}if(Ze&&!ke){var Ri=c.constructor,dr=f.constructor;Ri!=dr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof dr=="function"&&dr instanceof dr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(pU,"equalObjects");function ea(c){return iT(BI(c,e,zI),c+"")}o(ea,"flatRest");function qv(c){return nI(c,Qn,Zv)}o(qv,"getAllKeys");function Yv(c){return nI(c,Xi,MI)}o(Yv,"getAllKeysIn");var zv=Vd?function(c){return Vd.get(c)}:hT;function qd(c){for(var f=c.name+"",d=Qc[f],T=Ft.call(Qc,f)?d.length:0;T--;){var E=d[T],x=E.func;if(x==null||x==c)return E.name}return f}o(qd,"getFuncName");function Jc(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(Jc,"getHolder");function Ve(){var c=P.iteratee||gT;return c=c===gT?oI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Yd(c,f){var d=c.__data__;return bU(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Yd,"getMapData");function Jv(c){for(var f=Qn(c),d=f.length;d--;){var T=f[d],E=c[T];f[d]=[T,E,jI(E)]}return f}o(Jv,"getMatchData");function Hs(c,f){var d=S2(c,f);return rI(d)?d:e}o(Hs,"getNative");function dU(c){var f=Ft.call(c,ks),d=c[ks];try{c[ks]=e;var T=!0}catch{}var E=Id.call(c);return T&&(f?c[ks]=d:delete c[ks]),E}o(dU,"getRawTag");var Zv=xv?function(c){return c==null?[]:(c=Kt(c),Ra(xv(c),function(f){return Hx.call(c,f)}))}:yT,MI=xv?function(c){for(var f=[];c;)Fa(f,Zv(c)),c=Ld(c);return f}:yT,Ti=Ni;(Iv&&Ti(new Iv(new ArrayBuffer(1)))!=Nr||wf&&Ti(new wf)!=Qe||Ov&&Ti(Ov.resolve())!=Ht||Xc&&Ti(new Xc)!=gn||Mf&&Ti(new Mf)!=Gi)&&(Ti=o(function(c){var f=Ni(c),d=f==cn?c.constructor:e,T=d?Gs(d):"";if(T)switch(T){case q2:return Nr;case Y2:return Qe;case z2:return Ht;case J2:return gn;case Z2:return Gi}return f},"getTag"));function gU(c,f,d){for(var T=-1,E=d.length;++T<E;){var x=d[T],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=vi(f,c+L);break;case"takeRight":c=jn(c,f-L);break}}return{start:c,end:f}}o(gU,"getView");function mU(c){var f=c.match(bM);return f?f[1].split(EM):[]}o(mU,"getWrapDetails");function kI(c,f,d){f=ka(f,c);for(var T=-1,E=f.length,x=!1;++T<E;){var L=Co(f[T]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++T!=E?x:(E=c==null?0:c.length,!!E&&ig(E)&&ta(L,E)&&(Xe(c)||Ws(c)))}o(kI,"hasPath");function hU(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(hU,"initCloneArray");function UI(c){return typeof c.constructor=="function"&&!Kf(c)?qc(Ld(c)):{}}o(UI,"initCloneObject");function yU(c,f,d){var T=c.constructor;switch(f){case Vs:return Kv(c);case I:case S:return new T(+c);case Nr:return eU(c,d);case Lf:case Rf:case Ff:case ws:case k:case B:case Q:case ce:case Le:return EI(c,d);case Qe:return new T;case kt:case yi:return new T(c);case ar:return tU(c);case gn:return new T;case Gt:return nU(c)}}o(yU,"initCloneByTag");function vU(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(TM,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var V9,Ey=qe(()=>{UA();Sr();sp();vs();up();ql();YA();Ui();Ui();Wl();sS();q_();iV();o(_9,"clearCache");V9=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 o(e,"Parser"),e}()});var vS=Ye((Nce,lV)=>{var{createToken:w9,Lexer:hS}=(Ey(),sg(by)),oV={},Zl=oV;function yS(e,t){oV[e]=typeof t=="string"?t:t.source}o(yS,"FRAGMENT");function Sp(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)}o(Sp,"makePattern");var M9=[],aV={};function Cn(e){let t=w9(e);return M9.push(t),aV[e.name]=t,t}o(Cn,"createToken");yS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");yS("NameChar",Sp`${Zl.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);yS("Name",Sp`${Zl.NameStartChar}(${Zl.NameChar})*`);var rV=Cn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),k9=Cn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),U9=Cn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),j9=Cn({name:"DTD",pattern:/<!.*?>/,group:hS.SKIPPED}),$9=Cn({name:"EntityRef",pattern:Sp`&${Zl.Name};`}),B9=Cn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),H9=Cn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),G9=Cn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),sV=Cn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),W9=Cn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[sV]}),K9=Cn({name:"PROCESSING_INSTRUCTION",pattern:Sp`<\\?${Zl.Name}.*\\?>`}),cV=Cn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),X9=Cn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[cV]}),Q9=Cn({name:"TEXT",pattern:/[^<&]+/}),q9=Cn({name:"CLOSE",pattern:/>/,pop_mode:!0}),Y9=Cn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),z9=Cn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),J9=Cn({name:"SLASH",pattern:/\//}),Z9=Cn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),e6=Cn({name:"EQUALS",pattern:/=/}),t6=Cn({name:"Name",pattern:Sp`${Zl.Name}`}),n6=Cn({name:"S",pattern:/[ \t\r\n]/,group:hS.SKIPPED}),i6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[rV,k9,U9,j9,$9,B9,H9,G9,sV,K9,cV,Q9],INSIDE:[rV,W9,X9,q9,Y9,z9,J9,e6,Z9,t6,n6]}},r6=new hS(i6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});lV.exports={xmlLexer:r6,tokensDictionary:aV}});var uV=Ye((Rce,fV)=>{var{CstParser:o6,tokenMatcher:a6}=(Ey(),sg(by)),{tokensDictionary:xt}=vS(),bS=class bS extends o6{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:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),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:o(()=>{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")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),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:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),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(a=>a6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(bS,"Parser");var TS=bS,s6=new TS;fV.exports={xmlParser:s6}});var ES=Ye((Dce,pV)=>{var{xmlLexer:c6}=vS(),{xmlParser:Ay}=uV();pV.exports={parse:o(function(t){let n=c6.tokenize(t);return Ay.input=n.tokens,{cst:Ay.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ay.errors}},"parse"),BaseXmlCstVisitor:Ay.getBaseCstVisitorConstructor()}});var Cp=Ye((ef,Pp)=>{(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",a="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,b=1,O=2,F=4,U=8,K=16,j=32,ae=64,Z=128,re=256,Pe=512,D=30,ut="...",yt=800,je=16,an=1,Wn=2,en=3,Lt=1/0,Re=9007199254740991,Oi=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,Hi=Mt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",U],["curryRight",K],["flip",Pe],["partial",j],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Or="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Qe="[object Map]",kt="[object Number]",vn="[object Null]",cn="[object Object]",Ht="[object Promise]",ni="[object Proxy]",ar="[object RegExp]",gn="[object Set]",yi="[object String]",Gt="[object Symbol]",Yo="[object Undefined]",Gi="[object WeakMap]",Lf="[object WeakSet]",Vs="[object ArrayBuffer]",Nr="[object DataView]",Rf="[object Float32Array]",Ff="[object Float64Array]",Df="[object Int8Array]",ws="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,Ce=RegExp(he.source),Oe=RegExp(be.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yd=/^\w*$/,lv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,yM=RegExp(_f.source),fv=/^\s+/,vM=/\s/,TM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bM=/\{\n\/\* \[wrapped with (.+)\] \*/,EM=/,? & /,AM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,SM=/[()=,{}\[\]\/\s]/,PM=/\\(\\)?/g,CM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rx=/\w*$/,xM=/^[-+]0x[0-9a-f]+$/i,IM=/^0b[01]+$/i,OM=/^\[object .+?Constructor\]$/,NM=/^0o[0-7]+$/i,LM=/^(?:0|[1-9]\d*)$/,RM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vd=/($^)/,FM=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",DM="\\u0300-\\u036f",_M="\\ufe20-\\ufe2f",VM="\\u20d0-\\u20ff",ox=DM+_M+VM,ax="\\u2700-\\u27bf",sx="a-z\\xdf-\\xf6\\xf8-\\xff",wM="\\xac\\xb1\\xd7\\xf7",MM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kM="\\u2000-\\u206f",UM=" \\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",cx="A-Z\\xc0-\\xd6\\xd8-\\xde",lx="\\ufe0e\\ufe0f",fx=wM+MM+kM+UM,uv="['\u2019]",jM="["+Td+"]",ux="["+fx+"]",bd="["+ox+"]",px="\\d+",$M="["+ax+"]",dx="["+sx+"]",gx="[^"+Td+fx+px+ax+sx+cx+"]",pv="\\ud83c[\\udffb-\\udfff]",BM="(?:"+bd+"|"+pv+")",mx="[^"+Td+"]",dv="(?:\\ud83c[\\udde6-\\uddff]){2}",gv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bc="["+cx+"]",hx="\\u200d",yx="(?:"+dx+"|"+gx+")",HM="(?:"+Bc+"|"+gx+")",vx="(?:"+uv+"(?:d|ll|m|re|s|t|ve))?",Tx="(?:"+uv+"(?:D|LL|M|RE|S|T|VE))?",bx=BM+"?",Ex="["+lx+"]?",GM="(?:"+hx+"(?:"+[mx,dv,gv].join("|")+")"+Ex+bx+")*",WM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",KM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ax=Ex+bx+GM,XM="(?:"+[$M,dv,gv].join("|")+")"+Ax,QM="(?:"+[mx+bd+"?",bd,dv,gv,jM].join("|")+")",qM=RegExp(uv,"g"),YM=RegExp(bd,"g"),mv=RegExp(pv+"(?="+pv+")|"+QM+Ax,"g"),zM=RegExp([Bc+"?"+dx+"+"+vx+"(?="+[ux,Bc,"$"].join("|")+")",HM+"+"+Tx+"(?="+[ux,Bc+yx,"$"].join("|")+")",Bc+"?"+yx+"+"+vx,Bc+"+"+Tx,KM,WM,px,XM].join("|"),"g"),JM=RegExp("["+hx+Td+ox+lx+"]"),ZM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,e2=["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"],t2=-1,tn={};tn[Rf]=tn[Ff]=tn[Df]=tn[ws]=tn[k]=tn[B]=tn[Q]=tn[ce]=tn[Le]=!0,tn[Kn]=tn[Or]=tn[Vs]=tn[I]=tn[Nr]=tn[S]=tn[V]=tn[_e]=tn[Qe]=tn[kt]=tn[cn]=tn[ar]=tn[gn]=tn[yi]=tn[Gi]=!1;var qt={};qt[Kn]=qt[Or]=qt[Vs]=qt[Nr]=qt[I]=qt[S]=qt[Rf]=qt[Ff]=qt[Df]=qt[ws]=qt[k]=qt[Qe]=qt[kt]=qt[cn]=qt[ar]=qt[gn]=qt[yi]=qt[Gt]=qt[B]=qt[Q]=qt[ce]=qt[Le]=!0,qt[V]=qt[_e]=qt[Gi]=!1;var n2={\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"},i2={"&":"&","<":"<",">":">",'"':""","'":"'"},r2={"&":"&","<":"<",">":">",""":'"',"'":"'"},o2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},a2=parseFloat,s2=parseInt,Sx=typeof global=="object"&&global&&global.Object===Object&&global,c2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Sx||c2||Function("return this")(),hv=typeof ef=="object"&&ef&&!ef.nodeType&&ef,Ms=hv&&typeof Pp=="object"&&Pp&&!Pp.nodeType&&Pp,Px=Ms&&Ms.exports===hv,yv=Px&&Sx.process,Lr=function(){try{var w=Ms&&Ms.require&&Ms.require("util").types;return w||yv&&yv.binding&&yv.binding("util")}catch{}}(),Cx=Lr&&Lr.isArrayBuffer,xx=Lr&&Lr.isDate,Ix=Lr&&Lr.isMap,Ox=Lr&&Lr.isRegExp,Nx=Lr&&Lr.isSet,Lx=Lr&&Lr.isTypedArray;function cr(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(cr,"apply");function l2(w,X,W,Ae){for(var We=-1,St=w==null?0:w.length;++We<St;){var Un=w[We];X(Ae,Un,W(Un),w)}return Ae}o(l2,"arrayAggregator");function Rr(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae&&X(w[W],W,w)!==!1;);return w}o(Rr,"arrayEach");function f2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(f2,"arrayEachRight");function Rx(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(!X(w[W],W,w))return!1;return!0}o(Rx,"arrayEvery");function Fa(w,X){for(var W=-1,Ae=w==null?0:w.length,We=0,St=[];++W<Ae;){var Un=w[W];X(Un,W,w)&&(St[We++]=Un)}return St}o(Fa,"arrayFilter");function Ed(w,X){var W=w==null?0:w.length;return!!W&&Hc(w,X,0)>-1}o(Ed,"arrayIncludes");function vv(w,X,W){for(var Ae=-1,We=w==null?0:w.length;++Ae<We;)if(W(X,w[Ae]))return!0;return!1}o(vv,"arrayIncludesWith");function fn(w,X){for(var W=-1,Ae=w==null?0:w.length,We=Array(Ae);++W<Ae;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function Da(w,X){for(var W=-1,Ae=X.length,We=w.length;++W<Ae;)w[We+W]=X[W];return w}o(Da,"arrayPush");function Tv(w,X,W,Ae){var We=-1,St=w==null?0:w.length;for(Ae&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(Tv,"arrayReduce");function u2(w,X,W,Ae){var We=w==null?0:w.length;for(Ae&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(u2,"arrayReduceRight");function bv(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(X(w[W],W,w))return!0;return!1}o(bv,"arraySome");var p2=Ev("length");function d2(w){return w.split("")}o(d2,"asciiToArray");function g2(w){return w.match(AM)||[]}o(g2,"asciiWords");function Fx(w,X,W){var Ae;return W(w,function(We,St,Un){if(X(We,St,Un))return Ae=St,!1}),Ae}o(Fx,"baseFindKey");function Ad(w,X,W,Ae){for(var We=w.length,St=W+(Ae?1:-1);Ae?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Ad,"baseFindIndex");function Hc(w,X,W){return X===X?I2(w,X,W):Ad(w,Dx,W)}o(Hc,"baseIndexOf");function m2(w,X,W,Ae){for(var We=W-1,St=w.length;++We<St;)if(Ae(w[We],X))return We;return-1}o(m2,"baseIndexOfWith");function Dx(w){return w!==w}o(Dx,"baseIsNaN");function _x(w,X){var W=w==null?0:w.length;return W?Sv(w,X)/W:It}o(_x,"baseMean");function Ev(w){return function(X){return X==null?e:X[w]}}o(Ev,"baseProperty");function Av(w){return function(X){return w==null?e:w[X]}}o(Av,"basePropertyOf");function Vx(w,X,W,Ae,We){return We(w,function(St,Un,Kt){W=Ae?(Ae=!1,St):X(W,St,Un,Kt)}),W}o(Vx,"baseReduce");function h2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(h2,"baseSortBy");function Sv(w,X){for(var W,Ae=-1,We=w.length;++Ae<We;){var St=X(w[Ae]);St!==e&&(W=W===e?St:W+St)}return W}o(Sv,"baseSum");function Pv(w,X){for(var W=-1,Ae=Array(w);++W<w;)Ae[W]=X(W);return Ae}o(Pv,"baseTimes");function y2(w,X){return fn(X,function(W){return[W,w[W]]})}o(y2,"baseToPairs");function wx(w){return w&&w.slice(0,jx(w)+1).replace(fv,"")}o(wx,"baseTrim");function lr(w){return function(X){return w(X)}}o(lr,"baseUnary");function Cv(w,X){return fn(X,function(W){return w[W]})}o(Cv,"baseValues");function Vf(w,X){return w.has(X)}o(Vf,"cacheHas");function Mx(w,X){for(var W=-1,Ae=w.length;++W<Ae&&Hc(X,w[W],0)>-1;);return W}o(Mx,"charsStartIndex");function kx(w,X){for(var W=w.length;W--&&Hc(X,w[W],0)>-1;);return W}o(kx,"charsEndIndex");function T2(w,X){for(var W=w.length,Ae=0;W--;)w[W]===X&&++Ae;return Ae}o(T2,"countHolders");var b2=Av(n2),E2=Av(i2);function A2(w){return"\\"+o2[w]}o(A2,"escapeStringChar");function S2(w,X){return w==null?e:w[X]}o(S2,"getValue");function Gc(w){return JM.test(w)}o(Gc,"hasUnicode");function P2(w){return ZM.test(w)}o(P2,"hasUnicodeWord");function C2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(C2,"iteratorToArray");function xv(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae,We){W[++X]=[We,Ae]}),W}o(xv,"mapToArray");function Ux(w,X){return function(W){return w(X(W))}}o(Ux,"overArg");function _a(w,X){for(var W=-1,Ae=w.length,We=0,St=[];++W<Ae;){var Un=w[W];(Un===X||Un===u)&&(w[W]=u,St[We++]=W)}return St}o(_a,"replaceHolders");function Sd(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=Ae}),W}o(Sd,"setToArray");function x2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=[Ae,Ae]}),W}o(x2,"setToPairs");function I2(w,X,W){for(var Ae=W-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(I2,"strictIndexOf");function O2(w,X,W){for(var Ae=W+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(O2,"strictLastIndexOf");function Wc(w){return Gc(w)?L2(w):p2(w)}o(Wc,"stringSize");function Jr(w){return Gc(w)?R2(w):d2(w)}o(Jr,"stringToArray");function jx(w){for(var X=w.length;X--&&vM.test(w.charAt(X)););return X}o(jx,"trimmedEndIndex");var N2=Av(r2);function L2(w){for(var X=mv.lastIndex=0;mv.test(w);)++X;return X}o(L2,"unicodeSize");function R2(w){return w.match(mv)||[]}o(R2,"unicodeToArray");function F2(w){return w.match(zM)||[]}o(F2,"unicodeWords");var D2=o(function w(X){X=X==null?Xn:Va.defaults(Xn.Object(),X,Va.pick(Xn,e2));var W=X.Array,Ae=X.Date,We=X.Error,St=X.Function,Un=X.Math,Kt=X.Object,Iv=X.RegExp,_2=X.String,Fr=X.TypeError,Pd=W.prototype,V2=St.prototype,Kc=Kt.prototype,Cd=X["__core-js_shared__"],xd=V2.toString,Ft=Kc.hasOwnProperty,w2=0,$x=function(){var c=/[^.]+$/.exec(Cd&&Cd.keys&&Cd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Id=Kc.toString,M2=xd.call(Kt),k2=Xn._,U2=Iv("^"+xd.call(Ft).replace(_f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Od=Px?X.Buffer:e,wa=X.Symbol,Nd=X.Uint8Array,Bx=Od?Od.allocUnsafe:e,Ld=Ux(Kt.getPrototypeOf,Kt),Hx=Kt.create,Gx=Kc.propertyIsEnumerable,Rd=Pd.splice,Wx=wa?wa.isConcatSpreadable:e,wf=wa?wa.iterator:e,ks=wa?wa.toStringTag:e,Fd=function(){try{var c=Hs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),j2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,$2=Ae&&Ae.now!==Xn.Date.now&&Ae.now,B2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,Dd=Un.ceil,_d=Un.floor,Ov=Kt.getOwnPropertySymbols,H2=Od?Od.isBuffer:e,Kx=X.isFinite,G2=Pd.join,W2=Ux(Kt.keys,Kt),jn=Un.max,vi=Un.min,K2=Ae.now,X2=X.parseInt,Xx=Un.random,Q2=Pd.reverse,Nv=Hs(X,"DataView"),Mf=Hs(X,"Map"),Lv=Hs(X,"Promise"),Xc=Hs(X,"Set"),kf=Hs(X,"WeakMap"),Uf=Hs(Kt,"create"),Vd=kf&&new kf,Qc={},q2=Gs(Nv),Y2=Gs(Mf),z2=Gs(Lv),J2=Gs(Xc),Z2=Gs(kf),wd=wa?wa.prototype:e,jf=wd?wd.valueOf:e,Qx=wd?wd.toString:e;function P(c){if(Tn(c)&&!Xe(c)&&!(c instanceof pt)){if(c instanceof Dr)return c;if(Ft.call(c,"__wrapped__"))return qI(c)}return new Dr(c)}o(P,"lodash");var qc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(Hx)return Hx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Md(){}o(Md,"baseLodash");function Dr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Dr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=Md.prototype,P.prototype.constructor=P,Dr.prototype=qc(Md.prototype),Dr.prototype.constructor=Dr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function ek(){var c=new pt(this.__wrapped__);return c.__actions__=Wi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Wi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Wi(this.__views__),c}o(ek,"lazyClone");function tk(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(tk,"lazyReverse");function nk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),T=f<0,E=d?c.length:0,x=gU(0,E,this.__views__),L=x.start,R=x.end,M=R-L,z=T?R:L-1,J=this.__iteratees__,ee=J.length,me=0,Ne=vi(M,this.__takeCount__);if(!d||!T&&E==M&&Ne==M)return vI(c,this.__actions__);var Me=[];e:for(;M--&&me<Ne;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ee;){var st=J[Ze],gt=st.iteratee,pr=st.type,Ri=gt(ke);if(pr==Wn)ke=Ri;else if(!Ri){if(pr==an)continue e;break e}}Me[me++]=ke}return Me}o(nk,"lazyValue"),pt.prototype=qc(Md.prototype),pt.prototype.constructor=pt;function Us(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(Us,"Hash");function ik(){this.__data__=Uf?Uf(null):{},this.size=0}o(ik,"hashClear");function rk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(rk,"hashDelete");function ok(c){var f=this.__data__;if(Uf){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ok,"hashGet");function ak(c){var f=this.__data__;return Uf?f[c]!==e:Ft.call(f,c)}o(ak,"hashHas");function sk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Uf&&f===e?s:f,this}o(sk,"hashSet"),Us.prototype.clear=ik,Us.prototype.delete=rk,Us.prototype.get=ok,Us.prototype.has=ak,Us.prototype.set=sk;function zo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(zo,"ListCache");function ck(){this.__data__=[],this.size=0}o(ck,"listCacheClear");function lk(c){var f=this.__data__,d=kd(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():Rd.call(f,d,1),--this.size,!0}o(lk,"listCacheDelete");function fk(c){var f=this.__data__,d=kd(f,c);return d<0?e:f[d][1]}o(fk,"listCacheGet");function uk(c){return kd(this.__data__,c)>-1}o(uk,"listCacheHas");function pk(c,f){var d=this.__data__,T=kd(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(pk,"listCacheSet"),zo.prototype.clear=ck,zo.prototype.delete=lk,zo.prototype.get=fk,zo.prototype.has=uk,zo.prototype.set=pk;function Jo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(Jo,"MapCache");function dk(){this.size=0,this.__data__={hash:new Us,map:new(Mf||zo),string:new Us}}o(dk,"mapCacheClear");function gk(c){var f=Yd(this,c).delete(c);return this.size-=f?1:0,f}o(gk,"mapCacheDelete");function mk(c){return Yd(this,c).get(c)}o(mk,"mapCacheGet");function hk(c){return Yd(this,c).has(c)}o(hk,"mapCacheHas");function yk(c,f){var d=Yd(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(yk,"mapCacheSet"),Jo.prototype.clear=dk,Jo.prototype.delete=gk,Jo.prototype.get=mk,Jo.prototype.has=hk,Jo.prototype.set=yk;function js(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Jo;++f<d;)this.add(c[f])}o(js,"SetCache");function vk(c){return this.__data__.set(c,s),this}o(vk,"setCacheAdd");function Tk(c){return this.__data__.has(c)}o(Tk,"setCacheHas"),js.prototype.add=js.prototype.push=vk,js.prototype.has=Tk;function Zr(c){var f=this.__data__=new zo(c);this.size=f.size}o(Zr,"Stack");function bk(){this.__data__=new zo,this.size=0}o(bk,"stackClear");function Ek(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Ek,"stackDelete");function Ak(c){return this.__data__.get(c)}o(Ak,"stackGet");function Sk(c){return this.__data__.has(c)}o(Sk,"stackHas");function Pk(c,f){var d=this.__data__;if(d instanceof zo){var T=d.__data__;if(!Mf||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new Jo(T)}return d.set(c,f),this.size=d.size,this}o(Pk,"stackSet"),Zr.prototype.clear=bk,Zr.prototype.delete=Ek,Zr.prototype.get=Ak,Zr.prototype.has=Sk,Zr.prototype.set=Pk;function qx(c,f){var d=Xe(c),T=!d&&Ws(c),E=!d&&!T&&$a(c),x=!d&&!T&&!E&&Zc(c),L=d||T||E||x,R=L?Pv(c.length,_2):[],M=R.length;for(var z in c)(f||Ft.call(c,z))&&!(L&&(z=="length"||E&&(z=="offset"||z=="parent")||x&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||na(z,M)))&&R.push(z);return R}o(qx,"arrayLikeKeys");function Yx(c){var f=c.length;return f?c[$v(0,f-1)]:e}o(Yx,"arraySample");function Ck(c,f){return zd(Wi(c),$s(f,0,c.length))}o(Ck,"arraySampleSize");function xk(c){return zd(Wi(c))}o(xk,"arrayShuffle");function Rv(c,f,d){(d!==e&&!eo(c[f],d)||d===e&&!(f in c))&&Zo(c,f,d)}o(Rv,"assignMergeValue");function $f(c,f,d){var T=c[f];(!(Ft.call(c,f)&&eo(T,d))||d===e&&!(f in c))&&Zo(c,f,d)}o($f,"assignValue");function kd(c,f){for(var d=c.length;d--;)if(eo(c[d][0],f))return d;return-1}o(kd,"assocIndexOf");function Ik(c,f,d,T){return Ma(c,function(E,x,L){f(T,E,d(E),L)}),T}o(Ik,"baseAggregator");function zx(c,f){return c&&Po(f,Qn(f),c)}o(zx,"baseAssign");function Ok(c,f){return c&&Po(f,Xi(f),c)}o(Ok,"baseAssignIn");function Zo(c,f,d){f=="__proto__"&&Fd?Fd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Zo,"baseAssignValue");function Fv(c,f){for(var d=-1,T=f.length,E=W(T),x=c==null;++d<T;)E[d]=x?e:pT(c,f[d]);return E}o(Fv,"baseAt");function $s(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o($s,"baseClamp");function _r(c,f,d,T,E,x){var L,R=f&p,M=f&g,z=f&m;if(d&&(L=E?d(c,T,E,x):d(c)),L!==e)return L;if(!hn(c))return c;var J=Xe(c);if(J){if(L=hU(c),!R)return Wi(c,L)}else{var ee=Ti(c),me=ee==_e||ee==Rt;if($a(c))return EI(c,R);if(ee==cn||ee==Kn||me&&!E){if(L=M||me?{}:jI(c),!R)return M?oU(c,Ok(L,c)):rU(c,zx(L,c))}else{if(!qt[ee])return E?c:{};L=yU(c,ee,R)}}x||(x=new Zr);var Ne=x.get(c);if(Ne)return Ne;x.set(c,L),mO(c)?c.forEach(function(ke){L.add(_r(ke,f,d,ke,c,x))}):dO(c)&&c.forEach(function(ke,st){L.set(st,_r(ke,f,d,st,c,x))});var Me=z?M?Jv:zv:M?Xi:Qn,Ze=J?e:Me(c);return Rr(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),$f(L,st,_r(ke,f,d,st,c,x))}),L}o(_r,"baseClone");function Nk(c){var f=Qn(c);return function(d){return Jx(d,c,f)}}o(Nk,"baseConforms");function Jx(c,f,d){var T=d.length;if(c==null)return!T;for(c=Kt(c);T--;){var E=d[T],x=f[E],L=c[E];if(L===e&&!(E in c)||!x(L))return!1}return!0}o(Jx,"baseConformsTo");function Zx(c,f,d){if(typeof c!="function")throw new Fr(r);return Qf(function(){c.apply(e,d)},f)}o(Zx,"baseDelay");function Bf(c,f,d,T){var E=-1,x=Ed,L=!0,R=c.length,M=[],z=f.length;if(!R)return M;d&&(f=fn(f,lr(d))),T?(x=vv,L=!1):f.length>=n&&(x=Vf,L=!1,f=new js(f));e:for(;++E<R;){var J=c[E],ee=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ee===ee){for(var me=z;me--;)if(f[me]===ee)continue e;M.push(J)}else x(f,ee,T)||M.push(J)}return M}o(Bf,"baseDifference");var Ma=xI(So),eI=xI(_v,!0);function Lk(c,f){var d=!0;return Ma(c,function(T,E,x){return d=!!f(T,E,x),d}),d}o(Lk,"baseEvery");function Ud(c,f,d){for(var T=-1,E=c.length;++T<E;){var x=c[T],L=f(x);if(L!=null&&(R===e?L===L&&!ur(L):d(L,R)))var R=L,M=x}return M}o(Ud,"baseExtremum");function Rk(c,f,d,T){var E=c.length;for(d=Je(d),d<0&&(d=-d>E?0:E+d),T=T===e||T>E?E:Je(T),T<0&&(T+=E),T=d>T?0:yO(T);d<T;)c[d++]=f;return c}o(Rk,"baseFill");function tI(c,f){var d=[];return Ma(c,function(T,E,x){f(T,E,x)&&d.push(T)}),d}o(tI,"baseFilter");function ii(c,f,d,T,E){var x=-1,L=c.length;for(d||(d=TU),E||(E=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ii(R,f-1,d,T,E):Da(E,R):T||(E[E.length]=R)}return E}o(ii,"baseFlatten");var Dv=II(),nI=II(!0);function So(c,f){return c&&Dv(c,f,Qn)}o(So,"baseForOwn");function _v(c,f){return c&&nI(c,f,Qn)}o(_v,"baseForOwnRight");function jd(c,f){return Fa(f,function(d){return ia(c[d])})}o(jd,"baseFunctions");function Bs(c,f){f=Ua(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[Co(f[d++])];return d&&d==T?c:e}o(Bs,"baseGet");function iI(c,f,d){var T=f(c);return Xe(c)?T:Da(T,d(c))}o(iI,"baseGetAllKeys");function Ni(c){return c==null?c===e?Yo:vn:ks&&ks in Kt(c)?dU(c):xU(c)}o(Ni,"baseGetTag");function Vv(c,f){return c>f}o(Vv,"baseGt");function Fk(c,f){return c!=null&&Ft.call(c,f)}o(Fk,"baseHas");function Dk(c,f){return c!=null&&f in Kt(c)}o(Dk,"baseHasIn");function _k(c,f,d){return c>=vi(f,d)&&c<jn(f,d)}o(_k,"baseInRange");function wv(c,f,d){for(var T=d?vv:Ed,E=c[0].length,x=c.length,L=x,R=W(x),M=1/0,z=[];L--;){var J=c[L];L&&f&&(J=fn(J,lr(f))),M=vi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new js(L&&J):e}J=c[0];var ee=-1,me=R[0];e:for(;++ee<E&&z.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(me?Vf(me,Me):T(z,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?Vf(Ze,Me):T(c[L],Me,d)))continue e}me&&me.push(Me),z.push(Ne)}}return z}o(wv,"baseIntersection");function Vk(c,f,d,T){return So(c,function(E,x,L){f(T,d(E),x,L)}),T}o(Vk,"baseInverter");function Hf(c,f,d){f=Ua(f,c),c=GI(c,f);var T=c==null?c:c[Co(wr(f))];return T==null?e:cr(T,c,d)}o(Hf,"baseInvoke");function rI(c){return Tn(c)&&Ni(c)==Kn}o(rI,"baseIsArguments");function wk(c){return Tn(c)&&Ni(c)==Vs}o(wk,"baseIsArrayBuffer");function Mk(c){return Tn(c)&&Ni(c)==S}o(Mk,"baseIsDate");function Gf(c,f,d,T,E){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:kk(c,f,d,T,Gf,E)}o(Gf,"baseIsEqual");function kk(c,f,d,T,E,x){var L=Xe(c),R=Xe(f),M=L?Or:Ti(c),z=R?Or:Ti(f);M=M==Kn?cn:M,z=z==Kn?cn:z;var J=M==cn,ee=z==cn,me=M==z;if(me&&$a(c)){if(!$a(f))return!1;L=!0,J=!1}if(me&&!J)return x||(x=new Zr),L||Zc(c)?MI(c,f,d,T,E,x):uU(c,f,M,d,T,E,x);if(!(d&v)){var Ne=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Ne||Me){var Ze=Ne?c.value():c,ke=Me?f.value():f;return x||(x=new Zr),E(Ze,ke,d,T,x)}}return me?(x||(x=new Zr),pU(c,f,d,T,E,x)):!1}o(kk,"baseIsEqualDeep");function Uk(c){return Tn(c)&&Ti(c)==Qe}o(Uk,"baseIsMap");function Mv(c,f,d,T){var E=d.length,x=E,L=!T;if(c==null)return!x;for(c=Kt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<x;){R=d[E];var M=R[0],z=c[M],J=R[1];if(L&&R[2]){if(z===e&&!(M in c))return!1}else{var ee=new Zr;if(T)var me=T(z,J,M,c,f,ee);if(!(me===e?Gf(J,z,v|A,T,ee):me))return!1}}return!0}o(Mv,"baseIsMatch");function oI(c){if(!hn(c)||EU(c))return!1;var f=ia(c)?U2:OM;return f.test(Gs(c))}o(oI,"baseIsNative");function jk(c){return Tn(c)&&Ni(c)==ar}o(jk,"baseIsRegExp");function $k(c){return Tn(c)&&Ti(c)==gn}o($k,"baseIsSet");function Bk(c){return Tn(c)&&ig(c.length)&&!!tn[Ni(c)]}o(Bk,"baseIsTypedArray");function aI(c){return typeof c=="function"?c:c==null?Qi:typeof c=="object"?Xe(c)?lI(c[0],c[1]):cI(c):OO(c)}o(aI,"baseIteratee");function kv(c){if(!Xf(c))return W2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(kv,"baseKeys");function Hk(c){if(!hn(c))return CU(c);var f=Xf(c),d=[];for(var T in c)T=="constructor"&&(f||!Ft.call(c,T))||d.push(T);return d}o(Hk,"baseKeysIn");function Uv(c,f){return c<f}o(Uv,"baseLt");function sI(c,f){var d=-1,T=Ki(c)?W(c.length):[];return Ma(c,function(E,x,L){T[++d]=f(E,x,L)}),T}o(sI,"baseMap");function cI(c){var f=eT(c);return f.length==1&&f[0][2]?BI(f[0][0],f[0][1]):function(d){return d===c||Mv(d,c,f)}}o(cI,"baseMatches");function lI(c,f){return nT(c)&&$I(f)?BI(Co(c),f):function(d){var T=pT(d,c);return T===e&&T===f?dT(d,c):Gf(f,T,v|A)}}o(lI,"baseMatchesProperty");function $d(c,f,d,T,E){c!==f&&Dv(f,function(x,L){if(E||(E=new Zr),hn(x))Gk(c,f,L,d,$d,T,E);else{var R=T?T(rT(c,L),x,L+"",c,f,E):e;R===e&&(R=x),Rv(c,L,R)}},Xi)}o($d,"baseMerge");function Gk(c,f,d,T,E,x,L){var R=rT(c,d),M=rT(f,d),z=L.get(M);if(z){Rv(c,d,z);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var me=Xe(M),Ne=!me&&$a(M),Me=!me&&!Ne&&Zc(M);J=M,me||Ne||Me?Xe(R)?J=R:In(R)?J=Wi(R):Ne?(ee=!1,J=EI(M,!0)):Me?(ee=!1,J=AI(M,!0)):J=[]:qf(M)||Ws(M)?(J=R,Ws(R)?J=vO(R):(!hn(R)||ia(R))&&(J=jI(M))):ee=!1}ee&&(L.set(M,J),E(J,M,T,x,L),L.delete(M)),Rv(c,d,J)}o(Gk,"baseMergeDeep");function fI(c,f){var d=c.length;if(d)return f+=f<0?d:0,na(f,d)?c[f]:e}o(fI,"baseNth");function uI(c,f,d){f.length?f=fn(f,function(x){return Xe(x)?function(L){return Bs(L,x.length===1?x[0]:x)}:x}):f=[Qi];var T=-1;f=fn(f,lr(Ve()));var E=sI(c,function(x,L,R){var M=fn(f,function(z){return z(x)});return{criteria:M,index:++T,value:x}});return h2(E,function(x,L){return iU(x,L,d)})}o(uI,"baseOrderBy");function Wk(c,f){return pI(c,f,function(d,T){return dT(c,T)})}o(Wk,"basePick");function pI(c,f,d){for(var T=-1,E=f.length,x={};++T<E;){var L=f[T],R=Bs(c,L);d(R,L)&&Wf(x,Ua(L,c),R)}return x}o(pI,"basePickBy");function Kk(c){return function(f){return Bs(f,c)}}o(Kk,"basePropertyDeep");function jv(c,f,d,T){var E=T?m2:Hc,x=-1,L=f.length,R=c;for(c===f&&(f=Wi(f)),d&&(R=fn(c,lr(d)));++x<L;)for(var M=0,z=f[x],J=d?d(z):z;(M=E(R,J,M,T))>-1;)R!==c&&Rd.call(R,M,1),Rd.call(c,M,1);return c}o(jv,"basePullAll");function dI(c,f){for(var d=c?f.length:0,T=d-1;d--;){var E=f[d];if(d==T||E!==x){var x=E;na(E)?Rd.call(c,E,1):Gv(c,E)}}return c}o(dI,"basePullAt");function $v(c,f){return c+_d(Xx()*(f-c+1))}o($v,"baseRandom");function Xk(c,f,d,T){for(var E=-1,x=jn(Dd((f-c)/(d||1)),0),L=W(x);x--;)L[T?x:++E]=c,c+=d;return L}o(Xk,"baseRange");function Bv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=_d(f/2),f&&(c+=c);while(f);return d}o(Bv,"baseRepeat");function nt(c,f){return oT(HI(c,f,Qi),c+"")}o(nt,"baseRest");function Qk(c){return Yx(el(c))}o(Qk,"baseSample");function qk(c,f){var d=el(c);return zd(d,$s(f,0,d.length))}o(qk,"baseSampleSize");function Wf(c,f,d,T){if(!hn(c))return c;f=Ua(f,c);for(var E=-1,x=f.length,L=x-1,R=c;R!=null&&++E<x;){var M=Co(f[E]),z=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];z=T?T(J,M,R):e,z===e&&(z=hn(J)?J:na(f[E+1])?[]:{})}$f(R,M,z),R=R[M]}return c}o(Wf,"baseSet");var gI=Vd?function(c,f){return Vd.set(c,f),c}:Qi,Yk=Fd?function(c,f){return Fd(c,"toString",{configurable:!0,enumerable:!1,value:mT(f),writable:!0})}:Qi;function zk(c){return zd(el(c))}o(zk,"baseShuffle");function Vr(c,f,d){var T=-1,E=c.length;f<0&&(f=-f>E?0:E+f),d=d>E?E:d,d<0&&(d+=E),E=f>d?0:d-f>>>0,f>>>=0;for(var x=W(E);++T<E;)x[T]=c[T+f];return x}o(Vr,"baseSlice");function Jk(c,f){var d;return Ma(c,function(T,E,x){return d=f(T,E,x),!d}),!!d}o(Jk,"baseSome");function Bd(c,f,d){var T=0,E=c==null?T:c.length;if(typeof f=="number"&&f===f&&E<=Hi){for(;T<E;){var x=T+E>>>1,L=c[x];L!==null&&!ur(L)&&(d?L<=f:L<f)?T=x+1:E=x}return E}return Hv(c,f,Qi,d)}o(Bd,"baseSortedIndex");function Hv(c,f,d,T){var E=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=ur(f),z=f===e;E<x;){var J=_d((E+x)/2),ee=d(c[J]),me=ee!==e,Ne=ee===null,Me=ee===ee,Ze=ur(ee);if(L)var ke=T||Me;else z?ke=Me&&(T||me):R?ke=Me&&me&&(T||!Ne):M?ke=Me&&me&&!Ne&&(T||!Ze):Ne||Ze?ke=!1:ke=T?ee<=f:ee<f;ke?E=J+1:x=J}return vi(x,sn)}o(Hv,"baseSortedIndexBy");function mI(c,f){for(var d=-1,T=c.length,E=0,x=[];++d<T;){var L=c[d],R=f?f(L):L;if(!d||!eo(R,M)){var M=R;x[E++]=L===0?0:L}}return x}o(mI,"baseSortedUniq");function hI(c){return typeof c=="number"?c:ur(c)?It:+c}o(hI,"baseToNumber");function fr(c){if(typeof c=="string")return c;if(Xe(c))return fn(c,fr)+"";if(ur(c))return Qx?Qx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(fr,"baseToString");function ka(c,f,d){var T=-1,E=Ed,x=c.length,L=!0,R=[],M=R;if(d)L=!1,E=vv;else if(x>=n){var z=f?null:lU(c);if(z)return Sd(z);L=!1,E=Vf,M=new js}else M=f?[]:R;e:for(;++T<x;){var J=c[T],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var me=M.length;me--;)if(M[me]===ee)continue e;f&&M.push(ee),R.push(J)}else E(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(ka,"baseUniq");function Gv(c,f){return f=Ua(f,c),c=GI(c,f),c==null||delete c[Co(wr(f))]}o(Gv,"baseUnset");function yI(c,f,d,T){return Wf(c,f,d(Bs(c,f)),T)}o(yI,"baseUpdate");function Hd(c,f,d,T){for(var E=c.length,x=T?E:-1;(T?x--:++x<E)&&f(c[x],x,c););return d?Vr(c,T?0:x,T?x+1:E):Vr(c,T?x+1:0,T?E:x)}o(Hd,"baseWhile");function vI(c,f){var d=c;return d instanceof pt&&(d=d.value()),Tv(f,function(T,E){return E.func.apply(E.thisArg,Da([T],E.args))},d)}o(vI,"baseWrapperValue");function Wv(c,f,d){var T=c.length;if(T<2)return T?ka(c[0]):[];for(var E=-1,x=W(T);++E<T;)for(var L=c[E],R=-1;++R<T;)R!=E&&(x[E]=Bf(x[E]||L,c[R],f,d));return ka(ii(x,1),f,d)}o(Wv,"baseXor");function TI(c,f,d){for(var T=-1,E=c.length,x=f.length,L={};++T<E;){var R=T<x?f[T]:e;d(L,c[T],R)}return L}o(TI,"baseZipObject");function Kv(c){return In(c)?c:[]}o(Kv,"castArrayLikeObject");function Xv(c){return typeof c=="function"?c:Qi}o(Xv,"castFunction");function Ua(c,f){return Xe(c)?c:nT(c,f)?[c]:QI(Ot(c))}o(Ua,"castPath");var Zk=nt;function ja(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Vr(c,f,d)}o(ja,"castSlice");var bI=j2||function(c){return Xn.clearTimeout(c)};function EI(c,f){if(f)return c.slice();var d=c.length,T=Bx?Bx(d):new c.constructor(d);return c.copy(T),T}o(EI,"cloneBuffer");function Qv(c){var f=new c.constructor(c.byteLength);return new Nd(f).set(new Nd(c)),f}o(Qv,"cloneArrayBuffer");function eU(c,f){var d=f?Qv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(eU,"cloneDataView");function tU(c){var f=new c.constructor(c.source,rx.exec(c));return f.lastIndex=c.lastIndex,f}o(tU,"cloneRegExp");function nU(c){return jf?Kt(jf.call(c)):{}}o(nU,"cloneSymbol");function AI(c,f){var d=f?Qv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(AI,"cloneTypedArray");function SI(c,f){if(c!==f){var d=c!==e,T=c===null,E=c===c,x=ur(c),L=f!==e,R=f===null,M=f===f,z=ur(f);if(!R&&!z&&!x&&c>f||x&&L&&M&&!R&&!z||T&&L&&M||!d&&M||!E)return 1;if(!T&&!x&&!z&&c<f||z&&d&&E&&!T&&!x||R&&d&&E||!L&&E||!M)return-1}return 0}o(SI,"compareAscending");function iU(c,f,d){for(var T=-1,E=c.criteria,x=f.criteria,L=E.length,R=d.length;++T<L;){var M=SI(E[T],x[T]);if(M){if(T>=R)return M;var z=d[T];return M*(z=="desc"?-1:1)}}return c.index-f.index}o(iU,"compareMultiple");function PI(c,f,d,T){for(var E=-1,x=c.length,L=d.length,R=-1,M=f.length,z=jn(x-L,0),J=W(M+z),ee=!T;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<x)&&(J[d[E]]=c[E]);for(;z--;)J[R++]=c[E++];return J}o(PI,"composeArgs");function CI(c,f,d,T){for(var E=-1,x=c.length,L=-1,R=d.length,M=-1,z=f.length,J=jn(x-R,0),ee=W(J+z),me=!T;++E<J;)ee[E]=c[E];for(var Ne=E;++M<z;)ee[Ne+M]=f[M];for(;++L<R;)(me||E<x)&&(ee[Ne+d[L]]=c[E++]);return ee}o(CI,"composeArgsRight");function Wi(c,f){var d=-1,T=c.length;for(f||(f=W(T));++d<T;)f[d]=c[d];return f}o(Wi,"copyArray");function Po(c,f,d,T){var E=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=T?T(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Zo(d,R,M):$f(d,R,M)}return d}o(Po,"copyObject");function rU(c,f){return Po(c,tT(c),f)}o(rU,"copySymbols");function oU(c,f){return Po(c,kI(c),f)}o(oU,"copySymbolsIn");function Gd(c,f){return function(d,T){var E=Xe(d)?l2:Ik,x=f?f():{};return E(d,c,Ve(T,2),x)}}o(Gd,"createAggregator");function Yc(c){return nt(function(f,d){var T=-1,E=d.length,x=E>1?d[E-1]:e,L=E>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(E--,x):e,L&&Li(d[0],d[1],L)&&(x=E<3?e:x,E=1),f=Kt(f);++T<E;){var R=d[T];R&&c(f,R,T,x)}return f})}o(Yc,"createAssigner");function xI(c,f){return function(d,T){if(d==null)return d;if(!Ki(d))return c(d,T);for(var E=d.length,x=f?E:-1,L=Kt(d);(f?x--:++x<E)&&T(L[x],x,L)!==!1;);return d}}o(xI,"createBaseEach");function II(c){return function(f,d,T){for(var E=-1,x=Kt(f),L=T(f),R=L.length;R--;){var M=L[c?R:++E];if(d(x[M],M,x)===!1)break}return f}}o(II,"createBaseFor");function aU(c,f,d){var T=f&b,E=Kf(c);function x(){var L=this&&this!==Xn&&this instanceof x?E:c;return L.apply(T?d:this,arguments)}return o(x,"wrapper"),x}o(aU,"createBind");function OI(c){return function(f){f=Ot(f);var d=Gc(f)?Jr(f):e,T=d?d[0]:f.charAt(0),E=d?ja(d,1).join(""):f.slice(1);return T[c]()+E}}o(OI,"createCaseFirst");function zc(c){return function(f){return Tv(xO(CO(f).replace(qM,"")),c,"")}}o(zc,"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),T=c.apply(d,f);return hn(T)?T:d}}o(Kf,"createCtor");function sU(c,f,d){var T=Kf(c);function E(){for(var x=arguments.length,L=W(x),R=x,M=Jc(E);R--;)L[R]=arguments[R];var z=x<3&&L[0]!==M&&L[x-1]!==M?[]:_a(L,M);if(x-=z.length,x<d)return DI(c,f,Wd,E.placeholder,e,L,z,e,e,d-x);var J=this&&this!==Xn&&this instanceof E?T:c;return cr(J,this,L)}return o(E,"wrapper"),E}o(sU,"createCurry");function NI(c){return function(f,d,T){var E=Kt(f);if(!Ki(f)){var x=Ve(d,3);f=Qn(f),d=o(function(R){return x(E[R],R,E)},"predicate")}var L=c(f,d,T);return L>-1?E[x?f[L]:L]:e}}o(NI,"createFind");function LI(c){return ta(function(f){var d=f.length,T=d,E=Dr.prototype.thru;for(c&&f.reverse();T--;){var x=f[T];if(typeof x!="function")throw new Fr(r);if(E&&!L&&qd(x)=="wrapper")var L=new Dr([],!0)}for(T=L?T:d;++T<d;){x=f[T];var R=qd(x),M=R=="wrapper"?Zv(x):e;M&&iT(M[0])&&M[1]==(Z|U|j|re)&&!M[4].length&&M[9]==1?L=L[qd(M[0])].apply(L,M[3]):L=x.length==1&&iT(x)?L[R]():L.thru(x)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,me=d?f[ee].apply(this,z):J;++ee<d;)me=f[ee].call(this,me);return me}})}o(LI,"createFlow");function Wd(c,f,d,T,E,x,L,R,M,z){var J=f&Z,ee=f&b,me=f&O,Ne=f&(U|K),Me=f&Pe,Ze=me?e:Kf(c);function ke(){for(var st=arguments.length,gt=W(st),pr=st;pr--;)gt[pr]=arguments[pr];if(Ne)var Ri=Jc(ke),dr=T2(gt,Ri);if(T&&(gt=PI(gt,T,E,Ne)),x&&(gt=CI(gt,x,L,Ne)),st-=dr,Ne&&st<z){var On=_a(gt,Ri);return DI(c,f,Wd,ke.placeholder,d,gt,On,R,M,z-st)}var to=ee?d:this,oa=me?to[c]:c;return st=gt.length,R?gt=IU(gt,R):Me&&st>1&>.reverse(),J&&M<st&&(gt.length=M),this&&this!==Xn&&this instanceof ke&&(oa=Ze||Kf(oa)),oa.apply(to,gt)}return o(ke,"wrapper"),ke}o(Wd,"createHybrid");function RI(c,f){return function(d,T){return Vk(d,c,f(T),{})}}o(RI,"createInverter");function Kd(c,f){return function(d,T){var E;if(d===e&&T===e)return f;if(d!==e&&(E=d),T!==e){if(E===e)return T;typeof d=="string"||typeof T=="string"?(d=fr(d),T=fr(T)):(d=hI(d),T=hI(T)),E=c(d,T)}return E}}o(Kd,"createMathOperation");function qv(c){return ta(function(f){return f=fn(f,lr(Ve())),nt(function(d){var T=this;return c(f,function(E){return cr(E,T,d)})})})}o(qv,"createOver");function Xd(c,f){f=f===e?" ":fr(f);var d=f.length;if(d<2)return d?Bv(f,c):f;var T=Bv(f,Dd(c/Wc(f)));return Gc(f)?ja(Jr(T),0,c).join(""):T.slice(0,c)}o(Xd,"createPadding");function cU(c,f,d,T){var E=f&b,x=Kf(c);function L(){for(var R=-1,M=arguments.length,z=-1,J=T.length,ee=W(J+M),me=this&&this!==Xn&&this instanceof L?x:c;++z<J;)ee[z]=T[z];for(;M--;)ee[z++]=arguments[++R];return cr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(cU,"createPartial");function FI(c){return function(f,d,T){return T&&typeof T!="number"&&Li(f,d,T)&&(d=T=e),f=ra(f),d===e?(d=f,f=0):d=ra(d),T=T===e?f<d?1:-1:ra(T),Xk(f,d,T,c)}}o(FI,"createRange");function Qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Mr(f),d=Mr(d)),c(f,d)}}o(Qd,"createRelationalOperation");function DI(c,f,d,T,E,x,L,R,M,z){var J=f&U,ee=J?L:e,me=J?e:L,Ne=J?x:e,Me=J?e:x;f|=J?j:ae,f&=~(J?ae:j),f&F||(f&=~(b|O));var Ze=[c,f,E,Ne,ee,Me,me,R,M,z],ke=d.apply(e,Ze);return iT(c)&&WI(ke,Ze),ke.placeholder=T,KI(ke,c,f)}o(DI,"createRecurry");function Yv(c){var f=Un[c];return function(d,T){if(d=Mr(d),T=T==null?0:vi(Je(T),292),T&&Kx(d)){var E=(Ot(d)+"e").split("e"),x=f(E[0]+"e"+(+E[1]+T));return E=(Ot(x)+"e").split("e"),+(E[0]+"e"+(+E[1]-T))}return f(d)}}o(Yv,"createRound");var lU=Xc&&1/Sd(new Xc([,-0]))[1]==Lt?function(c){return new Xc(c)}:vT;function _I(c){return function(f){var d=Ti(f);return d==Qe?xv(f):d==gn?x2(f):y2(f,c(f))}}o(_I,"createToPairs");function ea(c,f,d,T,E,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Fr(r);var z=T?T.length:0;if(z||(f&=~(j|ae),T=E=e),L=L===e?L:jn(Je(L),0),R=R===e?R:Je(R),z-=E?E.length:0,f&ae){var J=T,ee=E;T=E=e}var me=M?e:Zv(c),Ne=[c,f,d,T,E,J,ee,x,L,R];if(me&&PU(Ne,me),c=Ne[0],f=Ne[1],d=Ne[2],T=Ne[3],E=Ne[4],R=Ne[9]=Ne[9]===e?M?0:c.length:jn(Ne[9]-z,0),!R&&f&(U|K)&&(f&=~(U|K)),!f||f==b)var Me=aU(c,f,d);else f==U||f==K?Me=sU(c,f,R):(f==j||f==(b|j))&&!E.length?Me=cU(c,f,d,T):Me=Wd.apply(e,Ne);var Ze=me?gI:WI;return KI(Ze(Me,Ne),c,f)}o(ea,"createWrap");function VI(c,f,d,T){return c===e||eo(c,Kc[d])&&!Ft.call(T,d)?f:c}o(VI,"customDefaultsAssignIn");function wI(c,f,d,T,E,x){return hn(c)&&hn(f)&&(x.set(f,c),$d(c,f,e,wI,x),x.delete(f)),c}o(wI,"customDefaultsMerge");function fU(c){return qf(c)?e:c}o(fU,"customOmitClone");function MI(c,f,d,T,E,x){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var z=x.get(c),J=x.get(f);if(z&&J)return z==f&&J==c;var ee=-1,me=!0,Ne=d&A?new js:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(T)var ke=L?T(Ze,Me,ee,f,c,x):T(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;me=!1;break}if(Ne){if(!bv(f,function(st,gt){if(!Vf(Ne,gt)&&(Me===st||E(Me,st,d,T,x)))return Ne.push(gt)})){me=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,T,x))){me=!1;break}}return x.delete(c),x.delete(f),me}o(MI,"equalArrays");function uU(c,f,d,T,E,x,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Vs:return!(c.byteLength!=f.byteLength||!x(new Nd(c),new Nd(f)));case I:case S:case kt:return eo(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ar:case yi:return c==f+"";case Qe:var R=xv;case gn:var M=T&v;if(R||(R=Sd),c.size!=f.size&&!M)return!1;var z=L.get(c);if(z)return z==f;T|=A,L.set(c,f);var J=MI(R(c),R(f),T,E,x,L);return L.delete(c),J;case Gt:if(jf)return jf.call(c)==jf.call(f)}return!1}o(uU,"equalByTag");function pU(c,f,d,T,E,x){var L=d&v,R=zv(c),M=R.length,z=zv(f),J=z.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var me=R[ee];if(!(L?me in f:Ft.call(f,me)))return!1}var Ne=x.get(c),Me=x.get(f);if(Ne&&Me)return Ne==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){me=R[ee];var st=c[me],gt=f[me];if(T)var pr=L?T(gt,st,me,f,c,x):T(st,gt,me,c,f,x);if(!(pr===e?st===gt||E(st,gt,d,T,x):pr)){Ze=!1;break}ke||(ke=me=="constructor")}if(Ze&&!ke){var Ri=c.constructor,dr=f.constructor;Ri!=dr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof dr=="function"&&dr instanceof dr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(pU,"equalObjects");function ta(c){return oT(HI(c,e,JI),c+"")}o(ta,"flatRest");function zv(c){return iI(c,Qn,tT)}o(zv,"getAllKeys");function Jv(c){return iI(c,Xi,kI)}o(Jv,"getAllKeysIn");var Zv=Vd?function(c){return Vd.get(c)}:vT;function qd(c){for(var f=c.name+"",d=Qc[f],T=Ft.call(Qc,f)?d.length:0;T--;){var E=d[T],x=E.func;if(x==null||x==c)return E.name}return f}o(qd,"getFuncName");function Jc(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(Jc,"getHolder");function Ve(){var c=P.iteratee||hT;return c=c===hT?aI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Yd(c,f){var d=c.__data__;return bU(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Yd,"getMapData");function eT(c){for(var f=Qn(c),d=f.length;d--;){var T=f[d],E=c[T];f[d]=[T,E,$I(E)]}return f}o(eT,"getMatchData");function Hs(c,f){var d=S2(c,f);return oI(d)?d:e}o(Hs,"getNative");function dU(c){var f=Ft.call(c,ks),d=c[ks];try{c[ks]=e;var T=!0}catch{}var E=Id.call(c);return T&&(f?c[ks]=d:delete c[ks]),E}o(dU,"getRawTag");var tT=Ov?function(c){return c==null?[]:(c=Kt(c),Fa(Ov(c),function(f){return Gx.call(c,f)}))}:TT,kI=Ov?function(c){for(var f=[];c;)Da(f,tT(c)),c=Ld(c);return f}:TT,Ti=Ni;(Nv&&Ti(new Nv(new ArrayBuffer(1)))!=Nr||Mf&&Ti(new Mf)!=Qe||Lv&&Ti(Lv.resolve())!=Ht||Xc&&Ti(new Xc)!=gn||kf&&Ti(new kf)!=Gi)&&(Ti=o(function(c){var f=Ni(c),d=f==cn?c.constructor:e,T=d?Gs(d):"";if(T)switch(T){case q2:return Nr;case Y2:return Qe;case z2:return Ht;case J2:return gn;case Z2:return Gi}return f},"getTag"));function gU(c,f,d){for(var T=-1,E=d.length;++T<E;){var x=d[T],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=vi(f,c+L);break;case"takeRight":c=jn(c,f-L);break}}return{start:c,end:f}}o(gU,"getView");function mU(c){var f=c.match(bM);return f?f[1].split(EM):[]}o(mU,"getWrapDetails");function UI(c,f,d){f=Ua(f,c);for(var T=-1,E=f.length,x=!1;++T<E;){var L=Co(f[T]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++T!=E?x:(E=c==null?0:c.length,!!E&&ig(E)&&na(L,E)&&(Xe(c)||Ws(c)))}o(UI,"hasPath");function hU(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(hU,"initCloneArray");function jI(c){return typeof c.constructor=="function"&&!Xf(c)?qc(Ld(c)):{}}o(jI,"initCloneObject");function yU(c,f,d){var T=c.constructor;switch(f){case Vs:return Qv(c);case I:case S:return new T(+c);case Nr:return eU(c,d);case Rf:case Ff:case Df:case ws:case k:case B:case Q:case ce:case Le:return AI(c,d);case Qe:return new T;case kt:case yi:return new T(c);case ar:return tU(c);case gn:return new T;case Gt:return nU(c)}}o(yU,"initCloneByTag");function vU(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(TM,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}o(vU,"insertWrapDetails");function TU(c){return Xe(c)||Ws(c)||!!(Gx&&c&&c[Gx])}o(TU,"isFlattenable");function ta(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&LM.test(c))&&c>-1&&c%1==0&&c<f}o(ta,"isIndex");function Li(c,f,d){if(!hn(d))return!1;var T=typeof f;return(T=="number"?Ki(d)&&ta(f,d.length):T=="string"&&f in d)?eo(d[f],c):!1}o(Li,"isIterateeCall");function eT(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ur(c)?!0:yd.test(c)||!sr.test(c)||f!=null&&c in Kt(f)}o(eT,"isKey");function bU(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(bU,"isKeyable");function tT(c){var f=qd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var T=zv(d);return!!T&&c===T[0]}o(tT,"isLaziable");function EU(c){return!!jx&&jx in c}o(EU,"isMasked");var AU=Cd?na:vT;function Kf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Kc;return c===d}o(Kf,"isPrototype");function jI(c){return c===c&&!hn(c)}o(jI,"isStrictComparable");function $I(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o($I,"matchesStrictComparable");function SU(c){var f=tg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(SU,"memoizeCapped");function PU(c,f){var d=c[1],T=f[1],E=d|T,x=E<(b|O|Z),L=T==Z&&d==U||T==Z&&d==re&&c[7].length<=f[8]||T==(Z|re)&&f[7].length<=f[8]&&d==U;if(!(x||L))return c;T&b&&(c[2]=f[2],E|=d&b?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?SI(M,R,f[4]):R,c[4]=M?Da(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?PI(M,R,f[6]):R,c[6]=M?Da(c[5],u):f[6]),R=f[7],R&&(c[7]=R),T&Z&&(c[8]=c[8]==null?f[8]:vi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(PU,"mergeData");function CU(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(CU,"nativeKeysIn");function xU(c){return Id.call(c)}o(xU,"objectToString");function BI(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var T=arguments,E=-1,x=jn(T.length-f,0),L=W(x);++E<x;)L[E]=T[f+E];E=-1;for(var R=W(f+1);++E<f;)R[E]=T[E];return R[f]=d(L),cr(c,this,R)}}o(BI,"overRest");function HI(c,f){return f.length<2?c:Bs(c,Vr(f,0,-1))}o(HI,"parent");function IU(c,f){for(var d=c.length,T=vi(f.length,d),E=Wi(c);T--;){var x=f[T];c[T]=ta(x,d)?E[x]:e}return c}o(IU,"reorder");function nT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(nT,"safeGet");var GI=KI(dI),Xf=B2||function(c,f){return Xn.setTimeout(c,f)},iT=KI(Yk);function WI(c,f,d){var T=f+"";return iT(c,vU(T,OU(mU(T),d)))}o(WI,"setWrapToString");function KI(c){var f=0,d=0;return function(){var T=K2(),E=je-(T-d);if(d=T,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(KI,"shortOut");function zd(c,f){var d=-1,T=c.length,E=T-1;for(f=f===e?T:f;++d<f;){var x=Uv(d,E),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(zd,"shuffleSelf");var XI=SU(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(sv,function(d,T,E,x){f.push(E?x.replace(PM,"$1"):T||d)}),f});function Co(c){if(typeof c=="string"||ur(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(Co,"toKey");function Gs(c){if(c!=null){try{return xd.call(c)}catch{}try{return c+""}catch{}}return""}o(Gs,"toSource");function OU(c,f){return Rr(Fe,function(d){var T="_."+d[0];f&d[1]&&!Ed(c,T)&&c.push(T)}),c.sort()}o(OU,"updateWrapDetails");function QI(c){if(c instanceof pt)return c.clone();var f=new Dr(c.__wrapped__,c.__chain__);return f.__actions__=Wi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(QI,"wrapperClone");function NU(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=jn(Je(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var E=0,x=0,L=W(Dd(T/f));E<T;)L[x++]=Vr(c,E,E+=f);return L}o(NU,"chunk");function LU(c){for(var f=-1,d=c==null?0:c.length,T=0,E=[];++f<d;){var x=c[f];x&&(E[T++]=x)}return E}o(LU,"compact");function RU(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],T=c;T--;)f[T-1]=arguments[T];return Fa(Xe(d)?Wi(d):[d],ii(f,1))}o(RU,"concat");var FU=nt(function(c,f){return In(c)?$f(c,ii(f,1,In,!0)):[]}),DU=nt(function(c,f){var d=wr(f);return In(d)&&(d=e),In(c)?$f(c,ii(f,1,In,!0),Ve(d,2)):[]}),_U=nt(function(c,f){var d=wr(f);return In(d)&&(d=e),In(c)?$f(c,ii(f,1,In,!0),e,d):[]});function VU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),Vr(c,f<0?0:f,T)):[]}o(VU,"drop");function wU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Vr(c,0,f<0?0:f)):[]}o(wU,"dropRight");function MU(c,f){return c&&c.length?Hd(c,Ve(f,3),!0,!0):[]}o(MU,"dropRightWhile");function kU(c,f){return c&&c.length?Hd(c,Ve(f,3),!0):[]}o(kU,"dropWhile");function UU(c,f,d,T){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,T=E),Rk(c,f,d,T)):[]}o(UU,"fill");function qI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Je(d);return E<0&&(E=jn(T+E,0)),Ad(c,Ve(f,3),E)}o(qI,"findIndex");function YI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T-1;return d!==e&&(E=Je(d),E=d<0?jn(T+E,0):vi(E,T-1)),Ad(c,Ve(f,3),E,!0)}o(YI,"findLastIndex");function zI(c){var f=c==null?0:c.length;return f?ii(c,1):[]}o(zI,"flatten");function jU(c){var f=c==null?0:c.length;return f?ii(c,Lt):[]}o(jU,"flattenDeep");function $U(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ii(c,f)):[]}o($U,"flattenDepth");function BU(c){for(var f=-1,d=c==null?0:c.length,T={};++f<d;){var E=c[f];T[E[0]]=E[1]}return T}o(BU,"fromPairs");function JI(c){return c&&c.length?c[0]:e}o(JI,"head");function HU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Je(d);return E<0&&(E=jn(T+E,0)),Hc(c,f,E)}o(HU,"indexOf");function GU(c){var f=c==null?0:c.length;return f?Vr(c,0,-1):[]}o(GU,"initial");var WU=nt(function(c){var f=fn(c,Gv);return f.length&&f[0]===c[0]?_v(f):[]}),KU=nt(function(c){var f=wr(c),d=fn(c,Gv);return f===wr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?_v(d,Ve(f,2)):[]}),XU=nt(function(c){var f=wr(c),d=fn(c,Gv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?_v(d,e,f):[]});function QU(c,f){return c==null?"":G2.call(c,f)}o(QU,"join");function wr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(wr,"last");function qU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T;return d!==e&&(E=Je(d),E=E<0?jn(T+E,0):vi(E,T-1)),f===f?O2(c,f,E):Ad(c,Fx,E,!0)}o(qU,"lastIndexOf");function YU(c,f){return c&&c.length?lI(c,Je(f)):e}o(YU,"nth");var zU=nt(ZI);function ZI(c,f){return c&&c.length&&f&&f.length?kv(c,f):c}o(ZI,"pullAll");function JU(c,f,d){return c&&c.length&&f&&f.length?kv(c,f,Ve(d,2)):c}o(JU,"pullAllBy");function ZU(c,f,d){return c&&c.length&&f&&f.length?kv(c,f,e,d):c}o(ZU,"pullAllWith");var ej=ea(function(c,f){var d=c==null?0:c.length,T=Lv(c,f);return pI(c,fn(f,function(E){return ta(E,d)?+E:E}).sort(AI)),T});function tj(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,E=[],x=c.length;for(f=Ve(f,3);++T<x;){var L=c[T];f(L,T,c)&&(d.push(L),E.push(T))}return pI(c,E),d}o(tj,"remove");function rT(c){return c==null?c:Q2.call(c)}o(rT,"reverse");function nj(c,f,d){var T=c==null?0:c.length;return T?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=T):(f=f==null?0:Je(f),d=d===e?T:Je(d)),Vr(c,f,d)):[]}o(nj,"slice");function ij(c,f){return Bd(c,f)}o(ij,"sortedIndex");function rj(c,f,d){return $v(c,f,Ve(d,2))}o(rj,"sortedIndexBy");function oj(c,f){var d=c==null?0:c.length;if(d){var T=Bd(c,f);if(T<d&&eo(c[T],f))return T}return-1}o(oj,"sortedIndexOf");function aj(c,f){return Bd(c,f,!0)}o(aj,"sortedLastIndex");function sj(c,f,d){return $v(c,f,Ve(d,2),!0)}o(sj,"sortedLastIndexBy");function cj(c,f){var d=c==null?0:c.length;if(d){var T=Bd(c,f,!0)-1;if(eo(c[T],f))return T}return-1}o(cj,"sortedLastIndexOf");function lj(c){return c&&c.length?gI(c):[]}o(lj,"sortedUniq");function fj(c,f){return c&&c.length?gI(c,Ve(f,2)):[]}o(fj,"sortedUniqBy");function uj(c){var f=c==null?0:c.length;return f?Vr(c,1,f):[]}o(uj,"tail");function pj(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),Vr(c,0,f<0?0:f)):[]}o(pj,"take");function dj(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Vr(c,f<0?0:f,T)):[]}o(dj,"takeRight");function gj(c,f){return c&&c.length?Hd(c,Ve(f,3),!1,!0):[]}o(gj,"takeRightWhile");function mj(c,f){return c&&c.length?Hd(c,Ve(f,3)):[]}o(mj,"takeWhile");var hj=nt(function(c){return Ma(ii(c,1,In,!0))}),yj=nt(function(c){var f=wr(c);return In(f)&&(f=e),Ma(ii(c,1,In,!0),Ve(f,2))}),vj=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,Ma(ii(c,1,In,!0),e,f)});function Tj(c){return c&&c.length?Ma(c):[]}o(Tj,"uniq");function bj(c,f){return c&&c.length?Ma(c,Ve(f,2)):[]}o(bj,"uniqBy");function Ej(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ma(c,e,f):[]}o(Ej,"uniqWith");function oT(c){if(!(c&&c.length))return[];var f=0;return c=Ra(c,function(d){if(In(d))return f=jn(d.length,f),!0}),Av(f,function(d){return fn(c,Tv(d))})}o(oT,"unzip");function eO(c,f){if(!(c&&c.length))return[];var d=oT(c);return f==null?d:fn(d,function(T){return cr(f,e,T)})}o(eO,"unzipWith");var Aj=nt(function(c,f){return In(c)?$f(c,f):[]}),Sj=nt(function(c){return Hv(Ra(c,In))}),Pj=nt(function(c){var f=wr(c);return In(f)&&(f=e),Hv(Ra(c,In),Ve(f,2))}),Cj=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,Hv(Ra(c,In),e,f)}),xj=nt(oT);function Ij(c,f){return vI(c||[],f||[],jf)}o(Ij,"zipObject");function Oj(c,f){return vI(c||[],f||[],Gf)}o(Oj,"zipObjectDeep");var Nj=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,eO(c,d)});function tO(c){var f=P(c);return f.__chain__=!0,f}o(tO,"chain");function Lj(c,f){return f(c),c}o(Lj,"tap");function Jd(c,f){return f(c)}o(Jd,"thru");var Rj=ea(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,E=o(function(x){return Lv(x,c)},"interceptor");return f>1||this.__actions__.length||!(T instanceof pt)||!ta(d)?this.thru(E):(T=T.slice(d,+d+(f?1:0)),T.__actions__.push({func:Jd,args:[E],thisArg:e}),new Dr(T,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function Fj(){return tO(this)}o(Fj,"wrapperChain");function Dj(){return new Dr(this.value(),this.__chain__)}o(Dj,"wrapperCommit");function _j(){this.__values__===e&&(this.__values__=mO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(_j,"wrapperNext");function Vj(){return this}o(Vj,"wrapperToIterator");function wj(c){for(var f,d=this;d instanceof Md;){var T=QI(d);T.__index__=0,T.__values__=e,f?E.__wrapped__=T:f=T;var E=T;d=d.__wrapped__}return E.__wrapped__=c,f}o(wj,"wrapperPlant");function Mj(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[rT],thisArg:e}),new Dr(f,this.__chain__)}return this.thru(rT)}o(Mj,"wrapperReverse");function kj(){return yI(this.__wrapped__,this.__actions__)}o(kj,"wrapperValue");var Uj=Gd(function(c,f,d){Ft.call(c,d)?++c[d]:Jo(c,d,1)});function jj(c,f,d){var T=Xe(c)?Lx:Lk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(jj,"every");function $j(c,f){var d=Xe(c)?Ra:eI;return d(c,Ve(f,3))}o($j,"filter");var Bj=OI(qI),Hj=OI(YI);function Gj(c,f){return ii(Zd(c,f),1)}o(Gj,"flatMap");function Wj(c,f){return ii(Zd(c,f),Lt)}o(Wj,"flatMapDeep");function Kj(c,f,d){return d=d===e?1:Je(d),ii(Zd(c,f),d)}o(Kj,"flatMapDepth");function nO(c,f){var d=Xe(c)?Rr:wa;return d(c,Ve(f,3))}o(nO,"forEach");function iO(c,f){var d=Xe(c)?f2:Zx;return d(c,Ve(f,3))}o(iO,"forEachRight");var Xj=Gd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Jo(c,d,[f])});function Qj(c,f,d,T){c=Ki(c)?c:el(c),d=d&&!T?Je(d):0;var E=c.length;return d<0&&(d=jn(E+d,0)),rg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Hc(c,f,d)>-1}o(Qj,"includes");var qj=nt(function(c,f,d){var T=-1,E=typeof f=="function",x=Ki(c)?W(c.length):[];return wa(c,function(L){x[++T]=E?cr(f,L,d):Bf(L,f,d)}),x}),Yj=Gd(function(c,f,d){Jo(c,d,f)});function Zd(c,f){var d=Xe(c)?fn:aI;return d(c,Ve(f,3))}o(Zd,"map");function zj(c,f,d,T){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=T?e:d,Xe(d)||(d=d==null?[]:[d]),fI(c,f,d))}o(zj,"orderBy");var Jj=Gd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Zj(c,f,d){var T=Xe(c)?yv:_x,E=arguments.length<3;return T(c,Ve(f,4),d,E,wa)}o(Zj,"reduce");function e$(c,f,d){var T=Xe(c)?u2:_x,E=arguments.length<3;return T(c,Ve(f,4),d,E,Zx)}o(e$,"reduceRight");function t$(c,f){var d=Xe(c)?Ra:eI;return d(c,ng(Ve(f,3)))}o(t$,"reject");function n$(c){var f=Xe(c)?qx:Qk;return f(c)}o(n$,"sample");function i$(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Je(f);var T=Xe(c)?Ck:qk;return T(c,f)}o(i$,"sampleSize");function r$(c){var f=Xe(c)?xk:zk;return f(c)}o(r$,"shuffle");function o$(c){if(c==null)return 0;if(Ki(c))return rg(c)?Wc(c):c.length;var f=Ti(c);return f==Qe||f==gn?c.size:wv(c).length}o(o$,"size");function a$(c,f,d){var T=Xe(c)?vv:Jk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(a$,"some");var s$=nt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Li(c,f[0],f[1])?f=[]:d>2&&Li(f[0],f[1],f[2])&&(f=[f[0]]),fI(c,ii(f,1),[])}),eg=$2||function(){return Xn.Date.now()};function c$(c,f){if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(c$,"after");function rO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Zo(c,Z,e,e,e,e,f)}o(rO,"ary");function oO(c,f){var d;if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(oO,"before");var aT=nt(function(c,f,d){var T=b;if(d.length){var E=Da(d,Jc(aT));T|=j}return Zo(c,T,f,d,E)}),aO=nt(function(c,f,d){var T=b|O;if(d.length){var E=Da(d,Jc(aO));T|=j}return Zo(f,T,c,d,E)});function sO(c,f,d){f=d?e:f;var T=Zo(c,U,e,e,e,e,e,f);return T.placeholder=sO.placeholder,T}o(sO,"curry");function cO(c,f,d){f=d?e:f;var T=Zo(c,K,e,e,e,e,e,f);return T.placeholder=cO.placeholder,T}o(cO,"curryRight");function lO(c,f,d){var T,E,x,L,R,M,z=0,J=!1,ee=!1,me=!0;if(typeof c!="function")throw new Fr(r);f=Mr(f)||0,hn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?jn(Mr(d.maxWait)||0,f):x,me="trailing"in d?!!d.trailing:me);function Ne(On){var to=T,ra=E;return T=E=e,z=On,L=c.apply(ra,to),L}o(Ne,"invokeFunc");function Me(On){return z=On,R=Xf(st,f),J?Ne(On):L}o(Me,"leadingEdge");function Ze(On){var to=On-M,ra=On-z,OO=f-to;return ee?vi(OO,x-ra):OO}o(Ze,"remainingWait");function ke(On){var to=On-M,ra=On-z;return M===e||to>=f||to<0||ee&&ra>=x}o(ke,"shouldInvoke");function st(){var On=eg();if(ke(On))return gt(On);R=Xf(st,Ze(On))}o(st,"timerExpired");function gt(On){return R=e,me&&T?Ne(On):(T=E=e,L)}o(gt,"trailingEdge");function pr(){R!==e&&TI(R),z=0,T=M=E=R=e}o(pr,"cancel");function Ri(){return R===e?L:gt(eg())}o(Ri,"flush");function dr(){var On=eg(),to=ke(On);if(T=arguments,E=this,M=On,to){if(R===e)return Me(M);if(ee)return TI(R),R=Xf(st,f),Ne(M)}return R===e&&(R=Xf(st,f)),L}return o(dr,"debounced"),dr.cancel=pr,dr.flush=Ri,dr}o(lO,"debounce");var l$=nt(function(c,f){return Jx(c,1,f)}),f$=nt(function(c,f,d){return Jx(c,Mr(f)||0,d)});function u$(c){return Zo(c,Pe)}o(u$,"flip");function tg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Fr(r);var d=o(function(){var T=arguments,E=f?f.apply(this,T):T[0],x=d.cache;if(x.has(E))return x.get(E);var L=c.apply(this,T);return d.cache=x.set(E,L)||x,L},"memoized");return d.cache=new(tg.Cache||zo),d}o(tg,"memoize"),tg.Cache=zo;function ng(c){if(typeof c!="function")throw new Fr(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)}}o(ng,"negate");function p$(c){return oO(2,c)}o(p$,"once");var d$=Zk(function(c,f){f=f.length==1&&Xe(f[0])?fn(f[0],lr(Ve())):fn(ii(f,1),lr(Ve()));var d=f.length;return nt(function(T){for(var E=-1,x=vi(T.length,d);++E<x;)T[E]=f[E].call(this,T[E]);return cr(c,this,T)})}),sT=nt(function(c,f){var d=Da(f,Jc(sT));return Zo(c,j,e,f,d)}),fO=nt(function(c,f){var d=Da(f,Jc(fO));return Zo(c,ae,e,f,d)}),g$=ea(function(c,f){return Zo(c,re,e,e,e,f)});function m$(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Je(f),nt(c,f)}o(m$,"rest");function h$(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:jn(Je(f),0),nt(function(d){var T=d[f],E=Ua(d,0,f);return T&&Fa(E,T),cr(c,this,E)})}o(h$,"spread");function y$(c,f,d){var T=!0,E=!0;if(typeof c!="function")throw new Fr(r);return hn(d)&&(T="leading"in d?!!d.leading:T,E="trailing"in d?!!d.trailing:E),lO(c,f,{leading:T,maxWait:f,trailing:E})}o(y$,"throttle");function v$(c){return rO(c,1)}o(v$,"unary");function T$(c,f){return sT(Wv(f),c)}o(T$,"wrap");function b$(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(b$,"castArray");function E$(c){return _r(c,m)}o(E$,"clone");function A$(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(A$,"cloneWith");function S$(c){return _r(c,p|m)}o(S$,"cloneDeep");function P$(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(P$,"cloneDeepWith");function C$(c,f){return f==null||zx(c,f,Qn(f))}o(C$,"conformsTo");function eo(c,f){return c===f||c!==c&&f!==f}o(eo,"eq");var x$=Qd(Dv),I$=Qd(function(c,f){return c>=f}),Ws=iI(function(){return arguments}())?iI:function(c){return Tn(c)&&Ft.call(c,"callee")&&!Hx.call(c,"callee")},Xe=W.isArray,O$=Px?lr(Px):wk;function Ki(c){return c!=null&&ig(c.length)&&!na(c)}o(Ki,"isArrayLike");function In(c){return Tn(c)&&Ki(c)}o(In,"isArrayLikeObject");function N$(c){return c===!0||c===!1||Tn(c)&&Ni(c)==I}o(N$,"isBoolean");var ja=H2||vT,L$=Cx?lr(Cx):Mk;function R$(c){return Tn(c)&&c.nodeType===1&&!Qf(c)}o(R$,"isElement");function F$(c){if(c==null)return!0;if(Ki(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||ja(c)||Zc(c)||Ws(c)))return!c.length;var f=Ti(c);if(f==Qe||f==gn)return!c.size;if(Kf(c))return!wv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(F$,"isEmpty");function D$(c,f){return Hf(c,f)}o(D$,"isEqual");function _$(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?Hf(c,f,e,d):!!T}o(_$,"isEqualWith");function cT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Qf(c)}o(cT,"isError");function V$(c){return typeof c=="number"&&Wx(c)}o(V$,"isFinite");function na(c){if(!hn(c))return!1;var f=Ni(c);return f==_e||f==Rt||f==at||f==ni}o(na,"isFunction");function uO(c){return typeof c=="number"&&c==Je(c)}o(uO,"isInteger");function ig(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ig,"isLength");function hn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(hn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var pO=xx?lr(xx):Uk;function w$(c,f){return c===f||Vv(c,f,Jv(f))}o(w$,"isMatch");function M$(c,f,d){return d=typeof d=="function"?d:e,Vv(c,f,Jv(f),d)}o(M$,"isMatchWith");function k$(c){return dO(c)&&c!=+c}o(k$,"isNaN");function U$(c){if(AU(c))throw new We(i);return rI(c)}o(U$,"isNative");function j$(c){return c===null}o(j$,"isNull");function $$(c){return c==null}o($$,"isNil");function dO(c){return typeof c=="number"||Tn(c)&&Ni(c)==kt}o(dO,"isNumber");function Qf(c){if(!Tn(c)||Ni(c)!=cn)return!1;var f=Ld(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&xd.call(d)==M2}o(Qf,"isPlainObject");var lT=Ix?lr(Ix):jk;function B$(c){return uO(c)&&c>=-Re&&c<=Re}o(B$,"isSafeInteger");var gO=Ox?lr(Ox):$k;function rg(c){return typeof c=="string"||!Xe(c)&&Tn(c)&&Ni(c)==yi}o(rg,"isString");function ur(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Gt}o(ur,"isSymbol");var Zc=Nx?lr(Nx):Bk;function H$(c){return c===e}o(H$,"isUndefined");function G$(c){return Tn(c)&&Ti(c)==Gi}o(G$,"isWeakMap");function W$(c){return Tn(c)&&Ni(c)==Nf}o(W$,"isWeakSet");var K$=Qd(Mv),X$=Qd(function(c,f){return c<=f});function mO(c){if(!c)return[];if(Ki(c))return rg(c)?Jr(c):Wi(c);if(Vf&&c[Vf])return C2(c[Vf]());var f=Ti(c),d=f==Qe?Pv:f==gn?Sd:el;return d(c)}o(mO,"toArray");function ia(c){if(!c)return c===0?c:0;if(c=Mr(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Oi}return c===c?c:0}o(ia,"toFinite");function Je(c){var f=ia(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function hO(c){return c?$s(Je(c),0,Mt):0}o(hO,"toLength");function Mr(c){if(typeof c=="number")return c;if(ur(c))return It;if(hn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=hn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=Vx(c);var d=IM.test(c);return d||NM.test(c)?s2(c.slice(2),d?2:8):xM.test(c)?It:+c}o(Mr,"toNumber");function yO(c){return Po(c,Xi(c))}o(yO,"toPlainObject");function Q$(c){return c?$s(Je(c),-Re,Re):c===0?c:0}o(Q$,"toSafeInteger");function Ot(c){return c==null?"":fr(c)}o(Ot,"toString");var q$=Yc(function(c,f){if(Kf(f)||Ki(f)){Po(f,Qn(f),c);return}for(var d in f)Ft.call(f,d)&&jf(c,d,f[d])}),vO=Yc(function(c,f){Po(f,Xi(f),c)}),og=Yc(function(c,f,d,T){Po(f,Xi(f),c,T)}),Y$=Yc(function(c,f,d,T){Po(f,Qn(f),c,T)}),z$=ea(Lv);function J$(c,f){var d=qc(c);return f==null?d:Yx(d,f)}o(J$,"create");var Z$=nt(function(c,f){c=Kt(c);var d=-1,T=f.length,E=T>2?f[2]:e;for(E&&Li(f[0],f[1],E)&&(T=1);++d<T;)for(var x=f[d],L=Xi(x),R=-1,M=L.length;++R<M;){var z=L[R],J=c[z];(J===e||eo(J,Kc[z])&&!Ft.call(c,z))&&(c[z]=x[z])}return c}),e4=nt(function(c){return c.push(e,VI),cr(TO,e,c)});function t4(c,f){return Rx(c,Ve(f,3),So)}o(t4,"findKey");function n4(c,f){return Rx(c,Ve(f,3),Fv)}o(n4,"findLastKey");function i4(c,f){return c==null?c:Rv(c,Ve(f,3),Xi)}o(i4,"forIn");function r4(c,f){return c==null?c:tI(c,Ve(f,3),Xi)}o(r4,"forInRight");function o4(c,f){return c&&So(c,Ve(f,3))}o(o4,"forOwn");function a4(c,f){return c&&Fv(c,Ve(f,3))}o(a4,"forOwnRight");function s4(c){return c==null?[]:jd(c,Qn(c))}o(s4,"functions");function c4(c){return c==null?[]:jd(c,Xi(c))}o(c4,"functionsIn");function fT(c,f,d){var T=c==null?e:Bs(c,f);return T===e?d:T}o(fT,"get");function l4(c,f){return c!=null&&kI(c,f,Fk)}o(l4,"has");function uT(c,f){return c!=null&&kI(c,f,Dk)}o(uT,"hasIn");var f4=LI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),c[f]=d},dT(Qi)),u4=LI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),p4=nt(Bf);function Qn(c){return Ki(c)?Qx(c):wv(c)}o(Qn,"keys");function Xi(c){return Ki(c)?Qx(c,!0):Hk(c)}o(Xi,"keysIn");function d4(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,x){Jo(d,f(T,E,x),T)}),d}o(d4,"mapKeys");function g4(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,x){Jo(d,E,f(T,E,x))}),d}o(g4,"mapValues");var m4=Yc(function(c,f,d){$d(c,f,d)}),TO=Yc(function(c,f,d,T){$d(c,f,d,T)}),h4=ea(function(c,f){var d={};if(c==null)return d;var T=!1;f=fn(f,function(x){return x=ka(x,c),T||(T=x.length>1),x}),Po(c,Yv(c),d),T&&(d=_r(d,p|g|m,fU));for(var E=f.length;E--;)Bv(d,f[E]);return d});function y4(c,f){return bO(c,ng(Ve(f)))}o(y4,"omitBy");var T4=ea(function(c,f){return c==null?{}:Wk(c,f)});function bO(c,f){if(c==null)return{};var d=fn(Yv(c),function(T){return[T]});return f=Ve(f),uI(c,d,function(T,E){return f(T,E[0])})}o(bO,"pickBy");function b4(c,f,d){f=ka(f,c);var T=-1,E=f.length;for(E||(E=1,c=e);++T<E;){var x=c==null?e:c[Co(f[T])];x===e&&(T=E,x=d),c=na(x)?x.call(c):x}return c}o(b4,"result");function E4(c,f,d){return c==null?c:Gf(c,f,d)}o(E4,"set");function A4(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:Gf(c,f,d,T)}o(A4,"setWith");var EO=DI(Qn),AO=DI(Xi);function S4(c,f,d){var T=Xe(c),E=T||ja(c)||Zc(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;E?d=T?new x:[]:hn(c)?d=na(x)?qc(Ld(c)):{}:d={}}return(E?Rr:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(S4,"transform");function P4(c,f){return c==null?!0:Bv(c,f)}o(P4,"unset");function C4(c,f,d){return c==null?c:hI(c,f,Wv(d))}o(C4,"update");function x4(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:hI(c,f,Wv(d),T)}o(x4,"updateWith");function el(c){return c==null?[]:Sv(c,Qn(c))}o(el,"values");function I4(c){return c==null?[]:Sv(c,Xi(c))}o(I4,"valuesIn");function O4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Mr(d),d=d===d?d:0),f!==e&&(f=Mr(f),f=f===f?f:0),$s(Mr(c),f,d)}o(O4,"clamp");function N4(c,f,d){return f=ia(f),d===e?(d=f,f=0):d=ia(d),c=Mr(c),_k(c,f,d)}o(N4,"inRange");function L4(c,f,d){if(d&&typeof d!="boolean"&&Li(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=ia(c),f===e?(f=c,c=0):f=ia(f)),c>f){var T=c;c=f,f=T}if(d||c%1||f%1){var E=Kx();return vi(c+E*(f-c+a2("1e-"+((E+"").length-1))),f)}return Uv(c,f)}o(L4,"random");var R4=zc(function(c,f,d){return f=f.toLowerCase(),c+(d?SO(f):f)});function SO(c){return pT(Ot(c).toLowerCase())}o(SO,"capitalize");function PO(c){return c=Ot(c),c&&c.replace(RM,b2).replace(YM,"")}o(PO,"deburr");function F4(c,f,d){c=Ot(c),f=fr(f);var T=c.length;d=d===e?T:$s(Je(d),0,T);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(F4,"endsWith");function D4(c){return c=Ot(c),c&&Oe.test(c)?c.replace(be,E2):c}o(D4,"escape");function _4(c){return c=Ot(c),c&&yM.test(c)?c.replace(Df,"\\$&"):c}o(_4,"escapeRegExp");var V4=zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),w4=zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),M4=II("toLowerCase");function k4(c,f,d){c=Ot(c),f=Je(f);var T=f?Wc(c):0;if(!f||T>=f)return c;var E=(f-T)/2;return Xd(_d(E),d)+c+Xd(Dd(E),d)}o(k4,"pad");function U4(c,f,d){c=Ot(c),f=Je(f);var T=f?Wc(c):0;return f&&T<f?c+Xd(f-T,d):c}o(U4,"padEnd");function j4(c,f,d){c=Ot(c),f=Je(f);var T=f?Wc(c):0;return f&&T<f?Xd(f-T,d)+c:c}o(j4,"padStart");function $4(c,f,d){return d||f==null?f=0:f&&(f=+f),X2(Ot(c).replace(cv,""),f||0)}o($4,"parseInt");function B4(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Je(f),jv(Ot(c),f)}o(B4,"repeat");function H4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(H4,"replace");var G4=zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function W4(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!lT(f))&&(f=fr(f),!f&&Gc(c))?Ua(Jr(c),0,d):c.split(f,d)):[]}o(W4,"split");var K4=zc(function(c,f,d){return c+(d?" ":"")+pT(f)});function X4(c,f,d){return c=Ot(c),d=d==null?0:$s(Je(d),0,c.length),f=fr(f),c.slice(d,d+f.length)==f}o(X4,"startsWith");function Q4(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=Ot(c),f=og({},f,T,_I);var E=og({},f.imports,T.imports,_I),x=Qn(E),L=Sv(E,x),R,M,z=0,J=f.interpolate||vd,ee="__p += '",me=Cv((f.escape||vd).source+"|"+J.source+"|"+(J===ln?CM:vd).source+"|"+(f.evaluate||vd).source+"|$","g"),Ne="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++t2+"]")+`
|
|
271
|
+
`)}o(vU,"insertWrapDetails");function TU(c){return Xe(c)||Ws(c)||!!(Wx&&c&&c[Wx])}o(TU,"isFlattenable");function na(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&LM.test(c))&&c>-1&&c%1==0&&c<f}o(na,"isIndex");function Li(c,f,d){if(!hn(d))return!1;var T=typeof f;return(T=="number"?Ki(d)&&na(f,d.length):T=="string"&&f in d)?eo(d[f],c):!1}o(Li,"isIterateeCall");function nT(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ur(c)?!0:yd.test(c)||!sr.test(c)||f!=null&&c in Kt(f)}o(nT,"isKey");function bU(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(bU,"isKeyable");function iT(c){var f=qd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var T=Zv(d);return!!T&&c===T[0]}o(iT,"isLaziable");function EU(c){return!!$x&&$x in c}o(EU,"isMasked");var AU=Cd?ia:bT;function Xf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Kc;return c===d}o(Xf,"isPrototype");function $I(c){return c===c&&!hn(c)}o($I,"isStrictComparable");function BI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(BI,"matchesStrictComparable");function SU(c){var f=tg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(SU,"memoizeCapped");function PU(c,f){var d=c[1],T=f[1],E=d|T,x=E<(b|O|Z),L=T==Z&&d==U||T==Z&&d==re&&c[7].length<=f[8]||T==(Z|re)&&f[7].length<=f[8]&&d==U;if(!(x||L))return c;T&b&&(c[2]=f[2],E|=d&b?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?PI(M,R,f[4]):R,c[4]=M?_a(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?CI(M,R,f[6]):R,c[6]=M?_a(c[5],u):f[6]),R=f[7],R&&(c[7]=R),T&Z&&(c[8]=c[8]==null?f[8]:vi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(PU,"mergeData");function CU(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(CU,"nativeKeysIn");function xU(c){return Id.call(c)}o(xU,"objectToString");function HI(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var T=arguments,E=-1,x=jn(T.length-f,0),L=W(x);++E<x;)L[E]=T[f+E];E=-1;for(var R=W(f+1);++E<f;)R[E]=T[E];return R[f]=d(L),cr(c,this,R)}}o(HI,"overRest");function GI(c,f){return f.length<2?c:Bs(c,Vr(f,0,-1))}o(GI,"parent");function IU(c,f){for(var d=c.length,T=vi(f.length,d),E=Wi(c);T--;){var x=f[T];c[T]=na(x,d)?E[x]:e}return c}o(IU,"reorder");function rT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(rT,"safeGet");var WI=XI(gI),Qf=B2||function(c,f){return Xn.setTimeout(c,f)},oT=XI(Yk);function KI(c,f,d){var T=f+"";return oT(c,vU(T,OU(mU(T),d)))}o(KI,"setWrapToString");function XI(c){var f=0,d=0;return function(){var T=K2(),E=je-(T-d);if(d=T,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(XI,"shortOut");function zd(c,f){var d=-1,T=c.length,E=T-1;for(f=f===e?T:f;++d<f;){var x=$v(d,E),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(zd,"shuffleSelf");var QI=SU(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(lv,function(d,T,E,x){f.push(E?x.replace(PM,"$1"):T||d)}),f});function Co(c){if(typeof c=="string"||ur(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(Co,"toKey");function Gs(c){if(c!=null){try{return xd.call(c)}catch{}try{return c+""}catch{}}return""}o(Gs,"toSource");function OU(c,f){return Rr(Fe,function(d){var T="_."+d[0];f&d[1]&&!Ed(c,T)&&c.push(T)}),c.sort()}o(OU,"updateWrapDetails");function qI(c){if(c instanceof pt)return c.clone();var f=new Dr(c.__wrapped__,c.__chain__);return f.__actions__=Wi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(qI,"wrapperClone");function NU(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=jn(Je(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var E=0,x=0,L=W(Dd(T/f));E<T;)L[x++]=Vr(c,E,E+=f);return L}o(NU,"chunk");function LU(c){for(var f=-1,d=c==null?0:c.length,T=0,E=[];++f<d;){var x=c[f];x&&(E[T++]=x)}return E}o(LU,"compact");function RU(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],T=c;T--;)f[T-1]=arguments[T];return Da(Xe(d)?Wi(d):[d],ii(f,1))}o(RU,"concat");var FU=nt(function(c,f){return In(c)?Bf(c,ii(f,1,In,!0)):[]}),DU=nt(function(c,f){var d=wr(f);return In(d)&&(d=e),In(c)?Bf(c,ii(f,1,In,!0),Ve(d,2)):[]}),_U=nt(function(c,f){var d=wr(f);return In(d)&&(d=e),In(c)?Bf(c,ii(f,1,In,!0),e,d):[]});function VU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),Vr(c,f<0?0:f,T)):[]}o(VU,"drop");function wU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Vr(c,0,f<0?0:f)):[]}o(wU,"dropRight");function MU(c,f){return c&&c.length?Hd(c,Ve(f,3),!0,!0):[]}o(MU,"dropRightWhile");function kU(c,f){return c&&c.length?Hd(c,Ve(f,3),!0):[]}o(kU,"dropWhile");function UU(c,f,d,T){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,T=E),Rk(c,f,d,T)):[]}o(UU,"fill");function YI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Je(d);return E<0&&(E=jn(T+E,0)),Ad(c,Ve(f,3),E)}o(YI,"findIndex");function zI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T-1;return d!==e&&(E=Je(d),E=d<0?jn(T+E,0):vi(E,T-1)),Ad(c,Ve(f,3),E,!0)}o(zI,"findLastIndex");function JI(c){var f=c==null?0:c.length;return f?ii(c,1):[]}o(JI,"flatten");function jU(c){var f=c==null?0:c.length;return f?ii(c,Lt):[]}o(jU,"flattenDeep");function $U(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ii(c,f)):[]}o($U,"flattenDepth");function BU(c){for(var f=-1,d=c==null?0:c.length,T={};++f<d;){var E=c[f];T[E[0]]=E[1]}return T}o(BU,"fromPairs");function ZI(c){return c&&c.length?c[0]:e}o(ZI,"head");function HU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Je(d);return E<0&&(E=jn(T+E,0)),Hc(c,f,E)}o(HU,"indexOf");function GU(c){var f=c==null?0:c.length;return f?Vr(c,0,-1):[]}o(GU,"initial");var WU=nt(function(c){var f=fn(c,Kv);return f.length&&f[0]===c[0]?wv(f):[]}),KU=nt(function(c){var f=wr(c),d=fn(c,Kv);return f===wr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?wv(d,Ve(f,2)):[]}),XU=nt(function(c){var f=wr(c),d=fn(c,Kv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?wv(d,e,f):[]});function QU(c,f){return c==null?"":G2.call(c,f)}o(QU,"join");function wr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(wr,"last");function qU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T;return d!==e&&(E=Je(d),E=E<0?jn(T+E,0):vi(E,T-1)),f===f?O2(c,f,E):Ad(c,Dx,E,!0)}o(qU,"lastIndexOf");function YU(c,f){return c&&c.length?fI(c,Je(f)):e}o(YU,"nth");var zU=nt(eO);function eO(c,f){return c&&c.length&&f&&f.length?jv(c,f):c}o(eO,"pullAll");function JU(c,f,d){return c&&c.length&&f&&f.length?jv(c,f,Ve(d,2)):c}o(JU,"pullAllBy");function ZU(c,f,d){return c&&c.length&&f&&f.length?jv(c,f,e,d):c}o(ZU,"pullAllWith");var ej=ta(function(c,f){var d=c==null?0:c.length,T=Fv(c,f);return dI(c,fn(f,function(E){return na(E,d)?+E:E}).sort(SI)),T});function tj(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,E=[],x=c.length;for(f=Ve(f,3);++T<x;){var L=c[T];f(L,T,c)&&(d.push(L),E.push(T))}return dI(c,E),d}o(tj,"remove");function aT(c){return c==null?c:Q2.call(c)}o(aT,"reverse");function nj(c,f,d){var T=c==null?0:c.length;return T?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=T):(f=f==null?0:Je(f),d=d===e?T:Je(d)),Vr(c,f,d)):[]}o(nj,"slice");function ij(c,f){return Bd(c,f)}o(ij,"sortedIndex");function rj(c,f,d){return Hv(c,f,Ve(d,2))}o(rj,"sortedIndexBy");function oj(c,f){var d=c==null?0:c.length;if(d){var T=Bd(c,f);if(T<d&&eo(c[T],f))return T}return-1}o(oj,"sortedIndexOf");function aj(c,f){return Bd(c,f,!0)}o(aj,"sortedLastIndex");function sj(c,f,d){return Hv(c,f,Ve(d,2),!0)}o(sj,"sortedLastIndexBy");function cj(c,f){var d=c==null?0:c.length;if(d){var T=Bd(c,f,!0)-1;if(eo(c[T],f))return T}return-1}o(cj,"sortedLastIndexOf");function lj(c){return c&&c.length?mI(c):[]}o(lj,"sortedUniq");function fj(c,f){return c&&c.length?mI(c,Ve(f,2)):[]}o(fj,"sortedUniqBy");function uj(c){var f=c==null?0:c.length;return f?Vr(c,1,f):[]}o(uj,"tail");function pj(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),Vr(c,0,f<0?0:f)):[]}o(pj,"take");function dj(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Vr(c,f<0?0:f,T)):[]}o(dj,"takeRight");function gj(c,f){return c&&c.length?Hd(c,Ve(f,3),!1,!0):[]}o(gj,"takeRightWhile");function mj(c,f){return c&&c.length?Hd(c,Ve(f,3)):[]}o(mj,"takeWhile");var hj=nt(function(c){return ka(ii(c,1,In,!0))}),yj=nt(function(c){var f=wr(c);return In(f)&&(f=e),ka(ii(c,1,In,!0),Ve(f,2))}),vj=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,ka(ii(c,1,In,!0),e,f)});function Tj(c){return c&&c.length?ka(c):[]}o(Tj,"uniq");function bj(c,f){return c&&c.length?ka(c,Ve(f,2)):[]}o(bj,"uniqBy");function Ej(c,f){return f=typeof f=="function"?f:e,c&&c.length?ka(c,e,f):[]}o(Ej,"uniqWith");function sT(c){if(!(c&&c.length))return[];var f=0;return c=Fa(c,function(d){if(In(d))return f=jn(d.length,f),!0}),Pv(f,function(d){return fn(c,Ev(d))})}o(sT,"unzip");function tO(c,f){if(!(c&&c.length))return[];var d=sT(c);return f==null?d:fn(d,function(T){return cr(f,e,T)})}o(tO,"unzipWith");var Aj=nt(function(c,f){return In(c)?Bf(c,f):[]}),Sj=nt(function(c){return Wv(Fa(c,In))}),Pj=nt(function(c){var f=wr(c);return In(f)&&(f=e),Wv(Fa(c,In),Ve(f,2))}),Cj=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,Wv(Fa(c,In),e,f)}),xj=nt(sT);function Ij(c,f){return TI(c||[],f||[],$f)}o(Ij,"zipObject");function Oj(c,f){return TI(c||[],f||[],Wf)}o(Oj,"zipObjectDeep");var Nj=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,tO(c,d)});function nO(c){var f=P(c);return f.__chain__=!0,f}o(nO,"chain");function Lj(c,f){return f(c),c}o(Lj,"tap");function Jd(c,f){return f(c)}o(Jd,"thru");var Rj=ta(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,E=o(function(x){return Fv(x,c)},"interceptor");return f>1||this.__actions__.length||!(T instanceof pt)||!na(d)?this.thru(E):(T=T.slice(d,+d+(f?1:0)),T.__actions__.push({func:Jd,args:[E],thisArg:e}),new Dr(T,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function Fj(){return nO(this)}o(Fj,"wrapperChain");function Dj(){return new Dr(this.value(),this.__chain__)}o(Dj,"wrapperCommit");function _j(){this.__values__===e&&(this.__values__=hO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(_j,"wrapperNext");function Vj(){return this}o(Vj,"wrapperToIterator");function wj(c){for(var f,d=this;d instanceof Md;){var T=qI(d);T.__index__=0,T.__values__=e,f?E.__wrapped__=T:f=T;var E=T;d=d.__wrapped__}return E.__wrapped__=c,f}o(wj,"wrapperPlant");function Mj(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[aT],thisArg:e}),new Dr(f,this.__chain__)}return this.thru(aT)}o(Mj,"wrapperReverse");function kj(){return vI(this.__wrapped__,this.__actions__)}o(kj,"wrapperValue");var Uj=Gd(function(c,f,d){Ft.call(c,d)?++c[d]:Zo(c,d,1)});function jj(c,f,d){var T=Xe(c)?Rx:Lk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(jj,"every");function $j(c,f){var d=Xe(c)?Fa:tI;return d(c,Ve(f,3))}o($j,"filter");var Bj=NI(YI),Hj=NI(zI);function Gj(c,f){return ii(Zd(c,f),1)}o(Gj,"flatMap");function Wj(c,f){return ii(Zd(c,f),Lt)}o(Wj,"flatMapDeep");function Kj(c,f,d){return d=d===e?1:Je(d),ii(Zd(c,f),d)}o(Kj,"flatMapDepth");function iO(c,f){var d=Xe(c)?Rr:Ma;return d(c,Ve(f,3))}o(iO,"forEach");function rO(c,f){var d=Xe(c)?f2:eI;return d(c,Ve(f,3))}o(rO,"forEachRight");var Xj=Gd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Zo(c,d,[f])});function Qj(c,f,d,T){c=Ki(c)?c:el(c),d=d&&!T?Je(d):0;var E=c.length;return d<0&&(d=jn(E+d,0)),rg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Hc(c,f,d)>-1}o(Qj,"includes");var qj=nt(function(c,f,d){var T=-1,E=typeof f=="function",x=Ki(c)?W(c.length):[];return Ma(c,function(L){x[++T]=E?cr(f,L,d):Hf(L,f,d)}),x}),Yj=Gd(function(c,f,d){Zo(c,d,f)});function Zd(c,f){var d=Xe(c)?fn:sI;return d(c,Ve(f,3))}o(Zd,"map");function zj(c,f,d,T){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=T?e:d,Xe(d)||(d=d==null?[]:[d]),uI(c,f,d))}o(zj,"orderBy");var Jj=Gd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Zj(c,f,d){var T=Xe(c)?Tv:Vx,E=arguments.length<3;return T(c,Ve(f,4),d,E,Ma)}o(Zj,"reduce");function e$(c,f,d){var T=Xe(c)?u2:Vx,E=arguments.length<3;return T(c,Ve(f,4),d,E,eI)}o(e$,"reduceRight");function t$(c,f){var d=Xe(c)?Fa:tI;return d(c,ng(Ve(f,3)))}o(t$,"reject");function n$(c){var f=Xe(c)?Yx:Qk;return f(c)}o(n$,"sample");function i$(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Je(f);var T=Xe(c)?Ck:qk;return T(c,f)}o(i$,"sampleSize");function r$(c){var f=Xe(c)?xk:zk;return f(c)}o(r$,"shuffle");function o$(c){if(c==null)return 0;if(Ki(c))return rg(c)?Wc(c):c.length;var f=Ti(c);return f==Qe||f==gn?c.size:kv(c).length}o(o$,"size");function a$(c,f,d){var T=Xe(c)?bv:Jk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(a$,"some");var s$=nt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Li(c,f[0],f[1])?f=[]:d>2&&Li(f[0],f[1],f[2])&&(f=[f[0]]),uI(c,ii(f,1),[])}),eg=$2||function(){return Xn.Date.now()};function c$(c,f){if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(c$,"after");function oO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,ea(c,Z,e,e,e,e,f)}o(oO,"ary");function aO(c,f){var d;if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(aO,"before");var cT=nt(function(c,f,d){var T=b;if(d.length){var E=_a(d,Jc(cT));T|=j}return ea(c,T,f,d,E)}),sO=nt(function(c,f,d){var T=b|O;if(d.length){var E=_a(d,Jc(sO));T|=j}return ea(f,T,c,d,E)});function cO(c,f,d){f=d?e:f;var T=ea(c,U,e,e,e,e,e,f);return T.placeholder=cO.placeholder,T}o(cO,"curry");function lO(c,f,d){f=d?e:f;var T=ea(c,K,e,e,e,e,e,f);return T.placeholder=lO.placeholder,T}o(lO,"curryRight");function fO(c,f,d){var T,E,x,L,R,M,z=0,J=!1,ee=!1,me=!0;if(typeof c!="function")throw new Fr(r);f=Mr(f)||0,hn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?jn(Mr(d.maxWait)||0,f):x,me="trailing"in d?!!d.trailing:me);function Ne(On){var to=T,oa=E;return T=E=e,z=On,L=c.apply(oa,to),L}o(Ne,"invokeFunc");function Me(On){return z=On,R=Qf(st,f),J?Ne(On):L}o(Me,"leadingEdge");function Ze(On){var to=On-M,oa=On-z,NO=f-to;return ee?vi(NO,x-oa):NO}o(Ze,"remainingWait");function ke(On){var to=On-M,oa=On-z;return M===e||to>=f||to<0||ee&&oa>=x}o(ke,"shouldInvoke");function st(){var On=eg();if(ke(On))return gt(On);R=Qf(st,Ze(On))}o(st,"timerExpired");function gt(On){return R=e,me&&T?Ne(On):(T=E=e,L)}o(gt,"trailingEdge");function pr(){R!==e&&bI(R),z=0,T=M=E=R=e}o(pr,"cancel");function Ri(){return R===e?L:gt(eg())}o(Ri,"flush");function dr(){var On=eg(),to=ke(On);if(T=arguments,E=this,M=On,to){if(R===e)return Me(M);if(ee)return bI(R),R=Qf(st,f),Ne(M)}return R===e&&(R=Qf(st,f)),L}return o(dr,"debounced"),dr.cancel=pr,dr.flush=Ri,dr}o(fO,"debounce");var l$=nt(function(c,f){return Zx(c,1,f)}),f$=nt(function(c,f,d){return Zx(c,Mr(f)||0,d)});function u$(c){return ea(c,Pe)}o(u$,"flip");function tg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Fr(r);var d=o(function(){var T=arguments,E=f?f.apply(this,T):T[0],x=d.cache;if(x.has(E))return x.get(E);var L=c.apply(this,T);return d.cache=x.set(E,L)||x,L},"memoized");return d.cache=new(tg.Cache||Jo),d}o(tg,"memoize"),tg.Cache=Jo;function ng(c){if(typeof c!="function")throw new Fr(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)}}o(ng,"negate");function p$(c){return aO(2,c)}o(p$,"once");var d$=Zk(function(c,f){f=f.length==1&&Xe(f[0])?fn(f[0],lr(Ve())):fn(ii(f,1),lr(Ve()));var d=f.length;return nt(function(T){for(var E=-1,x=vi(T.length,d);++E<x;)T[E]=f[E].call(this,T[E]);return cr(c,this,T)})}),lT=nt(function(c,f){var d=_a(f,Jc(lT));return ea(c,j,e,f,d)}),uO=nt(function(c,f){var d=_a(f,Jc(uO));return ea(c,ae,e,f,d)}),g$=ta(function(c,f){return ea(c,re,e,e,e,f)});function m$(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Je(f),nt(c,f)}o(m$,"rest");function h$(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:jn(Je(f),0),nt(function(d){var T=d[f],E=ja(d,0,f);return T&&Da(E,T),cr(c,this,E)})}o(h$,"spread");function y$(c,f,d){var T=!0,E=!0;if(typeof c!="function")throw new Fr(r);return hn(d)&&(T="leading"in d?!!d.leading:T,E="trailing"in d?!!d.trailing:E),fO(c,f,{leading:T,maxWait:f,trailing:E})}o(y$,"throttle");function v$(c){return oO(c,1)}o(v$,"unary");function T$(c,f){return lT(Xv(f),c)}o(T$,"wrap");function b$(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(b$,"castArray");function E$(c){return _r(c,m)}o(E$,"clone");function A$(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(A$,"cloneWith");function S$(c){return _r(c,p|m)}o(S$,"cloneDeep");function P$(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(P$,"cloneDeepWith");function C$(c,f){return f==null||Jx(c,f,Qn(f))}o(C$,"conformsTo");function eo(c,f){return c===f||c!==c&&f!==f}o(eo,"eq");var x$=Qd(Vv),I$=Qd(function(c,f){return c>=f}),Ws=rI(function(){return arguments}())?rI:function(c){return Tn(c)&&Ft.call(c,"callee")&&!Gx.call(c,"callee")},Xe=W.isArray,O$=Cx?lr(Cx):wk;function Ki(c){return c!=null&&ig(c.length)&&!ia(c)}o(Ki,"isArrayLike");function In(c){return Tn(c)&&Ki(c)}o(In,"isArrayLikeObject");function N$(c){return c===!0||c===!1||Tn(c)&&Ni(c)==I}o(N$,"isBoolean");var $a=H2||bT,L$=xx?lr(xx):Mk;function R$(c){return Tn(c)&&c.nodeType===1&&!qf(c)}o(R$,"isElement");function F$(c){if(c==null)return!0;if(Ki(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||$a(c)||Zc(c)||Ws(c)))return!c.length;var f=Ti(c);if(f==Qe||f==gn)return!c.size;if(Xf(c))return!kv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(F$,"isEmpty");function D$(c,f){return Gf(c,f)}o(D$,"isEqual");function _$(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?Gf(c,f,e,d):!!T}o(_$,"isEqualWith");function fT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!qf(c)}o(fT,"isError");function V$(c){return typeof c=="number"&&Kx(c)}o(V$,"isFinite");function ia(c){if(!hn(c))return!1;var f=Ni(c);return f==_e||f==Rt||f==at||f==ni}o(ia,"isFunction");function pO(c){return typeof c=="number"&&c==Je(c)}o(pO,"isInteger");function ig(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ig,"isLength");function hn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(hn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var dO=Ix?lr(Ix):Uk;function w$(c,f){return c===f||Mv(c,f,eT(f))}o(w$,"isMatch");function M$(c,f,d){return d=typeof d=="function"?d:e,Mv(c,f,eT(f),d)}o(M$,"isMatchWith");function k$(c){return gO(c)&&c!=+c}o(k$,"isNaN");function U$(c){if(AU(c))throw new We(i);return oI(c)}o(U$,"isNative");function j$(c){return c===null}o(j$,"isNull");function $$(c){return c==null}o($$,"isNil");function gO(c){return typeof c=="number"||Tn(c)&&Ni(c)==kt}o(gO,"isNumber");function qf(c){if(!Tn(c)||Ni(c)!=cn)return!1;var f=Ld(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&xd.call(d)==M2}o(qf,"isPlainObject");var uT=Ox?lr(Ox):jk;function B$(c){return pO(c)&&c>=-Re&&c<=Re}o(B$,"isSafeInteger");var mO=Nx?lr(Nx):$k;function rg(c){return typeof c=="string"||!Xe(c)&&Tn(c)&&Ni(c)==yi}o(rg,"isString");function ur(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Gt}o(ur,"isSymbol");var Zc=Lx?lr(Lx):Bk;function H$(c){return c===e}o(H$,"isUndefined");function G$(c){return Tn(c)&&Ti(c)==Gi}o(G$,"isWeakMap");function W$(c){return Tn(c)&&Ni(c)==Lf}o(W$,"isWeakSet");var K$=Qd(Uv),X$=Qd(function(c,f){return c<=f});function hO(c){if(!c)return[];if(Ki(c))return rg(c)?Jr(c):Wi(c);if(wf&&c[wf])return C2(c[wf]());var f=Ti(c),d=f==Qe?xv:f==gn?Sd:el;return d(c)}o(hO,"toArray");function ra(c){if(!c)return c===0?c:0;if(c=Mr(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Oi}return c===c?c:0}o(ra,"toFinite");function Je(c){var f=ra(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function yO(c){return c?$s(Je(c),0,Mt):0}o(yO,"toLength");function Mr(c){if(typeof c=="number")return c;if(ur(c))return It;if(hn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=hn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=wx(c);var d=IM.test(c);return d||NM.test(c)?s2(c.slice(2),d?2:8):xM.test(c)?It:+c}o(Mr,"toNumber");function vO(c){return Po(c,Xi(c))}o(vO,"toPlainObject");function Q$(c){return c?$s(Je(c),-Re,Re):c===0?c:0}o(Q$,"toSafeInteger");function Ot(c){return c==null?"":fr(c)}o(Ot,"toString");var q$=Yc(function(c,f){if(Xf(f)||Ki(f)){Po(f,Qn(f),c);return}for(var d in f)Ft.call(f,d)&&$f(c,d,f[d])}),TO=Yc(function(c,f){Po(f,Xi(f),c)}),og=Yc(function(c,f,d,T){Po(f,Xi(f),c,T)}),Y$=Yc(function(c,f,d,T){Po(f,Qn(f),c,T)}),z$=ta(Fv);function J$(c,f){var d=qc(c);return f==null?d:zx(d,f)}o(J$,"create");var Z$=nt(function(c,f){c=Kt(c);var d=-1,T=f.length,E=T>2?f[2]:e;for(E&&Li(f[0],f[1],E)&&(T=1);++d<T;)for(var x=f[d],L=Xi(x),R=-1,M=L.length;++R<M;){var z=L[R],J=c[z];(J===e||eo(J,Kc[z])&&!Ft.call(c,z))&&(c[z]=x[z])}return c}),e4=nt(function(c){return c.push(e,wI),cr(bO,e,c)});function t4(c,f){return Fx(c,Ve(f,3),So)}o(t4,"findKey");function n4(c,f){return Fx(c,Ve(f,3),_v)}o(n4,"findLastKey");function i4(c,f){return c==null?c:Dv(c,Ve(f,3),Xi)}o(i4,"forIn");function r4(c,f){return c==null?c:nI(c,Ve(f,3),Xi)}o(r4,"forInRight");function o4(c,f){return c&&So(c,Ve(f,3))}o(o4,"forOwn");function a4(c,f){return c&&_v(c,Ve(f,3))}o(a4,"forOwnRight");function s4(c){return c==null?[]:jd(c,Qn(c))}o(s4,"functions");function c4(c){return c==null?[]:jd(c,Xi(c))}o(c4,"functionsIn");function pT(c,f,d){var T=c==null?e:Bs(c,f);return T===e?d:T}o(pT,"get");function l4(c,f){return c!=null&&UI(c,f,Fk)}o(l4,"has");function dT(c,f){return c!=null&&UI(c,f,Dk)}o(dT,"hasIn");var f4=RI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),c[f]=d},mT(Qi)),u4=RI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),p4=nt(Hf);function Qn(c){return Ki(c)?qx(c):kv(c)}o(Qn,"keys");function Xi(c){return Ki(c)?qx(c,!0):Hk(c)}o(Xi,"keysIn");function d4(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,x){Zo(d,f(T,E,x),T)}),d}o(d4,"mapKeys");function g4(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,x){Zo(d,E,f(T,E,x))}),d}o(g4,"mapValues");var m4=Yc(function(c,f,d){$d(c,f,d)}),bO=Yc(function(c,f,d,T){$d(c,f,d,T)}),h4=ta(function(c,f){var d={};if(c==null)return d;var T=!1;f=fn(f,function(x){return x=Ua(x,c),T||(T=x.length>1),x}),Po(c,Jv(c),d),T&&(d=_r(d,p|g|m,fU));for(var E=f.length;E--;)Gv(d,f[E]);return d});function y4(c,f){return EO(c,ng(Ve(f)))}o(y4,"omitBy");var T4=ta(function(c,f){return c==null?{}:Wk(c,f)});function EO(c,f){if(c==null)return{};var d=fn(Jv(c),function(T){return[T]});return f=Ve(f),pI(c,d,function(T,E){return f(T,E[0])})}o(EO,"pickBy");function b4(c,f,d){f=Ua(f,c);var T=-1,E=f.length;for(E||(E=1,c=e);++T<E;){var x=c==null?e:c[Co(f[T])];x===e&&(T=E,x=d),c=ia(x)?x.call(c):x}return c}o(b4,"result");function E4(c,f,d){return c==null?c:Wf(c,f,d)}o(E4,"set");function A4(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:Wf(c,f,d,T)}o(A4,"setWith");var AO=_I(Qn),SO=_I(Xi);function S4(c,f,d){var T=Xe(c),E=T||$a(c)||Zc(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;E?d=T?new x:[]:hn(c)?d=ia(x)?qc(Ld(c)):{}:d={}}return(E?Rr:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(S4,"transform");function P4(c,f){return c==null?!0:Gv(c,f)}o(P4,"unset");function C4(c,f,d){return c==null?c:yI(c,f,Xv(d))}o(C4,"update");function x4(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:yI(c,f,Xv(d),T)}o(x4,"updateWith");function el(c){return c==null?[]:Cv(c,Qn(c))}o(el,"values");function I4(c){return c==null?[]:Cv(c,Xi(c))}o(I4,"valuesIn");function O4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Mr(d),d=d===d?d:0),f!==e&&(f=Mr(f),f=f===f?f:0),$s(Mr(c),f,d)}o(O4,"clamp");function N4(c,f,d){return f=ra(f),d===e?(d=f,f=0):d=ra(d),c=Mr(c),_k(c,f,d)}o(N4,"inRange");function L4(c,f,d){if(d&&typeof d!="boolean"&&Li(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=ra(c),f===e?(f=c,c=0):f=ra(f)),c>f){var T=c;c=f,f=T}if(d||c%1||f%1){var E=Xx();return vi(c+E*(f-c+a2("1e-"+((E+"").length-1))),f)}return $v(c,f)}o(L4,"random");var R4=zc(function(c,f,d){return f=f.toLowerCase(),c+(d?PO(f):f)});function PO(c){return gT(Ot(c).toLowerCase())}o(PO,"capitalize");function CO(c){return c=Ot(c),c&&c.replace(RM,b2).replace(YM,"")}o(CO,"deburr");function F4(c,f,d){c=Ot(c),f=fr(f);var T=c.length;d=d===e?T:$s(Je(d),0,T);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(F4,"endsWith");function D4(c){return c=Ot(c),c&&Oe.test(c)?c.replace(be,E2):c}o(D4,"escape");function _4(c){return c=Ot(c),c&&yM.test(c)?c.replace(_f,"\\$&"):c}o(_4,"escapeRegExp");var V4=zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),w4=zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),M4=OI("toLowerCase");function k4(c,f,d){c=Ot(c),f=Je(f);var T=f?Wc(c):0;if(!f||T>=f)return c;var E=(f-T)/2;return Xd(_d(E),d)+c+Xd(Dd(E),d)}o(k4,"pad");function U4(c,f,d){c=Ot(c),f=Je(f);var T=f?Wc(c):0;return f&&T<f?c+Xd(f-T,d):c}o(U4,"padEnd");function j4(c,f,d){c=Ot(c),f=Je(f);var T=f?Wc(c):0;return f&&T<f?Xd(f-T,d)+c:c}o(j4,"padStart");function $4(c,f,d){return d||f==null?f=0:f&&(f=+f),X2(Ot(c).replace(fv,""),f||0)}o($4,"parseInt");function B4(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Je(f),Bv(Ot(c),f)}o(B4,"repeat");function H4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(H4,"replace");var G4=zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function W4(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!uT(f))&&(f=fr(f),!f&&Gc(c))?ja(Jr(c),0,d):c.split(f,d)):[]}o(W4,"split");var K4=zc(function(c,f,d){return c+(d?" ":"")+gT(f)});function X4(c,f,d){return c=Ot(c),d=d==null?0:$s(Je(d),0,c.length),f=fr(f),c.slice(d,d+f.length)==f}o(X4,"startsWith");function Q4(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=Ot(c),f=og({},f,T,VI);var E=og({},f.imports,T.imports,VI),x=Qn(E),L=Cv(E,x),R,M,z=0,J=f.interpolate||vd,ee="__p += '",me=Iv((f.escape||vd).source+"|"+J.source+"|"+(J===ln?CM:vd).source+"|"+(f.evaluate||vd).source+"|$","g"),Ne="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++t2+"]")+`
|
|
272
272
|
`;c.replace(me,function(ke,st,gt,pr,Ri,dr){return gt||(gt=pr),ee+=c.slice(z,dr).replace(FM,A2),st&&(R=!0,ee+=`' +
|
|
273
273
|
__e(`+st+`) +
|
|
274
274
|
'`),Ri&&(M=!0,ee+=`';
|
|
@@ -285,13 +285,13 @@ __p += '`),gt&&(ee+=`' +
|
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ee+`return __p
|
|
288
|
-
}`;var Ze=xO(function(){return St(x,Ne+"return "+ee).apply(e,L)});if(Ze.source=ee,cT(Ze))throw Ze;return Ze}o(Q4,"template");function q4(c){return Ot(c).toLowerCase()}o(q4,"toLower");function Y4(c){return Ot(c).toUpperCase()}o(Y4,"toUpper");function z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return Vx(c);if(!c||!(f=fr(f)))return c;var T=Jr(c),E=Jr(f),x=wx(T,E),L=Mx(T,E)+1;return Ua(T,x,L).join("")}o(z4,"trim");function J4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,Ux(c)+1);if(!c||!(f=fr(f)))return c;var T=Jr(c),E=Mx(T,Jr(f))+1;return Ua(T,0,E).join("")}o(J4,"trimEnd");function Z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(cv,"");if(!c||!(f=fr(f)))return c;var T=Jr(c),E=wx(T,Jr(f));return Ua(T,E).join("")}o(Z4,"trimStart");function eB(c,f){var d=D,T=ut;if(hn(f)){var E="separator"in f?f.separator:E;d="length"in f?Je(f.length):d,T="omission"in f?fr(f.omission):T}c=Ot(c);var x=c.length;if(Gc(c)){var L=Jr(c);x=L.length}if(d>=x)return c;var R=d-Wc(T);if(R<1)return T;var M=L?Ua(L,0,R).join(""):c.slice(0,R);if(E===e)return M+T;if(L&&(R+=M.length-R),lT(E)){if(c.slice(R).search(E)){var z,J=M;for(E.global||(E=Cv(E.source,Ot(ix.exec(E))+"g")),E.lastIndex=0;z=E.exec(J);)var ee=z.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(fr(E),R)!=R){var me=M.lastIndexOf(E);me>-1&&(M=M.slice(0,me))}return M+T}o(eB,"truncate");function tB(c){return c=Ot(c),c&&Ce.test(c)?c.replace(he,N2):c}o(tB,"unescape");var nB=zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),pT=II("toUpperCase");function CO(c,f,d){return c=Ot(c),f=d?e:f,f===e?P2(c)?F2(c):g2(c):c.match(f)||[]}o(CO,"words");var xO=nt(function(c,f){try{return cr(c,e,f)}catch(d){return cT(d)?d:new We(d)}}),iB=ea(function(c,f){return Rr(f,function(d){d=Co(d),Jo(c,d,aT(c[d],c))}),c});function rB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(T){if(typeof T[1]!="function")throw new Fr(r);return[d(T[0]),T[1]]}):[],nt(function(T){for(var E=-1;++E<f;){var x=c[E];if(cr(x[0],this,T))return cr(x[1],this,T)}})}o(rB,"cond");function oB(c){return Nk(_r(c,p))}o(oB,"conforms");function dT(c){return function(){return c}}o(dT,"constant");function aB(c,f){return c==null||c!==c?f:c}o(aB,"defaultTo");var sB=NI(),cB=NI(!0);function Qi(c){return c}o(Qi,"identity");function gT(c){return oI(typeof c=="function"?c:_r(c,p))}o(gT,"iteratee");function lB(c){return sI(_r(c,p))}o(lB,"matches");function fB(c,f){return cI(c,_r(f,p))}o(fB,"matchesProperty");var uB=nt(function(c,f){return function(d){return Bf(d,c,f)}}),pB=nt(function(c,f){return function(d){return Bf(c,d,f)}});function mT(c,f,d){var T=Qn(f),E=jd(f,T);d==null&&!(hn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=jd(f,Qn(f)));var x=!(hn(d)&&"chain"in d)||!!d.chain,L=na(c);return Rr(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var z=this.__chain__;if(x||z){var J=c(this.__wrapped__),ee=J.__actions__=Wi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Fa([this.value()],arguments))})}),c}o(mT,"mixin");function dB(){return Xn._===this&&(Xn._=k2),this}o(dB,"noConflict");function hT(){}o(hT,"noop");function gB(c){return c=Je(c),nt(function(f){return lI(f,c)})}o(gB,"nthArg");var mB=Xv(fn),hB=Xv(Lx),yB=Xv(vv);function IO(c){return eT(c)?Tv(Co(c)):Kk(c)}o(IO,"property");function vB(c){return function(f){return c==null?e:Bs(c,f)}}o(vB,"propertyOf");var TB=RI(),bB=RI(!0);function yT(){return[]}o(yT,"stubArray");function vT(){return!1}o(vT,"stubFalse");function EB(){return{}}o(EB,"stubObject");function AB(){return""}o(AB,"stubString");function SB(){return!0}o(SB,"stubTrue");function PB(c,f){if(c=Je(c),c<1||c>Re)return[];var d=Mt,T=vi(c,Mt);f=Ve(f),c-=Mt;for(var E=Av(T,f);++d<c;)f(d);return E}o(PB,"times");function CB(c){return Xe(c)?fn(c,Co):ur(c)?[c]:Wi(XI(Ot(c)))}o(CB,"toPath");function xB(c){var f=++w2;return Ot(c)+f}o(xB,"uniqueId");var IB=Kd(function(c,f){return c+f},0),OB=Qv("ceil"),NB=Kd(function(c,f){return c/f},1),LB=Qv("floor");function RB(c){return c&&c.length?Ud(c,Qi,Dv):e}o(RB,"max");function FB(c,f){return c&&c.length?Ud(c,Ve(f,2),Dv):e}o(FB,"maxBy");function DB(c){return Dx(c,Qi)}o(DB,"mean");function _B(c,f){return Dx(c,Ve(f,2))}o(_B,"meanBy");function VB(c){return c&&c.length?Ud(c,Qi,Mv):e}o(VB,"min");function wB(c,f){return c&&c.length?Ud(c,Ve(f,2),Mv):e}o(wB,"minBy");var MB=Kd(function(c,f){return c*f},1),kB=Qv("round"),UB=Kd(function(c,f){return c-f},0);function jB(c){return c&&c.length?Ev(c,Qi):0}o(jB,"sum");function $B(c,f){return c&&c.length?Ev(c,Ve(f,2)):0}return o($B,"sumBy"),P.after=c$,P.ary=rO,P.assign=q$,P.assignIn=vO,P.assignInWith=og,P.assignWith=Y$,P.at=z$,P.before=oO,P.bind=aT,P.bindAll=iB,P.bindKey=aO,P.castArray=b$,P.chain=tO,P.chunk=NU,P.compact=LU,P.concat=RU,P.cond=rB,P.conforms=oB,P.constant=dT,P.countBy=Uj,P.create=J$,P.curry=sO,P.curryRight=cO,P.debounce=lO,P.defaults=Z$,P.defaultsDeep=e4,P.defer=l$,P.delay=f$,P.difference=FU,P.differenceBy=DU,P.differenceWith=_U,P.drop=VU,P.dropRight=wU,P.dropRightWhile=MU,P.dropWhile=kU,P.fill=UU,P.filter=$j,P.flatMap=Gj,P.flatMapDeep=Wj,P.flatMapDepth=Kj,P.flatten=zI,P.flattenDeep=jU,P.flattenDepth=$U,P.flip=u$,P.flow=sB,P.flowRight=cB,P.fromPairs=BU,P.functions=s4,P.functionsIn=c4,P.groupBy=Xj,P.initial=GU,P.intersection=WU,P.intersectionBy=KU,P.intersectionWith=XU,P.invert=f4,P.invertBy=u4,P.invokeMap=qj,P.iteratee=gT,P.keyBy=Yj,P.keys=Qn,P.keysIn=Xi,P.map=Zd,P.mapKeys=d4,P.mapValues=g4,P.matches=lB,P.matchesProperty=fB,P.memoize=tg,P.merge=m4,P.mergeWith=TO,P.method=uB,P.methodOf=pB,P.mixin=mT,P.negate=ng,P.nthArg=gB,P.omit=h4,P.omitBy=y4,P.once=p$,P.orderBy=zj,P.over=mB,P.overArgs=d$,P.overEvery=hB,P.overSome=yB,P.partial=sT,P.partialRight=fO,P.partition=Jj,P.pick=T4,P.pickBy=bO,P.property=IO,P.propertyOf=vB,P.pull=zU,P.pullAll=ZI,P.pullAllBy=JU,P.pullAllWith=ZU,P.pullAt=ej,P.range=TB,P.rangeRight=bB,P.rearg=g$,P.reject=t$,P.remove=tj,P.rest=m$,P.reverse=rT,P.sampleSize=i$,P.set=E4,P.setWith=A4,P.shuffle=r$,P.slice=nj,P.sortBy=s$,P.sortedUniq=lj,P.sortedUniqBy=fj,P.split=W4,P.spread=h$,P.tail=uj,P.take=pj,P.takeRight=dj,P.takeRightWhile=gj,P.takeWhile=mj,P.tap=Lj,P.throttle=y$,P.thru=Jd,P.toArray=mO,P.toPairs=EO,P.toPairsIn=AO,P.toPath=CB,P.toPlainObject=yO,P.transform=S4,P.unary=v$,P.union=hj,P.unionBy=yj,P.unionWith=vj,P.uniq=Tj,P.uniqBy=bj,P.uniqWith=Ej,P.unset=P4,P.unzip=oT,P.unzipWith=eO,P.update=C4,P.updateWith=x4,P.values=el,P.valuesIn=I4,P.without=Aj,P.words=CO,P.wrap=T$,P.xor=Sj,P.xorBy=Pj,P.xorWith=Cj,P.zip=xj,P.zipObject=Ij,P.zipObjectDeep=Oj,P.zipWith=Nj,P.entries=EO,P.entriesIn=AO,P.extend=vO,P.extendWith=og,mT(P,P),P.add=IB,P.attempt=xO,P.camelCase=R4,P.capitalize=SO,P.ceil=OB,P.clamp=O4,P.clone=E$,P.cloneDeep=S$,P.cloneDeepWith=P$,P.cloneWith=A$,P.conformsTo=C$,P.deburr=PO,P.defaultTo=aB,P.divide=NB,P.endsWith=F4,P.eq=eo,P.escape=D4,P.escapeRegExp=_4,P.every=jj,P.find=Bj,P.findIndex=qI,P.findKey=t4,P.findLast=Hj,P.findLastIndex=YI,P.findLastKey=n4,P.floor=LB,P.forEach=nO,P.forEachRight=iO,P.forIn=i4,P.forInRight=r4,P.forOwn=o4,P.forOwnRight=a4,P.get=fT,P.gt=x$,P.gte=I$,P.has=l4,P.hasIn=uT,P.head=JI,P.identity=Qi,P.includes=Qj,P.indexOf=HU,P.inRange=N4,P.invoke=p4,P.isArguments=Ws,P.isArray=Xe,P.isArrayBuffer=O$,P.isArrayLike=Ki,P.isArrayLikeObject=In,P.isBoolean=N$,P.isBuffer=ja,P.isDate=L$,P.isElement=R$,P.isEmpty=F$,P.isEqual=D$,P.isEqualWith=_$,P.isError=cT,P.isFinite=V$,P.isFunction=na,P.isInteger=uO,P.isLength=ig,P.isMap=pO,P.isMatch=w$,P.isMatchWith=M$,P.isNaN=k$,P.isNative=U$,P.isNil=$$,P.isNull=j$,P.isNumber=dO,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=Qf,P.isRegExp=lT,P.isSafeInteger=B$,P.isSet=gO,P.isString=rg,P.isSymbol=ur,P.isTypedArray=Zc,P.isUndefined=H$,P.isWeakMap=G$,P.isWeakSet=W$,P.join=QU,P.kebabCase=V4,P.last=wr,P.lastIndexOf=qU,P.lowerCase=w4,P.lowerFirst=M4,P.lt=K$,P.lte=X$,P.max=RB,P.maxBy=FB,P.mean=DB,P.meanBy=_B,P.min=VB,P.minBy=wB,P.stubArray=yT,P.stubFalse=vT,P.stubObject=EB,P.stubString=AB,P.stubTrue=SB,P.multiply=MB,P.nth=YU,P.noConflict=dB,P.noop=hT,P.now=eg,P.pad=k4,P.padEnd=U4,P.padStart=j4,P.parseInt=$4,P.random=L4,P.reduce=Zj,P.reduceRight=e$,P.repeat=B4,P.replace=H4,P.result=b4,P.round=kB,P.runInContext=w,P.sample=n$,P.size=o$,P.snakeCase=G4,P.some=a$,P.sortedIndex=ij,P.sortedIndexBy=rj,P.sortedIndexOf=oj,P.sortedLastIndex=aj,P.sortedLastIndexBy=sj,P.sortedLastIndexOf=cj,P.startCase=K4,P.startsWith=X4,P.subtract=UB,P.sum=jB,P.sumBy=$B,P.template=Q4,P.times=PB,P.toFinite=ia,P.toInteger=Je,P.toLength=hO,P.toLower=q4,P.toNumber=Mr,P.toSafeInteger=Q$,P.toString=Ot,P.toUpper=Y4,P.trim=z4,P.trimEnd=J4,P.trimStart=Z4,P.truncate=eB,P.unescape=tB,P.uniqueId=xB,P.upperCase=nB,P.upperFirst=pT,P.each=nO,P.eachRight=iO,P.first=JI,mT(P,function(){var c={};return So(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Rr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:jn(Je(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=vi(d,T.__takeCount__):T.__views__.push({size:vi(d,Mt),type:c+(T.__dir__<0?"Right":"")}),T},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Rr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==an||d==en;pt.prototype[c]=function(E){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(E,3),type:d}),x.__filtered__=x.__filtered__||T,x}}),Rr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Rr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Qi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Bf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ng(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Mt)},So(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),E=P[T?"take"+(f=="last"?"Right":""):f],x=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=T?[1]:arguments,M=L instanceof pt,z=R[0],J=M||Xe(L),ee=o(function(st){var gt=E.apply(P,Fa([st],R));return T&&me?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(M=J=!1);var me=this.__chain__,Ne=!!this.__actions__.length,Me=x&&!me,Ze=M&&!Ne;if(!x&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:Jd,args:[ee],thisArg:e}),new Dr(ke,me)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?T?ke.value()[0]:ke.value():ke)})}),Rr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Pd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(T&&!this.__chain__){var x=this.value();return f.apply(Xe(x)?x:[],E)}return this[d](function(L){return f.apply(Xe(L)?L:[],E)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Ft.call(Qc,T)||(Qc[T]=[]),Qc[T].push({name:f,func:d})}}),Qc[Wd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=ek,pt.prototype.reverse=tk,pt.prototype.value=nk,P.prototype.at=Rj,P.prototype.chain=Fj,P.prototype.commit=Dj,P.prototype.next=_j,P.prototype.plant=wj,P.prototype.reverse=Mj,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=kj,P.prototype.first=P.prototype.head,Vf&&(P.prototype[Vf]=Vj),P},"runInContext"),_a=D2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=_a,define(function(){return _a})):Ms?((Ms.exports=_a)._=_a,gv._=_a):Xn._=_a}).call(Zl)});var dV=Ye((Vce,pV)=>{var{findIndex:l6}=Cp();function f6(e,t){let i=l6(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(f6,"findNextTextualToken");pV.exports={findNextTextualToken:f6}});var hV=Ye((Mce,mV)=>{var gV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function u6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(gV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(u6,"isXMLNamespaceKey");function p6(e){if(typeof e!="string")return;let t=e.match(gV);if(t!==null)return t.groups&&t.groups.prefix||""}o(p6,"getXMLNamespaceKeyPrefix");mV.exports={isXMLNamespaceKey:u6,getXMLNamespaceKeyPrefix:p6}});var vV=Ye((Uce,yV)=>{var{findNextTextualToken:d6}=dV(),{isXMLNamespaceKey:g6,getXMLNamespaceKeyPrefix:m6}=hV();yV.exports={findNextTextualToken:d6,isXMLNamespaceKey:g6,getXMLNamespaceKeyPrefix:m6}});var bS=Ye((jce,bV)=>{var{reduce:h6,has:TV,isArray:y6}=Cp();function v6(e){return h6(e,(n,i,r)=>(r==="parent"||(TV(i,"type")?n.push(i):y6(i)&&i.length>0&&TV(i[0],"type")&&(n=n.concat(i))),n),[])}o(v6,"getAstChildrenReflective");bV.exports={getAstChildrenReflective:v6}});var ES=Ye((Bce,EV)=>{EV.exports={DEFAULT_NS:"::DEFAULT"}});var NV=Ye((Hce,OV)=>{var{BaseXmlCstVisitor:T6}=TS(),{last:b6,forEach:CV,reduce:E6,map:xp,pick:SS,sortBy:A6,isEmpty:S6,isArray:xV,assign:P6}=Cp(),{findNextTextualToken:C6,isXMLNamespaceKey:x6,getXMLNamespaceKeyPrefix:I6}=vV(),{getAstChildrenReflective:O6}=bS(),{DEFAULT_NS:N6}=ES();function L6(e,t){AV.setState({tokenVector:t});let n=AV.visit(e);return n.rootElement!==Fc&&IV(n.rootElement),n}o(L6,"buildAst");var PS=class PS extends T6{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&&S6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Sy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=xp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Sy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=xp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=xp(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=xp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return D6(i,t),_6(i,t),V6(i,t,this.tokenVector),Sy(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 a=t.Name[0];r.key=a.image,r.syntax.key=Py(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=R6(a.image),r.syntax.value=Py(a)}return Sy(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 a=A6(r,["startOffset"]),s=xp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(PS,"CstToAstVisitor");var AS=PS,AV=new AS;function Sy(e){let t=O6(e);CV(t,n=>n.parent=e)}o(Sy,"setChildrenParent");function IV(e,t=[]){let n=E6(e.attributes,(r,a)=>{if(a.key!==Fc&&x6({key:a.key,includeEmptyPrefix:!1})===!0){let s=I6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[N6]=l}}return r},{}),i=Object.create(null);e.namespaces=P6(i,t,n),CV(e.subElements,r=>IV(r,e.namespaces))}o(IV,"updateNamespaces");function Py(e){return SS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Py,"toXMLToken");function SV(e){return SS(e,["startOffset","startLine","startColumn"])}o(SV,"startOfXMLToken");function PV(e){return SS(e,["endOffset","endLine","endColumn"])}o(PV,"endOfXMLToken");function Ca(e){return xV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ca,"exists");function R6(e){return e.substring(1,e.length-1)}o(R6,"stripQuotes");function F6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(F6,"nsToParts");var Fc=null;function D6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Py(n);let i=F6(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=Py(t.END_NAME[0]))}o(D6,"handleElementOpenCloseNameRanges");function _6(e,t){if(Ca(t.OPEN)){let n;Ca(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ca(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...SV(t.OPEN[0]),...PV(n)}),Ca(t.SLASH_OPEN)&&Ca(t.END)&&(e.syntax.closeBody={...SV(t.SLASH_OPEN[0]),...PV(t.END[0])})}}o(_6,"handleElementOpenCloseBodyRanges");function V6(e,t,n){if(Ca(t.Name)){let i=t.Name[0].endOffset+2;if(Ca(t.START_CLOSE)||Ca(t.SLASH_CLOSE)){let r=(Ca(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=xV(t.attribute)?b6(t.attribute).location.endOffset:t.Name[0].endOffset,s=C6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(V6,"handleElementAttributeRanges");OV.exports={buildAst:L6}});var FV=Ye((Wce,RV)=>{var{forEach:w6,isFunction:ef}=Cp(),{getAstChildrenReflective:M6}=bS();function LV(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=M6(e);w6(n,i=>{LV(i,t)})}o(LV,"accept");RV.exports={accept:LV}});var _V=Ye((Xce,DV)=>{var{buildAst:k6}=NV(),{accept:U6}=FV(),{DEFAULT_NS:j6}=ES();DV.exports={buildAst:k6,accept:U6,DEFAULT_NS:j6}});var wi={};Ks(wi,{deleteConfigEntityByPath:()=>rz,exportConfig:()=>nz,exportConfigEntityByPath:()=>iz,generateCustomExtension:()=>YC,generateSchema:()=>tz,getApiVersion:()=>cz,getChanges:()=>hM,getGenericSchema:()=>rv,getPathToGenericSchema:()=>Ow,getProject:()=>dz,importConfig:()=>oz,importProject:()=>az,importProjectSchema:()=>sz,isDirectory:()=>fz,log:()=>se,prompts:()=>ez,readDirectory:()=>nx});module.exports=sg(wi);var de=ne(le());var G=ne(le());var Be=o(e=>typeof e=="string","isString"),qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),fR=o(e=>e==null?"":""+e,"makeString"),A5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),S5=/###/g,uR=o(e=>e&&e.indexOf("###")>-1?e.replace(S5,"."):e,"cleanKey"),pR=o(e=>!e||Be(e),"canNotTraverseDeeper"),Yf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(pR(e))return{};let a=uR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return pR(e)?{}:{obj:e,k:uR(i[r])}},"getLastOfPath"),dR=o((e,t,n)=>{let{obj:i,k:r}=Yf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Yf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Yf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),P5=o((e,t,n,i)=>{let{obj:r,k:a}=Yf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),lg=o((e,t)=>{let{obj:n,k:i}=Yf(e,t);if(n)return n[i]},"getPath"),C5=o((e,t,n)=>{let i=lg(e,n);return i!==void 0?i:lg(t,n)},"getPathWithDefaults"),TR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):TR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),nl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),x5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},I5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>x5[t]):e,"escape"),_T=class _T{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}};o(_T,"RegExpCache");var IT=_T,O5=[" ",",","?","!",";"],N5=new IT(20),L5=o((e,t,n)=>{t=t||"",n=n||"";let i=O5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=N5.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),OT=o(function(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 a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),fg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),R5={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)}},zf=class zf{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||R5,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:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zf(this.logger,t)}};o(zf,"Logger");var NT=zf,xo=new NT,VT=class VT{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])})}};o(VT,"EventEmitter");var rl=VT,wT=class wT 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]:{},a=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):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=lg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:OT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.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),dR(this.data,l,r),a.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 a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){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=lg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?TR(u,i,a):u={...u,...i},dR(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}};o(wT,"ResourceStore");var ug=wT,bR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},gR={},mg=class mg extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),A5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xo.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,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!L5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}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,a=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 ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${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,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,j=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(K&&v&&j&&F.indexOf(O)<0&&!(Be(U)&&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 ae=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=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(v),Z=ae?[]:{},re=ae?b:A;for(let Pe in v)if(Object.prototype.hasOwnProperty.call(v,Pe)){let D=`${re}${a}${Pe}`;Z[Pe]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Pe]===D&&(Z[Pe]=v[Pe])}v=Z}}else if(K&&Be(U)&&Array.isArray(v))v=v.join(U),v&&(v=this.extendTranslation(v,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Pe=mg.hasDefaultValue(n),D=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Pe&&(ae=!0,v=je),this.isValidLookup(v)||(Z=!0,v=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,en=Pe&&je!==v&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?je:v),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.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 Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Oi=o((It,Mt,sn)=>{let Hi=Pe&&sn!==v?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,Hi,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,Hi,en,n),this.emit("missingKey",It,u,Mt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Oi([It],s+sn,n[`defaultValue${sn}`]||je)})}):Oi(Lt,s,je))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?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,a){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=Be(t)&&(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&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,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=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),b=0;b<v;b++)A[b]=arguments[b];return a&&a[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=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=bR.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,a,s,l;return Be(t)&&(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&&!Be(n.count),A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!gR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(gR[`${O[0]}-${F}`]=!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 K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,U,F,n);else{let ae;v&&(ae=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(K.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(g+ae.replace(re,this.options.pluralSeparator)),A&&K.push(g+Z)),b){let Pe=`${g}${this.options.contextSeparator}${n.context}`;K.push(Pe),v&&(K.push(Pe+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(Pe+ae.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let j;for(;j=K.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(U,F,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,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&&!Be(t.replace),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 a of n)delete r[a]}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}};o(mg,"Translator");var pg=mg,CT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),MT=class MT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xo.create("languageUtils")}getScriptPartFromCode(t){if(t=fg(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=fg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}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]=CT(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]=CT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=CT(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(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(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=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(MT,"LanguageUtil");var dg=MT,F5=[{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}],D5={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},_5=["v1","v2","v3"],V5=["v4"],mR={zero:0,one:1,two:2,few:3,many:4,other:5},w5=o(()=>{let e={};return F5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:D5[t.fc]}})}),e},"createRules"),kT=class kT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xo.create("pluralResolver"),(!this.options.compatibilityJSON||V5.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=w5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=fg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}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,a)=>mR[r]-mR[a]).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 a=o(()=>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()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!_5.includes(this.options.compatibilityJSON)}};o(kT,"PluralResolver");var LT=kT,hR=o(function(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,a=C5(e,t,n);return!a&&r&&Be(n)&&(a=OT(e,n,i),a===void 0&&(a=OT(t,n,i))),a},"deepFindWithDefaults"),xT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),UT=class UT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.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:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:U,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:I5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?nl(a):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=b?nl(b):O||nl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=U||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((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 a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let U=hR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,i,{...r,...n,interpolationkey:A}):U}let b=A.split(this.formatSeparator),O=b.shift().trim(),F=b.join(this.formatSeparator).trim();return this.format(hR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>xT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?xT(this.escape(A)):xT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=Be(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=fR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((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),b=v.match(/"/g);(A&&A.length%2===0&&!b||b.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},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?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(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=fR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(UT,"Interpolator");var RT=UT,M5=o(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}},"parseFormatStr"),il=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(fg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),jT=class jT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.create("formatter"),this.options=t,this.formats={number:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:il((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:il((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:il((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.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]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=M5(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)}};o(jT,"Formatter");var FT=jT,k5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),$T=class $T 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=xo.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 a={},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),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{P5(u.loaded,[a],s),k5(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,a=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:a,callback:s});return}this.readingCalls++;let l=o((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,a*2,s)},a);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();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.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],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){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:a},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)}}};o($T,"Connector");var DT=$T,yR=o(()=>({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:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),vR=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),cg=o(()=>{},"noop"),U5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Jf=class Jf 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=vR(t),this.services={},this.logger=xo,this.modules={external:[]},U5(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&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=yR();this.options={...r,...this.options,...vR(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);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?xo.init(a(this.modules.logger),this.options):xo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=FT);let m=new dg(this.options);this.store=new ug(this.options.resources,this.options);let v=this.services;v.logger=xo,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new LT(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=a(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new RT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new DT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),F=1;F<b;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.languageDetector&&(v.languageDetector=a(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=a(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new pg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),F=1;F<b;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=cg),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=qf(),p=o(()=>{let g=o((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]:cg,r=Be(t)?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 a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.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(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=qf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=cg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),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"&&bR.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=qf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(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=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(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 a=o(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||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(b=>`${u.keyPrefix}${v}${b}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}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,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||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(a,t)))}loadNamespaces(t,n){let i=qf();return this.options.ns?(Be(t)&&(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=qf();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),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 dg(yR());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 Jf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Jf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ug(this.store.data,r),a.services.resourceStore=a.store),a.translator=new pg(a.services,r),a.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];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Jf,"I18n");var gg=Jf,q=gg.createInstance();q.createInstance=gg.createInstance;var Pz=q.createInstance,Cz=q.dir,xz=q.init,Iz=q.loadResources,Oz=q.reloadResources,Nz=q.use,Lz=q.changeLanguage,Rz=q.getFixedT,Fz=q.t,Dz=q.exists,_z=q.setDefaultNamespace,Vz=q.hasLoadedNamespace,wz=q.loadNamespaces,Mz=q.loadLanguages;var VF=ne(BT()),wF=ne(XR()),wg=ne(DF()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),iu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var _g=ne(le());var se=o((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(`${_g.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",TW=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],bW=["sap.fe.core","sap.fe.templates"],ru=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),mr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,wg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:G.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,wg.merge)(...n);i=(0,wF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var ll=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function sb(e,t,n){var i,r,a,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=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(sb,"evaluateCommonLabel");function Mg(e,t){let n=e.value;return e.$target&&(n=sb(e.$target.annotations,t,n)),n}o(Mg,"getLabelForPropertyPath");function Vg(e,t){var r,a;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)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=sb(i.annotations,t,n)),n}o(Vg,"getLabelForDataField");function EW(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 a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return sb(a.annotations,t,s)}}}else return}o(EW,"getLabel");function _F(e,t,n){let i=Vg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(_F,"getTitleForDataField");function Si(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=EW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=_F(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Vg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Vg(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 Ke.UIAnnotationTypes.DataFieldForAction:case Ke.UIAnnotationTypes.DataFieldWithAction:case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Vg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=_F(r,t,g);break;default:break}return n}catch{return n}}o(Si,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function la(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(la,"getPageTypeV2");function cb(e){if(e.name&&e.name!==G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${G.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return G.PageTypeV4.CustomPage}}o(cb,"getPageTypeV4");function AW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(AW,"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}o(ri,"findAlias");function SW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(SW,"getAnnotationFromMetaPath");function PW(e,t,n){var s,l;let i=e[e.length-1],r=SW(i),a=ri(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(PW,"determineTargetAnnotation");function CW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ke.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(CW,"adjustKey");function xW(e,t,n,i,r=G.FioriElementsVersion.v2,a=!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=CW(t,u,a);let g=PW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=AW(g,a).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===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(xW,"getKeyAndEntityTypeOfReferenceFacet");function MF(e,t,n,i,r=G.FioriElementsVersion.v2,a=!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!==Ke.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ll(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:F,namespace:U}=xW(n,l,p,A,r,a);if(F)return;l=b,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}}o(MF,"getSectionFacet");function IW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(IW,"getDecodedPathElement");var lb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),kF=o((e,t,n,i,r,a=!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=IW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=lb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Lo=o((e,t,n,i,r=!1)=>kF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),UF=o((e,t,n,i,r)=>{kF(e,t,i,r,n)},"setManifestSectionByPathV4");function fb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ke.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ll(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:i=ll(e.Value),n=ll(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(fb,"getSchemaKeyOfLineItemRecord");function OW(e,t,n){return e.includes(Ke.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ke.UIAnnotationTerms.Chart:e.includes(Ke.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ke.UIAnnotationTerms.Identification:n&&e.includes(Ke.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ke.UIAnnotationTerms.LineItem:e.includes(Ke.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ke.UIAnnotationTerms.FieldGroup:e.includes(Ke.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ke.UIAnnotationTerms.DataPoint:e.includes(Ke.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ke.UIAnnotationTerms.PresentationVariant:e.includes(Ke.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?Ke.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(OW,"getUIAnnotationTerm");function NW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?iu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?iu.CommunicationAnnotationTerms.Address:void 0}o(NW,"getCommunicationAnnotationTerm");function LW(e,t,n){return OW(e,t,n)||NW(e,t)}o(LW,"getAnnotationTerm");function RW(e,t,n,i,r){var p,g,m,v,A,b,O,F,U,K;let a=ri(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(LW(s,a,i)){case Ke.UIAnnotationTerms.Chart:{n[s]={base:G.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 Ke.UIAnnotationTerms.Identification:{n[s]={base:G.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 Ke.UIAnnotationTerms.LineItem:{if(!s.includes(Ke.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:G.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 Ke.UIAnnotationTerms.FieldGroup:{n[s]={base:G.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 Ke.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.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 Ke.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},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}case iu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(K=t==null?void 0:t.Target)==null?void 0:K.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(RW,"evaluateTargetAnnotation");function ub(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(ub,"getAnnotationPathUsingFullyQualifiedName");function pb(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=MF(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{RW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=ub(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&se(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{pb(m,t,n,i,g.facets,a,s)});break}}}o(pb,"addFacetToConfig");function kg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ri(G.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{pb(m,t,g,e,r,n,i)})}return r}o(kg,"getObjectPageHeaderFacets");function Ug(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ri(G.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{pb(g,t,p,e,r,n,i)})}return r}o(Ug,"getObjectPageFacets");function db(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>TW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>bW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(db,"getFEVersionFromManifest");function FW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(FW,"getMainService");function jF(e){var i,r;let t=FW(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(jF,"getODataVersionFromManifest");function DW(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){se(t,{severity:G.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(la((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(la((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(DW,"determineV2Template");function ou(e){var i,r,a,s;let t,n=cb(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(ou,"determineV4PageTemplateType");function _W(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}o(_W,"determineV4TemplateFromPages");function VW(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:G.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=_W(n);return i||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(VW,"determineV4Template");function gb(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=DW(e,n):t===G.FioriElementsVersion.v4&&(i=VW(e,n)),i}o(gb,"getTemplateTypeFromManifest");function Ba(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ba,"addSectionTitleAndDescription");function fl(e,t,n){var i,r;Ba(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))}o(fl,"addTargetTitleAndSectionDescription");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,fl(t,i,n),i}o(Ro,"createDefaultSection");function $F(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ri(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==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=MF(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o($F,"getObjectPageFacetSection");var Ha=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!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(),Ha(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),ab=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:ab(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:ab(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=ab(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function jg(e,t,n,i){if(e===G.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(jg,"generatePageId");function mb(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 a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(mb,"findMatchingKeysByAdditionalProperties");function wW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=mb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(a)}}}o(wW,"fillArrayFromAnyOfReference");function MW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{wW(r,n,t,i)}),i.length===0))return;return i}o(MW,"fillArrayFromPropertyDefinition");function kW(e,t,n,i,r,a,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=Fo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let b=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,b,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}o(kW,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,a,s),l;let u=MW(i,n,e);if(u)return l=kW(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var hb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,VF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function $g(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o($g,"convertEnumToCSV");function Yi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Yi,"convertActionKeyToStableId");function yn(e){return e==null?void 0:e.split($)[1]}o(yn,"getDefinitionKey");function BF(e){return`#/definitions/${e}`}o(BF,"getDefinitionsRef");function Bg(e){return e instanceof Error?e.message:String(e)}o(Bg,"getErrorMessage");function Ys(e,t){return e==null?void 0:e.includes(t)}o(Ys,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Hg(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}o(Hg,"getJSONPropertyByPath");function HF(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(HF,"removeNamespaces");function ul(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ul,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ne(le());var zi=ne(le());var Yt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Gg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=zi.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 UW(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(UW,"escapeId");var GF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(GF||{}),WF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(WF||{});function jW(e,t,n){let i;return e=e.map(function(r){if(r===zi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===zi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(jW,"mapBreadcrumbs");var yb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=jW(t,s,r)),s[0]===zi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH):t[0]===zi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),UW(p)},"buildColumnControlId"),Ji=o(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 $W(e){let t=zi.BINDINGPROPERTYREGEXSTRING;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}o($W,"determinePattern");var vb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,u=a.description?a.description:l.description,p=$W(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 a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{vb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(GF);vb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),oi=o((e,t,n)=>{let i=Object.values(WF);vb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}o(zs,"doNotDelete");var FJ=ne(XF());var QF=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(QF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(QF,e,t)),n}o(zn,"getReflectMetadata");var Ur=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),qF=Symbol("childId"),Ut=o(e=>Reflect.metadata(qF,e),"childId"),Wg=o((e,t)=>Reflect.getMetadata(qF,e,t),"getChildId"),Kg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),BW=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(BW,e),"descriptionSrcURL");var HW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(HW,e),"validity");function Xg(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}o(Xg,"getTextForDeprecated");var i0=ne(t0()),r0=ne(le());var o0=i0.default.change,n0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function a0(e,t){let n="";try{for(let i in n0)e[i]===void 0&&(e[i]=n0[i]);n=o0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(a0,"createChangeString");function io(e){try{return o0.parse(e)}catch{return!1}}o(io,"parseChangeString");function s0(e,t,n,i,r){let a=n.layer?n.layer===r0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};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}o(s0,"fillFlexChangeContent");function c0(e,t){return a0(e,t)}o(c0,"exportToFlexChange");var Js=ne(le());function pl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(pl,"importProperty");function Qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Js.LogSeverity.Warning,message:Xg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Qg,"checkDeprecatedProperties");function Tb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return Tb(n,t)}else return e.title?e.title.startsWith(Js.FACETTITLEPREFIX)?e.title.split(Js.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Tb,"getSectionTitle");function qg(e){let t=e.split(`${Js.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(qg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var jt=require("@sap-ux/vocabularies-types/vocabularies/UI");var fa=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(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}}o(Yg,"replaceSpecialChars");var Zs=o(function(e){return Yg(HF(e))},"prepareId");function YW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(YW,"evaluateConcat");function ec(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return YW(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(ec,"getStableIdPartFromValue");var l0=o(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"),ua=o(function(e){let t="";if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Zs(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=l0(e),t;if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Zs(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ec(e.Value)+"::"),t+=e.Action,Zs(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataField)return t="DataField::",t+=ec(e.Value),Zs(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ec(e.Value)+"::",t+=l0(e),Zs(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ec(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Zs(t);if(e.$Type&&e.$Type===fa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ec(e.Value),Zs(t)},"getStableIdPartFromDataField");var ge=ne(le());var De=ne(le());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),d0=require("path"),g0=ne(Qs());var zg="ResponsiveTableWithMultiSelect<LineItems>",Jg="ResponsiveTableWithInlineDelete<LineItems>",zW="TreeTable<LineItems>",JW="AnalyticalTable<LineItems>",ZW="GridTable<LineItems>",bb=[zg,Jg,zW,JW,ZW],f0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],u0="template::",Zg="template:::ObjectPageAction:::";function e8(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)}o(e8,"addCustomColumnDefinition");function t8(e,t){let n;return e==="TableColumnActionIntentBased"?n=fb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(t8,"getActionId");function Eb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=t8(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Si(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=tc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),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}`)}o(Eb,"handleActionRecord");function n8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Zi.UIAnnotationTypes.DataFieldForAction||t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(n8,"getColumnActionType");function i8(e,t){let n=[];if(!(e.$Type!==Zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),n8(t,e,n),n}o(i8,"getActionType");function m0(e,t,n){let i=fb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Si(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,am(r.properties[i],e.lineItemRecord),sm(e.lineItemRecord,r.properties,i)}}o(m0,"generateGenericColumn");function r8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Eb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&Eb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Eb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":m0(i,t,r)}}o(r8,"handleAnyAction");function au(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(au,"retrieveNameWithoutVocabularyFromVisualization");function dl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=om(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=i8(g,r);v?v.forEach(A=>{r8(A,t,s,m,p,l,r)}):m0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(dl,"addLineItemsType");function o8(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.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),[])}}o(o8,"addListReportLeadingProperties");function a8(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 a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let v=[];for(let A in a){let b=(m=a[A])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}pa(v,r)}}o(a8,"addTabkeyEnum");function em(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,g0.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("\\"+d0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),pa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(em,"addFragmentEnum");function gl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){e8(e,a,s),o8(e,t,s),a8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;em(e,r,u,"fragmentName",s),em(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),em(e,r,u,"cellsFragmentName",s),em(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(gl,"addTableColumnExtensions");function h0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(h0,"removeElementsFromEnum");function tm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=mr(n==null?void 0:n.fullyQualifiedName,Zi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=ro(s);s.type==="PropertyPath"&&(l=Mg(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,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]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(tm,"addSelectionFields");function y0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(y0,"addEntityPropertiesToEnum");function nm(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)}o(nm,"isDraftEnabled");function v0(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}o(v0,"isEntityDeletable");function T0(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}o(T0,"isEntityUpdatable");function ml(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(ml,"addStandardHeaderActions");function b0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(b0,"addStandardFooterActionsOP");function im(e){var i,r,a;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?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(im,"getUIAnnotationForEntitySet");function rm(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(rm,"hasPropertyTypeError");function s8(e,t,n,i){if(e===ge.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case jt.UIAnnotationTypes.DataField:case jt.UIAnnotationTypes.DataFieldForAnnotation:case jt.UIAnnotationTypes.DataFieldWithNavigationPath:case jt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ge.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case jt.UIAnnotationTypes.DataField:case jt.UIAnnotationTypes.DataFieldForAnnotation:case jt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(s8,"copyFieldProperties");function c8(e,t,n,i){let r=e===ge.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ge.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(c8,"determineFieldDefinitionName");function l8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ge.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ge.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ge.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ge.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(l8,"addKeysTagForDataField");function f8(e,t,n){if(e.$Type===jt.UIAnnotationTypes.DataField||e.$Type===jt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===jt.UIAnnotationTypes.DataFieldWithNavigationPath)l8(e,t,n);else if(e.$Type===jt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:ul(e.Target.value)}],t.definitions[n][ge.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===jt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ge.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ge.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ge.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===jt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ge.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ge.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(f8,"addKeysTagToField");function u8(e){var t,n;return e.$Type===jt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===jt.UIAnnotationTypes.ConnectedFieldsType}o(u8,"isConnectedField");function p8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===jt.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),Ab(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(p8,"addConnectedFields");function E0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(E0,"getFieldsSchemaContainer");function Ab(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=ua(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=c8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===jt.UIAnnotationTypes.DataFieldForAction||n.$Type===jt.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ge.SectionType.Section){let O=E0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${$}${v}`};F[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=E0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${v}`,propertyIndex:parseInt(r)},u8(n)&&(A=p8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:Si(n,a.entityType),additionalProperties:!1},f8(n,t,v),t.definitions[v][ge.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][ge.SchemaTag.annotationType]=n.$Type,t.definitions[v][ge.SchemaTag.isViewNode]=!0,am(t.definitions[v],n),s8(s,t,n,v),n.$Type===jt.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[v].$ref=`${$}${ge.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(Ab,"addField");function d8(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}o(d8,"determineTargetIdOfForm");function g8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Ab(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Ab(t,n,l,i,s,e,r)}}o(g8,"addFieldsToFormDefinition");function m8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ge.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ge.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ge.SchemaTag.annotationPath]=mr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(m8,"addTagsToFormDefinition");function cm(e,t,n,i,r,a){if(!t.target)return;let s=d8(t),l=dt(`${e}${ge.DefinitionName.Form}<${s}>`),u=dt(`${e}${ge.DefinitionName.Fields}<${s}>`),p=dt(`${e}${ge.DefinitionName.Actions}<${s}>`),g=!(t.base===ge.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ge.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][ge.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},m8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,g8(t,e,i,s,r,g),s}o(cm,"handleForm");function lm(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(lm,"replaceAlias");function fm(e,t){let n=lm(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(fm,"getActionNameAndId");function A0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ge.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:A0(a.pages,t)}}o(A0,"isFirstObjectPage");function um(e,t,n,i,r){var g,m;e.definitions[ge.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ge.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ge.DefinitionName.ObjectPageFooter}`},e.definitions[ge.DefinitionName.ObjectPageFooter].properties[ge.PropertyName.actions]={$ref:`${$}${ge.DefinitionName.FooterActions}`};let a=e.definitions[ge.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ge.SchemaTag.isViewNode]=!0;let s=ri(ge.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(`@${jt.UIAnnotationTerms.Identification}`,`/@${jt.UIAnnotationTerms.Identification}`);a[ge.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[ge.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${jt.UIAnnotationTerms.Identification}`);n===ge.FioriElementsVersion.v2&&A0(r,t)&&!nm(l)&&b0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(um,"addFooterActions");function pm(e,t,n,i,r,a=!1){var m,v;let s=ge.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ge.DefinitionName.ObjectPageHeader].properties[ge.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[ge.SchemaTag.isViewNode]=!0;let p=ri(ge.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[ge.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${jt.UIAnnotationTerms.Identification}`,`/@${jt.UIAnnotationTerms.Identification}`):t&&(u[ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${jt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&ml(e,!0,l)}o(pm,"addHeaderActions");function dm(e,t){e.properties.header={$ref:`${$}${ge.DefinitionName.ObjectPageHeader}`},e.definitions[ge.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ge.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ge.DefinitionName.ObjectPageHeader][ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${jt.UIAnnotationTerms.HeaderInfo}`)}o(dm,"addCommonHeaderSchema");function S0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(S0,"determineEntitySetOfEntityType");var hr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ne(le());function pa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(pa,"addEnumToSchema");function su(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.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)}}pa(r,n)}o(su,"addEnumForValidAnnotations");function Ga(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];su(e,r,i)}o(Ga,"addEnumForSingleTabVariant");function P0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];su(n.entityType,r,i)}o(P0,"addEnumForMultiTabVariant");function C0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),pa(r,i)}o(C0,"addEnumForVariantEntitySet");function x0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[hr.UIAnnotationTerms.FieldGroup];su(e,r,i)}o(x0,"addEnumFieldGroupAnnotationPath");function I0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(I0,"addDefinitionForRelatedFacetKeys");function hl(e){return e.replace("#","::")}o(hl,"getFacetKeyInSchema");function O0(e,t){return`${e}<${hl(t)}>`}o(O0,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=O0(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(bt,"parseSchemaDefinition");function gm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${hr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,bt(n,t,e,!0)),i}o(gm,"getCustomExtensionDefinitionName");function om(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=gm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let O=gm(t,r,s);v.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===et.DefinitionName.LineItems&&t.properties.footer){b=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=mr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[b][et.SchemaTag.annotationPath]=l))),{actions:v,footerActions:A,lineItemPath:l}}o(om,"addCommonLineItemDefinitions");function N0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(N0,"getDataTypeFromAnnotation");function nc(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=N0(e.$Type)),t}o(nc,"determineDataTypeOfTarget");function ro(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=nc((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=N0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(ro,"determineDataType");function am(e,t){let n=ro(t);n&&(e[et.SchemaTag.dataType]=n)}o(am,"addDataTypeToDefinition");function $n(e,t){return`${$}${O0(e,t)}`}o($n,"getFacetDefinitionLink");function Wa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Wa,"addDefinitionRef");function mm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(mm,"getFacetAnnotationPath");function cu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:$n(a?u:l,t)};let p=bt(a?u:l,t,i,!0);Ba(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(cu,"handleAddressContact");function Sb(e,t,n){typeof e=="object"&&(e[t]=n)}o(Sb,"updateSchemaProperty");function yl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];Sb(r.properties.fields.items,"enum",i)}o(yl,"addFieldsType");function h8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(h8,"findFirstSchemaDefinitionKey");function hm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=yn(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,a=m.keys))}let l=n,u=h8(a,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}}}o(hm,"getEnumEntry");function Ka(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=hm(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];Sb(l,"oneOf",r)}else Sb(a,"oneOf",r)}o(Ka,"addDescriptiveEnumDefinition");function tc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(tc,"getActionKey");function sm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:ec(e.Value)}];else if(e.$Type===hr.UIAnnotationTypes.DataFieldWithAction||e.$Type===hr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=tc(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=tc(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:ul(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===hr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=tc(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(sm,"addKeyToDefinition");var vl=ne(le());var L0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",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","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.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 F0="1.124.7";var D0={name:"@sap/ux-specification",version:F0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.31.21","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.7","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.9",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.6.3","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Xa=class Xa{constructor(){Xa.distTagsOfSpec.length===0&&(Xa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Xa.distTagsOfSpec=[]}getSpecVersion(){return F0}getDistTagsOfVersion(){let t=[],n=L0,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(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));Xa.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:vl.LogSeverity.Warning,message:a,location:{path:vl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:vl.LogSeverity.Info,message:i,location:{path:vl.MANIFESTPATH}}),!1}else return!0}};o(Xa,"DistTagEvaluator"),Xa.distTagsOfSpec=[];var lu=Xa;var ue=ne(le());var _n=ne(le());var Pi=ne(le());function _0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(_0,"getCustomPageFullName");function T8(e){let n=_0(e).split(".");return n[n.length-1]}o(T8,"getCustomPageName");function V0(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)||Pi.ViewTypes.XML}o(V0,"getViewType");function b8(e,t){return V0(e,t).toLowerCase()}o(b8,"getViewTypeExtension");function E8(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=_0(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(E8,"getViewPath");function A8(e,t){let n=e.entitySet||T8(e),{viewPath:i,fileName:r}=E8(e,t,[n]),a=b8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(A8,"getCustomPagePath");var Pb=class Pb{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Pi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=V0(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=A8(t,this.app);n.$filePath=i}};o(Pb,"AppProvider");var Qa=Pb;var lt=ne(le());var Tl=ne(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),w0=o((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=o((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 Cb(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(Cb,"getNewPageTemplate");function S8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(S8,"findPageInManifest");function P8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Cb(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Cb(e[t].pageType)}),!Array.isArray(n.pages))){let i=S8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Cb(e[t].pageType)),xb(t,e,i)}}o(P8,"transformPageFromAssociation");function C8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.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}o(C8,"deletePage");function xb(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)P8(t,r,n);Array.isArray(n.pages)||C8(n,t,i)}}o(xb,"transformPageToNewManifestV2");var A1=ne(Qs());var mA={};Ks(mA,{ALPAnalyticalTable:()=>gE,ALPGridTable:()=>dE,ALPResponsiveTable:()=>pE,Action:()=>vE,AnalyticalCard:()=>Pl,AnalyticalCardSettings:()=>bm,AnalyticalCardSettingsv4:()=>Fb,AnalyticalListPageFilterBar:()=>$b,AnalyticalTable:()=>uE,BaseCustomSection:()=>$u,ChartSettings:()=>wE,ChartSettingsType:()=>Ob,CommonCardSettings:()=>Za,CommonFilterBar:()=>Eu,CommonHeaderFacetSettings:()=>uc,CommonTableSettings:()=>is,CommonTableSettingsForSections:()=>hc,CreateWithFilters:()=>rE,CustomCard:()=>Lb,DataLoadSettings:()=>aE,DateRange:()=>Mb,DefaultDateRange:()=>kb,DefaultSpanObject:()=>Nb,FRAGMENT_DEFINITION:()=>wo,Field:()=>wb,FieldForAction:()=>Kb,Fields4Dialog:()=>sE,Fields4DialogOP:()=>lA,FooterAction:()=>bE,FormAction:()=>Wb,GlobalChartSettings:()=>sA,GlobalTableSettings:()=>dA,GridTable:()=>mE,HeaderActionStandard:()=>CE,HeaderSections:()=>GE,KPISettings:()=>ME,LinkListCardSettings:()=>_b,LinklistCard:()=>vu,ListCard:()=>Sl,ListCardSettings:()=>Rb,ListReportFilterBar:()=>Bb,MultiEdit:()=>oE,ObjectPageAnalyticalTable:()=>fA,ObjectPageChart:()=>aA,ObjectPageCustomSectionFragment:()=>Bu,ObjectPageCustomSectionView:()=>Hu,ObjectPageFooterAction:()=>KE,ObjectPageFooterActionStandard:()=>IE,ObjectPageGridTable:()=>uA,ObjectPageHeader:()=>kE,ObjectPageHeaderAction:()=>UE,ObjectPageHeaderActionStandard:()=>xE,ObjectPageHeaderSectionAddress:()=>HE,ObjectPageHeaderSectionChart:()=>$E,ObjectPageHeaderSectionDataPoint:()=>BE,ObjectPageHeaderSectionForm:()=>jE,ObjectPageLayout:()=>QE,ObjectPageResponsiveTable:()=>yc,ObjectPageSectionAddressV2:()=>ZE,ObjectPageSectionChartV2:()=>zE,ObjectPageSectionContactV2:()=>eA,ObjectPageSectionFormV2:()=>YE,ObjectPageSectionTableV2:()=>JE,ObjectPageSectionV2:()=>qE,ObjectPageSubSectionChartV2:()=>iA,ObjectPageSubSectionContactV2:()=>rA,ObjectPageSubSectionFormV2:()=>nA,ObjectPageSubSectionTableV2:()=>oA,ObjectPageSubSectionV2:()=>tA,ObjectPageToolBarAction:()=>gA,ObjectPageTreeTable:()=>pA,QuickVariantSelection:()=>cE,QuickVariantSelectionOP:()=>cA,QuickVariantSelectionX:()=>lE,ResponsiveTable:()=>ac,SAP_UI_TABLE:()=>Im,SaveAndEditOP:()=>PE,SelectionFieldDateSettings:()=>Ub,SelectionFields:()=>jb,Share:()=>EE,ShareOP:()=>AE,StackCard:()=>yu,StackCardSettings:()=>Db,TableALP:()=>Nl,TableCard:()=>Cl,TableCardSettings:()=>Vb,TableColumn:()=>LE,TableColumnAction:()=>Qm,TableColumnActionIntentBased:()=>RE,TableCustomColumn:()=>FE,ToolBar:()=>_E,ToolBarAction:()=>TE,TreeTable:()=>fE,UpAndDownNavigationOP:()=>SE,buildIntentBasedActionId:()=>OE,deleteColumnFromFragment:()=>Lm,deleteType:()=>Rl,exportColorPalette:()=>$0,exportCreateParametersFields:()=>km,exportCustomColumnsToFragment:()=>nE,exportDateSettingsField:()=>W0,exportDefaultSpan:()=>B0,exportType:()=>Ll,getChartSectionControlId:()=>y1,getContactSubSectionControlId:()=>T1,getCustomColumnPath:()=>Rm,getFormSectionControlId:()=>h1,getRootCustomColumnFromFragmentJSON:()=>Pu,getSectionControlId:()=>gc,getSmartChartControlId:()=>Du,getSmartTableControlId:()=>oc,getSubSectionControlId:()=>v1,getTableSectionControlId:()=>m1,importCreateParameters:()=>Mm,importDateSettings:()=>Hb});var Jn=ne(le());var Ue=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),jr=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),k0=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),U0=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[Jn.ManifestSection.ovp];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ic=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Tm=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(Tm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Ya=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ao=o((e,t,n)=>{let i=[];i.push(Tm(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),yr=o((e,t,n)=>ao(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),j0=o((e,t,n)=>ao(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Ib=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),da=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${Ib()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),vm=class vm{};o(vm,"ApplicationV2"),h([Ut("settings")],vm.prototype,"settings",2);var ym=vm,oo=class oo{};o(oo,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],oo.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],oo.prototype,"description",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],oo.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],oo.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],oo.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],oo.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],oo.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],oo.prototype,"statePreservationMode",2);var qa=oo;var fu=ne(le());function x8(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=fu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=fu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:fu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(x8,"importColorPalette");function $0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===fu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o($0,"exportColorPalette");function B0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(B0,"exportDefaultSpan");var Em=class Em{};o(Em,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Em.prototype,"showDataLabel",2);var Ob=Em,za=class za{};o(za,"DefaultSpanObject"),h([y({manifest:{path:o(t=>xe(t),"path")}})],za.prototype,"cols",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],za.prototype,"rows",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],za.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],za.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],za.prototype,"minimumSubTitleRow",2);var Nb=za,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>xe(t),"path"),export:B0}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var Za=Xt,bl=class bl{};o(bl,"CustomCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],bl.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],bl.prototype,"template",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],bl.prototype,"settings",2);var Lb=bl,Ja=class Ja extends Za{};o(Ja,"ListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"listType",2);var Rb=Ja,uu=class uu{};o(uu,"ListCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],uu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],uu.prototype,"template",2);var Sl=uu,so=class so extends Za{};o(so,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"navigation",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>xe(t),"path"),import:x8,export:$0}})],so.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"bEnableStableColors",2);var bm=so,Am=class Am extends bm{};o(Am,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Am.prototype,"measureAggregate",2);var Fb=Am,pu=class pu{};o(pu,"AnalyticalCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"template",2);var Pl=pu,El=class El extends Za{};o(El,"StackCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"itemText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"objectStreamCardsSettings",2);var Db=El,du=class du{};o(du,"StackCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"template",2);var yu=du,Al=class Al extends Za{};o(Al,"LinkListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"staticContent",2);var _b=Al,gu=class gu{};o(gu,"LinklistCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"template",2);var vu=gu,mu=class mu extends Za{};o(mu,"TableCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"enableAddToInsights",2);var Vb=mu,hu=class hu{};o(hu,"TableCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"template",2);var Cl=hu;var H0=ne(le());var I8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return Yt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Sm=class Sm{};o(Sm,"Field"),h([y({flex:{controlId:I8,controlType:o(()=>H0.ControlType.GroupElement,"controlType")},generate:mt})],Sm.prototype,"visible",2);var wb=Sm;var rc=ne(le());function Hb(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}o(Hb,"importDateSettings");function O8(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((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(O8,"importDateSettingsField");function W0(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 a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(W0,"exportDateSettingsField");var xl=class xl{};o(xl,"DateRange"),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],xl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path"),import:Hb,export:$g}}),C({since:"1.77.0"})],xl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],xl.prototype,"exclude",2);var Mb=xl,Pm={controlId:Yt,controlType:o(()=>rc.ControlType.SmartFilterBar,"controlType")},Tu={path:o((e,t,n)=>`${Ue(e)}${rc.DATESETTINGSPATH}/fields/${n}`,"path")},G0={...Tu,import:O8,export:W0},Cm=class Cm{};o(Cm,"DefaultDateRange"),h([y({manifest:Tu}),C({since:"1.90.0"})],Cm.prototype,"operation",2);var kb=Cm,es=class es{};o(es,"SelectionFieldDateSettings"),h([y({manifest:G0}),C({since:"1.77.0"})],es.prototype,"selectedValues",2),h([y({manifest:Tu}),C({since:"1.77.0"})],es.prototype,"exclude",2),h([y({manifest:Tu}),C({since:"1.77.0"})],es.prototype,"customDateRangeImplementation",2),h([y({manifest:G0}),C({since:"1.77.0"})],es.prototype,"filter",2),h([y({manifest:Tu}),C({since:"1.90.0"})],es.prototype,"defaultValue",2);var Ub=es,Gb=class Gb{};o(Gb,"SelectionFields");var jb=Gb,co=class co{};o(co,"CommonFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"})],co.prototype,"smartVariantManagement",2),h([y({flex:Pm}),C({since:"1.40.0"})],co.prototype,"liveMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],co.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.52.0"})],co.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:Hb}}),C({since:"1.77.0"})],co.prototype,"dateSettings",2),h([y({flex:Pm}),C({since:"1.28.0"})],co.prototype,"showClearOnFB",2),h([y({flex:Pm}),C({since:"1.38.0"})],co.prototype,"showFilterConfiguration",2),h([y({flex:Pm}),C({since:"1.28.0"})],co.prototype,"showRestoreOnFB",2);var Eu=co,bu=class bu extends Eu{};o(bu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}})],bu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],bu.prototype,"filterDefaultsFromSelectionVariant",2);var $b=bu,xm=class xm extends Eu{};o(xm,"ListReportFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],xm.prototype,"annotationPath",2);var Bb=xm;var Xb=ne(le());var N8=o((e,t,n,i,r)=>{if(i()===Xb.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Yt(e,t)},"getFormActionButtonId"),Vo={controlId:N8,controlType:o(()=>Xb.ControlType.Button,"controlType")},ts=class ts{};o(ts,"FormAction"),h([y({flex:Vo,generate:mt})],ts.prototype,"visible",2),h([y({flex:Vo})],ts.prototype,"tooltip",2),h([y({flex:Vo})],ts.prototype,"icon",2),h([y({flex:Vo})],ts.prototype,"activeIcon",2),h([y({flex:Vo})],ts.prototype,"type",2);var Wb=ts,ns=class ns{};o(ns,"FieldForAction"),h([y({flex:Vo,generate:mt})],ns.prototype,"visible",2),h([y({flex:Vo})],ns.prototype,"tooltip",2),h([y({flex:Vo})],ns.prototype,"icon",2),h([y({flex:Vo})],ns.prototype,"activeIcon",2),h([y({flex:Vo}),C({since:"1.73.0"})],ns.prototype,"type",2);var Kb=ns;var Et=ne(le()),lo=ne(Qs());var zb=require("path"),X8=ne(le()),r1=ne(i1()),o1=require("fs");var Q8=(0,zb.join)(__dirname,"templates");var q8=o((e,t)=>{let n=(0,o1.readFileSync)(e,"utf8");return(0,r1.render)(n,t)},"renderTemplate");var Jb=o((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 q8((0,zb.join)(Q8,t+".xml"),n)},"getSingleColumnContent"),Zb=o((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=Jb(i,t);n=n+`
|
|
288
|
+
}`;var Ze=IO(function(){return St(x,Ne+"return "+ee).apply(e,L)});if(Ze.source=ee,fT(Ze))throw Ze;return Ze}o(Q4,"template");function q4(c){return Ot(c).toLowerCase()}o(q4,"toLower");function Y4(c){return Ot(c).toUpperCase()}o(Y4,"toUpper");function z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return wx(c);if(!c||!(f=fr(f)))return c;var T=Jr(c),E=Jr(f),x=Mx(T,E),L=kx(T,E)+1;return ja(T,x,L).join("")}o(z4,"trim");function J4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,jx(c)+1);if(!c||!(f=fr(f)))return c;var T=Jr(c),E=kx(T,Jr(f))+1;return ja(T,0,E).join("")}o(J4,"trimEnd");function Z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(fv,"");if(!c||!(f=fr(f)))return c;var T=Jr(c),E=Mx(T,Jr(f));return ja(T,E).join("")}o(Z4,"trimStart");function eB(c,f){var d=D,T=ut;if(hn(f)){var E="separator"in f?f.separator:E;d="length"in f?Je(f.length):d,T="omission"in f?fr(f.omission):T}c=Ot(c);var x=c.length;if(Gc(c)){var L=Jr(c);x=L.length}if(d>=x)return c;var R=d-Wc(T);if(R<1)return T;var M=L?ja(L,0,R).join(""):c.slice(0,R);if(E===e)return M+T;if(L&&(R+=M.length-R),uT(E)){if(c.slice(R).search(E)){var z,J=M;for(E.global||(E=Iv(E.source,Ot(rx.exec(E))+"g")),E.lastIndex=0;z=E.exec(J);)var ee=z.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(fr(E),R)!=R){var me=M.lastIndexOf(E);me>-1&&(M=M.slice(0,me))}return M+T}o(eB,"truncate");function tB(c){return c=Ot(c),c&&Ce.test(c)?c.replace(he,N2):c}o(tB,"unescape");var nB=zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),gT=OI("toUpperCase");function xO(c,f,d){return c=Ot(c),f=d?e:f,f===e?P2(c)?F2(c):g2(c):c.match(f)||[]}o(xO,"words");var IO=nt(function(c,f){try{return cr(c,e,f)}catch(d){return fT(d)?d:new We(d)}}),iB=ta(function(c,f){return Rr(f,function(d){d=Co(d),Zo(c,d,cT(c[d],c))}),c});function rB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(T){if(typeof T[1]!="function")throw new Fr(r);return[d(T[0]),T[1]]}):[],nt(function(T){for(var E=-1;++E<f;){var x=c[E];if(cr(x[0],this,T))return cr(x[1],this,T)}})}o(rB,"cond");function oB(c){return Nk(_r(c,p))}o(oB,"conforms");function mT(c){return function(){return c}}o(mT,"constant");function aB(c,f){return c==null||c!==c?f:c}o(aB,"defaultTo");var sB=LI(),cB=LI(!0);function Qi(c){return c}o(Qi,"identity");function hT(c){return aI(typeof c=="function"?c:_r(c,p))}o(hT,"iteratee");function lB(c){return cI(_r(c,p))}o(lB,"matches");function fB(c,f){return lI(c,_r(f,p))}o(fB,"matchesProperty");var uB=nt(function(c,f){return function(d){return Hf(d,c,f)}}),pB=nt(function(c,f){return function(d){return Hf(c,d,f)}});function yT(c,f,d){var T=Qn(f),E=jd(f,T);d==null&&!(hn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=jd(f,Qn(f)));var x=!(hn(d)&&"chain"in d)||!!d.chain,L=ia(c);return Rr(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var z=this.__chain__;if(x||z){var J=c(this.__wrapped__),ee=J.__actions__=Wi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Da([this.value()],arguments))})}),c}o(yT,"mixin");function dB(){return Xn._===this&&(Xn._=k2),this}o(dB,"noConflict");function vT(){}o(vT,"noop");function gB(c){return c=Je(c),nt(function(f){return fI(f,c)})}o(gB,"nthArg");var mB=qv(fn),hB=qv(Rx),yB=qv(bv);function OO(c){return nT(c)?Ev(Co(c)):Kk(c)}o(OO,"property");function vB(c){return function(f){return c==null?e:Bs(c,f)}}o(vB,"propertyOf");var TB=FI(),bB=FI(!0);function TT(){return[]}o(TT,"stubArray");function bT(){return!1}o(bT,"stubFalse");function EB(){return{}}o(EB,"stubObject");function AB(){return""}o(AB,"stubString");function SB(){return!0}o(SB,"stubTrue");function PB(c,f){if(c=Je(c),c<1||c>Re)return[];var d=Mt,T=vi(c,Mt);f=Ve(f),c-=Mt;for(var E=Pv(T,f);++d<c;)f(d);return E}o(PB,"times");function CB(c){return Xe(c)?fn(c,Co):ur(c)?[c]:Wi(QI(Ot(c)))}o(CB,"toPath");function xB(c){var f=++w2;return Ot(c)+f}o(xB,"uniqueId");var IB=Kd(function(c,f){return c+f},0),OB=Yv("ceil"),NB=Kd(function(c,f){return c/f},1),LB=Yv("floor");function RB(c){return c&&c.length?Ud(c,Qi,Vv):e}o(RB,"max");function FB(c,f){return c&&c.length?Ud(c,Ve(f,2),Vv):e}o(FB,"maxBy");function DB(c){return _x(c,Qi)}o(DB,"mean");function _B(c,f){return _x(c,Ve(f,2))}o(_B,"meanBy");function VB(c){return c&&c.length?Ud(c,Qi,Uv):e}o(VB,"min");function wB(c,f){return c&&c.length?Ud(c,Ve(f,2),Uv):e}o(wB,"minBy");var MB=Kd(function(c,f){return c*f},1),kB=Yv("round"),UB=Kd(function(c,f){return c-f},0);function jB(c){return c&&c.length?Sv(c,Qi):0}o(jB,"sum");function $B(c,f){return c&&c.length?Sv(c,Ve(f,2)):0}return o($B,"sumBy"),P.after=c$,P.ary=oO,P.assign=q$,P.assignIn=TO,P.assignInWith=og,P.assignWith=Y$,P.at=z$,P.before=aO,P.bind=cT,P.bindAll=iB,P.bindKey=sO,P.castArray=b$,P.chain=nO,P.chunk=NU,P.compact=LU,P.concat=RU,P.cond=rB,P.conforms=oB,P.constant=mT,P.countBy=Uj,P.create=J$,P.curry=cO,P.curryRight=lO,P.debounce=fO,P.defaults=Z$,P.defaultsDeep=e4,P.defer=l$,P.delay=f$,P.difference=FU,P.differenceBy=DU,P.differenceWith=_U,P.drop=VU,P.dropRight=wU,P.dropRightWhile=MU,P.dropWhile=kU,P.fill=UU,P.filter=$j,P.flatMap=Gj,P.flatMapDeep=Wj,P.flatMapDepth=Kj,P.flatten=JI,P.flattenDeep=jU,P.flattenDepth=$U,P.flip=u$,P.flow=sB,P.flowRight=cB,P.fromPairs=BU,P.functions=s4,P.functionsIn=c4,P.groupBy=Xj,P.initial=GU,P.intersection=WU,P.intersectionBy=KU,P.intersectionWith=XU,P.invert=f4,P.invertBy=u4,P.invokeMap=qj,P.iteratee=hT,P.keyBy=Yj,P.keys=Qn,P.keysIn=Xi,P.map=Zd,P.mapKeys=d4,P.mapValues=g4,P.matches=lB,P.matchesProperty=fB,P.memoize=tg,P.merge=m4,P.mergeWith=bO,P.method=uB,P.methodOf=pB,P.mixin=yT,P.negate=ng,P.nthArg=gB,P.omit=h4,P.omitBy=y4,P.once=p$,P.orderBy=zj,P.over=mB,P.overArgs=d$,P.overEvery=hB,P.overSome=yB,P.partial=lT,P.partialRight=uO,P.partition=Jj,P.pick=T4,P.pickBy=EO,P.property=OO,P.propertyOf=vB,P.pull=zU,P.pullAll=eO,P.pullAllBy=JU,P.pullAllWith=ZU,P.pullAt=ej,P.range=TB,P.rangeRight=bB,P.rearg=g$,P.reject=t$,P.remove=tj,P.rest=m$,P.reverse=aT,P.sampleSize=i$,P.set=E4,P.setWith=A4,P.shuffle=r$,P.slice=nj,P.sortBy=s$,P.sortedUniq=lj,P.sortedUniqBy=fj,P.split=W4,P.spread=h$,P.tail=uj,P.take=pj,P.takeRight=dj,P.takeRightWhile=gj,P.takeWhile=mj,P.tap=Lj,P.throttle=y$,P.thru=Jd,P.toArray=hO,P.toPairs=AO,P.toPairsIn=SO,P.toPath=CB,P.toPlainObject=vO,P.transform=S4,P.unary=v$,P.union=hj,P.unionBy=yj,P.unionWith=vj,P.uniq=Tj,P.uniqBy=bj,P.uniqWith=Ej,P.unset=P4,P.unzip=sT,P.unzipWith=tO,P.update=C4,P.updateWith=x4,P.values=el,P.valuesIn=I4,P.without=Aj,P.words=xO,P.wrap=T$,P.xor=Sj,P.xorBy=Pj,P.xorWith=Cj,P.zip=xj,P.zipObject=Ij,P.zipObjectDeep=Oj,P.zipWith=Nj,P.entries=AO,P.entriesIn=SO,P.extend=TO,P.extendWith=og,yT(P,P),P.add=IB,P.attempt=IO,P.camelCase=R4,P.capitalize=PO,P.ceil=OB,P.clamp=O4,P.clone=E$,P.cloneDeep=S$,P.cloneDeepWith=P$,P.cloneWith=A$,P.conformsTo=C$,P.deburr=CO,P.defaultTo=aB,P.divide=NB,P.endsWith=F4,P.eq=eo,P.escape=D4,P.escapeRegExp=_4,P.every=jj,P.find=Bj,P.findIndex=YI,P.findKey=t4,P.findLast=Hj,P.findLastIndex=zI,P.findLastKey=n4,P.floor=LB,P.forEach=iO,P.forEachRight=rO,P.forIn=i4,P.forInRight=r4,P.forOwn=o4,P.forOwnRight=a4,P.get=pT,P.gt=x$,P.gte=I$,P.has=l4,P.hasIn=dT,P.head=ZI,P.identity=Qi,P.includes=Qj,P.indexOf=HU,P.inRange=N4,P.invoke=p4,P.isArguments=Ws,P.isArray=Xe,P.isArrayBuffer=O$,P.isArrayLike=Ki,P.isArrayLikeObject=In,P.isBoolean=N$,P.isBuffer=$a,P.isDate=L$,P.isElement=R$,P.isEmpty=F$,P.isEqual=D$,P.isEqualWith=_$,P.isError=fT,P.isFinite=V$,P.isFunction=ia,P.isInteger=pO,P.isLength=ig,P.isMap=dO,P.isMatch=w$,P.isMatchWith=M$,P.isNaN=k$,P.isNative=U$,P.isNil=$$,P.isNull=j$,P.isNumber=gO,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=qf,P.isRegExp=uT,P.isSafeInteger=B$,P.isSet=mO,P.isString=rg,P.isSymbol=ur,P.isTypedArray=Zc,P.isUndefined=H$,P.isWeakMap=G$,P.isWeakSet=W$,P.join=QU,P.kebabCase=V4,P.last=wr,P.lastIndexOf=qU,P.lowerCase=w4,P.lowerFirst=M4,P.lt=K$,P.lte=X$,P.max=RB,P.maxBy=FB,P.mean=DB,P.meanBy=_B,P.min=VB,P.minBy=wB,P.stubArray=TT,P.stubFalse=bT,P.stubObject=EB,P.stubString=AB,P.stubTrue=SB,P.multiply=MB,P.nth=YU,P.noConflict=dB,P.noop=vT,P.now=eg,P.pad=k4,P.padEnd=U4,P.padStart=j4,P.parseInt=$4,P.random=L4,P.reduce=Zj,P.reduceRight=e$,P.repeat=B4,P.replace=H4,P.result=b4,P.round=kB,P.runInContext=w,P.sample=n$,P.size=o$,P.snakeCase=G4,P.some=a$,P.sortedIndex=ij,P.sortedIndexBy=rj,P.sortedIndexOf=oj,P.sortedLastIndex=aj,P.sortedLastIndexBy=sj,P.sortedLastIndexOf=cj,P.startCase=K4,P.startsWith=X4,P.subtract=UB,P.sum=jB,P.sumBy=$B,P.template=Q4,P.times=PB,P.toFinite=ra,P.toInteger=Je,P.toLength=yO,P.toLower=q4,P.toNumber=Mr,P.toSafeInteger=Q$,P.toString=Ot,P.toUpper=Y4,P.trim=z4,P.trimEnd=J4,P.trimStart=Z4,P.truncate=eB,P.unescape=tB,P.uniqueId=xB,P.upperCase=nB,P.upperFirst=gT,P.each=iO,P.eachRight=rO,P.first=ZI,yT(P,function(){var c={};return So(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Rr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:jn(Je(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=vi(d,T.__takeCount__):T.__views__.push({size:vi(d,Mt),type:c+(T.__dir__<0?"Right":"")}),T},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Rr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==an||d==en;pt.prototype[c]=function(E){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(E,3),type:d}),x.__filtered__=x.__filtered__||T,x}}),Rr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Rr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Qi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Hf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ng(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Mt)},So(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),E=P[T?"take"+(f=="last"?"Right":""):f],x=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=T?[1]:arguments,M=L instanceof pt,z=R[0],J=M||Xe(L),ee=o(function(st){var gt=E.apply(P,Da([st],R));return T&&me?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(M=J=!1);var me=this.__chain__,Ne=!!this.__actions__.length,Me=x&&!me,Ze=M&&!Ne;if(!x&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:Jd,args:[ee],thisArg:e}),new Dr(ke,me)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?T?ke.value()[0]:ke.value():ke)})}),Rr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Pd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(T&&!this.__chain__){var x=this.value();return f.apply(Xe(x)?x:[],E)}return this[d](function(L){return f.apply(Xe(L)?L:[],E)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Ft.call(Qc,T)||(Qc[T]=[]),Qc[T].push({name:f,func:d})}}),Qc[Wd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=ek,pt.prototype.reverse=tk,pt.prototype.value=nk,P.prototype.at=Rj,P.prototype.chain=Fj,P.prototype.commit=Dj,P.prototype.next=_j,P.prototype.plant=wj,P.prototype.reverse=Mj,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=kj,P.prototype.first=P.prototype.head,wf&&(P.prototype[wf]=Vj),P},"runInContext"),Va=D2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Va,define(function(){return Va})):Ms?((Ms.exports=Va)._=Va,hv._=Va):Xn._=Va}).call(ef)});var gV=Ye((wce,dV)=>{var{findIndex:l6}=Cp();function f6(e,t){let i=l6(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(f6,"findNextTextualToken");dV.exports={findNextTextualToken:f6}});var yV=Ye((kce,hV)=>{var mV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function u6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(mV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(u6,"isXMLNamespaceKey");function p6(e){if(typeof e!="string")return;let t=e.match(mV);if(t!==null)return t.groups&&t.groups.prefix||""}o(p6,"getXMLNamespaceKeyPrefix");hV.exports={isXMLNamespaceKey:u6,getXMLNamespaceKeyPrefix:p6}});var TV=Ye((jce,vV)=>{var{findNextTextualToken:d6}=gV(),{isXMLNamespaceKey:g6,getXMLNamespaceKeyPrefix:m6}=yV();vV.exports={findNextTextualToken:d6,isXMLNamespaceKey:g6,getXMLNamespaceKeyPrefix:m6}});var AS=Ye(($ce,EV)=>{var{reduce:h6,has:bV,isArray:y6}=Cp();function v6(e){return h6(e,(n,i,r)=>(r==="parent"||(bV(i,"type")?n.push(i):y6(i)&&i.length>0&&bV(i[0],"type")&&(n=n.concat(i))),n),[])}o(v6,"getAstChildrenReflective");EV.exports={getAstChildrenReflective:v6}});var SS=Ye((Hce,AV)=>{AV.exports={DEFAULT_NS:"::DEFAULT"}});var LV=Ye((Gce,NV)=>{var{BaseXmlCstVisitor:T6}=ES(),{last:b6,forEach:xV,reduce:E6,map:xp,pick:CS,sortBy:A6,isEmpty:S6,isArray:IV,assign:P6}=Cp(),{findNextTextualToken:C6,isXMLNamespaceKey:x6,getXMLNamespaceKeyPrefix:I6}=TV(),{getAstChildrenReflective:O6}=AS(),{DEFAULT_NS:N6}=SS();function L6(e,t){SV.setState({tokenVector:t});let n=SV.visit(e);return n.rootElement!==Fc&&OV(n.rootElement),n}o(L6,"buildAst");var xS=class xS extends T6{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&&S6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Sy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=xp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Sy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=xp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=xp(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=xp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return D6(i,t),_6(i,t),V6(i,t,this.tokenVector),Sy(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 a=t.Name[0];r.key=a.image,r.syntax.key=Py(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=R6(a.image),r.syntax.value=Py(a)}return Sy(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 a=A6(r,["startOffset"]),s=xp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(xS,"CstToAstVisitor");var PS=xS,SV=new PS;function Sy(e){let t=O6(e);xV(t,n=>n.parent=e)}o(Sy,"setChildrenParent");function OV(e,t=[]){let n=E6(e.attributes,(r,a)=>{if(a.key!==Fc&&x6({key:a.key,includeEmptyPrefix:!1})===!0){let s=I6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[N6]=l}}return r},{}),i=Object.create(null);e.namespaces=P6(i,t,n),xV(e.subElements,r=>OV(r,e.namespaces))}o(OV,"updateNamespaces");function Py(e){return CS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Py,"toXMLToken");function PV(e){return CS(e,["startOffset","startLine","startColumn"])}o(PV,"startOfXMLToken");function CV(e){return CS(e,["endOffset","endLine","endColumn"])}o(CV,"endOfXMLToken");function xa(e){return IV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(xa,"exists");function R6(e){return e.substring(1,e.length-1)}o(R6,"stripQuotes");function F6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(F6,"nsToParts");var Fc=null;function D6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Py(n);let i=F6(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=Py(t.END_NAME[0]))}o(D6,"handleElementOpenCloseNameRanges");function _6(e,t){if(xa(t.OPEN)){let n;xa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):xa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...PV(t.OPEN[0]),...CV(n)}),xa(t.SLASH_OPEN)&&xa(t.END)&&(e.syntax.closeBody={...PV(t.SLASH_OPEN[0]),...CV(t.END[0])})}}o(_6,"handleElementOpenCloseBodyRanges");function V6(e,t,n){if(xa(t.Name)){let i=t.Name[0].endOffset+2;if(xa(t.START_CLOSE)||xa(t.SLASH_CLOSE)){let r=(xa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=IV(t.attribute)?b6(t.attribute).location.endOffset:t.Name[0].endOffset,s=C6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(V6,"handleElementAttributeRanges");NV.exports={buildAst:L6}});var DV=Ye((Kce,FV)=>{var{forEach:w6,isFunction:tf}=Cp(),{getAstChildrenReflective:M6}=AS();function RV(e,t){switch(e.type){case"XMLDocument":{tf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{tf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{tf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{tf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{tf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{tf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=M6(e);w6(n,i=>{RV(i,t)})}o(RV,"accept");FV.exports={accept:RV}});var VV=Ye((Qce,_V)=>{var{buildAst:k6}=LV(),{accept:U6}=DV(),{DEFAULT_NS:j6}=SS();_V.exports={buildAst:k6,accept:U6,DEFAULT_NS:j6}});var wi={};Ks(wi,{deleteConfigEntityByPath:()=>oz,exportConfig:()=>iz,exportConfigEntityByPath:()=>rz,generateCustomExtension:()=>JC,generateSchema:()=>nz,getApiVersion:()=>lz,getChanges:()=>hM,getGenericSchema:()=>rv,getPathToGenericSchema:()=>Nw,getProject:()=>gz,importConfig:()=>az,importProject:()=>sz,importProjectSchema:()=>cz,isDirectory:()=>uz,log:()=>se,prompts:()=>tz,readDirectory:()=>ix});module.exports=sg(wi);var de=ie(le());var G=ie(le());var Be=o(e=>typeof e=="string","isString"),Yf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),uR=o(e=>e==null?"":""+e,"makeString"),A5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),S5=/###/g,pR=o(e=>e&&e.indexOf("###")>-1?e.replace(S5,"."):e,"cleanKey"),dR=o(e=>!e||Be(e),"canNotTraverseDeeper"),zf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(dR(e))return{};let a=pR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return dR(e)?{}:{obj:e,k:pR(i[r])}},"getLastOfPath"),gR=o((e,t,n)=>{let{obj:i,k:r}=zf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=zf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=zf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),P5=o((e,t,n,i)=>{let{obj:r,k:a}=zf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),lg=o((e,t)=>{let{obj:n,k:i}=zf(e,t);if(n)return n[i]},"getPath"),C5=o((e,t,n)=>{let i=lg(e,n);return i!==void 0?i:lg(t,n)},"getPathWithDefaults"),bR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):bR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),nl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),x5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},I5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>x5[t]):e,"escape"),wT=class wT{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}};o(wT,"RegExpCache");var NT=wT,O5=[" ",",","?","!",";"],N5=new NT(20),L5=o((e,t,n)=>{t=t||"",n=n||"";let i=O5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=N5.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),LT=o(function(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 a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),fg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),R5={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)}},Jf=class Jf{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||R5,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:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Jf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Jf(this.logger,t)}};o(Jf,"Logger");var RT=Jf,xo=new RT,MT=class MT{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])})}};o(MT,"EventEmitter");var rl=MT,kT=class kT 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]:{},a=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):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=lg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:LT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.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),gR(this.data,l,r),a.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 a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){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=lg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?bR(u,i,a):u={...u,...i},gR(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}};o(kT,"ResourceStore");var ug=kT,ER={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},mR={},mg=class mg extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),A5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xo.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,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!L5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}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,a=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 ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${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,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,j=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(K&&v&&j&&F.indexOf(O)<0&&!(Be(U)&&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 ae=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=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(v),Z=ae?[]:{},re=ae?b:A;for(let Pe in v)if(Object.prototype.hasOwnProperty.call(v,Pe)){let D=`${re}${a}${Pe}`;Z[Pe]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Pe]===D&&(Z[Pe]=v[Pe])}v=Z}}else if(K&&Be(U)&&Array.isArray(v))v=v.join(U),v&&(v=this.extendTranslation(v,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Pe=mg.hasDefaultValue(n),D=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Pe&&(ae=!0,v=je),this.isValidLookup(v)||(Z=!0,v=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,en=Pe&&je!==v&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?je:v),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.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 Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Oi=o((It,Mt,sn)=>{let Hi=Pe&&sn!==v?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,Hi,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,Hi,en,n),this.emit("missingKey",It,u,Mt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Oi([It],s+sn,n[`defaultValue${sn}`]||je)})}):Oi(Lt,s,je))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?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,a){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=Be(t)&&(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&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,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=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),b=0;b<v;b++)A[b]=arguments[b];return a&&a[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=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=ER.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,a,s,l;return Be(t)&&(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&&!Be(n.count),A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!mR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(mR[`${O[0]}-${F}`]=!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 K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,U,F,n);else{let ae;v&&(ae=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(K.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(g+ae.replace(re,this.options.pluralSeparator)),A&&K.push(g+Z)),b){let Pe=`${g}${this.options.contextSeparator}${n.context}`;K.push(Pe),v&&(K.push(Pe+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(Pe+ae.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let j;for(;j=K.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(U,F,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,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&&!Be(t.replace),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 a of n)delete r[a]}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}};o(mg,"Translator");var pg=mg,IT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),UT=class UT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xo.create("languageUtils")}getScriptPartFromCode(t){if(t=fg(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=fg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}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]=IT(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]=IT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=IT(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(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(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=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(UT,"LanguageUtil");var dg=UT,F5=[{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}],D5={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},_5=["v1","v2","v3"],V5=["v4"],hR={zero:0,one:1,two:2,few:3,many:4,other:5},w5=o(()=>{let e={};return F5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:D5[t.fc]}})}),e},"createRules"),jT=class jT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xo.create("pluralResolver"),(!this.options.compatibilityJSON||V5.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=w5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=fg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}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,a)=>hR[r]-hR[a]).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 a=o(()=>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()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!_5.includes(this.options.compatibilityJSON)}};o(jT,"PluralResolver");var FT=jT,yR=o(function(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,a=C5(e,t,n);return!a&&r&&Be(n)&&(a=LT(e,n,i),a===void 0&&(a=LT(t,n,i))),a},"deepFindWithDefaults"),OT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$T=class $T{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.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:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:U,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:I5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?nl(a):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=b?nl(b):O||nl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=U||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((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 a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let U=yR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,i,{...r,...n,interpolationkey:A}):U}let b=A.split(this.formatSeparator),O=b.shift().trim(),F=b.join(this.formatSeparator).trim();return this.format(yR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>OT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?OT(this.escape(A)):OT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=Be(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=uR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((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),b=v.match(/"/g);(A&&A.length%2===0&&!b||b.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},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?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(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=uR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($T,"Interpolator");var DT=$T,M5=o(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}},"parseFormatStr"),il=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(fg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),BT=class BT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.create("formatter"),this.options=t,this.formats={number:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:il((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:il((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:il((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.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]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=M5(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)}};o(BT,"Formatter");var _T=BT,k5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),HT=class HT 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=xo.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 a={},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),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{P5(u.loaded,[a],s),k5(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,a=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:a,callback:s});return}this.readingCalls++;let l=o((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,a*2,s)},a);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();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.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],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){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:a},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)}}};o(HT,"Connector");var VT=HT,vR=o(()=>({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:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),TR=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),cg=o(()=>{},"noop"),U5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Zf=class Zf 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=TR(t),this.services={},this.logger=xo,this.modules={external:[]},U5(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&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=vR();this.options={...r,...this.options,...TR(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);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?xo.init(a(this.modules.logger),this.options):xo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=_T);let m=new dg(this.options);this.store=new ug(this.options.resources,this.options);let v=this.services;v.logger=xo,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new FT(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=a(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new DT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new VT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),F=1;F<b;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.languageDetector&&(v.languageDetector=a(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=a(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new pg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),F=1;F<b;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=cg),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=Yf(),p=o(()=>{let g=o((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]:cg,r=Be(t)?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 a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.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(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Yf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=cg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),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"&&ER.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=Yf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(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=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(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 a=o(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||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(b=>`${u.keyPrefix}${v}${b}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}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,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||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(a,t)))}loadNamespaces(t,n){let i=Yf();return this.options.ns?(Be(t)&&(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=Yf();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),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 dg(vR());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 Zf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Zf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ug(this.store.data,r),a.services.resourceStore=a.store),a.translator=new pg(a.services,r),a.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];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Zf,"I18n");var gg=Zf,q=gg.createInstance();q.createInstance=gg.createInstance;var Cz=q.createInstance,xz=q.dir,Iz=q.init,Oz=q.loadResources,Nz=q.reloadResources,Lz=q.use,Rz=q.changeLanguage,Fz=q.getFixedT,Dz=q.t,_z=q.exists,Vz=q.setDefaultNamespace,wz=q.hasLoadedNamespace,Mz=q.loadNamespaces,kz=q.loadLanguages;var wF=ie(GT()),MF=ie(QR()),wg=ie(_F()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),ru=require("@sap-ux/vocabularies-types/vocabularies/Communication");var _g=ie(le());var se=o((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(`${_g.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",TW=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],bW=["sap.fe.core","sap.fe.templates"],fl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),mr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,wg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:G.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,wg.merge)(...n);i=(0,MF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var ll=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function lb(e,t,n){var i,r,a,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=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(lb,"evaluateCommonLabel");function Mg(e,t){let n=e.value;return e.$target&&(n=lb(e.$target.annotations,t,n)),n}o(Mg,"getLabelForPropertyPath");function Vg(e,t){var r,a;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)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=lb(i.annotations,t,n)),n}o(Vg,"getLabelForDataField");function EW(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 a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return lb(a.annotations,t,s)}}}else return}o(EW,"getLabel");function VF(e,t,n){let i=Vg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(VF,"getTitleForDataField");function Si(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=EW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=VF(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Vg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Vg(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 Ke.UIAnnotationTypes.DataFieldForAction:case Ke.UIAnnotationTypes.DataFieldWithAction:case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Vg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=VF(r,t,g);break;default:break}return n}catch{return n}}o(Si,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function fa(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(fa,"getPageTypeV2");function fb(e){if(e.name&&e.name!==G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${G.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return G.PageTypeV4.CustomPage}}o(fb,"getPageTypeV4");function AW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(AW,"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}o(ri,"findAlias");function SW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(SW,"getAnnotationFromMetaPath");function PW(e,t,n){var s,l;let i=e[e.length-1],r=SW(i),a=ri(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(PW,"determineTargetAnnotation");function CW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ke.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(CW,"adjustKey");function xW(e,t,n,i,r=G.FioriElementsVersion.v2,a=!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=CW(t,u,a);let g=PW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=AW(g,a).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===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(xW,"getKeyAndEntityTypeOfReferenceFacet");function kF(e,t,n,i,r=G.FioriElementsVersion.v2,a=!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!==Ke.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ll(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:F,namespace:U}=xW(n,l,p,A,r,a);if(F)return;l=b,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}}o(kF,"getSectionFacet");function IW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(IW,"getDecodedPathElement");var ub=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),UF=o((e,t,n,i,r,a=!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=IW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=ub(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Lo=o((e,t,n,i,r=!1)=>UF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),jF=o((e,t,n,i,r)=>{UF(e,t,i,r,n)},"setManifestSectionByPathV4");function pb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ke.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ll(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:i=ll(e.Value),n=ll(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(pb,"getSchemaKeyOfLineItemRecord");function OW(e,t,n){return e.includes(Ke.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ke.UIAnnotationTerms.Chart:e.includes(Ke.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ke.UIAnnotationTerms.Identification:n&&e.includes(Ke.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ke.UIAnnotationTerms.LineItem:e.includes(Ke.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ke.UIAnnotationTerms.FieldGroup:e.includes(Ke.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ke.UIAnnotationTerms.DataPoint:e.includes(Ke.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ke.UIAnnotationTerms.PresentationVariant:e.includes(Ke.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?Ke.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(OW,"getUIAnnotationTerm");function NW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?ru.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?ru.CommunicationAnnotationTerms.Address:void 0}o(NW,"getCommunicationAnnotationTerm");function LW(e,t,n){return OW(e,t,n)||NW(e,t)}o(LW,"getAnnotationTerm");function RW(e,t,n,i,r){var p,g,m,v,A,b,O,F,U,K;let a=ri(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(LW(s,a,i)){case Ke.UIAnnotationTerms.Chart:{n[s]={base:G.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 Ke.UIAnnotationTerms.Identification:{n[s]={base:G.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 Ke.UIAnnotationTerms.LineItem:{if(!s.includes(Ke.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:G.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 Ke.UIAnnotationTerms.FieldGroup:{n[s]={base:G.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 Ke.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.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 Ke.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ru.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},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}case ru.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(K=t==null?void 0:t.Target)==null?void 0:K.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(RW,"evaluateTargetAnnotation");function db(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(db,"getAnnotationPathUsingFullyQualifiedName");function gb(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=kF(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{RW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=db(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&se(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{gb(m,t,n,i,g.facets,a,s)});break}}}o(gb,"addFacetToConfig");function kg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ri(G.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{gb(m,t,g,e,r,n,i)})}return r}o(kg,"getObjectPageHeaderFacets");function Ug(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ri(G.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{gb(g,t,p,e,r,n,i)})}return r}o(Ug,"getObjectPageFacets");function mb(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>TW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>bW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(mb,"getFEVersionFromManifest");function FW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(FW,"getMainService");function $F(e){var i,r;let t=FW(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o($F,"getODataVersionFromManifest");function DW(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){se(t,{severity:G.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(fa((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(fa((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(DW,"determineV2Template");function ou(e){var i,r,a,s;let t,n=fb(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(ou,"determineV4PageTemplateType");function _W(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}o(_W,"determineV4TemplateFromPages");function VW(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:G.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=_W(n);return i||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(VW,"determineV4Template");function hb(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=DW(e,n):t===G.FioriElementsVersion.v4&&(i=VW(e,n)),i}o(hb,"getTemplateTypeFromManifest");function Ha(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ha,"addSectionTitleAndDescription");function ul(e,t,n){var i,r;Ha(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))}o(ul,"addTargetTitleAndSectionDescription");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,ul(t,i,n),i}o(Ro,"createDefaultSection");function BF(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ri(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==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=kF(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(BF,"getObjectPageFacetSection");var Ga=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!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(),Ga(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),cb=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:cb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:cb(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=cb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function jg(e,t,n,i){if(e===G.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(jg,"generatePageId");function yb(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 a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(yb,"findMatchingKeysByAdditionalProperties");function wW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=yb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(wW,"fillArrayFromAnyOfReference");function MW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{wW(r,n,t,i)}),i.length===0))return;return i}o(MW,"fillArrayFromPropertyDefinition");function kW(e,t,n,i,r,a,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=Fo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let b=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,b,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}o(kW,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,a,s),l;let u=MW(i,n,e);if(u)return l=kW(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var vb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,wF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function $g(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o($g,"convertEnumToCSV");function Yi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Yi,"convertActionKeyToStableId");function yn(e){return e==null?void 0:e.split($)[1]}o(yn,"getDefinitionKey");function HF(e){return`#/definitions/${e}`}o(HF,"getDefinitionsRef");function Bg(e){return e instanceof Error?e.message:String(e)}o(Bg,"getErrorMessage");function Ys(e,t){return e==null?void 0:e.includes(t)}o(Ys,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Hg(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}o(Hg,"getJSONPropertyByPath");function GF(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(GF,"removeNamespaces");function pl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(pl,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var zi=ie(le());var Yt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Gg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=zi.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 UW(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(UW,"escapeId");var WF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(WF||{}),KF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(KF||{});function jW(e,t,n){let i;return e=e.map(function(r){if(r===zi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===zi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(jW,"mapBreadcrumbs");var Tb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=jW(t,s,r)),s[0]===zi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH):t[0]===zi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),UW(p)},"buildColumnControlId"),Ji=o(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 $W(e){let t=zi.BINDINGPROPERTYREGEXSTRING;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}o($W,"determinePattern");var bb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,u=a.description?a.description:l.description,p=$W(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 a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{bb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(WF);bb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),oi=o((e,t,n)=>{let i=Object.values(KF);bb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}o(zs,"doNotDelete");var DJ=ie(QF());var qF=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(qF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(qF,e,t)),n}o(zn,"getReflectMetadata");var Ur=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),YF=Symbol("childId"),Ut=o(e=>Reflect.metadata(YF,e),"childId"),Wg=o((e,t)=>Reflect.getMetadata(YF,e,t),"getChildId"),Kg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),BW=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(BW,e),"descriptionSrcURL");var HW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(HW,e),"validity");function Xg(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}o(Xg,"getTextForDeprecated");var r0=ie(n0()),o0=ie(le());var a0=r0.default.change,i0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function s0(e,t){let n="";try{for(let i in i0)e[i]===void 0&&(e[i]=i0[i]);n=a0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(s0,"createChangeString");function io(e){try{return a0.parse(e)}catch{return!1}}o(io,"parseChangeString");function c0(e,t,n,i,r){let a=n.layer?n.layer===o0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};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}o(c0,"fillFlexChangeContent");function l0(e,t){return s0(e,t)}o(l0,"exportToFlexChange");var Js=ie(le());function dl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(dl,"importProperty");function Qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Js.LogSeverity.Warning,message:Xg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Qg,"checkDeprecatedProperties");function Eb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return Eb(n,t)}else return e.title?e.title.startsWith(Js.FACETTITLEPREFIX)?e.title.split(Js.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Eb,"getSectionTitle");function qg(e){let t=e.split(`${Js.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(qg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var jt=require("@sap-ux/vocabularies-types/vocabularies/UI");var ua=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(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}}o(Yg,"replaceSpecialChars");var Zs=o(function(e){return Yg(GF(e))},"prepareId");function YW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(YW,"evaluateConcat");function ec(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return YW(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(ec,"getStableIdPartFromValue");var f0=o(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"),pa=o(function(e){let t="";if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=f0(e),t;if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Zs(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ec(e.Value)+"::"),t+=e.Action,Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataField)return t="DataField::",t+=ec(e.Value),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ec(e.Value)+"::",t+=f0(e),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ec(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Zs(t);if(e.$Type&&e.$Type===ua.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ec(e.Value),Zs(t)},"getStableIdPartFromDataField");var ge=ie(le());var De=ie(le());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),g0=require("path"),m0=ie(Qs());var zg="ResponsiveTableWithMultiSelect<LineItems>",Jg="ResponsiveTableWithInlineDelete<LineItems>",zW="TreeTable<LineItems>",JW="AnalyticalTable<LineItems>",ZW="GridTable<LineItems>",Ab=[zg,Jg,zW,JW,ZW],u0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],p0="template::",Zg="template:::ObjectPageAction:::";function e8(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)}o(e8,"addCustomColumnDefinition");function t8(e,t){let n;return e==="TableColumnActionIntentBased"?n=pb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(t8,"getActionId");function Sb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=t8(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Si(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=tc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),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}`)}o(Sb,"handleActionRecord");function n8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Zi.UIAnnotationTypes.DataFieldForAction||t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(n8,"getColumnActionType");function i8(e,t){let n=[];if(!(e.$Type!==Zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),n8(t,e,n),n}o(i8,"getActionType");function h0(e,t,n){let i=pb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Si(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,am(r.properties[i],e.lineItemRecord),sm(e.lineItemRecord,r.properties,i)}}o(h0,"generateGenericColumn");function r8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Sb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&Sb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Sb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":h0(i,t,r)}}o(r8,"handleAnyAction");function au(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(au,"retrieveNameWithoutVocabularyFromVisualization");function gl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=om(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=i8(g,r);v?v.forEach(A=>{r8(A,t,s,m,p,l,r)}):h0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(gl,"addLineItemsType");function o8(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.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),[])}}o(o8,"addListReportLeadingProperties");function a8(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 a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let v=[];for(let A in a){let b=(m=a[A])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}da(v,r)}}o(a8,"addTabkeyEnum");function em(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,m0.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("\\"+g0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),da(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(em,"addFragmentEnum");function ml(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){e8(e,a,s),o8(e,t,s),a8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;em(e,r,u,"fragmentName",s),em(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),em(e,r,u,"cellsFragmentName",s),em(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(ml,"addTableColumnExtensions");function y0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(y0,"removeElementsFromEnum");function tm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=mr(n==null?void 0:n.fullyQualifiedName,Zi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=ro(s);s.type==="PropertyPath"&&(l=Mg(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,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]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(tm,"addSelectionFields");function v0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(v0,"addEntityPropertiesToEnum");function nm(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)}o(nm,"isDraftEnabled");function T0(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}o(T0,"isEntityDeletable");function b0(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}o(b0,"isEntityUpdatable");function hl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(hl,"addStandardHeaderActions");function E0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(E0,"addStandardFooterActionsOP");function im(e){var i,r,a;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?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(im,"getUIAnnotationForEntitySet");function rm(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(rm,"hasPropertyTypeError");function s8(e,t,n,i){if(e===ge.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case jt.UIAnnotationTypes.DataField:case jt.UIAnnotationTypes.DataFieldForAnnotation:case jt.UIAnnotationTypes.DataFieldWithNavigationPath:case jt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ge.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case jt.UIAnnotationTypes.DataField:case jt.UIAnnotationTypes.DataFieldForAnnotation:case jt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(s8,"copyFieldProperties");function c8(e,t,n,i){let r=e===ge.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ge.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(c8,"determineFieldDefinitionName");function l8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ge.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ge.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ge.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ge.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(l8,"addKeysTagForDataField");function f8(e,t,n){if(e.$Type===jt.UIAnnotationTypes.DataField||e.$Type===jt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===jt.UIAnnotationTypes.DataFieldWithNavigationPath)l8(e,t,n);else if(e.$Type===jt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:pl(e.Target.value)}],t.definitions[n][ge.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===jt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ge.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ge.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ge.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===jt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ge.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ge.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(f8,"addKeysTagToField");function u8(e){var t,n;return e.$Type===jt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===jt.UIAnnotationTypes.ConnectedFieldsType}o(u8,"isConnectedField");function p8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===jt.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),Pb(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(p8,"addConnectedFields");function A0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(A0,"getFieldsSchemaContainer");function Pb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=pa(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=c8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===jt.UIAnnotationTypes.DataFieldForAction||n.$Type===jt.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ge.SectionType.Section){let O=A0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${$}${v}`};F[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=A0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${v}`,propertyIndex:parseInt(r)},u8(n)&&(A=p8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:Si(n,a.entityType),additionalProperties:!1},f8(n,t,v),t.definitions[v][ge.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][ge.SchemaTag.annotationType]=n.$Type,t.definitions[v][ge.SchemaTag.isViewNode]=!0,am(t.definitions[v],n),s8(s,t,n,v),n.$Type===jt.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[v].$ref=`${$}${ge.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(Pb,"addField");function d8(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}o(d8,"determineTargetIdOfForm");function g8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Pb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Pb(t,n,l,i,s,e,r)}}o(g8,"addFieldsToFormDefinition");function m8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ge.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ge.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ge.SchemaTag.annotationPath]=mr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(m8,"addTagsToFormDefinition");function cm(e,t,n,i,r,a){if(!t.target)return;let s=d8(t),l=dt(`${e}${ge.DefinitionName.Form}<${s}>`),u=dt(`${e}${ge.DefinitionName.Fields}<${s}>`),p=dt(`${e}${ge.DefinitionName.Actions}<${s}>`),g=!(t.base===ge.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ge.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][ge.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},m8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,g8(t,e,i,s,r,g),s}o(cm,"handleForm");function lm(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(lm,"replaceAlias");function fm(e,t){let n=lm(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(fm,"getActionNameAndId");function S0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ge.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:S0(a.pages,t)}}o(S0,"isFirstObjectPage");function um(e,t,n,i,r){var g,m;e.definitions[ge.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ge.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ge.DefinitionName.ObjectPageFooter}`},e.definitions[ge.DefinitionName.ObjectPageFooter].properties[ge.PropertyName.actions]={$ref:`${$}${ge.DefinitionName.FooterActions}`};let a=e.definitions[ge.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ge.SchemaTag.isViewNode]=!0;let s=ri(ge.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(`@${jt.UIAnnotationTerms.Identification}`,`/@${jt.UIAnnotationTerms.Identification}`);a[ge.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[ge.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${jt.UIAnnotationTerms.Identification}`);n===ge.FioriElementsVersion.v2&&S0(r,t)&&!nm(l)&&E0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(um,"addFooterActions");function pm(e,t,n,i,r,a=!1){var m,v;let s=ge.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ge.DefinitionName.ObjectPageHeader].properties[ge.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[ge.SchemaTag.isViewNode]=!0;let p=ri(ge.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[ge.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${jt.UIAnnotationTerms.Identification}`,`/@${jt.UIAnnotationTerms.Identification}`):t&&(u[ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${jt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&hl(e,!0,l)}o(pm,"addHeaderActions");function dm(e,t){e.properties.header={$ref:`${$}${ge.DefinitionName.ObjectPageHeader}`},e.definitions[ge.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ge.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ge.DefinitionName.ObjectPageHeader][ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${jt.UIAnnotationTerms.HeaderInfo}`)}o(dm,"addCommonHeaderSchema");function P0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(P0,"determineEntitySetOfEntityType");var hr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function da(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(da,"addEnumToSchema");function su(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.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)}}da(r,n)}o(su,"addEnumForValidAnnotations");function Wa(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];su(e,r,i)}o(Wa,"addEnumForSingleTabVariant");function C0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];su(n.entityType,r,i)}o(C0,"addEnumForMultiTabVariant");function x0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),da(r,i)}o(x0,"addEnumForVariantEntitySet");function I0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[hr.UIAnnotationTerms.FieldGroup];su(e,r,i)}o(I0,"addEnumFieldGroupAnnotationPath");function O0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(O0,"addDefinitionForRelatedFacetKeys");function yl(e){return e.replace("#","::")}o(yl,"getFacetKeyInSchema");function N0(e,t){return`${e}<${yl(t)}>`}o(N0,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=N0(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(bt,"parseSchemaDefinition");function gm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${hr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,bt(n,t,e,!0)),i}o(gm,"getCustomExtensionDefinitionName");function om(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=gm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let O=gm(t,r,s);v.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===et.DefinitionName.LineItems&&t.properties.footer){b=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=mr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[b][et.SchemaTag.annotationPath]=l))),{actions:v,footerActions:A,lineItemPath:l}}o(om,"addCommonLineItemDefinitions");function L0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(L0,"getDataTypeFromAnnotation");function nc(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=L0(e.$Type)),t}o(nc,"determineDataTypeOfTarget");function ro(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=nc((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=L0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(ro,"determineDataType");function am(e,t){let n=ro(t);n&&(e[et.SchemaTag.dataType]=n)}o(am,"addDataTypeToDefinition");function $n(e,t){return`${$}${N0(e,t)}`}o($n,"getFacetDefinitionLink");function Ka(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Ka,"addDefinitionRef");function mm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(mm,"getFacetAnnotationPath");function cu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:$n(a?u:l,t)};let p=bt(a?u:l,t,i,!0);Ha(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(cu,"handleAddressContact");function Cb(e,t,n){typeof e=="object"&&(e[t]=n)}o(Cb,"updateSchemaProperty");function vl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];Cb(r.properties.fields.items,"enum",i)}o(vl,"addFieldsType");function h8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(h8,"findFirstSchemaDefinitionKey");function hm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=yn(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,a=m.keys))}let l=n,u=h8(a,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}}}o(hm,"getEnumEntry");function Xa(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=hm(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];Cb(l,"oneOf",r)}else Cb(a,"oneOf",r)}o(Xa,"addDescriptiveEnumDefinition");function tc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(tc,"getActionKey");function sm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:ec(e.Value)}];else if(e.$Type===hr.UIAnnotationTypes.DataFieldWithAction||e.$Type===hr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=tc(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=tc(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:pl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===hr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=tc(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(sm,"addKeyToDefinition");var Tl=ie(le());var R0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",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","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.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 D0="1.124.9";var _0={name:"@sap/ux-specification",version:D0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.31.25","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.9","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.9",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.6.3","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Qa=class Qa{constructor(){Qa.distTagsOfSpec.length===0&&(Qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Qa.distTagsOfSpec=[]}getSpecVersion(){return D0}getDistTagsOfVersion(){let t=[],n=R0,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(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));Qa.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:Tl.LogSeverity.Warning,message:a,location:{path:Tl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:Tl.LogSeverity.Info,message:i,location:{path:Tl.MANIFESTPATH}}),!1}else return!0}};o(Qa,"DistTagEvaluator"),Qa.distTagsOfSpec=[];var lu=Qa;var ue=ie(le());var _n=ie(le());var Pi=ie(le());function V0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(V0,"getCustomPageFullName");function T8(e){let n=V0(e).split(".");return n[n.length-1]}o(T8,"getCustomPageName");function w0(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)||Pi.ViewTypes.XML}o(w0,"getViewType");function b8(e,t){return w0(e,t).toLowerCase()}o(b8,"getViewTypeExtension");function E8(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=V0(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(E8,"getViewPath");function A8(e,t){let n=e.entitySet||T8(e),{viewPath:i,fileName:r}=E8(e,t,[n]),a=b8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(A8,"getCustomPagePath");var xb=class xb{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Pi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=w0(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=A8(t,this.app);n.$filePath=i}};o(xb,"AppProvider");var qa=xb;var lt=ie(le());var bl=ie(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),M0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),k0=o((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 Ib(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(Ib,"getNewPageTemplate");function S8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(S8,"findPageInManifest");function P8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Ib(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Ib(e[t].pageType)}),!Array.isArray(n.pages))){let i=S8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Ib(e[t].pageType)),Ob(t,e,i)}}o(P8,"transformPageFromAssociation");function C8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===bl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===bl.PageTypeV2.ListReport||n.pageType===bl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(C8,"deletePage");function Ob(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===bl.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)P8(t,r,n);Array.isArray(n.pages)||C8(n,t,i)}}o(Ob,"transformPageToNewManifestV2");var S1=ie(Qs());var yA={};Ks(yA,{ALPAnalyticalTable:()=>hE,ALPGridTable:()=>mE,ALPResponsiveTable:()=>gE,Action:()=>bE,AnalyticalCard:()=>Cl,AnalyticalCardSettings:()=>bm,AnalyticalCardSettingsv4:()=>_b,AnalyticalListPageFilterBar:()=>Hb,AnalyticalTable:()=>dE,BaseCustomSection:()=>$u,ChartSettings:()=>kE,ChartSettingsType:()=>Lb,CommonCardSettings:()=>es,CommonFilterBar:()=>Eu,CommonHeaderFacetSettings:()=>uc,CommonTableSettings:()=>rs,CommonTableSettingsForSections:()=>hc,CreateWithFilters:()=>aE,CustomCard:()=>Fb,DataLoadSettings:()=>cE,DateRange:()=>Ub,DefaultDateRange:()=>jb,DefaultSpanObject:()=>Rb,FRAGMENT_DEFINITION:()=>wo,Field:()=>kb,FieldForAction:()=>Qb,Fields4Dialog:()=>lE,Fields4DialogOP:()=>uA,FooterAction:()=>AE,FormAction:()=>Xb,GlobalChartSettings:()=>lA,GlobalTableSettings:()=>mA,GridTable:()=>yE,HeaderActionStandard:()=>IE,HeaderSections:()=>KE,KPISettings:()=>UE,LinkListCardSettings:()=>wb,LinklistCard:()=>vu,ListCard:()=>Pl,ListCardSettings:()=>Db,ListReportFilterBar:()=>Gb,MultiEdit:()=>sE,ObjectPageAnalyticalTable:()=>pA,ObjectPageChart:()=>cA,ObjectPageCustomSectionFragment:()=>Bu,ObjectPageCustomSectionView:()=>Hu,ObjectPageFooterAction:()=>QE,ObjectPageFooterActionStandard:()=>NE,ObjectPageGridTable:()=>dA,ObjectPageHeader:()=>jE,ObjectPageHeaderAction:()=>$E,ObjectPageHeaderActionStandard:()=>OE,ObjectPageHeaderSectionAddress:()=>WE,ObjectPageHeaderSectionChart:()=>HE,ObjectPageHeaderSectionDataPoint:()=>GE,ObjectPageHeaderSectionForm:()=>BE,ObjectPageLayout:()=>YE,ObjectPageResponsiveTable:()=>yc,ObjectPageSectionAddressV2:()=>tA,ObjectPageSectionChartV2:()=>ZE,ObjectPageSectionContactV2:()=>nA,ObjectPageSectionFormV2:()=>JE,ObjectPageSectionTableV2:()=>eA,ObjectPageSectionV2:()=>zE,ObjectPageSubSectionChartV2:()=>oA,ObjectPageSubSectionContactV2:()=>aA,ObjectPageSubSectionFormV2:()=>rA,ObjectPageSubSectionTableV2:()=>sA,ObjectPageSubSectionV2:()=>iA,ObjectPageToolBarAction:()=>hA,ObjectPageTreeTable:()=>gA,QuickVariantSelection:()=>fE,QuickVariantSelectionOP:()=>fA,QuickVariantSelectionX:()=>uE,ResponsiveTable:()=>ac,SAP_UI_TABLE:()=>Im,SaveAndEditOP:()=>xE,SelectionFieldDateSettings:()=>$b,SelectionFields:()=>Bb,Share:()=>SE,ShareOP:()=>PE,StackCard:()=>yu,StackCardSettings:()=>Vb,TableALP:()=>Ll,TableCard:()=>xl,TableCardSettings:()=>Mb,TableColumn:()=>FE,TableColumnAction:()=>Qm,TableColumnActionIntentBased:()=>DE,TableCustomColumn:()=>_E,ToolBar:()=>wE,ToolBarAction:()=>EE,TreeTable:()=>pE,UpAndDownNavigationOP:()=>CE,buildIntentBasedActionId:()=>LE,deleteColumnFromFragment:()=>Lm,deleteType:()=>Fl,exportColorPalette:()=>B0,exportCreateParametersFields:()=>km,exportCustomColumnsToFragment:()=>rE,exportDateSettingsField:()=>K0,exportDefaultSpan:()=>H0,exportType:()=>Rl,getChartSectionControlId:()=>v1,getContactSubSectionControlId:()=>b1,getCustomColumnPath:()=>Rm,getFormSectionControlId:()=>y1,getRootCustomColumnFromFragmentJSON:()=>Pu,getSectionControlId:()=>gc,getSmartChartControlId:()=>Du,getSmartTableControlId:()=>oc,getSubSectionControlId:()=>T1,getTableSectionControlId:()=>h1,importCreateParameters:()=>Mm,importDateSettings:()=>Wb});var Jn=ie(le());var Ue=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),jr=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),U0=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),j0=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[Jn.ManifestSection.ovp];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ic=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Tm=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(Tm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),za=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ao=o((e,t,n)=>{let i=[];i.push(Tm(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),yr=o((e,t,n)=>ao(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),$0=o((e,t,n)=>ao(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Nb=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ga=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${Nb()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),vm=class vm{};o(vm,"ApplicationV2"),h([Ut("settings")],vm.prototype,"settings",2);var ym=vm,oo=class oo{};o(oo,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],oo.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],oo.prototype,"description",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],oo.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],oo.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],oo.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],oo.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],oo.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],oo.prototype,"statePreservationMode",2);var Ya=oo;var fu=ie(le());function x8(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=fu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=fu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:fu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(x8,"importColorPalette");function B0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===fu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(B0,"exportColorPalette");function H0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(H0,"exportDefaultSpan");var Em=class Em{};o(Em,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Em.prototype,"showDataLabel",2);var Lb=Em,Ja=class Ja{};o(Ja,"DefaultSpanObject"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"cols",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"rows",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ja.prototype,"minimumSubTitleRow",2);var Rb=Ja,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>xe(t),"path"),export:H0}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var es=Xt,El=class El{};o(El,"CustomCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"template",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"settings",2);var Fb=El,Za=class Za extends es{};o(Za,"ListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"listType",2);var Db=Za,uu=class uu{};o(uu,"ListCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],uu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],uu.prototype,"template",2);var Pl=uu,so=class so extends es{};o(so,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"navigation",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>xe(t),"path"),import:x8,export:B0}})],so.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"bEnableStableColors",2);var bm=so,Am=class Am extends bm{};o(Am,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Am.prototype,"measureAggregate",2);var _b=Am,pu=class pu{};o(pu,"AnalyticalCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"template",2);var Cl=pu,Al=class Al extends es{};o(Al,"StackCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"itemText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"objectStreamCardsSettings",2);var Vb=Al,du=class du{};o(du,"StackCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"template",2);var yu=du,Sl=class Sl extends es{};o(Sl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sl.prototype,"staticContent",2);var wb=Sl,gu=class gu{};o(gu,"LinklistCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"template",2);var vu=gu,mu=class mu extends es{};o(mu,"TableCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"enableAddToInsights",2);var Mb=mu,hu=class hu{};o(hu,"TableCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"template",2);var xl=hu;var G0=ie(le());var I8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return Yt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Sm=class Sm{};o(Sm,"Field"),h([y({flex:{controlId:I8,controlType:o(()=>G0.ControlType.GroupElement,"controlType")},generate:mt})],Sm.prototype,"visible",2);var kb=Sm;var rc=ie(le());function Wb(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}o(Wb,"importDateSettings");function O8(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((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(O8,"importDateSettingsField");function K0(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 a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(K0,"exportDateSettingsField");var Il=class Il{};o(Il,"DateRange"),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Il.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path"),import:Wb,export:$g}}),C({since:"1.77.0"})],Il.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Il.prototype,"exclude",2);var Ub=Il,Pm={controlId:Yt,controlType:o(()=>rc.ControlType.SmartFilterBar,"controlType")},Tu={path:o((e,t,n)=>`${Ue(e)}${rc.DATESETTINGSPATH}/fields/${n}`,"path")},W0={...Tu,import:O8,export:K0},Cm=class Cm{};o(Cm,"DefaultDateRange"),h([y({manifest:Tu}),C({since:"1.90.0"})],Cm.prototype,"operation",2);var jb=Cm,ts=class ts{};o(ts,"SelectionFieldDateSettings"),h([y({manifest:W0}),C({since:"1.77.0"})],ts.prototype,"selectedValues",2),h([y({manifest:Tu}),C({since:"1.77.0"})],ts.prototype,"exclude",2),h([y({manifest:Tu}),C({since:"1.77.0"})],ts.prototype,"customDateRangeImplementation",2),h([y({manifest:W0}),C({since:"1.77.0"})],ts.prototype,"filter",2),h([y({manifest:Tu}),C({since:"1.90.0"})],ts.prototype,"defaultValue",2);var $b=ts,Kb=class Kb{};o(Kb,"SelectionFields");var Bb=Kb,co=class co{};o(co,"CommonFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"})],co.prototype,"smartVariantManagement",2),h([y({flex:Pm}),C({since:"1.40.0"})],co.prototype,"liveMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],co.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.52.0"})],co.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:Wb}}),C({since:"1.77.0"})],co.prototype,"dateSettings",2),h([y({flex:Pm}),C({since:"1.28.0"})],co.prototype,"showClearOnFB",2),h([y({flex:Pm}),C({since:"1.38.0"})],co.prototype,"showFilterConfiguration",2),h([y({flex:Pm}),C({since:"1.28.0"})],co.prototype,"showRestoreOnFB",2);var Eu=co,bu=class bu extends Eu{};o(bu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}})],bu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],bu.prototype,"filterDefaultsFromSelectionVariant",2);var Hb=bu,xm=class xm extends Eu{};o(xm,"ListReportFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],xm.prototype,"annotationPath",2);var Gb=xm;var qb=ie(le());var N8=o((e,t,n,i,r)=>{if(i()===qb.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Yt(e,t)},"getFormActionButtonId"),Vo={controlId:N8,controlType:o(()=>qb.ControlType.Button,"controlType")},ns=class ns{};o(ns,"FormAction"),h([y({flex:Vo,generate:mt})],ns.prototype,"visible",2),h([y({flex:Vo})],ns.prototype,"tooltip",2),h([y({flex:Vo})],ns.prototype,"icon",2),h([y({flex:Vo})],ns.prototype,"activeIcon",2),h([y({flex:Vo})],ns.prototype,"type",2);var Xb=ns,is=class is{};o(is,"FieldForAction"),h([y({flex:Vo,generate:mt})],is.prototype,"visible",2),h([y({flex:Vo})],is.prototype,"tooltip",2),h([y({flex:Vo})],is.prototype,"icon",2),h([y({flex:Vo})],is.prototype,"activeIcon",2),h([y({flex:Vo}),C({since:"1.73.0"})],is.prototype,"type",2);var Qb=is;var Et=ie(le()),lo=ie(Qs());var Zb=require("path"),X8=ie(le()),o1=ie(r1()),a1=require("fs");var Q8=(0,Zb.join)(__dirname,"templates");var q8=o((e,t)=>{let n=(0,a1.readFileSync)(e,"utf8");return(0,o1.render)(n,t)},"renderTemplate");var eE=o((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 q8((0,Zb.join)(Q8,t+".xml"),n)},"getSingleColumnContent"),tE=o((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=eE(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),
|
|
290
|
+
</core:FragmentDefinition>`},"getColumnFragmentContent"),nE=o(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 Om=require("path");var wo="core:FragmentDefinition",Im="sap.ui.table",tE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Im,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Im,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Im,name:"AnalyticalColumn"}]]),Y8=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),s1={type:"element",name:"Text",attributes:{text:"Placeholder"}},z8=JSON.stringify(s1);function J8(e,t){var i;let n=t?(i=e==null?void 0:e[wo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(J8,"getFragmentNamespaces");function a1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(a1,"getTagName");function Nm(e,t,n=e){let i=J8(n,!!(t||n!==e));if(t){let r=tE.get(t);return a1(r,i.get(r.namespace))}else{let r=tE.keys();for(let a of r){let s=tE.get(a),l=i?a1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Nm,"getTagNameFromFragmentJSON");function Pu(e,t=e){let n=Nm(e,void 0,t);return e[n]}o(Pu,"getRootCustomColumnFromFragmentJSON");function Z8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(Z8,"addP13nData");function c1(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,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=Z8(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)}o(c1,"handleFragmentColumn");function eK(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Om.sep);if(p[p.length-1]===l){let g=JSON.parse((0,lo.xml2json)(u.fileContent,{compact:!0}));try{let m=Nm(g[wo]);m&&(delete g[wo][m],u.fileContent=(0,lo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(eK,"deleteColumnsFromFragment");function l1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===z8&&(e.splice(n,1),t-=1,t===0));n++);}o(l1,"deleteNumberOfCells");function tK(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,lo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&l1(l.elements[0].elements,u.length),s.fileContent=(0,lo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(tK,"deleteCellsFromFragment");function Lm(e,t,n,i){if(i){eK(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&tK(a,i,n)}}o(Lm,"deleteColumnFromFragment");function nK(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(s1)}o(nK,"addNewColumnsInFragment");function iK(e,t){let n=JSON.parse((0,lo.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)nK(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;l1(a,r)}e.fileContent=(0,lo.json2xml)(JSON.stringify(n),{spaces:4})}}o(iK,"updateNonEmptyCellsFragment");function rK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Om.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=eE(n):iK(r,n);break}}return i}o(rK,"updateCellsFragment");function oK(e,t,n,i,r){var g;let a,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){se(r,{severity:Et.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Om.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=Bn(l,m),A=n.reduce((b,O)=>O.cellsFragmentName?O:b);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):M0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(oK,"exportCustomColumnsToManifest");function aK(e,t,n,i,r){let a=Jb(e,t);if(a){let s=JSON.parse((0,lo.xml2json)(a,{compact:!0})),l=Pu(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}o(aK,"insertNewColumnInFragment");function sK(e,t){let n=[];for(let i=0;i<e.length;i++)c1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(sK,"processCustomColumnInArray");function cK(e,t,n){if(e){if(Array.isArray(e))sK(e,t);else if(!c1(e,t)){let r=Nm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(cK,"maintainExistingColumnInFragment");function lK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=aK(a,i,n,r,s)}return n}o(lK,"insertNewColumnsInFragment");function fK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=Zb(i,r);else{let u=JSON.parse((0,lo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Pu(u[wo]),l=cK(l,i,u),l=lK(i,n,l,r,u);let g=Nm(u,r);u[wo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,lo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(fK,"updateColumnsInFragment");function nE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=oK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),b=A.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),U=F?F[F.length-1]:null,K=U?U+Et.FRAGMENTNAMEPART+g:null,j=fK(s,v,A,m,r),ae=!1;if(p?ae=rK(s,K,n):ae=!0,!j){let Z={fileContent:Zb(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:eE(n),dataSourceUri:u.replace(v,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(nE,"exportCustomColumnsToFragment");var Rm=o((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 a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=ne(le());var iE="/multiEdit",oc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+si.PropertyName.table:Yt(e,t),"getSmartTableControlId");function Mm(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}o(Mm,"importCreateParameters");function km(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(km,"exportCreateParametersFields");function uK(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}o(uK,"exportVariants");function pK(e,t){t.variants&&(Object.keys(t.variants).length>0?uK(e,t):delete e.variants)}o(pK,"exportQuickVariantSelectionX");function dK(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}o(dK,"importMultiEdit");var Fm=class Fm{};o(Fm,"CreateWithFilters"),h([y({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],Fm.prototype,"strategy",2);var rE=Fm,Il=class Il{};o(Il,"MultiEdit"),h([y({manifest:{path:o(t=>jr(t)+iE,"path")}})],Il.prototype,"enabled",2),h([y({manifest:{path:o(t=>jr(t)+iE,"path")}})],Il.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>jr(t)+iE,"path"),export:$g}})],Il.prototype,"ignoredFields",2);var oE=Il;function Iu(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}o(Iu,"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)}o(Ll,"exportType");function Rl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Rl,"deleteType");var Dm=class Dm{};o(Dm,"DataLoadSettings"),h([y({manifest:{path:o(t=>U0(t),"path")}}),C({since:"1.75.2"})],Dm.prototype,"loadDataOnAppLaunch",2);var aE=Dm,_m=class _m{};o(_m,"Fields4Dialog"),h([y({manifest:{path:o(t=>jr(t)+"/createWithParameterDialog","path"),export:km}}),C({since:"1.77.0"})],_m.prototype,"fields",2);var sE=_m,Cu=class Cu{};o(Cu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Cu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Cu.prototype,"variants",2);var cE=Cu,Ol=class Ol{};o(Ol,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ol.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ol.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path"),export:pK}}),C({since:"1.48.0"})],Ol.prototype,"variants",2);var lE=Ol,ai=class ai{constructor(){this.getDeprecated=o(()=>({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"}}}),"getDeprecated")}};o(ai,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>jr(t),"path"),import:Mm}}),C({since:"1.77.0"})],ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Yt,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],ai.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],ai.prototype,"exportType",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.38.0"})],ai.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.120.0"})],ai.prototype,"copy",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.70.0"})],ai.prototype,"selectAll",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.70.0"})],ai.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.75.2"})],ai.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.42.0"})],ai.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ai.prototype,"enableTableFilterInPageVariant",2),h([Ut("toolBar")],ai.prototype,"toolBar",2);var is=ai,Mo=class Mo extends is{};o(Mo,"ResponsiveTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Mo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")},generate:Yn}),C({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>jr(t),"path"),import:dK}}),C({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var ac=Mo,Vm=class Vm extends is{};o(Vm,"TreeTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Vm.prototype,"type",2);var fE=Vm,fo=class fo extends is{};o(fo,"AnalyticalTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],fo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.78.0"})],fo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],fo.prototype,"createWithFilters",2);var uE=fo,ko=class ko extends is{};o(ko,"TableALP"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ko.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Nl=ko,wm=class wm extends Nl{};o(wm,"ALPResponsiveTable"),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],wm.prototype,"growingThreshold",2);var pE=wm,hE=class hE extends Nl{};o(hE,"ALPGridTable");var dE=hE,yE=class yE extends Nl{};o(yE,"ALPAnalyticalTable");var gE=yE,xu=class xu extends is{};o(xu,"GridTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xu.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],xu.prototype,"createWithFilters",2);var mE=xu;var Ou=ne(le());var gK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),mK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),hK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${Zg}${i}`},"getStandardFooterActionOPButtonId"),OE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),yK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),rs={controlId:gK,controlType:o(()=>Ou.ControlType.Button,"controlType")},Nu={controlId:mK,controlType:o(()=>Ou.ControlType.Button,"controlType")},f1={controlId:hK,controlType:o(()=>Ou.ControlType.Button,"controlType")},Um={controlId:yK,controlType:o(()=>Ou.ControlType.Button,"controlType")},sc=class sc{};o(sc,"Action"),h([y({flex:rs})],sc.prototype,"tooltip",2),h([y({flex:rs})],sc.prototype,"icon",2),h([y({flex:rs})],sc.prototype,"activeIcon",2),h([y({flex:rs})],sc.prototype,"type",2);var vE=sc,cc=class cc{};o(cc,"ToolBarAction"),h([y({flex:rs})],cc.prototype,"tooltip",2),h([y({flex:rs})],cc.prototype,"icon",2),h([y({flex:rs})],cc.prototype,"activeIcon",2),h([y({flex:rs})],cc.prototype,"type",2);var TE=cc,lc=class lc{};o(lc,"FooterAction"),h([y({flex:Um})],lc.prototype,"tooltip",2),h([y({flex:Um})],lc.prototype,"icon",2),h([y({flex:Um})],lc.prototype,"activeIcon",2),h([y({flex:Um})],lc.prototype,"type",2);var bE=lc,jm=class jm{};o(jm,"Share"),h([y({flex:Nu})],jm.prototype,"visible",2);var EE=jm,$m=class $m{};o($m,"ShareOP"),h([y({flex:Nu})],$m.prototype,"visible",2);var AE=$m,Bm=class Bm{};o(Bm,"UpAndDownNavigationOP"),h([y({flex:Nu})],Bm.prototype,"visible",2);var SE=Bm,Hm=class Hm{};o(Hm,"SaveAndEditOP"),h([y({flex:f1,generate:mt})],Hm.prototype,"visible",2);var PE=Hm,Gm=class Gm{};o(Gm,"HeaderActionStandard"),h([y({flex:Nu})],Gm.prototype,"visible",2);var CE=Gm,Wm=class Wm{};o(Wm,"ObjectPageHeaderActionStandard"),h([y({flex:Nu})],Wm.prototype,"visible",2);var xE=Wm,Km=class Km{};o(Km,"ObjectPageFooterActionStandard"),h([y({flex:f1})],Km.prototype,"visible",2);var IE=Km;var Fu=ne(le());var vK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),TK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),bK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),NE={controlId:vK,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")},Lu={controlId:bK,controlType:o(()=>Fu.ControlType.Button,"controlType")},u1={...NE,controlId:TK},Xm={...Lu,controlId:OE},Ru=class Ru{};o(Ru,"TableColumn"),h([y({flex:{controlId:yb,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")}})],Ru.prototype,"width",2),h([y({flex:{controlId:yb,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")},generate:Yn})],Ru.prototype,"hAlign",2);var LE=Ru,ga=class ga{};o(ga,"TableColumnAction"),h([y({flex:NE})],ga.prototype,"width",2),h([y({flex:NE,generate:Yn})],ga.prototype,"hAlign",2),h([y({flex:Lu})],ga.prototype,"tooltip",2),h([y({flex:Lu})],ga.prototype,"icon",2),h([y({flex:Lu})],ga.prototype,"activeIcon",2),h([y({flex:Lu})],ga.prototype,"type",2);var Qm=ga,ma=class ma extends Qm{};o(ma,"TableColumnActionIntentBased"),h([y({flex:u1})],ma.prototype,"width",2),h([y({flex:u1,generate:Yn})],ma.prototype,"hAlign",2),h([y({flex:Xm})],ma.prototype,"tooltip",2),h([y({flex:Xm})],ma.prototype,"icon",2),h([y({flex:Xm})],ma.prototype,"activeIcon",2),h([y({flex:Xm})],ma.prototype,"type",2);var RE=ma,DE=class DE{};o(DE,"TableCustomColumn");var FE=DE;var VE=class VE{};o(VE,"ToolBar");var _E=VE;var fc=ne(le());var Du=o(e=>e+fc.PropertyName.chart,"getSmartChartControlId"),os=class os{};o(os,"ChartSettings"),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],os.prototype,"showLegendButton",2),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],os.prototype,"showDownloadButton",2),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],os.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],os.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>k0(t),"path")}}),C({since:"1.81.0"})],os.prototype,"showDataLabel",2);var wE=os;var ha=class ha{};o(ha,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ha.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ha.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ha.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ha.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ha.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ha.prototype,"groupId",2);var ME=ha;var p1=ne(le());var EK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Yt(e,n)},"getAvatarControlId"),as=class as{};o(as,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],as.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],as.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],as.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],as.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:EK,controlType:o(()=>p1.ControlType.Avatar,"controlType")},generate:mt})],as.prototype,"displayShape",2);var kE=as;var qm=ne(le());var AK=o((e,t,n,i)=>{if(i()===qm.ControlType.Button||i()===qm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return Yt(e,t)},"getActionButtonId"),_u={controlId:AK,controlType:o(()=>qm.ControlType.HeaderAction,"controlType")},ss=class ss{};o(ss,"ObjectPageHeaderAction"),h([y({flex:_u,generate:mt})],ss.prototype,"visible",2),h([y({flex:_u})],ss.prototype,"tooltip",2),h([y({flex:_u})],ss.prototype,"icon",2),h([y({flex:_u})],ss.prototype,"activeIcon",2),h([y({flex:_u})],ss.prototype,"type",2);var UE=ss;var Vu=ne(le());var th="header::headerEditable::",SK=o((e,t,n,i,r)=>`${e}${th}${r}`,"getDataPointHeaderSectionId"),PK=o((e,t,n,i,r)=>`${e}${th}${r}::ContactAddress`,"getAddressHeaderSectionId"),CK=o((e,t,n,i,r)=>`${e}${th}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),d1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Vu.FACETTITLEPREFIX)?r.split(Vu.FACETTITLEPREFIX)[1]:a;return`${e}${th}${s}::Form`},"getFormHeaderSectionId"),wu={controlType:o(()=>Vu.ControlType.ObjectPageHeaderSection,"controlType")},Ym=class Ym{};o(Ym,"CommonHeaderFacetSettings"),h([y({flex:{...wu,controlId:d1},generate:mt})],Ym.prototype,"visible",2);var uc=Ym,zm=class zm extends uc{};o(zm,"ObjectPageHeaderSectionForm"),h([y({flex:{...wu,controlId:d1}})],zm.prototype,"visible",2);var jE=zm,Jm=class Jm extends uc{};o(Jm,"ObjectPageHeaderSectionChart"),h([y({flex:{...wu,controlId:CK}})],Jm.prototype,"visible",2);var $E=Jm,Zm=class Zm extends uc{};o(Zm,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...wu,controlId:SK}})],Zm.prototype,"visible",2);var BE=Zm,eh=class eh extends uc{};o(eh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...wu,controlId:PK}})],eh.prototype,"visible",2);var HE=eh,WE=class WE{};o(WE,"HeaderSections");var GE=WE;var XE=ne(le());var xK=o((e,t,n,i)=>{if(i()===XE.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${Yi(r)}::Determining`}return Yt(e,t)},"getFooterActionButtonId"),Mu={controlId:xK,controlType:o(()=>XE.ControlType.Button,"controlType")},cs=class cs{};o(cs,"ObjectPageFooterAction"),h([y({flex:Mu,generate:mt})],cs.prototype,"visible",2),h([y({flex:Mu})],cs.prototype,"tooltip",2),h([y({flex:Mu})],cs.prototype,"icon",2),h([y({flex:Mu})],cs.prototype,"activeIcon",2),h([y({flex:Mu})],cs.prototype,"type",2);var KE=cs;var ku=ne(le());var nh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Yt(e,n)},"getControlId"),pc=class pc{};o(pc,"ObjectPageLayout"),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")},generate:mt})],pc.prototype,"showHeaderContent",2),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}})],pc.prototype,"showAnchorBar",2),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}})],pc.prototype,"useIconTabBar",2),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],pc.prototype,"alwaysShowContentHeader",2);var QE=pc;var g1=ne(le());var dc=class dc{};o(dc,"BaseCustomSection"),h([y({manifest:{path:da,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],dc.prototype,"relatedFacet",2),h([y({manifest:{path:da,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],dc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>da(t,{},i,g1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],dc.prototype,"title",2),h([y({manifest:{path:da}}),C({since:"1.52.0"})],dc.prototype,"className",2);var $u=dc,Uu=class Uu extends $u{};o(Uu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:da}}),C({since:"1.52.0"})],Uu.prototype,"fragmentName",2),h([y({manifest:{path:da}}),C({since:"1.52.0"})],Uu.prototype,"type",2);var Bu=Uu,ju=class ju extends $u{};o(ju,"ObjectPageCustomSectionView"),h([y({manifest:{path:da}}),C({since:"1.52.0"})],ju.prototype,"viewName",2),h([y({manifest:{path:da}}),C({since:"1.52.0"})],ju.prototype,"type",2);var Hu=ju;var er=ne(le());var m1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),er.DefinitionName.Table];return Yt(e,s)},"getTableSectionControlId"),h1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return Yt(e,s)},"getFormSectionControlId"),y1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return Yt(e,s)},"getChartSectionControlId"),gc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return Yt(e,s)},"getSectionControlId"),v1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return Yt(e,s)},"getSubSectionControlId"),T1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return Yt(e,s)},"getContactSubSectionControlId"),ih=class ih{};o(ih,"ObjectPageSectionV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ih.prototype,"visible",2);var qE=ih,rh=class rh{};o(rh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],rh.prototype,"visible",2);var YE=rh,oh=class oh{};o(oh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],oh.prototype,"visible",2);var zE=oh,ah=class ah{};o(ah,"ObjectPageSectionTableV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ah.prototype,"visible",2);var JE=ah,sh=class sh{};o(sh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],sh.prototype,"visible",2);var ZE=sh,ch=class ch{};o(ch,"ObjectPageSectionContactV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ch.prototype,"visible",2);var eA=ch,lh=class lh{};o(lh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:v1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],lh.prototype,"visible",2);var tA=lh,fh=class fh{};o(fh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:h1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:mt})],fh.prototype,"visible",2);var nA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:y1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:mt})],uh.prototype,"visible",2);var iA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:T1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],ph.prototype,"visible",2);var rA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:m1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:mt})],dh.prototype,"visible",2);var oA=dh;var gh=class gh{};o(gh,"ObjectPageChart"),h([y({manifest:{path:j0}}),C({since:"1.78.0"})],gh.prototype,"variantManagement",2);var aA=gh,mh=class mh{};o(mh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],mh.prototype,"variantManagement",2);var sA=mh;var vr=ne(le());var mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),Yt(e,a)},"getSmartTableControlId"),Gu=class Gu{};o(Gu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Gu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Gu.prototype,"variants",2);var cA=Gu,hh=class hh{};o(hh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>yr(t,n,i)+"/createWithParameterDialog","path"),export:km}}),C({since:"1.77.0"})],hh.prototype,"fields",2);var lA=hh,ci=class ci{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ci,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:yr,import:Mm}}),C({since:"1.77.0"})],ci.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],ci.prototype,"editable",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ci.prototype,"showPasteButton",2),h([y({manifest:{path:yr}}),C({since:"1.54.0"})],ci.prototype,"multiSelect",2),h([y({manifest:{path:yr}}),C({since:"1.70.0"})],ci.prototype,"selectAll",2),h([y({manifest:{path:yr}}),C({since:"1.70.0"})],ci.prototype,"selectionLimit",2),h([y({manifest:{path:ao}}),C({since:"1.63.0"})],ci.prototype,"quickVariantSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],ci.prototype,"useExportToExcel",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],ci.prototype,"exportType",2),h([y({manifest:{path:ao}}),C({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ci.prototype,"createMode",2),h([y({manifest:{path:ao}}),C({since:"1.61.0"})],ci.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:yr}}),C({since:"1.78.0"})],ci.prototype,"variantManagement",2),h([y({manifest:{path:yr}}),C({since:"1.120.0"})],ci.prototype,"copy",2),h([Ut("toolBar")],ci.prototype,"toolBar",2);var hc=ci,ls=class ls extends hc{};o(ls,"ObjectPageResponsiveTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ls.prototype,"type",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],ls.prototype,"includeItemInSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:mt}),C({since:"1.52.0"})],ls.prototype,"popinLayout",2),h([y({manifest:{path:yr}}),C({since:"1.77.0"})],ls.prototype,"inlineDelete",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],ls.prototype,"growingThreshold",2);var yc=ls,Wu=class Wu extends hc{};o(Wu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Wu.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var fA=Wu,Ku=class Ku extends hc{};o(Ku,"ObjectPageGridTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ku.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var uA=Ku,Xu=class Xu extends hc{};o(Xu,"ObjectPageTreeTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Xu.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Xu.prototype,"condensedTableLayout",2);var pA=Xu,Uo=class Uo{};o(Uo,"GlobalTableSettings"),h([y({manifest:{path:Ya}}),C({since:"1.70.0"})],Uo.prototype,"selectAll",2),h([y({manifest:{path:Ya}}),C({since:"1.78.0"})],Uo.prototype,"variantManagement",2),h([y({manifest:{path:Ya}}),C({since:"1.120.0"})],Uo.prototype,"copy",2),h([y({manifest:{path:Ya}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Uo.prototype,"type",2),h([y({manifest:{path:Ya}}),C({since:"1.54.0"})],Uo.prototype,"multiSelect",2),h([y({manifest:{path:Ya}}),C({since:"1.67.0"})],Uo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ya}}),C({since:"1.77.0"})],Uo.prototype,"inlineDelete",2);var dA=Uo;var b1=ne(le());var IK=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=qn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),Qu={controlId:IK,controlType:o(()=>b1.ControlType.Button,"controlType")},fs=class fs{};o(fs,"ObjectPageToolBarAction"),h([y({flex:Qu,generate:mt})],fs.prototype,"visible",2),h([y({flex:Qu})],fs.prototype,"tooltip",2),h([y({flex:Qu})],fs.prototype,"icon",2),h([y({flex:Qu})],fs.prototype,"activeIcon",2),h([y({flex:Qu})],fs.prototype,"type",2);var gA=fs;var Di=ne(le());function hA(e,t,n,i){if(t.controlType===Di.ControlType.TableColumn||t.controlType===Di.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Di.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Di.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(hA,"addFlexChangeToConfigTableColumn");function yh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Di.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(yh,"addFlexChangeToConfigTable");function vh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=io(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Di.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Di.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Di.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Di.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&hA(t.table,l,n,i)})}o(vh,"importFlexChangesOfColumn");function us(e){return e.replace("/","::")}o(us,"convertActionKey");function yA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(yA,"convertSelector");function OK(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.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)}o(OK,"addSmartFilterBarFlex");function NK(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 a=Yi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.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,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(NK,"filterActions");function LK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(LK,"addColumnActionConfigPart");function RK(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]}o(RK,"getActionId");function FK(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=NK(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"&&LK(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)}})}o(FK,"addActionFlex");function DK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(DK,"addSmartChartFlex");function Th(e,t,n,i){var r,a;try{let s=io(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=yA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{OK(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=RK(s);u&&FK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{DK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Th,"addFlex");function _K(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}}}o(_K,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){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,a);s=Bn(t,g),pl(p,s,u,e),Qg(l,s,g,r)}_K(u,e)}}o(Dn,"transferSettingsOfObject");function bh(e,t){var r,a,s,l,u,p,g,m,v;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.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=lt.v2.TableTypeV2.AnalyticalTable),i}o(bh,"determineTableType");function E1(e,t,n,i,r,a,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:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(E1,"evaluateFragmentColumn");function VK(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(VK,"determineCellsFragmentName");function wK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,A1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Pu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)E1(m,n,i,r,t,a,s);else E1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(wK,"analyzeFilteredFragments");function MK(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let A=VK(u,e,p,g),b=v.split(".");v=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{wK(O,n,e,s,g,u,A)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{vh(i,n,F.id,F,r)})}}}o(MK,"processViewExtensions");function Fl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;MK(g,m,e,t,a)}}o(Fl,"addFragments");function Eh(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(Eh,"importHeaderActions");var Qt=ne(le());var P1=ne(le());var vA={};Ks(vA,{ANNOERR:()=>i3,ANNOTATIONFILE:()=>r3,COMPONENTNOTDEFINED:()=>o3,CONTEXTPATHCOULDNOTBERESOLVED:()=>ZK,ENTITYSETNOTFOUND:()=>JK,FLEXERROR:()=>m3,INCONSISTENTSCHEMA:()=>P3,INVALIDANCHOR:()=>h3,INVALIDEXTENSION:()=>y3,INVALIDTARGETDEFINITION:()=>T3,MACROS_ANNOTATION_ERROR:()=>A3,NOALP:()=>t3,NOANNOTATIONFORPATH:()=>YK,NOBASEPATH:()=>jK,NOCHARTS:()=>l3,NOENTITYSET:()=>WK,NOENTITYTYPE4SET:()=>KK,NOFE:()=>BK,NOFRAGMENT:()=>v3,NOGENERICSCHEMA:()=>HK,NOID4SECTION:()=>b3,NOLINEITEMANDCHARTS:()=>f3,NOLINEITEMFORPATH:()=>zK,NOLINEITEMS:()=>c3,NOLR:()=>e3,NOPAGEFORENTITYSET:()=>GK,NOPAGES:()=>$K,NOPRESENTATIONVARIANT:()=>XK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>QK,NOPRESENTATIONVARIANTFORSPV:()=>qK,NOROUTING:()=>a3,NOROUTINGID:()=>g3,NOTARGET:()=>d3,NOTARGETS:()=>p3,NOTEMPLATE:()=>n3,NOUIANNOTATIONS:()=>s3,NOVISUALIZATIONS:()=>u3,TYPEERROR:()=>S3,UNKNOWNMINUI5VERSION:()=>UK,WRONGMINUI5VERSION:()=>kK,XMLPARSEFAILURE:()=>E3,default:()=>C3});var kK="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}}'",jK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",$K="No pages found in manifest for app with id '{{- appId}}'",BK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",HK="No generic schema found while generating page schema for {{- pageType}}",GK="No page found in manifest for entitySet '{{- entitySet}}'",WK="No entitySet defined for page '{{- pageName}}'",KK="No entityType could be found for the given entity set '{{- entitySetName}}'",XK="No PresentationVariant defined for '{{- key}}'",QK="No PresentationVariant found for default SelectionPresentationVariant",qK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",YK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",zK="No line item annotation found for path '{{- annotationPath}}'",JK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",ZK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",e3="No page found in manifest for list report",t3="No page found in manifest for analytical list page",n3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",i3="Error while parsing annotation files",r3="Annotation file: '{{- file}}'",o3="Component name is not defined for page '{{- pageName}}'",a3="Incomplete manifest definition: no routing defined",s3="No UI Annotation defined for entity type '{{- entityType }}'",c3="UI.LineItem annotation has not been defined",l3="UI.Chart annotation has not been defined",f3="Neither UI.LineItem nor UI.Chart annotation has been defined",u3="Empty Collection for Visualizations",p3="Incomplete manifest definition: no targets defined",d3="Invalid reference: annotation target '{{- target}}' not found",g3="No page found in manifest for routingId '{{- routingId}}'",m3="Error while parsing flex change",h3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",y3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",v3="fragmentName is undefined for columnKey '{{- columnKey}}'",T3="Invalid routing target definition in manifest: '{{- target}}'",b3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",E3="Parsing of XML file failed with error - {{- error}}",A3="Error during resolving annotation for '{{- control}}'",S3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",P3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",C3={WRONGMINUI5VERSION:kK,UNKNOWNMINUI5VERSION:UK,NOBASEPATH:jK,NOPAGES:$K,NOFE:BK,NOGENERICSCHEMA:HK,NOPAGEFORENTITYSET:GK,NOENTITYSET:WK,NOENTITYTYPE4SET:KK,NOPRESENTATIONVARIANT:XK,NOPRESENTATIONVARIANTFORDEFAULTSPV:QK,NOPRESENTATIONVARIANTFORSPV:qK,NOANNOTATIONFORPATH:YK,NOLINEITEMFORPATH:zK,ENTITYSETNOTFOUND:JK,CONTEXTPATHCOULDNOTBERESOLVED:ZK,NOLR:e3,NOALP:t3,NOTEMPLATE:n3,ANNOERR:i3,ANNOTATIONFILE:r3,COMPONENTNOTDEFINED:o3,NOROUTING:a3,NOUIANNOTATIONS:s3,NOLINEITEMS:c3,NOCHARTS:l3,NOLINEITEMANDCHARTS:f3,NOVISUALIZATIONS:u3,NOTARGETS:p3,NOTARGET:d3,NOROUTINGID:g3,FLEXERROR:m3,INVALIDANCHOR:h3,INVALIDEXTENSION:y3,NOFRAGMENT:v3,INVALIDTARGETDEFINITION:T3,NOID4SECTION:b3,XMLPARSEFAILURE:E3,MACROS_ANNOTATION_ERROR:A3,TYPEERROR:S3,INCONSISTENTSCHEMA:P3};function S1(e){e.addResourceBundle(e.language,"translation",vA)}o(S1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:P1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Om=require("path");var wo="core:FragmentDefinition",Im="sap.ui.table",iE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Im,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Im,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Im,name:"AnalyticalColumn"}]]),Y8=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),c1={type:"element",name:"Text",attributes:{text:"Placeholder"}},z8=JSON.stringify(c1);function J8(e,t){var i;let n=t?(i=e==null?void 0:e[wo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(J8,"getFragmentNamespaces");function s1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(s1,"getTagName");function Nm(e,t,n=e){let i=J8(n,!!(t||n!==e));if(t){let r=iE.get(t);return s1(r,i.get(r.namespace))}else{let r=iE.keys();for(let a of r){let s=iE.get(a),l=i?s1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Nm,"getTagNameFromFragmentJSON");function Pu(e,t=e){let n=Nm(e,void 0,t);return e[n]}o(Pu,"getRootCustomColumnFromFragmentJSON");function Z8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(Z8,"addP13nData");function l1(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,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=Z8(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)}o(l1,"handleFragmentColumn");function eK(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Om.sep);if(p[p.length-1]===l){let g=JSON.parse((0,lo.xml2json)(u.fileContent,{compact:!0}));try{let m=Nm(g[wo]);m&&(delete g[wo][m],u.fileContent=(0,lo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(eK,"deleteColumnsFromFragment");function f1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===z8&&(e.splice(n,1),t-=1,t===0));n++);}o(f1,"deleteNumberOfCells");function tK(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,lo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&f1(l.elements[0].elements,u.length),s.fileContent=(0,lo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(tK,"deleteCellsFromFragment");function Lm(e,t,n,i){if(i){eK(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&tK(a,i,n)}}o(Lm,"deleteColumnFromFragment");function nK(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(c1)}o(nK,"addNewColumnsInFragment");function iK(e,t){let n=JSON.parse((0,lo.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)nK(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;f1(a,r)}e.fileContent=(0,lo.json2xml)(JSON.stringify(n),{spaces:4})}}o(iK,"updateNonEmptyCellsFragment");function rK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Om.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=nE(n):iK(r,n);break}}return i}o(rK,"updateCellsFragment");function oK(e,t,n,i,r){var g;let a,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){se(r,{severity:Et.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Om.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=Bn(l,m),A=n.reduce((b,O)=>O.cellsFragmentName?O:b);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):k0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(oK,"exportCustomColumnsToManifest");function aK(e,t,n,i,r){let a=eE(e,t);if(a){let s=JSON.parse((0,lo.xml2json)(a,{compact:!0})),l=Pu(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}o(aK,"insertNewColumnInFragment");function sK(e,t){let n=[];for(let i=0;i<e.length;i++)l1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(sK,"processCustomColumnInArray");function cK(e,t,n){if(e){if(Array.isArray(e))sK(e,t);else if(!l1(e,t)){let r=Nm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(cK,"maintainExistingColumnInFragment");function lK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=aK(a,i,n,r,s)}return n}o(lK,"insertNewColumnsInFragment");function fK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=tE(i,r);else{let u=JSON.parse((0,lo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Pu(u[wo]),l=cK(l,i,u),l=lK(i,n,l,r,u);let g=Nm(u,r);u[wo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,lo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(fK,"updateColumnsInFragment");function rE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=oK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),b=A.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),U=F?F[F.length-1]:null,K=U?U+Et.FRAGMENTNAMEPART+g:null,j=fK(s,v,A,m,r),ae=!1;if(p?ae=rK(s,K,n):ae=!0,!j){let Z={fileContent:tE(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:nE(n),dataSourceUri:u.replace(v,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(rE,"exportCustomColumnsToFragment");var Rm=o((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 a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=ie(le());var oE="/multiEdit",oc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+si.PropertyName.table:Yt(e,t),"getSmartTableControlId");function Mm(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}o(Mm,"importCreateParameters");function km(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(km,"exportCreateParametersFields");function uK(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}o(uK,"exportVariants");function pK(e,t){t.variants&&(Object.keys(t.variants).length>0?uK(e,t):delete e.variants)}o(pK,"exportQuickVariantSelectionX");function dK(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}o(dK,"importMultiEdit");var Fm=class Fm{};o(Fm,"CreateWithFilters"),h([y({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],Fm.prototype,"strategy",2);var aE=Fm,Ol=class Ol{};o(Ol,"MultiEdit"),h([y({manifest:{path:o(t=>jr(t)+oE,"path")}})],Ol.prototype,"enabled",2),h([y({manifest:{path:o(t=>jr(t)+oE,"path")}})],Ol.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>jr(t)+oE,"path"),export:$g}})],Ol.prototype,"ignoredFields",2);var sE=Ol;function Iu(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}o(Iu,"importType");function Rl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Rl,"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}o(Fl,"deleteType");var Dm=class Dm{};o(Dm,"DataLoadSettings"),h([y({manifest:{path:o(t=>j0(t),"path")}}),C({since:"1.75.2"})],Dm.prototype,"loadDataOnAppLaunch",2);var cE=Dm,_m=class _m{};o(_m,"Fields4Dialog"),h([y({manifest:{path:o(t=>jr(t)+"/createWithParameterDialog","path"),export:km}}),C({since:"1.77.0"})],_m.prototype,"fields",2);var lE=_m,Cu=class Cu{};o(Cu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Cu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Cu.prototype,"variants",2);var fE=Cu,Nl=class Nl{};o(Nl,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Nl.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Nl.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path"),export:pK}}),C({since:"1.48.0"})],Nl.prototype,"variants",2);var uE=Nl,ai=class ai{constructor(){this.getDeprecated=o(()=>({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"}}}),"getDeprecated")}};o(ai,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>jr(t),"path"),import:Mm}}),C({since:"1.77.0"})],ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Yt,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],ai.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],ai.prototype,"exportType",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.38.0"})],ai.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.120.0"})],ai.prototype,"copy",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.70.0"})],ai.prototype,"selectAll",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.70.0"})],ai.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.75.2"})],ai.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.42.0"})],ai.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ai.prototype,"enableTableFilterInPageVariant",2),h([Ut("toolBar")],ai.prototype,"toolBar",2);var rs=ai,Mo=class Mo extends rs{};o(Mo,"ResponsiveTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Rl,delete:Fl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Mo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")},generate:Yn}),C({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>jr(t),"path")}}),C({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>jr(t),"path"),import:dK}}),C({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var ac=Mo,Vm=class Vm extends rs{};o(Vm,"TreeTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Rl,delete:Fl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Vm.prototype,"type",2);var pE=Vm,fo=class fo extends rs{};o(fo,"AnalyticalTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Rl,delete:Fl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],fo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],fo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.78.0"})],fo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],fo.prototype,"createWithFilters",2);var dE=fo,ko=class ko extends rs{};o(ko,"TableALP"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Rl,delete:Fl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ko.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Ll=ko,wm=class wm extends Ll{};o(wm,"ALPResponsiveTable"),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],wm.prototype,"growingThreshold",2);var gE=wm,vE=class vE extends Ll{};o(vE,"ALPGridTable");var mE=vE,TE=class TE extends Ll{};o(TE,"ALPAnalyticalTable");var hE=TE,xu=class xu extends rs{};o(xu,"GridTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Rl,delete:Fl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xu.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],xu.prototype,"createWithFilters",2);var yE=xu;var Ou=ie(le());var gK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),mK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),hK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${Zg}${i}`},"getStandardFooterActionOPButtonId"),LE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),yK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),os={controlId:gK,controlType:o(()=>Ou.ControlType.Button,"controlType")},Nu={controlId:mK,controlType:o(()=>Ou.ControlType.Button,"controlType")},u1={controlId:hK,controlType:o(()=>Ou.ControlType.Button,"controlType")},Um={controlId:yK,controlType:o(()=>Ou.ControlType.Button,"controlType")},sc=class sc{};o(sc,"Action"),h([y({flex:os})],sc.prototype,"tooltip",2),h([y({flex:os})],sc.prototype,"icon",2),h([y({flex:os})],sc.prototype,"activeIcon",2),h([y({flex:os})],sc.prototype,"type",2);var bE=sc,cc=class cc{};o(cc,"ToolBarAction"),h([y({flex:os})],cc.prototype,"tooltip",2),h([y({flex:os})],cc.prototype,"icon",2),h([y({flex:os})],cc.prototype,"activeIcon",2),h([y({flex:os})],cc.prototype,"type",2);var EE=cc,lc=class lc{};o(lc,"FooterAction"),h([y({flex:Um})],lc.prototype,"tooltip",2),h([y({flex:Um})],lc.prototype,"icon",2),h([y({flex:Um})],lc.prototype,"activeIcon",2),h([y({flex:Um})],lc.prototype,"type",2);var AE=lc,jm=class jm{};o(jm,"Share"),h([y({flex:Nu})],jm.prototype,"visible",2);var SE=jm,$m=class $m{};o($m,"ShareOP"),h([y({flex:Nu})],$m.prototype,"visible",2);var PE=$m,Bm=class Bm{};o(Bm,"UpAndDownNavigationOP"),h([y({flex:Nu})],Bm.prototype,"visible",2);var CE=Bm,Hm=class Hm{};o(Hm,"SaveAndEditOP"),h([y({flex:u1,generate:mt})],Hm.prototype,"visible",2);var xE=Hm,Gm=class Gm{};o(Gm,"HeaderActionStandard"),h([y({flex:Nu})],Gm.prototype,"visible",2);var IE=Gm,Wm=class Wm{};o(Wm,"ObjectPageHeaderActionStandard"),h([y({flex:Nu})],Wm.prototype,"visible",2);var OE=Wm,Km=class Km{};o(Km,"ObjectPageFooterActionStandard"),h([y({flex:u1})],Km.prototype,"visible",2);var NE=Km;var Fu=ie(le());var vK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),TK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),bK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),RE={controlId:vK,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")},Lu={controlId:bK,controlType:o(()=>Fu.ControlType.Button,"controlType")},p1={...RE,controlId:TK},Xm={...Lu,controlId:LE},Ru=class Ru{};o(Ru,"TableColumn"),h([y({flex:{controlId:Tb,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")}})],Ru.prototype,"width",2),h([y({flex:{controlId:Tb,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")},generate:Yn})],Ru.prototype,"hAlign",2);var FE=Ru,ma=class ma{};o(ma,"TableColumnAction"),h([y({flex:RE})],ma.prototype,"width",2),h([y({flex:RE,generate:Yn})],ma.prototype,"hAlign",2),h([y({flex:Lu})],ma.prototype,"tooltip",2),h([y({flex:Lu})],ma.prototype,"icon",2),h([y({flex:Lu})],ma.prototype,"activeIcon",2),h([y({flex:Lu})],ma.prototype,"type",2);var Qm=ma,ha=class ha extends Qm{};o(ha,"TableColumnActionIntentBased"),h([y({flex:p1})],ha.prototype,"width",2),h([y({flex:p1,generate:Yn})],ha.prototype,"hAlign",2),h([y({flex:Xm})],ha.prototype,"tooltip",2),h([y({flex:Xm})],ha.prototype,"icon",2),h([y({flex:Xm})],ha.prototype,"activeIcon",2),h([y({flex:Xm})],ha.prototype,"type",2);var DE=ha,VE=class VE{};o(VE,"TableCustomColumn");var _E=VE;var ME=class ME{};o(ME,"ToolBar");var wE=ME;var fc=ie(le());var Du=o(e=>e+fc.PropertyName.chart,"getSmartChartControlId"),as=class as{};o(as,"ChartSettings"),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],as.prototype,"showLegendButton",2),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],as.prototype,"showDownloadButton",2),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],as.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:Du,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],as.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>U0(t),"path")}}),C({since:"1.81.0"})],as.prototype,"showDataLabel",2);var kE=as;var ya=class ya{};o(ya,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ya.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ya.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ya.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ya.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ya.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ya.prototype,"groupId",2);var UE=ya;var d1=ie(le());var EK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Yt(e,n)},"getAvatarControlId"),ss=class ss{};o(ss,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],ss.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],ss.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],ss.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ss.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:EK,controlType:o(()=>d1.ControlType.Avatar,"controlType")},generate:mt})],ss.prototype,"displayShape",2);var jE=ss;var qm=ie(le());var AK=o((e,t,n,i)=>{if(i()===qm.ControlType.Button||i()===qm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return Yt(e,t)},"getActionButtonId"),_u={controlId:AK,controlType:o(()=>qm.ControlType.HeaderAction,"controlType")},cs=class cs{};o(cs,"ObjectPageHeaderAction"),h([y({flex:_u,generate:mt})],cs.prototype,"visible",2),h([y({flex:_u})],cs.prototype,"tooltip",2),h([y({flex:_u})],cs.prototype,"icon",2),h([y({flex:_u})],cs.prototype,"activeIcon",2),h([y({flex:_u})],cs.prototype,"type",2);var $E=cs;var Vu=ie(le());var th="header::headerEditable::",SK=o((e,t,n,i,r)=>`${e}${th}${r}`,"getDataPointHeaderSectionId"),PK=o((e,t,n,i,r)=>`${e}${th}${r}::ContactAddress`,"getAddressHeaderSectionId"),CK=o((e,t,n,i,r)=>`${e}${th}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),g1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Vu.FACETTITLEPREFIX)?r.split(Vu.FACETTITLEPREFIX)[1]:a;return`${e}${th}${s}::Form`},"getFormHeaderSectionId"),wu={controlType:o(()=>Vu.ControlType.ObjectPageHeaderSection,"controlType")},Ym=class Ym{};o(Ym,"CommonHeaderFacetSettings"),h([y({flex:{...wu,controlId:g1},generate:mt})],Ym.prototype,"visible",2);var uc=Ym,zm=class zm extends uc{};o(zm,"ObjectPageHeaderSectionForm"),h([y({flex:{...wu,controlId:g1}})],zm.prototype,"visible",2);var BE=zm,Jm=class Jm extends uc{};o(Jm,"ObjectPageHeaderSectionChart"),h([y({flex:{...wu,controlId:CK}})],Jm.prototype,"visible",2);var HE=Jm,Zm=class Zm extends uc{};o(Zm,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...wu,controlId:SK}})],Zm.prototype,"visible",2);var GE=Zm,eh=class eh extends uc{};o(eh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...wu,controlId:PK}})],eh.prototype,"visible",2);var WE=eh,XE=class XE{};o(XE,"HeaderSections");var KE=XE;var qE=ie(le());var xK=o((e,t,n,i)=>{if(i()===qE.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${Yi(r)}::Determining`}return Yt(e,t)},"getFooterActionButtonId"),Mu={controlId:xK,controlType:o(()=>qE.ControlType.Button,"controlType")},ls=class ls{};o(ls,"ObjectPageFooterAction"),h([y({flex:Mu,generate:mt})],ls.prototype,"visible",2),h([y({flex:Mu})],ls.prototype,"tooltip",2),h([y({flex:Mu})],ls.prototype,"icon",2),h([y({flex:Mu})],ls.prototype,"activeIcon",2),h([y({flex:Mu})],ls.prototype,"type",2);var QE=ls;var ku=ie(le());var nh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Yt(e,n)},"getControlId"),pc=class pc{};o(pc,"ObjectPageLayout"),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")},generate:mt})],pc.prototype,"showHeaderContent",2),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}})],pc.prototype,"showAnchorBar",2),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}})],pc.prototype,"useIconTabBar",2),h([y({flex:{controlId:nh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],pc.prototype,"alwaysShowContentHeader",2);var YE=pc;var m1=ie(le());var dc=class dc{};o(dc,"BaseCustomSection"),h([y({manifest:{path:ga,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],dc.prototype,"relatedFacet",2),h([y({manifest:{path:ga,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],dc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ga(t,{},i,m1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],dc.prototype,"title",2),h([y({manifest:{path:ga}}),C({since:"1.52.0"})],dc.prototype,"className",2);var $u=dc,Uu=class Uu extends $u{};o(Uu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ga}}),C({since:"1.52.0"})],Uu.prototype,"fragmentName",2),h([y({manifest:{path:ga}}),C({since:"1.52.0"})],Uu.prototype,"type",2);var Bu=Uu,ju=class ju extends $u{};o(ju,"ObjectPageCustomSectionView"),h([y({manifest:{path:ga}}),C({since:"1.52.0"})],ju.prototype,"viewName",2),h([y({manifest:{path:ga}}),C({since:"1.52.0"})],ju.prototype,"type",2);var Hu=ju;var er=ie(le());var h1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),er.DefinitionName.Table];return Yt(e,s)},"getTableSectionControlId"),y1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return Yt(e,s)},"getFormSectionControlId"),v1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return Yt(e,s)},"getChartSectionControlId"),gc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return Yt(e,s)},"getSectionControlId"),T1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return Yt(e,s)},"getSubSectionControlId"),b1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return Yt(e,s)},"getContactSubSectionControlId"),ih=class ih{};o(ih,"ObjectPageSectionV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ih.prototype,"visible",2);var zE=ih,rh=class rh{};o(rh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],rh.prototype,"visible",2);var JE=rh,oh=class oh{};o(oh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],oh.prototype,"visible",2);var ZE=oh,ah=class ah{};o(ah,"ObjectPageSectionTableV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ah.prototype,"visible",2);var eA=ah,sh=class sh{};o(sh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],sh.prototype,"visible",2);var tA=sh,ch=class ch{};o(ch,"ObjectPageSectionContactV2"),h([y({flex:{controlId:gc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ch.prototype,"visible",2);var nA=ch,lh=class lh{};o(lh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:T1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],lh.prototype,"visible",2);var iA=lh,fh=class fh{};o(fh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:y1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:mt})],fh.prototype,"visible",2);var rA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:v1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:mt})],uh.prototype,"visible",2);var oA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:b1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],ph.prototype,"visible",2);var aA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:h1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:mt})],dh.prototype,"visible",2);var sA=dh;var gh=class gh{};o(gh,"ObjectPageChart"),h([y({manifest:{path:$0}}),C({since:"1.78.0"})],gh.prototype,"variantManagement",2);var cA=gh,mh=class mh{};o(mh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],mh.prototype,"variantManagement",2);var lA=mh;var vr=ie(le());var mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),Yt(e,a)},"getSmartTableControlId"),Gu=class Gu{};o(Gu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Gu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Gu.prototype,"variants",2);var fA=Gu,hh=class hh{};o(hh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>yr(t,n,i)+"/createWithParameterDialog","path"),export:km}}),C({since:"1.77.0"})],hh.prototype,"fields",2);var uA=hh,ci=class ci{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ci,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:yr,import:Mm}}),C({since:"1.77.0"})],ci.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],ci.prototype,"editable",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ci.prototype,"showPasteButton",2),h([y({manifest:{path:yr}}),C({since:"1.54.0"})],ci.prototype,"multiSelect",2),h([y({manifest:{path:yr}}),C({since:"1.70.0"})],ci.prototype,"selectAll",2),h([y({manifest:{path:yr}}),C({since:"1.70.0"})],ci.prototype,"selectionLimit",2),h([y({manifest:{path:ao}}),C({since:"1.63.0"})],ci.prototype,"quickVariantSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],ci.prototype,"useExportToExcel",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],ci.prototype,"exportType",2),h([y({manifest:{path:ao}}),C({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ci.prototype,"createMode",2),h([y({manifest:{path:ao}}),C({since:"1.61.0"})],ci.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:yr}}),C({since:"1.78.0"})],ci.prototype,"variantManagement",2),h([y({manifest:{path:yr}}),C({since:"1.120.0"})],ci.prototype,"copy",2),h([Ut("toolBar")],ci.prototype,"toolBar",2);var hc=ci,fs=class fs extends hc{};o(fs,"ObjectPageResponsiveTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fs.prototype,"type",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],fs.prototype,"includeItemInSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:mt}),C({since:"1.52.0"})],fs.prototype,"popinLayout",2),h([y({manifest:{path:yr}}),C({since:"1.77.0"})],fs.prototype,"inlineDelete",2),h([y({flex:{controlId:mc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],fs.prototype,"growingThreshold",2);var yc=fs,Wu=class Wu extends hc{};o(Wu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Wu.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var pA=Wu,Ku=class Ku extends hc{};o(Ku,"ObjectPageGridTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ku.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var dA=Ku,Xu=class Xu extends hc{};o(Xu,"ObjectPageTreeTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Xu.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Xu.prototype,"condensedTableLayout",2);var gA=Xu,Uo=class Uo{};o(Uo,"GlobalTableSettings"),h([y({manifest:{path:za}}),C({since:"1.70.0"})],Uo.prototype,"selectAll",2),h([y({manifest:{path:za}}),C({since:"1.78.0"})],Uo.prototype,"variantManagement",2),h([y({manifest:{path:za}}),C({since:"1.120.0"})],Uo.prototype,"copy",2),h([y({manifest:{path:za}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Uo.prototype,"type",2),h([y({manifest:{path:za}}),C({since:"1.54.0"})],Uo.prototype,"multiSelect",2),h([y({manifest:{path:za}}),C({since:"1.67.0"})],Uo.prototype,"condensedTableLayout",2),h([y({manifest:{path:za}}),C({since:"1.77.0"})],Uo.prototype,"inlineDelete",2);var mA=Uo;var E1=ie(le());var IK=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=qn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),Qu={controlId:IK,controlType:o(()=>E1.ControlType.Button,"controlType")},us=class us{};o(us,"ObjectPageToolBarAction"),h([y({flex:Qu,generate:mt})],us.prototype,"visible",2),h([y({flex:Qu})],us.prototype,"tooltip",2),h([y({flex:Qu})],us.prototype,"icon",2),h([y({flex:Qu})],us.prototype,"activeIcon",2),h([y({flex:Qu})],us.prototype,"type",2);var hA=us;var Di=ie(le());function vA(e,t,n,i){if(t.controlType===Di.ControlType.TableColumn||t.controlType===Di.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Di.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Di.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(vA,"addFlexChangeToConfigTableColumn");function yh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Di.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(yh,"addFlexChangeToConfigTable");function vh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=io(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Di.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Di.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Di.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Di.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&vA(t.table,l,n,i)})}o(vh,"importFlexChangesOfColumn");function ps(e){return e.replace("/","::")}o(ps,"convertActionKey");function TA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(TA,"convertSelector");function OK(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.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)}o(OK,"addSmartFilterBarFlex");function NK(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 a=Yi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.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,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(NK,"filterActions");function LK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(LK,"addColumnActionConfigPart");function RK(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]}o(RK,"getActionId");function FK(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=NK(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"&&LK(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)}})}o(FK,"addActionFlex");function DK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(DK,"addSmartChartFlex");function Th(e,t,n,i){var r,a;try{let s=io(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=TA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{OK(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=RK(s);u&&FK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{DK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Th,"addFlex");function _K(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}}}o(_K,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){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,a);s=Bn(t,g),dl(p,s,u,e),Qg(l,s,g,r)}_K(u,e)}}o(Dn,"transferSettingsOfObject");function bh(e,t){var r,a,s,l,u,p,g,m,v;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.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=lt.v2.TableTypeV2.AnalyticalTable),i}o(bh,"determineTableType");function A1(e,t,n,i,r,a,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:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(A1,"evaluateFragmentColumn");function VK(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(VK,"determineCellsFragmentName");function wK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,S1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Pu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)A1(m,n,i,r,t,a,s);else A1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(wK,"analyzeFilteredFragments");function MK(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let A=VK(u,e,p,g),b=v.split(".");v=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{wK(O,n,e,s,g,u,A)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{vh(i,n,F.id,F,r)})}}}o(MK,"processViewExtensions");function Dl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;MK(g,m,e,t,a)}}o(Dl,"addFragments");function Eh(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(Eh,"importHeaderActions");var Qt=ie(le());var C1=ie(le());var bA={};Ks(bA,{ANNOERR:()=>i3,ANNOTATIONFILE:()=>r3,COMPONENTNOTDEFINED:()=>o3,CONTEXTPATHCOULDNOTBERESOLVED:()=>ZK,ENTITYSETNOTFOUND:()=>JK,FLEXERROR:()=>m3,INCONSISTENTSCHEMA:()=>P3,INVALIDANCHOR:()=>h3,INVALIDEXTENSION:()=>y3,INVALIDTARGETDEFINITION:()=>T3,MACROS_ANNOTATION_ERROR:()=>A3,NOALP:()=>t3,NOANNOTATIONFORPATH:()=>YK,NOBASEPATH:()=>jK,NOCHARTS:()=>l3,NOENTITYSET:()=>WK,NOENTITYTYPE4SET:()=>KK,NOFE:()=>BK,NOFRAGMENT:()=>v3,NOGENERICSCHEMA:()=>HK,NOID4SECTION:()=>b3,NOLINEITEMANDCHARTS:()=>f3,NOLINEITEMFORPATH:()=>zK,NOLINEITEMS:()=>c3,NOLR:()=>e3,NOPAGEFORENTITYSET:()=>GK,NOPAGES:()=>$K,NOPRESENTATIONVARIANT:()=>XK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>QK,NOPRESENTATIONVARIANTFORSPV:()=>qK,NOROUTING:()=>a3,NOROUTINGID:()=>g3,NOTARGET:()=>d3,NOTARGETS:()=>p3,NOTEMPLATE:()=>n3,NOUIANNOTATIONS:()=>s3,NOVISUALIZATIONS:()=>u3,TYPEERROR:()=>S3,UNKNOWNMINUI5VERSION:()=>UK,WRONGMINUI5VERSION:()=>kK,XMLPARSEFAILURE:()=>E3,default:()=>C3});var kK="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}}'",jK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",$K="No pages found in manifest for app with id '{{- appId}}'",BK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",HK="No generic schema found while generating page schema for {{- pageType}}",GK="No page found in manifest for entitySet '{{- entitySet}}'",WK="No entitySet defined for page '{{- pageName}}'",KK="No entityType could be found for the given entity set '{{- entitySetName}}'",XK="No PresentationVariant defined for '{{- key}}'",QK="No PresentationVariant found for default SelectionPresentationVariant",qK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",YK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",zK="No line item annotation found for path '{{- annotationPath}}'",JK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",ZK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",e3="No page found in manifest for list report",t3="No page found in manifest for analytical list page",n3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",i3="Error while parsing annotation files",r3="Annotation file: '{{- file}}'",o3="Component name is not defined for page '{{- pageName}}'",a3="Incomplete manifest definition: no routing defined",s3="No UI Annotation defined for entity type '{{- entityType }}'",c3="UI.LineItem annotation has not been defined",l3="UI.Chart annotation has not been defined",f3="Neither UI.LineItem nor UI.Chart annotation has been defined",u3="Empty Collection for Visualizations",p3="Incomplete manifest definition: no targets defined",d3="Invalid reference: annotation target '{{- target}}' not found",g3="No page found in manifest for routingId '{{- routingId}}'",m3="Error while parsing flex change",h3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",y3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",v3="fragmentName is undefined for columnKey '{{- columnKey}}'",T3="Invalid routing target definition in manifest: '{{- target}}'",b3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",E3="Parsing of XML file failed with error - {{- error}}",A3="Error during resolving annotation for '{{- control}}'",S3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",P3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",C3={WRONGMINUI5VERSION:kK,UNKNOWNMINUI5VERSION:UK,NOBASEPATH:jK,NOPAGES:$K,NOFE:BK,NOGENERICSCHEMA:HK,NOPAGEFORENTITYSET:GK,NOENTITYSET:WK,NOENTITYTYPE4SET:KK,NOPRESENTATIONVARIANT:XK,NOPRESENTATIONVARIANTFORDEFAULTSPV:QK,NOPRESENTATIONVARIANTFORSPV:qK,NOANNOTATIONFORPATH:YK,NOLINEITEMFORPATH:zK,ENTITYSETNOTFOUND:JK,CONTEXTPATHCOULDNOTBERESOLVED:ZK,NOLR:e3,NOALP:t3,NOTEMPLATE:n3,ANNOERR:i3,ANNOTATIONFILE:r3,COMPONENTNOTDEFINED:o3,NOROUTING:a3,NOUIANNOTATIONS:s3,NOLINEITEMS:c3,NOCHARTS:l3,NOLINEITEMANDCHARTS:f3,NOVISUALIZATIONS:u3,NOTARGETS:p3,NOTARGET:d3,NOROUTINGID:g3,FLEXERROR:m3,INVALIDANCHOR:h3,INVALIDEXTENSION:y3,NOFRAGMENT:v3,INVALIDTARGETDEFINITION:T3,NOID4SECTION:b3,XMLPARSEFAILURE:E3,MACROS_ANNOTATION_ERROR:A3,TYPEERROR:S3,INCONSISTENTSCHEMA:P3};function P1(e){e.addResourceBundle(e.language,"translation",bA)}o(P1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:C1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),S1(q)}o(nn,"initI18n");var $t=ne(le());function vc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(la((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=vc(s.pages,t,n),i))return n.unshift(a),i}}o(vc,"findObjectPageV2");function Dl(e,t){var n;for(let i in e){let r=e[i];if(la((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(Dl,"findListReportPageV2");function _l(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(_l,"getV2Pages");function Vl(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Vl,"checkV2Page");function wl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),la((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(wl,"findAnalyticalListPage");function TA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(TA,"isAssociatedCustomSection");function C1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)TA(r,t)&&(i[r]=n[r]);return i}o(C1,"findCustomSectionExtensions");function x3(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}}o(x3,"removeEmptySettingsOfFooter");function I3(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}}o(I3,"removeEmptySettingsOfFilterBar");function O3(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}}o(O3,"removeEmptySettingsOfToolBar");function Ah(e){O3(e),I3(e),x3(e)}o(Ah,"removeEmptySettings");var EA={};Ks(EA,{AnalyticalListPage:()=>Br,ListReport:()=>uo,ObjectPage:()=>li,OverviewPage:()=>zt,exportFilterSettings:()=>O1,importDateSettingsOVP:()=>x1,importFilterSettings:()=>I1});var Sh=ne(le());var Br=class{};o(Br,"AnalyticalListPage"),h([y({flex:{controlId:Gg,controlType:o(()=>Sh.ControlType.DynamicPage,"controlType")}})],Br.prototype,"fitContent",2),h([Ut("table")],Br.prototype,"table",2),h([Ut("template::SmartFilterBar")],Br.prototype,"filterBar",2),h([Ut("analyticalListPageChart")],Br.prototype,"chart",2),h([Ut("analyticalListFooter")],Br.prototype,"footer",2),Br=h([Ur({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Sh.v2.FE_TEMPLATE_V2_ALP})],Br);var qu=ne(le());var uo=class{};o(uo,"ListReport"),h([y({flex:{controlId:Gg,controlType:o(()=>qu.ControlType.DynamicPage,"controlType")}})],uo.prototype,"fitContent",2),h([Ut("listReportFilter")],uo.prototype,"filterBar",2),h([Ut("listReport")],uo.prototype,"table",2),h([Ut("listReportFooter")],uo.prototype,"footer",2),uo=h([Ur({id:qu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:qu.v2.FE_TEMPLATE_V2_LIST_REPORT})],uo);var bA=ne(le());var li=class{};o(li,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],li.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.1"})],li.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],li.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],li.prototype,"navToListOnSave",2),h([Ut("header")],li.prototype,"header",2),h([Ut("sections")],li.prototype,"sections",2),h([Ut("layout")],li.prototype,"layout",2),h([y({manifest:{path:o(t=>Tm(t),"path")}}),C({since:"1.77.0"})],li.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],li.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:zs}}),C({since:"1.71.0"})],li.prototype,"globalTableSettings",2),li=h([Ur({id:bA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:bA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],li);function N3(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 a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(N3,"importDateSettingsFieldsOVP");function x1(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&&N3(e,t),t}o(x1,"importDateSettingsOVP");function I1(e){let t={};return t.dateSettings=x1(e.filterSettings),t}o(I1,"importFilterSettings");function L3(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 a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(L3,"exportFilterFields");function O1(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&&L3(t,n,e))}o(O1,"exportFilterSettings");var zt=class{};o(zt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:I1,export:O1}}),C({since:"1.80.0"})],zt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"resizableLayout",2),zt=h([Ur({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],zt);var AA=class AA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(AA,"MetadataFactory");var Ml=AA;var Zn=ne(le());var R3={},F3={Table:ac,ResponsiveTableWithMultiSelect:ac,ResponsiveTableWithInlineDelete:ac},D3={[Zn.v2.CardSettingsType.listCardSettings]:Sl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Sl,[Zn.v2.CardSettingsType.analyticalCardSettings]:Pl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:Pl,[Zn.v2.CardSettingsType.stackCardSettings]:yu,[Zn.v2.CardSettingsType.linkListCardSettings]:vu,[Zn.v2.CardSettingsType.tableCardSettings]:Cl,[Zn.v2.CardSettingsType.tableCardSettingsv4]:Cl},_3={[Zn.SAPUI5_VIEW_CLASS]:Hu,[Zn.SAPUI5_FRAGMENT_CLASS]:Bu,Table:yc,ObjectPageResponsiveTableWithMultiSelect:yc,ObjectPageResponsiveTableWithInlineDelete:yc},V3={[Zn.PageTypeV2.AnalyticalListPage]:R3,[Zn.PageTypeV2.ListReport]:F3,[Zn.PageTypeV2.ObjectPage]:_3,[Zn.PageTypeV2.OverviewPage]:D3},SA=class SA extends Ml{constructor(){super(mA,EA,V3)}};o(SA,"MetadataInstanceFactoryV2");var _i=SA;function w3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(w3,"importFilterBar");function PA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=io(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};yh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&vh(e,n,s)}o(PA,"importFlexChangesOfTableAndColumns");function M3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[zg]&&t[Jg]&&(a=JSON.parse(JSON.stringify(t[zg])),a.properties={...a.properties,...t[Jg].properties}),Dn(n.table,i.manifest,a,r,i.logger),PA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(M3,"importTable");function k3(e,t,n,i){let r=e.jsonSchema.definitions,a=bh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Eh(t,n,r),M3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=us(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}w3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=us(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(k3,"addSettings");function Ph(e){if(nn(),!_l(e))return;let n=new _i,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=Dl(e.manifest[Qt.ManifestSection.generic].pages,r);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return k3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&Th(i,s,e.jsonSchema,e.logger)}),Fl(i,e,a,Qt.PageTypeV2.ListReport),Ah(i),i}o(Ph,"createListReportConfig");var Ct=ne(le());function U3(e,t,n,i){var p,g;let r=bh(e.manifest,i),a=e.jsonSchema.definitions;Eh(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),PA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let v=us(m);t.table.toolBar.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=us(m);t.footer.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(U3,"addSettings");function Ch(e){if(nn(),!_l(e))return;let n=new _i,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=wl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return U3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&Th(i,s,e.jsonSchema,e.logger)}),Fl(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Ah(i),i}o(Ch,"createAnalyticalListPageConfig");var Ee=ne(le());var Yu=require("@sap-ux/vocabularies-types/vocabularies/UI");var $3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function B3(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(`${Yu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Yu.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}o(B3,"getSingleSelectorIdPart");function H3(e){let t,n=e.split(":::");if(n.length===1)t=B3(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(`::${Yu.UIAnnotationTerms.LineItem}`,`/@${Yu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(H3,"getFacetID");function G3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=io(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=H3(v);v=yA(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){se(n,{severity:Ee.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(G3,"prepareFlexChanges");var W3=o(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 K3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&hA(i,t,r)}o(K3,"addFlexChangeToColumns");function N1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Ee.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?K3(a,p,r.properties,n):yh(n,p,r))}}o(N1,"importFlexChangesOfTable");function X3(e,t){return e.facetId==="template"&&t}o(X3,"isStandardActionFlexChange");var L1=o((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,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function Q3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(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&&L1(u,r.split("::"))&&s,v=e.title&&L1(u,e.title.split("::"),!0),A=!t.facetId&&$3.includes(t.controlType),b=X3(t,l);return p||g||m||v||A||b}o(Q3,"matchSelector");function q3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),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;Q3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(q3,"importFlexChanges");function Y3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Xg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(Y3,"checkDeprecatedProperties");function z3(e,t,n,i,r,a,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,a,n,u),p}o(z3,"importManifestSetting");function Vi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=zn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let v=n.properties[g].$ref.split($)[1],A=e.jsonSchema.definitions[v];N1(i.flexChanges,g,t,r,A,l)}else N1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);q3(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&z3(m,i.pageKeys,e,t,g,s,r)}}o(Vi,"transferSettingsAndFlexChanges");function F1(e,t,n,i){let r=Yi(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=`${u0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Zg}${r}`;break}}return r.replace(/@/g,"")}o(F1,"getActionId");function J3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=F1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Vi(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(J3,"fillStandardActions");function xh(e,t,n,i,r,a){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=us(p),m=F1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Vi(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]}}J3(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(xh,"fillActions");function Z3(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${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,"")}::${a}`:`${t.title}::${a}`;Vi(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}o(Z3,"fillFields");function e7(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}o(e7,"prepareTableSchema");function t7(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];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=e7(p,t,m);Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(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 b=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");xh(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(t7,"fillTableInConfig");function n7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?qg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Fl(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(n7,"fillCustomColumnsInConfig");function i7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];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)&&(Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(i7,"fillChartSection");function r7(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Vi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(r7,"fillHeaderSection");function o7(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&&Vi(e,n[t.id],t.schema,i,{title:t.title});let a=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");a!=null&&a.properties&&xh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Z3(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]}o(o7,"fillFormSection");function R1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Vi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,CA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(R1,"fillSubSection");function CA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:W3(t[l]),schema:t[l],title:Tb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],t7(e,p,n,i,r),n7(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],i7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],o7(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],R1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],r7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],R1(e,p,n,i,r))}}o(CA,"fillSectionsInConfig");function a7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Vi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(a7,"fillCustomSectionsInConfig");function s7(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Vi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Vi(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>"];Vi(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&xh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&xh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Vi(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;CA(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;CA(e,u.properties,v,n.sections,t)}let p=C1(e.manifest,e.entitySet);return a7(p,n,t,i,e),n}o(s7,"fillConfig");function Ih(e){nn();let t=_l(e);if(!t)return;let n=e.entitySet,i=[],r=vc(t,e.entitySet,i);if(Vl(r,e.logger,n),!r)return;let a=G3(e.flex,n),s=new _i;return s7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Ih,"createObjectPageConfigV2");function Nh(e,t){var n,i;return(n=e.component)!=null&&n.name?jg(la((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Nh,"generateId");function c7(e,t,n,i){e.navigation={};let r=D1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Nh(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(c7,"getPageConfigsAndNavigations");function D1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Nh(a,r);if(!s)continue;let l={pageType:la((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ph(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ch(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ih(p)}a.pages&&c7(l,a,t,n)}return n}o(D1,"getPagesAndConfigs");var xA=class xA extends Qa{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Nh(n[i],i),a=new qa,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,D1(n,t),a)}};o(xA,"V2AppProvider");var Oh=xA;function zu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Nh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=zu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(zu,"getPages");var bc=ne(le());var jo=ne(le());var OA=ne(BT());var _t=ne(le());var l7=["colorPalette","tabs"];function f7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(f7,"createCard");function _1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),_1(e,n.join("|"))}return t}o(_1,"findAvailableId");function Ju(e,t,n,i,r,a,s){i!=null&&i.properties&&IA(e,t,n,i.properties,r,a,s)}o(Ju,"transferManifestEntriesOVP");function Tc(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(Tc,"assignReflectMetadataRules");function u7(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=Tc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(u7,"processAnyOfDefinitionsOfOVP");function p7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!l7.includes(i)?t[i]=(0,OA.default)(t[i]||{},r||{},{arrayMerge:hb}):t[i]=r}o(p7,"checkSyncRuleForExport");function d7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,OA.default)(l.settings||{},r||{},{arrayMerge:hb});else if(r!==void 0){let u=e.manifest.export;p7(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(d7,"transferToManifest");function g7(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Tc(e.factory,i[0],e.currentObject[t],"CustomCard"),f7(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ju(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(g7,"transferCards");function m7(e,t){if(t==="cards")g7(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Tc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],IA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],IA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(m7,"exportOfObject");function IA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!ru(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=u7(g)):u&&typeof u=="object"&&i[l]&&m7(g,l),p!=null&&p.manifest&&d7(p,a,l,t,u,e)}}o(IA,"processProperties");function h7(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=s0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=c0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(h7,"evaluateFlexRule");function y7(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(y7,"exportConfigValueToManifest");function v7(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)y7(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ha(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(v7,"evaluateManifestRule");function T7(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(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(T7,"getManifestPathOfSections");function b7(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}o(b7,"getManifestPathOfTable");function E7(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=T7(t,a,n,e,r):t[0]===_t.PropertyName.table?a=b7(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(E7,"getManifestPath");function A7(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)h7(e,i,t,r,a,n,s);else if(t.manifest){let u=E7(e,i,t,n,a);v7(e,u,t,s,n)}}o(A7,"evaluateExportRule");function S7(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Lm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Lm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(S7,"deleteObsoleteColumn");function P7(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=w0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,S7(r,e,n))}o(P7,"deleteObsoleteColumnsFromFragment");function C7(e,t,n,i,r){let a={};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}=Rm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(C7,"clusterConfigColumnsByPath");function V1(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 _t.v2.TableColumnExtensionTypeV2){let{path:u}=Rm(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};try{P7(p)}catch(g){e.logger.error(g.message)}}if(t){let l=C7(t,n,e.v2Page,s,r);for(let u in l)nE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(V1,"transferColumnExtensions");function x7(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=_1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var b;return(b=A.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),v=e.appSchema.definitions[m[m.length-1]];ps(e,t[p],i,[...r,s[p]],v)}let u=Bn(e.exportResults.manifest,Ib());for(let p in u)TA(p,l)&&!s.includes(p)&&delete u[p]}o(x7,"transferManifestExtensions");function I7(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(I7,"getSectionId");function O7(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Fo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ps(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(O7,"transferIndexTable");function N7(e,t,n,i,r,a){let s,l=qg(e.$ref);l&&(s={target:l,key:I7(t,n)}),V1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(N7,"transferCustomColumns");function L7(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ps(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(L7,"handleAnyOfDefinitions");function R7(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")x7(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){N7(l,t,s,e,n,a);return}else a?ps(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&L7(l,e,s,n==null?void 0:n[r],r,i,t)}o(R7,"transferComplexProperty");function ps(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!ru(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Wg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Fo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(A7(e,g,t,[...i],p,a,l),O7(s,e,a,l,p,i),s===void 0||typeof s=="object")R7(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){V1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ps,"transferManifestEntriesAndFlexChange");function w1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Tc(r,i,n[i],s),a.push(i),NA(r,n[i],e,l.properties,a)}o(w1,"transferSettingsOfRef");function F7(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);w1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${jo.v2.cardTemplateSettingsMap[e.template]}`.split($);w1(i,l,e,t,r,a)}}o(F7,"processPropertiesOfObject");function D7(e,t,n,i,r,a){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){se(i.logger,{severity:jo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Bg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&F7(e,t,r,i,a,n)}o(D7,"processOvpProperty");function NA(e,t,n,i,r){for(let a in i)D7(t,a,r,n,i,e)}o(NA,"processOvpProperties");function _7(e,t,n){NA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[jo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[jo.ManifestSection.ovp].cards[i].template,a=jo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Tc(n,a,{},"CustomCard"),e.cards=Tc(n,a,e.cards,"CustomCard"),NA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(_7,"addSettings");function Lh(e){let t=new _i,n=t.createPageInstance(jo.PageTypeV2.OverviewPage);return e.jsonSchema&&_7(n,e,t),n}o(Lh,"createOverviewPageConfig");var LA=class LA extends Qa{constructor(t){let n={},i=t.manifest[bc.ManifestSection.ovp],r=new qa,a=Dt(bc.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(bc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:bc.PageTypeV2.OverviewPage,config:Lh(l),entitySet:i.globalFilterEntitySet},p=jg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(LA,"V2OvpProvider");var Rh=LA;var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ne(le()),M1=require("path");function V7(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(V7,"sortByPropertyIndex");function Zu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(V7())}o(Zu,"sortPropertiesRecords");function w7(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}o(w7,"getExtensionText");function RA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(RA,"addExtensionToSortedArray");function M7(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])}o(M7,"addRemainingTargetByBefore");function k1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=w7(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(k1,"getExtensionDetails");function FA(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=k1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(A=>A[0]===g.position.anchor);v>-1?(RA(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:wi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&M7(e,p,g,n,m)}else r&&(RA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?FA(e,t,n,i):s>0&&FA(e,t,n,i,!0)}o(FA,"adjustCustomExtReferringToCustomExt");function k7(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(k7,"getExtensionAnchor");function U7(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(U7,"getLocalExtensionsToSkip");function j7(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-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)!==te.v4.Placement.Before))}),s>-1?s:0}o(j7,"getExtensionIndexByMergedApproach");function $7(e,t,n,i,r=!1){return r?j7(e,t,n):n.findIndex(a=>a[0]===i)}o($7,"getExtensionIndex");function B7(e,t,n,i,r){se(e,{severity:wi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(B7,"handleInvalidExtension");function ya(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=U7(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=k1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){B7(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=k7(g,s);if(v){let A=$7(g,e,t,v,a);A>-1&&(RA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&FA(l,n,t,r),t}o(ya,"addExtensionToArray");function DA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(DA,"addEnumForProperties");function H7(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];DA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(H7,"addColumnPropertyIndexAndEnum");function Ec(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,b,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Zu(l),p=a?a.replace(/::/g,"/"):`@${$o.UIAnnotationTerms.LineItem}`,g=(O=(b=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=ya(g,u,i,void 0,n)),H7(u,e,l,i);let m={};u.forEach(([F,U])=>m[F]=U),e.definitions[s].properties=m}o(Ec,"addCustomColumnDefinition");function G7(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(G7,"determineActionDefinitionName");function W7(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=tc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(W7,"addTargetAndKeysOfAction");function K7(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=G7(e),l=Si(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=$n(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=ro(i),W7(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let v=bt(s,dt(g),e.appSchema);v[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(K7,"addActionRecordToSchema");function X7(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ua(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Si(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=ro(s),g[l]=m,sm(s,g,l)}}o(X7,"addLineItemRecordToSchema");function _A(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===$o.UIAnnotationTypes.DataFieldForAction||s.$Type===$o.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))K7(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===$o.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;X7(e,l,u,a,i)}a++})}o(_A,"appendLineItemsToSchema");function Ac(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=om(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);_A(e,r,a,void 0,t)}o(Ac,"addLineItemsTypeToSchema");function Sc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,v,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${$o.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 b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;pa(s,b)}}o(Sc,"addFragmentEnumForAnchor");function po(e,t,n=te.DefinitionName.CustomActionPosition){Ka(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Fh(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(e[s].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Fh,"findPageV4");function U1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(U1,"alignSchemaWithTemplateType");function va(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,b,O,F,U,K,j;let s=e.definitions[r];if(!s)return;let l=Zu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${$o.UIAnnotationTerms.FieldGroup}`:u=`@${$o.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(j=(K=(U=(F=t.options)==null?void 0:F.settings)==null?void 0:U.controlConfiguration)==null?void 0:K[u])==null?void 0:j.actions,p&&(l=ya(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(va,"addCustomActionDefinition");function Dh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,b,O,F;let a=e.definitions[r];if(!a)return;let s=Zu(a),l;[te.DefinitionName.CustomHeaderAction,te.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=(F=(O=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=ya(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][te.SchemaTag.propertyIndex]=U;s.forEach(([U,K])=>u[U]=K)}e.definitions[r].properties=u}o(Dh,"addHeaderFooterCustomActionDefinition");function Pc(e,t,n){let i=Hg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Hg(i,[t]);if(!r){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Pc,"getManifestPage");function Cc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,M1.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}}}}}o(Cc,"getPageCustomExtensionFile");function ds(e,t,n,i){let r=Pc(n,t,i),a=Hg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Cc(e,r,n,"view",a):void 0}o(ds,"getPageCustomViewFile");function j1(e,t,n,i,r,a,s){var g,m,v,A,b,O,F,U,K,j,ae,Z;let l=Zu(t),u=new Map;if(l=l.map(re=>{let Pe=hm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,re[0]),[Pe.const,re[1]]}),a){let re=(b=(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:b[a];re&&"subSections"in re&&(l=ya(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(U=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:U.header;re&&"facets"in re&&(l=ya(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(j=(K=n.options)==null?void 0:K.settings)==null?void 0:j.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=ya(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Pe])=>{re=u.get(re)||re,p[re]=Pe}),t.properties=p}o(j1,"addCustomSectionDefinition");function $1(e,t,n){var l,u,p;let i=Zu(t),r=new Map;i=i.map(g=>{let m=hm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${$o.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ya(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o($1,"addCustomFilterFieldDefinition");var _=ne(le()),xc=require("@sap-ux/vocabularies-types/vocabularies/UI");var Q7=["header","filterBar","chart","table"],VA="@UI.LineItem";function wA(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=mr(e.fullyQualifiedName,xc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=Mg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=ro(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(wA,"addSelectionFields");function q7(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${xc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(q7,"getVisualFilters");function Y7(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}o(Y7,"getPropertiesIndex");function z7(e,t,n,i){var s,l,u,p,g,m;let r=Y7(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let A=n[v];if(!A.template){let b=a.properties[v]={$ref:$n(_.DefinitionName.VisualFilter,v)},O=r.indexOf(v);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let F=bt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(K=>K.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=U||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(z7,"addVisualFilters");function J7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},$1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ka(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(J7,"applyCustomFilterFields");function Z7(e,t,n,i){var l,u;let r=q7(n),a=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={},z7(e,t,r,a);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=wA(e,t,a,s),J7(t,s,n)}o(Z7,"addFilterBar");function B1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.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=dt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=Si(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.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++})}}o(B1,"defineActions");function H1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?ul(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(H1,"findTheRightVisualization");function eX(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(eX,"analyzeChartAnnotation");function tX(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=H1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=VA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(tX,"analyzeSPVforView");function kl(e,t,n,i,r,a){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}=H1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return tX(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=VA,m=`/${s}/@${xc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=VA;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}=eX(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})`}}o(kl,"analyzeViewAnnotation");function nX(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 a=t.split(_.UIVOCABULARYDOT)[1],s=i[a].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"}]}o(nX,"addALPChartView");function iX(e,t,n,i,r,a){var U,K,j,ae,Z,re,Pe,D;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ae=(j=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:j[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=kl(l,s,n.serviceAVT,"primary",void 0,n.logger);nX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,B1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=kl((Pe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Pe[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];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 b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ac(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Ec(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;va(e,r,n.logger,void 0,F),po(e,F,_.DefinitionName.CustomActionPosition)}o(iX,"addALPViews");function rX(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 B1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(rX,"addViewChartDefinitions");function oX(e,t,n,i,r,a){let s=rX(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:a||l,title:l}}o(oX,"addViewChart");function aX(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(_.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:`${$}${a}`,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={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Ac(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(aX,"addViewLineItems");function sX(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}]}o(sX,"addTagsToView");function cX(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(cX,"getTargetEntityType");function lX(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${xc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=bt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Wa(l.properties.position,_.DefinitionName.ViewPosition,r),bt(_.DefinitionName.ViewPosition,r,e.appSchema),Ec(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Sc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;va(e.appSchema,i,t.logger,p,u,s),bt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,po(e.appSchema,u,g)}o(lX,"addViewCustomExtensions");function fX(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)aX(n,t,e,n.targetAnnotation,i),lX(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)oX(n,a,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}`}}}o(fX,"addLRViewParts");function uX(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=cX(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:b,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(K=>K.targetTypeName===b))==null?void 0:l.name);let F=dt(u[_.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};fX(v,s,U,n,i,m,u),sX(s,F,b,u)}}o(uX,"addLRViews");function pX(e,t,n,i,r,a){var g,m,v,A,b,O,F,U,K,j,ae,Z,re;let s=e.definitions[a],{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 Pe=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${dt(Pe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],Wa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Wa(ut.properties.columns,D),delete s.properties,Wa(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Ac(je);let an=(v=Pe.split("#"))==null?void 0:v[1],Wn=an?`@${xc.UIAnnotationTerms.LineItem}#${an}`:`@${xc.UIAnnotationTerms.LineItem}`;Ec(e,i,t.logger,void 0,D,Wn),Sc(e,D,i,void 0,Wn);let en=`${_.DefinitionName.Actions}<${D}>`,Lt=gm(e,D,_.DefinitionName.CustomTableAction);va(e,i,t.logger,yn(Lt),en,Wn),po(e,en,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Wa(s.properties.columns,_.DefinitionName.LineItems);let Pe=(O=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Pe&&!((K=(U=(F=i.options)==null?void 0:F.settings)==null?void 0:U.views)!=null&&K.paths)&&se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ac(D),Ec(e,i,t.logger),Sc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(j=i.options)==null?void 0:j.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=mr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;va(e,i,t.logger,void 0,ut),po(e,ut,_.DefinitionName.CustomActionPosition)}}o(pX,"adaptTableDefinition");function dX(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.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)}}o(dX,"getDefaultAnnotationPath");function gX(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,a=n.entityType,s=dX(t,n.entityType,n.templateType),l=U1(e,n);Z7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(pX(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],uX(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&&(iX(e,r,n,s,t,l),Sc(e,_.DefinitionName.LineItems,t))}o(gX,"addTableAndViews");function mX(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Dh(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,po(e,i,l)}o(mX,"addHeaderActions");function ep(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ri(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Ga(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Fh(l,n,e.entitySet,i);if(!u)return r;mX(r,u,e.logger),gX(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,Q7),r}o(ep,"generateListReportSchemaV4");var Pr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ne(le());var VV=ne(Qs()),wV=ne(_V()),MV=ne(TS());var kV=ne(le()),UV=ne(le());function $6(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o($6,"findElementByXMLPath");function jV(e,t){return e[t]?!1:(e[t]={},!0)}o(jV,"ensureObjectExists");function B6(e,t){let n={},i=yn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(B6,"getPropertiesFromRef");function H6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=jV(l,i),m=l[i];return Dc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(H6,"traverseDefaultAggregation");function G6(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}o(G6,"isDefaultAggregationAppliable");function Dc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=B6(s,n.$ref));for(let v in u){let A=u[v],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&G6(u,p)&&(l=H6(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,F=O.slice(r.length),U=$6(i,F);l=jV(a,v)||l;let K=a[v];l=Dc({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:K,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(Dc,"traverseSchema");function tf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,MV.parse)(e.fileContent),s=(0,wV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,VV.xml2js)(e.fileContent)}catch(r){se(n,{severity:UV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Bg(r)}),location:{path:e.dataSourceUri}})}return i}o(tf,"parseXML");function nf(e){return`${kV.DefinitionName.CustomExtensionFragment}<${e}>`}o(nf,"getCustomExtensionFragmentDefinitionKey");function Cy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Cy,"getRootElement");var LS=ne(le()),RS=ne(le());var Ip=ne(le());function bs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(bs,"getAttribute");function $V(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o($V,"getNodeByName");function W6(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}}o(W6,"resolveMetaPath");function CS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=bs(t,"contextPath")||i.contextPath,a=bs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=W6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(CS,"getEntityTypeResolution");function BV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(BV,"applyAnnotationPath");function K6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,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];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=ub(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(K6,"getTableLineItemAnnotationData");var HV={"sap.fe.macros.Chart":o(e=>{let t=CS(e);BV(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=CS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ri(Ip.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);wA(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=CS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ri(Ip.UIVOCABULARY,n);if(BV(t,r),t.annotationPath){let u=K6(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Ip.DefinitionName.LineItems};_A(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var GV=ne(le());var X6=new Map([["filterFields","SelectionField::"]]),Q6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Op={anchor:"anchor",placement:"placement",key:"key"};function q6(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[yn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Op.anchor in r&&Op.placement in r}return!1}o(q6,"isCustomExtensionSchema");function WV(e){let t=X6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=Q6.get(e),t&&(n.prefix=t)),n}o(WV,"getAnnotationPrefix");function Y6(e,t,n,i){let r=t.properties[n],a=WV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=bs(l,Op.key)||n,p=bs(l,Op.anchor),g=bs(l,Op.placement)||GV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}o(Y6,"getExtensionData");function z6(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=Y6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ya(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 a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(z6,"updatePropertyIndices");function J6(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=bs(e.subElements[s],"key")||r}return r}o(J6,"getCorrectedAnchorEnumKey");function Z6(e,t,n,i){var a,s;let r=WV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ka(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=J6(e,m.const,r,t.properties[m.const]))}}o(Z6,"applyEnumsForAnchors");function KV(e,t,n,i){q6(t,n)&&(i=i||e.name,z6(e,t,i),Z6(e,t,n,i))}o(KV,"handleExtensions");var pi=[];for(let e=0;e<256;++e)pi.push((e+256).toString(16).slice(1));function XV(e,t=0){return(pi[e[t+0]]+pi[e[t+1]]+pi[e[t+2]]+pi[e[t+3]]+"-"+pi[e[t+4]]+pi[e[t+5]]+"-"+pi[e[t+6]]+pi[e[t+7]]+"-"+pi[e[t+8]]+pi[e[t+9]]+"-"+pi[e[t+10]]+pi[e[t+11]]+pi[e[t+12]]+pi[e[t+13]]+pi[e[t+14]]+pi[e[t+15]]).toLowerCase()}o(XV,"unsafeStringify");var QV=require("crypto");var Iy=new Uint8Array(256),xy=Iy.length;function xS(){return xy>Iy.length-16&&((0,QV.randomFillSync)(Iy),xy=0),Iy.slice(xy,xy+=16)}o(xS,"rng");var qV=require("crypto"),IS={randomUUID:qV.randomUUID};function eQ(e,t,n){if(IS.randomUUID&&!t&&!e)return IS.randomUUID();e=e||{};let i=e.random||(e.rng||xS)();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 XV(i)}o(eQ,"v4");var OS=eQ;var NS="sap.fe.macros",tQ=["id","key","title","text","label","header"];function YV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(YV,"getElementName");function nQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(nQ,"isElementWithNamespace");function iQ(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(iQ,"getDependencies");function rQ(e,t){let n="",i=e.attributes||[];for(let r of tQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(rQ,"getViewNodeDescription");function oQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(oQ,"findAvailableName");function zV(e,t){if(e.properties={},e.$ref){let n=yn(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}}o(zV,"prepareSchemaProperties");function aQ(e,t,n){t.properties||zV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(aQ,"handleAttributes");function sQ(e){e.type===RS.MacrosPropertyType.Control&&(e.internalId=OS())}o(sQ,"applyIdForMacros");function cQ(e,t,n){var i,r;try{(r=(i=HV)[e])==null||r.call(i,t)}catch{se(n,{severity:LS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(cQ,"callAnnotationHandler");function lQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===RS.MacrosPropertyType.Control&&(e.controlName=n)}o(lQ,"updateMetadataByReference");function fQ(e,t,n,i){var v,A,b,O,F;let r=n.schema;t.properties||zV(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?oQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${NS}.${i}`,`${NS}.table.${i}`,`${NS}.filterBar.${i}`];let m=!1;for(let U of g){let K=(F=r.definitions)==null?void 0:F[U];if(typeof K!="object")continue;lQ(u,K,U);let j=rQ(e,i),ae={$ref:BF(U),description:j,propertyIndex:n.index,metadata:u};aQ(e,ae,r),t.properties[p]=ae,m=!0,cQ(U,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(sQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}o(fQ,"addControlToSchema");function JV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}JV(r,t)}}o(JV,"populateUsedDefinitionKeys");function uQ(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}o(uQ,"isElementAddableToSchema");function pQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!$V(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(pQ,"getDefaultAggregation");function dQ(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,ZV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:YV(s),index:a}]},i)}}o(dQ,"handleSubElementsOfXMLNode");function ZV(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[yn(t.$ref)]:t;if(nQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&uQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),O=fQ(e,t,n,b[b.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),JV(t,i));let p=pQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),dQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)KV(A.node,A.schema,n.schema,A.name)}o(ZV,"handleXMLNode");function gQ(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}o(gQ,"getMacrosPrefixes");function _c(e,t,n,i){let r=tf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:LS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=iQ(l),p=gQ(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,ZV(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:YV(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(_c,"generateMacrosSchemaDefinition");function ew(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&&ew(i.subSections,t)}}o(ew,"populateTemplates");function tw(e,t,n,i){var s,l,u;let r=Pc(n.manifest,i),a=[];ew(((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)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=nf(p);e.definitions[m]=g;let v=Cc(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:b={}}=_c(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(tw,"resolveFragments");var mQ=["header","layout","sections","footer"],hQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],FS="Custom Action";function DS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=fm(t.item,e),p=ua(t.item),g=t.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,v=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Si(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=ro(t.item),v[N.SchemaTag.propertyIndex]=s,v[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&v[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),v[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),v[N.SchemaTag.actionType]=n,v[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(DS,"addSingleHeaderActionV4");function nw(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(nw,"addStandardHeaderAction");function iw(e,t,n,i,r,a){let s=ua(e.item),l=Si(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(iw,"addSingleFooterAction");function yQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Pr.UIAnnotationTypes.DataFieldForAction||i.$Type===Pr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(hQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(yQ,"groupByCriticality");function vQ(e,t,n,i,r){for(let a=0;a<e.length;a++)DS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(vQ,"addCriticalActions");function TQ(e,t,n,i,r,a){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&&(DS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(TQ,"addCopyAction");function bQ(e,t,n,i,r,a){for(let s of e)DS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(bQ,"addUncriticalActions");function EQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(EQ,"addRelatedAppsButton");function rw(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(rw,"setAnnotationPathFromEntitySetOrEntityType");function AQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?yQ(n):{};if(vQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=v0(r.entitySet),g=T0(r.entitySet);if(nm(r.entitySet)&&g){let m=nw("Edit",t,i,s.length);rw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=nw("Delete",t,i,s.length+1);rw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;TQ(l,r.serviceAVT,t,e,i,u),bQ(l,r.serviceAVT,t,e,i,u),sw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),EQ(i)}o(AQ,"addHeaderActionCallBackV4");function SQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Pr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];iw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];iw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(SQ,"addFooterActionCallBackV4");function PQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Ec(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;bt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Sc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&DA(m,l)}o(PQ,"addCustomColumnsOP");function CQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=FS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;va(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;bt(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,po(e,p,m)}o(CQ,"addTableCustomActionsOP");function sw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=FS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Dh(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;bt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,po(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(sw,"addHeaderFooterCustomActionsOP");function xQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=FS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;va(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,po(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(xQ,"addFormCustomActionsOP");function IQ(e,t,n,i,r,a,s){let l=hl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=bt(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Ga(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Ac(v,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),PQ(n,a,l,t,s),CQ(n,a,l,t,s),g}o(IQ,"handleLineItem");function cw(e,t,n,i,r,a,s){s&&(s.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,t)});let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);Ba(e,l,hl(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(N.DefinitionName.ObjectPageTable,t);let u=IQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(cw,"handleSectionTable");function OQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),Ba(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=cm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=hl(n);bt(N.DefinitionName.CustomFormActionOP,p,r),xQ(r,t,p,g,s)}}o(OQ,"handleFormIdentification");function ow(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);fl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=nc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(ow,"handleHeaderFacet");function NQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=Si(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:$n(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let v=bt(N.DefinitionName.ObjectPageToolBarAction,dt(g),n);v[N.SchemaTag.annotationPath]=mm(l),v[N.SchemaTag.dataType]=ro(l),v.properties={},a++})}return r}o(NQ,"handleChartActions");function LQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=mm(e),r[N.SchemaTag.dataType]=nc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=$n(N.DefinitionName.ObjectPageToolBarActions,t);let s=NQ(e,t,n,i);return{chart:r,chartActions:s}}o(LQ,"handleChart");function lw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,t)});let a=bt(N.DefinitionName.ObjectPageSectionChart,t,n);fl(e,a,t),a[N.SchemaTag.annotationPath]=mm(e),a.properties.chart.$ref=$n(N.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=LQ(e.target||e,t,n,r);return{sectionChart:a,chart:s,chartActions:l}}o(lw,"handleSectionChart");function aw(e,t,n,i,r,a){var m;let s,l,u;if(!(e!=null&&e.target)){se(r.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=e.target.PresentationVariant?e.target.PresentationVariant.Visualizations:e.target.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="@"+lm(`${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,r.serviceAVT),u=s;else{s=p[0],l="@"+lm(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let A=r.entityType.navigationProperties.find(O=>O.name===g).targetType,b=l==null?void 0:l.split(N.UIVOCABULARYDOT)[1];u=b&&((m=A==null?void 0:A.annotations)==null?void 0:m.UI[b])}if(s){let v=l.split(N.UIVOCABULARYDOT)[1],A=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0],b=g?`${g}::${l}`:l;if(v.startsWith(N.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,b)};let{sectionChart:O,chart:F}=lw(s,b,n,void 0,e.entityType);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}else if(v.startsWith(N.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,b)};let{sectionTable:O,table:F}=cw(e,b,n,{target:u,entityType:e.entityType},r,a);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),delete O[N.SchemaTag.isViewNode],F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}}}o(aw,"handleSectionPresentationVariant");function RQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(RQ,"containsCollectionFacet");function FQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ys(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(FQ,"createCustomSubSectionReference");function DQ(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=bt(n,p,e),m=bt(N.DefinitionName.ObjectPageCustomSectionActions,p,e),v=bt(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${A}`};let b=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},bt(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${O}`,v[N.SchemaTag.isViewNode]=!0,va(e,t,i,b,A,p),po(e,A,O)}}o(DQ,"applyCustomActionsToCustomSections");function _S(e,t,n,i,r,a,s){var m,v,A,b,O;let l=!1,u;a&&s?(l=!RQ(a),u=FQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},j1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Ka(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},DQ(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(b=(A=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:A.body)==null?void 0:b.sections)==null?void 0:O[s],U=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let j=g.oneOf[K];U[j.const]||(j.hidden=!0)}}}o(_S,"applyCustomSections");function _Q(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Ro(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)VS(a,e.facets,v,g,n,r,s,m);u&&_S(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(_Q,"handleCollection");function VS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${hl(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:{aw(u,n,r,i,e,s);break}case N.FacetBase.SelectionPresentationVariant:{aw(u,n,r,i,e,s);break}case N.FacetBase.CollectionFacet:{_Q(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];cw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{OQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{ow(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?ow(u,n,i,r,p):a===N.SectionType.Section&&lw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{cu(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(VS,"addSection");function VQ(e,t,n){let i=Ug(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)VS(e,i,a,r,t,N.SectionType.Section,n);_S(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(VQ,"addSections");function wQ(e,t,n,i){let r=kg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)VS(e,r,s,a,t,N.SectionType.HeaderSection,i);_S(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(wQ,"addHeaderSections");function MQ(e,t,n){let i=e.entityType;dm(t,i),pm(t,i,e,AQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Pr.UIAnnotationTerms.HeaderFacets}`),wQ(e,t,i,n)}o(MQ,"addHeader");function Np(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Fh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(MQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Pr.UIAnnotationTerms.Facets}`),Ys(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{tw(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}VQ(e,r,l),um(r,e,N.FioriElementsVersion.v4,SQ),sw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Do(r,mQ),r}o(Np,"generateObjectPageSchemaV4");function wS(e,t){return JSON.parse(JSON.stringify(t))}o(wS,"generateFreestyleSchemaV4");var Xr=ne(le());function MS(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=Vc(p,s,t,r),v={templateType:Xr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Xr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Np(v,e,s,l)}o(MS,"generateObjectPageInterfaceV4");function Oy(e,t,n,i,r,a,s){nn();let l=No(i,r),{entitySet:u,entityType:p}=Vc(l,s,n,r),g={templateType:e,fioriElementsVersion:Xr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Xr.TemplateType.ListReportObjectPageV4?Xr.v4.FE_TEMPLATE_V4_LIST_REPORT:Xr.v4.FE_TEMPLATE_V4_ALP;return ep(g,t,m,s)}o(Oy,"generateListReportInterfaceV4");function kS(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Xr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return wS(l,t)}o(kS,"generateFreestyleInterfaceV4");function US(e,t,n,i,r,a,s){let l={};if(Ys(a,Xr.Features.BuildingBlocks)){let u=No(r,s),p=ds(i||[],t,n,s);l=p!=null&&p.file.fileContent?_c(e,p,u,s):{}}return l}o(US,"generateFPMCustomPageInterfaceV4");var Mc=require("@sap-ux/vocabularies-types/vocabularies/UI"),gw=ne(le());var wc=ne(le());var pw=new Map([[wc.PageTypeV2.ListReport,wc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[wc.PageTypeV2.ObjectPage,wc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),fw=o((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"),uw=o(e=>{var t;for(let[n,i]of pw)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),kQ=o((e,t)=>{let n="";for(let[r,a]of pw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),dw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${wc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=uw(n);i&&(t[i]={},fw(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=kQ(s,i);e[l]||(e[l]={}),fw(r[s],e[l])}for(let s in e){let l=uw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ry=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Fy=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),UQ=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),qr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),Dy=o((e,t,n)=>qr(e)+`/@${Mc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),_y=o(e=>qr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Es=o((e,t,n,i)=>qr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),jS=o((e,t,n,i)=>_y(e)+`/filterFields/${i}`,"getFilterFieldPath"),$i=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?qr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),di=o((e,t,n,i,r)=>r?$i(e,t,n,i,r):qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Vy=o((e,t,n,i,r)=>di(e,t,n,i,r)+gw.QUICKVARPATH,"getQuickVariantPath"),nr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?qr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),gi=o((e,t,n,i,r)=>r?nr(e,t,n,i,r):qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Yr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?qr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Cr=o((e,t,n,i,r)=>r?Yr(e,t,n,i,r):qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Bi=o((e,t,n,i)=>qr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>qr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),mi=o((e,t,n,i)=>Fy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),wy=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),yo=o((e,t,n,i)=>UQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),dn=o((e,t,n)=>qr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),of=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),As=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),xr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),af=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Ly=class Ly{};o(Ly,"ApplicationV4"),h([Ut("settings")],Ly.prototype,"settings",2);var Ny=Ly,Qr=class Qr{};o(Qr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Qr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Qr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Qr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Qr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Qr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],Qr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Qr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Qr.prototype,"path",2),h([y(dw)],Qr.prototype,"controllerExtensions",2);var rf=Qr;var ye=ne(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.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=Lo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(pl(m,l,g,e,a,r),Qg(u,l,v,s))}}}o(At,"importSettingsOfObject");var OC={};Ks(OC,{ALPChart:()=>GP,ALPTable:()=>mf,ActionAfterExecutionConfiguration:()=>fC,ActionAfterExecutionConfigurationFooter:()=>sP,ActionAfterExecutionConfigurationForm:()=>uP,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>EP,ActionAfterExecutionConfigurationToolBarLR:()=>EC,Actions:()=>yC,AdditionalSemanticObject:()=>cC,CommonHeaderFacetSettings:()=>Rs,CommonViewSettings:()=>gf,CustomActionPosition:()=>PC,CustomActionPositionOP:()=>aC,CustomFilterField:()=>GS,CustomFilterFieldPosition:()=>HS,CustomFooterActionOP:()=>fP,CustomFooterActionPositionOP:()=>lP,CustomFormActionOP:()=>yP,CustomHeaderAction:()=>qS,CustomHeaderActionOP:()=>PP,CustomHeaderActionPosition:()=>Dp,CustomHeaderActionPositionOP:()=>SP,CustomSectionActionOP:()=>nP,CustomSectionActionPositionOP:()=>tP,CustomTableAction:()=>CC,CustomTableActionOP:()=>sC,FilterBar:()=>$S,FlexSettings:()=>xP,FooterActionV4:()=>cP,FormAction:()=>pP,Header:()=>KS,HeaderActions:()=>WS,HeaderSections:()=>FP,LRChartView:()=>WP,LRTableView:()=>KP,MultiTableModeV4:()=>QP,ObjectPageCustomHeaderSectionFlexSettings:()=>YS,ObjectPageCustomHeaderSectionFragment:()=>zS,ObjectPageCustomSectionActions:()=>JS,ObjectPageCustomSectionFragment:()=>cf,ObjectPageCustomSubSectionFragment:()=>ZS,ObjectPageFooter:()=>rP,ObjectPageFooterActions:()=>iP,ObjectPageForm:()=>gP,ObjectPageFormActions:()=>dP,ObjectPageHeader:()=>TP,ObjectPageHeaderAction:()=>AP,ObjectPageHeaderActions:()=>vP,ObjectPageHeaderSectionAddress:()=>RP,ObjectPageHeaderSectionChart:()=>OP,ObjectPageHeaderSectionContact:()=>LP,ObjectPageHeaderSectionDataPoint:()=>NP,ObjectPageHeaderSectionForm:()=>IP,ObjectPageLayout:()=>UP,ObjectPageTable:()=>Wp,ObjectPageTableColumn:()=>bf,ObjectPageTableColumnAction:()=>tC,ObjectPageToolBarAction:()=>oC,PersonalizationType:()=>$P,PersonalizationTypeOP:()=>ZP,Position:()=>dC,PositionOP:()=>nC,QuickVariantSelectionV4:()=>HP,QuickVariantSelectionV4OP:()=>eC,RelatedApps:()=>lC,Table:()=>qP,TableColumn:()=>Yy,TableColumnAction:()=>uC,TableCreationModeOP:()=>JP,TableCustomColumn:()=>mC,TableCustomColumnOP:()=>iC,TableSettings:()=>Hy,TableViewExtension:()=>XP,TableViewSettings:()=>Bp,ToolBar:()=>vC,ToolBarAction:()=>AC,ViewCustomActionPosition:()=>xC,ViewPersonalizationType:()=>BP,ViewPosition:()=>gC,ViewTableColumn:()=>zy,ViewTableColumnAction:()=>pC,ViewTableCustomAction:()=>IC,ViewTableCustomColumn:()=>hC,ViewToolBarAction:()=>SC,VisualFilter:()=>BS,checkViewOrder:()=>YP,deleteCreationModeProperty:()=>Gp,deletePersonalizationProperty:()=>bo,exportCreationModeProperty:()=>Hp,exportPersonalization:()=>Xy,exportPersonalizationProperty:()=>To});function jQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(jQ,"exportVisualFilterValueList");var sf=class sf{};o(sf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],sf.prototype,"hideFilterBar",2),h([y({manifest:{path:_y}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"initialLayout",2),h([y({manifest:{path:_y}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"layout",2);var $S=sf,Lp=class Lp{};o(Lp,"VisualFilter"),h([y({manifest:{path:jS}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lp.prototype,"availability",2),h([y({manifest:{path:jS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:jQ,key:"visualFilter"}}),C({since:"1.93.0"})],Lp.prototype,"visualFilterValueList",2);var BS=Lp,Rp=class Rp{};o(Rp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"placement",2);var HS=Rp,Ss=class Ss{};o(Ss,"CustomFilterField"),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"label",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"property",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"template",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"required",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"position",2);var GS=Ss;var XS=class XS{};o(XS,"HeaderActions");var WS=XS,QS=class QS{};o(QS,"Header");var KS=QS;var Fp=class Fp{};o(Fp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"placement",2);var Dp=Fp,Ps=class Ps{};o(Ps,"CustomHeaderAction"),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ps.prototype,"text",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ps.prototype,"position",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ps.prototype,"press",2),h([y({manifest:{path:mi},generate:Yn}),C({since:"1.84.0"})],Ps.prototype,"visible",2),h([y({manifest:{path:mi},generate:Yn}),C({since:"1.84.0"})],Ps.prototype,"enabled",2);var qS=Ps;var My=class My{};o(My,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],My.prototype,"designtime",2);var YS=My,ir=class ir{};o(ir,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],ir.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],ir.prototype,"relativePosition",2),h([y({manifest:{path:xr},generate:oi}),C({since:"1.84.0"})],ir.prototype,"visible",2),h([y({manifest:{path:xr}}),C({since:"1.77.0"})],ir.prototype,"title",2),h([y({manifest:{path:xr}}),C({since:"1.77.0"})],ir.prototype,"subTitle",2),h([y({manifest:{path:xr,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],ir.prototype,"fragmentName",2),h([y({manifest:{path:xr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],ir.prototype,"templateEdit",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"stashed",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"flexSettings",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"requestGroupId",2),h([y({manifest:{path:xr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],ir.prototype,"controls",2);var zS=ir;var eP=class eP{};o(eP,"ObjectPageCustomSectionActions");var JS=eP,Cs=class Cs{};o(Cs,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Cs.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Cs.prototype,"relativePosition",2),h([y({manifest:{path:of}}),C({since:"1.77.0"})],Cs.prototype,"title",2),h([y({manifest:{path:of,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Cs.prototype,"fragmentName",2),h([y({manifest:{path:of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Cs.prototype,"controls",2);var cf=Cs,xs=class xs extends cf{};o(xs,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],xs.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],xs.prototype,"relativePosition",2),h([y({manifest:{path:af}}),C({since:"1.77.0"})],xs.prototype,"title",2),h([y({manifest:{path:af,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],xs.prototype,"fragmentName",2),h([y({manifest:{path:af,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],xs.prototype,"controls",2);var ZS=xs;var _p=class _p{};o(_p,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"placement",2);var tP=_p,Is=class Is{};o(Is,"CustomSectionActionOP"),h([y({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([y({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([y({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([y({manifest:{path:As},generate:oi}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([y({manifest:{path:As},generate:oi}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var nP=Is;var oP=class oP{};o(oP,"ObjectPageFooterActions");var iP=oP,aP=class aP{};o(aP,"ObjectPageFooter");var rP=aP;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var sP=Vp,ky=class ky{};o(ky,"FooterActionV4"),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],ky.prototype,"afterExecution",2);var cP=ky,wp=class wp{};o(wp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],wp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],wp.prototype,"placement",2);var lP=wp,Os=class Os{};o(Os,"CustomFooterActionOP"),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([y({manifest:{path:yo},generate:oi}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([y({manifest:{path:yo},generate:oi}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var fP=Os;var Mp=class Mp{};o(Mp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Mp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Mp.prototype,"enableAutoScroll",2);var uP=Mp,Uy=class Uy{};o(Uy,"FormAction"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var pP=Uy,mP=class mP{};o(mP,"ObjectPageFormActions");var dP=mP,hP=class hP{};o(hP,"ObjectPageForm");var gP=hP;var Ns=class Ns{};o(Ns,"CustomFormActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var yP=Ns;var bP=class bP{};o(bP,"ObjectPageHeaderActions");var vP=bP,lf=class lf{};o(lf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],lf.prototype,"editableHeaderContent",2),h([y({manifest:{path:Fy}}),C({since:"1.84.0"})],lf.prototype,"visible",2),h([y({manifest:{path:Fy}}),C({since:"1.84.0"})],lf.prototype,"anchorBarVisible",2);var TP=lf;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var EP=kp,jy=class jy{};o(jy,"ObjectPageHeaderAction"),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],jy.prototype,"afterExecution",2);var AP=jy,CP=class CP extends Dp{};o(CP,"CustomHeaderActionPositionOP");var SP=CP,Ls=class Ls{};o(Ls,"CustomHeaderActionOP"),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ls.prototype,"text",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ls.prototype,"position",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ls.prototype,"press",2),h([y({manifest:{path:mi},generate:oi}),C({since:"1.84.0"})],Ls.prototype,"visible",2),h([y({manifest:{path:mi},generate:oi}),C({since:"1.84.0"})],Ls.prototype,"enabled",2);var PP=Ls;var $y=class $y{};o($y,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>Dy(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],$y.prototype,"designtime",2);var xP=$y,Up=class Up{};o(Up,"CommonHeaderFacetSettings"),h([y({manifest:{path:Dy}}),C({since:"1.81.0"})],Up.prototype,"stashed",2),h([y({manifest:{path:Dy}}),C({since:"1.81.0"})],Up.prototype,"flexSettings",2);var Rs=Up,DP=class DP extends Rs{};o(DP,"ObjectPageHeaderSectionForm");var IP=DP,_P=class _P extends Rs{};o(_P,"ObjectPageHeaderSectionChart");var OP=_P,VP=class VP extends Rs{};o(VP,"ObjectPageHeaderSectionDataPoint");var NP=VP,wP=class wP extends Rs{};o(wP,"ObjectPageHeaderSectionContact");var LP=wP,MP=class MP extends Rs{};o(MP,"ObjectPageHeaderSectionAddress");var RP=MP,kP=class kP{};o(kP,"HeaderSections");var FP=kP;var By=class By{};o(By,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],By.prototype,"sectionLayout",2);var UP=By;var Qy=ne(le());var jP=ne(le());var $Q=o((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 vo(e,t,n,i,r,a){let s=Ry(e),l=$Q(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[jP.SchemaTag.key]===(a==null?void 0:a.key)||g[jP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function BQ(e,t,n,i,r,a){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+a)]=g:s[u]=g}return s}o(BQ,"fillNewlyOrderedViews");function YP(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=BQ(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(YP,"checkViewOrder");function Xy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Xy,"exportPersonalization");function To(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(To,"exportPersonalizationProperty");function bo(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}o(bo,"deletePersonalizationProperty");function zP(e,t,n,i,r,a){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=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(zP,"deleteView");function Hp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Hp,"exportCreationModeProperty");function Gp(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}o(Gp,"deleteCreationModeProperty");function mw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(mw,"importPersonalization");function hw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(hw,"determineIndexOfView");var ff=class ff{};o(ff,"PersonalizationType"),h([y({manifest:{path:di,export:To,delete:bo}})],ff.prototype,"column",2),h([y({manifest:{path:di,export:To,delete:bo}})],ff.prototype,"sort",2),h([y({manifest:{path:di,export:To,delete:bo}})],ff.prototype,"filter",2);var $P=ff,uf=class uf{};o(uf,"ViewPersonalizationType"),h([y({manifest:{path:$i,export:To,delete:bo}})],uf.prototype,"column",2),h([y({manifest:{path:$i,export:To,delete:bo}})],uf.prototype,"sort",2),h([y({manifest:{path:di,export:To,delete:bo}})],uf.prototype,"filter",2);var BP=uf,pf=class pf{};o(pf,"QuickVariantSelectionV4"),h([y({manifest:{path:Vy}})],pf.prototype,"paths",2),h([y({manifest:{path:Vy}})],pf.prototype,"hideTableTitle",2),h([y({manifest:{path:Vy}})],pf.prototype,"showCounts",2);var HP=pf,rr=class rr{};o(rr,"TableSettings"),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"type",2),h([y({manifest:{path:di,import:mw,export:Xy}}),C({since:"1.86.0"})],rr.prototype,"personalization",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],rr.prototype,"selectionMode",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],rr.prototype,"selectAll",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],rr.prototype,"selectionLimit",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],rr.prototype,"enableExport",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],rr.prototype,"quickVariantSelection",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],rr.prototype,"condensedTableLayout",2),h([y({manifest:{path:di}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:di}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:di}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"disableCopyToClipboard",2);var Hy=rr,Gy=class Gy{};o(Gy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:zP}})],Gy.prototype,"annotationPath",2);var GP=Gy,kc=class kc{};o(kc,"CommonViewSettings"),h([y({manifest:{path:vo,delete:zs}})],kc.prototype,"key",2),h([y({manifest:{path:Ry,import:hw,export:o((t,n)=>{YP(t,n)},"export"),delete:zP}})],kc.prototype,"index",2),h([y({manifest:{path:vo,delete:zs}})],kc.prototype,"annotationPath",2),h([y({manifest:{path:vo}})],kc.prototype,"entitySet",2);var gf=kc,or=class or extends gf{};o(or,"TableViewSettings"),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"type",2),h([y({manifest:{path:$i,import:mw}}),C({since:"1.86.0"})],or.prototype,"personalization",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectionMode",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectAll",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectionLimit",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],or.prototype,"enableExport",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"quickVariantSelection",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],or.prototype,"condensedTableLayout",2),h([y({manifest:{path:$i}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:$i}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"hierarchyQualifier",2),h([y({manifest:{path:$i}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"disableCopyToClipboard",2);var Bp=or;function HQ(e){return Bp}o(HQ,"getTableViewSettings");var jp=class jp extends Bp{};o(jp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],jp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var mf=jp,Wy=class Wy extends gf{};o(Wy,"LRChartView"),h([y({manifest:{path:vo},generate:Yn})],Wy.prototype,"visible",2);var WP=Wy,df=class df extends HQ(gf){};o(df,"LRTableView"),h([y({manifest:{path:vo}})],df.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:vo}})],df.prototype,"entitySet",2),h([y({manifest:{path:vo},generate:Yn})],df.prototype,"visible",2);var KP=df,Fs=class Fs{};o(Fs,"TableViewExtension"),h([y({manifest:{path:vo}})],Fs.prototype,"key",2),h([y({manifest:{path:Ry,import:hw,export:o((t,n)=>{YP(t,n)},"export"),delete:zP}})],Fs.prototype,"index",2),h([y({manifest:{path:vo}})],Fs.prototype,"label",2),h([y({manifest:{path:vo}})],Fs.prototype,"template",2),h([y({manifest:{path:vo},generate:Yn})],Fs.prototype,"visible",2);var XP=Fs,Ky=class Ky{};o(Ky,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],Ky.prototype,"showCounts",2);var QP=Ky,$p=class $p extends Hy{};o($p,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],$p.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$p.prototype,"initialLoad",2);var qP=$p;var hf=class hf{};o(hf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"inlineCreationRowsHiddenInEditMode",2);var JP=hf,yf=class yf{};o(yf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],yf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],yf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],yf.prototype,"filter",2);var ZP=yf,vf=class vf{};o(vf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"showCounts",2);var eC=vf,hi=class hi{};o(hi,"ObjectPageTable"),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"type",2),h([y({manifest:{path:dn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],hi.prototype,"creationMode",2),h([y({manifest:{path:dn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:Xy}}),C({since:"1.86.0"})],hi.prototype,"personalization",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"selectionMode",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"selectAll",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"selectionLimit",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],hi.prototype,"enableExport",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"quickVariantSelection",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],hi.prototype,"condensedTableLayout",2),h([y({manifest:{path:dn}}),C({since:"1.86.0"})],hi.prototype,"enableFullScreen",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"enablePaste",2),h([y({manifest:{path:dn}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],hi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:dn}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],hi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:dn}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],hi.prototype,"disableCopyToClipboard",2);var Wp=hi;var Kp=class Kp{};o(Kp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}})],Kp.prototype,"enableAutoScroll",2);var Qp=Kp,Tf=class Tf{};o(Tf,"ObjectPageTableColumn"),h([y({manifest:{path:Bi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Tf.prototype,"width",2),h([y({manifest:{path:Bi}}),C({since:"1.85.0"})],Tf.prototype,"availability",2),h([y({manifest:{path:Bi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Tf.prototype,"widthIncludingColumnHeader",2);var bf=Tf,rC=class rC extends bf{};o(rC,"ObjectPageTableColumnAction");var tC=rC,Xp=class Xp{};o(Xp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Xp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Xp.prototype,"placement",2);var nC=Xp,Ko=class Ko{};o(Ko,"TableCustomColumnOP"),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Ko.prototype,"position",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Ko.prototype,"header",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Ko.prototype,"template",2),h([y({manifest:{path:Bi}}),C({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Ko.prototype,"availability",2),h([y({manifest:{path:Bi}}),C({since:"1.85.0"})],Ko.prototype,"properties",2);var iC=Ko;var qy=class qy{};o(qy,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],qy.prototype,"enableOnSelect",2);var oC=qy,qp=class qp{};o(qp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],qp.prototype,"placement",2);var aC=qp,xa=class xa{};o(xa,"CustomTableActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],xa.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],xa.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],xa.prototype,"press",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],xa.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],xa.prototype,"enabled",2);var sC=xa;var Ef=class Ef{};o(Ef,"AdditionalSemanticObject"),h([y({manifest:{path:wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],Ef.prototype,"allowedActions",2),h([y({manifest:{path:wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Ef.prototype,"unavailableActions",2),h([y({manifest:{path:wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Ef.prototype,"mapping",2);var cC=Ef,Yp=class Yp{};o(Yp,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Yp.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],Yp.prototype,"additionalSemanticObjects",2);var lC=Yp;var zp=class zp{};o(zp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/afterExecution","path")}})],zp.prototype,"enableAutoScroll",2);var fC=zp,Af=class Af{};o(Af,"TableColumn"),h([y({manifest:{path:gi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Af.prototype,"width",2),h([y({manifest:{path:gi}}),C({since:"1.85.0"})],Af.prototype,"availability",2),h([y({manifest:{path:gi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Af.prototype,"widthIncludingColumnHeader",2);var Yy=Af,Sf=class Sf{};o(Sf,"ViewTableColumn"),h([y({manifest:{path:nr}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sf.prototype,"width",2),h([y({manifest:{path:nr}}),C({since:"1.85.0"})],Sf.prototype,"availability",2),h([y({manifest:{path:gi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sf.prototype,"widthIncludingColumnHeader",2);var zy=Sf,Jy=class Jy extends Yy{};o(Jy,"TableColumnAction"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Jy.prototype,"afterExecution",2);var uC=Jy,Zy=class Zy extends zy{};o(Zy,"ViewTableColumnAction"),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],Zy.prototype,"afterExecution",2);var pC=Zy,Jp=class Jp{};o(Jp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Jp.prototype,"placement",2);var dC=Jp,Zp=class Zp{};o(Zp,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var gC=Zp,Xo=class Xo{};o(Xo,"TableCustomColumn"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([y({manifest:{path:gi}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([y({manifest:{path:gi}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var mC=Xo,Qo=class Qo{};o(Qo,"ViewTableCustomColumn"),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],Qo.prototype,"position",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],Qo.prototype,"header",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],Qo.prototype,"template",2),h([y({manifest:{path:nr}}),C({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],Qo.prototype,"availability",2),h([y({manifest:{path:nr}}),C({since:"1.85.0"})],Qo.prototype,"properties",2);var hC=Qo;var TC=class TC{};o(TC,"Actions");var yC=TC,bC=class bC{};o(bC,"ToolBar");var vC=bC;var ed=class ed{};o(ed,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}})],ed.prototype,"enableAutoScroll",2);var EC=ed,td=class td{};o(td,"ToolBarAction"),h([y({manifest:{path:Cr}})],td.prototype,"enableOnSelect",2),h([y({manifest:{path:Cr}})],td.prototype,"afterExecution",2);var AC=td,nd=class nd{};o(nd,"ViewToolBarAction"),h([y({manifest:{path:Yr}})],nd.prototype,"enableOnSelect",2),h([y({manifest:{path:Yr}})],nd.prototype,"afterExecution",2);var SC=nd,id=class id{};o(id,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],id.prototype,"placement",2);var PC=id,Ia=class Ia{};o(Ia,"CustomTableAction"),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Ia.prototype,"text",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Ia.prototype,"position",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Ia.prototype,"press",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([y({manifest:{path:Cr},generate:Yn}),C({since:"1.84.0"})],Ia.prototype,"visible",2),h([y({manifest:{path:Cr},generate:Yn}),C({since:"1.84.0"})],Ia.prototype,"enabled",2);var CC=Ia,rd=class rd{};o(rd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"placement",2);var xC=rd,Oa=class Oa{};o(Oa,"ViewTableCustomAction"),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([y({manifest:{path:Yr},generate:Yn}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([y({manifest:{path:Yr},generate:Yn}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var IC=Oa;var FC={};Ks(FC,{FreestylePage:()=>LC,ListReport:()=>Ir,ObjectPage:()=>Eo});function GQ(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(a=>delete e[a])}o(GQ,"deleteAllALPViews");function WQ(){}o(WQ,"doNotExport");function KQ(){}o(KQ,"doNotImport");var Ir=class{};o(Ir,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:KQ,export:WQ,delete:GQ}})],Ir.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Ir.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Ir.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Ir.prototype,"defaultTemplateAnnotationPath",2),h([Ut("header")],Ir.prototype,"header",2),h([Ut("fe::FilterBar")],Ir.prototype,"filterBar",2),Ir=h([Ur({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Ir);var NC=ne(le());var Eo=class{};o(Eo,"ObjectPage"),h([Ut("header")],Eo.prototype,"header",2),h([Ut("layout")],Eo.prototype,"layout",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Eo.prototype,"variantManagement",2),h([Ut("sections")],Eo.prototype,"sections",2),Eo=h([Ur({id:`${NC.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:NC.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var RC=class RC{};o(RC,"FreestylePage");var LC=RC;var ev=ne(le());var XQ={ALPTableView:mf},QQ={ALPTableView:mf},qQ={Table:Wp,TableColumn:bf,ObjectPageCustomSectionView:cf,ActionAfterExecutionConfiguration:Qp},YQ={[ev.PageTypeV4.AnalyticalListPage]:XQ,[ev.PageTypeV4.ListReport]:QQ,[ev.PageTypeV4.ObjectPage]:qQ},DC=class DC extends Ml{constructor(){super(OC,FC,YQ)}};o(DC,"MetadataInstanceFactoryV4");var Na=DC;var _C=require("@sap-ux/vocabularies-types/vocabularies/UI");function VC(e,t,n,i,r,a,s){var g,m,v,A,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${_C.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let K=l[u].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,K);let j=s||a;At(e.columns[F],t.manifest,l[K],r,[F,j],j,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(O=(b=(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:b.settings)==null?void 0:O.views;(!F||F.paths.length<1)&&se(t.logger,{severity:ye.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(VC,"transferColumns");function zQ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.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=yn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}_o(t,"visualFilters")}}o(zQ,"importVisualFilters");function JQ(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${_C.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=yn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),_o(t.toolBar.actions,g)}}}o(JQ,"importActions");function wC(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),JQ(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o(wC,"transferToolBar");function yw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(yw,"determineTargetAnnotationOfView");function ZQ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let u=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(u){let p=a[ye.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);wC(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ye.SchemaTag.key],m]),VC(g,e,n,i,r,void 0,m)}}o(ZQ,"importALPViews");function eq(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(eq,"getViewTypeByDefinition");function tq(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ye.SchemaTag.propertyIndex]-g[1][ye.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=eq(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=yw(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let O=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;wC(e,v,n,i,r,O,b),VC(v,e,n,i,r,O,b)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(tq,"importLRViews");function nq(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.PropertyName.header,l=e.definitions[a];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=yn(p.$ref),m=e.definitions[g],v=yn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ye.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(nq,"transferHeaderActions");function iq(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+ye.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(iq,"importCustomFilterFields");function rq(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),nq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),zQ(e,t.filterBar,n,i,r),iq(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.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,ye.DefinitionName.Table);let p=yw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),wC(e,t,n,i,r,u),VC(t.table,e,n,i,r,u,p),tq(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&ZQ(e,t,n,i,r)}o(rq,"addSettings");function Uc(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new Na,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=cb(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){rq(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(Uc,"createListReportConfig");var Te=ne(le()),jc=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}o(oq,"isBoolean");function aq(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}o(aq,"isNumber");function sq(e,t){let n=e.toString();return oq(n,t)?n==="true":aq(n,t)?parseFloat(n):e}o(sq,"convertValue");function cq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=sq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(cq,"importProperty");function vw(e,t,n){let i,r=tf(e.file,!1,n);if(r){let a=Cy(r);i={},Dc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},cq)}return i}o(vw,"convertXmlFileToConfig");function tv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=ds(t||[],r,n,a),l;return s&&(l=vw(s,i,e.logger)),l}o(tv,"createCustomPageConfig");function od(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=nf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=Pc(i,a),g=Cc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=vw(g,A,s)}return m}o(od,"createCustomFragmentConfig");function MC(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(MC,"getManifestId");function ad(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(ad,"getDefinitionId");function lq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[ad(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(Te.DefinitionName.CustomColumnOP)>-1?s=Te.DefinitionName.CustomColumnOP:s=Te.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(Te.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(lq,"fillTableColumnsInConfig");function Ew(e,t,n,i,r,a){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=yn(l.$ref),p=u.split("<")[0],g;p.includes(Te.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(Te.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(Ew,"fillSectionActionsInConfig");function fq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageSectionForm}<${ad(a)}>`].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],b=yn(A.$ref),O=e.jsonSchema.definitions[b];if(O.annotationType===jc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=yn(O.$ref)||b.split("<")[0];i[n].form.actions[v]=r.createInstance(Te.PageTypeV4.ObjectPage,F),At(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[F],e.routingId,[v.replace("/","??")],a),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}o(fq,"fillFormActionsInConfig");function Tw(e,t,n,i,r,a){var u;let s=a||MC(i,!1,jc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageTable);let p=`${Te.DefinitionName.ObjectPageTable}<${a?ad(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${Te.DefinitionName.Actions}<${ad(s)}>`];Ew(e,g,i,n,r,s),lq(e,l,n,i,r,s)}}o(Tw,"fillTableInConfig");function uq(e,t,n,i,r){var l;let a=MC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageForm,{actions:{}}),fq(e,s,i,n,r,a))}o(uq,"fillFormInConfig");function pq(e,t,n,i,r,a){let s=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=od(e,s.fragmentName);s.controls=u}n[i]=s}o(pq,"fillCustomSubSectionInConfig");function Aw(e,t,n,i,r,a){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($+Te.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];A=MC(b,!0,jc.UIAnnotationTerms.LineItem),Tw(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith($+Te.DefinitionName.ObjectPageSectionTableV4)?Tw(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Aw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith($+Te.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${jc.UIAnnotationTerms.FieldGroup}::`))?uq(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith($+Te.DefinitionName.ObjectPageCustomSubSectionFragment)&&pq(e,v,i,m,r,a)}}o(Aw,"fillSectionsInConfig");function dq(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.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(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageCustomSectionActions}<${ad(l)}>`];Ew(e,m,l,p,i,l)}let g=u.template;if(g){let m=od(e,g);p.controls=m}n.sections[l]=p}}o(dq,"fillCustomSectionsInConfig");function gq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=od(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=od(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(gq,"fillCustomHeaderSectionsInConfig");function mq(e,t,n,i,r){var s,l;let a=e.definitions[Te.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(Te.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(Te.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(Te.FACETTITLEPREFIX)[1]))}}}o(mq,"fillHeaderFacets");function hq(e,t,n,i,r,a,s){let l=yn(e.$ref),u=t.definitions[l],p=yn(u.$ref||e.$ref),g=n.createInstance(Te.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(hq,"importActionSettingsOfReference");function bw(e,t,n,i,r,a,s){let l=e.definitions[a];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&&hq(g,e,n,u,p,i,r)}}}o(bw,"fillHeaderFooterActions");function yq(e,t,n){var a,s;let i=n.createPageInstance(Te.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[Te.DefinitionName.Sections]&&(i.sections={},Aw(e,e.jsonSchema.definitions[Te.DefinitionName.Sections].properties,r,i.sections,n)),dq(e,r,i,n),mq(e.jsonSchema,i,n,e.manifest,e.routingId),gq(e,r,i,n),bw(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.ObjectPageHeaderActions,Te.PropertyName.header),bw(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.FooterActions,Te.PropertyName.footer)),i}o(yq,"fillObjectPageConfig");function nv(e){if(nn(),!e.manifest[Te.ManifestSection.ui5]||!e.manifest[Te.ManifestSection.ui5].routing){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5]}});return}let t=e.manifest[Te.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5,"routing"]}});return}let i=new Na;return yq(e,n,i)}o(nv,"createObjectPageConfigV4");var Ge=ne(le());var kC=[],iv={};function vq(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(vq,"routesSorter");function UC(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]}o(UC,"resolveTarget");function Tq(e){let t={};e=e.concat().sort(vq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=UC(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(Tq,"populateAssociations");function bq(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(bq,"determinePageType");function Eq(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.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===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=nv(r)}else if(e.page.pageType===Ge.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=tv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=Uc(r,s)}}}o(Eq,"convertSettingsToConfig");function Aq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");kC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");kC.push(t[t.length-1])}}o(Aq,"updateUnhandledControllers");function Sq(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}}}o(Sq,"setVariantManagmentAndNavigation");function Pq(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:a,entityType:s}=Vc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(Pq,"setEntitySetEntityTypeContextPath");function Cq(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([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(Cq,"evaluateCustomPageSettings");function xq(e,t,n,i){let r=e.targets[t],a=bq(r,i.logger,t),s={pageType:a};if(Pq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),iv[t]&&iv[t].indexOf(".")!==-1){let p=iv[t].split(".");s.navigationProperty=p[p.length-1]}Cq(r,s,a),Sq(r,s),Aq(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};Eq(u)}o(xq,"getSinglePageAndConfig");function Sw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}iv=Tq(n.routes||[]);for(let i in n.targets)xq(n,i,t,e);return t}o(Sw,"getPagesAndConfigs");function Pw(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 UC(t?t.target:e.routes[0].target)}else return}o(Pw,"getHome");function Cw(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}}:{}}o(Cw,"getSettings");function Cf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Cf,"getPages");var jC=class jC extends Qa{constructor(t){nn();let n=new rf,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Pw(t.manifest[Ge.ManifestSection.ui5].routing),Sw(t),{...Cw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=kC}};o(jC,"V4AppProvider");var Pf=jC;var xw=require("fs"),$c=require("path"),Iw=ne(le()),sd=ne(le());var Ow=o((e,t,n=__dirname)=>{let i;switch(t){case sd.SchemaType.Application:{i=`${sd.SchemaType.Application}${e.toUpperCase()}.json`;break}case sd.SchemaType.FPMCustomPage:{i=`${sd.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"),Iq=o(async e=>new Promise((t,n)=>{(0,xw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),rv=o(async(e,t)=>{try{let n=Ow(e||Iw.FioriElementsVersion.v4,t,__dirname);return await Iq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Oq(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.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,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 a=Dt(r);n[a.filename]=await rv(t,r)}return n}o(Oq,"getGenericSchemas");function Lw(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:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Lw,"getAnnotationsForUi");function cd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(cd,"getEntitySetByEntitySetName");function Nq(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];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}}o(Nq,"resolveNavigationProperty");function Vc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(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:a,entitySet:s}=Nq(r,e):se(i,{severity:ue.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&se(i,{severity:ue.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Vc,"getEntityTypeEntitySetFromContextPath");function Nw(e,t,n){let i=zu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=cd(a,e.serviceAVT);s||se(e.logger,{severity:ue.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(ue.SchemaType.ObjectPage);n[l.filename]=ld(e,t[u.filename])}}o(Nw,"generateObjectPageSchemasV2");function Lq(e,t,n){var l,u;let i=Cf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Cf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=Vc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let b=Dt(ue.SchemaType.ListReport,p),O=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=ou(a[p])),n[b.filename]=ep(e,t[O.filename],a[p].name,m)}}o(Lq,"generateListReportSchemasV4");function Rq(e,t,n){var r;let i=zu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=cd(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(ue.SchemaType.ListReport);t[l.filename]=fd(e,n[u.filename])}}o(Rq,"generateAppSchemaV2LR");function Fq(e,t,n){var a,s;let i=Cf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Vc(r,p,u);e.entitySet=m,e.entityType=g;let v=Dt(ue.SchemaType.ObjectPage,l),A=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[v.filename]=Np(e,t[A.filename],p,t[b.filename])}}o(Fq,"generateObjectPageSchemasV4");function Dq(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)Rq(e,r,t),Nw(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=zu(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=cd(u,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=ud(e,t[g.filename])}Nw(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=pd(t[l.filename],e.manifest)}return{...t,...r}}o(Dq,"generateAppSchemasV2");function _q(e,t,n){if(!Ys(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Cf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=ds(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[u.filename]=_c(t[p.filename],s,e.serviceAVT,e.logger)}}}o(_q,"generateCustomPageSchemasV4");function Vq(e,t,n){let i={};return n&&(Lq(e,t,i),Fq(e,t,i),_q(e,t,i)),{...t,...i}}o(Vq,"generateAppSchemasV4");async function Rw(e,t,n){let i=await Oq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?Vq(e,i,t):Dq(e,i,t,n)}o(Rw,"generateAppSchemas");function wq(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new Oh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Pf(e);break;case ue.TemplateType.OverviewPageV2:t=new Rh(e);break;default:t=new Pf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(wq,"importConfigs");function Fw(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}o(Fw,"getFileList");async function $C(e){var b,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new lu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=db(t),p=No(n,i),g=Lw(p),m=gb(t,u,i),A=await Rw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Fw(A)}o($C,"importProjectSchema");async function BC(e){var K,j;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new lu().doesUi5VersionFitDistTags((j=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:j.minUI5Version,i);let p=db(t),g=jF(t),m=No(n,i),v=gb(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Lw(m),O=await Rw(A,b,v),U=wq({manifest:t,flexChanges:s,appSchemas:O,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Fw(O,U)}o(BC,"importProjectSchemaAndConfig");var Mq=["header","sections","footer"];function kq(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o(kq,"addFlexChangeForSection");function Uq(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=fm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(Uq,"addHeaderActionCallBackV2");function jq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=ua(r).split("::").splice(1).join("::"),s=Si(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(jq,"addFooterActionCallBackV2");function $q(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),A=vc(t[oe.ManifestSection.generic].pages,n,m);return gl(e,v,A,t,l,p,g,a.ID),p}o($q,"ensureCustomColumnDefinitionExists");function gd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&kq(e,t,"visible",n)}o(gd,"addAppSchemaDefinition");function Bq(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(Bq,"addSectionReference");function dd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.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}>`,Ga(n.entityType,i,`QuickVariant<${t}>`)}o(dd,"addTableDefinition");function Hq(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];gd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,Ba(i,u,t),dd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),dd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),dd("ObjectPageGridTable",t,i,n),dd("ObjectPageTreeTable",t,i,n),dd("ObjectPageAnalyticalTable",t,i,n);let p,g=S0(i.entityType,e.serviceAVT);g&&(p=$q(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===oe.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&dl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(Hq,"handleLineItem");function Gq(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";gd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Gq,"handleSubSection");function Wq(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];gd(e,a,r,"ObjectPageSectionChartV2")}o(Wq,"handleSectionChart");function Dw(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];gd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=nc(n==null?void 0:n.target)}o(Dw,"handleHeaderFacet");function Kq(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=nc(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`}o(Kq,"addDataPointHeaderFacetDataType");function Xq(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return gd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(Xq,"handleFormSection");function Qq(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Qq,"getSectionType");function qq(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(qq,"getReferenceKey");function Vw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Qq(l.base,a,s),p=qq(l,n,u),g=`${u}<${p}>`;switch(Bq(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Gq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)Vw(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Hq(e,p,r,l,t,u),yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Wq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=Xq(r,g,l,p,u);cm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Dw(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Dw(r,g,l,p,u),Kq(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(Vw,"addSection");function _w(e,t,n,i,r,a=!1){if(e)for(let s in t)Vw(i,t,s,n,r,!1,a)}o(_w,"addSectionsFromFacets");function ww(e,t,n){var g,m,v,A,b,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ug((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=kg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let U=n[F];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(U.entitySet)?(_w(l,a,i,e,t),_w(u,s,r,e,t,!0)):ww(e,t,U.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(ww,"addSections");function Yq(e,t,n){dm(e,n),pm(e,n,t,Uq,void 0,!0)}o(Yq,"addHeader");function zq(e,t,n,i){let r=$F(t,n,i,void 0,!0);r&&I0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(zq,"addRelatedFacetKeysType");function ld(e,t){var s;nn();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[oe.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(Yq(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},ww(e,n,a),zq(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[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),um(n,e,oe.FioriElementsVersion.v2,jq,a),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,Do(n,Mq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(ld,"generateObjectPageSchemaV2");var ti=ne(le());var xf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Zq=["filterBar","table","footer"],eY=ti.UIVOCABULARYALPHADOT.substring(1);function HC(e,t,n,i){Ga(e,n,"QuickVariant"),P0(n,"QuickVariantX",t),C0(i,n,"QuickVariantX")}o(HC,"addEnumForVariantPaths");function tY(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[xf.UIAnnotationTerms.SelectionPresentationVariant,xf.UIAnnotationTerms.SelectionVariant,xf.UIAnnotationTerms.PresentationVariant];su(e,r,i)}o(tY,"addEnumForFilterBarAnnotationPath");function nY(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(xf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(xf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(eY,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(nY,"getPresentationVariantForLineItem");function iY(e,t,n){if(rm(t,"annotationPath",n))return;let i=nY(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=au("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(iY,"getLineItemAnnotation");function fd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;bb.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:a,uIAnnotations:s}=im(e);if(s){let u=[],p=Dl(e.manifest[ti.ManifestSection.generic].pages,u);ml(n);let g=iY(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=mr(a.fullyQualifiedName,g.term,g.qualifier);bb.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=v})}dl(!1,n,g,a);let m=s.SelectionFields;if(tm(n,m,a),yl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],y0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ti.LogSeverity.Error,message:q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;gl(n,a,p,e.manifest,e.fragments),HC(a,e.entitySet,n,e.serviceAVT),tY(a,n,ti.DefinitionName.ListReportFilterBar),x0(a,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 Do(n,Zq),n}o(fd,"generateListReportSchemaV2");var Zt=ne(le());var rY=["filterBar","keyPerformanceIndicators","chart","table","footer"];function oY(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(rm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.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||au("LineItem",O),g=g||au("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(oY,"getLineItemAndChartAnnotation");function aY(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(aY,"addChart");function ud(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,h0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=im(e);if(s){ml(n);let l=[],u=wl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=oY(u,s,e.logger);p&&f0.forEach(v=>{n.definitions[v][Zt.SchemaTag.annotationPath]=mr(a.fullyQualifiedName,p.term,p.qualifier)}),dl(!1,n,p,a),g&&aY(n,g);let m=s.SelectionFields;if(tm(n,m,a),yl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;gl(n,a,u,e.manifest,e.fragments),HC(a,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 Do(n,rY),n}o(ud,"generateAnalyticalListReportSchemaV2");function sY(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]})}o(sY,"getCardDefinitionNames");function cY(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||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},pa(a,s.CardModel);let l=sY(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(cY,"addModelsEnum");function Mw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},cY(n,t),n}o(Mw,"generateOverviewPageSchemaV2");var Ds=ne(le());function GC(e,t,n,i,r,a){nn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Ds.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=cd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Ds.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(GC,"prepareGenerationV2");function WC(e,t,n,i,r,a){let s=GC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return ld(s,e)}o(WC,"generateObjectPageInterfaceV2");function KC(e,t,n,i,r,a){let s=GC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(KC,"generateListReportInterfaceV2");function XC(e,t,n,i,r,a){let s=GC(n,a,i,r,t,Ds.TemplateType.AnalyticalListPageV2);return ud(s,e)}o(XC,"generateAnalyticalListPageInterfaceV2");function pd(e,t){return Mw(e,t)}o(pd,"generateOVPInterfaceV2");var we=ne(le());var md=o(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 kw(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])}o(kw,"getClassesForSingleSection");function Uw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],kw(n,i,t),Uw(n,t)}}o(Uw,"getSubsectionClasses");function lY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],kw(i,r,n),Uw(i,n)}o(lY,"getExportClassesForSections");function fY(e,t){let n=Dl(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(fY,"findV2Page");function QC(e,t){let n=Kg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(QC,"calculateBaseId");function jw(e,t,n=!1){let i=md(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=fY(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:QC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(p,u,[],[],e.jsonSchema)}return i}o(jw,"exportListReportPage");function $w(e,t,n=!1){let i=e.page.config,r=md(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=wl(e.manifest[we.ManifestSection.generic].pages,a,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 _i,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:QC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(p,u,[],[],e.jsonSchema)}return r}o($w,"exportAnalyticalListPage");function Bw(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=md(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new _i,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&lY(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:QC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ps(g,p,[],[],e.jsonSchema)}}return a}o(Bw,"exportObjectPage");var Hw=o(e=>{let t=md();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new _i,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),uY=o((e,t,n)=>{var s;let i=md();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new ym,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],Ha(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&xb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Gw(e,t){if(e[we.SchemaType.ListReport])return jw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return Bw(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Hw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return uY(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return $w(e[we.SchemaType.AnalyticalListPage],t)}o(Gw,"exportPageV2");function qC(e,t,n=!1){if(e[we.SchemaType.ListReport])return jw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return Bw(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Hw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return $w(e[we.SchemaType.AnalyticalListPage],t,n)}o(qC,"exportConfigEntityByPathV2");var If=ne(le()),Kw=require("@sap-ux/vocabularies-types/vocabularies/UI");function Ww(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]}o(Ww,"updateDependencyLib");function ov(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}o(ov,"extractLastIdPart");function Xw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:If.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(If.PropertyName.sections),s=a>-1?ov(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Kw.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:If.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return YC(g),!0}o(Xw,"createNewCustomColumn");var La=ne(le());var qw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Qw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function pY(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(pY,"initializeRouting");function dY(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(dY,"setTargetOptions");function gY(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==La.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(gY,"calculateQueryPattern");function Yw(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;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,a=n[s])}if(a){Yw(e,t,n,s);return}}}o(Yw,"fillNavigationParts");function mY(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("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(mY,"fillParentKeys");function hY(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(dY(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];Yw(p,a,t,r,l==null?void 0:l.contextPath);let g=mY(e.routePattern);u=gY(p,l,g)}i.routes.push(qw(u,s.route,s.route))}}}o(hY,"handlePageNavigation");function yY(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)}}o(yY,"removeDeletedPages");function vY(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Qw({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=Qw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(vY,"transferEntitySetandContextPath");function TY(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(TY,"updateRouteLayout");function bY(e,t,n,i){return e.pageType&&![La.PageTypeV4.CustomPage,La.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&&(e.pageType!==La.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||La.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}o(bY,"fillTarget");function zw(e,t,n){var r,a;let i=pY(n[La.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(qw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=bY(u,l,s,t),vY(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),hY(u,t,l,i,s),TY(i,s,u),i.targets[s]=l}return yY(i,t),i}o(zw,"transformRoutingV4");var Ii=ne(le());var Jw=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],Zw=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.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:Jw[r]?s.controlAggregation=Jw[r]:s.controlAggregation=Ii.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)Zw(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),EY=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,Zw(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Ww(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),AY=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),eM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?EY(e,t):AY(e)},"updateFcl");var ie=ne(le()),hd=require("@sap-ux/vocabularies-types/vocabularies/UI");var tM=ne(Qs()),av=ne(le());function SY(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(SY,"isExportValueEquals");function PY(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===av.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(PY,"deleteProperty");function nM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,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),Dc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},nM)}else SY((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]&&(PY(e,i),l=!0);return l}o(nM,"exportProperty");function iM(e,t,n,i,r,a){let s=tf(e.file,!1,a);if(s){let l=Cy(s);if(Dc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},nM)){let p=(0,tM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:av.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(iM,"getExtensionExportResult");var rM=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=ds(n||[],a.name,i,s)),u&&iM(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),oM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Pc(u,s[0]);p=Cc(a,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 aM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],CY=[...aM,"views","initialLoad","template"],JC=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function xY(e,t,n){var s,l,u,p;let i=`@${hd.UIAnnotationTerms.LineItem}`,r=`@${hd.UIAnnotationTerms.LineItem}`,a=(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&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(xY,"determineTargetAnnotationOfTable");function IY(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[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}}o(IY,"determineTargetAnnotationOfChart");function OY(e,t,n,i,r){var a;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=(a=i.$ref)==null?void 0:a.split($)[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}}o(OY,"determineTargetAnnotationBasedOnParentView");function NY(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=OY(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}}o(NY,"determineTargetAnnotationOfView");function LY(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}}o(LY,"determineTargetAnnotationOfHeaderSections");function RY(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=ov(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(RY,"determineTargetAnnotationOfSections");function FY(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=xY(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=IY(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=RY(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=LY(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=NY(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(FY,"determineTargetAnnotation");function DY(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}o(DY,"determineKeyForSyncRule");function _Y(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]={})}o(_Y,"createNewObjectInManifest");function sM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(_Y(e),i=!0):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],i=!0),i}o(sM,"transferPropertyToManifest");function VY(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&aM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&CY.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Ha(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(VY,"deleteFromManifest");function wY(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=FY(e,n.transferParameters,n.configObject),g=DY(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=Lo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let A={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]!==void 0?r=sM(A,n.propertyDefinition,i):r=VY(e,A,n.transferParameters,v,m,u,l)}return r}o(wY,"exportManifestChange");function MY(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);oM(e.transferParameters,r,n.configObject)}else i.manifest&&wY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(MY,"evaluateExportRule");function kY(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,ZC(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(kY,"transferSubObject");function UY(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Lo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(UY,"createALPTableView");function jY(e){var a,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=ft(e.transferParameters.pageNameArray)+"/views",r=Lo(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=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||hd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(jY,"createALPChartView");function $Y(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Lo(e.exportResults.manifest,i),a=`@${hd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].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}o($Y,"createVisualFilters");function BY(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Lo(t.exportResults.manifest,a),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}o(BY,"createLRTableView");function HY(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Xw(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 jY(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return UY(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=BY(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=$Y(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(HY,"createNewElement");function GY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}o(GY,"isDefinitionTraversable");function zC(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Wg(e.configObject,e.key),s=Fo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=HY(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||MY(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||GY(e.propertyDefinition)&&s.configObject)&&!u){let m=a?[...n,a]:n;kY(e,s,r,p,m)}}o(zC,"transferSortedListEntry");function WY(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&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]],zC(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,zC(e,i,r),a=!0)}),e.index++})}return a}o(WY,"transferConfigEntriesWithAnyOfDefinitions");function KY(e,t,n,i){let r=mb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(KY,"mergeEntriesForInsert");function XY(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}o(XY,"sortProperties");function QY(e,t,n,i,r,a){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=WY(n,p,i,r,a)}return s}o(QY,"checkIfAnyOfDefinition");function ZC(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=QY(u,e,l,a,n,i),g=XY(a.properties);u!=null&&u.$ref&&KY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!ru(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,zC(l,n,i,p),m[1].$ref&&s++)})}o(ZC,"transferManifestEntriesAndFlexChange");function cM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(cM,"getClassesForSingleSection");function lM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],cM(n,i,t),lM(n,t)}}o(lM,"getSubsectionClasses");function qY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],cM(e,r,n),lM(i,n)}o(qY,"getExportClassesForSections");function fM(e,t){let n=Kg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(fM,"calculateBaseId");var uM=o((e,t,n=!1)=>{var l;let i=JC(e.manifest),r=new Na,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&qY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:fM(a,e),appSchema:e.jsonSchema,config:a,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 ZC(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),YY=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=JC(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[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($)[1]);let v=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&v)for(let F in v.properties)g.toolBar.actions[F]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:fM(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:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return ZC(A,n,[],[],[],u),l},"exportListPage"),ex=o((e,t,n,i=!1)=>{let r=new Na,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return YY(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),pM=o((e,t,n=!1)=>ex(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),zY=o((e,t,n,i,r,a)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=lb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];sM(u,p,{}),!l&&Object.keys(s).length&&UF(r,t,s)},"applyExportRule"),JY=o((e,t,n)=>{var a;let i=JC(t),r=Object.assign(new Ny,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)zY(l,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ha(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=zw(e.home,e.pages,i.manifest),eM(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),dM=o((e,t)=>{if(e[ie.SchemaType.ListReport])return ex(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return uM(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return JY(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return pM(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return rM(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),tx=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return ex(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return uM(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return pM(e[ie.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var ZY=new Map([[de.CustomExtensionType.CustomPage,Bt.generateCustomPage],[de.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[de.CustomExtensionType.CustomSection,Bt.generateCustomSection],[de.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[de.CustomExtensionType.ListReport,Bt.generateListReport],[de.CustomExtensionType.CustomAction,Bt.generateCustomAction],[de.CustomExtensionType.CustomView,Bt.generateCustomView],[de.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),ez={api:Bt.PromptsAPI,types:Bt.PromptsType};function tz(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:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=KC(i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=WC(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=pd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=XC(i,r,a,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:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=Oy(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=MS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=Oy(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=kS(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=US(i,r,a,s,u,e.featureToggles,l)}}return t}o(tz,"generateSchema");function nz(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=Gw(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=dM(i,n)}return t}o(nz,"exportConfig");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=qC(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=tx(i,n)}return t}o(iz,"exportConfigEntityByPath");function rz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=qC(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=tx(i,n,!0)}return t}o(rz,"deleteConfigEntityByPath");function oz(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Ph(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Ih(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=Lh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=Ch(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Uc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=nv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Uc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=tv(n[de.SchemaType.FPMCustomPage]))}return t}o(oz,"importConfig");async function az(e){return BC(e)}o(az,"importProject");async function sz(e){return $C(e)}o(sz,"importProjectSchema");function cz(){return{version:"19",fpmWriter:"26",moduleVersion:D0.version}}o(cz,"getApiVersion");function YC(e){let t=ZY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(YC,"generateCustomExtension");var zr=require("path"),_s=require("fs");var Of=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),lz=o(async e=>JSON.parse(await Of(e)),"readJSON"),nx=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),fz=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),mM=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),uz=o(async e=>lz((0,zr.join)(e,"manifest.json")),"getManifest"),hM=o(async e=>{let t=[],n=(0,zr.join)(e,"changes");if(!await mM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await nx(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Of((0,zr.join)(n,a)));return t},"getChanges"),gM=o(async(e,t="fragments")=>{let n=[],i=(0,zr.join)(e,"ext",t);if(!await mM(i))return n;let r=await nx(i);for(let a of r){let s=(0,zr.join)(i,a),l=await Of(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),pz=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,zr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Of(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,zr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await Of(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 b=(0,zr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Of(b)})}}return n},"getAnnotations"),dz=o(async e=>{let t=(0,zr.basename)(e),n=(0,zr.join)(e,"webapp"),i=await uz(n),r=await pz(i,n),a=await hM(n),s=await gM(n),l=await gM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Xs(wi,ne(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
294
|
+
`}),P1(q)}o(nn,"initI18n");var $t=ie(le());function vc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(fa((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=vc(s.pages,t,n),i))return n.unshift(a),i}}o(vc,"findObjectPageV2");function _l(e,t){var n;for(let i in e){let r=e[i];if(fa((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(_l,"findListReportPageV2");function Vl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(Vl,"getV2Pages");function wl(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(wl,"checkV2Page");function Ml(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),fa((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(Ml,"findAnalyticalListPage");function EA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(EA,"isAssociatedCustomSection");function x1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)EA(r,t)&&(i[r]=n[r]);return i}o(x1,"findCustomSectionExtensions");function x3(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}}o(x3,"removeEmptySettingsOfFooter");function I3(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}}o(I3,"removeEmptySettingsOfFilterBar");function O3(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}}o(O3,"removeEmptySettingsOfToolBar");function Ah(e){O3(e),I3(e),x3(e)}o(Ah,"removeEmptySettings");var SA={};Ks(SA,{AnalyticalListPage:()=>Br,ListReport:()=>uo,ObjectPage:()=>li,OverviewPage:()=>zt,exportFilterSettings:()=>N1,importDateSettingsOVP:()=>I1,importFilterSettings:()=>O1});var Sh=ie(le());var Br=class{};o(Br,"AnalyticalListPage"),h([y({flex:{controlId:Gg,controlType:o(()=>Sh.ControlType.DynamicPage,"controlType")}})],Br.prototype,"fitContent",2),h([Ut("table")],Br.prototype,"table",2),h([Ut("template::SmartFilterBar")],Br.prototype,"filterBar",2),h([Ut("analyticalListPageChart")],Br.prototype,"chart",2),h([Ut("analyticalListFooter")],Br.prototype,"footer",2),Br=h([Ur({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Sh.v2.FE_TEMPLATE_V2_ALP})],Br);var qu=ie(le());var uo=class{};o(uo,"ListReport"),h([y({flex:{controlId:Gg,controlType:o(()=>qu.ControlType.DynamicPage,"controlType")}})],uo.prototype,"fitContent",2),h([Ut("listReportFilter")],uo.prototype,"filterBar",2),h([Ut("listReport")],uo.prototype,"table",2),h([Ut("listReportFooter")],uo.prototype,"footer",2),uo=h([Ur({id:qu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:qu.v2.FE_TEMPLATE_V2_LIST_REPORT})],uo);var AA=ie(le());var li=class{};o(li,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],li.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.1"})],li.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],li.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],li.prototype,"navToListOnSave",2),h([Ut("header")],li.prototype,"header",2),h([Ut("sections")],li.prototype,"sections",2),h([Ut("layout")],li.prototype,"layout",2),h([y({manifest:{path:o(t=>Tm(t),"path")}}),C({since:"1.77.0"})],li.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],li.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:zs}}),C({since:"1.71.0"})],li.prototype,"globalTableSettings",2),li=h([Ur({id:AA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:AA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],li);function N3(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 a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(N3,"importDateSettingsFieldsOVP");function I1(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&&N3(e,t),t}o(I1,"importDateSettingsOVP");function O1(e){let t={};return t.dateSettings=I1(e.filterSettings),t}o(O1,"importFilterSettings");function L3(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 a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(L3,"exportFilterFields");function N1(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&&L3(t,n,e))}o(N1,"exportFilterSettings");var zt=class{};o(zt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:O1,export:N1}}),C({since:"1.80.0"})],zt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],zt.prototype,"resizableLayout",2),zt=h([Ur({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],zt);var PA=class PA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(PA,"MetadataFactory");var kl=PA;var Zn=ie(le());var R3={},F3={Table:ac,ResponsiveTableWithMultiSelect:ac,ResponsiveTableWithInlineDelete:ac},D3={[Zn.v2.CardSettingsType.listCardSettings]:Pl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Pl,[Zn.v2.CardSettingsType.analyticalCardSettings]:Cl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:Cl,[Zn.v2.CardSettingsType.stackCardSettings]:yu,[Zn.v2.CardSettingsType.linkListCardSettings]:vu,[Zn.v2.CardSettingsType.tableCardSettings]:xl,[Zn.v2.CardSettingsType.tableCardSettingsv4]:xl},_3={[Zn.SAPUI5_VIEW_CLASS]:Hu,[Zn.SAPUI5_FRAGMENT_CLASS]:Bu,Table:yc,ObjectPageResponsiveTableWithMultiSelect:yc,ObjectPageResponsiveTableWithInlineDelete:yc},V3={[Zn.PageTypeV2.AnalyticalListPage]:R3,[Zn.PageTypeV2.ListReport]:F3,[Zn.PageTypeV2.ObjectPage]:_3,[Zn.PageTypeV2.OverviewPage]:D3},CA=class CA extends kl{constructor(){super(yA,SA,V3)}};o(CA,"MetadataInstanceFactoryV2");var _i=CA;function w3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(w3,"importFilterBar");function xA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=io(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};yh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&vh(e,n,s)}o(xA,"importFlexChangesOfTableAndColumns");function M3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[zg]&&t[Jg]&&(a=JSON.parse(JSON.stringify(t[zg])),a.properties={...a.properties,...t[Jg].properties}),Dn(n.table,i.manifest,a,r,i.logger),xA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(M3,"importTable");function k3(e,t,n,i){let r=e.jsonSchema.definitions,a=bh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Eh(t,n,r),M3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=ps(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}w3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ps(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(k3,"addSettings");function Ph(e){if(nn(),!Vl(e))return;let n=new _i,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=_l(e.manifest[Qt.ManifestSection.generic].pages,r);if(wl(a,e.logger,a==null?void 0:a.entitySet),!!a)return k3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&Th(i,s,e.jsonSchema,e.logger)}),Dl(i,e,a,Qt.PageTypeV2.ListReport),Ah(i),i}o(Ph,"createListReportConfig");var Ct=ie(le());function U3(e,t,n,i){var p,g;let r=bh(e.manifest,i),a=e.jsonSchema.definitions;Eh(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),xA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let v=ps(m);t.table.toolBar.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=ps(m);t.footer.actions[v]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(U3,"addSettings");function Ch(e){if(nn(),!Vl(e))return;let n=new _i,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=Ml(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(wl(a,e.logger,a==null?void 0:a.entitySet),!!a)return U3(e,i,n,r[0]),e.flex.forEach(s=>{io(s)&&Th(i,s,e.jsonSchema,e.logger)}),Dl(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Ah(i),i}o(Ch,"createAnalyticalListPageConfig");var Ee=ie(le());var Yu=require("@sap-ux/vocabularies-types/vocabularies/UI");var $3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function B3(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(`${Yu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Yu.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}o(B3,"getSingleSelectorIdPart");function H3(e){let t,n=e.split(":::");if(n.length===1)t=B3(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(`::${Yu.UIAnnotationTerms.LineItem}`,`/@${Yu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(H3,"getFacetID");function G3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=io(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=H3(v);v=TA(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){se(n,{severity:Ee.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(G3,"prepareFlexChanges");var W3=o(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 K3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&vA(i,t,r)}o(K3,"addFlexChangeToColumns");function L1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Ee.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?K3(a,p,r.properties,n):yh(n,p,r))}}o(L1,"importFlexChangesOfTable");function X3(e,t){return e.facetId==="template"&&t}o(X3,"isStandardActionFlexChange");var R1=o((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,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function Q3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(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&&R1(u,r.split("::"))&&s,v=e.title&&R1(u,e.title.split("::"),!0),A=!t.facetId&&$3.includes(t.controlType),b=X3(t,l);return p||g||m||v||A||b}o(Q3,"matchSelector");function q3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),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;Q3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(q3,"importFlexChanges");function Y3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Xg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(Y3,"checkDeprecatedProperties");function z3(e,t,n,i,r,a,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,a,n,u),p}o(z3,"importManifestSetting");function Vi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=zn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let v=n.properties[g].$ref.split($)[1],A=e.jsonSchema.definitions[v];L1(i.flexChanges,g,t,r,A,l)}else L1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);q3(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&z3(m,i.pageKeys,e,t,g,s,r)}}o(Vi,"transferSettingsAndFlexChanges");function D1(e,t,n,i){let r=Yi(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=`${p0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Zg}${r}`;break}}return r.replace(/@/g,"")}o(D1,"getActionId");function J3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=D1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Vi(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(J3,"fillStandardActions");function xh(e,t,n,i,r,a){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=ps(p),m=D1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Vi(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]}}J3(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(xh,"fillActions");function Z3(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${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,"")}::${a}`:`${t.title}::${a}`;Vi(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}o(Z3,"fillFields");function eX(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}o(eX,"prepareTableSchema");function tX(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];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=eX(p,t,m);Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(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 b=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");xh(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(tX,"fillTableInConfig");function nX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?qg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Dl(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(nX,"fillCustomColumnsInConfig");function iX(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];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)&&(Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(iX,"fillChartSection");function rX(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Vi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(rX,"fillHeaderSection");function oX(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&&Vi(e,n[t.id],t.schema,i,{title:t.title});let a=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");a!=null&&a.properties&&xh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Z3(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]}o(oX,"fillFormSection");function F1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Vi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,IA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(F1,"fillSubSection");function IA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:W3(t[l]),schema:t[l],title:Eb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],tX(e,p,n,i,r),nX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],iX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],oX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],F1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],rX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],F1(e,p,n,i,r))}}o(IA,"fillSectionsInConfig");function aX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Vi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(aX,"fillCustomSectionsInConfig");function sX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Vi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Vi(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>"];Vi(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&xh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&xh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Vi(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;IA(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;IA(e,u.properties,v,n.sections,t)}let p=x1(e.manifest,e.entitySet);return aX(p,n,t,i,e),n}o(sX,"fillConfig");function Ih(e){nn();let t=Vl(e);if(!t)return;let n=e.entitySet,i=[],r=vc(t,e.entitySet,i);if(wl(r,e.logger,n),!r)return;let a=G3(e.flex,n),s=new _i;return sX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Ih,"createObjectPageConfigV2");function Nh(e,t){var n,i;return(n=e.component)!=null&&n.name?jg(fa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Nh,"generateId");function cX(e,t,n,i){e.navigation={};let r=_1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Nh(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(cX,"getPageConfigsAndNavigations");function _1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Nh(a,r);if(!s)continue;let l={pageType:fa((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ph(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ch(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ih(p)}a.pages&&cX(l,a,t,n)}return n}o(_1,"getPagesAndConfigs");var OA=class OA extends qa{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Nh(n[i],i),a=new Ya,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,_1(n,t),a)}};o(OA,"V2AppProvider");var Oh=OA;function zu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Nh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=zu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(zu,"getPages");var bc=ie(le());var jo=ie(le());var LA=ie(GT());var _t=ie(le());var lX=["colorPalette","tabs"];function fX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(fX,"createCard");function V1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),V1(e,n.join("|"))}return t}o(V1,"findAvailableId");function Ju(e,t,n,i,r,a,s){i!=null&&i.properties&&NA(e,t,n,i.properties,r,a,s)}o(Ju,"transferManifestEntriesOVP");function Tc(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(Tc,"assignReflectMetadataRules");function uX(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=Tc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(uX,"processAnyOfDefinitionsOfOVP");function pX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!lX.includes(i)?t[i]=(0,LA.default)(t[i]||{},r||{},{arrayMerge:vb}):t[i]=r}o(pX,"checkSyncRuleForExport");function dX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,LA.default)(l.settings||{},r||{},{arrayMerge:vb});else if(r!==void 0){let u=e.manifest.export;pX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(dX,"transferToManifest");function gX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Tc(e.factory,i[0],e.currentObject[t],"CustomCard"),fX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ju(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(gX,"transferCards");function mX(e,t){if(t==="cards")gX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Tc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],NA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],NA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(mX,"exportOfObject");function NA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!fl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=uX(g)):u&&typeof u=="object"&&i[l]&&mX(g,l),p!=null&&p.manifest&&dX(p,a,l,t,u,e)}}o(NA,"processProperties");function hX(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=c0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=l0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(hX,"evaluateFlexRule");function yX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(yX,"exportConfigValueToManifest");function vX(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)yX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ga(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(vX,"evaluateManifestRule");function TX(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(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(TX,"getManifestPathOfSections");function bX(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}o(bX,"getManifestPathOfTable");function EX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=TX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=bX(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(EX,"getManifestPath");function AX(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)hX(e,i,t,r,a,n,s);else if(t.manifest){let u=EX(e,i,t,n,a);vX(e,u,t,s,n)}}o(AX,"evaluateExportRule");function SX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Lm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Lm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(SX,"deleteObsoleteColumn");function PX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=M0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,SX(r,e,n))}o(PX,"deleteObsoleteColumnsFromFragment");function CX(e,t,n,i,r){let a={};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}=Rm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(CX,"clusterConfigColumnsByPath");function w1(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 _t.v2.TableColumnExtensionTypeV2){let{path:u}=Rm(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};try{PX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=CX(t,n,e.v2Page,s,r);for(let u in l)rE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(w1,"transferColumnExtensions");function xX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=V1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var b;return(b=A.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),v=e.appSchema.definitions[m[m.length-1]];ds(e,t[p],i,[...r,s[p]],v)}let u=Bn(e.exportResults.manifest,Nb());for(let p in u)EA(p,l)&&!s.includes(p)&&delete u[p]}o(xX,"transferManifestExtensions");function IX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(IX,"getSectionId");function OX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Fo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ds(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(OX,"transferIndexTable");function NX(e,t,n,i,r,a){let s,l=qg(e.$ref);l&&(s={target:l,key:IX(t,n)}),w1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(NX,"transferCustomColumns");function LX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ds(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(LX,"handleAnyOfDefinitions");function RX(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")xX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){NX(l,t,s,e,n,a);return}else a?ds(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&LX(l,e,s,n==null?void 0:n[r],r,i,t)}o(RX,"transferComplexProperty");function ds(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!fl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Wg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Fo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(AX(e,g,t,[...i],p,a,l),OX(s,e,a,l,p,i),s===void 0||typeof s=="object")RX(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){w1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ds,"transferManifestEntriesAndFlexChange");function M1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Tc(r,i,n[i],s),a.push(i),RA(r,n[i],e,l.properties,a)}o(M1,"transferSettingsOfRef");function FX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);M1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${jo.v2.cardTemplateSettingsMap[e.template]}`.split($);M1(i,l,e,t,r,a)}}o(FX,"processPropertiesOfObject");function DX(e,t,n,i,r,a){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{dl(s,u,t,e)}catch(p){se(i.logger,{severity:jo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Bg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&FX(e,t,r,i,a,n)}o(DX,"processOvpProperty");function RA(e,t,n,i,r){for(let a in i)DX(t,a,r,n,i,e)}o(RA,"processOvpProperties");function _X(e,t,n){RA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[jo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[jo.ManifestSection.ovp].cards[i].template,a=jo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Tc(n,a,{},"CustomCard"),e.cards=Tc(n,a,e.cards,"CustomCard"),RA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(_X,"addSettings");function Lh(e){let t=new _i,n=t.createPageInstance(jo.PageTypeV2.OverviewPage);return e.jsonSchema&&_X(n,e,t),n}o(Lh,"createOverviewPageConfig");var FA=class FA extends qa{constructor(t){let n={},i=t.manifest[bc.ManifestSection.ovp],r=new Ya,a=Dt(bc.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(bc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:bc.PageTypeV2.OverviewPage,config:Lh(l),entitySet:i.globalFilterEntitySet},p=jg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(FA,"V2OvpProvider");var Rh=FA;var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),k1=require("path");function VX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(VX,"sortByPropertyIndex");function Zu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(VX())}o(Zu,"sortPropertiesRecords");function wX(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}o(wX,"getExtensionText");function DA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(DA,"addExtensionToSortedArray");function MX(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])}o(MX,"addRemainingTargetByBefore");function U1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=wX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(U1,"getExtensionDetails");function _A(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=U1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(A=>A[0]===g.position.anchor);v>-1?(DA(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:wi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&MX(e,p,g,n,m)}else r&&(DA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?_A(e,t,n,i):s>0&&_A(e,t,n,i,!0)}o(_A,"adjustCustomExtReferringToCustomExt");function kX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(kX,"getExtensionAnchor");function UX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(UX,"getLocalExtensionsToSkip");function jX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-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)!==te.v4.Placement.Before))}),s>-1?s:0}o(jX,"getExtensionIndexByMergedApproach");function $X(e,t,n,i,r=!1){return r?jX(e,t,n):n.findIndex(a=>a[0]===i)}o($X,"getExtensionIndex");function BX(e,t,n,i,r){se(e,{severity:wi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(BX,"handleInvalidExtension");function va(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=UX(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=U1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){BX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=kX(g,s);if(v){let A=$X(g,e,t,v,a);A>-1&&(DA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&_A(l,n,t,r),t}o(va,"addExtensionToArray");function VA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(VA,"addEnumForProperties");function HX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];VA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(HX,"addColumnPropertyIndexAndEnum");function Ec(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,b,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Zu(l),p=a?a.replace(/::/g,"/"):`@${$o.UIAnnotationTerms.LineItem}`,g=(O=(b=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=va(g,u,i,void 0,n)),HX(u,e,l,i);let m={};u.forEach(([F,U])=>m[F]=U),e.definitions[s].properties=m}o(Ec,"addCustomColumnDefinition");function GX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(GX,"determineActionDefinitionName");function WX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=tc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(WX,"addTargetAndKeysOfAction");function KX(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=GX(e),l=Si(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=$n(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=ro(i),WX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let v=bt(s,dt(g),e.appSchema);v[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(KX,"addActionRecordToSchema");function XX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=pa(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Si(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=ro(s),g[l]=m,sm(s,g,l)}}o(XX,"addLineItemRecordToSchema");function wA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===$o.UIAnnotationTypes.DataFieldForAction||s.$Type===$o.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))KX(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===$o.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;XX(e,l,u,a,i)}a++})}o(wA,"appendLineItemsToSchema");function Ac(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=om(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);wA(e,r,a,void 0,t)}o(Ac,"addLineItemsTypeToSchema");function Sc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,v,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${$o.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 b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;da(s,b)}}o(Sc,"addFragmentEnumForAnchor");function po(e,t,n=te.DefinitionName.CustomActionPosition){Xa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Fh(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(e[s].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Fh,"findPageV4");function j1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(j1,"alignSchemaWithTemplateType");function Ta(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,b,O,F,U,K,j;let s=e.definitions[r];if(!s)return;let l=Zu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${$o.UIAnnotationTerms.FieldGroup}`:u=`@${$o.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(j=(K=(U=(F=t.options)==null?void 0:F.settings)==null?void 0:U.controlConfiguration)==null?void 0:K[u])==null?void 0:j.actions,p&&(l=va(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(Ta,"addCustomActionDefinition");function Dh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,b,O,F;let a=e.definitions[r];if(!a)return;let s=Zu(a),l;[te.DefinitionName.CustomHeaderAction,te.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=(F=(O=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=va(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][te.SchemaTag.propertyIndex]=U;s.forEach(([U,K])=>u[U]=K)}e.definitions[r].properties=u}o(Dh,"addHeaderFooterCustomActionDefinition");function Pc(e,t,n){let i=Hg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Hg(i,[t]);if(!r){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Pc,"getManifestPage");function Cc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,k1.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}}}}}o(Cc,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Pc(n,t,i),a=Hg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Cc(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function $1(e,t,n,i,r,a,s){var g,m,v,A,b,O,F,U,K,j,ae,Z;let l=Zu(t),u=new Map;if(l=l.map(re=>{let Pe=hm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,re[0]),[Pe.const,re[1]]}),a){let re=(b=(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:b[a];re&&"subSections"in re&&(l=va(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(U=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:U.header;re&&"facets"in re&&(l=va(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(j=(K=n.options)==null?void 0:K.settings)==null?void 0:j.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=va(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Pe])=>{re=u.get(re)||re,p[re]=Pe}),t.properties=p}o($1,"addCustomSectionDefinition");function B1(e,t,n){var l,u,p;let i=Zu(t),r=new Map;i=i.map(g=>{let m=hm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${$o.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=va(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(B1,"addCustomFilterFieldDefinition");var _=ie(le()),xc=require("@sap-ux/vocabularies-types/vocabularies/UI");var QX=["header","filterBar","chart","table"],MA="@UI.LineItem";function kA(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=mr(e.fullyQualifiedName,xc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=Mg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=ro(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(kA,"addSelectionFields");function qX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${xc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(qX,"getVisualFilters");function YX(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}o(YX,"getPropertiesIndex");function zX(e,t,n,i){var s,l,u,p,g,m;let r=YX(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let A=n[v];if(!A.template){let b=a.properties[v]={$ref:$n(_.DefinitionName.VisualFilter,v)},O=r.indexOf(v);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let F=bt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(K=>K.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=U||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(zX,"addVisualFilters");function JX(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},B1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Xa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(JX,"applyCustomFilterFields");function ZX(e,t,n,i){var l,u;let r=qX(n),a=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={},zX(e,t,r,a);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=kA(e,t,a,s),JX(t,s,n)}o(ZX,"addFilterBar");function H1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.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=dt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=Si(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.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++})}}o(H1,"defineActions");function G1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?pl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(G1,"findTheRightVisualization");function e7(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(e7,"analyzeChartAnnotation");function t7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=G1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=MA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(t7,"analyzeSPVforView");function Ul(e,t,n,i,r,a){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}=G1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return t7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=MA,m=`/${s}/@${xc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=MA;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}=e7(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})`}}o(Ul,"analyzeViewAnnotation");function n7(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 a=t.split(_.UIVOCABULARYDOT)[1],s=i[a].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"}]}o(n7,"addALPChartView");function i7(e,t,n,i,r,a){var U,K,j,ae,Z,re,Pe,D;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ae=(j=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:j[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=Ul(l,s,n.serviceAVT,"primary",void 0,n.logger);n7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,H1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Ul((Pe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Pe[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];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 b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ac(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Ec(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;Ta(e,r,n.logger,void 0,F),po(e,F,_.DefinitionName.CustomActionPosition)}o(i7,"addALPViews");function r7(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 H1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(r7,"addViewChartDefinitions");function o7(e,t,n,i,r,a){let s=r7(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:a||l,title:l}}o(o7,"addViewChart");function a7(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(_.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),Ka(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Ka(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={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Ac(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(a7,"addViewLineItems");function s7(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}]}o(s7,"addTagsToView");function c7(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(c7,"getTargetEntityType");function l7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${xc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=bt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Ka(l.properties.position,_.DefinitionName.ViewPosition,r),bt(_.DefinitionName.ViewPosition,r,e.appSchema),Ec(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Sc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Ta(e.appSchema,i,t.logger,p,u,s),bt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,po(e.appSchema,u,g)}o(l7,"addViewCustomExtensions");function f7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)a7(n,t,e,n.targetAnnotation,i),l7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)o7(n,a,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}`}}}o(f7,"addLRViewParts");function u7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=c7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:b,title:O}=Ul(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(K=>K.targetTypeName===b))==null?void 0:l.name);let F=dt(u[_.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};f7(v,s,U,n,i,m,u),s7(s,F,b,u)}}o(u7,"addLRViews");function p7(e,t,n,i,r,a){var g,m,v,A,b,O,F,U,K,j,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Ul(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${dt(Pe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],Ka(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Ka(ut.properties.columns,D),delete s.properties,Ka(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Ac(je);let an=(v=Pe.split("#"))==null?void 0:v[1],Wn=an?`@${xc.UIAnnotationTerms.LineItem}#${an}`:`@${xc.UIAnnotationTerms.LineItem}`;Ec(e,i,t.logger,void 0,D,Wn),Sc(e,D,i,void 0,Wn);let en=`${_.DefinitionName.Actions}<${D}>`,Lt=gm(e,D,_.DefinitionName.CustomTableAction);Ta(e,i,t.logger,yn(Lt),en,Wn),po(e,en,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Ka(s.properties.columns,_.DefinitionName.LineItems);let Pe=(O=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Pe&&!((K=(U=(F=i.options)==null?void 0:F.settings)==null?void 0:U.views)!=null&&K.paths)&&se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Ac(D),Ec(e,i,t.logger),Sc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(j=i.options)==null?void 0:j.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=mr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;Ta(e,i,t.logger,void 0,ut),po(e,ut,_.DefinitionName.CustomActionPosition)}}o(p7,"adaptTableDefinition");function d7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.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)}}o(d7,"getDefaultAnnotationPath");function g7(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,a=n.entityType,s=d7(t,n.entityType,n.templateType),l=j1(e,n);ZX(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(p7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],u7(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&&(i7(e,r,n,s,t,l),Sc(e,_.DefinitionName.LineItems,t))}o(g7,"addTableAndViews");function m7(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Dh(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,po(e,i,l)}o(m7,"addHeaderActions");function ep(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ri(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Wa(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Fh(l,n,e.entitySet,i);if(!u)return r;m7(r,u,e.logger),g7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,QX),r}o(ep,"generateListReportSchemaV4");var Pr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var wV=ie(Qs()),MV=ie(VV()),kV=ie(ES());var UV=ie(le()),jV=ie(le());function $6(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o($6,"findElementByXMLPath");function $V(e,t){return e[t]?!1:(e[t]={},!0)}o($V,"ensureObjectExists");function B6(e,t){let n={},i=yn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(B6,"getPropertiesFromRef");function H6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=$V(l,i),m=l[i];return Dc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(H6,"traverseDefaultAggregation");function G6(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}o(G6,"isDefaultAggregationAppliable");function Dc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=B6(s,n.$ref));for(let v in u){let A=u[v],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&G6(u,p)&&(l=H6(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,F=O.slice(r.length),U=$6(i,F);l=$V(a,v)||l;let K=a[v];l=Dc({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:K,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(Dc,"traverseSchema");function nf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,kV.parse)(e.fileContent),s=(0,MV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,wV.xml2js)(e.fileContent)}catch(r){se(n,{severity:jV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Bg(r)}),location:{path:e.dataSourceUri}})}return i}o(nf,"parseXML");function rf(e){return`${UV.DefinitionName.CustomExtensionFragment}<${e}>`}o(rf,"getCustomExtensionFragmentDefinitionKey");function Cy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Cy,"getRootElement");var FS=ie(le()),DS=ie(le());var Ip=ie(le());function bs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(bs,"getAttribute");function BV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(BV,"getNodeByName");function W6(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}}o(W6,"resolveMetaPath");function IS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=bs(t,"contextPath")||i.contextPath,a=bs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=W6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(IS,"getEntityTypeResolution");function HV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(HV,"applyAnnotationPath");function K6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Ul(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=db(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(K6,"getTableLineItemAnnotationData");var GV={"sap.fe.macros.Chart":o(e=>{let t=IS(e);HV(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=IS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ri(Ip.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);kA(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=IS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ri(Ip.UIVOCABULARY,n);if(HV(t,r),t.annotationPath){let u=K6(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Ip.DefinitionName.LineItems};wA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var WV=ie(le());var X6=new Map([["filterFields","SelectionField::"]]),Q6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Op={anchor:"anchor",placement:"placement",key:"key"};function q6(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[yn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Op.anchor in r&&Op.placement in r}return!1}o(q6,"isCustomExtensionSchema");function KV(e){let t=X6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=Q6.get(e),t&&(n.prefix=t)),n}o(KV,"getAnnotationPrefix");function Y6(e,t,n,i){let r=t.properties[n],a=KV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=bs(l,Op.key)||n,p=bs(l,Op.anchor),g=bs(l,Op.placement)||WV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}o(Y6,"getExtensionData");function z6(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=Y6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}va(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 a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(z6,"updatePropertyIndices");function J6(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=bs(e.subElements[s],"key")||r}return r}o(J6,"getCorrectedAnchorEnumKey");function Z6(e,t,n,i){var a,s;let r=KV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Xa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=J6(e,m.const,r,t.properties[m.const]))}}o(Z6,"applyEnumsForAnchors");function XV(e,t,n,i){q6(t,n)&&(i=i||e.name,z6(e,t,i),Z6(e,t,n,i))}o(XV,"handleExtensions");var pi=[];for(let e=0;e<256;++e)pi.push((e+256).toString(16).slice(1));function QV(e,t=0){return(pi[e[t+0]]+pi[e[t+1]]+pi[e[t+2]]+pi[e[t+3]]+"-"+pi[e[t+4]]+pi[e[t+5]]+"-"+pi[e[t+6]]+pi[e[t+7]]+"-"+pi[e[t+8]]+pi[e[t+9]]+"-"+pi[e[t+10]]+pi[e[t+11]]+pi[e[t+12]]+pi[e[t+13]]+pi[e[t+14]]+pi[e[t+15]]).toLowerCase()}o(QV,"unsafeStringify");var qV=require("crypto");var Iy=new Uint8Array(256),xy=Iy.length;function OS(){return xy>Iy.length-16&&((0,qV.randomFillSync)(Iy),xy=0),Iy.slice(xy,xy+=16)}o(OS,"rng");var YV=require("crypto"),NS={randomUUID:YV.randomUUID};function eQ(e,t,n){var r;if(NS.randomUUID&&!t&&!e)return NS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??OS();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return QV(i)}o(eQ,"v4");var LS=eQ;var RS="sap.fe.macros",tQ=["id","key","title","text","label","header"];function zV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(zV,"getElementName");function nQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(nQ,"isElementWithNamespace");function iQ(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(iQ,"getDependencies");function rQ(e,t){let n="",i=e.attributes||[];for(let r of tQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(rQ,"getViewNodeDescription");function oQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(oQ,"findAvailableName");function JV(e,t){if(e.properties={},e.$ref){let n=yn(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}}o(JV,"prepareSchemaProperties");function aQ(e,t,n){t.properties||JV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(aQ,"handleAttributes");function sQ(e){e.type===DS.MacrosPropertyType.Control&&(e.internalId=LS())}o(sQ,"applyIdForMacros");function cQ(e,t,n){var i,r;try{(r=(i=GV)[e])==null||r.call(i,t)}catch{se(n,{severity:FS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(cQ,"callAnnotationHandler");function lQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===DS.MacrosPropertyType.Control&&(e.controlName=n)}o(lQ,"updateMetadataByReference");function fQ(e,t,n,i){var v,A,b,O,F;let r=n.schema;t.properties||JV(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?oQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${RS}.${i}`,`${RS}.table.${i}`,`${RS}.filterBar.${i}`];let m=!1;for(let U of g){let K=(F=r.definitions)==null?void 0:F[U];if(typeof K!="object")continue;lQ(u,K,U);let j=rQ(e,i),ae={$ref:HF(U),description:j,propertyIndex:n.index,metadata:u};aQ(e,ae,r),t.properties[p]=ae,m=!0,cQ(U,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(sQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}o(fQ,"addControlToSchema");function ZV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}ZV(r,t)}}o(ZV,"populateUsedDefinitionKeys");function uQ(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}o(uQ,"isElementAddableToSchema");function pQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!BV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(pQ,"getDefaultAggregation");function dQ(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,ew(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:zV(s),index:a}]},i)}}o(dQ,"handleSubElementsOfXMLNode");function ew(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[yn(t.$ref)]:t;if(nQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&uQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),O=fQ(e,t,n,b[b.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),ZV(t,i));let p=pQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),dQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)XV(A.node,A.schema,n.schema,A.name)}o(ew,"handleXMLNode");function gQ(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}o(gQ,"getMacrosPrefixes");function _c(e,t,n,i){let r=nf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:FS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=iQ(l),p=gQ(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,ew(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:zV(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(_c,"generateMacrosSchemaDefinition");function tw(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&&tw(i.subSections,t)}}o(tw,"populateTemplates");function nw(e,t,n,i){var s,l,u;let r=Pc(n.manifest,i),a=[];tw(((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)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=rf(p);e.definitions[m]=g;let v=Cc(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:b={}}=_c(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(nw,"resolveFragments");var mQ=["header","layout","sections","footer"],hQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],_S="Custom Action";function VS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=fm(t.item,e),p=pa(t.item),g=t.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,v=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Si(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=ro(t.item),v[N.SchemaTag.propertyIndex]=s,v[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&v[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),v[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),v[N.SchemaTag.actionType]=n,v[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(VS,"addSingleHeaderActionV4");function iw(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(iw,"addStandardHeaderAction");function rw(e,t,n,i,r,a){let s=pa(e.item),l=Si(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(rw,"addSingleFooterAction");function yQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Pr.UIAnnotationTypes.DataFieldForAction||i.$Type===Pr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(hQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(yQ,"groupByCriticality");function vQ(e,t,n,i,r){for(let a=0;a<e.length;a++)VS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(vQ,"addCriticalActions");function TQ(e,t,n,i,r,a){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&&(VS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(TQ,"addCopyAction");function bQ(e,t,n,i,r,a){for(let s of e)VS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(bQ,"addUncriticalActions");function EQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(EQ,"addRelatedAppsButton");function ow(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(ow,"setAnnotationPathFromEntitySetOrEntityType");function AQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?yQ(n):{};if(vQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=T0(r.entitySet),g=b0(r.entitySet);if(nm(r.entitySet)&&g){let m=iw("Edit",t,i,s.length);ow(m,r.entitySet,e,"UpdateHidden")}if(p){let m=iw("Delete",t,i,s.length+1);ow(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;TQ(l,r.serviceAVT,t,e,i,u),bQ(l,r.serviceAVT,t,e,i,u),cw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),EQ(i)}o(AQ,"addHeaderActionCallBackV4");function SQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Pr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];rw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];rw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(SQ,"addFooterActionCallBackV4");function PQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Ec(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;bt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Sc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&VA(m,l)}o(PQ,"addCustomColumnsOP");function CQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=_S;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;Ta(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;bt(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,po(e,p,m)}o(CQ,"addTableCustomActionsOP");function cw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=_S;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Dh(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;bt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,po(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(cw,"addHeaderFooterCustomActionsOP");function xQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=_S;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;Ta(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,po(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(xQ,"addFormCustomActionsOP");function IQ(e,t,n,i,r,a,s){let l=yl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=bt(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Wa(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Ac(v,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),PQ(n,a,l,t,s),CQ(n,a,l,t,s),g}o(IQ,"handleLineItem");function lw(e,t,n,i,r,a,s){s&&(s.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,t)});let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);Ha(e,l,yl(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(N.DefinitionName.ObjectPageTable,t);let u=IQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(lw,"handleSectionTable");function OQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),Ha(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=cm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=yl(n);bt(N.DefinitionName.CustomFormActionOP,p,r),xQ(r,t,p,g,s)}}o(OQ,"handleFormIdentification");function aw(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);ul(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=nc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(aw,"handleHeaderFacet");function NQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=Si(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:$n(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let v=bt(N.DefinitionName.ObjectPageToolBarAction,dt(g),n);v[N.SchemaTag.annotationPath]=mm(l),v[N.SchemaTag.dataType]=ro(l),v.properties={},a++})}return r}o(NQ,"handleChartActions");function LQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=mm(e),r[N.SchemaTag.dataType]=nc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=$n(N.DefinitionName.ObjectPageToolBarActions,t);let s=NQ(e,t,n,i);return{chart:r,chartActions:s}}o(LQ,"handleChart");function fw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,t)});let a=bt(N.DefinitionName.ObjectPageSectionChart,t,n);ul(e,a,t),a[N.SchemaTag.annotationPath]=mm(e),a.properties.chart.$ref=$n(N.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=LQ(e.target||e,t,n,r);return{sectionChart:a,chart:s,chartActions:l}}o(fw,"handleSectionChart");function sw(e,t,n,i,r,a){var m;let s,l,u;if(!(e!=null&&e.target)){se(r.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=e.target.PresentationVariant?e.target.PresentationVariant.Visualizations:e.target.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="@"+lm(`${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,r.serviceAVT),u=s;else{s=p[0],l="@"+lm(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let A=r.entityType.navigationProperties.find(O=>O.name===g).targetType,b=l==null?void 0:l.split(N.UIVOCABULARYDOT)[1];u=b&&((m=A==null?void 0:A.annotations)==null?void 0:m.UI[b])}if(s){let v=l.split(N.UIVOCABULARYDOT)[1],A=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0],b=g?`${g}::${l}`:l;if(v.startsWith(N.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,b)};let{sectionChart:O,chart:F}=fw(s,b,n,void 0,e.entityType);O[N.SchemaTag.annotationPath]=e.annotationPath,ul(e,O,t),F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}else if(v.startsWith(N.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,b)};let{sectionTable:O,table:F}=lw(e,b,n,{target:u,entityType:e.entityType},r,a);O[N.SchemaTag.annotationPath]=e.annotationPath,ul(e,O,t),delete O[N.SchemaTag.isViewNode],F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}}}o(sw,"handleSectionPresentationVariant");function RQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(RQ,"containsCollectionFacet");function FQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ys(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(FQ,"createCustomSubSectionReference");function DQ(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=bt(n,p,e),m=bt(N.DefinitionName.ObjectPageCustomSectionActions,p,e),v=bt(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${A}`};let b=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},bt(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${O}`,v[N.SchemaTag.isViewNode]=!0,Ta(e,t,i,b,A,p),po(e,A,O)}}o(DQ,"applyCustomActionsToCustomSections");function wS(e,t,n,i,r,a,s){var m,v,A,b,O;let l=!1,u;a&&s?(l=!RQ(a),u=FQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},$1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Xa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},DQ(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(b=(A=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:A.body)==null?void 0:b.sections)==null?void 0:O[s],U=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let j=g.oneOf[K];U[j.const]||(j.hidden=!0)}}}o(wS,"applyCustomSections");function _Q(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Ro(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)MS(a,e.facets,v,g,n,r,s,m);u&&wS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(_Q,"handleCollection");function MS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${yl(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:{sw(u,n,r,i,e,s);break}case N.FacetBase.SelectionPresentationVariant:{sw(u,n,r,i,e,s);break}case N.FacetBase.CollectionFacet:{_Q(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];lw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{OQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{aw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?aw(u,n,i,r,p):a===N.SectionType.Section&&fw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{cu(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(MS,"addSection");function VQ(e,t,n){let i=Ug(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)MS(e,i,a,r,t,N.SectionType.Section,n);wS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(VQ,"addSections");function wQ(e,t,n,i){let r=kg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)MS(e,r,s,a,t,N.SectionType.HeaderSection,i);wS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(wQ,"addHeaderSections");function MQ(e,t,n){let i=e.entityType;dm(t,i),pm(t,i,e,AQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Pr.UIAnnotationTerms.HeaderFacets}`),wQ(e,t,i,n)}o(MQ,"addHeader");function Np(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Fh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(MQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Pr.UIAnnotationTerms.Facets}`),Ys(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{nw(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}VQ(e,r,l),um(r,e,N.FioriElementsVersion.v4,SQ),cw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Do(r,mQ),r}o(Np,"generateObjectPageSchemaV4");function kS(e,t){return JSON.parse(JSON.stringify(t))}o(kS,"generateFreestyleSchemaV4");var Xr=ie(le());function US(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=Vc(p,s,t,r),v={templateType:Xr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Xr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Np(v,e,s,l)}o(US,"generateObjectPageInterfaceV4");function Oy(e,t,n,i,r,a,s){nn();let l=No(i,r),{entitySet:u,entityType:p}=Vc(l,s,n,r),g={templateType:e,fioriElementsVersion:Xr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Xr.TemplateType.ListReportObjectPageV4?Xr.v4.FE_TEMPLATE_V4_LIST_REPORT:Xr.v4.FE_TEMPLATE_V4_ALP;return ep(g,t,m,s)}o(Oy,"generateListReportInterfaceV4");function jS(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Xr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return kS(l,t)}o(jS,"generateFreestyleInterfaceV4");function $S(e,t,n,i,r,a,s){let l={};if(Ys(a,Xr.Features.BuildingBlocks)){let u=No(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?_c(e,p,u,s):{}}return l}o($S,"generateFPMCustomPageInterfaceV4");var Mc=require("@sap-ux/vocabularies-types/vocabularies/UI"),mw=ie(le());var wc=ie(le());var dw=new Map([[wc.PageTypeV2.ListReport,wc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[wc.PageTypeV2.ObjectPage,wc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),uw=o((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"),pw=o(e=>{var t;for(let[n,i]of dw)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),kQ=o((e,t)=>{let n="";for(let[r,a]of dw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),gw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${wc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=pw(n);i&&(t[i]={},uw(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=kQ(s,i);e[l]||(e[l]={}),uw(r[s],e[l])}for(let s in e){let l=pw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ry=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Fy=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),UQ=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),qr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),Dy=o((e,t,n)=>qr(e)+`/@${Mc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),_y=o(e=>qr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Es=o((e,t,n,i)=>qr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),BS=o((e,t,n,i)=>_y(e)+`/filterFields/${i}`,"getFilterFieldPath"),$i=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?qr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),di=o((e,t,n,i,r)=>r?$i(e,t,n,i,r):qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Vy=o((e,t,n,i,r)=>di(e,t,n,i,r)+mw.QUICKVARPATH,"getQuickVariantPath"),nr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?qr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),gi=o((e,t,n,i,r)=>r?nr(e,t,n,i,r):qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Yr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?qr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Cr=o((e,t,n,i,r)=>r?Yr(e,t,n,i,r):qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Bi=o((e,t,n,i)=>qr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>qr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),mi=o((e,t,n,i)=>Fy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),wy=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),yo=o((e,t,n,i)=>UQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),dn=o((e,t,n)=>qr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),af=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),As=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),xr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),sf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Ly=class Ly{};o(Ly,"ApplicationV4"),h([Ut("settings")],Ly.prototype,"settings",2);var Ny=Ly,Qr=class Qr{};o(Qr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Qr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Qr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Qr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Qr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Qr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],Qr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Qr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Qr.prototype,"path",2),h([y(gw)],Qr.prototype,"controllerExtensions",2);var of=Qr;var ye=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.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=Lo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(dl(m,l,g,e,a,r),Qg(u,l,v,s))}}}o(At,"importSettingsOfObject");var LC={};Ks(LC,{ALPChart:()=>KP,ALPTable:()=>hf,ActionAfterExecutionConfiguration:()=>pC,ActionAfterExecutionConfigurationFooter:()=>lP,ActionAfterExecutionConfigurationForm:()=>dP,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>SP,ActionAfterExecutionConfigurationToolBarLR:()=>SC,Actions:()=>TC,AdditionalSemanticObject:()=>fC,CommonHeaderFacetSettings:()=>Rs,CommonViewSettings:()=>mf,CustomActionPosition:()=>xC,CustomActionPositionOP:()=>cC,CustomFilterField:()=>KS,CustomFilterFieldPosition:()=>WS,CustomFooterActionOP:()=>pP,CustomFooterActionPositionOP:()=>uP,CustomFormActionOP:()=>TP,CustomHeaderAction:()=>zS,CustomHeaderActionOP:()=>xP,CustomHeaderActionPosition:()=>Dp,CustomHeaderActionPositionOP:()=>CP,CustomSectionActionOP:()=>rP,CustomSectionActionPositionOP:()=>iP,CustomTableAction:()=>IC,CustomTableActionOP:()=>lC,FilterBar:()=>HS,FlexSettings:()=>OP,FooterActionV4:()=>fP,FormAction:()=>gP,Header:()=>QS,HeaderActions:()=>XS,HeaderSections:()=>_P,LRChartView:()=>XP,LRTableView:()=>QP,MultiTableModeV4:()=>YP,ObjectPageCustomHeaderSectionFlexSettings:()=>JS,ObjectPageCustomHeaderSectionFragment:()=>ZS,ObjectPageCustomSectionActions:()=>eP,ObjectPageCustomSectionFragment:()=>lf,ObjectPageCustomSubSectionFragment:()=>tP,ObjectPageFooter:()=>aP,ObjectPageFooterActions:()=>oP,ObjectPageForm:()=>hP,ObjectPageFormActions:()=>mP,ObjectPageHeader:()=>EP,ObjectPageHeaderAction:()=>PP,ObjectPageHeaderActions:()=>bP,ObjectPageHeaderSectionAddress:()=>DP,ObjectPageHeaderSectionChart:()=>LP,ObjectPageHeaderSectionContact:()=>FP,ObjectPageHeaderSectionDataPoint:()=>RP,ObjectPageHeaderSectionForm:()=>NP,ObjectPageLayout:()=>$P,ObjectPageTable:()=>Wp,ObjectPageTableColumn:()=>Ef,ObjectPageTableColumnAction:()=>iC,ObjectPageToolBarAction:()=>sC,PersonalizationType:()=>HP,PersonalizationTypeOP:()=>tC,Position:()=>mC,PositionOP:()=>rC,QuickVariantSelectionV4:()=>WP,QuickVariantSelectionV4OP:()=>nC,RelatedApps:()=>uC,Table:()=>zP,TableColumn:()=>Yy,TableColumnAction:()=>dC,TableCreationModeOP:()=>eC,TableCustomColumn:()=>yC,TableCustomColumnOP:()=>oC,TableSettings:()=>Hy,TableViewExtension:()=>qP,TableViewSettings:()=>Bp,ToolBar:()=>bC,ToolBarAction:()=>PC,ViewCustomActionPosition:()=>OC,ViewPersonalizationType:()=>GP,ViewPosition:()=>hC,ViewTableColumn:()=>zy,ViewTableColumnAction:()=>gC,ViewTableCustomAction:()=>NC,ViewTableCustomColumn:()=>vC,ViewToolBarAction:()=>CC,VisualFilter:()=>GS,checkViewOrder:()=>JP,deleteCreationModeProperty:()=>Gp,deletePersonalizationProperty:()=>bo,exportCreationModeProperty:()=>Hp,exportPersonalization:()=>Xy,exportPersonalizationProperty:()=>To});function jQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(jQ,"exportVisualFilterValueList");var cf=class cf{};o(cf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],cf.prototype,"hideFilterBar",2),h([y({manifest:{path:_y}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],cf.prototype,"initialLayout",2),h([y({manifest:{path:_y}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],cf.prototype,"layout",2);var HS=cf,Lp=class Lp{};o(Lp,"VisualFilter"),h([y({manifest:{path:BS}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lp.prototype,"availability",2),h([y({manifest:{path:BS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:jQ,key:"visualFilter"}}),C({since:"1.93.0"})],Lp.prototype,"visualFilterValueList",2);var GS=Lp,Rp=class Rp{};o(Rp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"placement",2);var WS=Rp,Ss=class Ss{};o(Ss,"CustomFilterField"),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"label",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"property",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"template",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"required",2),h([y({manifest:{path:Es}}),C({since:"1.77.0"})],Ss.prototype,"position",2);var KS=Ss;var qS=class qS{};o(qS,"HeaderActions");var XS=qS,YS=class YS{};o(YS,"Header");var QS=YS;var Fp=class Fp{};o(Fp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"placement",2);var Dp=Fp,Ps=class Ps{};o(Ps,"CustomHeaderAction"),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ps.prototype,"text",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ps.prototype,"position",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ps.prototype,"press",2),h([y({manifest:{path:mi},generate:Yn}),C({since:"1.84.0"})],Ps.prototype,"visible",2),h([y({manifest:{path:mi},generate:Yn}),C({since:"1.84.0"})],Ps.prototype,"enabled",2);var zS=Ps;var My=class My{};o(My,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],My.prototype,"designtime",2);var JS=My,ir=class ir{};o(ir,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],ir.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],ir.prototype,"relativePosition",2),h([y({manifest:{path:xr},generate:oi}),C({since:"1.84.0"})],ir.prototype,"visible",2),h([y({manifest:{path:xr}}),C({since:"1.77.0"})],ir.prototype,"title",2),h([y({manifest:{path:xr}}),C({since:"1.77.0"})],ir.prototype,"subTitle",2),h([y({manifest:{path:xr,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],ir.prototype,"fragmentName",2),h([y({manifest:{path:xr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],ir.prototype,"templateEdit",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"stashed",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"flexSettings",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"requestGroupId",2),h([y({manifest:{path:xr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],ir.prototype,"controls",2);var ZS=ir;var nP=class nP{};o(nP,"ObjectPageCustomSectionActions");var eP=nP,Cs=class Cs{};o(Cs,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>af(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Cs.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>af(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Cs.prototype,"relativePosition",2),h([y({manifest:{path:af}}),C({since:"1.77.0"})],Cs.prototype,"title",2),h([y({manifest:{path:af,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Cs.prototype,"fragmentName",2),h([y({manifest:{path:af,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Cs.prototype,"controls",2);var lf=Cs,xs=class xs extends lf{};o(xs,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${sf.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],xs.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${sf.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],xs.prototype,"relativePosition",2),h([y({manifest:{path:sf}}),C({since:"1.77.0"})],xs.prototype,"title",2),h([y({manifest:{path:sf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],xs.prototype,"fragmentName",2),h([y({manifest:{path:sf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],xs.prototype,"controls",2);var tP=xs;var _p=class _p{};o(_p,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],_p.prototype,"placement",2);var iP=_p,Is=class Is{};o(Is,"CustomSectionActionOP"),h([y({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([y({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([y({manifest:{path:As}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([y({manifest:{path:As},generate:oi}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([y({manifest:{path:As},generate:oi}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var rP=Is;var sP=class sP{};o(sP,"ObjectPageFooterActions");var oP=sP,cP=class cP{};o(cP,"ObjectPageFooter");var aP=cP;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var lP=Vp,ky=class ky{};o(ky,"FooterActionV4"),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],ky.prototype,"afterExecution",2);var fP=ky,wp=class wp{};o(wp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],wp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],wp.prototype,"placement",2);var uP=wp,Os=class Os{};o(Os,"CustomFooterActionOP"),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([y({manifest:{path:yo},generate:oi}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([y({manifest:{path:yo},generate:oi}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var pP=Os;var Mp=class Mp{};o(Mp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Mp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Mp.prototype,"enableAutoScroll",2);var dP=Mp,Uy=class Uy{};o(Uy,"FormAction"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var gP=Uy,yP=class yP{};o(yP,"ObjectPageFormActions");var mP=yP,vP=class vP{};o(vP,"ObjectPageForm");var hP=vP;var Ns=class Ns{};o(Ns,"CustomFormActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var TP=Ns;var AP=class AP{};o(AP,"ObjectPageHeaderActions");var bP=AP,ff=class ff{};o(ff,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],ff.prototype,"editableHeaderContent",2),h([y({manifest:{path:Fy}}),C({since:"1.84.0"})],ff.prototype,"visible",2),h([y({manifest:{path:Fy}}),C({since:"1.84.0"})],ff.prototype,"anchorBarVisible",2);var EP=ff;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var SP=kp,jy=class jy{};o(jy,"ObjectPageHeaderAction"),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],jy.prototype,"afterExecution",2);var PP=jy,IP=class IP extends Dp{};o(IP,"CustomHeaderActionPositionOP");var CP=IP,Ls=class Ls{};o(Ls,"CustomHeaderActionOP"),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ls.prototype,"text",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ls.prototype,"position",2),h([y({manifest:{path:mi}}),C({since:"1.84.0"})],Ls.prototype,"press",2),h([y({manifest:{path:mi},generate:oi}),C({since:"1.84.0"})],Ls.prototype,"visible",2),h([y({manifest:{path:mi},generate:oi}),C({since:"1.84.0"})],Ls.prototype,"enabled",2);var xP=Ls;var $y=class $y{};o($y,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>Dy(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],$y.prototype,"designtime",2);var OP=$y,Up=class Up{};o(Up,"CommonHeaderFacetSettings"),h([y({manifest:{path:Dy}}),C({since:"1.81.0"})],Up.prototype,"stashed",2),h([y({manifest:{path:Dy}}),C({since:"1.81.0"})],Up.prototype,"flexSettings",2);var Rs=Up,VP=class VP extends Rs{};o(VP,"ObjectPageHeaderSectionForm");var NP=VP,wP=class wP extends Rs{};o(wP,"ObjectPageHeaderSectionChart");var LP=wP,MP=class MP extends Rs{};o(MP,"ObjectPageHeaderSectionDataPoint");var RP=MP,kP=class kP extends Rs{};o(kP,"ObjectPageHeaderSectionContact");var FP=kP,UP=class UP extends Rs{};o(UP,"ObjectPageHeaderSectionAddress");var DP=UP,jP=class jP{};o(jP,"HeaderSections");var _P=jP;var By=class By{};o(By,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],By.prototype,"sectionLayout",2);var $P=By;var Qy=ie(le());var BP=ie(le());var $Q=o((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 vo(e,t,n,i,r,a){let s=Ry(e),l=$Q(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[BP.SchemaTag.key]===(a==null?void 0:a.key)||g[BP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function BQ(e,t,n,i,r,a){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+a)]=g:s[u]=g}return s}o(BQ,"fillNewlyOrderedViews");function JP(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=BQ(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(JP,"checkViewOrder");function Xy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Xy,"exportPersonalization");function To(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(To,"exportPersonalizationProperty");function bo(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}o(bo,"deletePersonalizationProperty");function ZP(e,t,n,i,r,a){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=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(ZP,"deleteView");function Hp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Hp,"exportCreationModeProperty");function Gp(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}o(Gp,"deleteCreationModeProperty");function hw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(hw,"importPersonalization");function yw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(yw,"determineIndexOfView");var uf=class uf{};o(uf,"PersonalizationType"),h([y({manifest:{path:di,export:To,delete:bo}})],uf.prototype,"column",2),h([y({manifest:{path:di,export:To,delete:bo}})],uf.prototype,"sort",2),h([y({manifest:{path:di,export:To,delete:bo}})],uf.prototype,"filter",2);var HP=uf,pf=class pf{};o(pf,"ViewPersonalizationType"),h([y({manifest:{path:$i,export:To,delete:bo}})],pf.prototype,"column",2),h([y({manifest:{path:$i,export:To,delete:bo}})],pf.prototype,"sort",2),h([y({manifest:{path:di,export:To,delete:bo}})],pf.prototype,"filter",2);var GP=pf,df=class df{};o(df,"QuickVariantSelectionV4"),h([y({manifest:{path:Vy}})],df.prototype,"paths",2),h([y({manifest:{path:Vy}})],df.prototype,"hideTableTitle",2),h([y({manifest:{path:Vy}})],df.prototype,"showCounts",2);var WP=df,rr=class rr{};o(rr,"TableSettings"),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"type",2),h([y({manifest:{path:di,import:hw,export:Xy}}),C({since:"1.86.0"})],rr.prototype,"personalization",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],rr.prototype,"selectionMode",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],rr.prototype,"selectAll",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],rr.prototype,"selectionLimit",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],rr.prototype,"enableExport",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],rr.prototype,"quickVariantSelection",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],rr.prototype,"condensedTableLayout",2),h([y({manifest:{path:di}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:di}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:di}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"disableCopyToClipboard",2);var Hy=rr,Gy=class Gy{};o(Gy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:ZP}})],Gy.prototype,"annotationPath",2);var KP=Gy,kc=class kc{};o(kc,"CommonViewSettings"),h([y({manifest:{path:vo,delete:zs}})],kc.prototype,"key",2),h([y({manifest:{path:Ry,import:yw,export:o((t,n)=>{JP(t,n)},"export"),delete:ZP}})],kc.prototype,"index",2),h([y({manifest:{path:vo,delete:zs}})],kc.prototype,"annotationPath",2),h([y({manifest:{path:vo}})],kc.prototype,"entitySet",2);var mf=kc,or=class or extends mf{};o(or,"TableViewSettings"),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"type",2),h([y({manifest:{path:$i,import:hw}}),C({since:"1.86.0"})],or.prototype,"personalization",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectionMode",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectAll",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectionLimit",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],or.prototype,"enableExport",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"quickVariantSelection",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],or.prototype,"condensedTableLayout",2),h([y({manifest:{path:$i}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:$i}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"hierarchyQualifier",2),h([y({manifest:{path:$i}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"disableCopyToClipboard",2);var Bp=or;function HQ(e){return Bp}o(HQ,"getTableViewSettings");var jp=class jp extends Bp{};o(jp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],jp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var hf=jp,Wy=class Wy extends mf{};o(Wy,"LRChartView"),h([y({manifest:{path:vo},generate:Yn})],Wy.prototype,"visible",2);var XP=Wy,gf=class gf extends HQ(mf){};o(gf,"LRTableView"),h([y({manifest:{path:vo}})],gf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:vo}})],gf.prototype,"entitySet",2),h([y({manifest:{path:vo},generate:Yn})],gf.prototype,"visible",2);var QP=gf,Fs=class Fs{};o(Fs,"TableViewExtension"),h([y({manifest:{path:vo}})],Fs.prototype,"key",2),h([y({manifest:{path:Ry,import:yw,export:o((t,n)=>{JP(t,n)},"export"),delete:ZP}})],Fs.prototype,"index",2),h([y({manifest:{path:vo}})],Fs.prototype,"label",2),h([y({manifest:{path:vo}})],Fs.prototype,"template",2),h([y({manifest:{path:vo},generate:Yn})],Fs.prototype,"visible",2);var qP=Fs,Ky=class Ky{};o(Ky,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],Ky.prototype,"showCounts",2);var YP=Ky,$p=class $p extends Hy{};o($p,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],$p.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$p.prototype,"initialLoad",2);var zP=$p;var yf=class yf{};o(yf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],yf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],yf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],yf.prototype,"inlineCreationRowsHiddenInEditMode",2);var eC=yf,vf=class vf{};o(vf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],vf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],vf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],vf.prototype,"filter",2);var tC=vf,Tf=class Tf{};o(Tf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],Tf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],Tf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],Tf.prototype,"showCounts",2);var nC=Tf,hi=class hi{};o(hi,"ObjectPageTable"),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"type",2),h([y({manifest:{path:dn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],hi.prototype,"creationMode",2),h([y({manifest:{path:dn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:Xy}}),C({since:"1.86.0"})],hi.prototype,"personalization",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"selectionMode",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"selectAll",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"selectionLimit",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],hi.prototype,"enableExport",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"quickVariantSelection",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],hi.prototype,"condensedTableLayout",2),h([y({manifest:{path:dn}}),C({since:"1.86.0"})],hi.prototype,"enableFullScreen",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],hi.prototype,"enablePaste",2),h([y({manifest:{path:dn}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],hi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:dn}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],hi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:dn}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],hi.prototype,"disableCopyToClipboard",2);var Wp=hi;var Kp=class Kp{};o(Kp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}})],Kp.prototype,"enableAutoScroll",2);var Qp=Kp,bf=class bf{};o(bf,"ObjectPageTableColumn"),h([y({manifest:{path:Bi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],bf.prototype,"width",2),h([y({manifest:{path:Bi}}),C({since:"1.85.0"})],bf.prototype,"availability",2),h([y({manifest:{path:Bi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],bf.prototype,"widthIncludingColumnHeader",2);var Ef=bf,aC=class aC extends Ef{};o(aC,"ObjectPageTableColumnAction");var iC=aC,Xp=class Xp{};o(Xp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Xp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Xp.prototype,"placement",2);var rC=Xp,Xo=class Xo{};o(Xo,"TableCustomColumnOP"),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([y({manifest:{path:Bi}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([y({manifest:{path:Bi}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var oC=Xo;var qy=class qy{};o(qy,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],qy.prototype,"enableOnSelect",2);var sC=qy,qp=class qp{};o(qp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],qp.prototype,"placement",2);var cC=qp,Ia=class Ia{};o(Ia,"CustomTableActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"press",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Ia.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Ia.prototype,"enabled",2);var lC=Ia;var Af=class Af{};o(Af,"AdditionalSemanticObject"),h([y({manifest:{path:wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],Af.prototype,"allowedActions",2),h([y({manifest:{path:wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Af.prototype,"unavailableActions",2),h([y({manifest:{path:wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Af.prototype,"mapping",2);var fC=Af,Yp=class Yp{};o(Yp,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Yp.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],Yp.prototype,"additionalSemanticObjects",2);var uC=Yp;var zp=class zp{};o(zp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/afterExecution","path")}})],zp.prototype,"enableAutoScroll",2);var pC=zp,Sf=class Sf{};o(Sf,"TableColumn"),h([y({manifest:{path:gi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sf.prototype,"width",2),h([y({manifest:{path:gi}}),C({since:"1.85.0"})],Sf.prototype,"availability",2),h([y({manifest:{path:gi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sf.prototype,"widthIncludingColumnHeader",2);var Yy=Sf,Pf=class Pf{};o(Pf,"ViewTableColumn"),h([y({manifest:{path:nr}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Pf.prototype,"width",2),h([y({manifest:{path:nr}}),C({since:"1.85.0"})],Pf.prototype,"availability",2),h([y({manifest:{path:gi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pf.prototype,"widthIncludingColumnHeader",2);var zy=Pf,Jy=class Jy extends Yy{};o(Jy,"TableColumnAction"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Jy.prototype,"afterExecution",2);var dC=Jy,Zy=class Zy extends zy{};o(Zy,"ViewTableColumnAction"),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],Zy.prototype,"afterExecution",2);var gC=Zy,Jp=class Jp{};o(Jp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Jp.prototype,"placement",2);var mC=Jp,Zp=class Zp{};o(Zp,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var hC=Zp,Qo=class Qo{};o(Qo,"TableCustomColumn"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Qo.prototype,"position",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Qo.prototype,"header",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Qo.prototype,"template",2),h([y({manifest:{path:gi}}),C({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Qo.prototype,"availability",2),h([y({manifest:{path:gi}}),C({since:"1.85.0"})],Qo.prototype,"properties",2);var yC=Qo,qo=class qo{};o(qo,"ViewTableCustomColumn"),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"position",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"header",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qo.prototype,"width",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"template",2),h([y({manifest:{path:nr}}),C({since:"1.86.0"})],qo.prototype,"horizontalAlign",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"availability",2),h([y({manifest:{path:nr}}),C({since:"1.85.0"})],qo.prototype,"properties",2);var vC=qo;var EC=class EC{};o(EC,"Actions");var TC=EC,AC=class AC{};o(AC,"ToolBar");var bC=AC;var ed=class ed{};o(ed,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}})],ed.prototype,"enableAutoScroll",2);var SC=ed,td=class td{};o(td,"ToolBarAction"),h([y({manifest:{path:Cr}})],td.prototype,"enableOnSelect",2),h([y({manifest:{path:Cr}})],td.prototype,"afterExecution",2);var PC=td,nd=class nd{};o(nd,"ViewToolBarAction"),h([y({manifest:{path:Yr}})],nd.prototype,"enableOnSelect",2),h([y({manifest:{path:Yr}})],nd.prototype,"afterExecution",2);var CC=nd,id=class id{};o(id,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],id.prototype,"placement",2);var xC=id,Oa=class Oa{};o(Oa,"CustomTableAction"),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([y({manifest:{path:Cr},generate:Yn}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([y({manifest:{path:Cr},generate:Yn}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var IC=Oa,rd=class rd{};o(rd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"placement",2);var OC=rd,Na=class Na{};o(Na,"ViewTableCustomAction"),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Na.prototype,"text",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Na.prototype,"position",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Na.prototype,"press",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([y({manifest:{path:Yr},generate:Yn}),C({since:"1.84.0"})],Na.prototype,"visible",2),h([y({manifest:{path:Yr},generate:Yn}),C({since:"1.84.0"})],Na.prototype,"enabled",2);var NC=Na;var _C={};Ks(_C,{FreestylePage:()=>FC,ListReport:()=>Ir,ObjectPage:()=>Eo});function GQ(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(a=>delete e[a])}o(GQ,"deleteAllALPViews");function WQ(){}o(WQ,"doNotExport");function KQ(){}o(KQ,"doNotImport");var Ir=class{};o(Ir,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:KQ,export:WQ,delete:GQ}})],Ir.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Ir.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Ir.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Ir.prototype,"defaultTemplateAnnotationPath",2),h([Ut("header")],Ir.prototype,"header",2),h([Ut("fe::FilterBar")],Ir.prototype,"filterBar",2),Ir=h([Ur({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Ir);var RC=ie(le());var Eo=class{};o(Eo,"ObjectPage"),h([Ut("header")],Eo.prototype,"header",2),h([Ut("layout")],Eo.prototype,"layout",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Eo.prototype,"variantManagement",2),h([Ut("sections")],Eo.prototype,"sections",2),Eo=h([Ur({id:`${RC.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:RC.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var DC=class DC{};o(DC,"FreestylePage");var FC=DC;var ev=ie(le());var XQ={ALPTableView:hf},QQ={ALPTableView:hf},qQ={Table:Wp,TableColumn:Ef,ObjectPageCustomSectionView:lf,ActionAfterExecutionConfiguration:Qp},YQ={[ev.PageTypeV4.AnalyticalListPage]:XQ,[ev.PageTypeV4.ListReport]:QQ,[ev.PageTypeV4.ObjectPage]:qQ},VC=class VC extends kl{constructor(){super(LC,_C,YQ)}};o(VC,"MetadataInstanceFactoryV4");var La=VC;var wC=require("@sap-ux/vocabularies-types/vocabularies/UI");function MC(e,t,n,i,r,a,s){var g,m,v,A,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${wC.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let K=l[u].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,K);let j=s||a;At(e.columns[F],t.manifest,l[K],r,[F,j],j,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(O=(b=(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:b.settings)==null?void 0:O.views;(!F||F.paths.length<1)&&se(t.logger,{severity:ye.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(MC,"transferColumns");function zQ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.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=yn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}_o(t,"visualFilters")}}o(zQ,"importVisualFilters");function JQ(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${wC.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=yn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),_o(t.toolBar.actions,g)}}}o(JQ,"importActions");function kC(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),JQ(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o(kC,"transferToolBar");function vw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(vw,"determineTargetAnnotationOfView");function ZQ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let u=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(u){let p=a[ye.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);kC(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ye.SchemaTag.key],m]),MC(g,e,n,i,r,void 0,m)}}o(ZQ,"importALPViews");function eq(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(eq,"getViewTypeByDefinition");function tq(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ye.SchemaTag.propertyIndex]-g[1][ye.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=eq(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=vw(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let O=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;kC(e,v,n,i,r,O,b),MC(v,e,n,i,r,O,b)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(tq,"importLRViews");function nq(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.PropertyName.header,l=e.definitions[a];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=yn(p.$ref),m=e.definitions[g],v=yn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ye.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(nq,"transferHeaderActions");function iq(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+ye.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(iq,"importCustomFilterFields");function rq(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),nq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),zQ(e,t.filterBar,n,i,r),iq(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.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,ye.DefinitionName.Table);let p=vw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),kC(e,t,n,i,r,u),MC(t.table,e,n,i,r,u,p),tq(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&ZQ(e,t,n,i,r)}o(rq,"addSettings");function Uc(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new La,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=fb(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){rq(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(Uc,"createListReportConfig");var Te=ie(le()),jc=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}o(oq,"isBoolean");function aq(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}o(aq,"isNumber");function sq(e,t){let n=e.toString();return oq(n,t)?n==="true":aq(n,t)?parseFloat(n):e}o(sq,"convertValue");function cq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=sq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(cq,"importProperty");function Tw(e,t,n){let i,r=nf(e.file,!1,n);if(r){let a=Cy(r);i={},Dc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},cq)}return i}o(Tw,"convertXmlFileToConfig");function tv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=Tw(s,i,e.logger)),l}o(tv,"createCustomPageConfig");function od(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=rf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=Pc(i,a),g=Cc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=Tw(g,A,s)}return m}o(od,"createCustomFragmentConfig");function UC(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(UC,"getManifestId");function ad(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(ad,"getDefinitionId");function lq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[ad(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(Te.DefinitionName.CustomColumnOP)>-1?s=Te.DefinitionName.CustomColumnOP:s=Te.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(Te.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(lq,"fillTableColumnsInConfig");function Aw(e,t,n,i,r,a){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=yn(l.$ref),p=u.split("<")[0],g;p.includes(Te.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(Te.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(Aw,"fillSectionActionsInConfig");function fq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageSectionForm}<${ad(a)}>`].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],b=yn(A.$ref),O=e.jsonSchema.definitions[b];if(O.annotationType===jc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=yn(O.$ref)||b.split("<")[0];i[n].form.actions[v]=r.createInstance(Te.PageTypeV4.ObjectPage,F),At(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[F],e.routingId,[v.replace("/","??")],a),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}o(fq,"fillFormActionsInConfig");function bw(e,t,n,i,r,a){var u;let s=a||UC(i,!1,jc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageTable);let p=`${Te.DefinitionName.ObjectPageTable}<${a?ad(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${Te.DefinitionName.Actions}<${ad(s)}>`];Aw(e,g,i,n,r,s),lq(e,l,n,i,r,s)}}o(bw,"fillTableInConfig");function uq(e,t,n,i,r){var l;let a=UC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageForm,{actions:{}}),fq(e,s,i,n,r,a))}o(uq,"fillFormInConfig");function pq(e,t,n,i,r,a){let s=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=od(e,s.fragmentName);s.controls=u}n[i]=s}o(pq,"fillCustomSubSectionInConfig");function Sw(e,t,n,i,r,a){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($+Te.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];A=UC(b,!0,jc.UIAnnotationTerms.LineItem),bw(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith($+Te.DefinitionName.ObjectPageSectionTableV4)?bw(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Sw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith($+Te.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${jc.UIAnnotationTerms.FieldGroup}::`))?uq(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith($+Te.DefinitionName.ObjectPageCustomSubSectionFragment)&&pq(e,v,i,m,r,a)}}o(Sw,"fillSectionsInConfig");function dq(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.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(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageCustomSectionActions}<${ad(l)}>`];Aw(e,m,l,p,i,l)}let g=u.template;if(g){let m=od(e,g);p.controls=m}n.sections[l]=p}}o(dq,"fillCustomSectionsInConfig");function gq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=od(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=od(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(gq,"fillCustomHeaderSectionsInConfig");function mq(e,t,n,i,r){var s,l;let a=e.definitions[Te.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(Te.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(Te.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(Te.FACETTITLEPREFIX)[1]))}}}o(mq,"fillHeaderFacets");function hq(e,t,n,i,r,a,s){let l=yn(e.$ref),u=t.definitions[l],p=yn(u.$ref||e.$ref),g=n.createInstance(Te.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(hq,"importActionSettingsOfReference");function Ew(e,t,n,i,r,a,s){let l=e.definitions[a];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&&hq(g,e,n,u,p,i,r)}}}o(Ew,"fillHeaderFooterActions");function yq(e,t,n){var a,s;let i=n.createPageInstance(Te.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[Te.DefinitionName.Sections]&&(i.sections={},Sw(e,e.jsonSchema.definitions[Te.DefinitionName.Sections].properties,r,i.sections,n)),dq(e,r,i,n),mq(e.jsonSchema,i,n,e.manifest,e.routingId),gq(e,r,i,n),Ew(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.ObjectPageHeaderActions,Te.PropertyName.header),Ew(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.FooterActions,Te.PropertyName.footer)),i}o(yq,"fillObjectPageConfig");function nv(e){if(nn(),!e.manifest[Te.ManifestSection.ui5]||!e.manifest[Te.ManifestSection.ui5].routing){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5]}});return}let t=e.manifest[Te.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5,"routing"]}});return}let i=new La;return yq(e,n,i)}o(nv,"createObjectPageConfigV4");var Ge=ie(le());var jC=[],iv={};function vq(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(vq,"routesSorter");function $C(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]}o($C,"resolveTarget");function Tq(e){let t={};e=e.concat().sort(vq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=$C(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(Tq,"populateAssociations");function bq(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(bq,"determinePageType");function Eq(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.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===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=nv(r)}else if(e.page.pageType===Ge.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=tv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=Uc(r,s)}}}o(Eq,"convertSettingsToConfig");function Aq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");jC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");jC.push(t[t.length-1])}}o(Aq,"updateUnhandledControllers");function Sq(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}}}o(Sq,"setVariantManagmentAndNavigation");function Pq(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:a,entityType:s}=Vc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(Pq,"setEntitySetEntityTypeContextPath");function Cq(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([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(Cq,"evaluateCustomPageSettings");function xq(e,t,n,i){let r=e.targets[t],a=bq(r,i.logger,t),s={pageType:a};if(Pq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),iv[t]&&iv[t].indexOf(".")!==-1){let p=iv[t].split(".");s.navigationProperty=p[p.length-1]}Cq(r,s,a),Sq(r,s),Aq(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};Eq(u)}o(xq,"getSinglePageAndConfig");function Pw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}iv=Tq(n.routes||[]);for(let i in n.targets)xq(n,i,t,e);return t}o(Pw,"getPagesAndConfigs");function Cw(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 $C(t?t.target:e.routes[0].target)}else return}o(Cw,"getHome");function xw(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}}:{}}o(xw,"getSettings");function xf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(xf,"getPages");var BC=class BC extends qa{constructor(t){nn();let n=new of,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Cw(t.manifest[Ge.ManifestSection.ui5].routing),Pw(t),{...xw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=jC}};o(BC,"V4AppProvider");var Cf=BC;var Iw=require("fs"),$c=require("path"),Ow=ie(le()),sd=ie(le());var Nw=o((e,t,n=__dirname)=>{let i;switch(t){case sd.SchemaType.Application:{i=`${sd.SchemaType.Application}${e.toUpperCase()}.json`;break}case sd.SchemaType.FPMCustomPage:{i=`${sd.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"),Iq=o(async e=>new Promise((t,n)=>{(0,Iw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),rv=o(async(e,t)=>{try{let n=Nw(e||Ow.FioriElementsVersion.v4,t,__dirname);return await Iq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Oq(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.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,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 a=Dt(r);n[a.filename]=await rv(t,r)}return n}o(Oq,"getGenericSchemas");function Rw(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:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Rw,"getAnnotationsForUi");function cd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(cd,"getEntitySetByEntitySetName");function Nq(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];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}}o(Nq,"resolveNavigationProperty");function Vc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(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:a,entitySet:s}=Nq(r,e):se(i,{severity:ue.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&se(i,{severity:ue.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Vc,"getEntityTypeEntitySetFromContextPath");function Lw(e,t,n){let i=zu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=cd(a,e.serviceAVT);s||se(e.logger,{severity:ue.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(ue.SchemaType.ObjectPage);n[l.filename]=ld(e,t[u.filename])}}o(Lw,"generateObjectPageSchemasV2");function Lq(e,t,n){var l,u;let i=xf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=xf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=Vc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let b=Dt(ue.SchemaType.ListReport,p),O=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=ou(a[p])),n[b.filename]=ep(e,t[O.filename],a[p].name,m)}}o(Lq,"generateListReportSchemasV4");function Rq(e,t,n){var r;let i=zu(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=cd(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(ue.SchemaType.ListReport);t[l.filename]=fd(e,n[u.filename])}}o(Rq,"generateAppSchemaV2LR");function Fq(e,t,n){var a,s;let i=xf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Vc(r,p,u);e.entitySet=m,e.entityType=g;let v=Dt(ue.SchemaType.ObjectPage,l),A=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[v.filename]=Np(e,t[A.filename],p,t[b.filename])}}o(Fq,"generateObjectPageSchemasV4");function Dq(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)Rq(e,r,t),Lw(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=zu(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=cd(u,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=ud(e,t[g.filename])}Lw(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=pd(t[l.filename],e.manifest)}return{...t,...r}}o(Dq,"generateAppSchemasV2");function _q(e,t,n){if(!Ys(e.featureToggles,ue.Features.BuildingBlocks))return;let i=xf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[u.filename]=_c(t[p.filename],s,e.serviceAVT,e.logger)}}}o(_q,"generateCustomPageSchemasV4");function Vq(e,t,n){let i={};return n&&(Lq(e,t,i),Fq(e,t,i),_q(e,t,i)),{...t,...i}}o(Vq,"generateAppSchemasV4");async function Fw(e,t,n){let i=await Oq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?Vq(e,i,t):Dq(e,i,t,n)}o(Fw,"generateAppSchemas");function wq(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new Oh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Cf(e);break;case ue.TemplateType.OverviewPageV2:t=new Rh(e);break;default:t=new Cf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(wq,"importConfigs");function Dw(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}o(Dw,"getFileList");async function HC(e){var b,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new lu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=mb(t),p=No(n,i),g=Rw(p),m=hb(t,u,i),A=await Fw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Dw(A)}o(HC,"importProjectSchema");async function GC(e){var K,j;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new lu().doesUi5VersionFitDistTags((j=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:j.minUI5Version,i);let p=mb(t),g=$F(t),m=No(n,i),v=hb(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Rw(m),O=await Fw(A,b,v),U=wq({manifest:t,flexChanges:s,appSchemas:O,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Dw(O,U)}o(GC,"importProjectSchemaAndConfig");var Mq=["header","sections","footer"];function kq(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o(kq,"addFlexChangeForSection");function Uq(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=fm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(Uq,"addHeaderActionCallBackV2");function jq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=pa(r).split("::").splice(1).join("::"),s=Si(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(jq,"addFooterActionCallBackV2");function $q(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),A=vc(t[oe.ManifestSection.generic].pages,n,m);return ml(e,v,A,t,l,p,g,a.ID),p}o($q,"ensureCustomColumnDefinitionExists");function gd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&kq(e,t,"visible",n)}o(gd,"addAppSchemaDefinition");function Bq(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(Bq,"addSectionReference");function dd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.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}>`,Wa(n.entityType,i,`QuickVariant<${t}>`)}o(dd,"addTableDefinition");function Hq(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];gd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,Ha(i,u,t),dd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),dd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),dd("ObjectPageGridTable",t,i,n),dd("ObjectPageTreeTable",t,i,n),dd("ObjectPageAnalyticalTable",t,i,n);let p,g=P0(i.entityType,e.serviceAVT);g&&(p=$q(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===oe.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&gl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(Hq,"handleLineItem");function Gq(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";gd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Gq,"handleSubSection");function Wq(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];gd(e,a,r,"ObjectPageSectionChartV2")}o(Wq,"handleSectionChart");function _w(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];gd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=nc(n==null?void 0:n.target)}o(_w,"handleHeaderFacet");function Kq(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=nc(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`}o(Kq,"addDataPointHeaderFacetDataType");function Xq(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return gd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(Xq,"handleFormSection");function Qq(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Qq,"getSectionType");function qq(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(qq,"getReferenceKey");function ww(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Qq(l.base,a,s),p=qq(l,n,u),g=`${u}<${p}>`;switch(Bq(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Gq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)ww(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Hq(e,p,r,l,t,u),vl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Wq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=Xq(r,g,l,p,u);cm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{_w(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{_w(r,g,l,p,u),Kq(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(ww,"addSection");function Vw(e,t,n,i,r,a=!1){if(e)for(let s in t)ww(i,t,s,n,r,!1,a)}o(Vw,"addSectionsFromFacets");function Mw(e,t,n){var g,m,v,A,b,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ug((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=kg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let U=n[F];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(U.entitySet)?(Vw(l,a,i,e,t),Vw(u,s,r,e,t,!0)):Mw(e,t,U.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Mw,"addSections");function Yq(e,t,n){dm(e,n),pm(e,n,t,Uq,void 0,!0)}o(Yq,"addHeader");function zq(e,t,n,i){let r=BF(t,n,i,void 0,!0);r&&O0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(zq,"addRelatedFacetKeysType");function ld(e,t){var s;nn();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[oe.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(Yq(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Mw(e,n,a),zq(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[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),um(n,e,oe.FioriElementsVersion.v2,jq,a),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,Do(n,Mq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(ld,"generateObjectPageSchemaV2");var ti=ie(le());var If=require("@sap-ux/vocabularies-types/vocabularies/UI");var Zq=["filterBar","table","footer"],eY=ti.UIVOCABULARYALPHADOT.substring(1);function WC(e,t,n,i){Wa(e,n,"QuickVariant"),C0(n,"QuickVariantX",t),x0(i,n,"QuickVariantX")}o(WC,"addEnumForVariantPaths");function tY(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[If.UIAnnotationTerms.SelectionPresentationVariant,If.UIAnnotationTerms.SelectionVariant,If.UIAnnotationTerms.PresentationVariant];su(e,r,i)}o(tY,"addEnumForFilterBarAnnotationPath");function nY(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(If.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(If.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(eY,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(nY,"getPresentationVariantForLineItem");function iY(e,t,n){if(rm(t,"annotationPath",n))return;let i=nY(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=au("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(iY,"getLineItemAnnotation");function fd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;Ab.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:a,uIAnnotations:s}=im(e);if(s){let u=[],p=_l(e.manifest[ti.ManifestSection.generic].pages,u);hl(n);let g=iY(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=mr(a.fullyQualifiedName,g.term,g.qualifier);Ab.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=v})}gl(!1,n,g,a);let m=s.SelectionFields;if(tm(n,m,a),vl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],v0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ti.LogSeverity.Error,message:q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;ml(n,a,p,e.manifest,e.fragments),WC(a,e.entitySet,n,e.serviceAVT),tY(a,n,ti.DefinitionName.ListReportFilterBar),I0(a,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 Do(n,Zq),n}o(fd,"generateListReportSchemaV2");var Zt=ie(le());var rY=["filterBar","keyPerformanceIndicators","chart","table","footer"];function oY(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(rm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.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||au("LineItem",O),g=g||au("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(oY,"getLineItemAndChartAnnotation");function aY(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(aY,"addChart");function ud(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,y0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=im(e);if(s){hl(n);let l=[],u=Ml(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=oY(u,s,e.logger);p&&u0.forEach(v=>{n.definitions[v][Zt.SchemaTag.annotationPath]=mr(a.fullyQualifiedName,p.term,p.qualifier)}),gl(!1,n,p,a),g&&aY(n,g);let m=s.SelectionFields;if(tm(n,m,a),vl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;ml(n,a,u,e.manifest,e.fragments),WC(a,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 Do(n,rY),n}o(ud,"generateAnalyticalListReportSchemaV2");function sY(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]})}o(sY,"getCardDefinitionNames");function cY(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||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},da(a,s.CardModel);let l=sY(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(cY,"addModelsEnum");function kw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},cY(n,t),n}o(kw,"generateOverviewPageSchemaV2");var Ds=ie(le());function KC(e,t,n,i,r,a){nn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Ds.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=cd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Ds.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(KC,"prepareGenerationV2");function XC(e,t,n,i,r,a){let s=KC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return ld(s,e)}o(XC,"generateObjectPageInterfaceV2");function QC(e,t,n,i,r,a){let s=KC(n,a,i,r,t,Ds.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(QC,"generateListReportInterfaceV2");function qC(e,t,n,i,r,a){let s=KC(n,a,i,r,t,Ds.TemplateType.AnalyticalListPageV2);return ud(s,e)}o(qC,"generateAnalyticalListPageInterfaceV2");function pd(e,t){return kw(e,t)}o(pd,"generateOVPInterfaceV2");var we=ie(le());var md=o(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 Uw(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])}o(Uw,"getClassesForSingleSection");function jw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Uw(n,i,t),jw(n,t)}}o(jw,"getSubsectionClasses");function lY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Uw(i,r,n),jw(i,n)}o(lY,"getExportClassesForSections");function fY(e,t){let n=_l(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(fY,"findV2Page");function YC(e,t){let n=Kg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(YC,"calculateBaseId");function $w(e,t,n=!1){let i=md(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=fY(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:YC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(p,u,[],[],e.jsonSchema)}return i}o($w,"exportListReportPage");function Bw(e,t,n=!1){let i=e.page.config,r=md(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Ml(e.manifest[we.ManifestSection.generic].pages,a,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 _i,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:YC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(p,u,[],[],e.jsonSchema)}return r}o(Bw,"exportAnalyticalListPage");function Hw(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=md(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new _i,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&lY(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:YC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ds(g,p,[],[],e.jsonSchema)}}return a}o(Hw,"exportObjectPage");var Gw=o(e=>{let t=md();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new _i,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),uY=o((e,t,n)=>{var s;let i=md();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new ym,e);r.settings=Object.assign(new Ya,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],Ga(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Ob(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Ww(e,t){if(e[we.SchemaType.ListReport])return $w(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return Hw(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Gw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return uY(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Bw(e[we.SchemaType.AnalyticalListPage],t)}o(Ww,"exportPageV2");function zC(e,t,n=!1){if(e[we.SchemaType.ListReport])return $w(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return Hw(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Gw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Bw(e[we.SchemaType.AnalyticalListPage],t,n)}o(zC,"exportConfigEntityByPathV2");var Of=ie(le()),Xw=require("@sap-ux/vocabularies-types/vocabularies/UI");function Kw(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]}o(Kw,"updateDependencyLib");function ov(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}o(ov,"extractLastIdPart");function Qw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Of.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Of.PropertyName.sections),s=a>-1?ov(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Xw.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:Of.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return JC(g),!0}o(Qw,"createNewCustomColumn");var Ra=ie(le());var Yw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),qw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function pY(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(pY,"initializeRouting");function dY(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(dY,"setTargetOptions");function gY(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ra.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(gY,"calculateQueryPattern");function zw(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;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,a=n[s])}if(a){zw(e,t,n,s);return}}}o(zw,"fillNavigationParts");function mY(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("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(mY,"fillParentKeys");function hY(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(dY(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];zw(p,a,t,r,l==null?void 0:l.contextPath);let g=mY(e.routePattern);u=gY(p,l,g)}i.routes.push(Yw(u,s.route,s.route))}}}o(hY,"handlePageNavigation");function yY(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)}}o(yY,"removeDeletedPages");function vY(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=qw({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=qw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(vY,"transferEntitySetandContextPath");function TY(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(TY,"updateRouteLayout");function bY(e,t,n,i){var r;return e.pageType&&![Ra.PageTypeV4.CustomPage,Ra.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&&(e.pageType!==Ra.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ra.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(bY,"fillTarget");function Jw(e,t,n){var r,a;let i=pY(n[Ra.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Yw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=bY(u,l,s,t),vY(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),hY(u,t,l,i,s),TY(i,s,u),i.targets[s]=l}return yY(i,t),i}o(Jw,"transformRoutingV4");var Ii=ie(le());var Zw=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],eM=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.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:Zw[r]?s.controlAggregation=Zw[r]:s.controlAggregation=Ii.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)eM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),EY=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,eM(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Kw(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),AY=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),tM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?EY(e,t):AY(e)},"updateFcl");var ne=ie(le()),hd=require("@sap-ux/vocabularies-types/vocabularies/UI");var nM=ie(Qs()),av=ie(le());function SY(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(SY,"isExportValueEquals");function PY(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===av.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(PY,"deleteProperty");function iM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,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),Dc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},iM)}else SY((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]&&(PY(e,i),l=!0);return l}o(iM,"exportProperty");function sv(e,t,n,i,r,a){let s=nf(e.file,!1,a);if(s){let l=Cy(s);if(Dc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},iM)){let p=(0,nM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:av.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(sv,"getExtensionExportResult");var rM=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Bo(n||[],a.name,i,s)),u&&sv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),oM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Pc(u,s[0]);p=Cc(a,m,u,g,t)}if(p){let m=rf(t),A={...i.definitions[m],definitions:i.definitions};sv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var aM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],CY=[...aM,"views","initialLoad","template"],cv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function xY(e,t,n){var s,l,u,p;let i=`@${hd.UIAnnotationTerms.LineItem}`,r=`@${hd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.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]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(xY,"determineTargetAnnotationOfTable");function IY(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.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}}o(IY,"determineTargetAnnotationOfChart");function OY(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(OY,"determineTargetAnnotationBasedOnParentView");function NY(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=OY(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(NY,"determineTargetAnnotationOfView");function LY(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.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}}o(LY,"determineTargetAnnotationOfHeaderSections");function RY(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=ov(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(RY,"determineTargetAnnotationOfSections");function FY(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=xY(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=IY(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=RY(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=LY(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=NY(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(FY,"determineTargetAnnotation");function DY(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(DY,"determineKeyForSyncRule");function _Y(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]={})}o(_Y,"createNewObjectInManifest");function sM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(_Y(e),i=!0):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],i=!0),i}o(sM,"transferPropertyToManifest");function VY(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&aM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&CY.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Ga(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(VY,"deleteFromManifest");function wY(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=FY(e,n.transferParameters,n.configObject),g=DY(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=Lo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let A={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&fl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=VY(e,A,n.transferParameters,v,m,u,l):r=sM(A,n.propertyDefinition,i)}return r}o(wY,"exportManifestChange");function MY(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);oM(e.transferParameters,r,n.configObject)}else i.manifest&&wY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(MY,"evaluateExportRule");function kY(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,ex(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(kY,"transferSubObject");function UY(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Lo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(UY,"createALPTableView");function jY(e){var a,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=ft(e.transferParameters.pageNameArray)+"/views",r=Lo(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=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||hd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(jY,"createALPChartView");function $Y(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Lo(e.exportResults.manifest,i),a=`@${hd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].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}o($Y,"createVisualFilters");function BY(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Lo(t.exportResults.manifest,a),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}o(BY,"createLRTableView");function HY(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=Qw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return jY(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return UY(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=BY(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=$Y(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(HY,"createNewElement");function GY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(GY,"isDefinitionTraversable");function ZC(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Wg(e.configObject,e.key),s=Fo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=HY(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||MY(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||GY(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;kY(e,s,r,p,m)}}o(ZC,"transferSortedListEntry");function WY(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&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]],ZC(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,ZC(e,i,r),a=!0)}),e.index++})}return a}o(WY,"transferConfigEntriesWithAnyOfDefinitions");function KY(e,t,n,i){let r=yb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(KY,"mergeEntriesForInsert");function XY(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(XY,"sortProperties");function QY(e,t,n,i,r,a){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=WY(n,p,i,r,a)}return s}o(QY,"checkIfAnyOfDefinition");function ex(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=QY(u,e,l,a,n,i),g=XY(a.properties);u!=null&&u.$ref&&KY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!fl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,ZC(l,n,i,p),m[1].$ref&&s++)})}o(ex,"transferManifestEntriesAndFlexChange");function cM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(cM,"getClassesForSingleSection");function lM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],cM(n,i,t),lM(n,t)}}o(lM,"getSubsectionClasses");function qY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],cM(e,r,n),lM(i,n)}o(qY,"getExportClassesForSections");function fM(e,t){let n=Kg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(fM,"calculateBaseId");var uM=o((e,t,n=!1)=>{var l;let i=cv(e.manifest),r=new La,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&qY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:fM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return ex(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),YY=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=cv(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let v=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&v)for(let F in v.properties)g.toolBar.actions[F]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:fM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return ex(A,n,[],[],[],u),l},"exportListPage"),tx=o((e,t,n,i=!1)=>{let r=new La,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return YY(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),pM=o((e,t,n=!1)=>tx(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),zY=o((e,t,n,i,r,a)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=ub());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];sM(u,p,{}),!l&&Object.keys(s).length&&jF(r,t,s)},"applyExportRule"),JY=o((e,t,n)=>{var a;let i=cv(t),r=Object.assign(new Ny,e);r.settings=Object.assign(new of,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)zY(l,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ga(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=Jw(e.home,e.pages,i.manifest),tM(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),dM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return tx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return uM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return JY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return pM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return rM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),ZY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=cv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&sv(l,s,i.config,t,"view",a),s},"exportCustomPage"),nx=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return tx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return uM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return pM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return ZY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var ez=new Map([[de.CustomExtensionType.CustomPage,Bt.generateCustomPage],[de.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[de.CustomExtensionType.CustomSection,Bt.generateCustomSection],[de.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[de.CustomExtensionType.ListReport,Bt.generateListReport],[de.CustomExtensionType.CustomAction,Bt.generateCustomAction],[de.CustomExtensionType.CustomView,Bt.generateCustomView],[de.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),tz={api:Bt.PromptsAPI,types:Bt.PromptsType};function nz(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:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=QC(i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=XC(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=pd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=qC(i,r,a,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:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=Oy(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=US(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=Oy(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=jS(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=$S(i,r,a,s,u,e.featureToggles,l)}}return t}o(nz,"generateSchema");function iz(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=Ww(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=dM(i,n)}return t}o(iz,"exportConfig");function rz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=zC(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=nx(i,n)}return t}o(rz,"exportConfigEntityByPath");function oz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=zC(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=nx(i,n,!0)}return t}o(oz,"deleteConfigEntityByPath");function az(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Ph(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Ih(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=Lh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=Ch(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Uc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=nv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Uc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=tv(n[de.SchemaType.FPMCustomPage]))}return t}o(az,"importConfig");async function sz(e){return GC(e)}o(sz,"importProject");async function cz(e){return HC(e)}o(cz,"importProjectSchema");function lz(){return{version:"20",fpmWriter:"28",moduleVersion:_0.version}}o(lz,"getApiVersion");function JC(e){let t=ez.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(JC,"generateCustomExtension");var zr=require("path"),_s=require("fs");var Nf=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),fz=o(async e=>JSON.parse(await Nf(e)),"readJSON"),ix=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),uz=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),mM=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),pz=o(async e=>fz((0,zr.join)(e,"manifest.json")),"getManifest"),hM=o(async e=>{let t=[],n=(0,zr.join)(e,"changes");if(!await mM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await ix(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Nf((0,zr.join)(n,a)));return t},"getChanges"),gM=o(async(e,t="fragments")=>{let n=[],i=(0,zr.join)(e,"ext",t);if(!await mM(i))return n;let r=await ix(i);for(let a of r){let s=(0,zr.join)(i,a),l=await Nf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),dz=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,zr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Nf(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,zr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await Nf(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 b=(0,zr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Nf(b)})}}return n},"getAnnotations"),gz=o(async e=>{let t=(0,zr.basename)(e),n=(0,zr.join)(e,"webapp"),i=await pz(n),r=await dz(i,n),a=await hM(n),s=await gM(n),l=await gM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Xs(wi,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
295
295
|
/*! Bundled license information:
|
|
296
296
|
|
|
297
297
|
sax/lib/sax.js:
|