@sap/ux-specification 1.124.16 → 1.124.18
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 +32 -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 +79 -79
- package/dist/index-min.js.map +4 -4
- package/dist/specification/package.json +4 -4
- package/dist/specification/scripts/extractDocu.js +2 -2
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/src/sync/common/dist_tag.json +11 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +7 -0
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +17 -0
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +2 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +72 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +307 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +2 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +2 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +118 -0
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +151 -0
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -0
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +2 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +6 -6
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +0 -14
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +0 -38
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts +3 -3
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +4 -13
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +8 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +11 -1
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +8 -2
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +13 -0
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +18 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +4 -0
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var oH=Object.create;var rl=Object.defineProperty;var GI=Object.getOwnPropertyDescriptor;var aH=Object.getOwnPropertyNames;var sH=Object.getPrototypeOf,cH=Object.prototype.hasOwnProperty;var o=(e,t)=>rl(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var n in t)rl(e,n,{get:t[n],enumerable:!0})},mg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of aH(t))!cH.call(e,r)&&r!==n&&rl(e,r,{get:()=>t[r],enumerable:!(i=GI(t,r))||i.enumerable});return e},qs=(e,t,n)=>(mg(e,t,"default"),n&&mg(n,t,"default")),ie=(e,t,n)=>(n=e!=null?oH(sH(e)):{},mg(t||!e||!e.__esModule?rl(n,"default",{value:e,enumerable:!0}):n,e)),hg=e=>mg(rl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?GI(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&&rl(t,n,r),r};var EL=ze((BY,bL)=>{var DT=Object.defineProperty,lH=Object.getOwnPropertyDescriptor,fH=Object.getOwnPropertyNames,uH=Object.prototype.hasOwnProperty,_T=o((e,t)=>{for(var n in t)DT(e,n,{get:t[n],enumerable:!0})},"C"),pH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of fH(t))!uH.call(e,r)&&r!==n&&DT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=lH(t,r))||i.enumerable});return e},"Ze"),dH=o(e=>pH(DT({},"__esModule",{value:!0}),e),"et"),WI={};_T(WI,{ACTIONTITLEPREFIX:o(()=>yH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>JI,"ALPViewType"),ActionType:o(()=>tN,"ActionType"),ArtifactType:o(()=>eN,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>TH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>aN,"ChangeIndicator"),ChartColor:o(()=>SN,"ChartColor"),CloudDevAdaptationStatus:o(()=>vN,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>EN,"ColorPaletteDefinitionType"),ControlType:o(()=>nN,"ControlType"),CustomExtensionType:o(()=>CN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>IH,"DATESETTINGSPATH"),DataSourceType:o(()=>TN,"DataSourceType"),DefinitionName:o(()=>lN,"DefinitionName"),DirName:o(()=>rN,"DirName"),DraftDiscardEnabledSettings:o(()=>gN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>YI,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>hH,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>FH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>RH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>NH,"FRAGMENTNAMEPART"),FacetBase:o(()=>sN,"FacetBase"),Features:o(()=>ON,"Features"),FileName:o(()=>oN,"FileName"),FioriElementsVersion:o(()=>KI,"FioriElementsVersion"),FlexChangeLayer:o(()=>qI,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>yN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>QI,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>LH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>PN,"LogSeverity"),MANIFESTPATH:o(()=>bH,"MANIFESTPATH"),MacrosPropertyType:o(()=>dN,"MacrosPropertyType"),ManifestSection:o(()=>bN,"ManifestSection"),OdataVersion:o(()=>XI,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>mH,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>gH,"PageType"),PageTypeV2:o(()=>VT,"PageTypeV2"),PageTypeV4:o(()=>wT,"PageTypeV4"),PropertyName:o(()=>fN,"PropertyName"),QUICKVARPATH:o(()=>CH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>OH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>_H,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>DH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>pN,"SchemaKeyName"),SchemaTag:o(()=>uN,"SchemaTag"),SchemaType:o(()=>zI,"SchemaType"),SectionType:o(()=>ZI,"SectionType"),StatePreservationMode:o(()=>hN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>mN,"TableColumnVerticalAlignment"),TemplateType:o(()=>xN,"TemplateType"),UIVOCABULARY:o(()=>SH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>xH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>PH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>AH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>EH,"VOCWITHSLASH"),ViewTemplateType:o(()=>cN,"ViewTemplateType"),ViewTypes:o(()=>AN,"ViewTypes"),Visualization:o(()=>iN,"Visualization"),defaultExportResult:o(()=>vH,"defaultExportResult"),logSeverityLabel:o(()=>VH,"logSeverityLabel"),v2:o(()=>IN,"v2"),v4:o(()=>ZN,"v4")});bL.exports=dH(WI);var VT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(VT||{}),wT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(wT||{}),gH={...VT,...wT},mH=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"]]),KI=(e=>(e.v2="v2",e.v4="v4",e))(KI||{}),XI=(e=>(e.v2="v2",e.v4="v4",e))(XI||{}),QI=(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))(QI||{}),qI=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(qI||{}),zI=(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))(zI||{}),YI=(e=>(e.flex="flex",e.manifest="manifest",e))(YI||{}),JI=(e=>(e.Primary="primary",e.Secondary="secondary",e))(JI||{}),ZI=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(ZI||{}),eN=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(eN||{}),tN=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(tN||{}),nN=(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))(nN||{}),iN=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(iN||{}),rN=(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))(rN||{}),oN=(e=>(e.App="app.json",e))(oN||{}),hH="Facet ID: ",yH="Action ID: ",aN=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(aN||{}),vH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},sN=(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))(sN||{}),TH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",cN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(cN||{}),lN=(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.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",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))(lN||{}),fN=(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))(fN||{}),uN=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(uN||{}),pN=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(pN||{}),bH="webapp/manifest.json",EH="/@com.sap.vocabularies",AH="::@com.sap.vocabularies",SH="com.sap.vocabularies.UI.v1",PH="com.sap.vocabularies.UI.v1.",xH="@com.sap.vocabularies.UI.v1.",CH="/quickVariantSelection",OH="/quickVariantSelectionX",IH="/filterSettings/dateSettings",NH=".fragment.",dN=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(dN||{}),gN=(e=>(e.restricted="restricted",e))(gN||{}),mN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(mN||{}),hN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(hN||{}),yN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(yN||{}),vN=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(vN||{}),TN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(TN||{}),bN=(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))(bN||{}),LH="sap.ui.generic.app/settings",EN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(EN||{}),RH="sap.fe.templates.RootContainer.view.Fcl",FH="appRootView",AN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(AN||{}),DH="sap.ui.core.mvc.View",_H="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||{}),PN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(PN||{}),VH={error:"Error",warning:"Warning",info:"Information"},xN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(xN||{}),CN=(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))(CN||{}),ON=(e=>(e.BuildingBlocks="BuildingBlocks",e))(ON||{}),IN={};_T(IN,{CardSettingsType:o(()=>RN,"CardSettingsType"),CardTemplateType:o(()=>LN,"CardTemplateType"),ChartCardType:o(()=>NN,"ChartCardType"),ChartType:o(()=>QN,"ChartType"),ContainerLayoutType:o(()=>JN,"ContainerLayoutType"),CreateMode:o(()=>YN,"CreateMode"),DateRangeType:o(()=>MN,"DateRangeType"),DefaultContentView:o(()=>WN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>kN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>KN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>zN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>kH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>$H,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>UH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>jH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>jN,"FilterPathType"),IgnoredFieldsType:o(()=>GN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>wN,"LinkListFlavorType"),ListFlavorType:o(()=>DN,"ListFlavorType"),ListTypeType:o(()=>_N,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>XN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>FN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>HH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>BH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>KH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>WH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>GH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>qN,"SectionPosition"),SortOrderType:o(()=>VN,"SortOrderType"),Strategy:o(()=>HN,"Strategy"),TableColumnExtensionTypeV2:o(()=>BN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>$N,"TableTypeV2"),cardTemplateSettingsMap:o(()=>MH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>wH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>UN,"customColumnViewTypes")});var NN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(NN||{}),LN=(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))(LN||{}),wH={"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"},MH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},RN=(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))(RN||{}),FN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(FN||{}),DN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(DN||{}),_N=(e=>(e.extended="extended",e.condensed="condensed",e))(_N||{}),VN=(e=>(e.ascending="ascending",e.descending="descending",e))(VN||{}),wN=(e=>(e.standard="standard",e.carousel="carousel",e))(wN||{}),MN=(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))(MN||{}),kN=(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))(kN||{}),jN=(e=>(e.key="key",e.catgory="category",e))(jN||{}),UN=(e=>(e.XML="XML",e))(UN||{}),$N=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($N||{}),BN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(BN||{}),HN=(e=>(e.extension="extension",e))(HN||{}),GN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(GN||{}),WN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(WN||{}),KN=(e=>(e.visual="visual",e.compact="compact",e))(KN||{}),XN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(XN||{}),QN=(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))(QN||{}),qN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(qN||{}),zN=(e=>(e.XML="XML",e))(zN||{}),YN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(YN||{}),kH="sap.suite.ui.generic.template",jH="sap.suite.ui.generic.template.ObjectPage",UH="sap.suite.ui.generic.template.ListReport",$H="sap.suite.ui.generic.template.AnalyticalListPage",BH="sap.ui.viewExtensions",HH="sap.ui.controllerExtensions",GH="sap.suite.ui.generic.template.ObjectPage.view.Details",WH="sap.suite.ui.generic.template.ListReport.view.ListReport",KH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",JN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(JN||{}),ZN={};_T(ZN,{ActionPlacement:o(()=>eL,"ActionPlacement"),Availability:o(()=>hL,"Availability"),CustomSectionViewTypesV4:o(()=>pL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>oL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>XH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>YH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>QH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>zH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>qH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>ZH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>cL,"FilterFieldPlacement"),HorizontalAlign:o(()=>yL,"HorizontalAlign"),InitialLayoutType:o(()=>sL,"InitialLayoutType"),InitialLoadType:o(()=>rL,"InitialLoadType"),LayoutType:o(()=>aL,"LayoutType"),Placement:o(()=>mL,"Placement"),RowCountMode:o(()=>nL,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>t5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>e5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>JH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>i5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>n5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>fL,"SectionLayoutType"),SectionPosition:o(()=>uL,"SectionPosition"),SectionPositionV4:o(()=>gL,"SectionPositionV4"),SelectType:o(()=>lL,"SelectType"),SelectionMode:o(()=>tL,"SelectionMode"),TableCreationModeType:o(()=>dL,"TableCreationModeType"),TableTypeV4:o(()=>iL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>TL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>vL,"VariantManagementTypeObjectPage")});var eL=(e=>(e.After="After",e.Before="Before",e))(eL||{}),tL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(tL||{}),nL=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(nL||{}),iL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(iL||{}),rL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(rL||{}),oL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(oL||{}),aL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(aL||{}),sL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(sL||{}),cL=(e=>(e.After="After",e.Before="Before",e))(cL||{}),lL=(e=>(e.single="single",e.multi="multi",e))(lL||{}),fL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(fL||{}),uL=(e=>(e.After="After",e.Before="Before",e))(uL||{}),pL=(e=>(e.XML="XML",e))(pL||{}),dL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(dL||{}),XH="sap.fe.templates",QH="sap.fe.core.fpm",qH="sap.fe.templates.ObjectPage",zH="sap.fe.templates.ListReport",YH="sap.fe.templates.AnalyticalListPage",JH="XMLFragment",gL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(gL||{}),ZH="sap.f.routing.Router",e5="sap.f",t5="sap.ui.controllerExtensions",n5="sap.fe.templates.ObjectPage.ObjectPageController",i5="sap.fe.templates.ListReport.ListReportController",mL=(e=>(e.After="After",e.Before="Before",e))(mL||{}),hL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(hL||{}),yL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(yL||{}),vL=(e=>(e.None="None",e.Control="Control",e))(vL||{}),TL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(TL||{})});var CL=ze(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 PL;(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"})(PL||(kr.CustomExtensionType=PL={}));var xL;(function(e){e.BuildingBlocks="BuildingBlocks"})(xL||(kr.Features=xL={}))});var ZL=ze((WY,JL)=>{var MT=Object.defineProperty,r5=Object.getOwnPropertyDescriptor,o5=Object.getOwnPropertyNames,a5=Object.prototype.hasOwnProperty,s5=o((e,t)=>{for(var n in t)MT(e,n,{get:t[n],enumerable:!0})},"h"),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&&MT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=r5(t,r))||i.enumerable});return e},"M"),l5=o(e=>c5(MT({},"__esModule",{value:!0}),e),"Q"),OL={};s5(OL,{CardSettingsType:o(()=>LL,"CardSettingsType"),CardTemplateType:o(()=>NL,"CardTemplateType"),ChartCardType:o(()=>IL,"ChartCardType"),ChartType:o(()=>XL,"ChartType"),ContainerLayoutType:o(()=>YL,"ContainerLayoutType"),CreateMode:o(()=>zL,"CreateMode"),DateRangeType:o(()=>wL,"DateRangeType"),DefaultContentView:o(()=>GL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>ML,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>WL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>qL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>p5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>m5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>g5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>d5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>kL,"FilterPathType"),IgnoredFieldsType:o(()=>HL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>VL,"LinkListFlavorType"),ListFlavorType:o(()=>FL,"ListFlavorType"),ListTypeType:o(()=>DL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>KL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>RL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>y5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>h5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>b5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>T5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>v5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>QL,"SectionPosition"),SortOrderType:o(()=>_L,"SortOrderType"),Strategy:o(()=>BL,"Strategy"),TableColumnExtensionTypeV2:o(()=>$L,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>UL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>u5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>f5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>jL,"customColumnViewTypes")});JL.exports=l5(OL);var IL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(IL||{}),NL=(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))(NL||{}),f5={"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"},u5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},LL=(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))(LL||{}),RL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(RL||{}),FL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(FL||{}),DL=(e=>(e.extended="extended",e.condensed="condensed",e))(DL||{}),_L=(e=>(e.ascending="ascending",e.descending="descending",e))(_L||{}),VL=(e=>(e.standard="standard",e.carousel="carousel",e))(VL||{}),wL=(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))(wL||{}),ML=(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))(ML||{}),kL=(e=>(e.key="key",e.catgory="category",e))(kL||{}),jL=(e=>(e.XML="XML",e))(jL||{}),UL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(UL||{}),$L=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))($L||{}),BL=(e=>(e.extension="extension",e))(BL||{}),HL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(HL||{}),GL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(GL||{}),WL=(e=>(e.visual="visual",e.compact="compact",e))(WL||{}),KL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(KL||{}),XL=(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))(XL||{}),QL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(QL||{}),qL=(e=>(e.XML="XML",e))(qL||{}),zL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(zL||{}),p5="sap.suite.ui.generic.template",d5="sap.suite.ui.generic.template.ObjectPage",g5="sap.suite.ui.generic.template.ListReport",m5="sap.suite.ui.generic.template.AnalyticalListPage",h5="sap.ui.viewExtensions",y5="sap.ui.controllerExtensions",v5="sap.suite.ui.generic.template.ObjectPage.view.Details",T5="sap.suite.ui.generic.template.ListReport.view.ListReport",b5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",YL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(YL||{})});var AR=ze((XY,ER)=>{var kT=Object.defineProperty,E5=Object.getOwnPropertyDescriptor,A5=Object.getOwnPropertyNames,S5=Object.prototype.hasOwnProperty,P5=o((e,t)=>{for(var n in t)kT(e,n,{get:t[n],enumerable:!0})},"j"),x5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of A5(t))!S5.call(e,r)&&r!==n&&kT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=E5(t,r))||i.enumerable});return e},"R"),C5=o(e=>x5(kT({},"__esModule",{value:!0}),e),"h"),eR={};P5(eR,{ActionPlacement:o(()=>tR,"ActionPlacement"),Availability:o(()=>yR,"Availability"),CustomSectionViewTypesV4:o(()=>dR,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>aR,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>O5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>R5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>I5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>L5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>N5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>D5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>lR,"FilterFieldPlacement"),HorizontalAlign:o(()=>vR,"HorizontalAlign"),InitialLayoutType:o(()=>cR,"InitialLayoutType"),InitialLoadType:o(()=>oR,"InitialLoadType"),LayoutType:o(()=>sR,"LayoutType"),Placement:o(()=>hR,"Placement"),RowCountMode:o(()=>iR,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>V5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>_5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>F5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>M5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>w5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>uR,"SectionLayoutType"),SectionPosition:o(()=>pR,"SectionPosition"),SectionPositionV4:o(()=>mR,"SectionPositionV4"),SelectType:o(()=>fR,"SelectType"),SelectionMode:o(()=>nR,"SelectionMode"),TableCreationModeType:o(()=>gR,"TableCreationModeType"),TableTypeV4:o(()=>rR,"TableTypeV4"),VariantManagementTypeListReport:o(()=>bR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>TR,"VariantManagementTypeObjectPage")});ER.exports=C5(eR);var tR=(e=>(e.After="After",e.Before="Before",e))(tR||{}),nR=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(nR||{}),iR=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(iR||{}),rR=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(rR||{}),oR=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(oR||{}),aR=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(aR||{}),sR=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(sR||{}),cR=(e=>(e.Compact="Compact",e.Visual="Visual",e))(cR||{}),lR=(e=>(e.After="After",e.Before="Before",e))(lR||{}),fR=(e=>(e.single="single",e.multi="multi",e))(fR||{}),uR=(e=>(e.Tabs="Tabs",e.Page="Page",e))(uR||{}),pR=(e=>(e.After="After",e.Before="Before",e))(pR||{}),dR=(e=>(e.XML="XML",e))(dR||{}),gR=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(gR||{}),O5="sap.fe.templates",I5="sap.fe.core.fpm",N5="sap.fe.templates.ObjectPage",L5="sap.fe.templates.ListReport",R5="sap.fe.templates.AnalyticalListPage",F5="XMLFragment",mR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(mR||{}),D5="sap.f.routing.Router",_5="sap.f",V5="sap.ui.controllerExtensions",w5="sap.fe.templates.ObjectPage.ObjectPageController",M5="sap.fe.templates.ListReport.ListReportController",hR=(e=>(e.After="After",e.Before="Before",e))(hR||{}),yR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(yR||{}),vR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(vR||{}),TR=(e=>(e.None="None",e.Control="Control",e))(TR||{}),bR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(bR||{})});var le=ze(Ti=>{"use strict";var SR=Ti&&Ti.__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]}),k5=Ti&&Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),PR=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&SR(t,e,n)},xR=Ti&&Ti.__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 k5(n,t),n}}();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.v4=Ti.v2=void 0;PR(EL(),Ti);PR(CL(),Ti);Ti.v2=xR(ZL());Ti.v4=xR(AR())});var nb=ze((dJ,jR)=>{"use strict";var iG=o(function(t){return rG(t)&&!oG(t)},"isMergeableObject");function rG(e){return!!e&&typeof e=="object"}o(rG,"isNonNullObject");function oG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||cG(e)}o(oG,"isSpecial");var aG=typeof Symbol=="function"&&Symbol.for,sG=aG?Symbol.for("react.element"):60103;function cG(e){return e.$$typeof===sG}o(cG,"isReactElement");function lG(e){return Array.isArray(e)?[]:{}}o(lG,"emptyTarget");function ru(e,t){return t.clone!==!1&&t.isMergeableObject(e)?cl(lG(e),e,t):e}o(ru,"cloneUnlessOtherwiseSpecified");function fG(e,t,n){return e.concat(t).map(function(i){return ru(i,n)})}o(fG,"defaultArrayMerge");function uG(e,t){if(!t.customMerge)return cl;var n=t.customMerge(e);return typeof n=="function"?n:cl}o(uG,"getMergeFunction");function pG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(pG,"getEnumerableOwnPropertySymbols");function MR(e){return Object.keys(e).concat(pG(e))}o(MR,"getKeys");function kR(e,t){try{return t in e}catch{return!1}}o(kR,"propertyIsOnObject");function dG(e,t){return kR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(dG,"propertyIsUnsafe");function gG(e,t,n){var i={};return n.isMergeableObject(e)&&MR(e).forEach(function(r){i[r]=ru(e[r],n)}),MR(t).forEach(function(r){dG(e,r)||(kR(e,r)&&n.isMergeableObject(t[r])?i[r]=uG(r,n)(e[r],t[r],n):i[r]=ru(t[r],n))}),i}o(gG,"mergeObject");function cl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||fG,n.isMergeableObject=n.isMergeableObject||iG,n.cloneUnlessOtherwiseSpecified=ru;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):gG(e,t,n):ru(t,n)}o(cl,"deepmerge");cl.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 cl(i,r,n)},{})},"deepmergeAll");var mG=cl;jR.exports=mG});var Cg=ze(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 hG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return hG.EnumIsFlag},"get")});var yG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return yG.TermToTypes},"get")});var vG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return vG.VocabularyReferences},"get")});function UR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(UR,"splitAt");function $R(e,t){return t<0?e:e.substring(0,t)}o($R,"substringAt");function xg(e,t){return UR(e,e.indexOf(t))}o(xg,"splitAtFirst");vt.splitAtFirst=xg;function BR(e,t){return UR(e,e.lastIndexOf(t))}o(BR,"splitAtLast");vt.splitAtLast=BR;function TG(e,t){return $R(e,e.indexOf(t))}o(TG,"substringBeforeFirst");vt.substringBeforeFirst=TG;function bG(e,t){return $R(e,e.lastIndexOf(t))}o(bG,"substringBeforeLast");vt.substringBeforeLast=bG;function HR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=BR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=xg(t,"@");return`${a}@${HR(e,s)}`}else return t}o(HR,"alias");vt.alias=HR;function ib(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=xg(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]=xg(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(ib,"unalias");vt.unalias=ib;function EG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(EG,"isComplexTypeDefinition");vt.isComplexTypeDefinition=EG;function AG(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(AG,"Double");vt.Double=AG;function SG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(SG,"Decimal");vt.Decimal=SG;function PG(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(PG,"lazy");vt.lazy=PG;function GR(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(GR,"createIndexedFind");vt.createIndexedFind=GR;function xG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:GR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(xG,"addGetByValue");vt.addGetByValue=xG;function CG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=ib(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=ib(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(CG,"mergeAnnotations");vt.mergeAnnotations=CG});var rF=ze(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.convert=void 0;var Og=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=Cg(),io=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[io]!==void 0)t=t[io];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,I,F,j;let K=o(U=>(m.messages.push({message:U}),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[U,ae]=e.splitTerm(v),Z=(A=m.target.annotations[U.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 U;if(v==="$AnnotationPath"?U=m.target.value:v==="$Path"&&(U=m.target.path),U!==void 0){let ae=gr(e,m.target[io],U);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=(I=Z.entitySets.by_name(v))!==null&&I!==void 0?I: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=(j=Z.parameters[v])!==null&&j!==void 0?j: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 U=m.target.typeReference;if(U!==void 0){let Z=gr(e,U,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=qR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var lH=Object.create;var rl=Object.defineProperty;var WI=Object.getOwnPropertyDescriptor;var fH=Object.getOwnPropertyNames;var uH=Object.getPrototypeOf,pH=Object.prototype.hasOwnProperty;var o=(e,t)=>rl(e,"name",{value:t,configurable:!0});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var Je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var n in t)rl(e,n,{get:t[n],enumerable:!0})},mg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of fH(t))!pH.call(e,r)&&r!==n&&rl(e,r,{get:()=>t[r],enumerable:!(i=WI(t,r))||i.enumerable});return e},qs=(e,t,n)=>(mg(e,t,"default"),n&&mg(n,t,"default")),ne=(e,t,n)=>(n=e!=null?lH(uH(e)):{},mg(t||!e||!e.__esModule?rl(n,"default",{value:e,enumerable:!0}):n,e)),hg=e=>mg(rl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?WI(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&&rl(t,n,r),r};var SL=Je((QY,AL)=>{var _T=Object.defineProperty,dH=Object.getOwnPropertyDescriptor,gH=Object.getOwnPropertyNames,mH=Object.prototype.hasOwnProperty,VT=o((e,t)=>{for(var n in t)_T(e,n,{get:t[n],enumerable:!0})},"C"),hH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gH(t))!mH.call(e,r)&&r!==n&&_T(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=dH(t,r))||i.enumerable});return e},"et"),yH=o(e=>hH(_T({},"__esModule",{value:!0}),e),"tt"),KI={};VT(KI,{ACTIONTITLEPREFIX:o(()=>EH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>ZI,"ALPViewType"),ActionType:o(()=>nN,"ActionType"),ArtifactType:o(()=>tN,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>SH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>sN,"ChangeIndicator"),ChartColor:o(()=>PN,"ChartColor"),CloudDevAdaptationStatus:o(()=>TN,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>AN,"ColorPaletteDefinitionType"),ControlType:o(()=>iN,"ControlType"),CustomExtensionType:o(()=>IN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>FH,"DATESETTINGSPATH"),DataSourceType:o(()=>bN,"DataSourceType"),DefinitionName:o(()=>fN,"DefinitionName"),DirName:o(()=>oN,"DirName"),DraftDiscardEnabledSettings:o(()=>mN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>JI,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>bH,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>wH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>VH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>DH,"FRAGMENTNAMEPART"),FacetBase:o(()=>cN,"FacetBase"),Features:o(()=>NN,"Features"),FileName:o(()=>aN,"FileName"),FioriElementsVersion:o(()=>XI,"FioriElementsVersion"),FlexChangeLayer:o(()=>zI,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>vN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>qI,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>_H,"GENERICAPPSETTINGS"),LogSeverity:o(()=>xN,"LogSeverity"),MANIFESTPATH:o(()=>PH,"MANIFESTPATH"),MacrosPropertyType:o(()=>gN,"MacrosPropertyType"),ManifestSection:o(()=>EN,"ManifestSection"),OdataVersion:o(()=>QI,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>TH,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>vH,"PageType"),PageTypeV2:o(()=>wT,"PageTypeV2"),PageTypeV4:o(()=>MT,"PageTypeV4"),PropertyMessageType:o(()=>CN,"PropertyMessageType"),PropertyName:o(()=>uN,"PropertyName"),QUICKVARPATH:o(()=>LH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>RH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>kH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>MH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>dN,"SchemaKeyName"),SchemaTag:o(()=>pN,"SchemaTag"),SchemaType:o(()=>YI,"SchemaType"),SectionType:o(()=>eN,"SectionType"),StatePreservationMode:o(()=>yN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>hN,"TableColumnVerticalAlignment"),TemplateType:o(()=>ON,"TemplateType"),UIVOCABULARY:o(()=>OH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>NH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>IH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>CH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>xH,"VOCWITHSLASH"),ViewTemplateType:o(()=>lN,"ViewTemplateType"),ViewTypes:o(()=>SN,"ViewTypes"),Visualization:o(()=>rN,"Visualization"),defaultExportResult:o(()=>AH,"defaultExportResult"),logSeverityLabel:o(()=>jH,"logSeverityLabel"),v2:o(()=>LN,"v2"),v4:o(()=>tL,"v4")});AL.exports=yH(KI);var wT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(wT||{}),MT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(MT||{}),vH={...wT,...MT},TH=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"]]),XI=(e=>(e.v2="v2",e.v4="v4",e))(XI||{}),QI=(e=>(e.v2="v2",e.v4="v4",e))(QI||{}),qI=(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))(qI||{}),zI=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(zI||{}),YI=(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))(YI||{}),JI=(e=>(e.flex="flex",e.manifest="manifest",e))(JI||{}),ZI=(e=>(e.Primary="primary",e.Secondary="secondary",e))(ZI||{}),eN=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(eN||{}),tN=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(tN||{}),nN=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(nN||{}),iN=(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))(iN||{}),rN=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(rN||{}),oN=(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))(oN||{}),aN=(e=>(e.App="app.json",e))(aN||{}),bH="Facet ID: ",EH="Action ID: ",sN=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(sN||{}),AH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},cN=(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))(cN||{}),SH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",lN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(lN||{}),fN=(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.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",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))(fN||{}),uN=(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))(uN||{}),pN=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(pN||{}),dN=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(dN||{}),PH="webapp/manifest.json",xH="/@com.sap.vocabularies",CH="::@com.sap.vocabularies",OH="com.sap.vocabularies.UI.v1",IH="com.sap.vocabularies.UI.v1.",NH="@com.sap.vocabularies.UI.v1.",LH="/quickVariantSelection",RH="/quickVariantSelectionX",FH="/filterSettings/dateSettings",DH=".fragment.",gN=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(gN||{}),mN=(e=>(e.restricted="restricted",e))(mN||{}),hN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(hN||{}),yN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(yN||{}),vN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(vN||{}),TN=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(TN||{}),bN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(bN||{}),EN=(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))(EN||{}),_H="sap.ui.generic.app/settings",AN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(AN||{}),VH="sap.fe.templates.RootContainer.view.Fcl",wH="appRootView",SN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(SN||{}),MH="sap.ui.core.mvc.View",kH="sap.ui.core.Fragment",PN=(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))(PN||{}),xN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(xN||{}),jH={error:"Error",warning:"Warning",info:"Information"},CN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(CN||{}),ON=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(ON||{}),IN=(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))(IN||{}),NN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(NN||{}),LN={};VT(LN,{CardSettingsType:o(()=>DN,"CardSettingsType"),CardTemplateType:o(()=>FN,"CardTemplateType"),ChartCardType:o(()=>RN,"ChartCardType"),ChartType:o(()=>zN,"ChartType"),ContainerLayoutType:o(()=>eL,"ContainerLayoutType"),CreateMode:o(()=>ZN,"CreateMode"),DateRangeType:o(()=>jN,"DateRangeType"),DefaultContentView:o(()=>XN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>UN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>QN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>JN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>BH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>WH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>GH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>HH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>$N,"FilterPathType"),IgnoredFieldsType:o(()=>KN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>kN,"LinkListFlavorType"),ListFlavorType:o(()=>VN,"ListFlavorType"),ListTypeType:o(()=>wN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>qN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>_N,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>XH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>KH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>zH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>qH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>QH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>YN,"SectionPosition"),SortOrderType:o(()=>MN,"SortOrderType"),Strategy:o(()=>WN,"Strategy"),TableColumnExtensionTypeV2:o(()=>GN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>HN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>$H,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>UH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>BN,"customColumnViewTypes")});var RN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(RN||{}),FN=(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))(FN||{}),UH={"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"},$H={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},DN=(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))(DN||{}),_N=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(_N||{}),VN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(VN||{}),wN=(e=>(e.extended="extended",e.condensed="condensed",e))(wN||{}),MN=(e=>(e.ascending="ascending",e.descending="descending",e))(MN||{}),kN=(e=>(e.standard="standard",e.carousel="carousel",e))(kN||{}),jN=(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))(jN||{}),UN=(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))(UN||{}),$N=(e=>(e.key="key",e.catgory="category",e))($N||{}),BN=(e=>(e.XML="XML",e))(BN||{}),HN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(HN||{}),GN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(GN||{}),WN=(e=>(e.extension="extension",e))(WN||{}),KN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(KN||{}),XN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(XN||{}),QN=(e=>(e.visual="visual",e.compact="compact",e))(QN||{}),qN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(qN||{}),zN=(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))(zN||{}),YN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(YN||{}),JN=(e=>(e.XML="XML",e))(JN||{}),ZN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(ZN||{}),BH="sap.suite.ui.generic.template",HH="sap.suite.ui.generic.template.ObjectPage",GH="sap.suite.ui.generic.template.ListReport",WH="sap.suite.ui.generic.template.AnalyticalListPage",KH="sap.ui.viewExtensions",XH="sap.ui.controllerExtensions",QH="sap.suite.ui.generic.template.ObjectPage.view.Details",qH="sap.suite.ui.generic.template.ListReport.view.ListReport",zH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",eL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(eL||{}),tL={};VT(tL,{ActionPlacement:o(()=>nL,"ActionPlacement"),Availability:o(()=>vL,"Availability"),CustomSectionViewTypesV4:o(()=>gL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>sL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>YH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>t5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>JH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>e5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>ZH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>i5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>fL,"FilterFieldPlacement"),HorizontalAlign:o(()=>TL,"HorizontalAlign"),InitialLayoutType:o(()=>lL,"InitialLayoutType"),InitialLoadType:o(()=>aL,"InitialLoadType"),LayoutType:o(()=>cL,"LayoutType"),Placement:o(()=>yL,"Placement"),RowCountMode:o(()=>rL,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>o5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>r5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>n5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>s5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>a5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>pL,"SectionLayoutType"),SectionPosition:o(()=>dL,"SectionPosition"),SectionPositionV4:o(()=>hL,"SectionPositionV4"),SelectType:o(()=>uL,"SelectType"),SelectionMode:o(()=>iL,"SelectionMode"),TableCreationModeType:o(()=>mL,"TableCreationModeType"),TableTypeV4:o(()=>oL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>EL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>bL,"VariantManagementTypeObjectPage")});var nL=(e=>(e.After="After",e.Before="Before",e))(nL||{}),iL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(iL||{}),rL=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(rL||{}),oL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(oL||{}),aL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(aL||{}),sL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(sL||{}),cL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(cL||{}),lL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(lL||{}),fL=(e=>(e.After="After",e.Before="Before",e))(fL||{}),uL=(e=>(e.single="single",e.multi="multi",e))(uL||{}),pL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(pL||{}),dL=(e=>(e.After="After",e.Before="Before",e))(dL||{}),gL=(e=>(e.XML="XML",e))(gL||{}),mL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(mL||{}),YH="sap.fe.templates",JH="sap.fe.core.fpm",ZH="sap.fe.templates.ObjectPage",e5="sap.fe.templates.ListReport",t5="sap.fe.templates.AnalyticalListPage",n5="XMLFragment",hL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(hL||{}),i5="sap.f.routing.Router",r5="sap.f",o5="sap.ui.controllerExtensions",a5="sap.fe.templates.ObjectPage.ObjectPageController",s5="sap.fe.templates.ListReport.ListReportController",yL=(e=>(e.After="After",e.Before="Before",e))(yL||{}),vL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(vL||{}),TL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(TL||{}),bL=(e=>(e.None="None",e.Control="Control",e))(bL||{}),EL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(EL||{})});var NL=Je(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.Features=qi.CustomExtensionType=qi.TemplateType=qi.PropertyMessageType=qi.logSeverityLabel=qi.LogSeverity=void 0;var PL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(PL||(qi.LogSeverity=PL={}));qi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var xL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(xL||(qi.PropertyMessageType=xL={}));var CL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(CL||(qi.TemplateType=CL={}));var OL;(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"})(OL||(qi.CustomExtensionType=OL={}));var IL;(function(e){e.BuildingBlocks="BuildingBlocks"})(IL||(qi.Features=IL={}))});var nR=Je((YY,tR)=>{var kT=Object.defineProperty,c5=Object.getOwnPropertyDescriptor,l5=Object.getOwnPropertyNames,f5=Object.prototype.hasOwnProperty,u5=o((e,t)=>{for(var n in t)kT(e,n,{get:t[n],enumerable:!0})},"h"),p5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l5(t))!f5.call(e,r)&&r!==n&&kT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=c5(t,r))||i.enumerable});return e},"M"),d5=o(e=>p5(kT({},"__esModule",{value:!0}),e),"Q"),LL={};u5(LL,{CardSettingsType:o(()=>DL,"CardSettingsType"),CardTemplateType:o(()=>FL,"CardTemplateType"),ChartCardType:o(()=>RL,"ChartCardType"),ChartType:o(()=>zL,"ChartType"),ContainerLayoutType:o(()=>eR,"ContainerLayoutType"),CreateMode:o(()=>ZL,"CreateMode"),DateRangeType:o(()=>jL,"DateRangeType"),DefaultContentView:o(()=>XL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>UL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>QL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>JL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>h5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>T5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>v5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>y5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>$L,"FilterPathType"),IgnoredFieldsType:o(()=>KL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>kL,"LinkListFlavorType"),ListFlavorType:o(()=>VL,"ListFlavorType"),ListTypeType:o(()=>wL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>qL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>_L,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>E5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>b5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>P5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>S5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>A5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>YL,"SectionPosition"),SortOrderType:o(()=>ML,"SortOrderType"),Strategy:o(()=>WL,"Strategy"),TableColumnExtensionTypeV2:o(()=>GL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>HL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>m5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>g5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>BL,"customColumnViewTypes")});tR.exports=d5(LL);var RL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(RL||{}),FL=(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))(FL||{}),g5={"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"},m5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},DL=(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))(DL||{}),_L=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(_L||{}),VL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(VL||{}),wL=(e=>(e.extended="extended",e.condensed="condensed",e))(wL||{}),ML=(e=>(e.ascending="ascending",e.descending="descending",e))(ML||{}),kL=(e=>(e.standard="standard",e.carousel="carousel",e))(kL||{}),jL=(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))(jL||{}),UL=(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))(UL||{}),$L=(e=>(e.key="key",e.catgory="category",e))($L||{}),BL=(e=>(e.XML="XML",e))(BL||{}),HL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(HL||{}),GL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(GL||{}),WL=(e=>(e.extension="extension",e))(WL||{}),KL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(KL||{}),XL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(XL||{}),QL=(e=>(e.visual="visual",e.compact="compact",e))(QL||{}),qL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(qL||{}),zL=(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))(zL||{}),YL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(YL||{}),JL=(e=>(e.XML="XML",e))(JL||{}),ZL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(ZL||{}),h5="sap.suite.ui.generic.template",y5="sap.suite.ui.generic.template.ObjectPage",v5="sap.suite.ui.generic.template.ListReport",T5="sap.suite.ui.generic.template.AnalyticalListPage",b5="sap.ui.viewExtensions",E5="sap.ui.controllerExtensions",A5="sap.suite.ui.generic.template.ObjectPage.view.Details",S5="sap.suite.ui.generic.template.ListReport.view.ListReport",P5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",eR=(e=>(e.fixed="fixed",e.resizable="resizable",e))(eR||{})});var xR=Je((ZY,PR)=>{var jT=Object.defineProperty,x5=Object.getOwnPropertyDescriptor,C5=Object.getOwnPropertyNames,O5=Object.prototype.hasOwnProperty,I5=o((e,t)=>{for(var n in t)jT(e,n,{get:t[n],enumerable:!0})},"j"),N5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C5(t))!O5.call(e,r)&&r!==n&&jT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=x5(t,r))||i.enumerable});return e},"R"),L5=o(e=>N5(jT({},"__esModule",{value:!0}),e),"h"),iR={};I5(iR,{ActionPlacement:o(()=>rR,"ActionPlacement"),Availability:o(()=>bR,"Availability"),CustomSectionViewTypesV4:o(()=>hR,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>lR,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>R5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>V5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>F5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>_5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>D5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>M5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>pR,"FilterFieldPlacement"),HorizontalAlign:o(()=>ER,"HorizontalAlign"),InitialLayoutType:o(()=>uR,"InitialLayoutType"),InitialLoadType:o(()=>cR,"InitialLoadType"),LayoutType:o(()=>fR,"LayoutType"),Placement:o(()=>TR,"Placement"),RowCountMode:o(()=>aR,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>j5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>k5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>w5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>$5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>U5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>gR,"SectionLayoutType"),SectionPosition:o(()=>mR,"SectionPosition"),SectionPositionV4:o(()=>vR,"SectionPositionV4"),SelectType:o(()=>dR,"SelectType"),SelectionMode:o(()=>oR,"SelectionMode"),TableCreationModeType:o(()=>yR,"TableCreationModeType"),TableTypeV4:o(()=>sR,"TableTypeV4"),VariantManagementTypeListReport:o(()=>SR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>AR,"VariantManagementTypeObjectPage")});PR.exports=L5(iR);var rR=(e=>(e.After="After",e.Before="Before",e))(rR||{}),oR=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(oR||{}),aR=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(aR||{}),sR=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(sR||{}),cR=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(cR||{}),lR=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(lR||{}),fR=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(fR||{}),uR=(e=>(e.Compact="Compact",e.Visual="Visual",e))(uR||{}),pR=(e=>(e.After="After",e.Before="Before",e))(pR||{}),dR=(e=>(e.single="single",e.multi="multi",e))(dR||{}),gR=(e=>(e.Tabs="Tabs",e.Page="Page",e))(gR||{}),mR=(e=>(e.After="After",e.Before="Before",e))(mR||{}),hR=(e=>(e.XML="XML",e))(hR||{}),yR=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(yR||{}),R5="sap.fe.templates",F5="sap.fe.core.fpm",D5="sap.fe.templates.ObjectPage",_5="sap.fe.templates.ListReport",V5="sap.fe.templates.AnalyticalListPage",w5="XMLFragment",vR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(vR||{}),M5="sap.f.routing.Router",k5="sap.f",j5="sap.ui.controllerExtensions",U5="sap.fe.templates.ObjectPage.ObjectPageController",$5="sap.fe.templates.ListReport.ListReportController",TR=(e=>(e.After="After",e.Before="Before",e))(TR||{}),bR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(bR||{}),ER=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(ER||{}),AR=(e=>(e.None="None",e.Control="Control",e))(AR||{}),SR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(SR||{})});var le=Je(Ti=>{"use strict";var CR=Ti&&Ti.__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]}),B5=Ti&&Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),OR=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&CR(t,e,n)},IR=Ti&&Ti.__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 B5(n,t),n}}();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.v4=Ti.v2=void 0;OR(SL(),Ti);OR(NL(),Ti);Ti.v2=IR(nR());Ti.v4=IR(xR())});var ib=Je((TJ,BR)=>{"use strict";var sG=o(function(t){return cG(t)&&!lG(t)},"isMergeableObject");function cG(e){return!!e&&typeof e=="object"}o(cG,"isNonNullObject");function lG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||pG(e)}o(lG,"isSpecial");var fG=typeof Symbol=="function"&&Symbol.for,uG=fG?Symbol.for("react.element"):60103;function pG(e){return e.$$typeof===uG}o(pG,"isReactElement");function dG(e){return Array.isArray(e)?[]:{}}o(dG,"emptyTarget");function ru(e,t){return t.clone!==!1&&t.isMergeableObject(e)?cl(dG(e),e,t):e}o(ru,"cloneUnlessOtherwiseSpecified");function gG(e,t,n){return e.concat(t).map(function(i){return ru(i,n)})}o(gG,"defaultArrayMerge");function mG(e,t){if(!t.customMerge)return cl;var n=t.customMerge(e);return typeof n=="function"?n:cl}o(mG,"getMergeFunction");function hG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(hG,"getEnumerableOwnPropertySymbols");function UR(e){return Object.keys(e).concat(hG(e))}o(UR,"getKeys");function $R(e,t){try{return t in e}catch{return!1}}o($R,"propertyIsOnObject");function yG(e,t){return $R(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(yG,"propertyIsUnsafe");function vG(e,t,n){var i={};return n.isMergeableObject(e)&&UR(e).forEach(function(r){i[r]=ru(e[r],n)}),UR(t).forEach(function(r){yG(e,r)||($R(e,r)&&n.isMergeableObject(t[r])?i[r]=mG(r,n)(e[r],t[r],n):i[r]=ru(t[r],n))}),i}o(vG,"mergeObject");function cl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||gG,n.isMergeableObject=n.isMergeableObject||sG,n.cloneUnlessOtherwiseSpecified=ru;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):vG(e,t,n):ru(t,n)}o(cl,"deepmerge");cl.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 cl(i,r,n)},{})},"deepmergeAll");var TG=cl;BR.exports=TG});var Cg=Je(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 bG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return bG.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 AG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return AG.VocabularyReferences},"get")});function HR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(HR,"splitAt");function GR(e,t){return t<0?e:e.substring(0,t)}o(GR,"substringAt");function xg(e,t){return HR(e,e.indexOf(t))}o(xg,"splitAtFirst");vt.splitAtFirst=xg;function WR(e,t){return HR(e,e.lastIndexOf(t))}o(WR,"splitAtLast");vt.splitAtLast=WR;function SG(e,t){return GR(e,e.indexOf(t))}o(SG,"substringBeforeFirst");vt.substringBeforeFirst=SG;function PG(e,t){return GR(e,e.lastIndexOf(t))}o(PG,"substringBeforeLast");vt.substringBeforeLast=PG;function KR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=WR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=xg(t,"@");return`${a}@${KR(e,s)}`}else return t}o(KR,"alias");vt.alias=KR;function rb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=xg(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]=xg(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(rb,"unalias");vt.unalias=rb;function xG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(xG,"isComplexTypeDefinition");vt.isComplexTypeDefinition=xG;function CG(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(CG,"Double");vt.Double=CG;function OG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(OG,"Decimal");vt.Decimal=OG;function IG(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(IG,"lazy");vt.lazy=IG;function XR(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(XR,"createIndexedFind");vt.createIndexedFind=XR;function NG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:XR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(NG,"addGetByValue");vt.addGetByValue=NG;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=rb(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=rb(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 sF=Je(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.convert=void 0;var Og=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=Cg(),io=Symbol("Annotation Target");function aa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(aa,"appendObjectPath");function mr(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[io]!==void 0)t=t[io];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,I,F,j;let K=o(U=>(m.messages.push({message:U}),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[U,se]=e.splitTerm(v),Z=(A=m.target.annotations[U.substring(1)])===null||A===void 0?void 0:A[se];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 U;if(v==="$AnnotationPath"?U=m.target.value:v==="$Path"&&(U=m.target.path),U!==void 0){let se=mr(e,m.target[io],U);return se.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=aa(m.objectPath,Z))}),m.target=se.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=(I=Z.entitySets.by_name(v))!==null&&I!==void 0?I: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=mr(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=mr(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=(j=Z.parameters[v])!==null&&j!==void 0?j: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 U=m.target.typeReference;if(U!==void 0){let Z=mr(e,U,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,m.objectPath),m}break;case"NavigationProperty":let se=mr(e,m.target.targetType,v);return m.target=se.target,m.objectPath=se.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=JR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
|
|
|
10
10
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
11
11
|
|
|
12
12
|
<Annotation Term = `+p[0]+`>
|
|
13
|
-
<PropertyValue Path= `+p[1]+">");return g}o(
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return g}o(mr,"resolveTarget");function RG(e){return e.includes("@")}o(RG,"isAnnotationPath");function QR(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(a,"$target",()=>mr(e,i,t.PropertyPath,r).target),a}o(QR,"mapPropertyPath");function qR(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(a,"$target",()=>mr(e,i,a.value,r).target),a}o(qR,"mapAnnotationPath");function zR(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(s,"$target",()=>mr(e,i,t.NavigationPropertyPath,r).target),s}o(zR,"mapNavigationPropertyPath");function FG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[io]:i};return(0,Se.lazy)(a,"$target",()=>mr(e,i,t.Path,r).target),a}o(FG,"mapPath");function YR(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)(Og.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return QR(e,a,s,t,n);case"NavigationPropertyPath":return zR(e,a,s,t,n);case"AnnotationPath":return qR(e,a,s,t,n);case"Path":return RG(a.Path)?mr(e,t,e.unalias(a.Path),n).target:FG(e,a,s,t,n);case"Record":return sb(e,n,t,i,r,a.Record,s);case"Collection":return ZR(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(YR,"parseValue");function JR(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(qR,"inferTypeFromTerm");function NG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(NG,"isDataFieldWithForAction");function LG(e,t,n,i,r){let a;return!r.type&&t?a=qR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(LG,"parseRecordType");function ab(e,t,n,i,r,a,s){let l={$Type:LG(e,t,n,i,a),fullyQualifiedName:s,[io]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>QR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",JR(e,a,l)),NG(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(ab,"parseRecord");function RG(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(RG,"getOrInferCollectionType");function zR(e,t,n,i,r,a,s){switch(RG(a)){case"PropertyPath":return a.map((u,p)=>WR(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)=>KR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>XR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>ab(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(zR,"parseCollection");function FG(e){return!!e.targetTypeName}o(FG,"isV4NavigationProperty");function DG(e,t,n){var i;let r;if(n.record)r=ab(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=QR(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=zR(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[io]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Og.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",JR(e,n,r))}catch{}return r}o(DG,"convertAnnotation");var sb=class sb{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,ZR)}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)(Og.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(sb,"Converter");var rb=sb;function ou(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(ou,"resolveEntityType");function YR(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(YR,"resolveNavigationPropertyBindings");function sa(e,t){let n=t.annotations;return()=>Ig(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(sa,"resolveAnnotations");function JR(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[io]=n[io],a.fullyQualifiedName=`${i}@${a.term}`}),Ig(e,n,r??[])}}o(JR,"resolveAnnotationsOnAnnotation");function Ig(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)=>DG(u,t,p))),i},{})}o(Ig,"createAnnotationsObject");function ZR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,tF)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,eF)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,iF)),n}o(ZR,"convertEntityContainer");function eF(e,t){let n=t;(0,Se.lazy)(n,"entityType",ou(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",YR(e,i)),n}o(eF,"convertSingleton");function tF(e,t){let n=t;(0,Se.lazy)(n,"entityType",ou(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",YR(e,i)),n}o(tF,"convertEntitySet");function _G(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,ob)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,ob)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,nF)),(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(_G,"convertEntityType");function ob(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(ob,"convertProperty");function nF(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!FG(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",ou(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",sa(e,t)),a}o(nF,"convertNavigationProperty");function iF(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(iF,"convertActionImport");function VG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",ou(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",ou(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,wG)),(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 Ig(e,t,a)}),n}o(VG,"convertAction");function wG(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 Ig(e,t,a)}),n}o(wG,"convertActionParameter");function MG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,ob)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,nF)),(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(MG,"convertComplexType");function kG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(kG,"convertTypeDefinition");function jG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Og.VocabularyReferences,diagnostics:[]},n=new rb(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,ZR)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,tF)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,eF)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,_G)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,VG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,MG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,iF)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,kG)),t.resolvePath=o(function(r){let a=gr(n,void 0,r);return a.target&&aa(a.objectPath,a.target),a},"resolvePath"),t}o(jG,"convert");Ng.convert=jG});var cF=ze(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});Rg.revertTermToGenericType=void 0;var cb=Cg();function UG(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(A=>A.alias===v[0])&&(m=cb.EnumIsFlag[(0,cb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Lg(e,v))}}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:Lg(e,t)});return p}o(UG,"revertObjectToRawType");function oF(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=UG(e,t);break}return n}o(oF,"revertValueToRawType");var $G=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function aF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=sF(e,t[i][r]);if(!a.term){let s=(0,cb.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(aF,"revertAnnotationsToRawType");function Lg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if($G.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:oF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],aF(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Lg,"revertCollectionItemToRawType");function sF(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],aF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Lg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Lg(e,t)}:{...n,value:oF(e,t)}}o(sF,"revertTermToGenericType");Rg.revertTermToGenericType=sF});var lF=ze(ca=>{"use strict";var BG=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]}),lb=ca&&ca.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&BG(t,e,n)};Object.defineProperty(ca,"__esModule",{value:!0});lb(rF(),ca);lb(Cg(),ca);lb(cF(),ca)});var gb=ze(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.MergedRawMetadata=Ga.RawMetadataInstance=Ga.ensureArray=void 0;function HG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(HG,"ensureArray");Ga.ensureArray=HG;var pb=class pb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(pb,"RawMetadataInstance");var fb=pb;Ga.RawMetadataInstance=fb;var db=class db{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(db,"MergedRawMetadata");var ub=db;Ga.MergedRawMetadata=ub});var fF=ze(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.merge=void 0;var GG=gb();function WG(...e){let t=new GG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(WG,"merge");Fg.merge=WG});var uF=ze(Dg=>{(function(e){e.parser=function(O,S){return new n(O,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(O,S){if(!(this instanceof n))return new n(O,S);var z=this;r(z),z.q=z.c="",z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,z.opt=S||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!O,z.noscript=!!(O||z.opt.noscript),z.state=D.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(b)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!O),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),yt(z,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function S(){}o(S,"F"),S.prototype=O;var z=new S;return z}),Object.keys||(Object.keys=function(O){var S=[];for(var z in O)O.hasOwnProperty(z)&&S.push(z);return S});function i(O){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,_e=t.length;V<_e;V++){var Ft=O[t[V]].length;if(Ft>S)switch(t[V]){case"textNode":sn(O);break;case"cdata":Ue(O,"oncdata",O.cdata),O.cdata="";break;case"script":Ue(O,"onscript",O.script),O.script="";break;default:tn(O,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Ft)}var Qe=e.MAX_BUFFER_LENGTH-z;O.bufferCheckPosition=Qe+O.position}o(i,"checkBufferLength");function r(O){for(var S=0,z=t.length;S<z;S++)O[t[S]]=""}o(r,"clearBuffers");function a(O){sn(O),O.cdata!==""&&(Ue(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(Ue(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Rt(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(O){return O!=="error"&&O!=="end"});function u(O,S){return new p(O,S)}o(u,"createStream");function p(O,S){if(!(this instanceof p))return new p(O,S);s.apply(this),this._parser=new n(O,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return z.removeAllListeners(V),z._parser["on"+V]=_e,_e;z.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,S){var z=this;return!z._parser["on"+O]&&l.indexOf(O)!==-1&&(z._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),z.emit.apply(z,V)}),s.prototype.on.call(z,O,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},I=/[:_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-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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 U(O){return O===" "||O===`
|
|
20
|
-
`||O==="\r"||O===" "}o(U,"isWhitespace");function
|
|
19
|
+
</Annotations>`),r}o(JR,"inferTypeFromTerm");function DG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(DG,"isDataFieldWithForAction");function _G(e,t,n,i,r){let a;return!r.type&&t?a=JR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(_G,"parseRecordType");function sb(e,t,n,i,r,a,s){let l={$Type:_G(e,t,n,i,a),fullyQualifiedName:s,[io]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>YR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",tF(e,a,l)),DG(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(sb,"parseRecord");function VG(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(VG,"getOrInferCollectionType");function ZR(e,t,n,i,r,a,s){switch(VG(a)){case"PropertyPath":return a.map((u,p)=>QR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>mr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>qR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>zR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>sb(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(ZR,"parseCollection");function wG(e){return!!e.targetTypeName}o(wG,"isV4NavigationProperty");function MG(e,t,n){var i;let r;if(n.record)r=sb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=YR(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=ZR(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[io]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Og.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",tF(e,n,r))}catch{}return r}o(MG,"convertAnnotation");var cb=class cb{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,nF)}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)(Og.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(cb,"Converter");var ob=cb;function ou(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(ou,"resolveEntityType");function eF(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(eF,"resolveNavigationPropertyBindings");function sa(e,t){let n=t.annotations;return()=>Ig(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(sa,"resolveAnnotations");function tF(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[io]=n[io],a.fullyQualifiedName=`${i}@${a.term}`}),Ig(e,n,r??[])}}o(tF,"resolveAnnotationsOnAnnotation");function Ig(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)=>MG(u,t,p))),i},{})}o(Ig,"createAnnotationsObject");function nF(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,rF)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,iF)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,aF)),n}o(nF,"convertEntityContainer");function iF(e,t){let n=t;(0,Se.lazy)(n,"entityType",ou(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",eF(e,i)),n}o(iF,"convertSingleton");function rF(e,t){let n=t;(0,Se.lazy)(n,"entityType",ou(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",eF(e,i)),n}o(rF,"convertEntitySet");function kG(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,ab)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,ab)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,oF)),(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=mr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(kG,"convertEntityType");function ab(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(ab,"convertProperty");function oF(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!wG(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",ou(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",sa(e,t)),a}o(oF,"convertNavigationProperty");function aF(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(aF,"convertActionImport");function jG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",ou(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",ou(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,UG)),(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 Ig(e,t,a)}),n}o(jG,"convertAction");function UG(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 Ig(e,t,a)}),n}o(UG,"convertActionParameter");function $G(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,ab)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,oF)),(0,Se.lazy)(n,"annotations",sa(e,t)),n}o($G,"convertComplexType");function BG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(BG,"convertTypeDefinition");function HG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Og.VocabularyReferences,diagnostics:[]},n=new ob(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,nF)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,rF)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,iF)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,kG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,jG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,$G)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,aF)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,BG)),t.resolvePath=o(function(r){let a=mr(n,void 0,r);return a.target&&aa(a.objectPath,a.target),a},"resolvePath"),t}o(HG,"convert");Ng.convert=HG});var uF=Je(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});Rg.revertTermToGenericType=void 0;var lb=Cg();function GG(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(A=>A.alias===v[0])&&(m=lb.EnumIsFlag[(0,lb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Lg(e,v))}}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:Lg(e,t)});return p}o(GG,"revertObjectToRawType");function cF(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=GG(e,t);break}return n}o(cF,"revertValueToRawType");var WG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function lF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=fF(e,t[i][r]);if(!a.term){let s=(0,lb.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(lF,"revertAnnotationsToRawType");function Lg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(WG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:cF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],lF(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(Lg,"revertCollectionItemToRawType");function fF(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=[],lF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Lg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Lg(e,t)}:{...n,value:cF(e,t)}}o(fF,"revertTermToGenericType");Rg.revertTermToGenericType=fF});var pF=Je(ca=>{"use strict";var KG=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]}),fb=ca&&ca.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&KG(t,e,n)};Object.defineProperty(ca,"__esModule",{value:!0});fb(sF(),ca);fb(Cg(),ca);fb(uF(),ca)});var mb=Je(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.MergedRawMetadata=Ga.RawMetadataInstance=Ga.ensureArray=void 0;function XG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(XG,"ensureArray");Ga.ensureArray=XG;var db=class db{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(db,"RawMetadataInstance");var ub=db;Ga.RawMetadataInstance=ub;var gb=class gb{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(gb,"MergedRawMetadata");var pb=gb;Ga.MergedRawMetadata=pb});var dF=Je(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.merge=void 0;var QG=mb();function qG(...e){let t=new QG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(qG,"merge");Fg.merge=qG});var gF=Je(Dg=>{(function(e){e.parser=function(O,S){return new n(O,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(O,S){if(!(this instanceof n))return new n(O,S);var z=this;r(z),z.q=z.c="",z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,z.opt=S||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!O,z.noscript=!!(O||z.opt.noscript),z.state=D.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(b)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!O),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),yt(z,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function S(){}o(S,"F"),S.prototype=O;var z=new S;return z}),Object.keys||(Object.keys=function(O){var S=[];for(var z in O)O.hasOwnProperty(z)&&S.push(z);return S});function i(O){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,_e=t.length;V<_e;V++){var Ft=O[t[V]].length;if(Ft>S)switch(t[V]){case"textNode":sn(O);break;case"cdata":Ue(O,"oncdata",O.cdata),O.cdata="";break;case"script":Ue(O,"onscript",O.script),O.script="";break;default:tn(O,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Ft)}var ze=e.MAX_BUFFER_LENGTH-z;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var S=0,z=t.length;S<z;S++)O[t[S]]=""}o(r,"clearBuffers");function a(O){sn(O),O.cdata!==""&&(Ue(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(Ue(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Rt(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(O){return O!=="error"&&O!=="end"});function u(O,S){return new p(O,S)}o(u,"createStream");function p(O,S){if(!(this instanceof p))return new p(O,S);s.apply(this),this._parser=new n(O,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return z.removeAllListeners(V),z._parser["on"+V]=_e,_e;z.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,S){var z=this;return!z._parser["on"+O]&&l.indexOf(O)!==-1&&(z._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),z.emit.apply(z,V)}),s.prototype.on.call(z,O,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},I=/[:_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-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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 U(O){return O===" "||O===`
|
|
20
|
+
`||O==="\r"||O===" "}o(U,"isWhitespace");function se(O){return O==='"'||O==="'"}o(se,"isQuote");function Z(O){return O===">"||U(O)}o(Z,"isAttribEnd");function re(O,S){return O.test(S)}o(re,"isMatch");function Pe(O,S){return!re(O,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(O){var S=e.ENTITIES[O],z=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[O]=z});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;D=e.STATE;function yt(O,S,z){O[S]&&O[S](z)}o(yt,"emit");function Ue(O,S,z){O.textNode&&sn(O),yt(O,S,z)}o(Ue,"emitNode");function sn(O){O.textNode=Gn(O.opt,O.textNode),O.textNode&&yt(O,"ontext",O.textNode),O.textNode=""}o(sn,"closeText");function Gn(O,S){return O.trim&&(S=S.trim()),O.normalize&&(S=S.replace(/\s+/g," ")),S}o(Gn,"textopts");function tn(O,S){return sn(O),O.trackPosition&&(S+=`
|
|
21
21
|
Line: `+O.line+`
|
|
22
22
|
Column: `+O.column+`
|
|
23
23
|
Char: `+O.c),S=new Error(S),O.error=S,yt(O,"onerror",S),O}o(tn,"error");function Rt(O){return O.sawRoot&&!O.closedRoot&&Re(O,"Unclosed root tag"),O.state!==D.BEGIN&&O.state!==D.BEGIN_WHITESPACE&&O.state!==D.TEXT&&tn(O,"Unexpected end"),sn(O),O.c="",O.closed=!0,yt(O,"onend"),n.call(O,O.strict,O.opt),O}o(Rt,"end");function Re(O,S){if(typeof O!="object"||!(O instanceof n))throw new Error("bad call to strictFail");O.strict&&tn(O,S)}o(Re,"strictFail");function Ii(O){O.strict||(O.tagName=O.tagName[O.looseCase]());var S=O.tags[O.tags.length-1]||O,z=O.tag={name:O.tagName,attributes:{}};O.opt.xmlns&&(z.ns=S.ns),O.attribList.length=0,Ue(O,"onopentagstart",z)}o(Ii,"newTag");function Ot(O,S){var z=O.indexOf(":"),V=z<0?["",O]:O.split(":"),_e=V[0],Ft=V[1];return S&&O==="xmlns"&&(_e="xmlns",Ft=""),{prefix:_e,local:Ft}}o(Ot,"qname");function kt(O){if(O.strict||(O.attribName=O.attribName[O.looseCase]()),O.attribList.indexOf(O.attribName)!==-1||O.tag.attributes.hasOwnProperty(O.attribName)){O.attribName=O.attribValue="";return}if(O.opt.xmlns){var S=Ot(O.attribName,!0),z=S.prefix,V=S.local;if(z==="xmlns")if(V==="xml"&&O.attribValue!==v)Re(O,"xml: prefix must be bound to "+v+`
|
|
24
24
|
Actual: `+O.attribValue);else if(V==="xmlns"&&O.attribValue!==A)Re(O,"xmlns: prefix must be bound to "+A+`
|
|
25
|
-
Actual: `+O.attribValue);else{var _e=O.tag,Ft=O.tags[O.tags.length-1]||O;_e.ns===Ft.ns&&(_e.ns=Object.create(Ft.ns)),_e.ns[V]=O.attribValue}O.attribList.push([O.attribName,O.attribValue])}else O.tag.attributes[O.attribName]=O.attribValue,Ue(O,"onattribute",{name:O.attribName,value:O.attribValue});O.attribName=O.attribValue=""}o(kt,"attrib");function cn(O,S){if(O.opt.xmlns){var z=O.tag,V=Ot(O.tagName);z.prefix=V.prefix,z.local=V.local,z.uri=z.ns[V.prefix]||"",z.prefix&&!z.uri&&(Re(O,"Unbound namespace prefix: "+JSON.stringify(O.tagName)),z.uri=V.prefix);var _e=O.tags[O.tags.length-1]||O;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(Wt){Ue(O,"onopennamespace",{prefix:Wt,uri:z.ns[Wt]})});for(var Ft=0,
|
|
26
|
-
`?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Wn(S,V);continue;case D.BEGIN_WHITESPACE:Wn(S,V);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var _e=z-1;V&&V!=="<"&&V!=="&";)V=
|
|
27
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=O.substring(_e,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!U(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(!U(V))if(re(I,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 Ft=S.position-S.startTagPosition;V=new Array(Ft).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?(Ue(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===">"?(Ue(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,Ue(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=Gn(S.opt,S.comment),S.comment&&Ue(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&&Ue(S,"oncdata",S.cdata),Ue(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:U(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&U(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(Ue(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:(Ii(S),V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(U(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(cn(S,!0),Hi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(U(V))continue;V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(I,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,kt(S),cn(S)):U(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(U(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ue(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?cn(S):re(I,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(U(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||tn(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}kt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:U(V)?S.state=D.ATTRIB:V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(I,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}kt(S),V===">"?cn(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):(U(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(U(V))continue;Pe(I,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(U(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,jt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,jt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,jt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,jt="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[jt]+=vn,S.entity="",S.state=Qe)}else re(S.entity.length?K:j,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[jt]+="&"+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 O=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,_e=[],Ft,Qe,jt=-1,vn=arguments.length;if(!vn)return"";for(var ln="";++jt<vn;){var Gt=Number(arguments[jt]);if(!isFinite(Gt)||Gt<0||Gt>1114111||S(Gt)!==Gt)throw RangeError("Invalid code point: "+Gt);Gt<=65535?_e.push(Gt):(Gt-=65536,Ft=(Gt>>10)+55296,Qe=Gt%1024+56320,_e.push(Ft,Qe)),(jt+1===vn||_e.length>V)&&(ln+=O.apply(null,_e),_e.length=0)}return ln},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Dg>"u"?Dg.sax={}:Dg)});var _g=ze((NJ,pF)=>{pF.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Vg=ze((RJ,dF)=>{var KG=_g().isArray;dF.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"&&!KG(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 hb=ze((DJ,EF)=>{var XG=uF(),QG={on:o(function(){},"on"),parse:o(function(){},"parse")},it=Vg(),ll=_g().isArray,H,mb=!0,$e;function qG(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(qG,"validateOptions");function TF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(TF,"nativeType");function au(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(ll(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!ll($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}}ll($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(au,"addField");function bF(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]=TF(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(bF,"manipulateAttributes");function zG(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=bF(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,au("instruction",r)}}o(zG,"onInstruction");function gF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=bF(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)&&(ll(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!ll($e[e])&&($e[e]=[$e[e]]),ll($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(gF,"onStartElement");function mF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=TF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),au("text",e))}o(mF,"onText");function hF(e){H.ignoreComment||(H.trim&&(e=e.trim()),au("comment",e))}o(hF,"onComment");function yF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(yF,"onEndElement");function YG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),au("cdata",e))}o(YG,"onCdata");function JG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),au("doctype",e))}o(JG,"onDoctype");function vF(e){e.note=e}o(vF,"onError");EF.exports=function(e,t){var n=mb?XG.parser(!0,{}):n=new QG.Parser("UTF-8"),i={};if($e=i,H=qG(t),mb?(n.opt={strictEntities:!0},n.onopentag=gF,n.ontext=mF,n.oncomment=hF,n.onclosetag=yF,n.onerror=vF,n.oncdata=YG,n.ondoctype=JG,n.onprocessinginstruction=zG):(n.on("startElement",gF),n.on("text",mF),n.on("comment",hF),n.on("endElement",yF),n.on("error",vF)),mb)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 PF=ze((VJ,SF)=>{var AF=Vg(),ZG=hb();function eW(e){var t=AF.copyOptions(e);return AF.ensureSpacesExists(t),t}o(eW,"validateOptions");SF.exports=function(e,t){var n,i,r,a;return n=eW(t),i=ZG(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 vb=ze((MJ,DF)=>{var ct=Vg(),tW=_g().isArray,bi,Ei;function nW(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(nW,"validateOptions");function Oo(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}o(Oo,"writeIndentation");function wg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,bi));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,Ei,bi):i,l.push(t.spaces&&t.indentAttributes?Oo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,bi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Oo(t,n,!1)),l.join("")}o(wg,"writeAttributes");function
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(rW,"writeElement");function LF(e,t,n,i){return e.reduce(function(r,a){var s=Oo(t,n,i&&!r);switch(a.type){case"element":return r+s+rW(a,t,n);case"comment":return r+s+OF(a[t.commentKey],t);case"doctype":return r+s+NF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+IF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+yb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+CF(l,t,n)}},"")}o(LF,"writeElements");function RF(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(RF,"hasContentCompact");function oW(e,t,n,i,r){bi=e,Ei=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(">"+yb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(wg(e[n.attributesKey],n,i));var l=RF(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(FF(e,n,i+1,!1)),bi=e,Ei=t,t&&s.push((r?Oo(n,i,!1):"")+"</"+a+">"),s.join("")}o(oW,"writeElementCompact");function FF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=tW(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(xF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Oo(t,n,i):"")+CF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Oo(t,n,i):"")+yb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Oo(t,n,i):"")+IF(s[r],t));break;case t.doctypeKey:l.push(Oo(t,n,i)+NF(s[r],t));break;case t.commentKey:l.push(Oo(t,n,i)+OF(s[r],t));break;default:l.push(Oo(t,n,i)+oW(s[r],a,t,n,RF(s[r],t)))}i=i&&!l.length}return l.join("")}o(FF,"writeElementsCompact");DF.exports=function(e,t){t=nW(t);var n=[];return bi=e,Ei="_root_",t.compact?n.push(FF(e,t,0,!0)):(e[t.declarationKey]&&n.push(xF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(LF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var VF=ze((jJ,_F)=>{var aW=vb();_F.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 aW(n,t)}});var zs=ze((UJ,wF)=>{var sW=hb(),cW=PF(),lW=vb(),fW=VF();wF.exports={xml2js:sW,xml2json:cW,js2xml:lW,json2xml:fW}});var BF=ze(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function uW(e,t,n){let i=[];switch(t){case"EntitySet":kF(e,i);break;case"EntityType":$F(e,i);break;case"NavigationProperty":jF(e,n,i);break;case"Property":UF(e,n,i);break;case"Singleton":break;default:break}return MF(e,n,i),i}o(uW,"convertV2Annotations");qi.convertV2Annotations=uW;function MF(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(MF,"convertGenericAnnotations");qi.convertGenericAnnotations=MF;function kF(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(kF,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=kF;function jF(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(jF,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=jF;function UF(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(UF,"convertPropertyAnnotations");qi.convertPropertyAnnotations=UF;function $F(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($F,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=$F});var QF=ze(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.parse=void 0;var pW=zs(),He=gb(),su=BF(),jg=/^Collection\((.+)\)$/;function dW(e){return e.Type!==null&&e.Type!==void 0}o(dW,"isV4NavProperty");function gW(e){return e.map(t=>t._attributes.Name)}o(gW,"getEntityTypeKeys");function WF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:fl(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,su.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Ys(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(WF,"parseProperties");function mW(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(mW,"parseReferentialConstraint");function hW(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(hW,"parseV2ReferentialConstraint");function KF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(dW(s)){let l=s.Type.match(jg),u=l!==null,p=Io(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:mW((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,su.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Ys(`${n}/${s.Name}`,g))}return r},[])}o(KF,"parseNavigationProperties");function yW(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(yW,"parseAssociationSets");function vW(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:hW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(vW,"parseAssociations");function TW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?gW((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=WF((0,He.ensureArray)(r.Property),a,s,t),p=KF((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,su.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Ys(g.fullyQualifiedName,m)),i.push(g),i},[])}o(TW,"parseEntityTypes");function bW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=WF((0,He.ensureArray)(r.Property),[],a,t),l=KF((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(bW,"parseComplexTypes");function EW(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(EW,"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:Io(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,su.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Ys(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:Io(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,su.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Ys(l.fullyQualifiedName,u)),l})}o(SW,"parseSingletons");function HF(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=>fl(u._attributes.Type).type).join(","):s=a?fl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?fl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=fl(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?fl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(jg)!==null:!1}})}o(HF,"parseActions");function PW(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(jg)!==null:!1}})}o(PW,"parseV2FunctionImport");function GF(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:Io(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Io(r)}})}o(GF,"parseActionImports");function xW(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=kg(s,p,n,!1):u&&(l.value=XF({[u]:a[u]},p,n)),i.Annotation){let g=$g((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Ys(p,g))}}return l})}o(xW,"parsePropertyValues");function Ug(e,t,n){let i=$g((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Io(e._attributes.Type):void 0,propertyValues:xW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Ug,"parseRecord");function la(e,t){return e[t]!=null}o(la,"isExpressionOfType");function Mg(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(Mg,"parseModelPath");function bb(e,t,n){if(la(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Ug(r,t+"/"+a,n));return i.type="Record",i}else if(la(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Mg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(la(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Mg(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=>Mg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(la(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Mg(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(bb,"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=>kg({[i]:r},"",[],!0))):n.push(kg({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function XF(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:bb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ug(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(XF,"parseInlineExpression");function kg(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:bb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ug(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(kg,"parseExpression");function CW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Io(i),qualifier:r},l=`${t}@${Io(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=XF(a,l,n)),e.Annotation){let p=$g((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=Ug(e.Record,l,n):la(e,"Collection")?s.collection=bb(e.Collection,l,n):u.length===1?s.value=kg({[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(CW,"parseAnnotation");function $g(e,t,n){return e.map(i=>CW(i,t,n))}o($g,"parseAnnotations");function Ys(e,t){return{target:e,annotations:t}}o(Ys,"createAnnotationList");function OW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Ys(Io(n._attributes.Target),$g((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(OW,"parseAnnotationLists");function IW(e,t,n){let i=e._attributes.Namespace,r=[],a=TW((0,He.ensureArray)(e.EntityType),r,i),s=bW((0,He.ensureArray)(e.ComplexType),r,i),l=EW((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=yW((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(PW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(GF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(GF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(HF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(HF((0,He.ensureArray)(e.Function),i,!0)));let b=vW((0,He.ensureArray)(e.Association),i);OW((0,He.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(IW,"parseSchema");function NW(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(NW,"parseReferences");var Tb={};function fl(e){let t=e.match(jg),n=t?t[1]:e,i=Io(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(fl,"unaliasType");function Io(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=Tb[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(Io,"unalias");function LW(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(I=>I.fullyQualifiedName===A.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(K=>K.association===F.relationship);if(j){let K=j.associationEnd.find(U=>U.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[I.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.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(LW,"mergeSchemas");function RW(e,t){Tb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Tb[n._attributes.Alias]=n._attributes.Namespace})}o(RW,"createAliasMap");function FW(e,t="serviceFile"){let n=(0,pW.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=NW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));RW(a,r);let s=r.map(u=>IW(u,i,t));return new He.RawMetadataInstance(t,i,LW(s),a)}o(FW,"parse");Bg.parse=FW});var qF=ze(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.parse=ul.merge=void 0;var DW=fF();Object.defineProperty(ul,"merge",{enumerable:!0,get:o(function(){return DW.merge},"get")});var _W=QF();Object.defineProperty(ul,"parse",{enumerable:!0,get:o(function(){return _W.parse},"get")})});var u0=ze(()=>{var f0;(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 ks(Object.create(null))}:u?function(){return ks({__proto__:null})}:function(){return ks({})},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:Vf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:wf(),b=typeof WeakMap=="function"?WeakMap:Mf(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Gi(),j=_f(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Ft(k))throw new TypeError;if(!jt(B))throw new TypeError;return sn(k,B)}else{if(!Ft(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=_e(Q),Gn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function U(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;Ot(k,B,ce,Le)}return o(Q,"decorator"),Q}o(U,"metadata"),t("metadata",U);function ae(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),Ot(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)),tn(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)),Rt(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)),Ii(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)),kt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),cn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function Ue(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(Ue,"deleteMetadata"),t("deleteMetadata",Ue);function sn(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Wn(Le)){if(!jt(Le))throw new TypeError;B=Le}}return B}o(sn,"DecorateConstructor");function Gn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var mn=k[Le],Cn=mn(B,Q,ce);if(!Fe(Cn)&&!Wn(Cn)){if(!at(Cn))throw new TypeError;ce=Cn}}return ce}o(Gn,"DecorateProperty");function tn(k,B,Q){var ce=Rt(k,B,Q);if(ce)return!0;var Le=Wt(B);return Wn(Le)?!1:tn(k,Le,Q)}o(tn,"OrdinaryHasMetadata");function Rt(k,B,Q){var ce=Nr(B,Q,!1);return Fe(ce)?!1:z(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Rt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Rt(k,B,Q);if(ce)return Ii(k,B,Q);var Le=Wt(B);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Ii(k,B,Q){var ce=Nr(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Ii,"OrdinaryGetOwnMetadata");function Ot(k,B,Q,ce){var Le=Nr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(Ot,"OrdinaryDefineOwnMetadata");function kt(k,B){var Q=cn(k,B),ce=Wt(k);if(ce===null)return Q;var Le=kt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var mn=new A,Cn=[],tt=0,he=Q;tt<he.length;tt++){var be=he[tt],xe=mn.has(be);xe||(mn.add(be),Cn.push(be))}for(var Ie=0,rt=Le;Ie<rt.length;Ie++){var be=rt[Ie],xe=mn.has(be);xe||(mn.add(be),Cn.push(be))}return Cn}o(kt,"OrdinaryMetadataKeys");function cn(k,B){var Q=Nr(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(cn,"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 Wn(k){return k===null}o(Wn,"IsNull");function Ir(k){return typeof k=="symbol"}o(Ir,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function O(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=Gt(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(O,"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 z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Ir(B)?B:V(B)}o(_e,"ToPropertyKey");function Ft(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Ft,"IsArray");function Qe(k){return typeof k=="function"}o(Qe,"IsCallable");function jt(k){return typeof k=="function"}o(jt,"IsConstructor");function vn(k){switch(Hi(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function ln(k,B){return k===B||k!==k&&B!==B}o(ln,"SameValueZero");function Gt(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Gt,"GetMethod");function ti(k){var B=Gt(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"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 hi(k){var B=k.return;B&&B.call(k)}o(hi,"IteratorClose");function Wt(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(Wt,"OrdinaryGetPrototypeOf");function zo(){var k;!Fe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ms(n.Reflect));var B,Q,ce,Le=new b,mn={registerProvider:Cn,getProvider:he,setProvider:xe};return mn;function Cn(Ie){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Fe(B):B=Ie;break;case B===Ie:break;case Fe(Q):Q=Ie;break;case Q===Ie:break;default:ce===void 0&&(ce=new A),ce.add(Ie);break}}function tt(Ie,rt){if(!Fe(B)){if(B.isProviderFor(Ie,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Ie,rt))return B;if(!Fe(ce))for(var Kt=ti(ce);;){var fn=gn(Kt);if(!fn)return;var sr=ar(fn);if(sr.isProviderFor(Ie,rt))return hi(Kt),sr}}}if(!Fe(k)&&k.isProviderFor(Ie,rt))return k}function he(Ie,rt){var Kt=Le.get(Ie),fn;return Fe(Kt)||(fn=Kt.get(rt)),Fe(fn)&&(fn=tt(Ie,rt),Fe(fn)||(Fe(Kt)&&(Kt=new v,Le.set(Ie,Kt)),Kt.set(rt,fn))),fn}function be(Ie){if(Fe(Ie))throw new TypeError;return B===Ie||Q===Ie||!Fe(ce)&&ce.has(Ie)}function xe(Ie,rt,Kt){if(!be(Kt))throw new Error("Metadata provider not registered.");var fn=he(Ie,rt);if(fn!==Kt){if(!Fe(fn))return!1;var sr=Le.get(Ie);Fe(sr)&&(sr=new v,Le.set(Ie,sr)),sr.set(rt,Kt)}return!0}}o(zo,"CreateMetadataRegistry");function Gi(){var k;return!Fe(I)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Fe(k)&&(k=zo()),!Fe(I)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Gi,"GetOrCreateMetadataRegistry");function _f(k){var B=new b,Q={isProviderFor:o(function(be,xe){var Ie=B.get(be);return Fe(Ie)?!1:Ie.has(xe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:he};return F.registerProvider(Q),Q;function ce(be,xe,Ie){var rt=B.get(be),Kt=!1;if(Fe(rt)){if(!Ie)return;rt=new v,B.set(be,rt),Kt=!0}var fn=rt.get(xe);if(Fe(fn)){if(!Ie)return;if(fn=new v,rt.set(xe,fn),!k.setProvider(be,xe,Q))throw rt.delete(xe),Kt&&B.delete(be),new Error("Wrong provider for target.")}return fn}o(ce,"GetOrCreateMetadataMap");function Le(be,xe,Ie){var rt=ce(xe,Ie,!1);return Fe(rt)?!1:z(rt.has(be))}o(Le,"OrdinaryHasOwnMetadata");function mn(be,xe,Ie){var rt=ce(xe,Ie,!1);if(!Fe(rt))return rt.get(be)}o(mn,"OrdinaryGetOwnMetadata");function Cn(be,xe,Ie,rt){var Kt=ce(Ie,rt,!0);Kt.set(be,xe)}o(Cn,"OrdinaryDefineOwnMetadata");function tt(be,xe){var Ie=[],rt=ce(be,xe,!1);if(Fe(rt))return Ie;for(var Kt=rt.keys(),fn=ti(Kt),sr=0;;){var Cd=gn(fn);if(!Cd)return Ie.length=sr,Ie;var Ev=ar(Cd);try{Ie[sr]=Ev}catch(kf){try{hi(fn)}finally{throw kf}}sr++}}o(tt,"OrdinaryOwnMetadataKeys");function he(be,xe,Ie){var rt=ce(xe,Ie,!1);if(Fe(rt)||!rt.delete(be))return!1;if(rt.size===0){var Kt=B.get(xe);Fe(Kt)||(Kt.delete(Ie),Kt.size===0&&B.delete(Kt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(_f,"CreateMetadataProvider");function Ms(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,mn=k.deleteMetadata,Cn=new b,tt={isProviderFor:o(function(he,be){var xe=Cn.get(he);return!Fe(xe)&&xe.has(be)?!0:Le(he,be).length?(Fe(xe)&&(xe=new A,Cn.set(he,xe)),xe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return tt}o(Ms,"CreateFallbackProvider");function Nr(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Vf(){var k={},B=[],Q=function(){function tt(he,be,xe){this._index=0,this._keys=he,this._values=be,this._selector=xe}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 xe=this._find(he,!0);return this._values[xe]=be,this},tt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var xe=this._keys.length,Ie=be+1;Ie<xe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,ln(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,Cn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(he,be){if(!ln(this._cacheKey,he)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(ln(this._keys[xe],he)){this._cacheIndex=xe;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 Cn(tt,he){return[tt,he]}}o(Vf,"CreateMapPolyfill");function wf(){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(wf,"CreateSetPolyfill");function Mf(){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 xe=Le(be,!1);return xe!==void 0?g.has(xe,this._key):!1},he.prototype.get=function(be){var xe=Le(be,!1);return xe!==void 0?g.get(xe,this._key):void 0},he.prototype.set=function(be,xe){var Ie=Le(be,!0);return Ie[this._key]=xe,this},he.prototype.delete=function(be){var xe=Le(be,!1);return xe!==void 0?delete xe[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 xe=0;xe<be;++xe)he[xe]=Math.random()*255|0;return he}function Cn(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=Cn(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",xe=0;xe<k;++xe){var Ie=he[xe];(xe===4||xe===6||xe===8)&&(be+="-"),Ie<16&&(be+="0"),be+=Ie.toString(16).toLowerCase()}return be}}o(Mf,"CreateWeakMapPolyfill");function ks(k){return k.__=void 0,delete k.__,k}o(ks,"MakeDictionary")})})(f0||(f0={}))});var y0=ze((cZ,h0)=>{var s8=0,m0="changeUtils: ";function c8(){return"id-"+new Date().valueOf()+"-"+s8++}o(c8,"uid");function l8(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(l8,"appendComponentToReference");function f8(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return l8(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(f8,"getFlexReference");function u8(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(u8,"getAppVersion");function p8(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(p8,"getProjectId");function g0(e){return JSON.stringify({fileName:e.id||c8().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:m0+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(g0,"createString");h0.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(m0,""),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=f8(t),e.appVersion=u8(t),e.projectId=p8(t,e.reference),g0(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 g0(e)},"toString")}});var T0=ze((fZ,v0)=>{v0.exports={change:y0()}});var f1=ze(Br=>{"use strict";var X8=/[|\\{}()[\]^$+*?.]/g,Q8=Object.prototype.hasOwnProperty,fE=o(function(e,t){return Q8.apply(e,[t])},"hasOwn");Br.escapeRegExpChars=function(e){return e?String(e).replace(X8,"\\$&"):""};var q8={"&":"&","<":"<",">":">",'"':""","'":"'"},z8=/[&<>'"]/g;function Y8(e){return q8[e]||e}o(Y8,"encode_char");var J8=`var _ENCODE_HTML_RULES = {
|
|
25
|
+
Actual: `+O.attribValue);else{var _e=O.tag,Ft=O.tags[O.tags.length-1]||O;_e.ns===Ft.ns&&(_e.ns=Object.create(Ft.ns)),_e.ns[V]=O.attribValue}O.attribList.push([O.attribName,O.attribValue])}else O.tag.attributes[O.attribName]=O.attribValue,Ue(O,"onattribute",{name:O.attribName,value:O.attribValue});O.attribName=O.attribValue=""}o(kt,"attrib");function cn(O,S){if(O.opt.xmlns){var z=O.tag,V=Ot(O.tagName);z.prefix=V.prefix,z.local=V.local,z.uri=z.ns[V.prefix]||"",z.prefix&&!z.uri&&(Re(O,"Unbound namespace prefix: "+JSON.stringify(O.tagName)),z.uri=V.prefix);var _e=O.tags[O.tags.length-1]||O;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(Wt){Ue(O,"onopennamespace",{prefix:Wt,uri:z.ns[Wt]})});for(var Ft=0,ze=O.attribList.length;Ft<ze;Ft++){var jt=O.attribList[Ft],vn=jt[0],ln=jt[1],Gt=Ot(vn,!0),ti=Gt.prefix,sr=Gt.local,gn=ti===""?"":z.ns[ti]||"",hi={name:vn,value:ln,prefix:ti,local:sr,uri:gn};ti&&ti!=="xmlns"&&!gn&&(Re(O,"Unbound namespace prefix: "+JSON.stringify(ti)),hi.uri=ti),O.tag.attributes[vn]=hi,Ue(O,"onattribute",hi)}O.attribList.length=0}O.tag.isSelfClosing=!!S,O.sawRoot=!0,O.tags.push(O.tag),Ue(O,"onopentag",O.tag),S||(!O.noscript&&O.tagName.toLowerCase()==="script"?O.state=D.SCRIPT:O.state=D.TEXT,O.tag=null,O.tagName=""),O.attribName=O.attribValue="",O.attribList.length=0}o(cn,"openTag");function Hi(O){if(!O.tagName){Re(O,"Weird empty close tag."),O.textNode+="</>",O.state=D.TEXT;return}if(O.script){if(O.tagName!=="script"){O.script+="</"+O.tagName+">",O.tagName="",O.state=D.SCRIPT;return}Ue(O,"onscript",O.script),O.script=""}var S=O.tags.length,z=O.tagName;O.strict||(z=z[O.looseCase]());for(var V=z;S--;){var _e=O.tags[S];if(_e.name!==V)Re(O,"Unexpected close tag");else break}if(S<0){Re(O,"Unmatched closing tag: "+O.tagName),O.textNode+="</"+O.tagName+">",O.state=D.TEXT;return}O.tagName=z;for(var Ft=O.tags.length;Ft-- >S;){var ze=O.tag=O.tags.pop();O.tagName=O.tag.name,Ue(O,"onclosetag",O.tagName);var jt={};for(var vn in ze.ns)jt[vn]=ze.ns[vn];var ln=O.tags[O.tags.length-1]||O;O.opt.xmlns&&ze.ns!==ln.ns&&Object.keys(ze.ns).forEach(function(Gt){var ti=ze.ns[Gt];Ue(O,"onclosenamespace",{prefix:Gt,uri:ti})})}S===0&&(O.closedRoot=!0),O.tagName=O.attribValue=O.attribName="",O.attribList.length=0,O.state=D.TEXT}o(Hi,"closeTag");function Fe(O){var S=O.entity,z=S.toLowerCase(),V,_e="";return O.ENTITIES[S]?O.ENTITIES[S]:O.ENTITIES[z]?O.ENTITIES[z]:(S=z,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(O,"Invalid character entity"),"&"+O.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Wn(O,S){S==="<"?(O.state=D.OPEN_WAKA,O.startTagPosition=O.position):U(S)||(Re(O,"Non-whitespace before first tag."),O.textNode=S,O.state=D.TEXT)}o(Wn,"beginWhiteSpace");function Nr(O,S){var z="";return S<O.length&&(z=O.charAt(S)),z}o(Nr,"charAt");function at(O){var S=this;if(this.error)throw this.error;if(S.closed)return tn(S,"Cannot write after close. Assign an onready handler.");if(O===null)return Rt(S);typeof O=="object"&&(O=O.toString());for(var z=0,V="";V=Nr(O,z++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
|
|
26
|
+
`?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Wn(S,V);continue;case D.BEGIN_WHITESPACE:Wn(S,V);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var _e=z-1;V&&V!=="<"&&V!=="&";)V=Nr(O,z++),V&&S.trackPosition&&(S.position++,V===`
|
|
27
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=O.substring(_e,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!U(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(!U(V))if(re(I,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 Ft=S.position-S.startTagPosition;V=new Array(Ft).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?(Ue(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===">"?(Ue(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(se(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,Ue(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:se(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):se(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=Gn(S.opt,S.comment),S.comment&&Ue(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&&Ue(S,"oncdata",S.cdata),Ue(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:U(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&U(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(Ue(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:(Ii(S),V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(U(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(cn(S,!0),Hi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(U(V))continue;V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(I,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,kt(S),cn(S)):U(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(U(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ue(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?cn(S):re(I,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(U(V))continue;se(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||tn(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}kt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:U(V)?S.state=D.ATTRIB:V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(I,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}kt(S),V===">"?cn(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):(U(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(U(V))continue;Pe(I,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(U(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 ze,jt;switch(S.state){case D.TEXT_ENTITY:ze=D.TEXT,jt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:ze=D.ATTRIB_VALUE_QUOTED,jt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:ze=D.ATTRIB_VALUE_UNQUOTED,jt="attribValue";break}if(V===";"){var vn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=ze,S.write(vn)):(S[jt]+=vn,S.entity="",S.state=ze)}else re(S.entity.length?K:j,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[jt]+="&"+S.entity+V,S.entity="",S.state=ze);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 O=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,_e=[],Ft,ze,jt=-1,vn=arguments.length;if(!vn)return"";for(var ln="";++jt<vn;){var Gt=Number(arguments[jt]);if(!isFinite(Gt)||Gt<0||Gt>1114111||S(Gt)!==Gt)throw RangeError("Invalid code point: "+Gt);Gt<=65535?_e.push(Gt):(Gt-=65536,Ft=(Gt>>10)+55296,ze=Gt%1024+56320,_e.push(Ft,ze)),(jt+1===vn||_e.length>V)&&(ln+=O.apply(null,_e),_e.length=0)}return ln},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Dg>"u"?Dg.sax={}:Dg)});var _g=Je((VJ,mF)=>{mF.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Vg=Je((MJ,hF)=>{var zG=_g().isArray;hF.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"&&!zG(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 yb=Je((jJ,PF)=>{var YG=gF(),JG={on:o(function(){},"on"),parse:o(function(){},"parse")},it=Vg(),ll=_g().isArray,H,hb=!0,$e;function ZG(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(ZG,"validateOptions");function AF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(AF,"nativeType");function au(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(ll(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!ll($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}}ll($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(au,"addField");function SF(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]=AF(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(SF,"manipulateAttributes");function eW(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=SF(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,au("instruction",r)}}o(eW,"onInstruction");function yF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=SF(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)&&(ll(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!ll($e[e])&&($e[e]=[$e[e]]),ll($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(yF,"onStartElement");function vF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=AF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),au("text",e))}o(vF,"onText");function TF(e){H.ignoreComment||(H.trim&&(e=e.trim()),au("comment",e))}o(TF,"onComment");function bF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(bF,"onEndElement");function tW(e){H.ignoreCdata||(H.trim&&(e=e.trim()),au("cdata",e))}o(tW,"onCdata");function nW(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),au("doctype",e))}o(nW,"onDoctype");function EF(e){e.note=e}o(EF,"onError");PF.exports=function(e,t){var n=hb?YG.parser(!0,{}):n=new JG.Parser("UTF-8"),i={};if($e=i,H=ZG(t),hb?(n.opt={strictEntities:!0},n.onopentag=yF,n.ontext=vF,n.oncomment=TF,n.onclosetag=bF,n.onerror=EF,n.oncdata=tW,n.ondoctype=nW,n.onprocessinginstruction=eW):(n.on("startElement",yF),n.on("text",vF),n.on("comment",TF),n.on("endElement",bF),n.on("error",EF)),hb)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 OF=Je(($J,CF)=>{var xF=Vg(),iW=yb();function rW(e){var t=xF.copyOptions(e);return xF.ensureSpacesExists(t),t}o(rW,"validateOptions");CF.exports=function(e,t){var n,i,r,a;return n=rW(t),i=iW(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 Tb=Je((HJ,wF)=>{var ct=Vg(),oW=_g().isArray,bi,Ei;function aW(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(aW,"validateOptions");function Oo(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}o(Oo,"writeIndentation");function wg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,bi));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,Ei,bi):i,l.push(t.spaces&&t.indentAttributes?Oo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,bi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Oo(t,n,!1)),l.join("")}o(wg,"writeAttributes");function IF(e,t,n){return bi=e,Ei="xml",t.ignoreDeclaration?"":"<?xml"+wg(e[t.attributesKey],t,n)+"?>"}o(IF,"writeDeclaration");function NF(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],Ei,bi):i;if(typeof e[i]=="object")return bi=e,Ei=r,"<?"+r+wg(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ei,bi)),"<?"+r+(a?" "+a:"")+"?>"}o(NF,"writeInstruction");function LF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ei,bi):e)+"-->"}o(LF,"writeComment");function RF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ei,bi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(RF,"writeCdata");function FF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ei,bi):e)+">"}o(FF,"writeDoctype");function vb(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,Ei,bi):e)}o(vb,"writeText");function sW(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(sW,"hasContent");function cW(e,t,n){bi=e,Ei=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(wg(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(DF(e[t.elementsKey],t,n+1)),bi=e,Ei=e.name),i.push(t.spaces&&sW(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(cW,"writeElement");function DF(e,t,n,i){return e.reduce(function(r,a){var s=Oo(t,n,i&&!r);switch(a.type){case"element":return r+s+cW(a,t,n);case"comment":return r+s+LF(a[t.commentKey],t);case"doctype":return r+s+FF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+RF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+vb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+NF(l,t,n)}},"")}o(DF,"writeElements");function _F(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(_F,"hasContentCompact");function lW(e,t,n,i,r){bi=e,Ei=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(">"+vb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(wg(e[n.attributesKey],n,i));var l=_F(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(VF(e,n,i+1,!1)),bi=e,Ei=t,t&&s.push((r?Oo(n,i,!1):"")+"</"+a+">"),s.join("")}o(lW,"writeElementCompact");function VF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=oW(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(IF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Oo(t,n,i):"")+NF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Oo(t,n,i):"")+vb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Oo(t,n,i):"")+RF(s[r],t));break;case t.doctypeKey:l.push(Oo(t,n,i)+FF(s[r],t));break;case t.commentKey:l.push(Oo(t,n,i)+LF(s[r],t));break;default:l.push(Oo(t,n,i)+lW(s[r],a,t,n,_F(s[r],t)))}i=i&&!l.length}return l.join("")}o(VF,"writeElementsCompact");wF.exports=function(e,t){t=aW(t);var n=[];return bi=e,Ei="_root_",t.compact?n.push(VF(e,t,0,!0)):(e[t.declarationKey]&&n.push(IF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(DF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var kF=Je((WJ,MF)=>{var fW=Tb();MF.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 fW(n,t)}});var zs=Je((KJ,jF)=>{var uW=yb(),pW=OF(),dW=Tb(),gW=kF();jF.exports={xml2js:uW,xml2json:pW,js2xml:dW,json2xml:gW}});var WF=Je(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.convertEntityTypeAnnotations=zi.convertPropertyAnnotations=zi.convertNavigationPropertyAnnotations=zi.convertEntitySetAnnotations=zi.convertGenericAnnotations=zi.convertV2Annotations=void 0;function mW(e,t,n){let i=[];switch(t){case"EntitySet":$F(e,i);break;case"EntityType":GF(e,i);break;case"NavigationProperty":BF(e,n,i);break;case"Property":HF(e,n,i);break;case"Singleton":break;default:break}return UF(e,n,i),i}o(mW,"convertV2Annotations");zi.convertV2Annotations=mW;function UF(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(UF,"convertGenericAnnotations");zi.convertGenericAnnotations=UF;function $F(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($F,"convertEntitySetAnnotations");zi.convertEntitySetAnnotations=$F;function BF(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(BF,"convertNavigationPropertyAnnotations");zi.convertNavigationPropertyAnnotations=BF;function HF(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(HF,"convertPropertyAnnotations");zi.convertPropertyAnnotations=HF;function GF(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(GF,"convertEntityTypeAnnotations");zi.convertEntityTypeAnnotations=GF});var YF=Je(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.parse=void 0;var hW=zs(),He=mb(),su=WF(),jg=/^Collection\((.+)\)$/;function yW(e){return e.Type!==null&&e.Type!==void 0}o(yW,"isV4NavProperty");function vW(e){return e.map(t=>t._attributes.Name)}o(vW,"getEntityTypeKeys");function QF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:fl(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,su.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Ys(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(QF,"parseProperties");function TW(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(TW,"parseReferentialConstraint");function bW(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(bW,"parseV2ReferentialConstraint");function qF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(yW(s)){let l=s.Type.match(jg),u=l!==null,p=Io(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:TW((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,su.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Ys(`${n}/${s.Name}`,g))}return r},[])}o(qF,"parseNavigationProperties");function EW(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(EW,"parseAssociationSets");function AW(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:bW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(AW,"parseAssociations");function SW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?vW((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=QF((0,He.ensureArray)(r.Property),a,s,t),p=qF((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,su.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Ys(g.fullyQualifiedName,m)),i.push(g),i},[])}o(SW,"parseEntityTypes");function PW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=QF((0,He.ensureArray)(r.Property),[],a,t),l=qF((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(PW,"parseComplexTypes");function xW(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(xW,"parseTypeDefinitions");function CW(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:Io(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,su.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Ys(l.fullyQualifiedName,u)),l})}o(CW,"parseEntitySets");function OW(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:Io(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,su.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Ys(l.fullyQualifiedName,u)),l})}o(OW,"parseSingletons");function KF(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=>fl(u._attributes.Type).type).join(","):s=a?fl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?fl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=fl(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?fl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(jg)!==null:!1}})}o(KF,"parseActions");function IW(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(jg)!==null:!1}})}o(IW,"parseV2FunctionImport");function XF(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:Io(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Io(r)}})}o(XF,"parseActionImports");function NW(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=kg(s,p,n,!1):u&&(l.value=zF({[u]:a[u]},p,n)),i.Annotation){let g=$g((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Ys(p,g))}}return l})}o(NW,"parsePropertyValues");function Ug(e,t,n){let i=$g((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Io(e._attributes.Type):void 0,propertyValues:NW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Ug,"parseRecord");function la(e,t){return e[t]!=null}o(la,"isExpressionOfType");function Mg(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(Mg,"parseModelPath");function Eb(e,t,n){if(la(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Ug(r,t+"/"+a,n));return i.type="Record",i}else if(la(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Mg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(la(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Mg(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=>Mg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(la(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Mg(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(Eb,"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=>kg({[i]:r},"",[],!0))):n.push(kg({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function zF(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:Eb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ug(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(zF,"parseInlineExpression");function kg(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:Eb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ug(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(kg,"parseExpression");function LW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Io(i),qualifier:r},l=`${t}@${Io(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=zF(a,l,n)),e.Annotation){let p=$g((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=Ug(e.Record,l,n):la(e,"Collection")?s.collection=Eb(e.Collection,l,n):u.length===1?s.value=kg({[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(LW,"parseAnnotation");function $g(e,t,n){return e.map(i=>LW(i,t,n))}o($g,"parseAnnotations");function Ys(e,t){return{target:e,annotations:t}}o(Ys,"createAnnotationList");function RW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Ys(Io(n._attributes.Target),$g((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(RW,"parseAnnotationLists");function FW(e,t,n){let i=e._attributes.Namespace,r=[],a=SW((0,He.ensureArray)(e.EntityType),r,i),s=PW((0,He.ensureArray)(e.ComplexType),r,i),l=xW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=CW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=OW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=EW((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(IW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(XF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(XF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(KF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(KF((0,He.ensureArray)(e.Function),i,!0)));let b=AW((0,He.ensureArray)(e.Association),i);RW((0,He.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(FW,"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 bb={};function fl(e){let t=e.match(jg),n=t?t[1]:e,i=Io(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(fl,"unaliasType");function Io(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=bb[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(Io,"unalias");function _W(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(I=>I.fullyQualifiedName===A.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(K=>K.association===F.relationship);if(j){let K=j.associationEnd.find(U=>U.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[I.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.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(_W,"mergeSchemas");function VW(e,t){bb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{bb[n._attributes.Alias]=n._attributes.Namespace})}o(VW,"createAliasMap");function wW(e,t="serviceFile"){let n=(0,hW.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"]));VW(a,r);let s=r.map(u=>FW(u,i,t));return new He.RawMetadataInstance(t,i,_W(s),a)}o(wW,"parse");Bg.parse=wW});var JF=Je(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.parse=ul.merge=void 0;var MW=dF();Object.defineProperty(ul,"merge",{enumerable:!0,get:o(function(){return MW.merge},"get")});var kW=YF();Object.defineProperty(ul,"parse",{enumerable:!0,get:o(function(){return kW.parse},"get")})});var g0=Je(()=>{var d0;(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 ks(Object.create(null))}:u?function(){return ks({__proto__:null})}:function(){return ks({})},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:Vf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:wf(),b=typeof WeakMap=="function"?WeakMap:Mf(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Gi(),j=_f(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Ft(k))throw new TypeError;if(!jt(B))throw new TypeError;return sn(k,B)}else{if(!Ft(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=_e(Q),Gn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function U(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;Ot(k,B,ce,Le)}return o(Q,"decorator"),Q}o(U,"metadata"),t("metadata",U);function se(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),Ot(k,B,Q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function Z(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),tn(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)),Rt(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)),Ii(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)),kt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),cn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function Ue(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=Lr(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(Ue,"deleteMetadata"),t("deleteMetadata",Ue);function sn(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Wn(Le)){if(!jt(Le))throw new TypeError;B=Le}}return B}o(sn,"DecorateConstructor");function Gn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var mn=k[Le],Cn=mn(B,Q,ce);if(!Fe(Cn)&&!Wn(Cn)){if(!at(Cn))throw new TypeError;ce=Cn}}return ce}o(Gn,"DecorateProperty");function tn(k,B,Q){var ce=Rt(k,B,Q);if(ce)return!0;var Le=Wt(B);return Wn(Le)?!1:tn(k,Le,Q)}o(tn,"OrdinaryHasMetadata");function Rt(k,B,Q){var ce=Lr(B,Q,!1);return Fe(ce)?!1:z(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Rt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Rt(k,B,Q);if(ce)return Ii(k,B,Q);var Le=Wt(B);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Ii(k,B,Q){var ce=Lr(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Ii,"OrdinaryGetOwnMetadata");function Ot(k,B,Q,ce){var Le=Lr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(Ot,"OrdinaryDefineOwnMetadata");function kt(k,B){var Q=cn(k,B),ce=Wt(k);if(ce===null)return Q;var Le=kt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var mn=new A,Cn=[],tt=0,he=Q;tt<he.length;tt++){var be=he[tt],xe=mn.has(be);xe||(mn.add(be),Cn.push(be))}for(var Ie=0,rt=Le;Ie<rt.length;Ie++){var be=rt[Ie],xe=mn.has(be);xe||(mn.add(be),Cn.push(be))}return Cn}o(kt,"OrdinaryMetadataKeys");function cn(k,B){var Q=Lr(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(cn,"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 Wn(k){return k===null}o(Wn,"IsNull");function Nr(k){return typeof k=="symbol"}o(Nr,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function O(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=Gt(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(O,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(ze(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(ze(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(ze(Le)){var ce=Le.call(k);if(!at(ce))return ce}var mn=k.toString;if(ze(mn)){var ce=mn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Nr(B)?B:V(B)}o(_e,"ToPropertyKey");function Ft(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Ft,"IsArray");function ze(k){return typeof k=="function"}o(ze,"IsCallable");function jt(k){return typeof k=="function"}o(jt,"IsConstructor");function vn(k){switch(Hi(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function ln(k,B){return k===B||k!==k&&B!==B}o(ln,"SameValueZero");function Gt(k,B){var Q=k[B];if(Q!=null){if(!ze(Q))throw new TypeError;return Q}}o(Gt,"GetMethod");function ti(k){var B=Gt(k,s);if(!ze(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"GetIterator");function sr(k){return k.value}o(sr,"IteratorValue");function gn(k){var B=k.next();return B.done?!1:B}o(gn,"IteratorStep");function hi(k){var B=k.return;B&&B.call(k)}o(hi,"IteratorClose");function Wt(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(Wt,"OrdinaryGetPrototypeOf");function zo(){var k;!Fe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ms(n.Reflect));var B,Q,ce,Le=new b,mn={registerProvider:Cn,getProvider:he,setProvider:xe};return mn;function Cn(Ie){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Fe(B):B=Ie;break;case B===Ie:break;case Fe(Q):Q=Ie;break;case Q===Ie:break;default:ce===void 0&&(ce=new A),ce.add(Ie);break}}function tt(Ie,rt){if(!Fe(B)){if(B.isProviderFor(Ie,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Ie,rt))return B;if(!Fe(ce))for(var Kt=ti(ce);;){var fn=gn(Kt);if(!fn)return;var cr=sr(fn);if(cr.isProviderFor(Ie,rt))return hi(Kt),cr}}}if(!Fe(k)&&k.isProviderFor(Ie,rt))return k}function he(Ie,rt){var Kt=Le.get(Ie),fn;return Fe(Kt)||(fn=Kt.get(rt)),Fe(fn)&&(fn=tt(Ie,rt),Fe(fn)||(Fe(Kt)&&(Kt=new v,Le.set(Ie,Kt)),Kt.set(rt,fn))),fn}function be(Ie){if(Fe(Ie))throw new TypeError;return B===Ie||Q===Ie||!Fe(ce)&&ce.has(Ie)}function xe(Ie,rt,Kt){if(!be(Kt))throw new Error("Metadata provider not registered.");var fn=he(Ie,rt);if(fn!==Kt){if(!Fe(fn))return!1;var cr=Le.get(Ie);Fe(cr)&&(cr=new v,Le.set(Ie,cr)),cr.set(rt,Kt)}return!0}}o(zo,"CreateMetadataRegistry");function Gi(){var k;return!Fe(I)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Fe(k)&&(k=zo()),!Fe(I)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Gi,"GetOrCreateMetadataRegistry");function _f(k){var B=new b,Q={isProviderFor:o(function(be,xe){var Ie=B.get(be);return Fe(Ie)?!1:Ie.has(xe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:he};return F.registerProvider(Q),Q;function ce(be,xe,Ie){var rt=B.get(be),Kt=!1;if(Fe(rt)){if(!Ie)return;rt=new v,B.set(be,rt),Kt=!0}var fn=rt.get(xe);if(Fe(fn)){if(!Ie)return;if(fn=new v,rt.set(xe,fn),!k.setProvider(be,xe,Q))throw rt.delete(xe),Kt&&B.delete(be),new Error("Wrong provider for target.")}return fn}o(ce,"GetOrCreateMetadataMap");function Le(be,xe,Ie){var rt=ce(xe,Ie,!1);return Fe(rt)?!1:z(rt.has(be))}o(Le,"OrdinaryHasOwnMetadata");function mn(be,xe,Ie){var rt=ce(xe,Ie,!1);if(!Fe(rt))return rt.get(be)}o(mn,"OrdinaryGetOwnMetadata");function Cn(be,xe,Ie,rt){var Kt=ce(Ie,rt,!0);Kt.set(be,xe)}o(Cn,"OrdinaryDefineOwnMetadata");function tt(be,xe){var Ie=[],rt=ce(be,xe,!1);if(Fe(rt))return Ie;for(var Kt=rt.keys(),fn=ti(Kt),cr=0;;){var Cd=gn(fn);if(!Cd)return Ie.length=cr,Ie;var Av=sr(Cd);try{Ie[cr]=Av}catch(kf){try{hi(fn)}finally{throw kf}}cr++}}o(tt,"OrdinaryOwnMetadataKeys");function he(be,xe,Ie){var rt=ce(xe,Ie,!1);if(Fe(rt)||!rt.delete(be))return!1;if(rt.size===0){var Kt=B.get(xe);Fe(Kt)||(Kt.delete(Ie),Kt.size===0&&B.delete(Kt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(_f,"CreateMetadataProvider");function Ms(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,mn=k.deleteMetadata,Cn=new b,tt={isProviderFor:o(function(he,be){var xe=Cn.get(he);return!Fe(xe)&&xe.has(be)?!0:Le(he,be).length?(Fe(xe)&&(xe=new A,Cn.set(he,xe)),xe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return tt}o(Ms,"CreateFallbackProvider");function Lr(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Lr,"GetMetadataProvider");function Vf(){var k={},B=[],Q=function(){function tt(he,be,xe){this._index=0,this._keys=he,this._values=be,this._selector=xe}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 xe=this._find(he,!0);return this._values[xe]=be,this},tt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var xe=this._keys.length,Ie=be+1;Ie<xe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,ln(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,Cn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(he,be){if(!ln(this._cacheKey,he)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(ln(this._keys[xe],he)){this._cacheIndex=xe;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 Cn(tt,he){return[tt,he]}}o(Vf,"CreateMapPolyfill");function wf(){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(wf,"CreateSetPolyfill");function Mf(){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 xe=Le(be,!1);return xe!==void 0?g.has(xe,this._key):!1},he.prototype.get=function(be){var xe=Le(be,!1);return xe!==void 0?g.get(xe,this._key):void 0},he.prototype.set=function(be,xe){var Ie=Le(be,!0);return Ie[this._key]=xe,this},he.prototype.delete=function(be){var xe=Le(be,!1);return xe!==void 0?delete xe[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 xe=0;xe<be;++xe)he[xe]=Math.random()*255|0;return he}function Cn(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=Cn(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",xe=0;xe<k;++xe){var Ie=he[xe];(xe===4||xe===6||xe===8)&&(be+="-"),Ie<16&&(be+="0"),be+=Ie.toString(16).toLowerCase()}return be}}o(Mf,"CreateWeakMapPolyfill");function ks(k){return k.__=void 0,delete k.__,k}o(ks,"MakeDictionary")})})(d0||(d0={}))});var b0=Je((gZ,T0)=>{var u8=0,v0="changeUtils: ";function p8(){return"id-"+new Date().valueOf()+"-"+u8++}o(p8,"uid");function d8(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(d8,"appendComponentToReference");function g8(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return d8(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(g8,"getFlexReference");function m8(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(m8,"getAppVersion");function h8(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(h8,"getProjectId");function y0(e){return JSON.stringify({fileName:e.id||p8().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:v0+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(y0,"createString");T0.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(v0,""),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=g8(t),e.appVersion=m8(t),e.projectId=h8(t,e.reference),y0(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 y0(e)},"toString")}});var A0=Je((hZ,E0)=>{E0.exports={change:b0()}});var g1=Je(Br=>{"use strict";var Y8=/[|\\{}()[\]^$+*?.]/g,J8=Object.prototype.hasOwnProperty,uE=o(function(e,t){return J8.apply(e,[t])},"hasOwn");Br.escapeRegExpChars=function(e){return e?String(e).replace(Y8,"\\$&"):""};var Z8={"&":"&","<":"<",">":">",'"':""","'":"'"},eK=/[&<>'"]/g;function tK(e){return Z8[e]||e}o(tK,"encode_char");var nK=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,17 +37,17 @@ Actual: `+O.attribValue);else{var _e=O.tag,Ft=O.tags[O.tags.length-1]||O;_e.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;Br.escapeXML=function(e){return e==null?"":String(e).replace(
|
|
41
|
-
`+
|
|
40
|
+
`;Br.escapeXML=function(e){return e==null?"":String(e).replace(eK,tK)};function d1(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+nK}o(d1,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Br.escapeXML,"toString",{value:d1}):Br.escapeXML.toString=d1}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Br.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)uE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Br.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(!uE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Br.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")};Br.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Br.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Br.hasOwnOnlyObject=function(e){var t=Br.createNullProtoObjWherePossible();for(var n in e)uE(e,n)&&(t[n]=e[n]);return t}});var m1=Je((Vee,iK)=>{iK.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 P1=Je(Pt=>{"use strict";var dE=require("fs"),Cu=require("path"),Nn=g1(),h1=!1,rK=m1().version,oK="<",aK=">",sK="%",A1="locals",cK="ejs",lK="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",S1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],fK=S1.concat("cache"),y1=/^\uFEFF/,pE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Nn.cache;Pt.fileLoader=dE.readFileSync;Pt.localsName=A1;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Cu.dirname,r=Cu.extname,a=Cu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function v1(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),dE.existsSync(n)}))return n}o(v1,"resolvePaths");function uK(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=v1(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),dE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=v1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(uK,"getIncludePath");function Ou(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=T1(i).toString().replace(y1,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=T1(i).toString().replace(y1,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Ou,"handleCache");function pK(e,t,n){var i;if(n){try{i=Ou(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=Ou(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(pK,"tryHandleCache");function T1(e){return Pt.fileLoader(e)}o(T1,"fileLoader");function dK(e,t){var n=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),t);if(n.filename=uK(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Ou(n,i.template)}return Ou(n)}o(dK,"includeFile");function b1(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(b1,"rethrow");function E1(e){return e.replace(/;(\s*$)/,"$1")}o(E1,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(h1||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),h1=!0),n.context||(n.context=n.scope),delete n.scope),i=new Bn(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,S1),Ou(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,fK)),i.filename=t):r=Nn.createNullProtoObjWherePossible(),pK(i,r,n)};Pt.Template=Bn;Pt.clearCache=function(){Pt.cache.reset()};function Bn(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||oK,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||aK,i.delimiter=n.delimiter||Pt.delimiter||sK,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||A1,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(Bn,"Template");Bn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Bn.prototype={createRegex:o(function(){var e=lK,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(!pE.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
|
+
`}if(n.localsName&&!pE.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(!pE.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 || "+b1.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(I){var F=o(function(j,K){var U=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),I);return K&&(U=Nn.shallowCopy(U,K)),
|
|
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(I){var F=o(function(j,K){var U=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),I);return K&&(U=Nn.shallowCopy(U,K)),dK(j,n)(U)},"include");return t.apply(n.context,[I||Nn.createNullProtoObjWherePossible(),a,F,b1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,A=Cu.basename(v,Cu.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=Bn.modes.EVAL;break;case i+n+"=":this.mode=Bn.modes.ESCAPED;break;case i+n+"-":this.mode=Bn.modes.RAW;break;case i+n+"#":this.mode=Bn.modes.COMMENT;break;case i+n+n:this.mode=Bn.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==Bn.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 Bn.modes.EVAL:case Bn.modes.ESCAPED:case Bn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
|
|
77
77
|
`)&&(e+=`
|
|
78
78
|
`)}switch(this.mode){case Bn.modes.EVAL:this.source+=" ; "+e+`
|
|
79
|
-
`;break;case Bn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+
|
|
80
|
-
`;break;case Bn.modes.RAW:this.source+=" ; __append("+
|
|
79
|
+
`;break;case Bn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+E1(e)+`))
|
|
80
|
+
`;break;case Bn.modes.RAW:this.source+=" ; __append("+E1(e)+`)
|
|
81
81
|
`;break;case Bn.modes.COMMENT:break;case Bn.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=
|
|
82
|
+
`)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=rK;Pt.name=cK;typeof window<"u"&&(window.ejs=Pt)});var op,eS=Ye(()=>{op="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 uD(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 xi(e){return ot(e)?void 0:e[0]}function $h(e){var t=e&&e.length;return t?e[t-1]:void 0}function Te(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Bh(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 Gr(e){return typeof e=="string"}function Ci(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 hs(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Wr(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 Ea(e,t){return Wr(e,function(n){return!t(n)})}function br(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 Oe(e,t){return Bh(e)?e.hasOwnProperty(t):!1}function wt(e,t){return Aa(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 ys(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Aa(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function pD(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 pn(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 Sa(e){return Ea(e,function(t){return t==null})}function ap(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return pn(e,function(i,r){var a=t(r);return wt(n,a)?i:(n.push(a),i.concat(r))},[])}function zre(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 li(e){return Array.isArray(e)}function mo(e){return e instanceof RegExp}function Bh(e){return e instanceof Object}function fi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Lc(e,t){return Ea(e,function(n){return wt(t,n)})}function Hh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function dD(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Yre(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Jre(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 Er(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 k7(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];Oe(e,l)||(e[l]=r[l])}return e}function sp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k7.apply(null,[{}].concat(e))}function gD(e,t){var n={};return Te(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function tS(e,t){for(var n=ys(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 nS(e){return e}function mD(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 cp(e){console&&console.error&&console.error("Error: "+e)}function Gh(e){console&&console.warn&&console.warn("Warning: "+e)}function iS(){return typeof Map=="function"}function hD(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 Wh(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 lp(e){return e[e.length-1]}function Kh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var Tt=Ye(()=>{o(ot,"isEmpty");o(Mi,"keys");o(Vn,"values");o(uD,"mapValues");o(pe,"map");o(Ln,"flatten");o(xi,"first");o($h,"last");o(Te,"forEach");o(Gr,"isString");o(Ci,"isUndefined");o(go,"isFunction");o(wn,"drop");o(hs,"dropRight");o(Wr,"filter");o(Ea,"reject");o(br,"pick");o(Oe,"has");o(wt,"contains");o(An,"cloneArr");o(ys,"cloneObj");o(Aa,"find");o(pD,"findAll");o(pn,"reduce");o(Sa,"compact");o(ap,"uniq");o(zre,"partial");o(li,"isArray");o(mo,"isRegExp");o(Bh,"isObject");o(fi,"every");o(Lc,"difference");o(Hh,"some");o(dD,"indexOf");o(Yre,"sortBy");o(Jre,"zipObject");o(Er,"assign");o(k7,"assignNoOverwrite");o(sp,"defaults");o(gD,"groupBy");o(tS,"merge");o(Mn,"NOOP");o(nS,"IDENTITY");o(mD,"packArray");o(cp,"PRINT_ERROR");o(Gh,"PRINT_WARNING");o(iS,"isES2015MapSupported");o(hD,"applyMixins");o(Wh,"toFastProperties");o(lp,"peek");o(Kh,"timer")});var Qh=Je((vD,Xh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Xh=="object"&&Xh.exports?Xh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:vD,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 I=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:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},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 I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var F=this.disjunction();return this.consumeChar(")"),{type:I,value:F,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var I,F=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var K;this.isDigit()?(K=this.integerIncludingZero(),I={atLeast:j,atMost:K}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(F),I},e.prototype.atom=function(){var b,I=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(I),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,I=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,I=!0;break;case"s":b=v;break;case"S":b=v,I=!0;break;case"w":b=m;break;case"W":b=m,I=!0;break}return l(b),{type:"Set",value:b,complement:I}},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 I=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:I}},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=[],I=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),I=!0);this.isClassAtom();){var F=this.classAtom(),j=F.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var K=this.classAtom(),U=K.type==="Character";if(U){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:I,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
@@ -87,57 +87,57 @@ 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 I="",F=0;F<b;F++){var j=this.popChar();if(t.test(j)===!1)throw Error("Expecting a HexDecimal digits");I+=j}var K=parseInt(I,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,I){b.length!==void 0?b.forEach(function(F){I.push(F)}):I.push(b)}o(a,"insertToSet");function s(b,I){if(b[I]===!0)throw"duplicate flag "+I;b[I]=!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 I in b){var F=b[I];b.hasOwnProperty(I)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(j){this.visit(j)},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 Hl(e){var t=e.toString();if(
|
|
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 I in b){var F=b[I];b.hasOwnProperty(I)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(j){this.visit(j)},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 Hl(e){var t=e.toString();if(qh.hasOwnProperty(t))return qh[t];var n=j7.pattern(t);return qh[t]=n,n}function bD(){qh={}}var TD,qh,j7,zh=Ye(()=>{TD=ne(Qh()),qh={},j7=new TD.RegExpParser;o(Hl,"getRegExpAst");o(bD,"clearRegExpParserCache")});function SD(e,t){t===void 0&&(t=!1);try{var n=Hl(e),i=rS(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===AD)t&&Gh(""+fp+(" Unable to optimize: < "+e.toString()+` >
|
|
91
91
|
`)+` Complement Sets cannot be automatically optimized.
|
|
92
92
|
This will disable the lexer's first char optimizations.
|
|
93
93
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
|
|
94
94
|
This will disable the lexer's first char optimizations.
|
|
95
95
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),cp(fp+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
|
-
`)+(" Using the regexp-to-ast library 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,U){return U()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
97
|
+
`)+(" Using the regexp-to-ast library version: "+Jh.VERSION+`
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function rS(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)rS(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":Yh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(AD);Te(s.value,function(p){if(typeof p=="number")Yh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Yh(m,t,n);else{for(var m=g.from;m<=g.to&&m<Gl;m++)Yh(m,t,n);if(g.to>=Gl)for(var v=g.from>=Gl?g.from:Gl,A=g.to,b=Ho(v),I=Ho(A),F=b;F<=I;F++)t[F]=F}}});break;case"Group":rS(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"&&oS(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Yh(e,t,n){var i=Ho(e);t[i]=i,n===!0&&$7(e,t)}function $7(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 ED(e,t){return Aa(e.value,function(n){if(typeof n=="number")return wt(t,n);var i=n;return Aa(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function oS(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?li(e.value)?fi(e.value,oS):oS(e.value):!1}function Zh(e,t){if(t instanceof RegExp){var n=Hl(t),i=new B7(e);return i.visit(n),i.found}else return Aa(t,function(r){return wt(e,r.charCodeAt(0))})!==void 0}var Jh,U7,AD,fp,B7,PD=Ye(()=>{Jh=ne(Qh());Tt();zh();aS();U7=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)}}(),AD="Complement Sets are not supported for first char optimization",fp=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(SD,"getOptimizedStartCodesIndices");o(rS,"firstCharOptimizedIndices");o(Yh,"addOptimizedIdxToResult");o($7,"handleIgnoreCase");o(ED,"findCode");o(oS,"isWholeOptional");B7=function(e){U7(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){wt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?ED(n,this.targetCharCodes)===void 0&&(this.found=!0):ED(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Jh.BaseRegExpVisitor);o(Zh,"canMatchCharCode")});function ID(e,t){t=sp(t,{useSticky:lS,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(K,U){return U()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){a9()});var i;n("Reject Lexer.NA",function(){i=Ea(e,function(K){return K[Go]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(K){var U=K[Go];if(mo(U)){var se=U.source;return se.length===1&&se!=="^"&&se!=="$"&&se!=="."&&!U.ignoreCase?se:se.length===2&&se[0]==="\\"&&!wt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],se[1])?se[1]:t.useSticky?CD(U):xD(U)}else{if(go(U))return r=!0,{exec:U};if(Oe(U,"exec"))return r=!0,U;if(typeof U=="string"){if(U.length===1)return U;var Z=U.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?CD(re):xD(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 U=K.GROUP;if(U!==ki.SKIPPED){if(Gr(U))return U;if(Ci(U))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(K){var U=K.LONGER_ALT;if(U){var se=dD(i,U);return se}}),p=pe(i,function(K){return K.PUSH_MODE}),g=pe(i,function(K){return Oe(K,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var K=wD(t.lineTerminatorCharacters);m=pe(i,function(U){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function(U){if(Oe(U,"LINE_BREAKS"))return U.LINE_BREAKS;if(VD(U,K)===!1)return Zh(K,U.PATTERN)}))});var v,A,b,I;n("Misc Mapping #2",function(){v=pe(i,DD),A=pe(a,r9),b=pn(i,function(K,U){var se=U.GROUP;return Gr(se)&&se!==ki.SKIPPED&&(K[se]=[]),K},{}),I=pe(a,function(K,U){return{pattern:a[U],longerAlt:u[U],canLineTerminator:m[U],isCustom:v[U],short:A[U],group:l[U],push:p[U],pop:g[U],tokenTypeIdx:s[U],tokenType:i[U]}})});var F=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=pn(i,function(K,U,se){if(typeof U.PATTERN=="string"){var Z=U.PATTERN.charCodeAt(0),re=Ho(Z);sS(K,re,I[se])}else if(li(U.START_CHARS_HINT)){var Pe;Te(U.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,Ue=Ho(yt);Pe!==Ue&&(Pe=Ue,sS(K,Ue,I[se]))})}else if(mo(U.PATTERN))if(U.PATTERN.unicode)F=!1,t.ensureOptimizations&&cp(""+fp+(" Unable to analyze < "+U.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=SD(U.PATTERN,t.ensureOptimizations);ot(D)&&(F=!1),Te(D,function(ut){sS(K,ut,I[se])})}else t.ensureOptimizations&&cp(""+fp+(" TokenType: <"+U.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(){j=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),F=!1;return K},[])}),n("ArrayPacking",function(){j=mD(j)}),{emptyGroups:b,patternIdxToConfig:I,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:F}}function ND(e,t){var n=[],i=G7(e);n=n.concat(i.errors);var r=W7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(H7(a)),n=n.concat(Z7(a)),n=n.concat(e9(a,t)),n=n.concat(t9(a)),n}function H7(e){var t=[],n=Wr(e,function(i){return mo(i[Go])});return t=t.concat(X7(n)),t=t.concat(z7(n)),t=t.concat(Y7(n)),t=t.concat(J7(n)),t=t.concat(Q7(n)),t}function G7(e){var t=Wr(e,function(r){return!Oe(r,Go)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:dn.MISSING_PATTERN,tokenTypes:[r]}}),i=Lc(e,t);return{errors:n,valid:i}}function W7(e){var t=Wr(e,function(r){var a=r[Go];return!mo(a)&&!go(a)&&!Oe(a,"exec")&&!Gr(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:dn.INVALID_PATTERN,tokenTypes:[r]}}),i=Lc(e,t);return{errors:n,valid:i}}function X7(e){var t=function(r){OD(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}(cS.BaseRegExpVisitor),n=Wr(e,function(r){var a=r[Go];try{var s=Hl(a),l=new t;return l.visit(s),l.found}catch{return K7.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:dn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:dn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function Q7(e){var t=Wr(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:dn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function z7(e){var t=function(r){OD(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}(cS.BaseRegExpVisitor),n=Wr(e,function(r){var a=r[Go];try{var s=Hl(a),l=new t;return l.visit(s),l.found}catch{return q7.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:dn.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:dn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function Y7(e){var t=Wr(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:dn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function J7(e){var t=[],n=pe(e,function(a){return pn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!wt(t,l)&&l.PATTERN!==ki.NA&&(t.push(l),s.push(l)),s},[])});n=Sa(n);var i=Wr(n,function(a){return a.length>1}),r=pe(i,function(a){var s=pe(a,function(u){return u.name}),l=xi(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:dn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function Z7(e){var t=Wr(e,function(i){if(!Oe(i,"GROUP"))return!1;var r=i.GROUP;return r!==ki.SKIPPED&&r!==ki.NA&&!Gr(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:dn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function e9(e,t){var n=Wr(e,function(r){return r.PUSH_MODE!==void 0&&!wt(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:dn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function t9(e){var t=[],n=pn(e,function(i,r,a){var s=r.PATTERN;return s===ki.NA||(Gr(s)?i.push({str:s,idx:a,tokenType:r}):mo(s)&&i9(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return Te(e,function(i,r){Te(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&n9(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:dn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function
|
|
112
|
-
`,type:dn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Oe(e,
|
|
113
|
-
`,type:dn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Oe(e,
|
|
114
|
-
`,type:dn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Oe(e,
|
|
115
|
-
`),type:dn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function
|
|
111
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:dn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function n9(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(Oe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function i9(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Aa(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function xD(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function CD(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function LD(e,t,n){var i=[];return Oe(e,vs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+vs+`> property in its definition
|
|
112
|
+
`,type:dn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Oe(e,ey)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+ey+`> property in its definition
|
|
113
|
+
`,type:dn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Oe(e,ey)&&Oe(e,vs)&&!Oe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+vs+": <"+e.defaultMode+`>which does not exist
|
|
114
|
+
`,type:dn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Oe(e,ey)&&Te(e.modes,function(r,a){Te(r,function(s,l){Ci(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
+
`),type:dn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function RD(e,t,n){var i=[],r=!1,a=Sa(Ln(uD(e.modes,function(u){return u}))),s=Ea(a,function(u){return u[Go]===ki.NA}),l=wD(n);return t&&Te(s,function(u){var p=VD(u,l);if(p!==!1){var g=o9(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Oe(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Zh(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:dn.NO_LINE_BREAKS_FLAGS}),i}function
|
|
119
|
+
for details.`,type:dn.NO_LINE_BREAKS_FLAGS}),i}function FD(e){var t={},n=Mi(e);return Te(n,function(i){var r=e[i];if(li(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(Oe(t,"exec"))return!0;if(Gr(t))return!1;throw Error("non exhaustive match")}function r9(e){return Gr(e)&&e.length===1?e.charCodeAt(0):!1}function VD(e,t){if(Oe(e,"LINE_BREAKS"))return!1;if(mo(e.PATTERN)){try{Zh(t,e.PATTERN)}catch(n){return{issue:dn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Gr(e.PATTERN))return!1;if(DD(e))return{issue:dn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function o9(e,t){if(t.issue===dn.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===dn.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
|
|
125
|
-
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:
|
|
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),li(t)?(a={modes:{}},a.modes[vs]=An(t),a[vs]=vs):(s=!1,a=ys(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function wD(e){var t=pe(e,function(n){return Gr(n)&&n.length>0?n.charCodeAt(0):n});return t}function sS(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Ho(e){return e<Gl?e:ty[e]}function a9(){if(ot(ty)){ty=new Array(65536);for(var e=0;e<65536;e++)ty[e]=e>255?255+~~(e/255):e}}var cS,OD,Go,vs,ey,lS,K7,q7,_D,Gl,ty,aS=Ye(()=>{cS=ne(Qh());up();Tt();PD();zh();OD=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",vs="defaultMode",ey="modes",lS=typeof new RegExp("(?:)").sticky=="boolean";o(ID,"analyzeTokenTypes");o(ND,"validatePatterns");o(H7,"validateRegExpPattern");o(G7,"findMissingPatterns");o(W7,"findInvalidPatterns");K7=/[^\\][\$]/;o(X7,"findEndOfInputAnchor");o(Q7,"findEmptyMatchRegExps");q7=/[^\\[][\^]|^\^/;o(z7,"findStartOfInputAnchor");o(Y7,"findUnsupportedFlags");o(J7,"findDuplicatePatterns");o(Z7,"findInvalidGroupType");o(e9,"findModesThatDoNotExist");o(t9,"findUnreachablePatterns");o(n9,"testTokenType");o(i9,"noMetaChar");o(xD,"addStartOfInput");o(CD,"addStickyFlag");o(LD,"performRuntimeChecks");o(RD,"performWarningRuntimeChecks");o(FD,"cloneEmptyGroups");o(DD,"isCustomPattern");o(r9,"isShortPattern");_D={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(VD,"checkLineBreaksIssues");o(o9,"buildLineBreakIssueMessage");o(wD,"getCharCodes");o(sS,"addToMapOfArrays");Gl=256;o(Ho,"charCodeToOptimizedIndex");ty=[];o(a9,"initCharCodeToOptimizedIndexMap")});function Rc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Wl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Pa(e){var t=s9(e);c9(t),f9(t),l9(t),Te(t,function(n){n.isParent=n.categoryMatches.length>0})}function s9(e){for(var t=An(e),n=e,i=!0;i;){n=Sa(Ln(pe(n,function(a){return a.CATEGORIES})));var r=Lc(n,t);t=t.concat(r),ot(r)?i=!1:n=r}return t}function c9(e){Te(e,function(t){fS(t)||(jD[MD]=t,t.tokenTypeIdx=MD++),kD(t)&&!li(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),kD(t)||(t.CATEGORIES=[]),u9(t)||(t.categoryMatches=[]),p9(t)||(t.categoryMatchesMap={})})}function l9(e){Te(e,function(t){t.categoryMatches=[],Te(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(jD[i].tokenTypeIdx)})})}function f9(e){Te(e,function(t){UD([],t)})}function UD(e,t){Te(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),Te(t.CATEGORIES,function(n){var i=e.concat(t);wt(i,n)||UD(i,n)})}function fS(e){return Oe(e,"tokenTypeIdx")}function kD(e){return Oe(e,"CATEGORIES")}function u9(e){return Oe(e,"categoryMatches")}function p9(e){return Oe(e,"categoryMatchesMap")}function $D(e){return Oe(e,"tokenTypeIdx")}var MD,jD,Kl=Ye(()=>{Tt();o(Rc,"tokenStructuredMatcher");o(Wl,"tokenStructuredMatcherNoCategories");MD=1,jD={};o(Pa,"augmentTokenTypes");o(s9,"expandCategories");o(c9,"assignTokenDefaultProps");o(l9,"assignCategoriesTokensProp");o(f9,"assignCategoriesMapProp");o(UD,"singleAssignCategoriesToksMap");o(fS,"hasShortKeyProperty");o(kD,"hasCategoriesProperty");o(u9,"hasExtendingTokensTypesProperty");o(p9,"hasExtendingTokensTypesMapProperty");o($D,"isTokenType")});var ny,uS=Ye(()=>{ny={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 dn,pp,ki,up=Ye(()=>{aS();Tt();Kl();uS();zh();(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"})(dn||(dn={}));pp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
|
+
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ny,traceInitPerf:!1,skipValidations:!1};Object.freeze(pp);ki=function(){function e(t,n){var i=this;if(n===void 0&&(n=pp),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=tS(pp,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===pp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=_D;else if(i.config.lineTerminatorCharacters===pp.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),li(t)?(a={modes:{}},a.modes[vs]=An(t),a[vs]=vs):(s=!1,a=ys(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(LD(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(RD(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},Te(a.modes,function(g,m){a.modes[m]=Ea(g,function(v){return Ci(v)})});var l=Mi(a.modes);if(Te(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(ND(g,l))}),ot(i.lexerDefinitionErrors)){Pa(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=ID(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=tS(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)}Te(i.lexerDefinitionWarning,function(g){
|
|
129
|
+
`+p)}Te(i.lexerDefinitionWarning,function(g){Gh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(lS?(i.chopInput=nS,i.match=i.matchWithTest):(i.updateLastIndex=Mn,i.match=i.matchWithExec),s&&(i.handleModes=Mn),i.trackStartLines===!1&&(i.computeNewColumn=nS),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=pn(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(){bD()}),i.TRACE_INIT("toFastProperties",function(){Wh(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,I,F,j,K,U=t,
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Oe(e,kD)&&(n.CATEGORIES=e[kD]),Pa([n]),Oe(e,jD)&&(n.LABEL=e[jD]),Oe(e,UD)&&(n.GROUP=e[UD]),Oe(e,BD)&&(n.POP_MODE=e[BD]),Oe(e,$D)&&(n.PUSH_MODE=e[$D]),Oe(e,HD)&&(n.LONGER_ALT=e[HD]),Oe(e,GD)&&(n.LINE_BREAKS=e[GD]),Oe(e,WD)&&(n.START_CHARS_HINT=e[WD]),n}function Ts(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 XD(e,t){return Rc(e,t)}var c9,kD,jD,UD,$D,BD,HD,GD,WD,Kr,bs=qe(()=>{Tt();up();Kl();o(Wo,"tokenLabel");o(KD,"tokenName");o(uS,"hasTokenLabel");c9="parent",kD="categories",jD="label",UD="group",$D="push_mode",BD="pop_mode",HD="longer_alt",GD="line_breaks",WD="start_chars_hint";o(dp,"createToken");o(l9,"createTokenInternal");Kr=dp({name:"EOF",pattern:ki.NA});Pa([Kr]);o(Ts,"createTokenInstance");o(XD,"tokenMatcher")});function ry(e){return pe(e,Xl)}function Xl(e){function t(r){return pe(r,Xl)}if(o(t,"convertDefinition"),e instanceof on)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof an)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:Xl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Xl(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 xa,ho,on,Er,Zt,an,Rn,Fn,Nt,Sn,Pn,ht,ji=qe(()=>{Tt();bs();xa=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),Te(this.definition,function(n){n.accept(t)})},e}(),on=function(e){xa(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){xa(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),Zt=function(e){xa(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),an=function(e){xa(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){xa(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){xa(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){xa(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){xa(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){xa(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(ry,"serializeGrammar");o(Xl,"serializeProduction")});function QD(e,t,n){var i=[new an({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Fc,oy=qe(()=>{Tt();ji();Fc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=wn(t.definition,a+1);if(r instanceof on)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Zt)i.walkFlat(r,s,n);else if(r instanceof an)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 an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=QD(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=QD(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new Zt({definition:[s]});r.walk(l,a)})},e}();o(QD,"restForRepetitionWithSeparator")});var Xr,Ql=qe(()=>{ji();Xr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case on:return this.visitNonTerminal(n);case Zt:return this.visitAlternative(n);case an: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 qD(e){return e instanceof Zt||e instanceof an||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof Er}function ql(e,t){t===void 0&&(t=[]);var n=e instanceof an||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?Gh(e.definition,function(i){return ql(i,t)}):e instanceof on&&wt(t,e)?!1:e instanceof ho?(e instanceof on&&t.push(e),fi(e.definition,function(i){return ql(i,t)})):!1}function zD(e){return e instanceof Pn}function Ar(e){if(e instanceof on)return"SUBRULE";if(e instanceof an)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 YD(e){ay.reset(),e.accept(ay);var t=ay.dslMethods;return ay.reset(),t}var f9,pS,ay,zl=qe(()=>{Tt();ji();Ql();f9=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(qD,"isSequenceProd");o(ql,"isOptionalProd");o(zD,"isBranchingProd");o(Ar,"getProductionDslName");pS=function(e){f9(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";Oe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Oe(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}(Xr),ay=new pS;o(YD,"collectMethods")});function Dc(e){if(e instanceof on)return Dc(e.referencedRule);if(e instanceof ht)return d9(e);if(qD(e))return u9(e);if(zD(e))return p9(e);throw Error("non exhaustive match")}function u9(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=ql(a),t=t.concat(Dc(a)),i=i+1,r=n.length>i;return ap(t)}function p9(e){var t=pe(e.definition,function(n){return Dc(n)});return ap(Ln(t))}function d9(e){return[e.terminalType]}var dS=qe(()=>{Tt();ji();zl();o(Dc,"first");o(u9,"firstForSequence");o(p9,"firstForBranching");o(d9,"firstForTerminal")});var sy,gS=qe(()=>{sy="_~IN~_"});function JD(e){var t={};return Te(e,function(n){var i=new m9(n).startWalking();br(t,i)}),t}function h9(e,t){return e.name+t+sy}var g9,m9,ZD=qe(()=>{oy();dS();Tt();gS();ji();g9=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)}}(),m9=function(e){g9(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=h9(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Zt({definition:s}),u=Dc(l);this.follows[a]=u},t}(Fc);o(JD,"computeAllProdsFollows");o(h9,"buildBetweenProdsFollowPrefix")});var gp,cy,Es,mp=qe(()=>{bs();Tt();Tt();ji();zl();gp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=uS(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=xi(n).image,u=`
|
|
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,I,F,j,K,U=t,se=U.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,Ue=this.trackStartLines?1:void 0,sn=FD(this.emptyGroups),Gn=this.trackStartLines,tn=this.config.lineTerminatorsPattern,Rt=0,Re=[],Ii=[],Ot=[],kt=[];Object.freeze(kt);var cn=void 0;function Hi(){return Re}o(Hi,"getPossiblePatternsSlow");function Fe(Wt){var zo=Ho(Wt),Gi=Ii[zo];return Gi===void 0?kt:Gi}o(Fe,"getPossiblePatternsOptimized");var Wn=o(function(Wt){if(Ot.length===1&&Wt.tokenType.PUSH_MODE===void 0){var zo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Wt);ut.push({offset:Wt.startOffset,line:Wt.startLine!==void 0?Wt.startLine:void 0,column:Wt.startColumn!==void 0?Wt.startColumn:void 0,length:Wt.image.length,message:zo})}else{Ot.pop();var Gi=$h(Ot);Re=i.patternIdxToConfig[Gi],Ii=i.charCodeToPatternIdxToConfig[Gi],Rt=Re.length;var _f=i.canModeBeOptimized[Gi]&&i.config.safeMode===!1;Ii&&_f?cn=Fe:cn=Hi}},"pop_mode");function Nr(Wt){Ot.push(Wt),Ii=this.charCodeToPatternIdxToConfig[Wt],Re=this.patternIdxToConfig[Wt],Rt=Re.length,Rt=Re.length;var zo=this.canModeBeOptimized[Wt]&&this.config.safeMode===!1;Ii&&zo?cn=Fe:cn=Hi}o(Nr,"push_mode"),Nr.call(this,n);for(var at;Z<se;){u=null;var O=U.charCodeAt(Z),S=cn(O),z=S.length;for(r=0;r<z;r++){at=S[r];var V=at.pattern;p=null;var _e=at.short;if(_e!==!1?O===_e&&(u=V):at.isCustom===!0?(K=V.exec(U,Z,D,sn),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 Ft=Re[l],ze=Ft.pattern;g=null,Ft.isCustom===!0?(K=ze.exec(U,Z,D,sn),K!==null?(s=K[0],K.payload!==void 0&&(g=K.payload)):s=null):(this.updateLastIndex(ze,Z),s=this.match(ze,t,Z)),s&&s.length>u.length&&(u=s,p=g,at=Ft)}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,Ue,m),this.handlePayload(b,p),v===!1?re=this.addToken(D,re,b):sn[v].push(b)),t=this.chopInput(t,m),Z=Z+m,Ue=this.computeNewColumn(Ue,m),Gn===!0&&at.canLineTerminator===!0){var jt=0,vn=void 0,ln=void 0;tn.lastIndex=0;do vn=tn.test(u),vn===!0&&(ln=tn.lastIndex-1,jt++);while(vn===!0);jt!==0&&(yt=yt+jt,Ue=m-ln,this.updateTokenEndLineColumnLocation(b,v,ln,jt,yt,Ue,m))}this.handleModes(at,Wn,Nr,b)}else{for(var Gt=Z,ti=yt,sr=Ue,gn=!1;!gn&&Z<se;)for(F=U.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Rt;a++){var hi=Re[a],V=hi.pattern,_e=hi.short;if(_e!==!1?U.charCodeAt(Z)===_e&&(gn=!0):hi.isCustom===!0?gn=V.exec(U,Z,D,sn)!==null:(this.updateLastIndex(V,Z),gn=V.exec(t)!==null),gn===!0)break}I=Z-Gt,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Gt,I,ti,sr),ut.push({offset:Gt,line:ti,column:sr,length:I,message:j})}}return this.hasCustom||(D.length=re),{tokens:D,groups:sn,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=Kh(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 pS(e)?e.LABEL:e.name}function zD(e){return e.name}function pS(e){return Gr(e.LABEL)&&e.LABEL!==""}function dp(e){return g9(e)}function g9(e){var t=e.pattern,n={};if(n.name=e.name,Ci(t)||(n.PATTERN=t),Oe(e,d9))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Oe(e,BD)&&(n.CATEGORIES=e[BD]),Pa([n]),Oe(e,HD)&&(n.LABEL=e[HD]),Oe(e,GD)&&(n.GROUP=e[GD]),Oe(e,KD)&&(n.POP_MODE=e[KD]),Oe(e,WD)&&(n.PUSH_MODE=e[WD]),Oe(e,XD)&&(n.LONGER_ALT=e[XD]),Oe(e,QD)&&(n.LINE_BREAKS=e[QD]),Oe(e,qD)&&(n.START_CHARS_HINT=e[qD]),n}function Ts(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 YD(e,t){return Rc(e,t)}var d9,BD,HD,GD,WD,KD,XD,QD,qD,Kr,bs=Ye(()=>{Tt();up();Kl();o(Wo,"tokenLabel");o(zD,"tokenName");o(pS,"hasTokenLabel");d9="parent",BD="categories",HD="label",GD="group",WD="push_mode",KD="pop_mode",XD="longer_alt",QD="line_breaks",qD="start_chars_hint";o(dp,"createToken");o(g9,"createTokenInternal");Kr=dp({name:"EOF",pattern:ki.NA});Pa([Kr]);o(Ts,"createTokenInstance");o(YD,"tokenMatcher")});function iy(e){return pe(e,Xl)}function Xl(e){function t(r){return pe(r,Xl)}if(o(t,"convertDefinition"),e instanceof on)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof an)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:Xl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Xl(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 Ar)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var xa,ho,on,Ar,Zt,an,Rn,Fn,Nt,Sn,Pn,ht,ji=Ye(()=>{Tt();bs();xa=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),Te(this.definition,function(n){n.accept(t)})},e}(),on=function(e){xa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Er(i,br(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),Ar=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(ho),Zt=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(ho),an=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(ho),Rn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(ho),Fn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(ho),Nt=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(ho),Sn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Er(i,br(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(ho),Pn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Er(i,br(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,Er(this,br(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(iy,"serializeGrammar");o(Xl,"serializeProduction")});function JD(e,t,n){var i=[new an({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Fc,ry=Ye(()=>{Tt();ji();Fc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=wn(t.definition,a+1);if(r instanceof on)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Zt)i.walkFlat(r,s,n);else if(r instanceof an)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 an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=JD(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=JD(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new Zt({definition:[s]});r.walk(l,a)})},e}();o(JD,"restForRepetitionWithSeparator")});var Xr,Ql=Ye(()=>{ji();Xr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case on:return this.visitNonTerminal(n);case Zt:return this.visitAlternative(n);case an: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 Ar: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 ZD(e){return e instanceof Zt||e instanceof an||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof Ar}function ql(e,t){t===void 0&&(t=[]);var n=e instanceof an||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?Hh(e.definition,function(i){return ql(i,t)}):e instanceof on&&wt(t,e)?!1:e instanceof ho?(e instanceof on&&t.push(e),fi(e.definition,function(i){return ql(i,t)})):!1}function e_(e){return e instanceof Pn}function Sr(e){if(e instanceof on)return"SUBRULE";if(e instanceof an)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 t_(e){oy.reset(),e.accept(oy);var t=oy.dslMethods;return oy.reset(),t}var m9,dS,oy,zl=Ye(()=>{Tt();ji();Ql();m9=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,"isSequenceProd");o(ql,"isOptionalProd");o(e_,"isBranchingProd");o(Sr,"getProductionDslName");dS=function(e){m9(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";Oe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Oe(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}(Xr),oy=new dS;o(t_,"collectMethods")});function Dc(e){if(e instanceof on)return Dc(e.referencedRule);if(e instanceof ht)return v9(e);if(ZD(e))return h9(e);if(e_(e))return y9(e);throw Error("non exhaustive match")}function h9(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=ql(a),t=t.concat(Dc(a)),i=i+1,r=n.length>i;return ap(t)}function y9(e){var t=pe(e.definition,function(n){return Dc(n)});return ap(Ln(t))}function v9(e){return[e.terminalType]}var gS=Ye(()=>{Tt();ji();zl();o(Dc,"first");o(h9,"firstForSequence");o(y9,"firstForBranching");o(v9,"firstForTerminal")});var ay,mS=Ye(()=>{ay="_~IN~_"});function n_(e){var t={};return Te(e,function(n){var i=new b9(n).startWalking();Er(t,i)}),t}function E9(e,t){return e.name+t+ay}var T9,b9,i_=Ye(()=>{ry();gS();Tt();mS();ji();T9=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)}}(),b9=function(e){T9(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=E9(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Zt({definition:s}),u=Dc(l);this.follows[a]=u},t}(Fc);o(n_,"computeAllProdsFollows");o(E9,"buildBetweenProdsFollowPrefix")});var gp,sy,Es,mp=Ye(()=>{bs();Tt();Tt();ji();zl();gp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=pS(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=xi(n).image,u=`
|
|
135
135
|
but found: '`+l+"'";if(r)return s+r+u;var p=pn(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=xi(n).image,l=`
|
|
138
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
|
-
`+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(gp);
|
|
140
|
-
inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},Es={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof on?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=xi(t),a=r.idx,s=
|
|
139
|
+
`+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(gp);sy={buildRuleNotFoundError:o(function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
|
140
|
+
inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},Es={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof on?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=xi(t),a=r.idx,s=Sr(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+`<-.
|
|
142
142
|
For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
143
143
|
`;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,`
|
|
@@ -152,7 +152,7 @@ and Non-Terminal names start with a lower case letter.`;return t},"buildNamespac
|
|
|
152
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
|
-
For Further details.`,i},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=
|
|
155
|
+
For Further details.`,i},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=Sr(e.repetition);e.repetition.idx!==0&&(t+=e.repetition.idx);var n="The repetition <"+t+"> within Rule <"+e.topLevelRule.name+`> can never consume any tokens.
|
|
156
156
|
This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),buildTokenNameError:o(function(e){return"deprecated"},"buildTokenNameError"),buildEmptyAlternationError:o(function(e){var t="Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+">"+(" in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
|
|
157
157
|
`)+"Only the last alternative may be an empty alternative.";return t},"buildEmptyAlternationError"),buildTooManyAlternativesError:o(function(e){var t=`An Alternation cannot have more than 256 alternatives:
|
|
158
158
|
`+("<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
|
|
@@ -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 e_(e,t){var n=new v9(e,t);return n.resolveRefs(),n.errors}var y9,v9,t_=qe(()=>{Sr();Tt();Ql();y9=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_,"resolveGrammar");v9=function(e){y9(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;Te(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:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Xr)});function fy(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=fy(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 Zt)return s(l.definition);if(l instanceof on)return s(l.definition);if(l instanceof an)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 Zt({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 Te(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 uy(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&&Bh(m).idx<=p&&m.pop();continue}var A=v.def,b=v.idx,I=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var K={idx:b,def:wn(A),ruleStack:hs(I),occurrenceStack:hs(F)};m.push(K)}else if(j instanceof ht)if(b<u-1){var U=b+1,ae=t[U];if(n(ae,j.terminalType)){var K={idx:U,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(K)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof on){var Z=An(I);Z.push(j.nonTerminalName);var re=An(F);re.push(j.idx);var K={idx:b,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(j instanceof an){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var D={idx:b,def:j.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Rn){var ut=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(K)}else if(j instanceof Fn){var Ue=new ht({terminalType:j.separator}),ut=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(K)}else if(j instanceof Sn){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var Ue=new ht({terminalType:j.separator}),sn=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([sn],wn(A)),D={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Nt){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var sn=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([sn],wn(A)),D={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Pn)for(var Gn=j.definition.length-1;Gn>=0;Gn--){var tn=j.definition[Gn],Rt={idx:b,def:tn.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F};m.push(Rt),m.push(s)}else if(j instanceof Zt)m.push({idx:b,def:j.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F});else if(j instanceof Er)m.push(b9(j,b,I,F));else throw Error("non exhaustive match")}}return g}function b9(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 _c,T9,n_,ly,i_,mS,r_,hS,hp=qe(()=>{oy();Tt();dS();ji();_c=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)}}(),T9=function(e){_c(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}(Fc),n_=function(e){_c(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 Zt({definition:a});this.possibleTokTypes=Dc(s),this.found=!0}},t}(T9),ly=function(e){_c(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}(Fc),i_=function(e){_c(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=xi(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}(ly),mS=function(e){_c(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=xi(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}(ly),r_=function(e){_c(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=xi(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}(ly),hS=function(e){_c(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=xi(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}(ly);o(fy,"possiblePathsFrom");o(uy,"nextPossibleTokensAfter");o(b9,"expandTopLevelRule")});function s_(e){if(e instanceof an)return Mt.OPTION;if(e instanceof Nt)return Mt.REPETITION;if(e instanceof Rn)return Mt.REPETITION_MANDATORY;if(e instanceof Fn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return Mt.ALTERNATION;throw Error("non exhaustive match")}function c_(e,t,n,i,r,a){var s=yp(e,t,n),l=m_(s)?Wl:Rc;return a(s,i,l,r)}function l_(e,t,n,i,r,a){var s=vp(e,t,r,n),l=m_(s)?Wl:Rc;return a(s[0],l,i)}function f_(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(U){return U.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 I=m[b],F=I.length,j=0;j<F;j++){var K=this.LA(j+1);if(n(K,I[j])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Ln(u)}),l=pn(s,function(u,p,g){return Te(p,function(m){Oe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),Te(m.categoryMatches,function(v){Oe(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 I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return u}}}}function u_(e,t,n){var i=fi(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=pn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,Te(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 o_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function yS(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 A9(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 d_(e,t){for(var n=pe(e,function(g){return fy([g],1)}),i=o_(n.length),r=pe(n,function(g){var m={};return Te(g,function(v){var A=yS(v.partialPath);Te(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=o_(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,I=yS(A),F=A9(r,I,g);if(F||ot(b)||A.length===t){var j=i[g];if(py(j,A)===!1){j.push(A);for(var K=0;K<I.length;K++){var U=I[K];r[g][U]=!0}}}else{var ae=fy(b,s+1,A);a[g]=a[g].concat(ae),Te(ae,function(Z){var re=yS(Z.partialPath);Te(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function yp(e,t,n,i){var r=new p_(e,Mt.ALTERNATION,i);return t.accept(r),d_(r.result,n)}function vp(e,t,n,i){var r=new p_(e,n);t.accept(r);var a=r.result,s=new E9(t,e,n),l=s.startWalking(),u=new Zt({definition:a}),p=new Zt({definition:l});return d_([u,p],i)}function py(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 g_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function m_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return ot(i.categoryMatches)})})})}var a_,Mt,E9,p_,Tp=qe(()=>{Tt();hp();oy();Kl();ji();Ql();a_=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"})(Mt||(Mt={}));o(s_,"getProdType");o(c_,"buildLookaheadFuncForOr");o(l_,"buildLookaheadFuncForOptionalProd");o(f_,"buildAlternativesLookAheadFunc");o(u_,"buildSingleAlternativeLookaheadFunction");E9=function(e){a_(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,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Fc),p_=function(e){a_(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,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t}(Xr);o(o_,"initializeArrayOfArrays");o(yS,"pathToHashKeys");o(A9,"isUniquePrefixHash");o(d_,"lookAheadSequenceFromAlternatives");o(yp,"getLookaheadPathsForOr");o(vp,"getLookaheadPathsForOptionalProd");o(py,"containsPath");o(g_,"isStrictPrefixOfPath");o(m_,"areTokenCategoriesNotUsed")});function h_(e,t,n,i,r){var a=pe(e,function(A){return S9(A,i)}),s=pe(e,function(A){return T_(A,A,i)}),l=[],u=[],p=[];fi(s,ot)&&(l=pe(e,function(A){return O9(A,i)}),u=pe(e,function(A){return I9(A,t,i)}),p=R9(e,t,i));var g=_9(e,n,i),m=pe(e,function(A){return L9(A,i)}),v=pe(e,function(A){return C9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,v))}function S9(e,t){var n=new x9;e.accept(n);var i=n.allProductions,r=fD(i,P9),a=Tr(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=xi(l),p=t.buildDuplicateFoundError(e,l),g=Ar(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=y_(u);return v&&(m.parameter=v),m});return s}function P9(e){return Ar(e)+"_#_"+e.idx+"_#_"+y_(e)}function y_(e){return e instanceof ht?e.terminalType.name:e instanceof on?e.nonTerminalName:""}function C9(e,t,n,i){var r=[],a=pn(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:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function v_(e,t,n){var i=[],r;return wt(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:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function T_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=dy(t.definition);if(ot(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Lc(a,i.concat([e])),p=pe(u,function(g){var m=An(i);return m.push(g),T_(e,g,n,m)});return r.concat(Ln(p))}function dy(e){var t=[];if(ot(e))return t;var n=xi(e);if(n instanceof on)t.push(n.referencedRule);else if(n instanceof Zt||n instanceof an||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(dy(n.definition));else if(n instanceof Pn)t=Ln(pe(n.definition,function(s){return dy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=ql(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(dy(a))}else return t}function O9(e,t){var n=new TS;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){var l=hs(s.definition),u=pe(l,function(p,g){var m=uy([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Sa(u))},[]);return r}function I9(e,t,n){var i=new TS;e.accept(i);var r=i.alternations;r=Ea(r,function(s){return s.ignoreAmbiguities===!0});var a=pn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=yp(u,e,p,l),m=F9(g,l,e,n),v=D9(g,l,e,n);return s.concat(m,v)},[]);return a}function L9(e,t){var n=new TS;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function R9(e,t,n){var i=[];return Te(e,function(r){var a=new N9;r.accept(a);var s=a.allProductions;Te(s,function(l){var u=s_(l),p=l.maxLookahead||t,g=l.idx,m=vp(g,r,u,p),v=m[0];if(ot(Ln(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function F9(e,t,n,i){var r=[],a=pn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||Te(u,function(g){var m=[p];Te(e,function(v,A){p!==A&&py(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!py(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:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function D9(e,t,n,i){var r=[],a=pn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=cD(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&g_(v.path,p)}),m=pe(g,function(v){var A=[v.idx+1,u+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:I,type:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function _9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var vS,x9,TS,N9,bS=qe(()=>{Tt();Tt();Sr();zl();Tp();hp();ji();Ql();vS=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(h_,"validateGrammar");o(S9,"validateDuplicateProductions");o(P9,"identifyProductionForDuplicates");o(y_,"getExtraProductionArgument");x9=function(e){vS(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}(Xr);o(C9,"validateRuleDoesNotAlreadyExist");o(v_,"validateRuleIsOverridden");o(T_,"validateNoLeftRecursion");o(dy,"getFirstNoneTerminal");TS=function(e){vS(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}(Xr);o(O9,"validateEmptyOrAlternative");o(I9,"validateAmbiguousAlternationAlternatives");N9=function(e){vS(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}(Xr);o(L9,"validateTooManyAlts");o(R9,"validateSomeNonEmptyLookaheadPath");o(F9,"checkAlternativesAmbiguities");o(D9,"checkPrefixAlternativesAmbiguities");o(_9,"checkTerminalAndNoneTerminalsNameSpace")});function gy(e){e=sp(e,{errMsgProvider:cy});var t={};return Te(e.rules,function(n){t[n.name]=n}),e_(t,e.errMsgProvider)}function my(e){return e=sp(e,{errMsgProvider:Es}),h_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function b_(e){Te(e.rules,function(t){var n=new pS;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var ES=qe(()=>{Tt();t_();bS();mp();zl();o(gy,"resolveGrammar");o(my,"validateGrammar");o(b_,"assignOccurrenceIndices")});function Ca(e){return wt(x_,e.name)}var bp,E_,A_,S_,P_,x_,hy,Yl,yy,vy,Ty,Jl=qe(()=>{Tt();bp=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)}}(),E_="MismatchedTokenException",A_="NoViableAltException",S_="EarlyExitException",P_="NotAllInputParsedException",x_=[E_,A_,S_,P_];Object.freeze(x_);o(Ca,"isRecognitionException");hy=function(e){bp(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),Yl=function(e){bp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=E_,a}return o(t,"MismatchedTokenException"),t}(hy),yy=function(e){bp(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}(hy),vy=function(e){bp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=P_,r}return o(t,"NotAllInputParsedException"),t}(hy),Ty=function(e){bp(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}(hy)});function C_(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=Kr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var AS,SS,O_,PS=qe(()=>{bs();Tt();Jl();gS();Sr();AS={},SS="InRuleRecoveryException";o(C_,"InRuleRecoveryException");C_.prototype=Error.prototype;O_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Oe(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=V9)},e.prototype.getTokenToInsert=function(t){var n=Ts(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()}),I=new Yl(b,g,a.LA(0));I.resyncedTokens=hs(u),a.SAVE_ERROR(I)},"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 C_("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=Aa(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 wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(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[Kr];var n=t.ruleName+t.idxInCallingRule+sy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Kr)||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 hs(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 Ay(e,t,n){return n|t|e}var I_,Ko,w9,by,Ey,Ep,Ap,Sp,Zl,Yae,Sy=qe(()=>{I_=4,Ko=8,w9=8,by=1<<Ko,Ey=2<<Ko,Ep=3<<Ko,Ap=4<<Ko,Sp=5<<Ko,Zl=6<<Ko;o(Ay,"getKeyForAutomaticLookahead");Yae=32-w9});var N_,L_=qe(()=>{Tp();Tt();Sr();Sy();zl();N_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Oe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Oe(t,"maxLookahead")?t.maxLookahead:tr.maxLookahead,this.lookAheadFuncsCache=nS()?new Map:[],nS()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=YD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;Te(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Ar(m)+v,function(){var A=c_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Ay(n.fullRuleNameToShort[i.name],by,m.idx);n.setLaFuncCache(b,A)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,Ep,Mt.REPETITION,m.maxLookahead,Ar(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,Ey,Mt.OPTION,m.maxLookahead,Ar(m))}),Te(u,function(m){n.computeLookaheadFunc(i,m.idx,Ap,Mt.REPETITION_MANDATORY,m.maxLookahead,Ar(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,Zl,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Ar(m))}),Te(g,function(m){n.computeLookaheadFunc(i,m.idx,Sp,Mt.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=l_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Ay(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return u_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return f_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Ay(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function xS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function CS(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 R_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function F_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var D_=qe(()=>{o(xS,"setNodeLocationOnlyOffset");o(CS,"setNodeLocationFull");o(R_,"addTerminalToCst");o(F_,"addNoneTerminalToCst")});function V_(e){return Pp(e.constructor)}function Pp(e){var t=e.name;return t||"anonymous"}function OS(e,t){var n=Object.getOwnPropertyDescriptor(e,__);return Ci(n)||n.configurable?(Object.defineProperty(e,__,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var __,IS=qe(()=>{Tt();o(V_,"classNameFromInstance");__="name";o(Pp,"functionName");o(OS,"defineNameProp")});function M9(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 w_(e,t){var n=o(function(){},"derivedConstructor");OS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=k9(this,t);if(!ot(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Pp(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 Ar?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 r_(e,t){var n=new S9(e,t);return n.resolveRefs(),n.errors}var A9,S9,o_=Ye(()=>{Pr();Tt();Ql();A9=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(r_,"resolveGrammar");S9=function(e){A9(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;Te(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:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Xr)});function ly(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=ly(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 Zt)return s(l.definition);if(l instanceof on)return s(l.definition);if(l instanceof an)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 Zt({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 Te(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 fy(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,I=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var K={idx:b,def:wn(A),ruleStack:hs(I),occurrenceStack:hs(F)};m.push(K)}else if(j instanceof ht)if(b<u-1){var U=b+1,se=t[U];if(n(se,j.terminalType)){var K={idx:U,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(K)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof on){var Z=An(I);Z.push(j.nonTerminalName);var re=An(F);re.push(j.idx);var K={idx:b,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(j instanceof an){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var D={idx:b,def:j.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Rn){var ut=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(K)}else if(j instanceof Fn){var Ue=new ht({terminalType:j.separator}),ut=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(K)}else if(j instanceof Sn){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var Ue=new ht({terminalType:j.separator}),sn=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([sn],wn(A)),D={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Nt){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var sn=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([sn],wn(A)),D={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Pn)for(var Gn=j.definition.length-1;Gn>=0;Gn--){var tn=j.definition[Gn],Rt={idx:b,def:tn.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F};m.push(Rt),m.push(s)}else if(j instanceof Zt)m.push({idx:b,def:j.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F});else if(j instanceof Ar)m.push(x9(j,b,I,F));else throw Error("non exhaustive match")}}return g}function x9(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 _c,P9,a_,cy,s_,hS,c_,yS,hp=Ye(()=>{ry();Tt();gS();ji();_c=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)}}(),P9=function(e){_c(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}(Fc),a_=function(e){_c(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 Zt({definition:a});this.possibleTokTypes=Dc(s),this.found=!0}},t}(P9),cy=function(e){_c(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}(Fc),s_=function(e){_c(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=xi(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}(cy),hS=function(e){_c(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=xi(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}(cy),c_=function(e){_c(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=xi(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}(cy),yS=function(e){_c(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=xi(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}(cy);o(ly,"possiblePathsFrom");o(fy,"nextPossibleTokensAfter");o(x9,"expandTopLevelRule")});function u_(e){if(e instanceof an)return Mt.OPTION;if(e instanceof Nt)return Mt.REPETITION;if(e instanceof Rn)return Mt.REPETITION_MANDATORY;if(e instanceof Fn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return Mt.ALTERNATION;throw Error("non exhaustive match")}function p_(e,t,n,i,r,a){var s=yp(e,t,n),l=T_(s)?Wl:Rc;return a(s,i,l,r)}function d_(e,t,n,i,r,a){var s=vp(e,t,r,n),l=T_(s)?Wl:Rc;return a(s[0],l,i)}function g_(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(U){return U.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 I=m[b],F=I.length,j=0;j<F;j++){var K=this.LA(j+1);if(n(K,I[j])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Ln(u)}),l=pn(s,function(u,p,g){return Te(p,function(m){Oe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),Te(m.categoryMatches,function(v){Oe(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 I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return u}}}}function m_(e,t,n){var i=fi(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=pn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,Te(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 l_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function vS(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 y_(e,t){for(var n=pe(e,function(g){return ly([g],1)}),i=l_(n.length),r=pe(n,function(g){var m={};return Te(g,function(v){var A=vS(v.partialPath);Te(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=l_(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,I=vS(A),F=O9(r,I,g);if(F||ot(b)||A.length===t){var j=i[g];if(uy(j,A)===!1){j.push(A);for(var K=0;K<I.length;K++){var U=I[K];r[g][U]=!0}}}else{var se=ly(b,s+1,A);a[g]=a[g].concat(se),Te(se,function(Z){var re=vS(Z.partialPath);Te(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function yp(e,t,n,i){var r=new h_(e,Mt.ALTERNATION,i);return t.accept(r),y_(r.result,n)}function vp(e,t,n,i){var r=new h_(e,n);t.accept(r);var a=r.result,s=new C9(t,e,n),l=s.startWalking(),u=new Zt({definition:a}),p=new Zt({definition:l});return y_([u,p],i)}function uy(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 v_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function T_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return ot(i.categoryMatches)})})})}var f_,Mt,C9,h_,Tp=Ye(()=>{Tt();hp();ry();Kl();ji();Ql();f_=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"})(Mt||(Mt={}));o(u_,"getProdType");o(p_,"buildLookaheadFuncForOr");o(d_,"buildLookaheadFuncForOptionalProd");o(g_,"buildAlternativesLookAheadFunc");o(m_,"buildSingleAlternativeLookaheadFunction");C9=function(e){f_(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,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Fc),h_=function(e){f_(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,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t}(Xr);o(l_,"initializeArrayOfArrays");o(vS,"pathToHashKeys");o(O9,"isUniquePrefixHash");o(y_,"lookAheadSequenceFromAlternatives");o(yp,"getLookaheadPathsForOr");o(vp,"getLookaheadPathsForOptionalProd");o(uy,"containsPath");o(v_,"isStrictPrefixOfPath");o(T_,"areTokenCategoriesNotUsed")});function b_(e,t,n,i,r){var a=pe(e,function(A){return I9(A,i)}),s=pe(e,function(A){return S_(A,A,i)}),l=[],u=[],p=[];fi(s,ot)&&(l=pe(e,function(A){return F9(A,i)}),u=pe(e,function(A){return D9(A,t,i)}),p=w9(e,t,i));var g=j9(e,n,i),m=pe(e,function(A){return V9(A,i)}),v=pe(e,function(A){return R9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,v))}function I9(e,t){var n=new L9;e.accept(n);var i=n.allProductions,r=gD(i,N9),a=br(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=xi(l),p=t.buildDuplicateFoundError(e,l),g=Sr(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=E_(u);return v&&(m.parameter=v),m});return s}function N9(e){return Sr(e)+"_#_"+e.idx+"_#_"+E_(e)}function E_(e){return e instanceof ht?e.terminalType.name:e instanceof on?e.nonTerminalName:""}function R9(e,t,n,i){var r=[],a=pn(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:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function A_(e,t,n){var i=[],r;return wt(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:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function S_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=py(t.definition);if(ot(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Lc(a,i.concat([e])),p=pe(u,function(g){var m=An(i);return m.push(g),S_(e,g,n,m)});return r.concat(Ln(p))}function py(e){var t=[];if(ot(e))return t;var n=xi(e);if(n instanceof on)t.push(n.referencedRule);else if(n instanceof Zt||n instanceof an||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(py(n.definition));else if(n instanceof Pn)t=Ln(pe(n.definition,function(s){return py(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=ql(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(py(a))}else return t}function F9(e,t){var n=new bS;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){var l=hs(s.definition),u=pe(l,function(p,g){var m=fy([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Sa(u))},[]);return r}function D9(e,t,n){var i=new bS;e.accept(i);var r=i.alternations;r=Ea(r,function(s){return s.ignoreAmbiguities===!0});var a=pn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=yp(u,e,p,l),m=M9(g,l,e,n),v=k9(g,l,e,n);return s.concat(m,v)},[]);return a}function V9(e,t){var n=new bS;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function w9(e,t,n){var i=[];return Te(e,function(r){var a=new _9;r.accept(a);var s=a.allProductions;Te(s,function(l){var u=u_(l),p=l.maxLookahead||t,g=l.idx,m=vp(g,r,u,p),v=m[0];if(ot(Ln(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function M9(e,t,n,i){var r=[],a=pn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||Te(u,function(g){var m=[p];Te(e,function(v,A){p!==A&&uy(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!uy(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:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function k9(e,t,n,i){var r=[],a=pn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=pD(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&v_(v.path,p)}),m=pe(g,function(v){var A=[v.idx+1,u+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:I,type:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function j9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var TS,L9,bS,_9,ES=Ye(()=>{Tt();Tt();Pr();zl();Tp();hp();ji();Ql();TS=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(b_,"validateGrammar");o(I9,"validateDuplicateProductions");o(N9,"identifyProductionForDuplicates");o(E_,"getExtraProductionArgument");L9=function(e){TS(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}(Xr);o(R9,"validateRuleDoesNotAlreadyExist");o(A_,"validateRuleIsOverridden");o(S_,"validateNoLeftRecursion");o(py,"getFirstNoneTerminal");bS=function(e){TS(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}(Xr);o(F9,"validateEmptyOrAlternative");o(D9,"validateAmbiguousAlternationAlternatives");_9=function(e){TS(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}(Xr);o(V9,"validateTooManyAlts");o(w9,"validateSomeNonEmptyLookaheadPath");o(M9,"checkAlternativesAmbiguities");o(k9,"checkPrefixAlternativesAmbiguities");o(j9,"checkTerminalAndNoneTerminalsNameSpace")});function dy(e){e=sp(e,{errMsgProvider:sy});var t={};return Te(e.rules,function(n){t[n.name]=n}),r_(t,e.errMsgProvider)}function gy(e){return e=sp(e,{errMsgProvider:Es}),b_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function P_(e){Te(e.rules,function(t){var n=new dS;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var AS=Ye(()=>{Tt();o_();ES();mp();zl();o(dy,"resolveGrammar");o(gy,"validateGrammar");o(P_,"assignOccurrenceIndices")});function Ca(e){return wt(N_,e.name)}var bp,x_,C_,O_,I_,N_,my,Yl,hy,yy,vy,Jl=Ye(()=>{Tt();bp=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)}}(),x_="MismatchedTokenException",C_="NoViableAltException",O_="EarlyExitException",I_="NotAllInputParsedException",N_=[x_,C_,O_,I_];Object.freeze(N_);o(Ca,"isRecognitionException");my=function(e){bp(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),Yl=function(e){bp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=x_,a}return o(t,"MismatchedTokenException"),t}(my),hy=function(e){bp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=C_,a}return o(t,"NoViableAltException"),t}(my),yy=function(e){bp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=I_,r}return o(t,"NotAllInputParsedException"),t}(my),vy=function(e){bp(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,"EarlyExitException"),t}(my)});function L_(e){this.name=PS,this.message=e}function U9(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=Kr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var SS,PS,R_,xS=Ye(()=>{bs();Tt();Jl();mS();Pr();SS={},PS="InRuleRecoveryException";o(L_,"InRuleRecoveryException");L_.prototype=Error.prototype;R_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Oe(t,"recoveryEnabled")?t.recoveryEnabled:nr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=U9)},e.prototype.getTokenToInsert=function(t){var n=Ts(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()}),I=new Yl(b,g,a.LA(0));I.resyncedTokens=hs(u),a.SAVE_ERROR(I)},"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=Aa(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 wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return SS;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?SS:{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===SS)return[Kr];var n=t.ruleName+t.idxInCallingRule+ay+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Kr)||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 hs(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(U9,"attemptInRepetitionRecovery")});function Ey(e,t,n){return n|t|e}var F_,Ko,$9,Ty,by,Ep,Ap,Sp,Zl,ise,Ay=Ye(()=>{F_=4,Ko=8,$9=8,Ty=1<<Ko,by=2<<Ko,Ep=3<<Ko,Ap=4<<Ko,Sp=5<<Ko,Zl=6<<Ko;o(Ey,"getKeyForAutomaticLookahead");ise=32-$9});var D_,__=Ye(()=>{Tp();Tt();Pr();Ay();zl();D_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Oe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:nr.dynamicTokensEnabled,this.maxLookahead=Oe(t,"maxLookahead")?t.maxLookahead:nr.maxLookahead,this.lookAheadFuncsCache=iS()?new Map:[],iS()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=t_(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;Te(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Sr(m)+v,function(){var A=p_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Ey(n.fullRuleNameToShort[i.name],Ty,m.idx);n.setLaFuncCache(b,A)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,Ep,Mt.REPETITION,m.maxLookahead,Sr(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,by,Mt.OPTION,m.maxLookahead,Sr(m))}),Te(u,function(m){n.computeLookaheadFunc(i,m.idx,Ap,Mt.REPETITION_MANDATORY,m.maxLookahead,Sr(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,Zl,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Sr(m))}),Te(g,function(m){n.computeLookaheadFunc(i,m.idx,Sp,Mt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Sr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=d_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Ey(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return m_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return g_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Ey(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 CS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function OS(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 V_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function w_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var M_=Ye(()=>{o(CS,"setNodeLocationOnlyOffset");o(OS,"setNodeLocationFull");o(V_,"addTerminalToCst");o(w_,"addNoneTerminalToCst")});function j_(e){return Pp(e.constructor)}function Pp(e){var t=e.name;return t||"anonymous"}function IS(e,t){var n=Object.getOwnPropertyDescriptor(e,k_);return Ci(n)||n.configurable?(Object.defineProperty(e,k_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var k_,NS=Ye(()=>{Tt();o(j_,"classNameFromInstance");k_="name";o(Pp,"functionName");o(IS,"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 U_(e,t){var n=o(function(){},"derivedConstructor");IS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=H9(this,t);if(!ot(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Pp(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,t,n){var i=o(function(){},"derivedConstructor");IS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return Te(t,function(a){r[a]=B9}),i.prototype=r,i.prototype.constructor=i,i}function H9(e,t){var n=G9(e,t),i=K9(e,t);return n.concat(i)}function G9(e,t){var n=pe(t,function(i){if(!go(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Pp(e.constructor)+" CST Visitor.",type:Sy.MISSING_METHOD,methodName:i}});return Sa(n)}function K9(e,t){var n=[];for(var i in e)go(e[i])&&!wt(W9,i)&&!wt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Pp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:Py.REDUNDANT_METHOD,methodName:i});return n}var Py,U9,k_=qe(()=>{Tt();IS();o(M9,"defaultVisit");o(w_,"createBaseSemanticVisitorConstructor");o(M_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Py||(Py={}));o(k9,"validateVisitor");o(j9,"validateMissingCstMethods");U9=["constructor","visit","validateVisitor"];o($9,"validateRedundantMethods")});var j_,U_=qe(()=>{D_();Tt();k_();Sr();j_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Oe(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=CS,this.setNodeLocationFromNode=CS,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=xS,this.setNodeLocationFromNode=xS,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];R_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];F_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ci(this.baseCstVisitorConstructor)){var t=w_(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ci(this.baseCstVisitorWithDefaultsConstructor)){var t=M_(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 $_,B_=qe(()=>{Sr();$_=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)):ef},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?ef: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 H_,G_=qe(()=>{Tt();Jl();Sr();mp();bS();ji();H_=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=tf),wt(this.definedRulesNames,t)){var r=Es.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.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=tf);var r=[];r=r.concat(v_(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 ry(Vn(this.gastProductionsCache))},e}()});var W_,K_=qe(()=>{Tt();Sy();Jl();Tp();hp();Sr();PS();bs();Kl();IS();W_=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=Wl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Oe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:Sy.REDUNDANT_METHOD,methodName:i});return n}var Sy,W9,B_=Ye(()=>{Tt();NS();o(B9,"defaultVisit");o(U_,"createBaseSemanticVisitorConstructor");o($_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Sy||(Sy={}));o(H9,"validateVisitor");o(G9,"validateMissingCstMethods");W9=["constructor","visit","validateVisitor"];o(K9,"validateRedundantMethods")});var H_,G_=Ye(()=>{M_();Tt();B_();Pr();H_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Oe(t,"nodeLocationTracking")?t.nodeLocationTracking:nr.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=OS,this.setNodeLocationFromNode=OS,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=CS,this.setNodeLocationFromNode=CS,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];V_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];w_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ci(this.baseCstVisitorConstructor)){var t=U_(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ci(this.baseCstVisitorWithDefaultsConstructor)){var t=$_(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 W_,K_=Ye(()=>{Pr();W_=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)):ef},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?ef: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_,Q_=Ye(()=>{Tt();Jl();Pr();mp();ES();ji();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=tf),wt(this.definedRulesNames,t)){var r=Es.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.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=tf);var r=[];r=r.concat(A_(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 iy(Vn(this.gastProductionsCache))},e}()});var q_,z_=Ye(()=>{Tt();Ay();Jl();Tp();hp();Pr();xS();bs();Kl();NS();q_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=j_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Wl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Oe(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(li(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(li(t))this.tokensMap=pn(t,function(s,l){return s[l.name]=l,s},{});else if(Oe(t,"modes")&&fi(Ln(Vn(t.modes))
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Oe(i,"resyncEnabled")?i.resyncEnabled:tf.resyncEnabled,a=Oe(i,"recoveryValueFunc")?i.recoveryValueFunc:tf.recoveryValueFunc,s=this.ruleShortNameIdx<<I_+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(Ey,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(Ap,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,Mt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Ap,t,r_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Zl,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,hS],u,Zl,t,hS)}else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Ep,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,Ep,t,i_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Sp,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,mS],u,Sp,t,mS)}},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,Zl,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(by,n),r=li(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 vy(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 Yl(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),Kr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var X_,Q_=qe(()=>{Jl();Tt();Tp();Sr();X_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Oe(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=vp(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 Ty(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=yp(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 yy(p,this.LA(1),u))},e}()});var q_,z_=qe(()=>{hp();Tt();q_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ci(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return uy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new n_(r,t).startWalking();return a},e}()});function xp(e,t,n,i){i===void 0&&(i=!1),xy(n);var r=lp(this.recordingProdStack),a=go(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Oe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),Cy}function H9(e,t){var n=this;xy(t);var i=lp(this.recordingProdStack),r=li(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Oe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Gh(a,function(u){return go(u.GATE)});return s.hasPredicates=l,i.definition.push(s),Te(a,function(u){var p=new Zt({definition:[]});s.definition.push(p),Oe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Oe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),Cy}function Z_(e){return e===0?"":""+e}function xy(e){if(e<0||e>J_){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(li(t))this.tokensMap=pn(t,function(s,l){return s[l.name]=l,s},{});else if(Oe(t,"modes")&&fi(Ln(Vn(t.modes)),$D)){var i=Ln(Vn(t.modes)),r=ap(i);this.tokensMap=pn(r,function(s,l){return s[l.name]=l,s},{})}else if(Bh(t))this.tokensMap=ys(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=Kr;var a=fi(Vn(t),function(s){return ot(s.categoryMatches)});this.tokenMatcher=a?Wl:Rc,Pa(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=Oe(i,"resyncEnabled")?i.resyncEnabled:tf.resyncEnabled,a=Oe(i,"recoveryValueFunc")?i.recoveryValueFunc:tf.recoveryValueFunc,s=this.ruleShortNameIdx<<F_+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(by,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(Ap,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,Mt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Ap,t,c_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Zl,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,yS],u,Zl,t,yS)}else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Ep,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,Ep,t,s_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Sp,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,hS],u,Sp,t,hS)}},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,Zl,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(Ty,n),r=li(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 yy(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 Yl(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===PS?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),Kr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var Y_,J_=Ye(()=>{Jl();Tt();Tp();Pr();Y_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Oe(t,"errorMessageProvider")?t.errorMessageProvider:nr.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=vp(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 vy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=yp(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 hy(p,this.LA(1),u))},e}()});var Z_,eV=Ye(()=>{hp();Tt();Z_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ci(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return fy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new a_(r,t).startWalking();return a},e}()});function xp(e,t,n,i){i===void 0&&(i=!1),Py(n);var r=lp(this.recordingProdStack),a=go(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Oe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),xy}function Q9(e,t){var n=this;Py(t);var i=lp(this.recordingProdStack),r=li(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Oe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Hh(a,function(u){return go(u.GATE)});return s.hasPredicates=l,i.definition.push(s),Te(a,function(u){var p=new Zt({definition:[]});s.definition.push(p),Oe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Oe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),xy}function iV(e){return e===0?"":""+e}function Py(e){if(e<0||e>nV){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(nV+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var xy,tV,nV,rV,oV,X9,aV,sV=Ye(()=>{Tt();ji();up();Kl();bs();Pr();Ay();xy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(xy);tV=!0,nV=Math.pow(2,Ko)-1,rV=dp({name:"RECORDING_PHASE_TOKEN",pattern:ki.NA});Pa([rV]);oV=Ts(rV,`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(oV);X9={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:{}},aV=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 ef},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new Ar({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 xp.call(this,an,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){xp.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){xp.call(this,Fn,n,t,
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=lp(this.recordingProdStack),s=t.ruleName,l=new on({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?
|
|
184
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=lp(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 xp.call(this,an,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){xp.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){xp.call(this,Fn,n,t,tV)},e.prototype.manyInternalRecord=function(t,n){xp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){xp.call(this,Sn,n,t,tV)},e.prototype.orInternalRecord=function(t,n){return Q9.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(Py(n),!t||Oe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+iV(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=lp(this.recordingProdStack),s=t.ruleName,l=new on({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?X9:xy},e.prototype.consumeInternalRecord=function(t,n,i){if(Py(n),!fS(t)){var r=new Error("<CONSUME"+iV(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=lp(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),oV},e}();o(xp,"recordProd");o(Q9,"recordOrProd");o(iV,"getIdxSuffix");o(Py,"assertMethodIdxIsValid")});var cV,lV=Ye(()=>{Tt();Pr();cV=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Oe(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=nr.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=Kh(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 uV(e){return e===void 0&&(e=void 0),function(){return e}}var fV,ef,nr,tf,Hn,LS,pV,dV,Pr=Ye(()=>{Tt();i_();bs();mp();AS();xS();__();G_();K_();Q_();z_();J_();eV();sV();lV();fV=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)}}(),ef=Ts(Kr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(ef);nr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:gp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),tf=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"})(Hn||(Hn={}));o(uV,"EMPTY_ALT");LS=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),Oe(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=Oe(n,"skipValidations")?n.skipValidations:
|
|
187
|
+
For further details.`);this.skipValidations=Oe(n,"skipValidations")?n.skipValidations:nr.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(){Wh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),Te(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=dy({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=gy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Es,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=n_(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}();hD(LS,[R_,D_,H_,W_,q_,X_,Y_,Z_,aV,cV]);pV=function(e){fV(t,e);function t(n,i){i===void 0&&(i=nr);var r=this,a=ys(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(LS),dV=function(e){fV(t,e);function t(n,i){i===void 0&&(i=nr);var r=this,a=ys(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(LS)});function gV(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+op+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+op+"/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 mV=Ye(()=>{eS();o(gV,"createSyntaxDiagramsCode")});function yV(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
|
+
`+TV(e)+`
|
|
235
235
|
|
|
236
236
|
return {
|
|
237
237
|
`+e.name+": "+e.name+`
|
|
238
238
|
}
|
|
239
239
|
}));
|
|
240
|
-
`}function
|
|
241
|
-
`+
|
|
240
|
+
`}function vV(e){return`
|
|
241
|
+
`+TV(e)+`
|
|
242
242
|
return new `+e.name+`(tokenVocabulary, config)
|
|
243
|
-
`}function
|
|
243
|
+
`}function TV(e){var t=`
|
|
244
244
|
function `+e.name+`(tokenVocabulary, config) {
|
|
245
245
|
// invoke super constructor
|
|
246
246
|
// No support for embedded actions currently, so we can 'hardcode'
|
|
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
249
249
|
|
|
250
250
|
const $ = this
|
|
251
251
|
|
|
252
|
-
`+
|
|
252
|
+
`+q9(e.rules)+`
|
|
253
253
|
|
|
254
254
|
// very important to call this after all the rules have been defined.
|
|
255
255
|
// otherwise the parser may not work correctly as it will lack information
|
|
@@ -260,38 +260,38 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
260
260
|
// inheritance as implemented in javascript in the previous decade... :(
|
|
261
261
|
`+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
|
|
262
262
|
`+e.name+".prototype.constructor = "+e.name+`
|
|
263
|
-
`;return t}function
|
|
264
|
-
`)}function
|
|
265
|
-
`;o(
|
|
263
|
+
`;return t}function q9(e){var t=pe(e,function(n){return z9(n,1)});return t.join(`
|
|
264
|
+
`)}function z9(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+Zn;return n+=Cy(e.definition,t+1),n+=Ui(t+1,"})")+Zn,n}function Y9(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+Zn)}function J9(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Zn)}function Z9(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+Zn,i=pe(e.definition,function(r){return e6(r,t+1)});return n+=i.join(","+Zn),n+=Zn+Ui(t,"])"+Zn),n}function e6(e,t){var n=Ui(t,"{")+Zn;return n+=Ui(t+1,"ALT: function() {")+Zn,n+=Cy(e.definition,t+1),n+=Ui(t+1,"}")+Zn,n+=Ui(t,"}"),n}function t6(e,t){if(e instanceof on)return J9(e,t);if(e instanceof an)return Cp("OPTION",e,t);if(e instanceof Rn)return Cp("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Cp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Cp("MANY_SEP",e,t);if(e instanceof Nt)return Cp("MANY",e,t);if(e instanceof Pn)return Z9(e,t);if(e instanceof ht)return Y9(e,t);if(e instanceof Zt)return Cy(e.definition,t);throw Error("non exhaustive match")}function Cp(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+Zn,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+Zn,i+="DEF: "+hV(t.definition,n+2)+Zn,i+=Ui(n,"}")+Zn):i+=hV(t.definition,n+1),i+=Ui(n,")")+Zn,i}function hV(e,t){var n="function() {"+Zn;return n+=Cy(e,t),n+=Ui(t,"}")+Zn,n}function Cy(e,t){var n="";return Te(e,function(i){n+=t6(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var Zn,bV=Ye(()=>{Tt();ji();Zn=`
|
|
265
|
+
`;o(yV,"genUmdModule");o(vV,"genWrapperFunction");o(TV,"genClass");o(q9,"genAllRules");o(z9,"genRule");o(Y9,"genTerminal");o(J9,"genNonTerminal");o(Z9,"genAlternation");o(e6,"genSingleAlt");o(t6,"genProd");o(Cp,"genDSLRule");o(hV,"genDefFunction");o(Cy,"genDefinition");o(Ui,"indent")});function EV(e){var t=vV({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Iy(),hg(Oy)))}}function AV(e){return yV({name:e.name,rules:e.rules})}var SV=Ye(()=>{bV();o(EV,"generateParserFactory");o(AV,"generateParserModule")});var Oy={};Qs(Oy,{Alternation:()=>Pn,Alternative:()=>Zt,CstParser:()=>pV,EMPTY_ALT:()=>uV,EOF:()=>Kr,EarlyExitException:()=>vy,EmbeddedActionsParser:()=>dV,GAstVisitor:()=>Xr,Lexer:()=>ki,LexerDefinitionErrorType:()=>dn,MismatchedTokenException:()=>Yl,NoViableAltException:()=>hy,NonTerminal:()=>on,NotAllInputParsedException:()=>yy,Option:()=>an,Parser:()=>i6,ParserDefinitionErrorType:()=>Hn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>Ar,Terminal:()=>ht,VERSION:()=>op,assignOccurrenceIndices:()=>P_,clearCache:()=>n6,createSyntaxDiagramsCode:()=>gV,createToken:()=>dp,createTokenInstance:()=>Ts,defaultGrammarResolverErrorProvider:()=>sy,defaultGrammarValidatorErrorProvider:()=>Es,defaultLexerErrorProvider:()=>ny,defaultParserErrorProvider:()=>gp,generateParserFactory:()=>EV,generateParserModule:()=>AV,isRecognitionException:()=>Ca,resolveGrammar:()=>dy,serializeGrammar:()=>iy,serializeProduction:()=>Xl,tokenLabel:()=>Wo,tokenMatcher:()=>YD,tokenName:()=>zD,validateGrammar:()=>gy});function n6(){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
|
|
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});xV.exports={xmlLexer:E6,tokensDictionary:AV}});var OV=ze((ile,CV)=>{var{CstParser:A6,tokenMatcher:S6}=(Ny(),hg(Iy)),{tokensDictionary:Ct}=FS(),_S=class _S extends A6{constructor(){super(Ct,{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(Ct.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(Ct.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(Ct.DocType),t.CONSUME(Ct.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(Ct.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(Ct.Name,{LABEL:"System"}),t.CONSUME(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(Ct.Name,{LABEL:"Public"}),t.CONSUME2(Ct.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(Ct.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(Ct.CData),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(Ct.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(Ct.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(Ct.SLASH_OPEN),t.CONSUME2(Ct.Name,{LABEL:"END_NAME"}),t.CONSUME2(Ct.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(Ct.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(Ct.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.EQUALS),t.CONSUME(Ct.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.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=>S6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(_S,"Parser");var DS=_S,P6=new DS;CV.exports={xmlParser:P6}});var VS=ze((ole,IV)=>{var{xmlLexer:x6}=FS(),{xmlParser:Ly}=OV();IV.exports={parse:o(function(t){let n=x6.tokenize(t);return Ly.input=n.tokens,{cst:Ly.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ly.errors}},"parse"),BaseXmlCstVisitor:Ly.getBaseCstVisitorConstructor()}});var Np=ze((rf,Ip)=>{(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,I=2,F=4,j=8,K=16,U=32,ae=64,Z=128,re=256,Pe=512,D=30,ut="...",yt=800,Ue=16,sn=1,Gn=2,tn=3,Rt=1/0,Re=9007199254740991,Ii=17976931348623157e292,Ot=NaN,kt=4294967295,cn=kt-1,Hi=kt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",I],["curry",j],["curryRight",K],["flip",Pe],["partial",U],["partialRight",ae],["rearg",re]],Wn="[object Arguments]",Ir="[object Array]",at="[object AsyncFunction]",O="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Ft="[object GeneratorFunction]",Qe="[object Map]",jt="[object Number]",vn="[object Null]",ln="[object Object]",Gt="[object Promise]",ti="[object Proxy]",ar="[object RegExp]",gn="[object Set]",hi="[object String]",Wt="[object Symbol]",zo="[object Undefined]",Gi="[object WeakMap]",_f="[object WeakSet]",Ms="[object ArrayBuffer]",Nr="[object DataView]",Vf="[object Float32Array]",wf="[object Float64Array]",Mf="[object Int8Array]",ks="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,xe=RegExp(he.source),Ie=RegExp(be.source),rt=/<%-([\s\S]+?)%>/g,Kt=/<%([\s\S]+?)%>/g,fn=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cd=/^\w*$/,Ev=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kf=/[\\^$.*+?()[\]{}|]/g,_M=RegExp(kf.source),Av=/^\s+/,VM=/\s/,wM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,MM=/\{\n\/\* \[wrapped with (.+)\] \*/,kM=/,? & /,jM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,UM=/[()=,{}\[\]\/\s]/,$M=/\\(\\)?/g,BM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vC=/\w*$/,HM=/^[-+]0x[0-9a-f]+$/i,GM=/^0b[01]+$/i,WM=/^\[object .+?Constructor\]$/,KM=/^0o[0-7]+$/i,XM=/^(?:0|[1-9]\d*)$/,QM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Od=/($^)/,qM=/['\n\r\u2028\u2029\\]/g,Id="\\ud800-\\udfff",zM="\\u0300-\\u036f",YM="\\ufe20-\\ufe2f",JM="\\u20d0-\\u20ff",TC=zM+YM+JM,bC="\\u2700-\\u27bf",EC="a-z\\xdf-\\xf6\\xf8-\\xff",ZM="\\xac\\xb1\\xd7\\xf7",e2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",t2="\\u2000-\\u206f",n2=" \\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",AC="A-Z\\xc0-\\xd6\\xd8-\\xde",SC="\\ufe0e\\ufe0f",PC=ZM+e2+t2+n2,Sv="['\u2019]",i2="["+Id+"]",xC="["+PC+"]",Nd="["+TC+"]",CC="\\d+",r2="["+bC+"]",OC="["+EC+"]",IC="[^"+Id+PC+CC+bC+EC+AC+"]",Pv="\\ud83c[\\udffb-\\udfff]",o2="(?:"+Nd+"|"+Pv+")",NC="[^"+Id+"]",xv="(?:\\ud83c[\\udde6-\\uddff]){2}",Cv="[\\ud800-\\udbff][\\udc00-\\udfff]",Wc="["+AC+"]",LC="\\u200d",RC="(?:"+OC+"|"+IC+")",a2="(?:"+Wc+"|"+IC+")",FC="(?:"+Sv+"(?:d|ll|m|re|s|t|ve))?",DC="(?:"+Sv+"(?:D|LL|M|RE|S|T|VE))?",_C=o2+"?",VC="["+SC+"]?",s2="(?:"+LC+"(?:"+[NC,xv,Cv].join("|")+")"+VC+_C+")*",c2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",l2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wC=VC+_C+s2,f2="(?:"+[r2,xv,Cv].join("|")+")"+wC,u2="(?:"+[NC+Nd+"?",Nd,xv,Cv,i2].join("|")+")",p2=RegExp(Sv,"g"),d2=RegExp(Nd,"g"),Ov=RegExp(Pv+"(?="+Pv+")|"+u2+wC,"g"),g2=RegExp([Wc+"?"+OC+"+"+FC+"(?="+[xC,Wc,"$"].join("|")+")",a2+"+"+DC+"(?="+[xC,Wc+RC,"$"].join("|")+")",Wc+"?"+RC+"+"+FC,Wc+"+"+DC,l2,c2,CC,f2].join("|"),"g"),m2=RegExp("["+LC+Id+TC+SC+"]"),h2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,y2=["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,nn={};nn[Vf]=nn[wf]=nn[Mf]=nn[ks]=nn[k]=nn[B]=nn[Q]=nn[ce]=nn[Le]=!0,nn[Wn]=nn[Ir]=nn[Ms]=nn[O]=nn[Nr]=nn[S]=nn[V]=nn[_e]=nn[Qe]=nn[jt]=nn[ln]=nn[ar]=nn[gn]=nn[hi]=nn[Gi]=!1;var zt={};zt[Wn]=zt[Ir]=zt[Ms]=zt[Nr]=zt[O]=zt[S]=zt[Vf]=zt[wf]=zt[Mf]=zt[ks]=zt[k]=zt[Qe]=zt[jt]=zt[ln]=zt[ar]=zt[gn]=zt[hi]=zt[Wt]=zt[B]=zt[Q]=zt[ce]=zt[Le]=!0,zt[V]=zt[_e]=zt[Gi]=!1;var b2={\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"},E2={"&":"&","<":"<",">":">",'"':""","'":"'"},A2={"&":"&","<":"<",">":">",""":'"',"'":"'"},S2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},P2=parseFloat,x2=parseInt,MC=typeof global=="object"&&global&&global.Object===Object&&global,C2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=MC||C2||Function("return this")(),Iv=typeof rf=="object"&&rf&&!rf.nodeType&&rf,js=Iv&&typeof Ip=="object"&&Ip&&!Ip.nodeType&&Ip,kC=js&&js.exports===Iv,Nv=kC&&MC.process,Lr=function(){try{var w=js&&js.require&&js.require("util").types;return w||Nv&&Nv.binding&&Nv.binding("util")}catch{}}(),jC=Lr&&Lr.isArrayBuffer,UC=Lr&&Lr.isDate,$C=Lr&&Lr.isMap,BC=Lr&&Lr.isRegExp,HC=Lr&&Lr.isSet,GC=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 O2(w,X,W,Ae){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(Ae,jn,W(jn),w)}return Ae}o(O2,"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 I2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(I2,"arrayEachRight");function WC(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(WC,"arrayEvery");function _a(w,X){for(var W=-1,Ae=w==null?0:w.length,We=0,St=[];++W<Ae;){var jn=w[W];X(jn,W,w)&&(St[We++]=jn)}return St}o(_a,"arrayFilter");function Ld(w,X){var W=w==null?0:w.length;return!!W&&Kc(w,X,0)>-1}o(Ld,"arrayIncludes");function Lv(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(Lv,"arrayIncludesWith");function un(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(un,"arrayMap");function Va(w,X){for(var W=-1,Ae=X.length,We=w.length;++W<Ae;)w[We+W]=X[W];return w}o(Va,"arrayPush");function Rv(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(Rv,"arrayReduce");function N2(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(N2,"arrayReduceRight");function Fv(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(Fv,"arraySome");var L2=Dv("length");function R2(w){return w.split("")}o(R2,"asciiToArray");function F2(w){return w.match(jM)||[]}o(F2,"asciiWords");function KC(w,X,W){var Ae;return W(w,function(We,St,jn){if(X(We,St,jn))return Ae=St,!1}),Ae}o(KC,"baseFindKey");function Rd(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(Rd,"baseFindIndex");function Kc(w,X,W){return X===X?G2(w,X,W):Rd(w,XC,W)}o(Kc,"baseIndexOf");function D2(w,X,W,Ae){for(var We=W-1,St=w.length;++We<St;)if(Ae(w[We],X))return We;return-1}o(D2,"baseIndexOfWith");function XC(w){return w!==w}o(XC,"baseIsNaN");function QC(w,X){var W=w==null?0:w.length;return W?Vv(w,X)/W:Ot}o(QC,"baseMean");function Dv(w){return function(X){return X==null?e:X[w]}}o(Dv,"baseProperty");function _v(w){return function(X){return w==null?e:w[X]}}o(_v,"basePropertyOf");function qC(w,X,W,Ae,We){return We(w,function(St,jn,Xt){W=Ae?(Ae=!1,St):X(W,St,jn,Xt)}),W}o(qC,"baseReduce");function _2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(_2,"baseSortBy");function Vv(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(Vv,"baseSum");function wv(w,X){for(var W=-1,Ae=Array(w);++W<w;)Ae[W]=X(W);return Ae}o(wv,"baseTimes");function V2(w,X){return un(X,function(W){return[W,w[W]]})}o(V2,"baseToPairs");function zC(w){return w&&w.slice(0,eO(w)+1).replace(Av,"")}o(zC,"baseTrim");function lr(w){return function(X){return w(X)}}o(lr,"baseUnary");function Mv(w,X){return un(X,function(W){return w[W]})}o(Mv,"baseValues");function jf(w,X){return w.has(X)}o(jf,"cacheHas");function YC(w,X){for(var W=-1,Ae=w.length;++W<Ae&&Kc(X,w[W],0)>-1;);return W}o(YC,"charsStartIndex");function JC(w,X){for(var W=w.length;W--&&Kc(X,w[W],0)>-1;);return W}o(JC,"charsEndIndex");function w2(w,X){for(var W=w.length,Ae=0;W--;)w[W]===X&&++Ae;return Ae}o(w2,"countHolders");var M2=_v(b2),k2=_v(E2);function j2(w){return"\\"+S2[w]}o(j2,"escapeStringChar");function U2(w,X){return w==null?e:w[X]}o(U2,"getValue");function Xc(w){return m2.test(w)}o(Xc,"hasUnicode");function $2(w){return h2.test(w)}o($2,"hasUnicodeWord");function B2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(B2,"iteratorToArray");function kv(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae,We){W[++X]=[We,Ae]}),W}o(kv,"mapToArray");function ZC(w,X){return function(W){return w(X(W))}}o(ZC,"overArg");function wa(w,X){for(var W=-1,Ae=w.length,We=0,St=[];++W<Ae;){var jn=w[W];(jn===X||jn===u)&&(w[W]=u,St[We++]=W)}return St}o(wa,"replaceHolders");function Fd(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=Ae}),W}o(Fd,"setToArray");function H2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=[Ae,Ae]}),W}o(H2,"setToPairs");function G2(w,X,W){for(var Ae=W-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(G2,"strictIndexOf");function W2(w,X,W){for(var Ae=W+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(W2,"strictLastIndexOf");function Qc(w){return Xc(w)?X2(w):L2(w)}o(Qc,"stringSize");function Zr(w){return Xc(w)?Q2(w):R2(w)}o(Zr,"stringToArray");function eO(w){for(var X=w.length;X--&&VM.test(w.charAt(X)););return X}o(eO,"trimmedEndIndex");var K2=_v(A2);function X2(w){for(var X=Ov.lastIndex=0;Ov.test(w);)++X;return X}o(X2,"unicodeSize");function Q2(w){return w.match(Ov)||[]}o(Q2,"unicodeToArray");function q2(w){return w.match(g2)||[]}o(q2,"unicodeWords");var z2=o(function w(X){X=X==null?Kn:Ma.defaults(Kn.Object(),X,Ma.pick(Kn,y2));var W=X.Array,Ae=X.Date,We=X.Error,St=X.Function,jn=X.Math,Xt=X.Object,jv=X.RegExp,Y2=X.String,Fr=X.TypeError,Dd=W.prototype,J2=St.prototype,qc=Xt.prototype,_d=X["__core-js_shared__"],Vd=J2.toString,Dt=qc.hasOwnProperty,Z2=0,tO=function(){var c=/[^.]+$/.exec(_d&&_d.keys&&_d.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),wd=qc.toString,ek=Vd.call(Xt),tk=Kn._,nk=jv("^"+Vd.call(Dt).replace(kf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Md=kC?X.Buffer:e,ka=X.Symbol,kd=X.Uint8Array,nO=Md?Md.allocUnsafe:e,jd=ZC(Xt.getPrototypeOf,Xt),iO=Xt.create,rO=qc.propertyIsEnumerable,Ud=Dd.splice,oO=ka?ka.isConcatSpreadable:e,Uf=ka?ka.iterator:e,Us=ka?ka.toStringTag:e,$d=function(){try{var c=Ws(Xt,"defineProperty");return c({},"",{}),c}catch{}}(),ik=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,rk=Ae&&Ae.now!==Kn.Date.now&&Ae.now,ok=X.setTimeout!==Kn.setTimeout&&X.setTimeout,Bd=jn.ceil,Hd=jn.floor,Uv=Xt.getOwnPropertySymbols,ak=Md?Md.isBuffer:e,aO=X.isFinite,sk=Dd.join,ck=ZC(Xt.keys,Xt),Un=jn.max,yi=jn.min,lk=Ae.now,fk=X.parseInt,sO=jn.random,uk=Dd.reverse,$v=Ws(X,"DataView"),$f=Ws(X,"Map"),Bv=Ws(X,"Promise"),zc=Ws(X,"Set"),Bf=Ws(X,"WeakMap"),Hf=Ws(Xt,"create"),Gd=Bf&&new Bf,Yc={},pk=Ks($v),dk=Ks($f),gk=Ks(Bv),mk=Ks(zc),hk=Ks(Bf),Wd=ka?ka.prototype:e,Gf=Wd?Wd.valueOf:e,cO=Wd?Wd.toString:e;function P(c){if(Tn(c)&&!Xe(c)&&!(c instanceof pt)){if(c instanceof Dr)return c;if(Dt.call(c,"__wrapped__"))return lI(c)}return new Dr(c)}o(P,"lodash");var Jc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(iO)return iO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Kd(){}o(Kd,"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:Kt,interpolate:fn,variable:"",imports:{_:P}},P.prototype=Kd.prototype,P.prototype.constructor=P,Dr.prototype=Jc(Kd.prototype),Dr.prototype.constructor=Dr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kt,this.__views__=[]}o(pt,"LazyWrapper");function yk(){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(yk,"lazyClone");function vk(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(vk,"lazyReverse");function Tk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),T=f<0,E=d?c.length:0,C=Rj(0,E,this.__views__),L=C.start,R=C.end,M=R-L,Y=T?R:L-1,J=this.__iteratees__,ee=J.length,me=0,Ne=yi(M,this.__takeCount__);if(!d||!T&&E==M&&Ne==M)return FO(c,this.__actions__);var Me=[];e:for(;M--&&me<Ne;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],gt=st.iteratee,pr=st.type,Ri=gt(ke);if(pr==Gn)ke=Ri;else if(!Ri){if(pr==sn)continue e;break e}}Me[me++]=ke}return Me}o(Tk,"lazyValue"),pt.prototype=Jc(Kd.prototype),pt.prototype.constructor=pt;function $s(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($s,"Hash");function bk(){this.__data__=Hf?Hf(null):{},this.size=0}o(bk,"hashClear");function Ek(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(Ek,"hashDelete");function Ak(c){var f=this.__data__;if(Hf){var d=f[c];return d===s?e:d}return Dt.call(f,c)?f[c]:e}o(Ak,"hashGet");function Sk(c){var f=this.__data__;return Hf?f[c]!==e:Dt.call(f,c)}o(Sk,"hashHas");function Pk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Hf&&f===e?s:f,this}o(Pk,"hashSet"),$s.prototype.clear=bk,$s.prototype.delete=Ek,$s.prototype.get=Ak,$s.prototype.has=Sk,$s.prototype.set=Pk;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 xk(){this.__data__=[],this.size=0}o(xk,"listCacheClear");function Ck(c){var f=this.__data__,d=Xd(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():Ud.call(f,d,1),--this.size,!0}o(Ck,"listCacheDelete");function Ok(c){var f=this.__data__,d=Xd(f,c);return d<0?e:f[d][1]}o(Ok,"listCacheGet");function Ik(c){return Xd(this.__data__,c)>-1}o(Ik,"listCacheHas");function Nk(c,f){var d=this.__data__,T=Xd(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(Nk,"listCacheSet"),Yo.prototype.clear=xk,Yo.prototype.delete=Ck,Yo.prototype.get=Ok,Yo.prototype.has=Ik,Yo.prototype.set=Nk;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 Lk(){this.size=0,this.__data__={hash:new $s,map:new($f||Yo),string:new $s}}o(Lk,"mapCacheClear");function Rk(c){var f=og(this,c).delete(c);return this.size-=f?1:0,f}o(Rk,"mapCacheDelete");function Fk(c){return og(this,c).get(c)}o(Fk,"mapCacheGet");function Dk(c){return og(this,c).has(c)}o(Dk,"mapCacheHas");function _k(c,f){var d=og(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(_k,"mapCacheSet"),Jo.prototype.clear=Lk,Jo.prototype.delete=Rk,Jo.prototype.get=Fk,Jo.prototype.has=Dk,Jo.prototype.set=_k;function Bs(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Jo;++f<d;)this.add(c[f])}o(Bs,"SetCache");function Vk(c){return this.__data__.set(c,s),this}o(Vk,"setCacheAdd");function wk(c){return this.__data__.has(c)}o(wk,"setCacheHas"),Bs.prototype.add=Bs.prototype.push=Vk,Bs.prototype.has=wk;function eo(c){var f=this.__data__=new Yo(c);this.size=f.size}o(eo,"Stack");function Mk(){this.__data__=new Yo,this.size=0}o(Mk,"stackClear");function kk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(kk,"stackDelete");function jk(c){return this.__data__.get(c)}o(jk,"stackGet");function Uk(c){return this.__data__.has(c)}o(Uk,"stackHas");function $k(c,f){var d=this.__data__;if(d instanceof Yo){var T=d.__data__;if(!$f||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($k,"stackSet"),eo.prototype.clear=Mk,eo.prototype.delete=kk,eo.prototype.get=jk,eo.prototype.has=Uk,eo.prototype.set=$k;function lO(c,f){var d=Xe(c),T=!d&&Xs(c),E=!d&&!T&&Ha(c),C=!d&&!T&&!E&&nl(c),L=d||T||E||C,R=L?wv(c.length,Y2):[],M=R.length;for(var Y in c)(f||Dt.call(c,Y))&&!(L&&(Y=="length"||E&&(Y=="offset"||Y=="parent")||C&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||na(Y,M)))&&R.push(Y);return R}o(lO,"arrayLikeKeys");function fO(c){var f=c.length;return f?c[Zv(0,f-1)]:e}o(fO,"arraySample");function Bk(c,f){return ag(Wi(c),Hs(f,0,c.length))}o(Bk,"arraySampleSize");function Hk(c){return ag(Wi(c))}o(Hk,"arrayShuffle");function Hv(c,f,d){(d!==e&&!to(c[f],d)||d===e&&!(f in c))&&Zo(c,f,d)}o(Hv,"assignMergeValue");function Wf(c,f,d){var T=c[f];(!(Dt.call(c,f)&&to(T,d))||d===e&&!(f in c))&&Zo(c,f,d)}o(Wf,"assignValue");function Xd(c,f){for(var d=c.length;d--;)if(to(c[d][0],f))return d;return-1}o(Xd,"assocIndexOf");function Gk(c,f,d,T){return ja(c,function(E,C,L){f(T,E,d(E),L)}),T}o(Gk,"baseAggregator");function uO(c,f){return c&&Po(f,Xn(f),c)}o(uO,"baseAssign");function Wk(c,f){return c&&Po(f,Xi(f),c)}o(Wk,"baseAssignIn");function Zo(c,f,d){f=="__proto__"&&$d?$d(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Zo,"baseAssignValue");function Gv(c,f){for(var d=-1,T=f.length,E=W(T),C=c==null;++d<T;)E[d]=C?e:PT(c,f[d]);return E}o(Gv,"baseAt");function Hs(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Hs,"baseClamp");function _r(c,f,d,T,E,C){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=E?d(c,T,E,C):d(c)),L!==e)return L;if(!hn(c))return c;var J=Xe(c);if(J){if(L=Dj(c),!R)return Wi(c,L)}else{var ee=vi(c),me=ee==_e||ee==Ft;if(Ha(c))return VO(c,R);if(ee==ln||ee==Wn||me&&!E){if(L=M||me?{}:eI(c),!R)return M?Aj(c,Wk(L,c)):Ej(c,uO(L,c))}else{if(!zt[ee])return E?c:{};L=_j(c,ee,R)}}C||(C=new eo);var Ne=C.get(c);if(Ne)return Ne;C.set(c,L),NI(c)?c.forEach(function(ke){L.add(_r(ke,f,d,ke,c,C))}):OI(c)&&c.forEach(function(ke,st){L.set(st,_r(ke,f,d,st,c,C))});var Me=Y?M?fT:lT:M?Xi:Xn,Ze=J?e:Me(c);return Rr(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),Wf(L,st,_r(ke,f,d,st,c,C))}),L}o(_r,"baseClone");function Kk(c){var f=Xn(c);return function(d){return pO(d,c,f)}}o(Kk,"baseConforms");function pO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Xt(c);T--;){var E=d[T],C=f[E],L=c[E];if(L===e&&!(E in c)||!C(L))return!1}return!0}o(pO,"baseConformsTo");function dO(c,f,d){if(typeof c!="function")throw new Fr(r);return Jf(function(){c.apply(e,d)},f)}o(dO,"baseDelay");function Kf(c,f,d,T){var E=-1,C=Ld,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=un(f,lr(d))),T?(C=Lv,L=!1):f.length>=n&&(C=jf,L=!1,f=new Bs(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=Y;me--;)if(f[me]===ee)continue e;M.push(J)}else C(f,ee,T)||M.push(J)}return M}o(Kf,"baseDifference");var ja=UO(So),gO=UO(Kv,!0);function Xk(c,f){var d=!0;return ja(c,function(T,E,C){return d=!!f(T,E,C),d}),d}o(Xk,"baseEvery");function Qd(c,f,d){for(var T=-1,E=c.length;++T<E;){var C=c[T],L=f(C);if(L!=null&&(R===e?L===L&&!ur(L):d(L,R)))var R=L,M=C}return M}o(Qd,"baseExtremum");function Qk(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:RI(T);d<T;)c[d++]=f;return c}o(Qk,"baseFill");function mO(c,f){var d=[];return ja(c,function(T,E,C){f(T,E,C)&&d.push(T)}),d}o(mO,"baseFilter");function ni(c,f,d,T,E){var C=-1,L=c.length;for(d||(d=wj),E||(E=[]);++C<L;){var R=c[C];f>0&&d(R)?f>1?ni(R,f-1,d,T,E):Va(E,R):T||(E[E.length]=R)}return E}o(ni,"baseFlatten");var Wv=$O(),hO=$O(!0);function So(c,f){return c&&Wv(c,f,Xn)}o(So,"baseForOwn");function Kv(c,f){return c&&hO(c,f,Xn)}o(Kv,"baseForOwnRight");function qd(c,f){return _a(f,function(d){return ia(c[d])})}o(qd,"baseFunctions");function Gs(c,f){f=$a(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[xo(f[d++])];return d&&d==T?c:e}o(Gs,"baseGet");function yO(c,f,d){var T=f(c);return Xe(c)?T:Va(T,d(c))}o(yO,"baseGetAllKeys");function Ni(c){return c==null?c===e?zo:vn:Us&&Us in Xt(c)?Lj(c):Hj(c)}o(Ni,"baseGetTag");function Xv(c,f){return c>f}o(Xv,"baseGt");function qk(c,f){return c!=null&&Dt.call(c,f)}o(qk,"baseHas");function zk(c,f){return c!=null&&f in Xt(c)}o(zk,"baseHasIn");function Yk(c,f,d){return c>=yi(f,d)&&c<Un(f,d)}o(Yk,"baseInRange");function Qv(c,f,d){for(var T=d?Lv:Ld,E=c[0].length,C=c.length,L=C,R=W(C),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=un(J,lr(f))),M=yi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new Bs(L&&J):e}J=c[0];var ee=-1,me=R[0];e:for(;++ee<E&&Y.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(me?jf(me,Me):T(Y,Me,d))){for(L=C;--L;){var Ze=R[L];if(!(Ze?jf(Ze,Me):T(c[L],Me,d)))continue e}me&&me.push(Me),Y.push(Ne)}}return Y}o(Qv,"baseIntersection");function Jk(c,f,d,T){return So(c,function(E,C,L){f(T,d(E),C,L)}),T}o(Jk,"baseInverter");function Xf(c,f,d){f=$a(f,c),c=rI(c,f);var T=c==null?c:c[xo(wr(f))];return T==null?e:cr(T,c,d)}o(Xf,"baseInvoke");function vO(c){return Tn(c)&&Ni(c)==Wn}o(vO,"baseIsArguments");function Zk(c){return Tn(c)&&Ni(c)==Ms}o(Zk,"baseIsArrayBuffer");function ej(c){return Tn(c)&&Ni(c)==S}o(ej,"baseIsDate");function Qf(c,f,d,T,E){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:tj(c,f,d,T,Qf,E)}o(Qf,"baseIsEqual");function tj(c,f,d,T,E,C){var L=Xe(c),R=Xe(f),M=L?Ir:vi(c),Y=R?Ir:vi(f);M=M==Wn?ln:M,Y=Y==Wn?ln:Y;var J=M==ln,ee=Y==ln,me=M==Y;if(me&&Ha(c)){if(!Ha(f))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new eo),L||nl(c)?YO(c,f,d,T,E,C):Ij(c,f,M,d,T,E,C);if(!(d&v)){var Ne=J&&Dt.call(c,"__wrapped__"),Me=ee&&Dt.call(f,"__wrapped__");if(Ne||Me){var Ze=Ne?c.value():c,ke=Me?f.value():f;return C||(C=new eo),E(Ze,ke,d,T,C)}}return me?(C||(C=new eo),Nj(c,f,d,T,E,C)):!1}o(tj,"baseIsEqualDeep");function nj(c){return Tn(c)&&vi(c)==Qe}o(nj,"baseIsMap");function qv(c,f,d,T){var E=d.length,C=E,L=!T;if(c==null)return!C;for(c=Xt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<C;){R=d[E];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new eo;if(T)var me=T(Y,J,M,c,f,ee);if(!(me===e?Qf(J,Y,v|A,T,ee):me))return!1}}return!0}o(qv,"baseIsMatch");function TO(c){if(!hn(c)||kj(c))return!1;var f=ia(c)?nk:WM;return f.test(Ks(c))}o(TO,"baseIsNative");function ij(c){return Tn(c)&&Ni(c)==ar}o(ij,"baseIsRegExp");function rj(c){return Tn(c)&&vi(c)==gn}o(rj,"baseIsSet");function oj(c){return Tn(c)&&pg(c.length)&&!!nn[Ni(c)]}o(oj,"baseIsTypedArray");function bO(c){return typeof c=="function"?c:c==null?Qi:typeof c=="object"?Xe(c)?SO(c[0],c[1]):AO(c):BI(c)}o(bO,"baseIteratee");function zv(c){if(!Yf(c))return ck(c);var f=[];for(var d in Xt(c))Dt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(zv,"baseKeys");function aj(c){if(!hn(c))return Bj(c);var f=Yf(c),d=[];for(var T in c)T=="constructor"&&(f||!Dt.call(c,T))||d.push(T);return d}o(aj,"baseKeysIn");function Yv(c,f){return c<f}o(Yv,"baseLt");function EO(c,f){var d=-1,T=Ki(c)?W(c.length):[];return ja(c,function(E,C,L){T[++d]=f(E,C,L)}),T}o(EO,"baseMap");function AO(c){var f=pT(c);return f.length==1&&f[0][2]?nI(f[0][0],f[0][1]):function(d){return d===c||qv(d,c,f)}}o(AO,"baseMatches");function SO(c,f){return gT(c)&&tI(f)?nI(xo(c),f):function(d){var T=PT(d,c);return T===e&&T===f?xT(d,c):Qf(f,T,v|A)}}o(SO,"baseMatchesProperty");function zd(c,f,d,T,E){c!==f&&Wv(f,function(C,L){if(E||(E=new eo),hn(C))sj(c,f,L,d,zd,T,E);else{var R=T?T(hT(c,L),C,L+"",c,f,E):e;R===e&&(R=C),Hv(c,L,R)}},Xi)}o(zd,"baseMerge");function sj(c,f,d,T,E,C,L){var R=hT(c,d),M=hT(f,d),Y=L.get(M);if(Y){Hv(c,d,Y);return}var J=C?C(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var me=Xe(M),Ne=!me&&Ha(M),Me=!me&&!Ne&&nl(M);J=M,me||Ne||Me?Xe(R)?J=R:On(R)?J=Wi(R):Ne?(ee=!1,J=VO(M,!0)):Me?(ee=!1,J=wO(M,!0)):J=[]:Zf(M)||Xs(M)?(J=R,Xs(R)?J=FI(R):(!hn(R)||ia(R))&&(J=eI(M))):ee=!1}ee&&(L.set(M,J),E(J,M,T,C,L),L.delete(M)),Hv(c,d,J)}o(sj,"baseMergeDeep");function PO(c,f){var d=c.length;if(d)return f+=f<0?d:0,na(f,d)?c[f]:e}o(PO,"baseNth");function xO(c,f,d){f.length?f=un(f,function(C){return Xe(C)?function(L){return Gs(L,C.length===1?C[0]:C)}:C}):f=[Qi];var T=-1;f=un(f,lr(Ve()));var E=EO(c,function(C,L,R){var M=un(f,function(Y){return Y(C)});return{criteria:M,index:++T,value:C}});return _2(E,function(C,L){return bj(C,L,d)})}o(xO,"baseOrderBy");function cj(c,f){return CO(c,f,function(d,T){return xT(c,T)})}o(cj,"basePick");function CO(c,f,d){for(var T=-1,E=f.length,C={};++T<E;){var L=f[T],R=Gs(c,L);d(R,L)&&qf(C,$a(L,c),R)}return C}o(CO,"basePickBy");function lj(c){return function(f){return Gs(f,c)}}o(lj,"basePropertyDeep");function Jv(c,f,d,T){var E=T?D2:Kc,C=-1,L=f.length,R=c;for(c===f&&(f=Wi(f)),d&&(R=un(c,lr(d)));++C<L;)for(var M=0,Y=f[C],J=d?d(Y):Y;(M=E(R,J,M,T))>-1;)R!==c&&Ud.call(R,M,1),Ud.call(c,M,1);return c}o(Jv,"basePullAll");function OO(c,f){for(var d=c?f.length:0,T=d-1;d--;){var E=f[d];if(d==T||E!==C){var C=E;na(E)?Ud.call(c,E,1):nT(c,E)}}return c}o(OO,"basePullAt");function Zv(c,f){return c+Hd(sO()*(f-c+1))}o(Zv,"baseRandom");function fj(c,f,d,T){for(var E=-1,C=Un(Bd((f-c)/(d||1)),0),L=W(C);C--;)L[T?C:++E]=c,c+=d;return L}o(fj,"baseRange");function eT(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Hd(f/2),f&&(c+=c);while(f);return d}o(eT,"baseRepeat");function nt(c,f){return yT(iI(c,f,Qi),c+"")}o(nt,"baseRest");function uj(c){return fO(il(c))}o(uj,"baseSample");function pj(c,f){var d=il(c);return ag(d,Hs(f,0,d.length))}o(pj,"baseSampleSize");function qf(c,f,d,T){if(!hn(c))return c;f=$a(f,c);for(var E=-1,C=f.length,L=C-1,R=c;R!=null&&++E<C;){var M=xo(f[E]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];Y=T?T(J,M,R):e,Y===e&&(Y=hn(J)?J:na(f[E+1])?[]:{})}Wf(R,M,Y),R=R[M]}return c}o(qf,"baseSet");var IO=Gd?function(c,f){return Gd.set(c,f),c}:Qi,dj=$d?function(c,f){return $d(c,"toString",{configurable:!0,enumerable:!1,value:OT(f),writable:!0})}:Qi;function gj(c){return ag(il(c))}o(gj,"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 C=W(E);++T<E;)C[T]=c[T+f];return C}o(Vr,"baseSlice");function mj(c,f){var d;return ja(c,function(T,E,C){return d=f(T,E,C),!d}),!!d}o(mj,"baseSome");function Yd(c,f,d){var T=0,E=c==null?T:c.length;if(typeof f=="number"&&f===f&&E<=Hi){for(;T<E;){var C=T+E>>>1,L=c[C];L!==null&&!ur(L)&&(d?L<=f:L<f)?T=C+1:E=C}return E}return tT(c,f,Qi,d)}o(Yd,"baseSortedIndex");function tT(c,f,d,T){var E=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=ur(f),Y=f===e;E<C;){var J=Hd((E+C)/2),ee=d(c[J]),me=ee!==e,Ne=ee===null,Me=ee===ee,Ze=ur(ee);if(L)var ke=T||Me;else Y?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:C=J}return yi(C,cn)}o(tT,"baseSortedIndexBy");function NO(c,f){for(var d=-1,T=c.length,E=0,C=[];++d<T;){var L=c[d],R=f?f(L):L;if(!d||!to(R,M)){var M=R;C[E++]=L===0?0:L}}return C}o(NO,"baseSortedUniq");function LO(c){return typeof c=="number"?c:ur(c)?Ot:+c}o(LO,"baseToNumber");function fr(c){if(typeof c=="string")return c;if(Xe(c))return un(c,fr)+"";if(ur(c))return cO?cO.call(c):"";var f=c+"";return f=="0"&&1/c==-Rt?"-0":f}o(fr,"baseToString");function Ua(c,f,d){var T=-1,E=Ld,C=c.length,L=!0,R=[],M=R;if(d)L=!1,E=Lv;else if(C>=n){var Y=f?null:Cj(c);if(Y)return Fd(Y);L=!1,E=jf,M=new Bs}else M=f?[]:R;e:for(;++T<C;){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(Ua,"baseUniq");function nT(c,f){return f=$a(f,c),c=rI(c,f),c==null||delete c[xo(wr(f))]}o(nT,"baseUnset");function RO(c,f,d,T){return qf(c,f,d(Gs(c,f)),T)}o(RO,"baseUpdate");function Jd(c,f,d,T){for(var E=c.length,C=T?E:-1;(T?C--:++C<E)&&f(c[C],C,c););return d?Vr(c,T?0:C,T?C+1:E):Vr(c,T?C+1:0,T?E:C)}o(Jd,"baseWhile");function FO(c,f){var d=c;return d instanceof pt&&(d=d.value()),Rv(f,function(T,E){return E.func.apply(E.thisArg,Va([T],E.args))},d)}o(FO,"baseWrapperValue");function iT(c,f,d){var T=c.length;if(T<2)return T?Ua(c[0]):[];for(var E=-1,C=W(T);++E<T;)for(var L=c[E],R=-1;++R<T;)R!=E&&(C[E]=Kf(C[E]||L,c[R],f,d));return Ua(ni(C,1),f,d)}o(iT,"baseXor");function DO(c,f,d){for(var T=-1,E=c.length,C=f.length,L={};++T<E;){var R=T<C?f[T]:e;d(L,c[T],R)}return L}o(DO,"baseZipObject");function rT(c){return On(c)?c:[]}o(rT,"castArrayLikeObject");function oT(c){return typeof c=="function"?c:Qi}o(oT,"castFunction");function $a(c,f){return Xe(c)?c:gT(c,f)?[c]:cI(It(c))}o($a,"castPath");var hj=nt;function Ba(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Vr(c,f,d)}o(Ba,"castSlice");var _O=ik||function(c){return Kn.clearTimeout(c)};function VO(c,f){if(f)return c.slice();var d=c.length,T=nO?nO(d):new c.constructor(d);return c.copy(T),T}o(VO,"cloneBuffer");function aT(c){var f=new c.constructor(c.byteLength);return new kd(f).set(new kd(c)),f}o(aT,"cloneArrayBuffer");function yj(c,f){var d=f?aT(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(yj,"cloneDataView");function vj(c){var f=new c.constructor(c.source,vC.exec(c));return f.lastIndex=c.lastIndex,f}o(vj,"cloneRegExp");function Tj(c){return Gf?Xt(Gf.call(c)):{}}o(Tj,"cloneSymbol");function wO(c,f){var d=f?aT(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(wO,"cloneTypedArray");function MO(c,f){if(c!==f){var d=c!==e,T=c===null,E=c===c,C=ur(c),L=f!==e,R=f===null,M=f===f,Y=ur(f);if(!R&&!Y&&!C&&c>f||C&&L&&M&&!R&&!Y||T&&L&&M||!d&&M||!E)return 1;if(!T&&!C&&!Y&&c<f||Y&&d&&E&&!T&&!C||R&&d&&E||!L&&E||!M)return-1}return 0}o(MO,"compareAscending");function bj(c,f,d){for(var T=-1,E=c.criteria,C=f.criteria,L=E.length,R=d.length;++T<L;){var M=MO(E[T],C[T]);if(M){if(T>=R)return M;var Y=d[T];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(bj,"compareMultiple");function kO(c,f,d,T){for(var E=-1,C=c.length,L=d.length,R=-1,M=f.length,Y=Un(C-L,0),J=W(M+Y),ee=!T;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<C)&&(J[d[E]]=c[E]);for(;Y--;)J[R++]=c[E++];return J}o(kO,"composeArgs");function jO(c,f,d,T){for(var E=-1,C=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=Un(C-R,0),ee=W(J+Y),me=!T;++E<J;)ee[E]=c[E];for(var Ne=E;++M<Y;)ee[Ne+M]=f[M];for(;++L<R;)(me||E<C)&&(ee[Ne+d[L]]=c[E++]);return ee}o(jO,"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 C=-1,L=f.length;++C<L;){var R=f[C],M=T?T(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Zo(d,R,M):Wf(d,R,M)}return d}o(Po,"copyObject");function Ej(c,f){return Po(c,dT(c),f)}o(Ej,"copySymbols");function Aj(c,f){return Po(c,JO(c),f)}o(Aj,"copySymbolsIn");function Zd(c,f){return function(d,T){var E=Xe(d)?O2:Gk,C=f?f():{};return E(d,c,Ve(T,2),C)}}o(Zd,"createAggregator");function Zc(c){return nt(function(f,d){var T=-1,E=d.length,C=E>1?d[E-1]:e,L=E>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(E--,C):e,L&&Li(d[0],d[1],L)&&(C=E<3?e:C,E=1),f=Xt(f);++T<E;){var R=d[T];R&&c(f,R,T,C)}return f})}o(Zc,"createAssigner");function UO(c,f){return function(d,T){if(d==null)return d;if(!Ki(d))return c(d,T);for(var E=d.length,C=f?E:-1,L=Xt(d);(f?C--:++C<E)&&T(L[C],C,L)!==!1;);return d}}o(UO,"createBaseEach");function $O(c){return function(f,d,T){for(var E=-1,C=Xt(f),L=T(f),R=L.length;R--;){var M=L[c?R:++E];if(d(C[M],M,C)===!1)break}return f}}o($O,"createBaseFor");function Sj(c,f,d){var T=f&b,E=zf(c);function C(){var L=this&&this!==Kn&&this instanceof C?E:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(Sj,"createBind");function BO(c){return function(f){f=It(f);var d=Xc(f)?Zr(f):e,T=d?d[0]:f.charAt(0),E=d?Ba(d,1).join(""):f.slice(1);return T[c]()+E}}o(BO,"createCaseFirst");function el(c){return function(f){return Rv(UI(jI(f).replace(p2,"")),c,"")}}o(el,"createCompounder");function zf(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=Jc(c.prototype),T=c.apply(d,f);return hn(T)?T:d}}o(zf,"createCtor");function Pj(c,f,d){var T=zf(c);function E(){for(var C=arguments.length,L=W(C),R=C,M=tl(E);R--;)L[R]=arguments[R];var Y=C<3&&L[0]!==M&&L[C-1]!==M?[]:wa(L,M);if(C-=Y.length,C<d)return XO(c,f,eg,E.placeholder,e,L,Y,e,e,d-C);var J=this&&this!==Kn&&this instanceof E?T:c;return cr(J,this,L)}return o(E,"wrapper"),E}o(Pj,"createCurry");function HO(c){return function(f,d,T){var E=Xt(f);if(!Ki(f)){var C=Ve(d,3);f=Xn(f),d=o(function(R){return C(E[R],R,E)},"predicate")}var L=c(f,d,T);return L>-1?E[C?f[L]:L]:e}}o(HO,"createFind");function GO(c){return ta(function(f){var d=f.length,T=d,E=Dr.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new Fr(r);if(E&&!L&&rg(C)=="wrapper")var L=new Dr([],!0)}for(T=L?T:d;++T<d;){C=f[T];var R=rg(C),M=R=="wrapper"?uT(C):e;M&&mT(M[0])&&M[1]==(Z|j|U|re)&&!M[4].length&&M[9]==1?L=L[rg(M[0])].apply(L,M[3]):L=C.length==1&&mT(C)?L[R]():L.thru(C)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,me=d?f[ee].apply(this,Y):J;++ee<d;)me=f[ee].call(this,me);return me}})}o(GO,"createFlow");function eg(c,f,d,T,E,C,L,R,M,Y){var J=f&Z,ee=f&b,me=f&I,Ne=f&(j|K),Me=f&Pe,Ze=me?e:zf(c);function ke(){for(var st=arguments.length,gt=W(st),pr=st;pr--;)gt[pr]=arguments[pr];if(Ne)var Ri=tl(ke),dr=w2(gt,Ri);if(T&&(gt=kO(gt,T,E,Ne)),C&&(gt=jO(gt,C,L,Ne)),st-=dr,Ne&&st<Y){var In=wa(gt,Ri);return XO(c,f,eg,ke.placeholder,d,gt,In,R,M,Y-st)}var no=ee?d:this,oa=me?no[c]:c;return st=gt.length,R?gt=Gj(gt,R):Me&&st>1&>.reverse(),J&&M<st&&(gt.length=M),this&&this!==Kn&&this instanceof ke&&(oa=Ze||zf(oa)),oa.apply(no,gt)}return o(ke,"wrapper"),ke}o(eg,"createHybrid");function WO(c,f){return function(d,T){return Jk(d,c,f(T),{})}}o(WO,"createInverter");function tg(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=LO(d),T=LO(T)),E=c(d,T)}return E}}o(tg,"createMathOperation");function sT(c){return ta(function(f){return f=un(f,lr(Ve())),nt(function(d){var T=this;return c(f,function(E){return cr(E,T,d)})})})}o(sT,"createOver");function ng(c,f){f=f===e?" ":fr(f);var d=f.length;if(d<2)return d?eT(f,c):f;var T=eT(f,Bd(c/Qc(f)));return Xc(f)?Ba(Zr(T),0,c).join(""):T.slice(0,c)}o(ng,"createPadding");function xj(c,f,d,T){var E=f&b,C=zf(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=T.length,ee=W(J+M),me=this&&this!==Kn&&this instanceof L?C:c;++Y<J;)ee[Y]=T[Y];for(;M--;)ee[Y++]=arguments[++R];return cr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(xj,"createPartial");function KO(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),fj(f,d,T,c)}}o(KO,"createRange");function ig(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Mr(f),d=Mr(d)),c(f,d)}}o(ig,"createRelationalOperation");function XO(c,f,d,T,E,C,L,R,M,Y){var J=f&j,ee=J?L:e,me=J?e:L,Ne=J?C:e,Me=J?e:C;f|=J?U:ae,f&=~(J?ae:U),f&F||(f&=~(b|I));var Ze=[c,f,E,Ne,ee,Me,me,R,M,Y],ke=d.apply(e,Ze);return mT(c)&&oI(ke,Ze),ke.placeholder=T,aI(ke,c,f)}o(XO,"createRecurry");function cT(c){var f=jn[c];return function(d,T){if(d=Mr(d),T=T==null?0:yi(Je(T),292),T&&aO(d)){var E=(It(d)+"e").split("e"),C=f(E[0]+"e"+(+E[1]+T));return E=(It(C)+"e").split("e"),+(E[0]+"e"+(+E[1]-T))}return f(d)}}o(cT,"createRound");var Cj=zc&&1/Fd(new zc([,-0]))[1]==Rt?function(c){return new zc(c)}:LT;function QO(c){return function(f){var d=vi(f);return d==Qe?kv(f):d==gn?H2(f):V2(f,c(f))}}o(QO,"createToPairs");function ea(c,f,d,T,E,C,L,R){var M=f&I;if(!M&&typeof c!="function")throw new Fr(r);var Y=T?T.length:0;if(Y||(f&=~(U|ae),T=E=e),L=L===e?L:Un(Je(L),0),R=R===e?R:Je(R),Y-=E?E.length:0,f&ae){var J=T,ee=E;T=E=e}var me=M?e:uT(c),Ne=[c,f,d,T,E,J,ee,C,L,R];if(me&&$j(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:Un(Ne[9]-Y,0),!R&&f&(j|K)&&(f&=~(j|K)),!f||f==b)var Me=Sj(c,f,d);else f==j||f==K?Me=Pj(c,f,R):(f==U||f==(b|U))&&!E.length?Me=xj(c,f,d,T):Me=eg.apply(e,Ne);var Ze=me?IO:oI;return aI(Ze(Me,Ne),c,f)}o(ea,"createWrap");function qO(c,f,d,T){return c===e||to(c,qc[d])&&!Dt.call(T,d)?f:c}o(qO,"customDefaultsAssignIn");function zO(c,f,d,T,E,C){return hn(c)&&hn(f)&&(C.set(f,c),zd(c,f,e,zO,C),C.delete(f)),c}o(zO,"customDefaultsMerge");function Oj(c){return Zf(c)?e:c}o(Oj,"customOmitClone");function YO(c,f,d,T,E,C){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=C.get(c),J=C.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,me=!0,Ne=d&A?new Bs:e;for(C.set(c,f),C.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(T)var ke=L?T(Ze,Me,ee,f,c,C):T(Me,Ze,ee,c,f,C);if(ke!==e){if(ke)continue;me=!1;break}if(Ne){if(!Fv(f,function(st,gt){if(!jf(Ne,gt)&&(Me===st||E(Me,st,d,T,C)))return Ne.push(gt)})){me=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,T,C))){me=!1;break}}return C.delete(c),C.delete(f),me}o(YO,"equalArrays");function Ij(c,f,d,T,E,C,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ms:return!(c.byteLength!=f.byteLength||!C(new kd(c),new kd(f)));case O:case S:case jt:return to(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ar:case hi:return c==f+"";case Qe:var R=kv;case gn:var M=T&v;if(R||(R=Fd),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;T|=A,L.set(c,f);var J=YO(R(c),R(f),T,E,C,L);return L.delete(c),J;case Wt:if(Gf)return Gf.call(c)==Gf.call(f)}return!1}o(Ij,"equalByTag");function Nj(c,f,d,T,E,C){var L=d&v,R=lT(c),M=R.length,Y=lT(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var me=R[ee];if(!(L?me in f:Dt.call(f,me)))return!1}var Ne=C.get(c),Me=C.get(f);if(Ne&&Me)return Ne==f&&Me==c;var Ze=!0;C.set(c,f),C.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,C):T(st,gt,me,c,f,C);if(!(pr===e?st===gt||E(st,gt,d,T,C):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 C.delete(c),C.delete(f),Ze}o(Nj,"equalObjects");function ta(c){return yT(iI(c,e,pI),c+"")}o(ta,"flatRest");function lT(c){return yO(c,Xn,dT)}o(lT,"getAllKeys");function fT(c){return yO(c,Xi,JO)}o(fT,"getAllKeysIn");var uT=Gd?function(c){return Gd.get(c)}:LT;function rg(c){for(var f=c.name+"",d=Yc[f],T=Dt.call(Yc,f)?d.length:0;T--;){var E=d[T],C=E.func;if(C==null||C==c)return E.name}return f}o(rg,"getFuncName");function tl(c){var f=Dt.call(P,"placeholder")?P:c;return f.placeholder}o(tl,"getHolder");function Ve(){var c=P.iteratee||IT;return c=c===IT?bO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function og(c,f){var d=c.__data__;return Mj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(og,"getMapData");function pT(c){for(var f=Xn(c),d=f.length;d--;){var T=f[d],E=c[T];f[d]=[T,E,tI(E)]}return f}o(pT,"getMatchData");function Ws(c,f){var d=U2(c,f);return TO(d)?d:e}o(Ws,"getNative");function Lj(c){var f=Dt.call(c,Us),d=c[Us];try{c[Us]=e;var T=!0}catch{}var E=wd.call(c);return T&&(f?c[Us]=d:delete c[Us]),E}o(Lj,"getRawTag");var dT=Uv?function(c){return c==null?[]:(c=Xt(c),_a(Uv(c),function(f){return rO.call(c,f)}))}:RT,JO=Uv?function(c){for(var f=[];c;)Va(f,dT(c)),c=jd(c);return f}:RT,vi=Ni;($v&&vi(new $v(new ArrayBuffer(1)))!=Nr||$f&&vi(new $f)!=Qe||Bv&&vi(Bv.resolve())!=Gt||zc&&vi(new zc)!=gn||Bf&&vi(new Bf)!=Gi)&&(vi=o(function(c){var f=Ni(c),d=f==ln?c.constructor:e,T=d?Ks(d):"";if(T)switch(T){case pk:return Nr;case dk:return Qe;case gk:return Gt;case mk:return gn;case hk:return Gi}return f},"getTag"));function Rj(c,f,d){for(var T=-1,E=d.length;++T<E;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=yi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(Rj,"getView");function Fj(c){var f=c.match(MM);return f?f[1].split(kM):[]}o(Fj,"getWrapDetails");function ZO(c,f,d){f=$a(f,c);for(var T=-1,E=f.length,C=!1;++T<E;){var L=xo(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=E?C:(E=c==null?0:c.length,!!E&&pg(E)&&na(L,E)&&(Xe(c)||Xs(c)))}o(ZO,"hasPath");function Dj(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Dt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(Dj,"initCloneArray");function eI(c){return typeof c.constructor=="function"&&!Yf(c)?Jc(jd(c)):{}}o(eI,"initCloneObject");function _j(c,f,d){var T=c.constructor;switch(f){case Ms:return aT(c);case O:case S:return new T(+c);case Nr:return yj(c,d);case Vf:case wf:case Mf:case ks:case k:case B:case Q:case ce:case Le:return wO(c,d);case Qe:return new T;case jt:case hi:return new T(c);case ar:return vj(c);case gn:return new T;case Wt:return Tj(c)}}o(_j,"initCloneByTag");function Vj(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(wM,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var i6,Iy=Ye(()=>{eS();Pr();up();bs();mp();Jl();uS();ji();ji();Ql();AS();mV();SV();o(n6,"clearCache");i6=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 DS=Je((sle,NV)=>{var{createToken:r6,Lexer:RS}=(Iy(),hg(Oy)),xV={},nf=xV;function FS(e,t){xV[e]=typeof t=="string"?t:t.source}o(FS,"FRAGMENT");function Op(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(Op,"makePattern");var o6=[],CV={};function xn(e){let t=r6(e);return o6.push(t),CV[e.name]=t,t}o(xn,"createToken");FS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");FS("NameChar",Op`${nf.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);FS("Name",Op`${nf.NameStartChar}(${nf.NameChar})*`);var PV=xn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),a6=xn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),s6=xn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),c6=xn({name:"DTD",pattern:/<!.*?>/,group:RS.SKIPPED}),l6=xn({name:"EntityRef",pattern:Op`&${nf.Name};`}),f6=xn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),u6=xn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),p6=xn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),OV=xn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),d6=xn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[OV]}),g6=xn({name:"PROCESSING_INSTRUCTION",pattern:Op`<\\?${nf.Name}.*\\?>`}),IV=xn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),m6=xn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[IV]}),h6=xn({name:"TEXT",pattern:/[^<&]+/}),y6=xn({name:"CLOSE",pattern:/>/,pop_mode:!0}),v6=xn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),T6=xn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),b6=xn({name:"SLASH",pattern:/\//}),E6=xn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),A6=xn({name:"EQUALS",pattern:/=/}),S6=xn({name:"Name",pattern:Op`${nf.Name}`}),P6=xn({name:"S",pattern:/[ \t\r\n]/,group:RS.SKIPPED}),x6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[PV,a6,s6,c6,l6,f6,u6,p6,OV,g6,IV,h6],INSIDE:[PV,d6,m6,y6,v6,T6,b6,A6,E6,S6,P6]}},C6=new RS(x6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});NV.exports={xmlLexer:C6,tokensDictionary:CV}});var RV=Je((lle,LV)=>{var{CstParser:O6,tokenMatcher:I6}=(Iy(),hg(Oy)),{tokensDictionary:Ct}=DS(),VS=class VS extends O6{constructor(){super(Ct,{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(Ct.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(Ct.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(Ct.DocType),t.CONSUME(Ct.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(Ct.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(Ct.Name,{LABEL:"System"}),t.CONSUME(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(Ct.Name,{LABEL:"Public"}),t.CONSUME2(Ct.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(Ct.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(Ct.CData),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(Ct.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(Ct.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(Ct.SLASH_OPEN),t.CONSUME2(Ct.Name,{LABEL:"END_NAME"}),t.CONSUME2(Ct.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(Ct.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(Ct.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.EQUALS),t.CONSUME(Ct.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.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=>I6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(VS,"Parser");var _S=VS,N6=new _S;LV.exports={xmlParser:N6}});var wS=Je((ule,FV)=>{var{xmlLexer:L6}=DS(),{xmlParser:Ny}=RV();FV.exports={parse:o(function(t){let n=L6.tokenize(t);return Ny.input=n.tokens,{cst:Ny.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ny.errors}},"parse"),BaseXmlCstVisitor:Ny.getBaseCstVisitorConstructor()}});var Np=Je((rf,Ip)=>{(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,I=2,F=4,j=8,K=16,U=32,se=64,Z=128,re=256,Pe=512,D=30,ut="...",yt=800,Ue=16,sn=1,Gn=2,tn=3,Rt=1/0,Re=9007199254740991,Ii=17976931348623157e292,Ot=NaN,kt=4294967295,cn=kt-1,Hi=kt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",I],["curry",j],["curryRight",K],["flip",Pe],["partial",U],["partialRight",se],["rearg",re]],Wn="[object Arguments]",Nr="[object Array]",at="[object AsyncFunction]",O="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Ft="[object GeneratorFunction]",ze="[object Map]",jt="[object Number]",vn="[object Null]",ln="[object Object]",Gt="[object Promise]",ti="[object Proxy]",sr="[object RegExp]",gn="[object Set]",hi="[object String]",Wt="[object Symbol]",zo="[object Undefined]",Gi="[object WeakMap]",_f="[object WeakSet]",Ms="[object ArrayBuffer]",Lr="[object DataView]",Vf="[object Float32Array]",wf="[object Float64Array]",Mf="[object Int8Array]",ks="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,xe=RegExp(he.source),Ie=RegExp(be.source),rt=/<%-([\s\S]+?)%>/g,Kt=/<%([\s\S]+?)%>/g,fn=/<%=([\s\S]+?)%>/g,cr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cd=/^\w*$/,Av=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kf=/[\\^$.*+?()[\]{}|]/g,kM=RegExp(kf.source),Sv=/^\s+/,jM=/\s/,UM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$M=/\{\n\/\* \[wrapped with (.+)\] \*/,BM=/,? & /,HM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,GM=/[()=,{}\[\]\/\s]/,WM=/\\(\\)?/g,KM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,TC=/\w*$/,XM=/^[-+]0x[0-9a-f]+$/i,QM=/^0b[01]+$/i,qM=/^\[object .+?Constructor\]$/,zM=/^0o[0-7]+$/i,YM=/^(?:0|[1-9]\d*)$/,JM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Od=/($^)/,ZM=/['\n\r\u2028\u2029\\]/g,Id="\\ud800-\\udfff",e2="\\u0300-\\u036f",t2="\\ufe20-\\ufe2f",n2="\\u20d0-\\u20ff",bC=e2+t2+n2,EC="\\u2700-\\u27bf",AC="a-z\\xdf-\\xf6\\xf8-\\xff",i2="\\xac\\xb1\\xd7\\xf7",r2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",o2="\\u2000-\\u206f",a2=" \\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",SC="A-Z\\xc0-\\xd6\\xd8-\\xde",PC="\\ufe0e\\ufe0f",xC=i2+r2+o2+a2,Pv="['\u2019]",s2="["+Id+"]",CC="["+xC+"]",Nd="["+bC+"]",OC="\\d+",c2="["+EC+"]",IC="["+AC+"]",NC="[^"+Id+xC+OC+EC+AC+SC+"]",xv="\\ud83c[\\udffb-\\udfff]",l2="(?:"+Nd+"|"+xv+")",LC="[^"+Id+"]",Cv="(?:\\ud83c[\\udde6-\\uddff]){2}",Ov="[\\ud800-\\udbff][\\udc00-\\udfff]",Wc="["+SC+"]",RC="\\u200d",FC="(?:"+IC+"|"+NC+")",f2="(?:"+Wc+"|"+NC+")",DC="(?:"+Pv+"(?:d|ll|m|re|s|t|ve))?",_C="(?:"+Pv+"(?:D|LL|M|RE|S|T|VE))?",VC=l2+"?",wC="["+PC+"]?",u2="(?:"+RC+"(?:"+[LC,Cv,Ov].join("|")+")"+wC+VC+")*",p2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",d2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",MC=wC+VC+u2,g2="(?:"+[c2,Cv,Ov].join("|")+")"+MC,m2="(?:"+[LC+Nd+"?",Nd,Cv,Ov,s2].join("|")+")",h2=RegExp(Pv,"g"),y2=RegExp(Nd,"g"),Iv=RegExp(xv+"(?="+xv+")|"+m2+MC,"g"),T2=RegExp([Wc+"?"+IC+"+"+DC+"(?="+[CC,Wc,"$"].join("|")+")",f2+"+"+_C+"(?="+[CC,Wc+FC,"$"].join("|")+")",Wc+"?"+FC+"+"+DC,Wc+"+"+_C,d2,p2,OC,g2].join("|"),"g"),b2=RegExp("["+RC+Id+bC+PC+"]"),E2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,A2=["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"],S2=-1,nn={};nn[Vf]=nn[wf]=nn[Mf]=nn[ks]=nn[k]=nn[B]=nn[Q]=nn[ce]=nn[Le]=!0,nn[Wn]=nn[Nr]=nn[Ms]=nn[O]=nn[Lr]=nn[S]=nn[V]=nn[_e]=nn[ze]=nn[jt]=nn[ln]=nn[sr]=nn[gn]=nn[hi]=nn[Gi]=!1;var zt={};zt[Wn]=zt[Nr]=zt[Ms]=zt[Lr]=zt[O]=zt[S]=zt[Vf]=zt[wf]=zt[Mf]=zt[ks]=zt[k]=zt[ze]=zt[jt]=zt[ln]=zt[sr]=zt[gn]=zt[hi]=zt[Wt]=zt[B]=zt[Q]=zt[ce]=zt[Le]=!0,zt[V]=zt[_e]=zt[Gi]=!1;var P2={\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"},x2={"&":"&","<":"<",">":">",'"':""","'":"'"},C2={"&":"&","<":"<",">":">",""":'"',"'":"'"},O2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},I2=parseFloat,N2=parseInt,kC=typeof global=="object"&&global&&global.Object===Object&&global,L2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=kC||L2||Function("return this")(),Nv=typeof rf=="object"&&rf&&!rf.nodeType&&rf,js=Nv&&typeof Ip=="object"&&Ip&&!Ip.nodeType&&Ip,jC=js&&js.exports===Nv,Lv=jC&&kC.process,Rr=function(){try{var w=js&&js.require&&js.require("util").types;return w||Lv&&Lv.binding&&Lv.binding("util")}catch{}}(),UC=Rr&&Rr.isArrayBuffer,$C=Rr&&Rr.isDate,BC=Rr&&Rr.isMap,HC=Rr&&Rr.isRegExp,GC=Rr&&Rr.isSet,WC=Rr&&Rr.isTypedArray;function lr(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(lr,"apply");function R2(w,X,W,Ae){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(Ae,jn,W(jn),w)}return Ae}o(R2,"arrayAggregator");function Fr(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae&&X(w[W],W,w)!==!1;);return w}o(Fr,"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 KC(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(KC,"arrayEvery");function _a(w,X){for(var W=-1,Ae=w==null?0:w.length,We=0,St=[];++W<Ae;){var jn=w[W];X(jn,W,w)&&(St[We++]=jn)}return St}o(_a,"arrayFilter");function Ld(w,X){var W=w==null?0:w.length;return!!W&&Kc(w,X,0)>-1}o(Ld,"arrayIncludes");function Rv(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(Rv,"arrayIncludesWith");function un(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(un,"arrayMap");function Va(w,X){for(var W=-1,Ae=X.length,We=w.length;++W<Ae;)w[We+W]=X[W];return w}o(Va,"arrayPush");function Fv(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(Fv,"arrayReduce");function D2(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(D2,"arrayReduceRight");function Dv(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(Dv,"arraySome");var _2=_v("length");function V2(w){return w.split("")}o(V2,"asciiToArray");function w2(w){return w.match(HM)||[]}o(w2,"asciiWords");function XC(w,X,W){var Ae;return W(w,function(We,St,jn){if(X(We,St,jn))return Ae=St,!1}),Ae}o(XC,"baseFindKey");function Rd(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(Rd,"baseFindIndex");function Kc(w,X,W){return X===X?Q2(w,X,W):Rd(w,QC,W)}o(Kc,"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 QC(w){return w!==w}o(QC,"baseIsNaN");function qC(w,X){var W=w==null?0:w.length;return W?wv(w,X)/W:Ot}o(qC,"baseMean");function _v(w){return function(X){return X==null?e:X[w]}}o(_v,"baseProperty");function Vv(w){return function(X){return w==null?e:w[X]}}o(Vv,"basePropertyOf");function zC(w,X,W,Ae,We){return We(w,function(St,jn,Xt){W=Ae?(Ae=!1,St):X(W,St,jn,Xt)}),W}o(zC,"baseReduce");function k2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(k2,"baseSortBy");function wv(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(wv,"baseSum");function Mv(w,X){for(var W=-1,Ae=Array(w);++W<w;)Ae[W]=X(W);return Ae}o(Mv,"baseTimes");function j2(w,X){return un(X,function(W){return[W,w[W]]})}o(j2,"baseToPairs");function YC(w){return w&&w.slice(0,tO(w)+1).replace(Sv,"")}o(YC,"baseTrim");function fr(w){return function(X){return w(X)}}o(fr,"baseUnary");function kv(w,X){return un(X,function(W){return w[W]})}o(kv,"baseValues");function jf(w,X){return w.has(X)}o(jf,"cacheHas");function JC(w,X){for(var W=-1,Ae=w.length;++W<Ae&&Kc(X,w[W],0)>-1;);return W}o(JC,"charsStartIndex");function ZC(w,X){for(var W=w.length;W--&&Kc(X,w[W],0)>-1;);return W}o(ZC,"charsEndIndex");function U2(w,X){for(var W=w.length,Ae=0;W--;)w[W]===X&&++Ae;return Ae}o(U2,"countHolders");var $2=Vv(P2),B2=Vv(x2);function H2(w){return"\\"+O2[w]}o(H2,"escapeStringChar");function G2(w,X){return w==null?e:w[X]}o(G2,"getValue");function Xc(w){return b2.test(w)}o(Xc,"hasUnicode");function W2(w){return E2.test(w)}o(W2,"hasUnicodeWord");function K2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(K2,"iteratorToArray");function jv(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae,We){W[++X]=[We,Ae]}),W}o(jv,"mapToArray");function eO(w,X){return function(W){return w(X(W))}}o(eO,"overArg");function wa(w,X){for(var W=-1,Ae=w.length,We=0,St=[];++W<Ae;){var jn=w[W];(jn===X||jn===u)&&(w[W]=u,St[We++]=W)}return St}o(wa,"replaceHolders");function Fd(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=Ae}),W}o(Fd,"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 Q2(w,X,W){for(var Ae=W-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(Q2,"strictIndexOf");function q2(w,X,W){for(var Ae=W+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(q2,"strictLastIndexOf");function Qc(w){return Xc(w)?Y2(w):_2(w)}o(Qc,"stringSize");function Zr(w){return Xc(w)?J2(w):V2(w)}o(Zr,"stringToArray");function tO(w){for(var X=w.length;X--&&jM.test(w.charAt(X)););return X}o(tO,"trimmedEndIndex");var z2=Vv(C2);function Y2(w){for(var X=Iv.lastIndex=0;Iv.test(w);)++X;return X}o(Y2,"unicodeSize");function J2(w){return w.match(Iv)||[]}o(J2,"unicodeToArray");function Z2(w){return w.match(T2)||[]}o(Z2,"unicodeWords");var ek=o(function w(X){X=X==null?Kn:Ma.defaults(Kn.Object(),X,Ma.pick(Kn,A2));var W=X.Array,Ae=X.Date,We=X.Error,St=X.Function,jn=X.Math,Xt=X.Object,Uv=X.RegExp,tk=X.String,Dr=X.TypeError,Dd=W.prototype,nk=St.prototype,qc=Xt.prototype,_d=X["__core-js_shared__"],Vd=nk.toString,Dt=qc.hasOwnProperty,ik=0,nO=function(){var c=/[^.]+$/.exec(_d&&_d.keys&&_d.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),wd=qc.toString,rk=Vd.call(Xt),ok=Kn._,ak=Uv("^"+Vd.call(Dt).replace(kf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Md=jC?X.Buffer:e,ka=X.Symbol,kd=X.Uint8Array,iO=Md?Md.allocUnsafe:e,jd=eO(Xt.getPrototypeOf,Xt),rO=Xt.create,oO=qc.propertyIsEnumerable,Ud=Dd.splice,aO=ka?ka.isConcatSpreadable:e,Uf=ka?ka.iterator:e,Us=ka?ka.toStringTag:e,$d=function(){try{var c=Ws(Xt,"defineProperty");return c({},"",{}),c}catch{}}(),sk=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,ck=Ae&&Ae.now!==Kn.Date.now&&Ae.now,lk=X.setTimeout!==Kn.setTimeout&&X.setTimeout,Bd=jn.ceil,Hd=jn.floor,$v=Xt.getOwnPropertySymbols,fk=Md?Md.isBuffer:e,sO=X.isFinite,uk=Dd.join,pk=eO(Xt.keys,Xt),Un=jn.max,yi=jn.min,dk=Ae.now,gk=X.parseInt,cO=jn.random,mk=Dd.reverse,Bv=Ws(X,"DataView"),$f=Ws(X,"Map"),Hv=Ws(X,"Promise"),zc=Ws(X,"Set"),Bf=Ws(X,"WeakMap"),Hf=Ws(Xt,"create"),Gd=Bf&&new Bf,Yc={},hk=Ks(Bv),yk=Ks($f),vk=Ks(Hv),Tk=Ks(zc),bk=Ks(Bf),Wd=ka?ka.prototype:e,Gf=Wd?Wd.valueOf:e,lO=Wd?Wd.toString:e;function P(c){if(Tn(c)&&!Qe(c)&&!(c instanceof pt)){if(c instanceof _r)return c;if(Dt.call(c,"__wrapped__"))return fI(c)}return new _r(c)}o(P,"lodash");var Jc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(rO)return rO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Kd(){}o(Kd,"baseLodash");function _r(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(_r,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Kt,interpolate:fn,variable:"",imports:{_:P}},P.prototype=Kd.prototype,P.prototype.constructor=P,_r.prototype=Jc(Kd.prototype),_r.prototype.constructor=_r;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kt,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 Ak(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(Ak,"lazyReverse");function Sk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),T=f<0,E=d?c.length:0,C=Vj(0,E,this.__views__),L=C.start,R=C.end,M=R-L,Y=T?R:L-1,J=this.__iteratees__,ee=J.length,me=0,Ne=yi(M,this.__takeCount__);if(!d||!T&&E==M&&Ne==M)return DO(c,this.__actions__);var Me=[];e:for(;M--&&me<Ne;){Y+=f;for(var et=-1,ke=c[Y];++et<ee;){var st=J[et],gt=st.iteratee,dr=st.type,Ri=gt(ke);if(dr==Gn)ke=Ri;else if(!Ri){if(dr==sn)continue e;break e}}Me[me++]=ke}return Me}o(Sk,"lazyValue"),pt.prototype=Jc(Kd.prototype),pt.prototype.constructor=pt;function $s(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($s,"Hash");function Pk(){this.__data__=Hf?Hf(null):{},this.size=0}o(Pk,"hashClear");function xk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(xk,"hashDelete");function Ck(c){var f=this.__data__;if(Hf){var d=f[c];return d===s?e:d}return Dt.call(f,c)?f[c]:e}o(Ck,"hashGet");function Ok(c){var f=this.__data__;return Hf?f[c]!==e:Dt.call(f,c)}o(Ok,"hashHas");function Ik(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Hf&&f===e?s:f,this}o(Ik,"hashSet"),$s.prototype.clear=Pk,$s.prototype.delete=xk,$s.prototype.get=Ck,$s.prototype.has=Ok,$s.prototype.set=Ik;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 Nk(){this.__data__=[],this.size=0}o(Nk,"listCacheClear");function Lk(c){var f=this.__data__,d=Xd(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():Ud.call(f,d,1),--this.size,!0}o(Lk,"listCacheDelete");function Rk(c){var f=this.__data__,d=Xd(f,c);return d<0?e:f[d][1]}o(Rk,"listCacheGet");function Fk(c){return Xd(this.__data__,c)>-1}o(Fk,"listCacheHas");function Dk(c,f){var d=this.__data__,T=Xd(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(Dk,"listCacheSet"),Yo.prototype.clear=Nk,Yo.prototype.delete=Lk,Yo.prototype.get=Rk,Yo.prototype.has=Fk,Yo.prototype.set=Dk;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 _k(){this.size=0,this.__data__={hash:new $s,map:new($f||Yo),string:new $s}}o(_k,"mapCacheClear");function Vk(c){var f=og(this,c).delete(c);return this.size-=f?1:0,f}o(Vk,"mapCacheDelete");function wk(c){return og(this,c).get(c)}o(wk,"mapCacheGet");function Mk(c){return og(this,c).has(c)}o(Mk,"mapCacheHas");function kk(c,f){var d=og(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(kk,"mapCacheSet"),Jo.prototype.clear=_k,Jo.prototype.delete=Vk,Jo.prototype.get=wk,Jo.prototype.has=Mk,Jo.prototype.set=kk;function Bs(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Jo;++f<d;)this.add(c[f])}o(Bs,"SetCache");function jk(c){return this.__data__.set(c,s),this}o(jk,"setCacheAdd");function Uk(c){return this.__data__.has(c)}o(Uk,"setCacheHas"),Bs.prototype.add=Bs.prototype.push=jk,Bs.prototype.has=Uk;function eo(c){var f=this.__data__=new Yo(c);this.size=f.size}o(eo,"Stack");function $k(){this.__data__=new Yo,this.size=0}o($k,"stackClear");function Bk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Bk,"stackDelete");function Hk(c){return this.__data__.get(c)}o(Hk,"stackGet");function Gk(c){return this.__data__.has(c)}o(Gk,"stackHas");function Wk(c,f){var d=this.__data__;if(d instanceof Yo){var T=d.__data__;if(!$f||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(Wk,"stackSet"),eo.prototype.clear=$k,eo.prototype.delete=Bk,eo.prototype.get=Hk,eo.prototype.has=Gk,eo.prototype.set=Wk;function fO(c,f){var d=Qe(c),T=!d&&Xs(c),E=!d&&!T&&Ha(c),C=!d&&!T&&!E&&nl(c),L=d||T||E||C,R=L?Mv(c.length,tk):[],M=R.length;for(var Y in c)(f||Dt.call(c,Y))&&!(L&&(Y=="length"||E&&(Y=="offset"||Y=="parent")||C&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||na(Y,M)))&&R.push(Y);return R}o(fO,"arrayLikeKeys");function uO(c){var f=c.length;return f?c[eT(0,f-1)]:e}o(uO,"arraySample");function Kk(c,f){return ag(Wi(c),Hs(f,0,c.length))}o(Kk,"arraySampleSize");function Xk(c){return ag(Wi(c))}o(Xk,"arrayShuffle");function Gv(c,f,d){(d!==e&&!to(c[f],d)||d===e&&!(f in c))&&Zo(c,f,d)}o(Gv,"assignMergeValue");function Wf(c,f,d){var T=c[f];(!(Dt.call(c,f)&&to(T,d))||d===e&&!(f in c))&&Zo(c,f,d)}o(Wf,"assignValue");function Xd(c,f){for(var d=c.length;d--;)if(to(c[d][0],f))return d;return-1}o(Xd,"assocIndexOf");function Qk(c,f,d,T){return ja(c,function(E,C,L){f(T,E,d(E),L)}),T}o(Qk,"baseAggregator");function pO(c,f){return c&&Po(f,Xn(f),c)}o(pO,"baseAssign");function qk(c,f){return c&&Po(f,Xi(f),c)}o(qk,"baseAssignIn");function Zo(c,f,d){f=="__proto__"&&$d?$d(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Zo,"baseAssignValue");function Wv(c,f){for(var d=-1,T=f.length,E=W(T),C=c==null;++d<T;)E[d]=C?e:xT(c,f[d]);return E}o(Wv,"baseAt");function Hs(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Hs,"baseClamp");function Vr(c,f,d,T,E,C){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=E?d(c,T,E,C):d(c)),L!==e)return L;if(!hn(c))return c;var J=Qe(c);if(J){if(L=Mj(c),!R)return Wi(c,L)}else{var ee=vi(c),me=ee==_e||ee==Ft;if(Ha(c))return wO(c,R);if(ee==ln||ee==Wn||me&&!E){if(L=M||me?{}:tI(c),!R)return M?Cj(c,qk(L,c)):xj(c,pO(L,c))}else{if(!zt[ee])return E?c:{};L=kj(c,ee,R)}}C||(C=new eo);var Ne=C.get(c);if(Ne)return Ne;C.set(c,L),LI(c)?c.forEach(function(ke){L.add(Vr(ke,f,d,ke,c,C))}):II(c)&&c.forEach(function(ke,st){L.set(st,Vr(ke,f,d,st,c,C))});var Me=Y?M?uT:fT:M?Xi:Xn,et=J?e:Me(c);return Fr(et||c,function(ke,st){et&&(st=ke,ke=c[st]),Wf(L,st,Vr(ke,f,d,st,c,C))}),L}o(Vr,"baseClone");function zk(c){var f=Xn(c);return function(d){return dO(d,c,f)}}o(zk,"baseConforms");function dO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Xt(c);T--;){var E=d[T],C=f[E],L=c[E];if(L===e&&!(E in c)||!C(L))return!1}return!0}o(dO,"baseConformsTo");function gO(c,f,d){if(typeof c!="function")throw new Dr(r);return Jf(function(){c.apply(e,d)},f)}o(gO,"baseDelay");function Kf(c,f,d,T){var E=-1,C=Ld,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=un(f,fr(d))),T?(C=Rv,L=!1):f.length>=n&&(C=jf,L=!1,f=new Bs(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=Y;me--;)if(f[me]===ee)continue e;M.push(J)}else C(f,ee,T)||M.push(J)}return M}o(Kf,"baseDifference");var ja=$O(So),mO=$O(Xv,!0);function Yk(c,f){var d=!0;return ja(c,function(T,E,C){return d=!!f(T,E,C),d}),d}o(Yk,"baseEvery");function Qd(c,f,d){for(var T=-1,E=c.length;++T<E;){var C=c[T],L=f(C);if(L!=null&&(R===e?L===L&&!pr(L):d(L,R)))var R=L,M=C}return M}o(Qd,"baseExtremum");function Jk(c,f,d,T){var E=c.length;for(d=Ze(d),d<0&&(d=-d>E?0:E+d),T=T===e||T>E?E:Ze(T),T<0&&(T+=E),T=d>T?0:FI(T);d<T;)c[d++]=f;return c}o(Jk,"baseFill");function hO(c,f){var d=[];return ja(c,function(T,E,C){f(T,E,C)&&d.push(T)}),d}o(hO,"baseFilter");function ni(c,f,d,T,E){var C=-1,L=c.length;for(d||(d=Uj),E||(E=[]);++C<L;){var R=c[C];f>0&&d(R)?f>1?ni(R,f-1,d,T,E):Va(E,R):T||(E[E.length]=R)}return E}o(ni,"baseFlatten");var Kv=BO(),yO=BO(!0);function So(c,f){return c&&Kv(c,f,Xn)}o(So,"baseForOwn");function Xv(c,f){return c&&yO(c,f,Xn)}o(Xv,"baseForOwnRight");function qd(c,f){return _a(f,function(d){return ia(c[d])})}o(qd,"baseFunctions");function Gs(c,f){f=$a(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[xo(f[d++])];return d&&d==T?c:e}o(Gs,"baseGet");function vO(c,f,d){var T=f(c);return Qe(c)?T:Va(T,d(c))}o(vO,"baseGetAllKeys");function Ni(c){return c==null?c===e?zo:vn:Us&&Us in Xt(c)?_j(c):Xj(c)}o(Ni,"baseGetTag");function Qv(c,f){return c>f}o(Qv,"baseGt");function Zk(c,f){return c!=null&&Dt.call(c,f)}o(Zk,"baseHas");function ej(c,f){return c!=null&&f in Xt(c)}o(ej,"baseHasIn");function tj(c,f,d){return c>=yi(f,d)&&c<Un(f,d)}o(tj,"baseInRange");function qv(c,f,d){for(var T=d?Rv:Ld,E=c[0].length,C=c.length,L=C,R=W(C),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=un(J,fr(f))),M=yi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new Bs(L&&J):e}J=c[0];var ee=-1,me=R[0];e:for(;++ee<E&&Y.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(me?jf(me,Me):T(Y,Me,d))){for(L=C;--L;){var et=R[L];if(!(et?jf(et,Me):T(c[L],Me,d)))continue e}me&&me.push(Me),Y.push(Ne)}}return Y}o(qv,"baseIntersection");function nj(c,f,d,T){return So(c,function(E,C,L){f(T,d(E),C,L)}),T}o(nj,"baseInverter");function Xf(c,f,d){f=$a(f,c),c=oI(c,f);var T=c==null?c:c[xo(Mr(f))];return T==null?e:lr(T,c,d)}o(Xf,"baseInvoke");function TO(c){return Tn(c)&&Ni(c)==Wn}o(TO,"baseIsArguments");function ij(c){return Tn(c)&&Ni(c)==Ms}o(ij,"baseIsArrayBuffer");function rj(c){return Tn(c)&&Ni(c)==S}o(rj,"baseIsDate");function Qf(c,f,d,T,E){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:oj(c,f,d,T,Qf,E)}o(Qf,"baseIsEqual");function oj(c,f,d,T,E,C){var L=Qe(c),R=Qe(f),M=L?Nr:vi(c),Y=R?Nr:vi(f);M=M==Wn?ln:M,Y=Y==Wn?ln:Y;var J=M==ln,ee=Y==ln,me=M==Y;if(me&&Ha(c)){if(!Ha(f))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new eo),L||nl(c)?JO(c,f,d,T,E,C):Fj(c,f,M,d,T,E,C);if(!(d&v)){var Ne=J&&Dt.call(c,"__wrapped__"),Me=ee&&Dt.call(f,"__wrapped__");if(Ne||Me){var et=Ne?c.value():c,ke=Me?f.value():f;return C||(C=new eo),E(et,ke,d,T,C)}}return me?(C||(C=new eo),Dj(c,f,d,T,E,C)):!1}o(oj,"baseIsEqualDeep");function aj(c){return Tn(c)&&vi(c)==ze}o(aj,"baseIsMap");function zv(c,f,d,T){var E=d.length,C=E,L=!T;if(c==null)return!C;for(c=Xt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<C;){R=d[E];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new eo;if(T)var me=T(Y,J,M,c,f,ee);if(!(me===e?Qf(J,Y,v|A,T,ee):me))return!1}}return!0}o(zv,"baseIsMatch");function bO(c){if(!hn(c)||Bj(c))return!1;var f=ia(c)?ak:qM;return f.test(Ks(c))}o(bO,"baseIsNative");function sj(c){return Tn(c)&&Ni(c)==sr}o(sj,"baseIsRegExp");function cj(c){return Tn(c)&&vi(c)==gn}o(cj,"baseIsSet");function lj(c){return Tn(c)&&pg(c.length)&&!!nn[Ni(c)]}o(lj,"baseIsTypedArray");function EO(c){return typeof c=="function"?c:c==null?Qi:typeof c=="object"?Qe(c)?PO(c[0],c[1]):SO(c):HI(c)}o(EO,"baseIteratee");function Yv(c){if(!Yf(c))return pk(c);var f=[];for(var d in Xt(c))Dt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Yv,"baseKeys");function fj(c){if(!hn(c))return Kj(c);var f=Yf(c),d=[];for(var T in c)T=="constructor"&&(f||!Dt.call(c,T))||d.push(T);return d}o(fj,"baseKeysIn");function Jv(c,f){return c<f}o(Jv,"baseLt");function AO(c,f){var d=-1,T=Ki(c)?W(c.length):[];return ja(c,function(E,C,L){T[++d]=f(E,C,L)}),T}o(AO,"baseMap");function SO(c){var f=dT(c);return f.length==1&&f[0][2]?iI(f[0][0],f[0][1]):function(d){return d===c||zv(d,c,f)}}o(SO,"baseMatches");function PO(c,f){return mT(c)&&nI(f)?iI(xo(c),f):function(d){var T=xT(d,c);return T===e&&T===f?CT(d,c):Qf(f,T,v|A)}}o(PO,"baseMatchesProperty");function zd(c,f,d,T,E){c!==f&&Kv(f,function(C,L){if(E||(E=new eo),hn(C))uj(c,f,L,d,zd,T,E);else{var R=T?T(yT(c,L),C,L+"",c,f,E):e;R===e&&(R=C),Gv(c,L,R)}},Xi)}o(zd,"baseMerge");function uj(c,f,d,T,E,C,L){var R=yT(c,d),M=yT(f,d),Y=L.get(M);if(Y){Gv(c,d,Y);return}var J=C?C(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var me=Qe(M),Ne=!me&&Ha(M),Me=!me&&!Ne&&nl(M);J=M,me||Ne||Me?Qe(R)?J=R:On(R)?J=Wi(R):Ne?(ee=!1,J=wO(M,!0)):Me?(ee=!1,J=MO(M,!0)):J=[]:Zf(M)||Xs(M)?(J=R,Xs(R)?J=DI(R):(!hn(R)||ia(R))&&(J=tI(M))):ee=!1}ee&&(L.set(M,J),E(J,M,T,C,L),L.delete(M)),Gv(c,d,J)}o(uj,"baseMergeDeep");function xO(c,f){var d=c.length;if(d)return f+=f<0?d:0,na(f,d)?c[f]:e}o(xO,"baseNth");function CO(c,f,d){f.length?f=un(f,function(C){return Qe(C)?function(L){return Gs(L,C.length===1?C[0]:C)}:C}):f=[Qi];var T=-1;f=un(f,fr(Ve()));var E=AO(c,function(C,L,R){var M=un(f,function(Y){return Y(C)});return{criteria:M,index:++T,value:C}});return k2(E,function(C,L){return Pj(C,L,d)})}o(CO,"baseOrderBy");function pj(c,f){return OO(c,f,function(d,T){return CT(c,T)})}o(pj,"basePick");function OO(c,f,d){for(var T=-1,E=f.length,C={};++T<E;){var L=f[T],R=Gs(c,L);d(R,L)&&qf(C,$a(L,c),R)}return C}o(OO,"basePickBy");function dj(c){return function(f){return Gs(f,c)}}o(dj,"basePropertyDeep");function Zv(c,f,d,T){var E=T?M2:Kc,C=-1,L=f.length,R=c;for(c===f&&(f=Wi(f)),d&&(R=un(c,fr(d)));++C<L;)for(var M=0,Y=f[C],J=d?d(Y):Y;(M=E(R,J,M,T))>-1;)R!==c&&Ud.call(R,M,1),Ud.call(c,M,1);return c}o(Zv,"basePullAll");function IO(c,f){for(var d=c?f.length:0,T=d-1;d--;){var E=f[d];if(d==T||E!==C){var C=E;na(E)?Ud.call(c,E,1):iT(c,E)}}return c}o(IO,"basePullAt");function eT(c,f){return c+Hd(cO()*(f-c+1))}o(eT,"baseRandom");function gj(c,f,d,T){for(var E=-1,C=Un(Bd((f-c)/(d||1)),0),L=W(C);C--;)L[T?C:++E]=c,c+=d;return L}o(gj,"baseRange");function tT(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Hd(f/2),f&&(c+=c);while(f);return d}o(tT,"baseRepeat");function nt(c,f){return vT(rI(c,f,Qi),c+"")}o(nt,"baseRest");function mj(c){return uO(il(c))}o(mj,"baseSample");function hj(c,f){var d=il(c);return ag(d,Hs(f,0,d.length))}o(hj,"baseSampleSize");function qf(c,f,d,T){if(!hn(c))return c;f=$a(f,c);for(var E=-1,C=f.length,L=C-1,R=c;R!=null&&++E<C;){var M=xo(f[E]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];Y=T?T(J,M,R):e,Y===e&&(Y=hn(J)?J:na(f[E+1])?[]:{})}Wf(R,M,Y),R=R[M]}return c}o(qf,"baseSet");var NO=Gd?function(c,f){return Gd.set(c,f),c}:Qi,yj=$d?function(c,f){return $d(c,"toString",{configurable:!0,enumerable:!1,value:IT(f),writable:!0})}:Qi;function vj(c){return ag(il(c))}o(vj,"baseShuffle");function wr(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 C=W(E);++T<E;)C[T]=c[T+f];return C}o(wr,"baseSlice");function Tj(c,f){var d;return ja(c,function(T,E,C){return d=f(T,E,C),!d}),!!d}o(Tj,"baseSome");function Yd(c,f,d){var T=0,E=c==null?T:c.length;if(typeof f=="number"&&f===f&&E<=Hi){for(;T<E;){var C=T+E>>>1,L=c[C];L!==null&&!pr(L)&&(d?L<=f:L<f)?T=C+1:E=C}return E}return nT(c,f,Qi,d)}o(Yd,"baseSortedIndex");function nT(c,f,d,T){var E=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=pr(f),Y=f===e;E<C;){var J=Hd((E+C)/2),ee=d(c[J]),me=ee!==e,Ne=ee===null,Me=ee===ee,et=pr(ee);if(L)var ke=T||Me;else Y?ke=Me&&(T||me):R?ke=Me&&me&&(T||!Ne):M?ke=Me&&me&&!Ne&&(T||!et):Ne||et?ke=!1:ke=T?ee<=f:ee<f;ke?E=J+1:C=J}return yi(C,cn)}o(nT,"baseSortedIndexBy");function LO(c,f){for(var d=-1,T=c.length,E=0,C=[];++d<T;){var L=c[d],R=f?f(L):L;if(!d||!to(R,M)){var M=R;C[E++]=L===0?0:L}}return C}o(LO,"baseSortedUniq");function RO(c){return typeof c=="number"?c:pr(c)?Ot:+c}o(RO,"baseToNumber");function ur(c){if(typeof c=="string")return c;if(Qe(c))return un(c,ur)+"";if(pr(c))return lO?lO.call(c):"";var f=c+"";return f=="0"&&1/c==-Rt?"-0":f}o(ur,"baseToString");function Ua(c,f,d){var T=-1,E=Ld,C=c.length,L=!0,R=[],M=R;if(d)L=!1,E=Rv;else if(C>=n){var Y=f?null:Lj(c);if(Y)return Fd(Y);L=!1,E=jf,M=new Bs}else M=f?[]:R;e:for(;++T<C;){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(Ua,"baseUniq");function iT(c,f){return f=$a(f,c),c=oI(c,f),c==null||delete c[xo(Mr(f))]}o(iT,"baseUnset");function FO(c,f,d,T){return qf(c,f,d(Gs(c,f)),T)}o(FO,"baseUpdate");function Jd(c,f,d,T){for(var E=c.length,C=T?E:-1;(T?C--:++C<E)&&f(c[C],C,c););return d?wr(c,T?0:C,T?C+1:E):wr(c,T?C+1:0,T?E:C)}o(Jd,"baseWhile");function DO(c,f){var d=c;return d instanceof pt&&(d=d.value()),Fv(f,function(T,E){return E.func.apply(E.thisArg,Va([T],E.args))},d)}o(DO,"baseWrapperValue");function rT(c,f,d){var T=c.length;if(T<2)return T?Ua(c[0]):[];for(var E=-1,C=W(T);++E<T;)for(var L=c[E],R=-1;++R<T;)R!=E&&(C[E]=Kf(C[E]||L,c[R],f,d));return Ua(ni(C,1),f,d)}o(rT,"baseXor");function _O(c,f,d){for(var T=-1,E=c.length,C=f.length,L={};++T<E;){var R=T<C?f[T]:e;d(L,c[T],R)}return L}o(_O,"baseZipObject");function oT(c){return On(c)?c:[]}o(oT,"castArrayLikeObject");function aT(c){return typeof c=="function"?c:Qi}o(aT,"castFunction");function $a(c,f){return Qe(c)?c:mT(c,f)?[c]:lI(It(c))}o($a,"castPath");var bj=nt;function Ba(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:wr(c,f,d)}o(Ba,"castSlice");var VO=sk||function(c){return Kn.clearTimeout(c)};function wO(c,f){if(f)return c.slice();var d=c.length,T=iO?iO(d):new c.constructor(d);return c.copy(T),T}o(wO,"cloneBuffer");function sT(c){var f=new c.constructor(c.byteLength);return new kd(f).set(new kd(c)),f}o(sT,"cloneArrayBuffer");function Ej(c,f){var d=f?sT(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Ej,"cloneDataView");function Aj(c){var f=new c.constructor(c.source,TC.exec(c));return f.lastIndex=c.lastIndex,f}o(Aj,"cloneRegExp");function Sj(c){return Gf?Xt(Gf.call(c)):{}}o(Sj,"cloneSymbol");function MO(c,f){var d=f?sT(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(MO,"cloneTypedArray");function kO(c,f){if(c!==f){var d=c!==e,T=c===null,E=c===c,C=pr(c),L=f!==e,R=f===null,M=f===f,Y=pr(f);if(!R&&!Y&&!C&&c>f||C&&L&&M&&!R&&!Y||T&&L&&M||!d&&M||!E)return 1;if(!T&&!C&&!Y&&c<f||Y&&d&&E&&!T&&!C||R&&d&&E||!L&&E||!M)return-1}return 0}o(kO,"compareAscending");function Pj(c,f,d){for(var T=-1,E=c.criteria,C=f.criteria,L=E.length,R=d.length;++T<L;){var M=kO(E[T],C[T]);if(M){if(T>=R)return M;var Y=d[T];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(Pj,"compareMultiple");function jO(c,f,d,T){for(var E=-1,C=c.length,L=d.length,R=-1,M=f.length,Y=Un(C-L,0),J=W(M+Y),ee=!T;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<C)&&(J[d[E]]=c[E]);for(;Y--;)J[R++]=c[E++];return J}o(jO,"composeArgs");function UO(c,f,d,T){for(var E=-1,C=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=Un(C-R,0),ee=W(J+Y),me=!T;++E<J;)ee[E]=c[E];for(var Ne=E;++M<Y;)ee[Ne+M]=f[M];for(;++L<R;)(me||E<C)&&(ee[Ne+d[L]]=c[E++]);return ee}o(UO,"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 C=-1,L=f.length;++C<L;){var R=f[C],M=T?T(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Zo(d,R,M):Wf(d,R,M)}return d}o(Po,"copyObject");function xj(c,f){return Po(c,gT(c),f)}o(xj,"copySymbols");function Cj(c,f){return Po(c,ZO(c),f)}o(Cj,"copySymbolsIn");function Zd(c,f){return function(d,T){var E=Qe(d)?R2:Qk,C=f?f():{};return E(d,c,Ve(T,2),C)}}o(Zd,"createAggregator");function Zc(c){return nt(function(f,d){var T=-1,E=d.length,C=E>1?d[E-1]:e,L=E>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(E--,C):e,L&&Li(d[0],d[1],L)&&(C=E<3?e:C,E=1),f=Xt(f);++T<E;){var R=d[T];R&&c(f,R,T,C)}return f})}o(Zc,"createAssigner");function $O(c,f){return function(d,T){if(d==null)return d;if(!Ki(d))return c(d,T);for(var E=d.length,C=f?E:-1,L=Xt(d);(f?C--:++C<E)&&T(L[C],C,L)!==!1;);return d}}o($O,"createBaseEach");function BO(c){return function(f,d,T){for(var E=-1,C=Xt(f),L=T(f),R=L.length;R--;){var M=L[c?R:++E];if(d(C[M],M,C)===!1)break}return f}}o(BO,"createBaseFor");function Oj(c,f,d){var T=f&b,E=zf(c);function C(){var L=this&&this!==Kn&&this instanceof C?E:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(Oj,"createBind");function HO(c){return function(f){f=It(f);var d=Xc(f)?Zr(f):e,T=d?d[0]:f.charAt(0),E=d?Ba(d,1).join(""):f.slice(1);return T[c]()+E}}o(HO,"createCaseFirst");function el(c){return function(f){return Fv($I(UI(f).replace(h2,"")),c,"")}}o(el,"createCompounder");function zf(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=Jc(c.prototype),T=c.apply(d,f);return hn(T)?T:d}}o(zf,"createCtor");function Ij(c,f,d){var T=zf(c);function E(){for(var C=arguments.length,L=W(C),R=C,M=tl(E);R--;)L[R]=arguments[R];var Y=C<3&&L[0]!==M&&L[C-1]!==M?[]:wa(L,M);if(C-=Y.length,C<d)return QO(c,f,eg,E.placeholder,e,L,Y,e,e,d-C);var J=this&&this!==Kn&&this instanceof E?T:c;return lr(J,this,L)}return o(E,"wrapper"),E}o(Ij,"createCurry");function GO(c){return function(f,d,T){var E=Xt(f);if(!Ki(f)){var C=Ve(d,3);f=Xn(f),d=o(function(R){return C(E[R],R,E)},"predicate")}var L=c(f,d,T);return L>-1?E[C?f[L]:L]:e}}o(GO,"createFind");function WO(c){return ta(function(f){var d=f.length,T=d,E=_r.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new Dr(r);if(E&&!L&&rg(C)=="wrapper")var L=new _r([],!0)}for(T=L?T:d;++T<d;){C=f[T];var R=rg(C),M=R=="wrapper"?pT(C):e;M&&hT(M[0])&&M[1]==(Z|j|U|re)&&!M[4].length&&M[9]==1?L=L[rg(M[0])].apply(L,M[3]):L=C.length==1&&hT(C)?L[R]():L.thru(C)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Qe(J))return L.plant(J).value();for(var ee=0,me=d?f[ee].apply(this,Y):J;++ee<d;)me=f[ee].call(this,me);return me}})}o(WO,"createFlow");function eg(c,f,d,T,E,C,L,R,M,Y){var J=f&Z,ee=f&b,me=f&I,Ne=f&(j|K),Me=f&Pe,et=me?e:zf(c);function ke(){for(var st=arguments.length,gt=W(st),dr=st;dr--;)gt[dr]=arguments[dr];if(Ne)var Ri=tl(ke),gr=U2(gt,Ri);if(T&&(gt=jO(gt,T,E,Ne)),C&&(gt=UO(gt,C,L,Ne)),st-=gr,Ne&&st<Y){var In=wa(gt,Ri);return QO(c,f,eg,ke.placeholder,d,gt,In,R,M,Y-st)}var no=ee?d:this,oa=me?no[c]:c;return st=gt.length,R?gt=Qj(gt,R):Me&&st>1&>.reverse(),J&&M<st&&(gt.length=M),this&&this!==Kn&&this instanceof ke&&(oa=et||zf(oa)),oa.apply(no,gt)}return o(ke,"wrapper"),ke}o(eg,"createHybrid");function KO(c,f){return function(d,T){return nj(d,c,f(T),{})}}o(KO,"createInverter");function tg(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=ur(d),T=ur(T)):(d=RO(d),T=RO(T)),E=c(d,T)}return E}}o(tg,"createMathOperation");function cT(c){return ta(function(f){return f=un(f,fr(Ve())),nt(function(d){var T=this;return c(f,function(E){return lr(E,T,d)})})})}o(cT,"createOver");function ng(c,f){f=f===e?" ":ur(f);var d=f.length;if(d<2)return d?tT(f,c):f;var T=tT(f,Bd(c/Qc(f)));return Xc(f)?Ba(Zr(T),0,c).join(""):T.slice(0,c)}o(ng,"createPadding");function Nj(c,f,d,T){var E=f&b,C=zf(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=T.length,ee=W(J+M),me=this&&this!==Kn&&this instanceof L?C:c;++Y<J;)ee[Y]=T[Y];for(;M--;)ee[Y++]=arguments[++R];return lr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(Nj,"createPartial");function XO(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),gj(f,d,T,c)}}o(XO,"createRange");function ig(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=kr(f),d=kr(d)),c(f,d)}}o(ig,"createRelationalOperation");function QO(c,f,d,T,E,C,L,R,M,Y){var J=f&j,ee=J?L:e,me=J?e:L,Ne=J?C:e,Me=J?e:C;f|=J?U:se,f&=~(J?se:U),f&F||(f&=~(b|I));var et=[c,f,E,Ne,ee,Me,me,R,M,Y],ke=d.apply(e,et);return hT(c)&&aI(ke,et),ke.placeholder=T,sI(ke,c,f)}o(QO,"createRecurry");function lT(c){var f=jn[c];return function(d,T){if(d=kr(d),T=T==null?0:yi(Ze(T),292),T&&sO(d)){var E=(It(d)+"e").split("e"),C=f(E[0]+"e"+(+E[1]+T));return E=(It(C)+"e").split("e"),+(E[0]+"e"+(+E[1]-T))}return f(d)}}o(lT,"createRound");var Lj=zc&&1/Fd(new zc([,-0]))[1]==Rt?function(c){return new zc(c)}:RT;function qO(c){return function(f){var d=vi(f);return d==ze?jv(f):d==gn?X2(f):j2(f,c(f))}}o(qO,"createToPairs");function ea(c,f,d,T,E,C,L,R){var M=f&I;if(!M&&typeof c!="function")throw new Dr(r);var Y=T?T.length:0;if(Y||(f&=~(U|se),T=E=e),L=L===e?L:Un(Ze(L),0),R=R===e?R:Ze(R),Y-=E?E.length:0,f&se){var J=T,ee=E;T=E=e}var me=M?e:pT(c),Ne=[c,f,d,T,E,J,ee,C,L,R];if(me&&Wj(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:Un(Ne[9]-Y,0),!R&&f&(j|K)&&(f&=~(j|K)),!f||f==b)var Me=Oj(c,f,d);else f==j||f==K?Me=Ij(c,f,R):(f==U||f==(b|U))&&!E.length?Me=Nj(c,f,d,T):Me=eg.apply(e,Ne);var et=me?NO:aI;return sI(et(Me,Ne),c,f)}o(ea,"createWrap");function zO(c,f,d,T){return c===e||to(c,qc[d])&&!Dt.call(T,d)?f:c}o(zO,"customDefaultsAssignIn");function YO(c,f,d,T,E,C){return hn(c)&&hn(f)&&(C.set(f,c),zd(c,f,e,YO,C),C.delete(f)),c}o(YO,"customDefaultsMerge");function Rj(c){return Zf(c)?e:c}o(Rj,"customOmitClone");function JO(c,f,d,T,E,C){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=C.get(c),J=C.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,me=!0,Ne=d&A?new Bs:e;for(C.set(c,f),C.set(f,c);++ee<R;){var Me=c[ee],et=f[ee];if(T)var ke=L?T(et,Me,ee,f,c,C):T(Me,et,ee,c,f,C);if(ke!==e){if(ke)continue;me=!1;break}if(Ne){if(!Dv(f,function(st,gt){if(!jf(Ne,gt)&&(Me===st||E(Me,st,d,T,C)))return Ne.push(gt)})){me=!1;break}}else if(!(Me===et||E(Me,et,d,T,C))){me=!1;break}}return C.delete(c),C.delete(f),me}o(JO,"equalArrays");function Fj(c,f,d,T,E,C,L){switch(d){case Lr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ms:return!(c.byteLength!=f.byteLength||!C(new kd(c),new kd(f)));case O:case S:case jt:return to(+c,+f);case V:return c.name==f.name&&c.message==f.message;case sr:case hi:return c==f+"";case ze:var R=jv;case gn:var M=T&v;if(R||(R=Fd),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;T|=A,L.set(c,f);var J=JO(R(c),R(f),T,E,C,L);return L.delete(c),J;case Wt:if(Gf)return Gf.call(c)==Gf.call(f)}return!1}o(Fj,"equalByTag");function Dj(c,f,d,T,E,C){var L=d&v,R=fT(c),M=R.length,Y=fT(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var me=R[ee];if(!(L?me in f:Dt.call(f,me)))return!1}var Ne=C.get(c),Me=C.get(f);if(Ne&&Me)return Ne==f&&Me==c;var et=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ee<M;){me=R[ee];var st=c[me],gt=f[me];if(T)var dr=L?T(gt,st,me,f,c,C):T(st,gt,me,c,f,C);if(!(dr===e?st===gt||E(st,gt,d,T,C):dr)){et=!1;break}ke||(ke=me=="constructor")}if(et&&!ke){var Ri=c.constructor,gr=f.constructor;Ri!=gr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof gr=="function"&&gr instanceof gr)&&(et=!1)}return C.delete(c),C.delete(f),et}o(Dj,"equalObjects");function ta(c){return vT(rI(c,e,dI),c+"")}o(ta,"flatRest");function fT(c){return vO(c,Xn,gT)}o(fT,"getAllKeys");function uT(c){return vO(c,Xi,ZO)}o(uT,"getAllKeysIn");var pT=Gd?function(c){return Gd.get(c)}:RT;function rg(c){for(var f=c.name+"",d=Yc[f],T=Dt.call(Yc,f)?d.length:0;T--;){var E=d[T],C=E.func;if(C==null||C==c)return E.name}return f}o(rg,"getFuncName");function tl(c){var f=Dt.call(P,"placeholder")?P:c;return f.placeholder}o(tl,"getHolder");function Ve(){var c=P.iteratee||NT;return c=c===NT?EO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function og(c,f){var d=c.__data__;return $j(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(og,"getMapData");function dT(c){for(var f=Xn(c),d=f.length;d--;){var T=f[d],E=c[T];f[d]=[T,E,nI(E)]}return f}o(dT,"getMatchData");function Ws(c,f){var d=G2(c,f);return bO(d)?d:e}o(Ws,"getNative");function _j(c){var f=Dt.call(c,Us),d=c[Us];try{c[Us]=e;var T=!0}catch{}var E=wd.call(c);return T&&(f?c[Us]=d:delete c[Us]),E}o(_j,"getRawTag");var gT=$v?function(c){return c==null?[]:(c=Xt(c),_a($v(c),function(f){return oO.call(c,f)}))}:FT,ZO=$v?function(c){for(var f=[];c;)Va(f,gT(c)),c=jd(c);return f}:FT,vi=Ni;(Bv&&vi(new Bv(new ArrayBuffer(1)))!=Lr||$f&&vi(new $f)!=ze||Hv&&vi(Hv.resolve())!=Gt||zc&&vi(new zc)!=gn||Bf&&vi(new Bf)!=Gi)&&(vi=o(function(c){var f=Ni(c),d=f==ln?c.constructor:e,T=d?Ks(d):"";if(T)switch(T){case hk:return Lr;case yk:return ze;case vk:return Gt;case Tk:return gn;case bk:return Gi}return f},"getTag"));function Vj(c,f,d){for(var T=-1,E=d.length;++T<E;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=yi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(Vj,"getView");function wj(c){var f=c.match($M);return f?f[1].split(BM):[]}o(wj,"getWrapDetails");function eI(c,f,d){f=$a(f,c);for(var T=-1,E=f.length,C=!1;++T<E;){var L=xo(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=E?C:(E=c==null?0:c.length,!!E&&pg(E)&&na(L,E)&&(Qe(c)||Xs(c)))}o(eI,"hasPath");function Mj(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Dt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(Mj,"initCloneArray");function tI(c){return typeof c.constructor=="function"&&!Yf(c)?Jc(jd(c)):{}}o(tI,"initCloneObject");function kj(c,f,d){var T=c.constructor;switch(f){case Ms:return sT(c);case O:case S:return new T(+c);case Lr:return Ej(c,d);case Vf:case wf:case Mf:case ks:case k:case B:case Q:case ce:case Le:return MO(c,d);case ze:return new T;case jt:case hi:return new T(c);case sr:return Aj(c);case gn:return new T;case Wt:return Sj(c)}}o(kj,"initCloneByTag");function jj(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(UM,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}o(Vj,"insertWrapDetails");function wj(c){return Xe(c)||Xs(c)||!!(oO&&c&&c[oO])}o(wj,"isFlattenable");function na(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&XM.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)?to(d[f],c):!1}o(Li,"isIterateeCall");function gT(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ur(c)?!0:Cd.test(c)||!sr.test(c)||f!=null&&c in Xt(f)}o(gT,"isKey");function Mj(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(Mj,"isKeyable");function mT(c){var f=rg(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var T=uT(d);return!!T&&c===T[0]}o(mT,"isLaziable");function kj(c){return!!tO&&tO in c}o(kj,"isMasked");var jj=_d?ia:FT;function Yf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||qc;return c===d}o(Yf,"isPrototype");function tI(c){return c===c&&!hn(c)}o(tI,"isStrictComparable");function nI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Xt(d))}}o(nI,"matchesStrictComparable");function Uj(c){var f=fg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(Uj,"memoizeCapped");function $j(c,f){var d=c[1],T=f[1],E=d|T,C=E<(b|I|Z),L=T==Z&&d==j||T==Z&&d==re&&c[7].length<=f[8]||T==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(C||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?kO(M,R,f[4]):R,c[4]=M?wa(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?jO(M,R,f[6]):R,c[6]=M?wa(c[5],u):f[6]),R=f[7],R&&(c[7]=R),T&Z&&(c[8]=c[8]==null?f[8]:yi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o($j,"mergeData");function Bj(c){var f=[];if(c!=null)for(var d in Xt(c))f.push(d);return f}o(Bj,"nativeKeysIn");function Hj(c){return wd.call(c)}o(Hj,"objectToString");function iI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var T=arguments,E=-1,C=Un(T.length-f,0),L=W(C);++E<C;)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(iI,"overRest");function rI(c,f){return f.length<2?c:Gs(c,Vr(f,0,-1))}o(rI,"parent");function Gj(c,f){for(var d=c.length,T=yi(f.length,d),E=Wi(c);T--;){var C=f[T];c[T]=na(C,d)?E[C]:e}return c}o(Gj,"reorder");function hT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(hT,"safeGet");var oI=sI(IO),Jf=ok||function(c,f){return Kn.setTimeout(c,f)},yT=sI(dj);function aI(c,f,d){var T=f+"";return yT(c,Vj(T,Wj(Fj(T),d)))}o(aI,"setWrapToString");function sI(c){var f=0,d=0;return function(){var T=lk(),E=Ue-(T-d);if(d=T,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(sI,"shortOut");function ag(c,f){var d=-1,T=c.length,E=T-1;for(f=f===e?T:f;++d<f;){var C=Zv(d,E),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(ag,"shuffleSelf");var cI=Uj(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Ev,function(d,T,E,C){f.push(E?C.replace($M,"$1"):T||d)}),f});function xo(c){if(typeof c=="string"||ur(c))return c;var f=c+"";return f=="0"&&1/c==-Rt?"-0":f}o(xo,"toKey");function Ks(c){if(c!=null){try{return Vd.call(c)}catch{}try{return c+""}catch{}}return""}o(Ks,"toSource");function Wj(c,f){return Rr(Fe,function(d){var T="_."+d[0];f&d[1]&&!Ld(c,T)&&c.push(T)}),c.sort()}o(Wj,"updateWrapDetails");function lI(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(lI,"wrapperClone");function Kj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Un(Je(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var E=0,C=0,L=W(Bd(T/f));E<T;)L[C++]=Vr(c,E,E+=f);return L}o(Kj,"chunk");function Xj(c){for(var f=-1,d=c==null?0:c.length,T=0,E=[];++f<d;){var C=c[f];C&&(E[T++]=C)}return E}o(Xj,"compact");function Qj(){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 Va(Xe(d)?Wi(d):[d],ni(f,1))}o(Qj,"concat");var qj=nt(function(c,f){return On(c)?Kf(c,ni(f,1,On,!0)):[]}),zj=nt(function(c,f){var d=wr(f);return On(d)&&(d=e),On(c)?Kf(c,ni(f,1,On,!0),Ve(d,2)):[]}),Yj=nt(function(c,f){var d=wr(f);return On(d)&&(d=e),On(c)?Kf(c,ni(f,1,On,!0),e,d):[]});function Jj(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(Jj,"drop");function Zj(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(Zj,"dropRight");function eU(c,f){return c&&c.length?Jd(c,Ve(f,3),!0,!0):[]}o(eU,"dropRightWhile");function tU(c,f){return c&&c.length?Jd(c,Ve(f,3),!0):[]}o(tU,"dropWhile");function nU(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),Qk(c,f,d,T)):[]}o(nU,"fill");function fI(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=Un(T+E,0)),Rd(c,Ve(f,3),E)}o(fI,"findIndex");function uI(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?Un(T+E,0):yi(E,T-1)),Rd(c,Ve(f,3),E,!0)}o(uI,"findLastIndex");function pI(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(pI,"flatten");function iU(c){var f=c==null?0:c.length;return f?ni(c,Rt):[]}o(iU,"flattenDeep");function rU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(rU,"flattenDepth");function oU(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(oU,"fromPairs");function dI(c){return c&&c.length?c[0]:e}o(dI,"head");function aU(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=Un(T+E,0)),Kc(c,f,E)}o(aU,"indexOf");function sU(c){var f=c==null?0:c.length;return f?Vr(c,0,-1):[]}o(sU,"initial");var cU=nt(function(c){var f=un(c,rT);return f.length&&f[0]===c[0]?Qv(f):[]}),lU=nt(function(c){var f=wr(c),d=un(c,rT);return f===wr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Qv(d,Ve(f,2)):[]}),fU=nt(function(c){var f=wr(c),d=un(c,rT);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Qv(d,e,f):[]});function uU(c,f){return c==null?"":sk.call(c,f)}o(uU,"join");function wr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(wr,"last");function pU(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?Un(T+E,0):yi(E,T-1)),f===f?W2(c,f,E):Rd(c,XC,E,!0)}o(pU,"lastIndexOf");function dU(c,f){return c&&c.length?PO(c,Je(f)):e}o(dU,"nth");var gU=nt(gI);function gI(c,f){return c&&c.length&&f&&f.length?Jv(c,f):c}o(gI,"pullAll");function mU(c,f,d){return c&&c.length&&f&&f.length?Jv(c,f,Ve(d,2)):c}o(mU,"pullAllBy");function hU(c,f,d){return c&&c.length&&f&&f.length?Jv(c,f,e,d):c}o(hU,"pullAllWith");var yU=ta(function(c,f){var d=c==null?0:c.length,T=Gv(c,f);return OO(c,un(f,function(E){return na(E,d)?+E:E}).sort(MO)),T});function vU(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,E=[],C=c.length;for(f=Ve(f,3);++T<C;){var L=c[T];f(L,T,c)&&(d.push(L),E.push(T))}return OO(c,E),d}o(vU,"remove");function vT(c){return c==null?c:uk.call(c)}o(vT,"reverse");function TU(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(TU,"slice");function bU(c,f){return Yd(c,f)}o(bU,"sortedIndex");function EU(c,f,d){return tT(c,f,Ve(d,2))}o(EU,"sortedIndexBy");function AU(c,f){var d=c==null?0:c.length;if(d){var T=Yd(c,f);if(T<d&&to(c[T],f))return T}return-1}o(AU,"sortedIndexOf");function SU(c,f){return Yd(c,f,!0)}o(SU,"sortedLastIndex");function PU(c,f,d){return tT(c,f,Ve(d,2),!0)}o(PU,"sortedLastIndexBy");function xU(c,f){var d=c==null?0:c.length;if(d){var T=Yd(c,f,!0)-1;if(to(c[T],f))return T}return-1}o(xU,"sortedLastIndexOf");function CU(c){return c&&c.length?NO(c):[]}o(CU,"sortedUniq");function OU(c,f){return c&&c.length?NO(c,Ve(f,2)):[]}o(OU,"sortedUniqBy");function IU(c){var f=c==null?0:c.length;return f?Vr(c,1,f):[]}o(IU,"tail");function NU(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),Vr(c,0,f<0?0:f)):[]}o(NU,"take");function LU(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(LU,"takeRight");function RU(c,f){return c&&c.length?Jd(c,Ve(f,3),!1,!0):[]}o(RU,"takeRightWhile");function FU(c,f){return c&&c.length?Jd(c,Ve(f,3)):[]}o(FU,"takeWhile");var DU=nt(function(c){return Ua(ni(c,1,On,!0))}),_U=nt(function(c){var f=wr(c);return On(f)&&(f=e),Ua(ni(c,1,On,!0),Ve(f,2))}),VU=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,Ua(ni(c,1,On,!0),e,f)});function wU(c){return c&&c.length?Ua(c):[]}o(wU,"uniq");function MU(c,f){return c&&c.length?Ua(c,Ve(f,2)):[]}o(MU,"uniqBy");function kU(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ua(c,e,f):[]}o(kU,"uniqWith");function TT(c){if(!(c&&c.length))return[];var f=0;return c=_a(c,function(d){if(On(d))return f=Un(d.length,f),!0}),wv(f,function(d){return un(c,Dv(d))})}o(TT,"unzip");function mI(c,f){if(!(c&&c.length))return[];var d=TT(c);return f==null?d:un(d,function(T){return cr(f,e,T)})}o(mI,"unzipWith");var jU=nt(function(c,f){return On(c)?Kf(c,f):[]}),UU=nt(function(c){return iT(_a(c,On))}),$U=nt(function(c){var f=wr(c);return On(f)&&(f=e),iT(_a(c,On),Ve(f,2))}),BU=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,iT(_a(c,On),e,f)}),HU=nt(TT);function GU(c,f){return DO(c||[],f||[],Wf)}o(GU,"zipObject");function WU(c,f){return DO(c||[],f||[],qf)}o(WU,"zipObjectDeep");var KU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,mI(c,d)});function hI(c){var f=P(c);return f.__chain__=!0,f}o(hI,"chain");function XU(c,f){return f(c),c}o(XU,"tap");function sg(c,f){return f(c)}o(sg,"thru");var QU=ta(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,E=o(function(C){return Gv(C,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:sg,args:[E],thisArg:e}),new Dr(T,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function qU(){return hI(this)}o(qU,"wrapperChain");function zU(){return new Dr(this.value(),this.__chain__)}o(zU,"wrapperCommit");function YU(){this.__values__===e&&(this.__values__=LI(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(YU,"wrapperNext");function JU(){return this}o(JU,"wrapperToIterator");function ZU(c){for(var f,d=this;d instanceof Kd;){var T=lI(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(ZU,"wrapperPlant");function e4(){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:sg,args:[vT],thisArg:e}),new Dr(f,this.__chain__)}return this.thru(vT)}o(e4,"wrapperReverse");function t4(){return FO(this.__wrapped__,this.__actions__)}o(t4,"wrapperValue");var n4=Zd(function(c,f,d){Dt.call(c,d)?++c[d]:Zo(c,d,1)});function i4(c,f,d){var T=Xe(c)?WC:Xk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(i4,"every");function r4(c,f){var d=Xe(c)?_a:mO;return d(c,Ve(f,3))}o(r4,"filter");var o4=HO(fI),a4=HO(uI);function s4(c,f){return ni(cg(c,f),1)}o(s4,"flatMap");function c4(c,f){return ni(cg(c,f),Rt)}o(c4,"flatMapDeep");function l4(c,f,d){return d=d===e?1:Je(d),ni(cg(c,f),d)}o(l4,"flatMapDepth");function yI(c,f){var d=Xe(c)?Rr:ja;return d(c,Ve(f,3))}o(yI,"forEach");function vI(c,f){var d=Xe(c)?I2:gO;return d(c,Ve(f,3))}o(vI,"forEachRight");var f4=Zd(function(c,f,d){Dt.call(c,d)?c[d].push(f):Zo(c,d,[f])});function u4(c,f,d,T){c=Ki(c)?c:il(c),d=d&&!T?Je(d):0;var E=c.length;return d<0&&(d=Un(E+d,0)),dg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Kc(c,f,d)>-1}o(u4,"includes");var p4=nt(function(c,f,d){var T=-1,E=typeof f=="function",C=Ki(c)?W(c.length):[];return ja(c,function(L){C[++T]=E?cr(f,L,d):Xf(L,f,d)}),C}),d4=Zd(function(c,f,d){Zo(c,d,f)});function cg(c,f){var d=Xe(c)?un:EO;return d(c,Ve(f,3))}o(cg,"map");function g4(c,f,d,T){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=T?e:d,Xe(d)||(d=d==null?[]:[d]),xO(c,f,d))}o(g4,"orderBy");var m4=Zd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function h4(c,f,d){var T=Xe(c)?Rv:qC,E=arguments.length<3;return T(c,Ve(f,4),d,E,ja)}o(h4,"reduce");function y4(c,f,d){var T=Xe(c)?N2:qC,E=arguments.length<3;return T(c,Ve(f,4),d,E,gO)}o(y4,"reduceRight");function T4(c,f){var d=Xe(c)?_a:mO;return d(c,ug(Ve(f,3)))}o(T4,"reject");function b4(c){var f=Xe(c)?fO:uj;return f(c)}o(b4,"sample");function E4(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Je(f);var T=Xe(c)?Bk:pj;return T(c,f)}o(E4,"sampleSize");function A4(c){var f=Xe(c)?Hk:gj;return f(c)}o(A4,"shuffle");function S4(c){if(c==null)return 0;if(Ki(c))return dg(c)?Qc(c):c.length;var f=vi(c);return f==Qe||f==gn?c.size:zv(c).length}o(S4,"size");function P4(c,f,d){var T=Xe(c)?Fv:mj;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(P4,"some");var x4=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]]),xO(c,ni(f,1),[])}),lg=rk||function(){return Kn.Date.now()};function C4(c,f){if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(C4,"after");function TI(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,ea(c,Z,e,e,e,e,f)}o(TI,"ary");function bI(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(bI,"before");var bT=nt(function(c,f,d){var T=b;if(d.length){var E=wa(d,tl(bT));T|=U}return ea(c,T,f,d,E)}),EI=nt(function(c,f,d){var T=b|I;if(d.length){var E=wa(d,tl(EI));T|=U}return ea(f,T,c,d,E)});function AI(c,f,d){f=d?e:f;var T=ea(c,j,e,e,e,e,e,f);return T.placeholder=AI.placeholder,T}o(AI,"curry");function SI(c,f,d){f=d?e:f;var T=ea(c,K,e,e,e,e,e,f);return T.placeholder=SI.placeholder,T}o(SI,"curryRight");function PI(c,f,d){var T,E,C,L,R,M,Y=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,C=ee?Un(Mr(d.maxWait)||0,f):C,me="trailing"in d?!!d.trailing:me);function Ne(In){var no=T,oa=E;return T=E=e,Y=In,L=c.apply(oa,no),L}o(Ne,"invokeFunc");function Me(In){return Y=In,R=Jf(st,f),J?Ne(In):L}o(Me,"leadingEdge");function Ze(In){var no=In-M,oa=In-Y,HI=f-no;return ee?yi(HI,C-oa):HI}o(Ze,"remainingWait");function ke(In){var no=In-M,oa=In-Y;return M===e||no>=f||no<0||ee&&oa>=C}o(ke,"shouldInvoke");function st(){var In=lg();if(ke(In))return gt(In);R=Jf(st,Ze(In))}o(st,"timerExpired");function gt(In){return R=e,me&&T?Ne(In):(T=E=e,L)}o(gt,"trailingEdge");function pr(){R!==e&&_O(R),Y=0,T=M=E=R=e}o(pr,"cancel");function Ri(){return R===e?L:gt(lg())}o(Ri,"flush");function dr(){var In=lg(),no=ke(In);if(T=arguments,E=this,M=In,no){if(R===e)return Me(M);if(ee)return _O(R),R=Jf(st,f),Ne(M)}return R===e&&(R=Jf(st,f)),L}return o(dr,"debounced"),dr.cancel=pr,dr.flush=Ri,dr}o(PI,"debounce");var O4=nt(function(c,f){return dO(c,1,f)}),I4=nt(function(c,f,d){return dO(c,Mr(f)||0,d)});function N4(c){return ea(c,Pe)}o(N4,"flip");function fg(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],C=d.cache;if(C.has(E))return C.get(E);var L=c.apply(this,T);return d.cache=C.set(E,L)||C,L},"memoized");return d.cache=new(fg.Cache||Jo),d}o(fg,"memoize"),fg.Cache=Jo;function ug(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(ug,"negate");function L4(c){return bI(2,c)}o(L4,"once");var R4=hj(function(c,f){f=f.length==1&&Xe(f[0])?un(f[0],lr(Ve())):un(ni(f,1),lr(Ve()));var d=f.length;return nt(function(T){for(var E=-1,C=yi(T.length,d);++E<C;)T[E]=f[E].call(this,T[E]);return cr(c,this,T)})}),ET=nt(function(c,f){var d=wa(f,tl(ET));return ea(c,U,e,f,d)}),xI=nt(function(c,f){var d=wa(f,tl(xI));return ea(c,ae,e,f,d)}),F4=ta(function(c,f){return ea(c,re,e,e,e,f)});function D4(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Je(f),nt(c,f)}o(D4,"rest");function _4(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:Un(Je(f),0),nt(function(d){var T=d[f],E=Ba(d,0,f);return T&&Va(E,T),cr(c,this,E)})}o(_4,"spread");function V4(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),PI(c,f,{leading:T,maxWait:f,trailing:E})}o(V4,"throttle");function w4(c){return TI(c,1)}o(w4,"unary");function M4(c,f){return ET(oT(f),c)}o(M4,"wrap");function k4(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(k4,"castArray");function j4(c){return _r(c,m)}o(j4,"clone");function U4(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(U4,"cloneWith");function $4(c){return _r(c,p|m)}o($4,"cloneDeep");function B4(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(B4,"cloneDeepWith");function H4(c,f){return f==null||pO(c,f,Xn(f))}o(H4,"conformsTo");function to(c,f){return c===f||c!==c&&f!==f}o(to,"eq");var G4=ig(Xv),W4=ig(function(c,f){return c>=f}),Xs=vO(function(){return arguments}())?vO:function(c){return Tn(c)&&Dt.call(c,"callee")&&!rO.call(c,"callee")},Xe=W.isArray,K4=jC?lr(jC):Zk;function Ki(c){return c!=null&&pg(c.length)&&!ia(c)}o(Ki,"isArrayLike");function On(c){return Tn(c)&&Ki(c)}o(On,"isArrayLikeObject");function X4(c){return c===!0||c===!1||Tn(c)&&Ni(c)==O}o(X4,"isBoolean");var Ha=ak||FT,Q4=UC?lr(UC):ej;function q4(c){return Tn(c)&&c.nodeType===1&&!Zf(c)}o(q4,"isElement");function z4(c){if(c==null)return!0;if(Ki(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||Ha(c)||nl(c)||Xs(c)))return!c.length;var f=vi(c);if(f==Qe||f==gn)return!c.size;if(Yf(c))return!zv(c).length;for(var d in c)if(Dt.call(c,d))return!1;return!0}o(z4,"isEmpty");function Y4(c,f){return Qf(c,f)}o(Y4,"isEqual");function J4(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?Qf(c,f,e,d):!!T}o(J4,"isEqualWith");function AT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Zf(c)}o(AT,"isError");function Z4(c){return typeof c=="number"&&aO(c)}o(Z4,"isFinite");function ia(c){if(!hn(c))return!1;var f=Ni(c);return f==_e||f==Ft||f==at||f==ti}o(ia,"isFunction");function CI(c){return typeof c=="number"&&c==Je(c)}o(CI,"isInteger");function pg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(pg,"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 OI=$C?lr($C):nj;function e$(c,f){return c===f||qv(c,f,pT(f))}o(e$,"isMatch");function t$(c,f,d){return d=typeof d=="function"?d:e,qv(c,f,pT(f),d)}o(t$,"isMatchWith");function n$(c){return II(c)&&c!=+c}o(n$,"isNaN");function i$(c){if(jj(c))throw new We(i);return TO(c)}o(i$,"isNative");function r$(c){return c===null}o(r$,"isNull");function o$(c){return c==null}o(o$,"isNil");function II(c){return typeof c=="number"||Tn(c)&&Ni(c)==jt}o(II,"isNumber");function Zf(c){if(!Tn(c)||Ni(c)!=ln)return!1;var f=jd(c);if(f===null)return!0;var d=Dt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Vd.call(d)==ek}o(Zf,"isPlainObject");var ST=BC?lr(BC):ij;function a$(c){return CI(c)&&c>=-Re&&c<=Re}o(a$,"isSafeInteger");var NI=HC?lr(HC):rj;function dg(c){return typeof c=="string"||!Xe(c)&&Tn(c)&&Ni(c)==hi}o(dg,"isString");function ur(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Wt}o(ur,"isSymbol");var nl=GC?lr(GC):oj;function s$(c){return c===e}o(s$,"isUndefined");function c$(c){return Tn(c)&&vi(c)==Gi}o(c$,"isWeakMap");function l$(c){return Tn(c)&&Ni(c)==_f}o(l$,"isWeakSet");var f$=ig(Yv),u$=ig(function(c,f){return c<=f});function LI(c){if(!c)return[];if(Ki(c))return dg(c)?Zr(c):Wi(c);if(Uf&&c[Uf])return B2(c[Uf]());var f=vi(c),d=f==Qe?kv:f==gn?Fd:il;return d(c)}o(LI,"toArray");function ra(c){if(!c)return c===0?c:0;if(c=Mr(c),c===Rt||c===-Rt){var f=c<0?-1:1;return f*Ii}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 RI(c){return c?Hs(Je(c),0,kt):0}o(RI,"toLength");function Mr(c){if(typeof c=="number")return c;if(ur(c))return Ot;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=zC(c);var d=GM.test(c);return d||KM.test(c)?x2(c.slice(2),d?2:8):HM.test(c)?Ot:+c}o(Mr,"toNumber");function FI(c){return Po(c,Xi(c))}o(FI,"toPlainObject");function p$(c){return c?Hs(Je(c),-Re,Re):c===0?c:0}o(p$,"toSafeInteger");function It(c){return c==null?"":fr(c)}o(It,"toString");var d$=Zc(function(c,f){if(Yf(f)||Ki(f)){Po(f,Xn(f),c);return}for(var d in f)Dt.call(f,d)&&Wf(c,d,f[d])}),DI=Zc(function(c,f){Po(f,Xi(f),c)}),gg=Zc(function(c,f,d,T){Po(f,Xi(f),c,T)}),g$=Zc(function(c,f,d,T){Po(f,Xn(f),c,T)}),m$=ta(Gv);function h$(c,f){var d=Jc(c);return f==null?d:uO(d,f)}o(h$,"create");var y$=nt(function(c,f){c=Xt(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 C=f[d],L=Xi(C),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||to(J,qc[Y])&&!Dt.call(c,Y))&&(c[Y]=C[Y])}return c}),v$=nt(function(c){return c.push(e,zO),cr(_I,e,c)});function T$(c,f){return KC(c,Ve(f,3),So)}o(T$,"findKey");function b$(c,f){return KC(c,Ve(f,3),Kv)}o(b$,"findLastKey");function E$(c,f){return c==null?c:Wv(c,Ve(f,3),Xi)}o(E$,"forIn");function A$(c,f){return c==null?c:hO(c,Ve(f,3),Xi)}o(A$,"forInRight");function S$(c,f){return c&&So(c,Ve(f,3))}o(S$,"forOwn");function P$(c,f){return c&&Kv(c,Ve(f,3))}o(P$,"forOwnRight");function x$(c){return c==null?[]:qd(c,Xn(c))}o(x$,"functions");function C$(c){return c==null?[]:qd(c,Xi(c))}o(C$,"functionsIn");function PT(c,f,d){var T=c==null?e:Gs(c,f);return T===e?d:T}o(PT,"get");function O$(c,f){return c!=null&&ZO(c,f,qk)}o(O$,"has");function xT(c,f){return c!=null&&ZO(c,f,zk)}o(xT,"hasIn");var I$=WO(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=wd.call(f)),c[f]=d},OT(Qi)),N$=WO(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=wd.call(f)),Dt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),L$=nt(Xf);function Xn(c){return Ki(c)?lO(c):zv(c)}o(Xn,"keys");function Xi(c){return Ki(c)?lO(c,!0):aj(c)}o(Xi,"keysIn");function R$(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,C){Zo(d,f(T,E,C),T)}),d}o(R$,"mapKeys");function F$(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,C){Zo(d,E,f(T,E,C))}),d}o(F$,"mapValues");var D$=Zc(function(c,f,d){zd(c,f,d)}),_I=Zc(function(c,f,d,T){zd(c,f,d,T)}),_$=ta(function(c,f){var d={};if(c==null)return d;var T=!1;f=un(f,function(C){return C=$a(C,c),T||(T=C.length>1),C}),Po(c,fT(c),d),T&&(d=_r(d,p|g|m,Oj));for(var E=f.length;E--;)nT(d,f[E]);return d});function V$(c,f){return VI(c,ug(Ve(f)))}o(V$,"omitBy");var w$=ta(function(c,f){return c==null?{}:cj(c,f)});function VI(c,f){if(c==null)return{};var d=un(fT(c),function(T){return[T]});return f=Ve(f),CO(c,d,function(T,E){return f(T,E[0])})}o(VI,"pickBy");function M$(c,f,d){f=$a(f,c);var T=-1,E=f.length;for(E||(E=1,c=e);++T<E;){var C=c==null?e:c[xo(f[T])];C===e&&(T=E,C=d),c=ia(C)?C.call(c):C}return c}o(M$,"result");function k$(c,f,d){return c==null?c:qf(c,f,d)}o(k$,"set");function j$(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:qf(c,f,d,T)}o(j$,"setWith");var wI=QO(Xn),MI=QO(Xi);function U$(c,f,d){var T=Xe(c),E=T||Ha(c)||nl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;E?d=T?new C:[]:hn(c)?d=ia(C)?Jc(jd(c)):{}:d={}}return(E?Rr:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(U$,"transform");function $$(c,f){return c==null?!0:nT(c,f)}o($$,"unset");function B$(c,f,d){return c==null?c:RO(c,f,oT(d))}o(B$,"update");function H$(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:RO(c,f,oT(d),T)}o(H$,"updateWith");function il(c){return c==null?[]:Mv(c,Xn(c))}o(il,"values");function G$(c){return c==null?[]:Mv(c,Xi(c))}o(G$,"valuesIn");function W$(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),Hs(Mr(c),f,d)}o(W$,"clamp");function K$(c,f,d){return f=ra(f),d===e?(d=f,f=0):d=ra(d),c=Mr(c),Yk(c,f,d)}o(K$,"inRange");function X$(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=sO();return yi(c+E*(f-c+P2("1e-"+((E+"").length-1))),f)}return Zv(c,f)}o(X$,"random");var Q$=el(function(c,f,d){return f=f.toLowerCase(),c+(d?kI(f):f)});function kI(c){return CT(It(c).toLowerCase())}o(kI,"capitalize");function jI(c){return c=It(c),c&&c.replace(QM,M2).replace(d2,"")}o(jI,"deburr");function q$(c,f,d){c=It(c),f=fr(f);var T=c.length;d=d===e?T:Hs(Je(d),0,T);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(q$,"endsWith");function z$(c){return c=It(c),c&&Ie.test(c)?c.replace(be,k2):c}o(z$,"escape");function Y$(c){return c=It(c),c&&_M.test(c)?c.replace(kf,"\\$&"):c}o(Y$,"escapeRegExp");var J$=el(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),Z$=el(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),eB=BO("toLowerCase");function tB(c,f,d){c=It(c),f=Je(f);var T=f?Qc(c):0;if(!f||T>=f)return c;var E=(f-T)/2;return ng(Hd(E),d)+c+ng(Bd(E),d)}o(tB,"pad");function nB(c,f,d){c=It(c),f=Je(f);var T=f?Qc(c):0;return f&&T<f?c+ng(f-T,d):c}o(nB,"padEnd");function iB(c,f,d){c=It(c),f=Je(f);var T=f?Qc(c):0;return f&&T<f?ng(f-T,d)+c:c}o(iB,"padStart");function rB(c,f,d){return d||f==null?f=0:f&&(f=+f),fk(It(c).replace(Av,""),f||0)}o(rB,"parseInt");function oB(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Je(f),eT(It(c),f)}o(oB,"repeat");function aB(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(aB,"replace");var sB=el(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function cB(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?kt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!ST(f))&&(f=fr(f),!f&&Xc(c))?Ba(Zr(c),0,d):c.split(f,d)):[]}o(cB,"split");var lB=el(function(c,f,d){return c+(d?" ":"")+CT(f)});function fB(c,f,d){return c=It(c),d=d==null?0:Hs(Je(d),0,c.length),f=fr(f),c.slice(d,d+f.length)==f}o(fB,"startsWith");function uB(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=It(c),f=gg({},f,T,qO);var E=gg({},f.imports,T.imports,qO),C=Xn(E),L=Mv(E,C),R,M,Y=0,J=f.interpolate||Od,ee="__p += '",me=jv((f.escape||Od).source+"|"+J.source+"|"+(J===fn?BM:Od).source+"|"+(f.evaluate||Od).source+"|$","g"),Ne="//# sourceURL="+(Dt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++T2+"]")+`
|
|
272
|
-
`;c.replace(me,function(ke,st,gt,
|
|
271
|
+
`)}o(jj,"insertWrapDetails");function Uj(c){return Qe(c)||Xs(c)||!!(aO&&c&&c[aO])}o(Uj,"isFlattenable");function na(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&YM.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)?to(d[f],c):!1}o(Li,"isIterateeCall");function mT(c,f){if(Qe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||pr(c)?!0:Cd.test(c)||!cr.test(c)||f!=null&&c in Xt(f)}o(mT,"isKey");function $j(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o($j,"isKeyable");function hT(c){var f=rg(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var T=pT(d);return!!T&&c===T[0]}o(hT,"isLaziable");function Bj(c){return!!nO&&nO in c}o(Bj,"isMasked");var Hj=_d?ia:DT;function Yf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||qc;return c===d}o(Yf,"isPrototype");function nI(c){return c===c&&!hn(c)}o(nI,"isStrictComparable");function iI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Xt(d))}}o(iI,"matchesStrictComparable");function Gj(c){var f=fg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(Gj,"memoizeCapped");function Wj(c,f){var d=c[1],T=f[1],E=d|T,C=E<(b|I|Z),L=T==Z&&d==j||T==Z&&d==re&&c[7].length<=f[8]||T==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(C||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?jO(M,R,f[4]):R,c[4]=M?wa(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?UO(M,R,f[6]):R,c[6]=M?wa(c[5],u):f[6]),R=f[7],R&&(c[7]=R),T&Z&&(c[8]=c[8]==null?f[8]:yi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(Wj,"mergeData");function Kj(c){var f=[];if(c!=null)for(var d in Xt(c))f.push(d);return f}o(Kj,"nativeKeysIn");function Xj(c){return wd.call(c)}o(Xj,"objectToString");function rI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var T=arguments,E=-1,C=Un(T.length-f,0),L=W(C);++E<C;)L[E]=T[f+E];E=-1;for(var R=W(f+1);++E<f;)R[E]=T[E];return R[f]=d(L),lr(c,this,R)}}o(rI,"overRest");function oI(c,f){return f.length<2?c:Gs(c,wr(f,0,-1))}o(oI,"parent");function Qj(c,f){for(var d=c.length,T=yi(f.length,d),E=Wi(c);T--;){var C=f[T];c[T]=na(C,d)?E[C]:e}return c}o(Qj,"reorder");function yT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(yT,"safeGet");var aI=cI(NO),Jf=lk||function(c,f){return Kn.setTimeout(c,f)},vT=cI(yj);function sI(c,f,d){var T=f+"";return vT(c,jj(T,qj(wj(T),d)))}o(sI,"setWrapToString");function cI(c){var f=0,d=0;return function(){var T=dk(),E=Ue-(T-d);if(d=T,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(cI,"shortOut");function ag(c,f){var d=-1,T=c.length,E=T-1;for(f=f===e?T:f;++d<f;){var C=eT(d,E),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(ag,"shuffleSelf");var lI=Gj(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Av,function(d,T,E,C){f.push(E?C.replace(WM,"$1"):T||d)}),f});function xo(c){if(typeof c=="string"||pr(c))return c;var f=c+"";return f=="0"&&1/c==-Rt?"-0":f}o(xo,"toKey");function Ks(c){if(c!=null){try{return Vd.call(c)}catch{}try{return c+""}catch{}}return""}o(Ks,"toSource");function qj(c,f){return Fr(Fe,function(d){var T="_."+d[0];f&d[1]&&!Ld(c,T)&&c.push(T)}),c.sort()}o(qj,"updateWrapDetails");function fI(c){if(c instanceof pt)return c.clone();var f=new _r(c.__wrapped__,c.__chain__);return f.__actions__=Wi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(fI,"wrapperClone");function zj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Un(Ze(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var E=0,C=0,L=W(Bd(T/f));E<T;)L[C++]=wr(c,E,E+=f);return L}o(zj,"chunk");function Yj(c){for(var f=-1,d=c==null?0:c.length,T=0,E=[];++f<d;){var C=c[f];C&&(E[T++]=C)}return E}o(Yj,"compact");function Jj(){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 Va(Qe(d)?Wi(d):[d],ni(f,1))}o(Jj,"concat");var Zj=nt(function(c,f){return On(c)?Kf(c,ni(f,1,On,!0)):[]}),eU=nt(function(c,f){var d=Mr(f);return On(d)&&(d=e),On(c)?Kf(c,ni(f,1,On,!0),Ve(d,2)):[]}),tU=nt(function(c,f){var d=Mr(f);return On(d)&&(d=e),On(c)?Kf(c,ni(f,1,On,!0),e,d):[]});function nU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Ze(f),wr(c,f<0?0:f,T)):[]}o(nU,"drop");function iU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Ze(f),f=T-f,wr(c,0,f<0?0:f)):[]}o(iU,"dropRight");function rU(c,f){return c&&c.length?Jd(c,Ve(f,3),!0,!0):[]}o(rU,"dropRightWhile");function oU(c,f){return c&&c.length?Jd(c,Ve(f,3),!0):[]}o(oU,"dropWhile");function aU(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),Jk(c,f,d,T)):[]}o(aU,"fill");function uI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Ze(d);return E<0&&(E=Un(T+E,0)),Rd(c,Ve(f,3),E)}o(uI,"findIndex");function pI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T-1;return d!==e&&(E=Ze(d),E=d<0?Un(T+E,0):yi(E,T-1)),Rd(c,Ve(f,3),E,!0)}o(pI,"findLastIndex");function dI(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(dI,"flatten");function sU(c){var f=c==null?0:c.length;return f?ni(c,Rt):[]}o(sU,"flattenDeep");function cU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ze(f),ni(c,f)):[]}o(cU,"flattenDepth");function lU(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(lU,"fromPairs");function gI(c){return c&&c.length?c[0]:e}o(gI,"head");function fU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Ze(d);return E<0&&(E=Un(T+E,0)),Kc(c,f,E)}o(fU,"indexOf");function uU(c){var f=c==null?0:c.length;return f?wr(c,0,-1):[]}o(uU,"initial");var pU=nt(function(c){var f=un(c,oT);return f.length&&f[0]===c[0]?qv(f):[]}),dU=nt(function(c){var f=Mr(c),d=un(c,oT);return f===Mr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?qv(d,Ve(f,2)):[]}),gU=nt(function(c){var f=Mr(c),d=un(c,oT);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?qv(d,e,f):[]});function mU(c,f){return c==null?"":uk.call(c,f)}o(mU,"join");function Mr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Mr,"last");function hU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T;return d!==e&&(E=Ze(d),E=E<0?Un(T+E,0):yi(E,T-1)),f===f?q2(c,f,E):Rd(c,QC,E,!0)}o(hU,"lastIndexOf");function yU(c,f){return c&&c.length?xO(c,Ze(f)):e}o(yU,"nth");var vU=nt(mI);function mI(c,f){return c&&c.length&&f&&f.length?Zv(c,f):c}o(mI,"pullAll");function TU(c,f,d){return c&&c.length&&f&&f.length?Zv(c,f,Ve(d,2)):c}o(TU,"pullAllBy");function bU(c,f,d){return c&&c.length&&f&&f.length?Zv(c,f,e,d):c}o(bU,"pullAllWith");var EU=ta(function(c,f){var d=c==null?0:c.length,T=Wv(c,f);return IO(c,un(f,function(E){return na(E,d)?+E:E}).sort(kO)),T});function AU(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,E=[],C=c.length;for(f=Ve(f,3);++T<C;){var L=c[T];f(L,T,c)&&(d.push(L),E.push(T))}return IO(c,E),d}o(AU,"remove");function TT(c){return c==null?c:mk.call(c)}o(TT,"reverse");function SU(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:Ze(f),d=d===e?T:Ze(d)),wr(c,f,d)):[]}o(SU,"slice");function PU(c,f){return Yd(c,f)}o(PU,"sortedIndex");function xU(c,f,d){return nT(c,f,Ve(d,2))}o(xU,"sortedIndexBy");function CU(c,f){var d=c==null?0:c.length;if(d){var T=Yd(c,f);if(T<d&&to(c[T],f))return T}return-1}o(CU,"sortedIndexOf");function OU(c,f){return Yd(c,f,!0)}o(OU,"sortedLastIndex");function IU(c,f,d){return nT(c,f,Ve(d,2),!0)}o(IU,"sortedLastIndexBy");function NU(c,f){var d=c==null?0:c.length;if(d){var T=Yd(c,f,!0)-1;if(to(c[T],f))return T}return-1}o(NU,"sortedLastIndexOf");function LU(c){return c&&c.length?LO(c):[]}o(LU,"sortedUniq");function RU(c,f){return c&&c.length?LO(c,Ve(f,2)):[]}o(RU,"sortedUniqBy");function FU(c){var f=c==null?0:c.length;return f?wr(c,1,f):[]}o(FU,"tail");function DU(c,f,d){return c&&c.length?(f=d||f===e?1:Ze(f),wr(c,0,f<0?0:f)):[]}o(DU,"take");function _U(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Ze(f),f=T-f,wr(c,f<0?0:f,T)):[]}o(_U,"takeRight");function VU(c,f){return c&&c.length?Jd(c,Ve(f,3),!1,!0):[]}o(VU,"takeRightWhile");function wU(c,f){return c&&c.length?Jd(c,Ve(f,3)):[]}o(wU,"takeWhile");var MU=nt(function(c){return Ua(ni(c,1,On,!0))}),kU=nt(function(c){var f=Mr(c);return On(f)&&(f=e),Ua(ni(c,1,On,!0),Ve(f,2))}),jU=nt(function(c){var f=Mr(c);return f=typeof f=="function"?f:e,Ua(ni(c,1,On,!0),e,f)});function UU(c){return c&&c.length?Ua(c):[]}o(UU,"uniq");function $U(c,f){return c&&c.length?Ua(c,Ve(f,2)):[]}o($U,"uniqBy");function BU(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ua(c,e,f):[]}o(BU,"uniqWith");function bT(c){if(!(c&&c.length))return[];var f=0;return c=_a(c,function(d){if(On(d))return f=Un(d.length,f),!0}),Mv(f,function(d){return un(c,_v(d))})}o(bT,"unzip");function hI(c,f){if(!(c&&c.length))return[];var d=bT(c);return f==null?d:un(d,function(T){return lr(f,e,T)})}o(hI,"unzipWith");var HU=nt(function(c,f){return On(c)?Kf(c,f):[]}),GU=nt(function(c){return rT(_a(c,On))}),WU=nt(function(c){var f=Mr(c);return On(f)&&(f=e),rT(_a(c,On),Ve(f,2))}),KU=nt(function(c){var f=Mr(c);return f=typeof f=="function"?f:e,rT(_a(c,On),e,f)}),XU=nt(bT);function QU(c,f){return _O(c||[],f||[],Wf)}o(QU,"zipObject");function qU(c,f){return _O(c||[],f||[],qf)}o(qU,"zipObjectDeep");var zU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,hI(c,d)});function yI(c){var f=P(c);return f.__chain__=!0,f}o(yI,"chain");function YU(c,f){return f(c),c}o(YU,"tap");function sg(c,f){return f(c)}o(sg,"thru");var JU=ta(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,E=o(function(C){return Wv(C,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:sg,args:[E],thisArg:e}),new _r(T,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function ZU(){return yI(this)}o(ZU,"wrapperChain");function e4(){return new _r(this.value(),this.__chain__)}o(e4,"wrapperCommit");function t4(){this.__values__===e&&(this.__values__=RI(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(t4,"wrapperNext");function n4(){return this}o(n4,"wrapperToIterator");function i4(c){for(var f,d=this;d instanceof Kd;){var T=fI(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(i4,"wrapperPlant");function r4(){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:sg,args:[TT],thisArg:e}),new _r(f,this.__chain__)}return this.thru(TT)}o(r4,"wrapperReverse");function o4(){return DO(this.__wrapped__,this.__actions__)}o(o4,"wrapperValue");var a4=Zd(function(c,f,d){Dt.call(c,d)?++c[d]:Zo(c,d,1)});function s4(c,f,d){var T=Qe(c)?KC:Yk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(s4,"every");function c4(c,f){var d=Qe(c)?_a:hO;return d(c,Ve(f,3))}o(c4,"filter");var l4=GO(uI),f4=GO(pI);function u4(c,f){return ni(cg(c,f),1)}o(u4,"flatMap");function p4(c,f){return ni(cg(c,f),Rt)}o(p4,"flatMapDeep");function d4(c,f,d){return d=d===e?1:Ze(d),ni(cg(c,f),d)}o(d4,"flatMapDepth");function vI(c,f){var d=Qe(c)?Fr:ja;return d(c,Ve(f,3))}o(vI,"forEach");function TI(c,f){var d=Qe(c)?F2:mO;return d(c,Ve(f,3))}o(TI,"forEachRight");var g4=Zd(function(c,f,d){Dt.call(c,d)?c[d].push(f):Zo(c,d,[f])});function m4(c,f,d,T){c=Ki(c)?c:il(c),d=d&&!T?Ze(d):0;var E=c.length;return d<0&&(d=Un(E+d,0)),dg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Kc(c,f,d)>-1}o(m4,"includes");var h4=nt(function(c,f,d){var T=-1,E=typeof f=="function",C=Ki(c)?W(c.length):[];return ja(c,function(L){C[++T]=E?lr(f,L,d):Xf(L,f,d)}),C}),y4=Zd(function(c,f,d){Zo(c,d,f)});function cg(c,f){var d=Qe(c)?un:AO;return d(c,Ve(f,3))}o(cg,"map");function T4(c,f,d,T){return c==null?[]:(Qe(f)||(f=f==null?[]:[f]),d=T?e:d,Qe(d)||(d=d==null?[]:[d]),CO(c,f,d))}o(T4,"orderBy");var b4=Zd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function E4(c,f,d){var T=Qe(c)?Fv:zC,E=arguments.length<3;return T(c,Ve(f,4),d,E,ja)}o(E4,"reduce");function A4(c,f,d){var T=Qe(c)?D2:zC,E=arguments.length<3;return T(c,Ve(f,4),d,E,mO)}o(A4,"reduceRight");function S4(c,f){var d=Qe(c)?_a:hO;return d(c,ug(Ve(f,3)))}o(S4,"reject");function P4(c){var f=Qe(c)?uO:mj;return f(c)}o(P4,"sample");function x4(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Ze(f);var T=Qe(c)?Kk:hj;return T(c,f)}o(x4,"sampleSize");function C4(c){var f=Qe(c)?Xk:vj;return f(c)}o(C4,"shuffle");function O4(c){if(c==null)return 0;if(Ki(c))return dg(c)?Qc(c):c.length;var f=vi(c);return f==ze||f==gn?c.size:Yv(c).length}o(O4,"size");function I4(c,f,d){var T=Qe(c)?Dv:Tj;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(I4,"some");var N4=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]]),CO(c,ni(f,1),[])}),lg=ck||function(){return Kn.Date.now()};function L4(c,f){if(typeof f!="function")throw new Dr(r);return c=Ze(c),function(){if(--c<1)return f.apply(this,arguments)}}o(L4,"after");function bI(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,ea(c,Z,e,e,e,e,f)}o(bI,"ary");function EI(c,f){var d;if(typeof f!="function")throw new Dr(r);return c=Ze(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(EI,"before");var ET=nt(function(c,f,d){var T=b;if(d.length){var E=wa(d,tl(ET));T|=U}return ea(c,T,f,d,E)}),AI=nt(function(c,f,d){var T=b|I;if(d.length){var E=wa(d,tl(AI));T|=U}return ea(f,T,c,d,E)});function SI(c,f,d){f=d?e:f;var T=ea(c,j,e,e,e,e,e,f);return T.placeholder=SI.placeholder,T}o(SI,"curry");function PI(c,f,d){f=d?e:f;var T=ea(c,K,e,e,e,e,e,f);return T.placeholder=PI.placeholder,T}o(PI,"curryRight");function xI(c,f,d){var T,E,C,L,R,M,Y=0,J=!1,ee=!1,me=!0;if(typeof c!="function")throw new Dr(r);f=kr(f)||0,hn(d)&&(J=!!d.leading,ee="maxWait"in d,C=ee?Un(kr(d.maxWait)||0,f):C,me="trailing"in d?!!d.trailing:me);function Ne(In){var no=T,oa=E;return T=E=e,Y=In,L=c.apply(oa,no),L}o(Ne,"invokeFunc");function Me(In){return Y=In,R=Jf(st,f),J?Ne(In):L}o(Me,"leadingEdge");function et(In){var no=In-M,oa=In-Y,GI=f-no;return ee?yi(GI,C-oa):GI}o(et,"remainingWait");function ke(In){var no=In-M,oa=In-Y;return M===e||no>=f||no<0||ee&&oa>=C}o(ke,"shouldInvoke");function st(){var In=lg();if(ke(In))return gt(In);R=Jf(st,et(In))}o(st,"timerExpired");function gt(In){return R=e,me&&T?Ne(In):(T=E=e,L)}o(gt,"trailingEdge");function dr(){R!==e&&VO(R),Y=0,T=M=E=R=e}o(dr,"cancel");function Ri(){return R===e?L:gt(lg())}o(Ri,"flush");function gr(){var In=lg(),no=ke(In);if(T=arguments,E=this,M=In,no){if(R===e)return Me(M);if(ee)return VO(R),R=Jf(st,f),Ne(M)}return R===e&&(R=Jf(st,f)),L}return o(gr,"debounced"),gr.cancel=dr,gr.flush=Ri,gr}o(xI,"debounce");var R4=nt(function(c,f){return gO(c,1,f)}),F4=nt(function(c,f,d){return gO(c,kr(f)||0,d)});function D4(c){return ea(c,Pe)}o(D4,"flip");function fg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Dr(r);var d=o(function(){var T=arguments,E=f?f.apply(this,T):T[0],C=d.cache;if(C.has(E))return C.get(E);var L=c.apply(this,T);return d.cache=C.set(E,L)||C,L},"memoized");return d.cache=new(fg.Cache||Jo),d}o(fg,"memoize"),fg.Cache=Jo;function ug(c){if(typeof c!="function")throw new Dr(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(ug,"negate");function _4(c){return EI(2,c)}o(_4,"once");var V4=bj(function(c,f){f=f.length==1&&Qe(f[0])?un(f[0],fr(Ve())):un(ni(f,1),fr(Ve()));var d=f.length;return nt(function(T){for(var E=-1,C=yi(T.length,d);++E<C;)T[E]=f[E].call(this,T[E]);return lr(c,this,T)})}),AT=nt(function(c,f){var d=wa(f,tl(AT));return ea(c,U,e,f,d)}),CI=nt(function(c,f){var d=wa(f,tl(CI));return ea(c,se,e,f,d)}),w4=ta(function(c,f){return ea(c,re,e,e,e,f)});function M4(c,f){if(typeof c!="function")throw new Dr(r);return f=f===e?f:Ze(f),nt(c,f)}o(M4,"rest");function k4(c,f){if(typeof c!="function")throw new Dr(r);return f=f==null?0:Un(Ze(f),0),nt(function(d){var T=d[f],E=Ba(d,0,f);return T&&Va(E,T),lr(c,this,E)})}o(k4,"spread");function j4(c,f,d){var T=!0,E=!0;if(typeof c!="function")throw new Dr(r);return hn(d)&&(T="leading"in d?!!d.leading:T,E="trailing"in d?!!d.trailing:E),xI(c,f,{leading:T,maxWait:f,trailing:E})}o(j4,"throttle");function U4(c){return bI(c,1)}o(U4,"unary");function $4(c,f){return AT(aT(f),c)}o($4,"wrap");function B4(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}o(B4,"castArray");function H4(c){return Vr(c,m)}o(H4,"clone");function G4(c,f){return f=typeof f=="function"?f:e,Vr(c,m,f)}o(G4,"cloneWith");function W4(c){return Vr(c,p|m)}o(W4,"cloneDeep");function K4(c,f){return f=typeof f=="function"?f:e,Vr(c,p|m,f)}o(K4,"cloneDeepWith");function X4(c,f){return f==null||dO(c,f,Xn(f))}o(X4,"conformsTo");function to(c,f){return c===f||c!==c&&f!==f}o(to,"eq");var Q4=ig(Qv),q4=ig(function(c,f){return c>=f}),Xs=TO(function(){return arguments}())?TO:function(c){return Tn(c)&&Dt.call(c,"callee")&&!oO.call(c,"callee")},Qe=W.isArray,z4=UC?fr(UC):ij;function Ki(c){return c!=null&&pg(c.length)&&!ia(c)}o(Ki,"isArrayLike");function On(c){return Tn(c)&&Ki(c)}o(On,"isArrayLikeObject");function Y4(c){return c===!0||c===!1||Tn(c)&&Ni(c)==O}o(Y4,"isBoolean");var Ha=fk||DT,J4=$C?fr($C):rj;function Z4(c){return Tn(c)&&c.nodeType===1&&!Zf(c)}o(Z4,"isElement");function e$(c){if(c==null)return!0;if(Ki(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||Ha(c)||nl(c)||Xs(c)))return!c.length;var f=vi(c);if(f==ze||f==gn)return!c.size;if(Yf(c))return!Yv(c).length;for(var d in c)if(Dt.call(c,d))return!1;return!0}o(e$,"isEmpty");function t$(c,f){return Qf(c,f)}o(t$,"isEqual");function n$(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?Qf(c,f,e,d):!!T}o(n$,"isEqualWith");function ST(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Zf(c)}o(ST,"isError");function i$(c){return typeof c=="number"&&sO(c)}o(i$,"isFinite");function ia(c){if(!hn(c))return!1;var f=Ni(c);return f==_e||f==Ft||f==at||f==ti}o(ia,"isFunction");function OI(c){return typeof c=="number"&&c==Ze(c)}o(OI,"isInteger");function pg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(pg,"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 II=BC?fr(BC):aj;function r$(c,f){return c===f||zv(c,f,dT(f))}o(r$,"isMatch");function o$(c,f,d){return d=typeof d=="function"?d:e,zv(c,f,dT(f),d)}o(o$,"isMatchWith");function a$(c){return NI(c)&&c!=+c}o(a$,"isNaN");function s$(c){if(Hj(c))throw new We(i);return bO(c)}o(s$,"isNative");function c$(c){return c===null}o(c$,"isNull");function l$(c){return c==null}o(l$,"isNil");function NI(c){return typeof c=="number"||Tn(c)&&Ni(c)==jt}o(NI,"isNumber");function Zf(c){if(!Tn(c)||Ni(c)!=ln)return!1;var f=jd(c);if(f===null)return!0;var d=Dt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Vd.call(d)==rk}o(Zf,"isPlainObject");var PT=HC?fr(HC):sj;function f$(c){return OI(c)&&c>=-Re&&c<=Re}o(f$,"isSafeInteger");var LI=GC?fr(GC):cj;function dg(c){return typeof c=="string"||!Qe(c)&&Tn(c)&&Ni(c)==hi}o(dg,"isString");function pr(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Wt}o(pr,"isSymbol");var nl=WC?fr(WC):lj;function u$(c){return c===e}o(u$,"isUndefined");function p$(c){return Tn(c)&&vi(c)==Gi}o(p$,"isWeakMap");function d$(c){return Tn(c)&&Ni(c)==_f}o(d$,"isWeakSet");var g$=ig(Jv),m$=ig(function(c,f){return c<=f});function RI(c){if(!c)return[];if(Ki(c))return dg(c)?Zr(c):Wi(c);if(Uf&&c[Uf])return K2(c[Uf]());var f=vi(c),d=f==ze?jv:f==gn?Fd:il;return d(c)}o(RI,"toArray");function ra(c){if(!c)return c===0?c:0;if(c=kr(c),c===Rt||c===-Rt){var f=c<0?-1:1;return f*Ii}return c===c?c:0}o(ra,"toFinite");function Ze(c){var f=ra(c),d=f%1;return f===f?d?f-d:f:0}o(Ze,"toInteger");function FI(c){return c?Hs(Ze(c),0,kt):0}o(FI,"toLength");function kr(c){if(typeof c=="number")return c;if(pr(c))return Ot;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=YC(c);var d=QM.test(c);return d||zM.test(c)?N2(c.slice(2),d?2:8):XM.test(c)?Ot:+c}o(kr,"toNumber");function DI(c){return Po(c,Xi(c))}o(DI,"toPlainObject");function h$(c){return c?Hs(Ze(c),-Re,Re):c===0?c:0}o(h$,"toSafeInteger");function It(c){return c==null?"":ur(c)}o(It,"toString");var y$=Zc(function(c,f){if(Yf(f)||Ki(f)){Po(f,Xn(f),c);return}for(var d in f)Dt.call(f,d)&&Wf(c,d,f[d])}),_I=Zc(function(c,f){Po(f,Xi(f),c)}),gg=Zc(function(c,f,d,T){Po(f,Xi(f),c,T)}),v$=Zc(function(c,f,d,T){Po(f,Xn(f),c,T)}),T$=ta(Wv);function b$(c,f){var d=Jc(c);return f==null?d:pO(d,f)}o(b$,"create");var E$=nt(function(c,f){c=Xt(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 C=f[d],L=Xi(C),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||to(J,qc[Y])&&!Dt.call(c,Y))&&(c[Y]=C[Y])}return c}),A$=nt(function(c){return c.push(e,YO),lr(VI,e,c)});function S$(c,f){return XC(c,Ve(f,3),So)}o(S$,"findKey");function P$(c,f){return XC(c,Ve(f,3),Xv)}o(P$,"findLastKey");function x$(c,f){return c==null?c:Kv(c,Ve(f,3),Xi)}o(x$,"forIn");function C$(c,f){return c==null?c:yO(c,Ve(f,3),Xi)}o(C$,"forInRight");function O$(c,f){return c&&So(c,Ve(f,3))}o(O$,"forOwn");function I$(c,f){return c&&Xv(c,Ve(f,3))}o(I$,"forOwnRight");function N$(c){return c==null?[]:qd(c,Xn(c))}o(N$,"functions");function L$(c){return c==null?[]:qd(c,Xi(c))}o(L$,"functionsIn");function xT(c,f,d){var T=c==null?e:Gs(c,f);return T===e?d:T}o(xT,"get");function R$(c,f){return c!=null&&eI(c,f,Zk)}o(R$,"has");function CT(c,f){return c!=null&&eI(c,f,ej)}o(CT,"hasIn");var F$=KO(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=wd.call(f)),c[f]=d},IT(Qi)),D$=KO(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=wd.call(f)),Dt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),_$=nt(Xf);function Xn(c){return Ki(c)?fO(c):Yv(c)}o(Xn,"keys");function Xi(c){return Ki(c)?fO(c,!0):fj(c)}o(Xi,"keysIn");function V$(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,C){Zo(d,f(T,E,C),T)}),d}o(V$,"mapKeys");function w$(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,C){Zo(d,E,f(T,E,C))}),d}o(w$,"mapValues");var M$=Zc(function(c,f,d){zd(c,f,d)}),VI=Zc(function(c,f,d,T){zd(c,f,d,T)}),k$=ta(function(c,f){var d={};if(c==null)return d;var T=!1;f=un(f,function(C){return C=$a(C,c),T||(T=C.length>1),C}),Po(c,uT(c),d),T&&(d=Vr(d,p|g|m,Rj));for(var E=f.length;E--;)iT(d,f[E]);return d});function j$(c,f){return wI(c,ug(Ve(f)))}o(j$,"omitBy");var U$=ta(function(c,f){return c==null?{}:pj(c,f)});function wI(c,f){if(c==null)return{};var d=un(uT(c),function(T){return[T]});return f=Ve(f),OO(c,d,function(T,E){return f(T,E[0])})}o(wI,"pickBy");function $$(c,f,d){f=$a(f,c);var T=-1,E=f.length;for(E||(E=1,c=e);++T<E;){var C=c==null?e:c[xo(f[T])];C===e&&(T=E,C=d),c=ia(C)?C.call(c):C}return c}o($$,"result");function B$(c,f,d){return c==null?c:qf(c,f,d)}o(B$,"set");function H$(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:qf(c,f,d,T)}o(H$,"setWith");var MI=qO(Xn),kI=qO(Xi);function G$(c,f,d){var T=Qe(c),E=T||Ha(c)||nl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;E?d=T?new C:[]:hn(c)?d=ia(C)?Jc(jd(c)):{}:d={}}return(E?Fr:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(G$,"transform");function W$(c,f){return c==null?!0:iT(c,f)}o(W$,"unset");function K$(c,f,d){return c==null?c:FO(c,f,aT(d))}o(K$,"update");function X$(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:FO(c,f,aT(d),T)}o(X$,"updateWith");function il(c){return c==null?[]:kv(c,Xn(c))}o(il,"values");function Q$(c){return c==null?[]:kv(c,Xi(c))}o(Q$,"valuesIn");function q$(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=kr(d),d=d===d?d:0),f!==e&&(f=kr(f),f=f===f?f:0),Hs(kr(c),f,d)}o(q$,"clamp");function z$(c,f,d){return f=ra(f),d===e?(d=f,f=0):d=ra(d),c=kr(c),tj(c,f,d)}o(z$,"inRange");function Y$(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=cO();return yi(c+E*(f-c+I2("1e-"+((E+"").length-1))),f)}return eT(c,f)}o(Y$,"random");var J$=el(function(c,f,d){return f=f.toLowerCase(),c+(d?jI(f):f)});function jI(c){return OT(It(c).toLowerCase())}o(jI,"capitalize");function UI(c){return c=It(c),c&&c.replace(JM,$2).replace(y2,"")}o(UI,"deburr");function Z$(c,f,d){c=It(c),f=ur(f);var T=c.length;d=d===e?T:Hs(Ze(d),0,T);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(Z$,"endsWith");function eB(c){return c=It(c),c&&Ie.test(c)?c.replace(be,B2):c}o(eB,"escape");function tB(c){return c=It(c),c&&kM.test(c)?c.replace(kf,"\\$&"):c}o(tB,"escapeRegExp");var nB=el(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),iB=el(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),rB=HO("toLowerCase");function oB(c,f,d){c=It(c),f=Ze(f);var T=f?Qc(c):0;if(!f||T>=f)return c;var E=(f-T)/2;return ng(Hd(E),d)+c+ng(Bd(E),d)}o(oB,"pad");function aB(c,f,d){c=It(c),f=Ze(f);var T=f?Qc(c):0;return f&&T<f?c+ng(f-T,d):c}o(aB,"padEnd");function sB(c,f,d){c=It(c),f=Ze(f);var T=f?Qc(c):0;return f&&T<f?ng(f-T,d)+c:c}o(sB,"padStart");function cB(c,f,d){return d||f==null?f=0:f&&(f=+f),gk(It(c).replace(Sv,""),f||0)}o(cB,"parseInt");function lB(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Ze(f),tT(It(c),f)}o(lB,"repeat");function fB(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(fB,"replace");var uB=el(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function pB(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?kt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!PT(f))&&(f=ur(f),!f&&Xc(c))?Ba(Zr(c),0,d):c.split(f,d)):[]}o(pB,"split");var dB=el(function(c,f,d){return c+(d?" ":"")+OT(f)});function gB(c,f,d){return c=It(c),d=d==null?0:Hs(Ze(d),0,c.length),f=ur(f),c.slice(d,d+f.length)==f}o(gB,"startsWith");function mB(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=It(c),f=gg({},f,T,zO);var E=gg({},f.imports,T.imports,zO),C=Xn(E),L=kv(E,C),R,M,Y=0,J=f.interpolate||Od,ee="__p += '",me=Uv((f.escape||Od).source+"|"+J.source+"|"+(J===fn?KM:Od).source+"|"+(f.evaluate||Od).source+"|$","g"),Ne="//# sourceURL="+(Dt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++S2+"]")+`
|
|
272
|
+
`;c.replace(me,function(ke,st,gt,dr,Ri,gr){return gt||(gt=dr),ee+=c.slice(Y,gr).replace(ZM,H2),st&&(R=!0,ee+=`' +
|
|
273
273
|
__e(`+st+`) +
|
|
274
274
|
'`),Ri&&(M=!0,ee+=`';
|
|
275
275
|
`+Ri+`;
|
|
276
276
|
__p += '`),gt&&(ee+=`' +
|
|
277
277
|
((__t = (`+gt+`)) == null ? '' : __t) +
|
|
278
|
-
'`),Y=
|
|
278
|
+
'`),Y=gr+ke.length,ke}),ee+=`';
|
|
279
279
|
`;var Me=Dt.call(f,"variable")&&f.variable;if(!Me)ee=`with (obj) {
|
|
280
280
|
`+ee+`
|
|
281
281
|
}
|
|
282
|
-
`;else if(
|
|
282
|
+
`;else if(GM.test(Me))throw new We(a);ee=(M?ee.replace(mn,""):ee).replace(Cn,"$1").replace(tt,"$1;"),ee="function("+(Me||"obj")+`) {
|
|
283
283
|
`+(Me?"":`obj || (obj = {});
|
|
284
284
|
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ee+`return __p
|
|
288
|
-
}`;var Ze=$I(function(){return St(C,Ne+"return "+ee).apply(e,L)});if(Ze.source=ee,AT(Ze))throw Ze;return Ze}o(uB,"template");function pB(c){return It(c).toLowerCase()}o(pB,"toLower");function dB(c){return It(c).toUpperCase()}o(dB,"toUpper");function gB(c,f,d){if(c=It(c),c&&(d||f===e))return zC(c);if(!c||!(f=fr(f)))return c;var T=Zr(c),E=Zr(f),C=YC(T,E),L=JC(T,E)+1;return Ba(T,C,L).join("")}o(gB,"trim");function mB(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,eO(c)+1);if(!c||!(f=fr(f)))return c;var T=Zr(c),E=JC(T,Zr(f))+1;return Ba(T,0,E).join("")}o(mB,"trimEnd");function hB(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(Av,"");if(!c||!(f=fr(f)))return c;var T=Zr(c),E=YC(T,Zr(f));return Ba(T,E).join("")}o(hB,"trimStart");function yB(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=It(c);var C=c.length;if(Xc(c)){var L=Zr(c);C=L.length}if(d>=C)return c;var R=d-Qc(T);if(R<1)return T;var M=L?Ba(L,0,R).join(""):c.slice(0,R);if(E===e)return M+T;if(L&&(R+=M.length-R),ST(E)){if(c.slice(R).search(E)){var Y,J=M;for(E.global||(E=jv(E.source,It(vC.exec(E))+"g")),E.lastIndex=0;Y=E.exec(J);)var ee=Y.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(yB,"truncate");function vB(c){return c=It(c),c&&xe.test(c)?c.replace(he,K2):c}o(vB,"unescape");var TB=el(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),CT=BO("toUpperCase");function UI(c,f,d){return c=It(c),f=d?e:f,f===e?$2(c)?q2(c):F2(c):c.match(f)||[]}o(UI,"words");var $I=nt(function(c,f){try{return cr(c,e,f)}catch(d){return AT(d)?d:new We(d)}}),bB=ta(function(c,f){return Rr(f,function(d){d=xo(d),Zo(c,d,bT(c[d],c))}),c});function EB(c){var f=c==null?0:c.length,d=Ve();return c=f?un(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 C=c[E];if(cr(C[0],this,T))return cr(C[1],this,T)}})}o(EB,"cond");function AB(c){return Kk(_r(c,p))}o(AB,"conforms");function OT(c){return function(){return c}}o(OT,"constant");function SB(c,f){return c==null||c!==c?f:c}o(SB,"defaultTo");var PB=GO(),xB=GO(!0);function Qi(c){return c}o(Qi,"identity");function IT(c){return bO(typeof c=="function"?c:_r(c,p))}o(IT,"iteratee");function CB(c){return AO(_r(c,p))}o(CB,"matches");function OB(c,f){return SO(c,_r(f,p))}o(OB,"matchesProperty");var IB=nt(function(c,f){return function(d){return Xf(d,c,f)}}),NB=nt(function(c,f){return function(d){return Xf(c,d,f)}});function NT(c,f,d){var T=Xn(f),E=qd(f,T);d==null&&!(hn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=qd(f,Xn(f)));var C=!(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 Y=this.__chain__;if(C||Y){var J=c(this.__wrapped__),ee=J.__actions__=Wi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,Va([this.value()],arguments))})}),c}o(NT,"mixin");function LB(){return Kn._===this&&(Kn._=tk),this}o(LB,"noConflict");function LT(){}o(LT,"noop");function RB(c){return c=Je(c),nt(function(f){return PO(f,c)})}o(RB,"nthArg");var FB=sT(un),DB=sT(WC),_B=sT(Fv);function BI(c){return gT(c)?Dv(xo(c)):lj(c)}o(BI,"property");function VB(c){return function(f){return c==null?e:Gs(c,f)}}o(VB,"propertyOf");var wB=KO(),MB=KO(!0);function RT(){return[]}o(RT,"stubArray");function FT(){return!1}o(FT,"stubFalse");function kB(){return{}}o(kB,"stubObject");function jB(){return""}o(jB,"stubString");function UB(){return!0}o(UB,"stubTrue");function $B(c,f){if(c=Je(c),c<1||c>Re)return[];var d=kt,T=yi(c,kt);f=Ve(f),c-=kt;for(var E=wv(T,f);++d<c;)f(d);return E}o($B,"times");function BB(c){return Xe(c)?un(c,xo):ur(c)?[c]:Wi(cI(It(c)))}o(BB,"toPath");function HB(c){var f=++Z2;return It(c)+f}o(HB,"uniqueId");var GB=tg(function(c,f){return c+f},0),WB=cT("ceil"),KB=tg(function(c,f){return c/f},1),XB=cT("floor");function QB(c){return c&&c.length?Qd(c,Qi,Xv):e}o(QB,"max");function qB(c,f){return c&&c.length?Qd(c,Ve(f,2),Xv):e}o(qB,"maxBy");function zB(c){return QC(c,Qi)}o(zB,"mean");function YB(c,f){return QC(c,Ve(f,2))}o(YB,"meanBy");function JB(c){return c&&c.length?Qd(c,Qi,Yv):e}o(JB,"min");function ZB(c,f){return c&&c.length?Qd(c,Ve(f,2),Yv):e}o(ZB,"minBy");var eH=tg(function(c,f){return c*f},1),tH=cT("round"),nH=tg(function(c,f){return c-f},0);function iH(c){return c&&c.length?Vv(c,Qi):0}o(iH,"sum");function rH(c,f){return c&&c.length?Vv(c,Ve(f,2)):0}return o(rH,"sumBy"),P.after=C4,P.ary=TI,P.assign=d$,P.assignIn=DI,P.assignInWith=gg,P.assignWith=g$,P.at=m$,P.before=bI,P.bind=bT,P.bindAll=bB,P.bindKey=EI,P.castArray=k4,P.chain=hI,P.chunk=Kj,P.compact=Xj,P.concat=Qj,P.cond=EB,P.conforms=AB,P.constant=OT,P.countBy=n4,P.create=h$,P.curry=AI,P.curryRight=SI,P.debounce=PI,P.defaults=y$,P.defaultsDeep=v$,P.defer=O4,P.delay=I4,P.difference=qj,P.differenceBy=zj,P.differenceWith=Yj,P.drop=Jj,P.dropRight=Zj,P.dropRightWhile=eU,P.dropWhile=tU,P.fill=nU,P.filter=r4,P.flatMap=s4,P.flatMapDeep=c4,P.flatMapDepth=l4,P.flatten=pI,P.flattenDeep=iU,P.flattenDepth=rU,P.flip=N4,P.flow=PB,P.flowRight=xB,P.fromPairs=oU,P.functions=x$,P.functionsIn=C$,P.groupBy=f4,P.initial=sU,P.intersection=cU,P.intersectionBy=lU,P.intersectionWith=fU,P.invert=I$,P.invertBy=N$,P.invokeMap=p4,P.iteratee=IT,P.keyBy=d4,P.keys=Xn,P.keysIn=Xi,P.map=cg,P.mapKeys=R$,P.mapValues=F$,P.matches=CB,P.matchesProperty=OB,P.memoize=fg,P.merge=D$,P.mergeWith=_I,P.method=IB,P.methodOf=NB,P.mixin=NT,P.negate=ug,P.nthArg=RB,P.omit=_$,P.omitBy=V$,P.once=L4,P.orderBy=g4,P.over=FB,P.overArgs=R4,P.overEvery=DB,P.overSome=_B,P.partial=ET,P.partialRight=xI,P.partition=m4,P.pick=w$,P.pickBy=VI,P.property=BI,P.propertyOf=VB,P.pull=gU,P.pullAll=gI,P.pullAllBy=mU,P.pullAllWith=hU,P.pullAt=yU,P.range=wB,P.rangeRight=MB,P.rearg=F4,P.reject=T4,P.remove=vU,P.rest=D4,P.reverse=vT,P.sampleSize=E4,P.set=k$,P.setWith=j$,P.shuffle=A4,P.slice=TU,P.sortBy=x4,P.sortedUniq=CU,P.sortedUniqBy=OU,P.split=cB,P.spread=_4,P.tail=IU,P.take=NU,P.takeRight=LU,P.takeRightWhile=RU,P.takeWhile=FU,P.tap=XU,P.throttle=V4,P.thru=sg,P.toArray=LI,P.toPairs=wI,P.toPairsIn=MI,P.toPath=BB,P.toPlainObject=FI,P.transform=U$,P.unary=w4,P.union=DU,P.unionBy=_U,P.unionWith=VU,P.uniq=wU,P.uniqBy=MU,P.uniqWith=kU,P.unset=$$,P.unzip=TT,P.unzipWith=mI,P.update=B$,P.updateWith=H$,P.values=il,P.valuesIn=G$,P.without=jU,P.words=UI,P.wrap=M4,P.xor=UU,P.xorBy=$U,P.xorWith=BU,P.zip=HU,P.zipObject=GU,P.zipObjectDeep=WU,P.zipWith=KU,P.entries=wI,P.entriesIn=MI,P.extend=DI,P.extendWith=gg,NT(P,P),P.add=GB,P.attempt=$I,P.camelCase=Q$,P.capitalize=kI,P.ceil=WB,P.clamp=W$,P.clone=j4,P.cloneDeep=$4,P.cloneDeepWith=B4,P.cloneWith=U4,P.conformsTo=H4,P.deburr=jI,P.defaultTo=SB,P.divide=KB,P.endsWith=q$,P.eq=to,P.escape=z$,P.escapeRegExp=Y$,P.every=i4,P.find=o4,P.findIndex=fI,P.findKey=T$,P.findLast=a4,P.findLastIndex=uI,P.findLastKey=b$,P.floor=XB,P.forEach=yI,P.forEachRight=vI,P.forIn=E$,P.forInRight=A$,P.forOwn=S$,P.forOwnRight=P$,P.get=PT,P.gt=G4,P.gte=W4,P.has=O$,P.hasIn=xT,P.head=dI,P.identity=Qi,P.includes=u4,P.indexOf=aU,P.inRange=K$,P.invoke=L$,P.isArguments=Xs,P.isArray=Xe,P.isArrayBuffer=K4,P.isArrayLike=Ki,P.isArrayLikeObject=On,P.isBoolean=X4,P.isBuffer=Ha,P.isDate=Q4,P.isElement=q4,P.isEmpty=z4,P.isEqual=Y4,P.isEqualWith=J4,P.isError=AT,P.isFinite=Z4,P.isFunction=ia,P.isInteger=CI,P.isLength=pg,P.isMap=OI,P.isMatch=e$,P.isMatchWith=t$,P.isNaN=n$,P.isNative=i$,P.isNil=o$,P.isNull=r$,P.isNumber=II,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=Zf,P.isRegExp=ST,P.isSafeInteger=a$,P.isSet=NI,P.isString=dg,P.isSymbol=ur,P.isTypedArray=nl,P.isUndefined=s$,P.isWeakMap=c$,P.isWeakSet=l$,P.join=uU,P.kebabCase=J$,P.last=wr,P.lastIndexOf=pU,P.lowerCase=Z$,P.lowerFirst=eB,P.lt=f$,P.lte=u$,P.max=QB,P.maxBy=qB,P.mean=zB,P.meanBy=YB,P.min=JB,P.minBy=ZB,P.stubArray=RT,P.stubFalse=FT,P.stubObject=kB,P.stubString=jB,P.stubTrue=UB,P.multiply=eH,P.nth=dU,P.noConflict=LB,P.noop=LT,P.now=lg,P.pad=tB,P.padEnd=nB,P.padStart=iB,P.parseInt=rB,P.random=X$,P.reduce=h4,P.reduceRight=y4,P.repeat=oB,P.replace=aB,P.result=M$,P.round=tH,P.runInContext=w,P.sample=b4,P.size=S4,P.snakeCase=sB,P.some=P4,P.sortedIndex=bU,P.sortedIndexBy=EU,P.sortedIndexOf=AU,P.sortedLastIndex=SU,P.sortedLastIndexBy=PU,P.sortedLastIndexOf=xU,P.startCase=lB,P.startsWith=fB,P.subtract=nH,P.sum=iH,P.sumBy=rH,P.template=uB,P.times=$B,P.toFinite=ra,P.toInteger=Je,P.toLength=RI,P.toLower=pB,P.toNumber=Mr,P.toSafeInteger=p$,P.toString=It,P.toUpper=dB,P.trim=gB,P.trimEnd=mB,P.trimStart=hB,P.truncate=yB,P.unescape=vB,P.uniqueId=HB,P.upperCase=TB,P.upperFirst=CT,P.each=yI,P.eachRight=vI,P.first=dI,NT(P,function(){var c={};return So(P,function(f,d){Dt.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:Un(Je(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=yi(d,T.__takeCount__):T.__views__.push({size:yi(d,kt),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==sn||d==tn;pt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(E,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),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 Xf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ug(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(kt)},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],C=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=T?[1]:arguments,M=L instanceof pt,Y=R[0],J=M||Xe(L),ee=o(function(st){var gt=E.apply(P,Va([st],R));return T&&me?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var me=this.__chain__,Ne=!!this.__actions__.length,Me=C&&!me,Ze=M&&!Ne;if(!C&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:sg,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=Dd[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 C=this.value();return f.apply(Xe(C)?C:[],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+"";Dt.call(Yc,T)||(Yc[T]=[]),Yc[T].push({name:f,func:d})}}),Yc[eg(e,I).name]=[{name:"wrapper",func:e}],pt.prototype.clone=yk,pt.prototype.reverse=vk,pt.prototype.value=Tk,P.prototype.at=QU,P.prototype.chain=qU,P.prototype.commit=zU,P.prototype.next=YU,P.prototype.plant=ZU,P.prototype.reverse=e4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=t4,P.prototype.first=P.prototype.head,Uf&&(P.prototype[Uf]=JU),P},"runInContext"),Ma=z2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=Ma,define(function(){return Ma})):js?((js.exports=Ma)._=Ma,Iv._=Ma):Kn._=Ma}).call(rf)});var LV=ze((cle,NV)=>{var{findIndex:C6}=Np();function O6(e,t){let i=C6(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(O6,"findNextTextualToken");NV.exports={findNextTextualToken:O6}});var DV=ze((fle,FV)=>{var RV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function I6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(RV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(I6,"isXMLNamespaceKey");function N6(e){if(typeof e!="string")return;let t=e.match(RV);if(t!==null)return t.groups&&t.groups.prefix||""}o(N6,"getXMLNamespaceKeyPrefix");FV.exports={isXMLNamespaceKey:I6,getXMLNamespaceKeyPrefix:N6}});var VV=ze((ple,_V)=>{var{findNextTextualToken:L6}=LV(),{isXMLNamespaceKey:R6,getXMLNamespaceKeyPrefix:F6}=DV();_V.exports={findNextTextualToken:L6,isXMLNamespaceKey:R6,getXMLNamespaceKeyPrefix:F6}});var wS=ze((dle,MV)=>{var{reduce:D6,has:wV,isArray:_6}=Np();function V6(e){return D6(e,(n,i,r)=>(r==="parent"||(wV(i,"type")?n.push(i):_6(i)&&i.length>0&&wV(i[0],"type")&&(n=n.concat(i))),n),[])}o(V6,"getAstChildrenReflective");MV.exports={getAstChildrenReflective:V6}});var MS=ze((mle,kV)=>{kV.exports={DEFAULT_NS:"::DEFAULT"}});var KV=ze((hle,WV)=>{var{BaseXmlCstVisitor:w6}=VS(),{last:M6,forEach:BV,reduce:k6,map:Lp,pick:jS,sortBy:j6,isEmpty:U6,isArray:HV,assign:$6}=Np(),{findNextTextualToken:B6,isXMLNamespaceKey:H6,getXMLNamespaceKeyPrefix:G6}=VV(),{getAstChildrenReflective:W6}=wS(),{DEFAULT_NS:K6}=MS();function X6(e,t){jV.setState({tokenVector:t});let n=jV.visit(e);return n.rootElement!==Vc&&GV(n.rootElement),n}o(X6,"buildAst");var US=class US extends w6{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:Vc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&U6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Ry(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Lp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Ry(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Lp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Lp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Vc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Lp(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 z6(i,t),Y6(i,t),J6(i,t,this.tokenVector),Ry(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Vc,value:Vc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Fy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=Q6(a.image),r.syntax.value=Fy(a)}return Ry(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Vc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=j6(r,["startOffset"]),s=Lp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(US,"CstToAstVisitor");var kS=US,jV=new kS;function Ry(e){let t=W6(e);BV(t,n=>n.parent=e)}o(Ry,"setChildrenParent");function GV(e,t=[]){let n=k6(e.attributes,(r,a)=>{if(a.key!==Vc&&H6({key:a.key,includeEmptyPrefix:!1})===!0){let s=G6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[K6]=l}}return r},{}),i=Object.create(null);e.namespaces=$6(i,t,n),BV(e.subElements,r=>GV(r,e.namespaces))}o(GV,"updateNamespaces");function Fy(e){return jS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Fy,"toXMLToken");function UV(e){return jS(e,["startOffset","startLine","startColumn"])}o(UV,"startOfXMLToken");function $V(e){return jS(e,["endOffset","endLine","endColumn"])}o($V,"endOfXMLToken");function Oa(e){return HV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Oa,"exists");function Q6(e){return e.substring(1,e.length-1)}o(Q6,"stripQuotes");function q6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(q6,"nsToParts");var Vc=null;function z6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Fy(n);let i=q6(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=Fy(t.END_NAME[0]))}o(z6,"handleElementOpenCloseNameRanges");function Y6(e,t){if(Oa(t.OPEN)){let n;Oa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Oa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...UV(t.OPEN[0]),...$V(n)}),Oa(t.SLASH_OPEN)&&Oa(t.END)&&(e.syntax.closeBody={...UV(t.SLASH_OPEN[0]),...$V(t.END[0])})}}o(Y6,"handleElementOpenCloseBodyRanges");function J6(e,t,n){if(Oa(t.Name)){let i=t.Name[0].endOffset+2;if(Oa(t.START_CLOSE)||Oa(t.SLASH_CLOSE)){let r=(Oa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=HV(t.attribute)?M6(t.attribute).location.endOffset:t.Name[0].endOffset,s=B6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(J6,"handleElementAttributeRanges");WV.exports={buildAst:X6}});var qV=ze((vle,QV)=>{var{forEach:Z6,isFunction:of}=Np(),{getAstChildrenReflective:eQ}=wS();function XV(e,t){switch(e.type){case"XMLDocument":{of(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{of(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{of(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{of(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{of(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{of(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=eQ(e);Z6(n,i=>{XV(i,t)})}o(XV,"accept");QV.exports={accept:XV}});var YV=ze((ble,zV)=>{var{buildAst:tQ}=KV(),{accept:nQ}=qV(),{DEFAULT_NS:iQ}=MS();zV.exports={buildAst:tQ,accept:nQ,DEFAULT_NS:iQ}});var wi={};Qs(wi,{deleteConfigEntityByPath:()=>RY,exportConfig:()=>NY,exportConfigEntityByPath:()=>LY,generateCustomExtension:()=>pC,generateSchema:()=>IY,getApiVersion:()=>VY,getChanges:()=>DM,getGenericSchema:()=>hv,getPathToGenericSchema:()=>Ww,getProject:()=>UY,importConfig:()=>FY,importProject:()=>DY,importProjectSchema:()=>_Y,isDirectory:()=>MY,log:()=>se,prompts:()=>OY,readDirectory:()=>yC});module.exports=hg(wi);var de=ie(le());var G=ie(le());var Be=o(e=>typeof e=="string","isString"),eu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),CR=o(e=>e==null?"":""+e,"makeString"),j5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),U5=/###/g,OR=o(e=>e&&e.indexOf("###")>-1?e.replace(U5,"."):e,"cleanKey"),IR=o(e=>!e||Be(e),"canNotTraverseDeeper"),tu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(IR(e))return{};let a=OR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return IR(e)?{}:{obj:e,k:OR(i[r])}},"getLastOfPath"),NR=o((e,t,n)=>{let{obj:i,k:r}=tu(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=tu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=tu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),$5=o((e,t,n,i)=>{let{obj:r,k:a}=tu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),vg=o((e,t)=>{let{obj:n,k:i}=tu(e,t);if(n)return n[i]},"getPath"),B5=o((e,t,n)=>{let i=vg(e,n);return i!==void 0?i:vg(t,n)},"getPathWithDefaults"),VR=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]):VR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),ol=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),H5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},G5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>H5[t]):e,"escape"),QT=class QT{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(QT,"RegExpCache");var $T=QT,W5=[" ",",","?","!",";"],K5=new $T(20),X5=o((e,t,n)=>{t=t||"",n=n||"";let i=W5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=K5.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"),BT=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"),Tg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),Q5={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)}},nu=class nu{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||Q5,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 nu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new nu(this.logger,t)}};o(nu,"Logger");var HT=nu,Co=new HT,qT=class qT{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(qT,"EventEmitter");var sl=qT,zT=class zT extends sl{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=vg(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:BT(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),NR(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=vg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?VR(u,i,a):u={...u,...i},NR(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(zT,"ResourceStore");var bg=zT,wR={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}},LR={},Pg=class Pg extends sl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),j5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Co.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&&!X5(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,I=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,U=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(K&&v&&U&&F.indexOf(I)<0&&!(Be(j)&&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(j)&&Array.isArray(v))v=v.join(j),v&&(v=this.extendTranslation(v,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Pe=Pg.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(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Pe&&(ae=!0,v=Ue),this.isValidLookup(v)||(Z=!0,v=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,tn=Pe&&Ue!==v&&this.options.updateMissing;if(Z||ae||tn){if(this.logger.log(tn?"updateKey":"missingKey",p,u,s,tn?Ue:v),a){let Ot=this.resolve(s,{...n,keySeparator:!1});Ot&&Ot.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 Rt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let Ot=0;Ot<Re.length;Ot++)Rt.push(Re[Ot]);else this.options.saveMissingTo==="all"?Rt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Rt.push(n.lng||this.language);let Ii=o((Ot,kt,cn)=>{let Hi=Pe&&cn!==v?cn:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ot,u,kt,Hi,tn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ot,u,kt,Hi,tn,n),this.emit("missingKey",Ot,u,kt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Rt.forEach(Ot=>{let kt=this.pluralResolver.getSuffixes(Ot,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&kt.indexOf(`${this.options.pluralSeparator}zero`)<0&&kt.push(`${this.options.pluralSeparator}zero`),kt.forEach(cn=>{Ii([Ot],s+cn,n[`defaultValue${cn}`]||Ue)})}):Ii(Rt,s,Ue))}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=wR.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!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!LR[`${I[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(LR[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.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!!!")),I.forEach(j=>{if(this.isValidLookup(i))return;s=j;let K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,j,F,n);else{let ae;v&&(ae=this.pluralResolver.getSuffix(j,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 U;for(;U=K.pop();)this.isValidLookup(i)||(a=U,i=this.getResource(j,F,U,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(Pg,"Translator");var Eg=Pg,jT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),YT=class YT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Co.create("languageUtils")}getScriptPartFromCode(t){if(t=Tg(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=Tg(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]=jT(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]=jT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=jT(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(YT,"LanguageUtil");var Ag=YT,q5=[{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}],z5={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},Y5=["v1","v2","v3"],J5=["v4"],RR={zero:0,one:1,two:2,few:3,many:4,other:5},Z5=o(()=>{let e={};return q5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:z5[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=Co.create("pluralResolver"),(!this.options.compatibilityJSON||J5.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=Z5(),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=Tg(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)=>RR[r]-RR[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!Y5.includes(this.options.compatibilityJSON)}};o(JT,"PluralResolver");var GT=JT,FR=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=B5(e,t,n);return!a&&r&&Be(n)&&(a=BT(e,n,i),a===void 0&&(a=BT(t,n,i))),a},"deepFindWithDefaults"),UT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),ZT=class ZT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.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:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:G5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?ol(a):s||"{{",this.suffix=l?ol(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?ol(v):A||ol("$t("),this.nestingSuffix=b?ol(b):I||ol(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||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 j=FR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let b=A.split(this.formatSeparator),I=b.shift().trim(),F=b.join(this.formatSeparator).trim();return this.format(FR(n,u,I,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:I})},"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=>UT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?UT(this.escape(A)):UT(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=CR(s));let I=A.safeValue(s);if(t=t.replace(a[0],I),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(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${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=CR(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(ZT,"Interpolator");var WT=ZT,eG=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"),al=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(Tg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),eb=class eb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("formatter"),this.options=t,this.formats={number:al((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:al((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:al((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:al((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:al((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()]=al(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}=eG(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(eb,"Formatter");var KT=eb,tG=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),tb=class tb extends sl{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=Co.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=>{$5(u.loaded,[a],s),tG(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(tb,"Connector");var XT=tb,DR=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"),_R=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"),yg=o(()=>{},"noop"),nG=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),iu=class iu extends sl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=_R(t),this.services={},this.logger=Co,this.modules={external:[]},nG(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=DR();this.options={...r,...this.options,..._R(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?Co.init(a(this.modules.logger),this.options):Co.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=KT);let m=new Ag(this.options);this.store=new bg(this.options.resources,this.options);let v=this.services;v.logger=Co,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new GT(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 WT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new XT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var b=arguments.length,I=new Array(b>1?b-1:0),F=1;F<b;F++)I[F-1]=arguments[F];t.emit(A,...I)}),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 Eg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,I=new Array(b>1?b-1:0),F=1;F<b;F++)I[F-1]=arguments[F];t.emit(A,...I)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=yg),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=eu(),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]:yg,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=eu();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=yg),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"&&wR.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=eu();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=eu();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=eu();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 Ag(DR());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 iu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new iu(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 bg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Eg(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(iu,"I18n");var Sg=iu,q=Sg.createInstance();q.createInstance=Sg.createInstance;var YY=q.createInstance,JY=q.dir,ZY=q.init,eJ=q.loadResources,tJ=q.reloadResources,nJ=q.use,iJ=q.changeLanguage,rJ=q.getFixedT,oJ=q.t,aJ=q.exists,sJ=q.setDefaultNamespace,cJ=q.hasLoadedNamespace,lJ=q.loadNamespaces,fJ=q.loadLanguages;var YF=ie(nb()),JF=ie(lF()),Wg=ie(qF()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),cu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Hg=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(`${Hg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Hg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Hg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",VW=[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],wW=["sap.fe.core","sap.fe.templates"],ZF="controlProperty",MW="defaultControlProperty",dl=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,JF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var pl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Ab(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(Ab,"evaluateCommonLabel");function Kg(e,t){let n=e.value;return e.$target&&(n=Ab(e.$target.annotations,t,n)),n}o(Kg,"getLabelForPropertyPath");function Gg(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=Ab(i.annotations,t,n)),n}o(Gg,"getLabelForDataField");function kW(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 Ab(a.annotations,t,s)}}}else return}o(kW,"getLabel");function zF(e,t,n){let i=Gg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(zF,"getTitleForDataField");function Ai(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=kW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=zF(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Gg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Gg(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=Gg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=zF(r,t,g);break;default:break}return n}catch{return n}}o(Ai,"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 Sb(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(Sb,"getPageTypeV4");function jW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(jW,"getTargetAnnotationName");function ii(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(ii,"findAlias");function UW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(UW,"getAnnotationFromMetaPath");function $W(e,t,n){var s,l;let i=e[e.length-1],r=UW(i),a=ii(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($W,"determineTargetAnnotation");function BW(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(BW,"adjustKey");function HW(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=BW(t,u,a);let g=$W(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=jW(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(HW,"getKeyAndEntityTypeOfReferenceFacet");function e0(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=pl(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=HW(n,l,p,A,r,a);if(F)return;l=b,p=I,u=j}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(e0,"getSectionFacet");function GW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(GW,"getDecodedPathElement");var Pb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),t0=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=GW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Pb(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)=>t0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),n0=o((e,t,n,i,r)=>{t0(e,t,i,r,n)},"setManifestSectionByPathV4");function xb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=pl(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:pl(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=pl(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=pl(e.Value),n=pl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(xb,"getSchemaKeyOfLineItemRecord");function WW(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(WW,"getUIAnnotationTerm");function KW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?cu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?cu.CommunicationAnnotationTerms.Address:void 0}o(KW,"getCommunicationAnnotationTerm");function XW(e,t,n){return WW(e,t,n)||KW(e,t)}o(XW,"getAnnotationTerm");function QW(e,t,n,i,r){var p,g,m,v,A,b,I,F,j,K;let a=ii(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(XW(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 U=s.split("::");U[U.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=U.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=(I=t==null?void 0:t.Target)==null?void 0:I.$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 cu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case cu.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(QW,"evaluateTargetAnnotation");function Cb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Cb,"getAnnotationPathUsingFullyQualifiedName");function Ob(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=e0(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{QW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=Cb(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=>{Ob(m,t,n,i,g.facets,a,s)});break}}}o(Ob,"addFacetToConfig");function Xg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(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=>{Ob(m,t,g,e,r,n,i)})}return r}o(Xg,"getObjectPageHeaderFacets");function Qg(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(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=>{Ob(g,t,p,e,r,n,i)})}return r}o(Qg,"getObjectPageFacets");function Ib(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=>VW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>wW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(Ib,"getFEVersionFromManifest");function qW(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(qW,"getMainService");function i0(e){var i,r;let t=qW(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(i0,"getODataVersionFromManifest");function zW(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(zW,"determineV2Template");function lu(e){var i,r,a,s;let t,n=Sb(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(lu,"determineV4PageTemplateType");function YW(e){let t;for(let n in e){let i=e[n];if(t=lu(i),t)break}return t}o(YW,"determineV4TemplateFromPages");function JW(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=YW(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(JW,"determineV4Template");function Nb(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=zW(e,n):t===G.FioriElementsVersion.v4&&(i=JW(e,n)),i}o(Nb,"getTemplateTypeFromManifest");function ua(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,"")}])}o(ua,"addSectionTitle");function Wa(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Wa,"addSectionDescription");function gl(e,t,n){var i,r;ua(e,t,n),Wa(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(gl,"addTargetTitleAndSectionDescription");function r0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(r0,"addChartFacetID");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,gl(t,i,n),i}o(Ro,"createDefaultSection");function o0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(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=e0(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(o0,"getObjectPageFacetSection");var Ka=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(),Ka(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Eb=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=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}`:Eb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:Eb(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Eb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function qg(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(qg,"generatePageId");function Lb(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(Lb,"findMatchingKeysByAdditionalProperties");function ZW(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[ZF];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[MW]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=Lb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(ZW,"fillArrayFromAnyOfReference");function e8(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{ZW(r,n,t,i)}),i.length===0))return;return i}o(e8,"fillArrayFromPropertyDefinition");function t8(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],I=i||{};u.configObject=a.createInstance(s,b,I,(v=u==null?void 0:u.targetDefinition)==null?void 0:v[ZF])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(t8,"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=e8(i,n,e);if(u)return l=t8(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var Rb=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,YF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function zg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(zg,"convertEnumToCSV");function zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(zi,"convertActionKeyToStableId");function yn(e){return e==null?void 0:e.split($)[1]}o(yn,"getDefinitionKey");function a0(e){return`#/definitions/${e}`}o(a0,"getDefinitionsRef");function Yg(e){return e instanceof Error?e.message:String(e)}o(Yg,"getErrorMessage");function Js(e,t){return e==null?void 0:e.includes(t)}o(Js,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Jg(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(Jg,"getJSONPropertyByPath");function s0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(s0,"removeNamespaces");function ml(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ml,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Yi=ie(le());var Yt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Zg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Yi.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 n8(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(n8,"escapeId");var c0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(c0||{}),l0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(l0||{});function i8(e,t,n){let i;return e=e.map(function(r){if(r===Yi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Yi.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(i8,"mapBreadcrumbs");var Fb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=i8(t,s,r)),s[0]===Yi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH):t[0]===Yi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.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}`),n8(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 r8(e){let t=Yi.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(r8,"determinePattern");var Db=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=r8(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"),qn=o((e,t,n)=>{Db(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(c0);Db(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(l0);Db(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Zs(){}o(Zs,"doNotDelete");var oZ=ie(u0());var p0=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(p0,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(p0,e,t)),n}o(zn,"getReflectMetadata");var jr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),d0=Symbol("childId"),Ut=o(e=>Reflect.metadata(d0,e),"childId"),em=o((e,t)=>Reflect.getMetadata(d0,e,t),"getChildId"),tm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),o8=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(o8,e),"descriptionSrcURL");var a8=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(a8,e),"validity");function hl(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(hl,"getTextForDeprecated");var E0=ie(T0()),A0=ie(le());var S0=E0.default.change,b0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function P0(e,t){let n="";try{for(let i in b0)e[i]===void 0&&(e[i]=b0[i]);n=S0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(P0,"createChangeString");function ro(e){try{return S0.parse(e)}catch{return!1}}o(ro,"parseChangeString");function x0(e,t,n,i,r){let a=n.layer?n.layer===A0.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(x0,"fillFlexChangeContent");function C0(e,t){return P0(e,t)}o(C0,"exportToFlexChange");var ec=ie(le());function yl(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(yl,"importProperty");function nm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:ec.LogSeverity.Warning,message:hl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(nm,"checkDeprecatedProperties");function _b(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return _b(n,t)}else return e.title?e.title.startsWith(ec.FACETTITLEPREFIX)?e.title.split(ec.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(_b,"getSectionTitle");function im(e){let t=e.split(`${ec.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(im,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var $t=require("@sap-ux/vocabularies-types/vocabularies/UI");var pa=require("@sap-ux/vocabularies-types/vocabularies/UI");function rm(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(rm,"replaceSpecialChars");var tc=o(function(e){return rm(s0(e))},"prepareId");function d8(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(d8,"evaluateConcat");function nc(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 d8(e);if(e&&typeof e=="string")return rm(e.replace(/ /g,"_"))}o(nc,"getStableIdPartFromValue");var O0=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"),da=o(function(e){let t="";if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=O0(e),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=tc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=nc(e.Value)+"::"),t+=e.Action,tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataField)return t="DataField::",t+=nc(e.Value),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=nc(e.Value)+"::",t+=O0(e),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=nc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=nc(e.Value),tc(t)},"getStableIdPartFromDataField");var ge=ie(le());var De=ie(le());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),R0=require("path"),F0=ie(zs());var om="ResponsiveTableWithMultiSelect<LineItems>",am="ResponsiveTableWithInlineDelete<LineItems>",g8="TreeTable<LineItems>",m8="AnalyticalTable<LineItems>",h8="GridTable<LineItems>",Vb=[om,am,g8,m8,h8],I0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],N0="template::",sm="template:::ObjectPageAction:::";function y8(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(y8,"addCustomColumnDefinition");function v8(e,t){let n;return e==="TableColumnActionIntentBased"?n=xb(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(v8,"getActionId");function wb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=v8(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=Ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ic(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(wb,"handleActionRecord");function T8(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(T8,"getColumnActionType");function b8(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"),T8(t,e,n),n}o(b8,"getActionType");function D0(e,t,n){let i=xb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,gm(r.properties[i],e.lineItemRecord),mm(e.lineItemRecord,r.properties,i)}}o(D0,"generateGenericColumn");function E8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{wb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&wb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{wb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":D0(i,t,r)}}o(E8,"handleAnyAction");function fu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(fu,"retrieveNameWithoutVocabularyFromVisualization");function vl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=dm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=b8(g,r);v?v.forEach(A=>{E8(A,t,s,m,p,l,r)}):D0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(vl,"addLineItemsType");function A8(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(A8,"addListReportLeadingProperties");function S8(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)}ga(v,r)}}o(S8,"addTabkeyEnum");function cm(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,F0.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("\\"+R0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),ga(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(cm,"addFragmentEnum");function Tl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){y8(e,a,s),A8(e,t,s),S8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;cm(e,r,u,"fragmentName",s),cm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),cm(e,r,u,"cellsFragmentName",s),cm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Tl,"addTableColumnExtensions");function _0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(_0,"removeElementsFromEnum");function lm(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=oo(s);s.type==="PropertyPath"&&(l=Kg(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(lm,"addSelectionFields");function V0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(V0,"addEntityPropertiesToEnum");function fm(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(fm,"isDraftEnabled");function w0(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(w0,"isEntityDeletable");function M0(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(M0,"isEntityUpdatable");function bl(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(bl,"addStandardHeaderActions");function k0(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(k0,"addStandardFooterActionsOP");function um(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(um,"getUIAnnotationForEntitySet");function pm(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(pm,"hasPropertyTypeError");function P8(e,t,n,i){if(e===ge.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case $t.UIAnnotationTypes.DataField:case $t.UIAnnotationTypes.DataFieldForAnnotation:case $t.UIAnnotationTypes.DataFieldWithNavigationPath:case $t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ge.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case $t.UIAnnotationTypes.DataField:case $t.UIAnnotationTypes.DataFieldForAnnotation:case $t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(P8,"copyFieldProperties");function x8(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(x8,"determineFieldDefinitionName");function C8(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(C8,"addKeysTagForDataField");function O8(e,t,n){if(e.$Type===$t.UIAnnotationTypes.DataField||e.$Type===$t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===$t.UIAnnotationTypes.DataFieldWithNavigationPath)C8(e,t,n);else if(e.$Type===$t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:ml(e.Target.value)}],t.definitions[n][ge.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===$t.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===$t.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(O8,"addKeysTagToField");function I8(e){var t,n;return e.$Type===$t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===$t.UIAnnotationTypes.ConnectedFieldsType}o(I8,"isConnectedField");function N8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===$t.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++),Mb(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(N8,"addConnectedFields");function j0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(j0,"getFieldsSchemaContainer");function Mb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=da(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=x8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===$t.UIAnnotationTypes.DataFieldForAction||n.$Type===$t.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ge.SectionType.Section){let I=j0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),F=I[m]={$ref:`${$}${v}`};F[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let I=j0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);I[m]={$ref:`${$}${v}`,propertyIndex:parseInt(r)},I8(n)&&(A=N8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:Ai(n,a.entityType),additionalProperties:!1},O8(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,gm(t.definitions[v],n),P8(s,t,n,v),n.$Type===$t.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[v].$ref=`${$}${ge.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(Mb,"addField");function L8(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(L8,"determineTargetIdOfForm");function R8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Mb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Mb(t,n,l,i,s,e,r)}}o(R8,"addFieldsToFormDefinition");function F8(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(F8,"addTagsToFormDefinition");function hm(e,t,n,i,r,a){if(!t.target)return;let s=L8(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},F8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,R8(t,e,i,s,r,g),s}o(hm,"handleForm");function kb(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(kb,"replaceAlias");function ym(e,t){let n=kb(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(ym,"getActionNameAndId");function U0(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:U0(a.pages,t)}}o(U0,"isFirstObjectPage");function vm(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=ii(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(`@${$t.UIAnnotationTerms.Identification}`,`/@${$t.UIAnnotationTerms.Identification}`);a[ge.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[ge.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${$t.UIAnnotationTerms.Identification}`);n===ge.FioriElementsVersion.v2&&U0(r,t)&&!fm(l)&&k0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(vm,"addFooterActions");function Tm(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=ii(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(`@${$t.UIAnnotationTerms.Identification}`,`/@${$t.UIAnnotationTerms.Identification}`):t&&(u[ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${$t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&bl(e,!0,l)}o(Tm,"addHeaderActions");function bm(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}/@${$t.UIAnnotationTerms.HeaderInfo}`)}o(bm,"addCommonHeaderSchema");function $0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o($0,"determineEntitySetOfEntityType");var hr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function ga(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ga,"addEnumToSchema");function uu(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)}}ga(r,n)}o(uu,"addEnumForValidAnnotations");function Xa(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];uu(e,r,i)}o(Xa,"addEnumForSingleTabVariant");function B0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];uu(n.entityType,r,i)}o(B0,"addEnumForMultiTabVariant");function H0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ga(r,i)}o(H0,"addEnumForVariantEntitySet");function G0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[hr.UIAnnotationTerms.FieldGroup];uu(e,r,i)}o(G0,"addEnumFieldGroupAnnotationPath");function W0(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(W0,"addDefinitionForRelatedFacetKeys");function rc(e){return e.replace("#","::")}o(rc,"getFacetKeyInSchema");function Am(e,t){return`${e}<${rc(t)}>`}o(Am,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=Am(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 Em(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(Em,"getCustomExtensionDefinitionName");function dm(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 I=Em(t,r,a);t.definitions[r].additionalProperties={$ref:I}}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 I=Em(t,r,s);v.additionalProperties={$ref:I}}}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 I=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+I,A=t.definitions[I]=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(dm,"addCommonLineItemDefinitions");function K0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(K0,"getDataTypeFromAnnotation");function oc(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=K0(e.$Type)),t}o(oc,"determineDataTypeOfTarget");function oo(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=oc((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=K0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(oo,"determineDataType");function gm(e,t){let n=oo(t);n&&(e[et.SchemaTag.dataType]=n)}o(gm,"addDataTypeToDefinition");function Si(e,t){return`${$}${Am(e,t)}`}o(Si,"getFacetDefinitionLink");function Qa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Qa,"addDefinitionRef");function Sm(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(Sm,"getFacetAnnotationPath");function pu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:Si(a?u:l,t)};let p=bt(a?u:l,t,i,!0);ua(e,p,t),Wa(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(pu,"handleAddressContact");function jb(e,t,n){typeof e=="object"&&(e[t]=n)}o(jb,"updateSchemaProperty");function El(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];jb(r.properties.fields.items,"enum",i)}o(El,"addFieldsType");function D8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(D8,"findFirstSchemaDefinitionKey");function Pm(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=D8(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(Pm,"getEnumEntry");function qa(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=Pm(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];jb(l,"oneOf",r)}else jb(a,"oneOf",r)}o(qa,"addDescriptiveEnumDefinition");function ic(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(ic,"getActionKey");function mm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:nc(e.Value)}];else if(e.$Type===hr.UIAnnotationTypes.DataFieldWithAction||e.$Type===hr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ic(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}=ic(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:ml(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}=ic(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(mm,"addKeyToDefinition");var Al=ie(le());var X0=[{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 q0="1.124.16";var z0={name:"@sap/ux-specification",version:q0,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/schema/index.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.33.26","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.16","@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.9.0",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.7.1","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 za=class za{constructor(){za.distTagsOfSpec.length===0&&(za.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){za.distTagsOfSpec=[]}getSpecVersion(){return q0}getDistTagsOfVersion(){let t=[],n=X0,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("."));za.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:Al.LogSeverity.Warning,message:a,location:{path:Al.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:Al.LogSeverity.Info,message:i,location:{path:Al.MANIFESTPATH}}),!1}else return!0}};o(za,"DistTagEvaluator"),za.distTagsOfSpec=[];var du=za;var ue=ie(le());var _n=ie(le());var Pi=ie(le());function Y0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(Y0,"getCustomPageFullName");function w8(e){let n=Y0(e).split(".");return n[n.length-1]}o(w8,"getCustomPageName");function J0(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(J0,"getViewType");function M8(e,t){return J0(e,t).toLowerCase()}o(M8,"getViewTypeExtension");function k8(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=Y0(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(k8,"getViewPath");function j8(e,t){let n=e.entitySet||w8(e),{viewPath:i,fileName:r}=k8(e,t,[n]),a=M8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(j8,"getCustomPagePath");var Ub=class Ub{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(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=J0(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(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=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(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=j8(t,this.app);n.$filePath=i}};o(Ub,"AppProvider");var Ya=Ub;var lt=ie(le());var Sl=ie(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Z0=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"),e1=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 $b(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o($b,"getNewPageTemplate");function U8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(U8,"findPageInManifest");function $8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=$b(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:$b(e[t].pageType)}),!Array.isArray(n.pages))){let i=U8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=$b(e[t].pageType)),Bb(t,e,i)}}o($8,"transformPageFromAssociation");function B8(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)===Sl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Sl.PageTypeV2.ListReport||n.pageType===Sl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(B8,"deletePage");function Bb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Sl.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)$8(t,r,n);Array.isArray(n.pages)||B8(n,t,i)}}o(Bb,"transformPageToNewManifestV2");var j1=ie(zs());var RA={};Qs(RA,{ALPAnalyticalTable:()=>LE,ALPGridTable:()=>NE,ALPResponsiveTable:()=>IE,Action:()=>_E,AnalyticalCard:()=>Il,AnalyticalCardSettings:()=>Im,AnalyticalCardSettingsv4:()=>Qb,AnalyticalListPageFilterBar:()=>iE,AnalyticalTable:()=>OE,BaseCustomSection:()=>Wu,ChartSettings:()=>JE,ChartSettingsType:()=>Gb,CommonCardSettings:()=>ns,CommonFilterBar:()=>xu,CommonHeaderFacetSettings:()=>gc,CommonTableSettings:()=>as,CommonTableSettingsForSections:()=>Tc,CreateWithFilters:()=>bE,CustomCard:()=>Kb,DataLoadSettings:()=>AE,DateRange:()=>Zb,DefaultDateRange:()=>eE,DefaultSpanObject:()=>Wb,FRAGMENT_DEFINITION:()=>wo,Field:()=>Jb,FieldForAction:()=>cE,Fields4Dialog:()=>SE,Fields4DialogOP:()=>xA,FooterAction:()=>wE,FormAction:()=>sE,GlobalChartSettings:()=>SA,GlobalTableSettings:()=>NA,GridTable:()=>RE,HeaderActionStandard:()=>$E,HeaderSections:()=>aA,KPISettings:()=>ZE,LinkListCardSettings:()=>zb,LinklistCard:()=>Au,ListCard:()=>Ol,ListCardSettings:()=>Xb,ListReportFilterBar:()=>rE,MultiEdit:()=>EE,ObjectPageAnalyticalTable:()=>CA,ObjectPageChart:()=>AA,ObjectPageCustomSectionFragment:()=>Ku,ObjectPageCustomSectionView:()=>Xu,ObjectPageFooterAction:()=>cA,ObjectPageFooterActionStandard:()=>HE,ObjectPageGridTable:()=>OA,ObjectPageHeader:()=>eA,ObjectPageHeaderAction:()=>tA,ObjectPageHeaderActionStandard:()=>BE,ObjectPageHeaderSectionAddress:()=>oA,ObjectPageHeaderSectionChart:()=>iA,ObjectPageHeaderSectionDataPoint:()=>rA,ObjectPageHeaderSectionForm:()=>nA,ObjectPageLayout:()=>fA,ObjectPageResponsiveTable:()=>bc,ObjectPageSectionAddressV2:()=>mA,ObjectPageSectionChartV2:()=>dA,ObjectPageSectionContactV2:()=>hA,ObjectPageSectionFormV2:()=>pA,ObjectPageSectionTableV2:()=>gA,ObjectPageSectionV2:()=>uA,ObjectPageSubSectionChartV2:()=>TA,ObjectPageSubSectionContactV2:()=>bA,ObjectPageSubSectionFormV2:()=>vA,ObjectPageSubSectionTableV2:()=>EA,ObjectPageSubSectionV2:()=>yA,ObjectPageToolBarAction:()=>LA,ObjectPageTreeTable:()=>IA,QuickVariantSelection:()=>PE,QuickVariantSelectionOP:()=>PA,QuickVariantSelectionX:()=>xE,ResponsiveTable:()=>lc,SAP_UI_TABLE:()=>Vm,SaveAndEditOP:()=>UE,SelectionFieldDateSettings:()=>tE,SelectionFields:()=>nE,Share:()=>ME,ShareOP:()=>kE,StackCard:()=>Eu,StackCardSettings:()=>qb,TableALP:()=>Dl,TableCard:()=>Nl,TableCardSettings:()=>Yb,TableColumn:()=>KE,TableColumnAction:()=>nh,TableColumnActionIntentBased:()=>XE,TableCustomColumn:()=>QE,ToolBar:()=>zE,ToolBarAction:()=>VE,TreeTable:()=>CE,UpAndDownNavigationOP:()=>jE,buildIntentBasedActionId:()=>GE,deleteColumnFromFragment:()=>km,deleteType:()=>Vl,exportColorPalette:()=>r1,exportCreateParametersFields:()=>Km,exportCustomColumnsToFragment:()=>vE,exportDateSettingsField:()=>c1,exportDefaultSpan:()=>o1,exportType:()=>_l,getChartSectionControlId:()=>_1,getContactSubSectionControlId:()=>w1,getCustomColumnPath:()=>jm,getFormSectionControlId:()=>D1,getRootCustomColumnFromFragmentJSON:()=>Iu,getSectionControlId:()=>yc,getSmartChartControlId:()=>Mu,getSmartTableControlId:()=>cc,getSubSectionControlId:()=>V1,getTableSectionControlId:()=>F1,importCreateParameters:()=>Wm,importDateSettings:()=>oE});var Yn=ie(le());var je=o(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),$r=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),t1=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),n1=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Yn.ManifestSection.ovp];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ac=o((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Om=o(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(Om(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Za=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ao=o((e,t,n)=>{let i=[];i.push(Om(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),yr=o((e,t,n)=>ao(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),i1=o((e,t,n)=>ao(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Hb=o(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ma=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),`${Hb()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Cm=class Cm{};o(Cm,"ApplicationV2"),h([Ut("settings")],Cm.prototype,"settings",2);var xm=Cm,Ur=class Ur{};o(Ur,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Ur.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Ur.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Ur.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Ur.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Ur.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Ur.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Ur.prototype,"statePreservationMode",2);var Ja=Ur;var gu=ie(le());function H8(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=gu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=gu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:gu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(H8,"importColorPalette");function r1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===gu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(r1,"exportColorPalette");function o1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(o1,"exportDefaultSpan");var Nm=class Nm{};o(Nm,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Nm.prototype,"showDataLabel",2);var Gb=Nm,es=class es{};o(es,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"minimumSubTitleRow",2);var Wb=es,Qt=class Qt{};o(Qt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:o1}})],Qt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"customParams",2);var ns=Qt,Pl=class Pl{};o(Pl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"settings",2);var Kb=Pl,ts=class ts extends ns{};o(ts,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"listType",2);var Xb=ts,mu=class mu{};o(mu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"template",2);var Ol=mu,so=class so extends ns{};o(so,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:H8,export:r1}})],so.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"bEnableStableColors",2);var Im=so,Lm=class Lm extends Im{};o(Lm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Lm.prototype,"measureAggregate",2);var Qb=Lm,hu=class hu{};o(hu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],hu.prototype,"template",2);var Il=hu,xl=class xl extends ns{};o(xl,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"objectStreamCardsSettings",2);var qb=xl,yu=class yu{};o(yu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],yu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],yu.prototype,"template",2);var Eu=yu,Cl=class Cl extends ns{};o(Cl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Cl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Cl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Cl.prototype,"staticContent",2);var zb=Cl,vu=class vu{};o(vu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vu.prototype,"template",2);var Au=vu,Tu=class Tu extends ns{};o(Tu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tu.prototype,"enableAddToInsights",2);var Yb=Tu,bu=class bu{};o(bu,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bu.prototype,"template",2);var Nl=bu;var a1=ie(le());var G8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return Yt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Rm=class Rm{};o(Rm,"Field"),h([y({flex:{controlId:G8,controlType:o(()=>a1.ControlType.GroupElement,"controlType")},generate:mt})],Rm.prototype,"visible",2);var Jb=Rm;var sc=ie(le());function oE(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(oE,"importDateSettings");function W8(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(W8,"importDateSettingsField");function c1(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(c1,"exportDateSettingsField");var Ll=class Ll{};o(Ll,"DateRange"),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ll.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path"),import:oE,export:zg}}),x({since:"1.77.0"})],Ll.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ll.prototype,"exclude",2);var Zb=Ll,Fm={controlId:Yt,controlType:o(()=>sc.ControlType.SmartFilterBar,"controlType")},Su={path:o((e,t,n)=>`${je(e)}${sc.DATESETTINGSPATH}/fields/${n}`,"path")},s1={...Su,import:W8,export:c1},Dm=class Dm{};o(Dm,"DefaultDateRange"),h([y({manifest:Su}),x({since:"1.90.0"})],Dm.prototype,"operation",2);var eE=Dm,is=class is{};o(is,"SelectionFieldDateSettings"),h([y({manifest:s1}),x({since:"1.77.0"})],is.prototype,"selectedValues",2),h([y({manifest:Su}),x({since:"1.77.0"})],is.prototype,"exclude",2),h([y({manifest:Su}),x({since:"1.77.0"})],is.prototype,"customDateRangeImplementation",2),h([y({manifest:s1}),x({since:"1.77.0"})],is.prototype,"filter",2),h([y({manifest:Su}),x({since:"1.90.0"})],is.prototype,"defaultValue",2);var tE=is,aE=class aE{};o(aE,"SelectionFields");var nE=aE,co=class co{};o(co,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],co.prototype,"smartVariantManagement",2),h([y({flex:Fm}),x({since:"1.40.0"})],co.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],co.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],co.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:oE}}),x({since:"1.77.0"})],co.prototype,"dateSettings",2),h([y({flex:Fm}),x({since:"1.28.0"})],co.prototype,"showClearOnFB",2),h([y({flex:Fm}),x({since:"1.38.0"})],co.prototype,"showFilterConfiguration",2),h([y({flex:Fm}),x({since:"1.28.0"})],co.prototype,"showRestoreOnFB",2);var xu=co,Pu=class Pu extends xu{};o(Pu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Pu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Pu.prototype,"filterDefaultsFromSelectionVariant",2);var iE=Pu,_m=class _m extends xu{};o(_m,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],_m.prototype,"annotationPath",2);var rE=_m;var lE=ie(le());var K8=o((e,t,n,i,r)=>{if(i()===lE.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:K8,controlType:o(()=>lE.ControlType.Button,"controlType")},rs=class rs{};o(rs,"FormAction"),h([y({flex:Vo,generate:mt})],rs.prototype,"visible",2),h([y({flex:Vo})],rs.prototype,"tooltip",2),h([y({flex:Vo})],rs.prototype,"icon",2),h([y({flex:Vo})],rs.prototype,"activeIcon",2),h([y({flex:Vo})],rs.prototype,"type",2);var sE=rs,os=class os{};o(os,"FieldForAction"),h([y({flex:Vo,generate:mt})],os.prototype,"visible",2),h([y({flex:Vo})],os.prototype,"tooltip",2),h([y({flex:Vo})],os.prototype,"icon",2),h([y({flex:Vo})],os.prototype,"activeIcon",2),h([y({flex:Vo}),x({since:"1.73.0"})],os.prototype,"type",2);var cE=os;var Et=ie(le()),lo=ie(zs());var dE=require("path"),fK=ie(le()),E1=ie(b1()),A1=require("fs");var uK=(0,dE.join)(__dirname,"templates");var pK=o((e,t)=>{let n=(0,A1.readFileSync)(e,"utf8");return(0,E1.render)(n,t)},"renderTemplate");var gE=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 pK((0,dE.join)(uK,t+".xml"),n)},"getSingleColumnContent"),mE=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=gE(i,t);n=n+`
|
|
288
|
+
}`;var et=BI(function(){return St(C,Ne+"return "+ee).apply(e,L)});if(et.source=ee,ST(et))throw et;return et}o(mB,"template");function hB(c){return It(c).toLowerCase()}o(hB,"toLower");function yB(c){return It(c).toUpperCase()}o(yB,"toUpper");function vB(c,f,d){if(c=It(c),c&&(d||f===e))return YC(c);if(!c||!(f=ur(f)))return c;var T=Zr(c),E=Zr(f),C=JC(T,E),L=ZC(T,E)+1;return Ba(T,C,L).join("")}o(vB,"trim");function TB(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,tO(c)+1);if(!c||!(f=ur(f)))return c;var T=Zr(c),E=ZC(T,Zr(f))+1;return Ba(T,0,E).join("")}o(TB,"trimEnd");function bB(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(Sv,"");if(!c||!(f=ur(f)))return c;var T=Zr(c),E=JC(T,Zr(f));return Ba(T,E).join("")}o(bB,"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?Ze(f.length):d,T="omission"in f?ur(f.omission):T}c=It(c);var C=c.length;if(Xc(c)){var L=Zr(c);C=L.length}if(d>=C)return c;var R=d-Qc(T);if(R<1)return T;var M=L?Ba(L,0,R).join(""):c.slice(0,R);if(E===e)return M+T;if(L&&(R+=M.length-R),PT(E)){if(c.slice(R).search(E)){var Y,J=M;for(E.global||(E=Uv(E.source,It(TC.exec(E))+"g")),E.lastIndex=0;Y=E.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(ur(E),R)!=R){var me=M.lastIndexOf(E);me>-1&&(M=M.slice(0,me))}return M+T}o(EB,"truncate");function AB(c){return c=It(c),c&&xe.test(c)?c.replace(he,z2):c}o(AB,"unescape");var SB=el(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),OT=HO("toUpperCase");function $I(c,f,d){return c=It(c),f=d?e:f,f===e?W2(c)?Z2(c):w2(c):c.match(f)||[]}o($I,"words");var BI=nt(function(c,f){try{return lr(c,e,f)}catch(d){return ST(d)?d:new We(d)}}),PB=ta(function(c,f){return Fr(f,function(d){d=xo(d),Zo(c,d,ET(c[d],c))}),c});function xB(c){var f=c==null?0:c.length,d=Ve();return c=f?un(c,function(T){if(typeof T[1]!="function")throw new Dr(r);return[d(T[0]),T[1]]}):[],nt(function(T){for(var E=-1;++E<f;){var C=c[E];if(lr(C[0],this,T))return lr(C[1],this,T)}})}o(xB,"cond");function CB(c){return zk(Vr(c,p))}o(CB,"conforms");function IT(c){return function(){return c}}o(IT,"constant");function OB(c,f){return c==null||c!==c?f:c}o(OB,"defaultTo");var IB=WO(),NB=WO(!0);function Qi(c){return c}o(Qi,"identity");function NT(c){return EO(typeof c=="function"?c:Vr(c,p))}o(NT,"iteratee");function LB(c){return SO(Vr(c,p))}o(LB,"matches");function RB(c,f){return PO(c,Vr(f,p))}o(RB,"matchesProperty");var FB=nt(function(c,f){return function(d){return Xf(d,c,f)}}),DB=nt(function(c,f){return function(d){return Xf(c,d,f)}});function LT(c,f,d){var T=Xn(f),E=qd(f,T);d==null&&!(hn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=qd(f,Xn(f)));var C=!(hn(d)&&"chain"in d)||!!d.chain,L=ia(c);return Fr(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(C||Y){var J=c(this.__wrapped__),ee=J.__actions__=Wi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,Va([this.value()],arguments))})}),c}o(LT,"mixin");function _B(){return Kn._===this&&(Kn._=ok),this}o(_B,"noConflict");function RT(){}o(RT,"noop");function VB(c){return c=Ze(c),nt(function(f){return xO(f,c)})}o(VB,"nthArg");var wB=cT(un),MB=cT(KC),kB=cT(Dv);function HI(c){return mT(c)?_v(xo(c)):dj(c)}o(HI,"property");function jB(c){return function(f){return c==null?e:Gs(c,f)}}o(jB,"propertyOf");var UB=XO(),$B=XO(!0);function FT(){return[]}o(FT,"stubArray");function DT(){return!1}o(DT,"stubFalse");function BB(){return{}}o(BB,"stubObject");function HB(){return""}o(HB,"stubString");function GB(){return!0}o(GB,"stubTrue");function WB(c,f){if(c=Ze(c),c<1||c>Re)return[];var d=kt,T=yi(c,kt);f=Ve(f),c-=kt;for(var E=Mv(T,f);++d<c;)f(d);return E}o(WB,"times");function KB(c){return Qe(c)?un(c,xo):pr(c)?[c]:Wi(lI(It(c)))}o(KB,"toPath");function XB(c){var f=++ik;return It(c)+f}o(XB,"uniqueId");var QB=tg(function(c,f){return c+f},0),qB=lT("ceil"),zB=tg(function(c,f){return c/f},1),YB=lT("floor");function JB(c){return c&&c.length?Qd(c,Qi,Qv):e}o(JB,"max");function ZB(c,f){return c&&c.length?Qd(c,Ve(f,2),Qv):e}o(ZB,"maxBy");function eH(c){return qC(c,Qi)}o(eH,"mean");function tH(c,f){return qC(c,Ve(f,2))}o(tH,"meanBy");function nH(c){return c&&c.length?Qd(c,Qi,Jv):e}o(nH,"min");function iH(c,f){return c&&c.length?Qd(c,Ve(f,2),Jv):e}o(iH,"minBy");var rH=tg(function(c,f){return c*f},1),oH=lT("round"),aH=tg(function(c,f){return c-f},0);function sH(c){return c&&c.length?wv(c,Qi):0}o(sH,"sum");function cH(c,f){return c&&c.length?wv(c,Ve(f,2)):0}return o(cH,"sumBy"),P.after=L4,P.ary=bI,P.assign=y$,P.assignIn=_I,P.assignInWith=gg,P.assignWith=v$,P.at=T$,P.before=EI,P.bind=ET,P.bindAll=PB,P.bindKey=AI,P.castArray=B4,P.chain=yI,P.chunk=zj,P.compact=Yj,P.concat=Jj,P.cond=xB,P.conforms=CB,P.constant=IT,P.countBy=a4,P.create=b$,P.curry=SI,P.curryRight=PI,P.debounce=xI,P.defaults=E$,P.defaultsDeep=A$,P.defer=R4,P.delay=F4,P.difference=Zj,P.differenceBy=eU,P.differenceWith=tU,P.drop=nU,P.dropRight=iU,P.dropRightWhile=rU,P.dropWhile=oU,P.fill=aU,P.filter=c4,P.flatMap=u4,P.flatMapDeep=p4,P.flatMapDepth=d4,P.flatten=dI,P.flattenDeep=sU,P.flattenDepth=cU,P.flip=D4,P.flow=IB,P.flowRight=NB,P.fromPairs=lU,P.functions=N$,P.functionsIn=L$,P.groupBy=g4,P.initial=uU,P.intersection=pU,P.intersectionBy=dU,P.intersectionWith=gU,P.invert=F$,P.invertBy=D$,P.invokeMap=h4,P.iteratee=NT,P.keyBy=y4,P.keys=Xn,P.keysIn=Xi,P.map=cg,P.mapKeys=V$,P.mapValues=w$,P.matches=LB,P.matchesProperty=RB,P.memoize=fg,P.merge=M$,P.mergeWith=VI,P.method=FB,P.methodOf=DB,P.mixin=LT,P.negate=ug,P.nthArg=VB,P.omit=k$,P.omitBy=j$,P.once=_4,P.orderBy=T4,P.over=wB,P.overArgs=V4,P.overEvery=MB,P.overSome=kB,P.partial=AT,P.partialRight=CI,P.partition=b4,P.pick=U$,P.pickBy=wI,P.property=HI,P.propertyOf=jB,P.pull=vU,P.pullAll=mI,P.pullAllBy=TU,P.pullAllWith=bU,P.pullAt=EU,P.range=UB,P.rangeRight=$B,P.rearg=w4,P.reject=S4,P.remove=AU,P.rest=M4,P.reverse=TT,P.sampleSize=x4,P.set=B$,P.setWith=H$,P.shuffle=C4,P.slice=SU,P.sortBy=N4,P.sortedUniq=LU,P.sortedUniqBy=RU,P.split=pB,P.spread=k4,P.tail=FU,P.take=DU,P.takeRight=_U,P.takeRightWhile=VU,P.takeWhile=wU,P.tap=YU,P.throttle=j4,P.thru=sg,P.toArray=RI,P.toPairs=MI,P.toPairsIn=kI,P.toPath=KB,P.toPlainObject=DI,P.transform=G$,P.unary=U4,P.union=MU,P.unionBy=kU,P.unionWith=jU,P.uniq=UU,P.uniqBy=$U,P.uniqWith=BU,P.unset=W$,P.unzip=bT,P.unzipWith=hI,P.update=K$,P.updateWith=X$,P.values=il,P.valuesIn=Q$,P.without=HU,P.words=$I,P.wrap=$4,P.xor=GU,P.xorBy=WU,P.xorWith=KU,P.zip=XU,P.zipObject=QU,P.zipObjectDeep=qU,P.zipWith=zU,P.entries=MI,P.entriesIn=kI,P.extend=_I,P.extendWith=gg,LT(P,P),P.add=QB,P.attempt=BI,P.camelCase=J$,P.capitalize=jI,P.ceil=qB,P.clamp=q$,P.clone=H4,P.cloneDeep=W4,P.cloneDeepWith=K4,P.cloneWith=G4,P.conformsTo=X4,P.deburr=UI,P.defaultTo=OB,P.divide=zB,P.endsWith=Z$,P.eq=to,P.escape=eB,P.escapeRegExp=tB,P.every=s4,P.find=l4,P.findIndex=uI,P.findKey=S$,P.findLast=f4,P.findLastIndex=pI,P.findLastKey=P$,P.floor=YB,P.forEach=vI,P.forEachRight=TI,P.forIn=x$,P.forInRight=C$,P.forOwn=O$,P.forOwnRight=I$,P.get=xT,P.gt=Q4,P.gte=q4,P.has=R$,P.hasIn=CT,P.head=gI,P.identity=Qi,P.includes=m4,P.indexOf=fU,P.inRange=z$,P.invoke=_$,P.isArguments=Xs,P.isArray=Qe,P.isArrayBuffer=z4,P.isArrayLike=Ki,P.isArrayLikeObject=On,P.isBoolean=Y4,P.isBuffer=Ha,P.isDate=J4,P.isElement=Z4,P.isEmpty=e$,P.isEqual=t$,P.isEqualWith=n$,P.isError=ST,P.isFinite=i$,P.isFunction=ia,P.isInteger=OI,P.isLength=pg,P.isMap=II,P.isMatch=r$,P.isMatchWith=o$,P.isNaN=a$,P.isNative=s$,P.isNil=l$,P.isNull=c$,P.isNumber=NI,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=Zf,P.isRegExp=PT,P.isSafeInteger=f$,P.isSet=LI,P.isString=dg,P.isSymbol=pr,P.isTypedArray=nl,P.isUndefined=u$,P.isWeakMap=p$,P.isWeakSet=d$,P.join=mU,P.kebabCase=nB,P.last=Mr,P.lastIndexOf=hU,P.lowerCase=iB,P.lowerFirst=rB,P.lt=g$,P.lte=m$,P.max=JB,P.maxBy=ZB,P.mean=eH,P.meanBy=tH,P.min=nH,P.minBy=iH,P.stubArray=FT,P.stubFalse=DT,P.stubObject=BB,P.stubString=HB,P.stubTrue=GB,P.multiply=rH,P.nth=yU,P.noConflict=_B,P.noop=RT,P.now=lg,P.pad=oB,P.padEnd=aB,P.padStart=sB,P.parseInt=cB,P.random=Y$,P.reduce=E4,P.reduceRight=A4,P.repeat=lB,P.replace=fB,P.result=$$,P.round=oH,P.runInContext=w,P.sample=P4,P.size=O4,P.snakeCase=uB,P.some=I4,P.sortedIndex=PU,P.sortedIndexBy=xU,P.sortedIndexOf=CU,P.sortedLastIndex=OU,P.sortedLastIndexBy=IU,P.sortedLastIndexOf=NU,P.startCase=dB,P.startsWith=gB,P.subtract=aH,P.sum=sH,P.sumBy=cH,P.template=mB,P.times=WB,P.toFinite=ra,P.toInteger=Ze,P.toLength=FI,P.toLower=hB,P.toNumber=kr,P.toSafeInteger=h$,P.toString=It,P.toUpper=yB,P.trim=vB,P.trimEnd=TB,P.trimStart=bB,P.truncate=EB,P.unescape=AB,P.uniqueId=XB,P.upperCase=SB,P.upperFirst=OT,P.each=vI,P.eachRight=TI,P.first=gI,LT(P,function(){var c={};return So(P,function(f,d){Dt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Fr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:Un(Ze(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=yi(d,T.__takeCount__):T.__views__.push({size:yi(d,kt),type:c+(T.__dir__<0?"Right":"")}),T},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Fr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==sn||d==tn;pt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(E,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),Fr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Fr(["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 Xf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ug(Ve(c)))},pt.prototype.slice=function(c,f){c=Ze(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=Ze(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(kt)},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],C=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=T?[1]:arguments,M=L instanceof pt,Y=R[0],J=M||Qe(L),ee=o(function(st){var gt=E.apply(P,Va([st],R));return T&&me?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var me=this.__chain__,Ne=!!this.__actions__.length,Me=C&&!me,et=M&&!Ne;if(!C&&J){L=et?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:sg,args:[ee],thisArg:e}),new _r(ke,me)}return Me&&et?c.apply(this,R):(ke=this.thru(ee),Me?T?ke.value()[0]:ke.value():ke)})}),Fr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Dd[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 C=this.value();return f.apply(Qe(C)?C:[],E)}return this[d](function(L){return f.apply(Qe(L)?L:[],E)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Dt.call(Yc,T)||(Yc[T]=[]),Yc[T].push({name:f,func:d})}}),Yc[eg(e,I).name]=[{name:"wrapper",func:e}],pt.prototype.clone=Ek,pt.prototype.reverse=Ak,pt.prototype.value=Sk,P.prototype.at=JU,P.prototype.chain=ZU,P.prototype.commit=e4,P.prototype.next=t4,P.prototype.plant=i4,P.prototype.reverse=r4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=o4,P.prototype.first=P.prototype.head,Uf&&(P.prototype[Uf]=n4),P},"runInContext"),Ma=ek();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=Ma,define(function(){return Ma})):js?((js.exports=Ma)._=Ma,Nv._=Ma):Kn._=Ma}).call(rf)});var _V=Je((gle,DV)=>{var{findIndex:R6}=Np();function F6(e,t){let i=R6(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 MV=Je((hle,wV)=>{var VV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function D6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(VV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(D6,"isXMLNamespaceKey");function _6(e){if(typeof e!="string")return;let t=e.match(VV);if(t!==null)return t.groups&&t.groups.prefix||""}o(_6,"getXMLNamespaceKeyPrefix");wV.exports={isXMLNamespaceKey:D6,getXMLNamespaceKeyPrefix:_6}});var jV=Je((vle,kV)=>{var{findNextTextualToken:V6}=_V(),{isXMLNamespaceKey:w6,getXMLNamespaceKeyPrefix:M6}=MV();kV.exports={findNextTextualToken:V6,isXMLNamespaceKey:w6,getXMLNamespaceKeyPrefix:M6}});var MS=Je((Tle,$V)=>{var{reduce:k6,has:UV,isArray:j6}=Np();function U6(e){return k6(e,(n,i,r)=>(r==="parent"||(UV(i,"type")?n.push(i):j6(i)&&i.length>0&&UV(i[0],"type")&&(n=n.concat(i))),n),[])}o(U6,"getAstChildrenReflective");$V.exports={getAstChildrenReflective:U6}});var kS=Je((Ele,BV)=>{BV.exports={DEFAULT_NS:"::DEFAULT"}});var zV=Je((Ale,qV)=>{var{BaseXmlCstVisitor:$6}=wS(),{last:B6,forEach:KV,reduce:H6,map:Lp,pick:US,sortBy:G6,isEmpty:W6,isArray:XV,assign:K6}=Np(),{findNextTextualToken:X6,isXMLNamespaceKey:Q6,getXMLNamespaceKeyPrefix:q6}=jV(),{getAstChildrenReflective:z6}=MS(),{DEFAULT_NS:Y6}=kS();function J6(e,t){HV.setState({tokenVector:t});let n=HV.visit(e);return n.rootElement!==Vc&&QV(n.rootElement),n}o(J6,"buildAst");var $S=class $S extends $6{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:Vc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&W6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Ly(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Lp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Ly(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Lp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Lp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Vc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Lp(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 tQ(i,t),nQ(i,t),iQ(i,t,this.tokenVector),Ly(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Vc,value:Vc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Ry(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=Z6(a.image),r.syntax.value=Ry(a)}return Ly(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Vc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=G6(r,["startOffset"]),s=Lp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o($S,"CstToAstVisitor");var jS=$S,HV=new jS;function Ly(e){let t=z6(e);KV(t,n=>n.parent=e)}o(Ly,"setChildrenParent");function QV(e,t=[]){let n=H6(e.attributes,(r,a)=>{if(a.key!==Vc&&Q6({key:a.key,includeEmptyPrefix:!1})===!0){let s=q6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[Y6]=l}}return r},{}),i=Object.create(null);e.namespaces=K6(i,t,n),KV(e.subElements,r=>QV(r,e.namespaces))}o(QV,"updateNamespaces");function Ry(e){return US(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Ry,"toXMLToken");function GV(e){return US(e,["startOffset","startLine","startColumn"])}o(GV,"startOfXMLToken");function WV(e){return US(e,["endOffset","endLine","endColumn"])}o(WV,"endOfXMLToken");function Oa(e){return XV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Oa,"exists");function Z6(e){return e.substring(1,e.length-1)}o(Z6,"stripQuotes");function eQ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(eQ,"nsToParts");var Vc=null;function tQ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Ry(n);let i=eQ(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=Ry(t.END_NAME[0]))}o(tQ,"handleElementOpenCloseNameRanges");function nQ(e,t){if(Oa(t.OPEN)){let n;Oa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Oa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...GV(t.OPEN[0]),...WV(n)}),Oa(t.SLASH_OPEN)&&Oa(t.END)&&(e.syntax.closeBody={...GV(t.SLASH_OPEN[0]),...WV(t.END[0])})}}o(nQ,"handleElementOpenCloseBodyRanges");function iQ(e,t,n){if(Oa(t.Name)){let i=t.Name[0].endOffset+2;if(Oa(t.START_CLOSE)||Oa(t.SLASH_CLOSE)){let r=(Oa(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=X6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(iQ,"handleElementAttributeRanges");qV.exports={buildAst:J6}});var ZV=Je((Ple,JV)=>{var{forEach:rQ,isFunction:of}=Np(),{getAstChildrenReflective:oQ}=MS();function YV(e,t){switch(e.type){case"XMLDocument":{of(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{of(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{of(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{of(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{of(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{of(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=oQ(e);rQ(n,i=>{YV(i,t)})}o(YV,"accept");JV.exports={accept:YV}});var tw=Je((Cle,ew)=>{var{buildAst:aQ}=zV(),{accept:sQ}=ZV(),{DEFAULT_NS:cQ}=kS();ew.exports={buildAst:aQ,accept:sQ,DEFAULT_NS:cQ}});var wi={};Qs(wi,{deleteConfigEntityByPath:()=>MY,exportConfig:()=>VY,exportConfigEntityByPath:()=>wY,generateCustomExtension:()=>dC,generateSchema:()=>_Y,getApiVersion:()=>$Y,getChanges:()=>MM,getGenericSchema:()=>mv,getPathToGenericSchema:()=>qw,getProject:()=>KY,importConfig:()=>kY,importProject:()=>jY,importProjectSchema:()=>UY,isDirectory:()=>HY,log:()=>oe,prompts:()=>DY,readDirectory:()=>vC});module.exports=hg(wi);var de=ne(le());var G=ne(le());var Be=o(e=>typeof e=="string","isString"),eu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),NR=o(e=>e==null?"":""+e,"makeString"),H5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),G5=/###/g,LR=o(e=>e&&e.indexOf("###")>-1?e.replace(G5,"."):e,"cleanKey"),RR=o(e=>!e||Be(e),"canNotTraverseDeeper"),tu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(RR(e))return{};let a=LR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return RR(e)?{}:{obj:e,k:LR(i[r])}},"getLastOfPath"),FR=o((e,t,n)=>{let{obj:i,k:r}=tu(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=tu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=tu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),W5=o((e,t,n,i)=>{let{obj:r,k:a}=tu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),vg=o((e,t)=>{let{obj:n,k:i}=tu(e,t);if(n)return n[i]},"getPath"),K5=o((e,t,n)=>{let i=vg(e,n);return i!==void 0?i:vg(t,n)},"getPathWithDefaults"),kR=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]):kR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),ol=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),X5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Q5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>X5[t]):e,"escape"),qT=class qT{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(qT,"RegExpCache");var BT=qT,q5=[" ",",","?","!",";"],z5=new BT(20),Y5=o((e,t,n)=>{t=t||"",n=n||"";let i=q5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=z5.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"),HT=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"),Tg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),J5={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)}},nu=class nu{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||J5,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 nu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new nu(this.logger,t)}};o(nu,"Logger");var GT=nu,Co=new GT,zT=class zT{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(zT,"EventEmitter");var sl=zT,YT=class YT extends sl{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=vg(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:HT(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),FR(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=vg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?kR(u,i,a):u={...u,...i},FR(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(YT,"ResourceStore");var bg=YT,jR={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}},DR={},Pg=class Pg extends sl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),H5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Co.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&&!Y5(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 se=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${se}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${se}${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,I=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,U=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(K&&v&&U&&F.indexOf(I)<0&&!(Be(j)&&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 se=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=se,m.usedParams=this.getUsedParamsDetails(n),m):se}if(a){let se=Array.isArray(v),Z=se?[]:{},re=se?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(j)&&Array.isArray(v))v=v.join(j),v&&(v=this.extendTranslation(v,t,n,i));else{let se=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Pe=Pg.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(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Pe&&(se=!0,v=Ue),this.isValidLookup(v)||(Z=!0,v=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,tn=Pe&&Ue!==v&&this.options.updateMissing;if(Z||se||tn){if(this.logger.log(tn?"updateKey":"missingKey",p,u,s,tn?Ue:v),a){let Ot=this.resolve(s,{...n,keySeparator:!1});Ot&&Ot.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 Rt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let Ot=0;Ot<Re.length;Ot++)Rt.push(Re[Ot]);else this.options.saveMissingTo==="all"?Rt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Rt.push(n.lng||this.language);let Ii=o((Ot,kt,cn)=>{let Hi=Pe&&cn!==v?cn:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ot,u,kt,Hi,tn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ot,u,kt,Hi,tn,n),this.emit("missingKey",Ot,u,kt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Rt.forEach(Ot=>{let kt=this.pluralResolver.getSuffixes(Ot,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&kt.indexOf(`${this.options.pluralSeparator}zero`)<0&&kt.push(`${this.options.pluralSeparator}zero`),kt.forEach(cn=>{Ii([Ot],s+cn,n[`defaultValue${cn}`]||Ue)})}):Ii(Rt,s,Ue))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||se)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,se?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=jR.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!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!DR[`${I[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(DR[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.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!!!")),I.forEach(j=>{if(this.isValidLookup(i))return;s=j;let K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,j,F,n);else{let se;v&&(se=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(K.push(g+se),n.ordinal&&se.indexOf(re)===0&&K.push(g+se.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+se),n.ordinal&&se.indexOf(re)===0&&K.push(Pe+se.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let U;for(;U=K.pop();)this.isValidLookup(i)||(a=U,i=this.getResource(j,F,U,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(Pg,"Translator");var Eg=Pg,UT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),JT=class JT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Co.create("languageUtils")}getScriptPartFromCode(t){if(t=Tg(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=Tg(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]=UT(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]=UT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=UT(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(JT,"LanguageUtil");var Ag=JT,Z5=[{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}],eG={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},tG=["v1","v2","v3"],nG=["v4"],_R={zero:0,one:1,two:2,few:3,many:4,other:5},iG=o(()=>{let e={};return Z5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:eG[t.fc]}})}),e},"createRules"),ZT=class ZT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Co.create("pluralResolver"),(!this.options.compatibilityJSON||nG.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=iG(),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=Tg(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)=>_R[r]-_R[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!tG.includes(this.options.compatibilityJSON)}};o(ZT,"PluralResolver");var WT=ZT,VR=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=K5(e,t,n);return!a&&r&&Be(n)&&(a=HT(e,n,i),a===void 0&&(a=HT(t,n,i))),a},"deepFindWithDefaults"),$T=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),eb=class eb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.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:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:Q5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?ol(a):s||"{{",this.suffix=l?ol(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?ol(v):A||ol("$t("),this.nestingSuffix=b?ol(b):I||ol(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||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 j=VR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let b=A.split(this.formatSeparator),I=b.shift().trim(),F=b.join(this.formatSeparator).trim();return this.format(VR(n,u,I,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:I})},"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=>$T(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?$T(this.escape(A)):$T(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=NR(s));let I=A.safeValue(s);if(t=t.replace(a[0],I),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(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${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=NR(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(eb,"Interpolator");var KT=eb,rG=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"),al=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(Tg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),tb=class tb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("formatter"),this.options=t,this.formats={number:al((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:al((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:al((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:al((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:al((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()]=al(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}=rG(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(tb,"Formatter");var XT=tb,oG=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),nb=class nb extends sl{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=Co.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=>{W5(u.loaded,[a],s),oG(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(nb,"Connector");var QT=nb,wR=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"),MR=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"),yg=o(()=>{},"noop"),aG=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),iu=class iu extends sl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=MR(t),this.services={},this.logger=Co,this.modules={external:[]},aG(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=wR();this.options={...r,...this.options,...MR(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?Co.init(a(this.modules.logger),this.options):Co.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=XT);let m=new Ag(this.options);this.store=new bg(this.options.resources,this.options);let v=this.services;v.logger=Co,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new WT(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 KT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new QT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var b=arguments.length,I=new Array(b>1?b-1:0),F=1;F<b;F++)I[F-1]=arguments[F];t.emit(A,...I)}),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 Eg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,I=new Array(b>1?b-1:0),F=1;F<b;F++)I[F-1]=arguments[F];t.emit(A,...I)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=yg),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=eu(),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]:yg,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=eu();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=yg),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"&&jR.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=eu();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=eu();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=eu();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 Ag(wR());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 iu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new iu(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 bg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Eg(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(iu,"I18n");var Sg=iu,q=Sg.createInstance();q.createInstance=Sg.createInstance;var iJ=q.createInstance,rJ=q.dir,oJ=q.init,aJ=q.loadResources,sJ=q.reloadResources,cJ=q.use,lJ=q.changeLanguage,fJ=q.getFixedT,uJ=q.t,pJ=q.exists,dJ=q.setDefaultNamespace,gJ=q.hasLoadedNamespace,mJ=q.loadNamespaces,hJ=q.loadLanguages;var e0=ne(ib()),t0=ne(pF()),Wg=ne(JF()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),cu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Hg=ne(le());var oe=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(`${Hg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Hg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Hg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",jW=[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],UW=["sap.fe.core","sap.fe.templates"],n0="controlProperty",$W="defaultControlProperty",dl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),hr=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 oe(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,t0.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var pl=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 Kg(e,t){let n=e.value;return e.$target&&(n=Sb(e.$target.annotations,t,n)),n}o(Kg,"getLabelForPropertyPath");function Gg(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(Gg,"getLabelForDataField");function BW(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(BW,"getLabel");function ZF(e,t,n){let i=Gg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(ZF,"getTitleForDataField");function Ai(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=BW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=ZF(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Gg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Gg(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=Gg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=ZF(r,t,g);break;default:break}return n}catch{return n}}o(Ai,"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 Pb(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(Pb,"getPageTypeV4");function HW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(HW,"getTargetAnnotationName");function ii(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(ii,"findAlias");function GW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(GW,"getAnnotationFromMetaPath");function WW(e,t,n){var s,l;let i=e[e.length-1],r=GW(i),a=ii(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(WW,"determineTargetAnnotation");function KW(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(KW,"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=KW(t,u,a);let g=WW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=HW(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 i0(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=pl(e.Target);if(!A){oe(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=XW(n,l,p,A,r,a);if(F)return;l=b,p=I,u=j}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(i0,"getSectionFacet");function QW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(QW,"getDecodedPathElement");var xb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),r0=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=QW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=xb(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)=>r0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),o0=o((e,t,n,i,r)=>{r0(e,t,i,r,n)},"setManifestSectionByPathV4");function Cb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=pl(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:pl(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=pl(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=pl(e.Value),n=pl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(Cb,"getSchemaKeyOfLineItemRecord");function qW(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(qW,"getUIAnnotationTerm");function zW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?cu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?cu.CommunicationAnnotationTerms.Address:void 0}o(zW,"getCommunicationAnnotationTerm");function YW(e,t,n){return qW(e,t,n)||zW(e,t)}o(YW,"getAnnotationTerm");function JW(e,t,n,i,r){var p,g,m,v,A,b,I,F,j,K;let a=ii(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(YW(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 U=s.split("::");U[U.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=U.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=(I=t==null?void 0:t.Target)==null?void 0:I.$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 cu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case cu.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(JW,"evaluateTargetAnnotation");function Ob(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Ob,"getAnnotationPathUsingFullyQualifiedName");function Ib(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=i0(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{JW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=Ob(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&&oe(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{Ib(m,t,n,i,g.facets,a,s)});break}}}o(Ib,"addFacetToConfig");function Xg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(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=>{Ib(m,t,g,e,r,n,i)})}return r}o(Xg,"getObjectPageHeaderFacets");function Qg(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(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=>{Ib(g,t,p,e,r,n,i)})}return r}o(Qg,"getObjectPageFacets");function Nb(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=>jW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>UW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(Nb,"getFEVersionFromManifest");function ZW(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(ZW,"getMainService");function a0(e){var i,r;let t=ZW(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(a0,"getODataVersionFromManifest");function e8(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){oe(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||oe(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(e8,"determineV2Template");function lu(e){var i,r,a,s;let t,n=Pb(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(lu,"determineV4PageTemplateType");function t8(e){let t;for(let n in e){let i=e[n];if(t=lu(i),t)break}return t}o(t8,"determineV4TemplateFromPages");function n8(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(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=t8(n);return i||oe(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(n8,"determineV4Template");function Lb(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=e8(e,n):t===G.FioriElementsVersion.v4&&(i=n8(e,n)),i}o(Lb,"getTemplateTypeFromManifest");function ua(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,"")}])}o(ua,"addSectionTitle");function Wa(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Wa,"addSectionDescription");function gl(e,t,n){var i,r;ua(e,t,n),Wa(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(gl,"addTargetTitleAndSectionDescription");function s0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(s0,"addChartFacetID");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,gl(t,i,n),i}o(Ro,"createDefaultSection");function c0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(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=i0(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(c0,"getObjectPageFacetSection");var Ka=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(),Ka(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"),_t=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 qg(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(qg,"generatePageId");function Rb(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(Rb,"findMatchingKeysByAdditionalProperties");function i8(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[n0];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[$W]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=Rb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(i8,"fillArrayFromAnyOfReference");function r8(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{i8(r,n,t,i)}),i.length===0))return;return i}o(r8,"fillArrayFromPropertyDefinition");function o8(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],I=i||{};u.configObject=a.createInstance(s,b,I,(v=u==null?void 0:u.targetDefinition)==null?void 0:v[n0])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(o8,"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=r8(i,n,e);if(u)return l=o8(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var Fb=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,e0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function zg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(zg,"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 l0(e){return`#/definitions/${e}`}o(l0,"getDefinitionsRef");function Yg(e){return e instanceof Error?e.message:String(e)}o(Yg,"getErrorMessage");function Js(e,t){return e==null?void 0:e.includes(t)}o(Js,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Jg(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(Jg,"getJSONPropertyByPath");function f0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(f0,"removeNamespaces");function ml(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ml,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),ae=ne(le());var Ji=ne(le());var Yt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Zg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Ji.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 a8(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(a8,"escapeId");var u0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(u0||{}),p0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(p0||{});function s8(e,t,n){let i;return e=e.map(function(r){if(r===Ji.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Ji.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(s8,"mapBreadcrumbs");var Db=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=s8(t,s,r)),s[0]===Ji.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Ji.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Ji.VOCWITHSLASH):t[0]===Ji.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Ji.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Ji.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}`),a8(p)},"buildColumnControlId"),Zi=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 c8(e){let t=Ji.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(c8,"determinePattern");var _b=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=c8(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"),qn=o((e,t,n)=>{_b(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(u0);_b(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(p0);_b(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Zs(){}o(Zs,"doNotDelete");var uZ=ne(g0());var m0=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(m0,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(m0,e,t)),n}o(zn,"getReflectMetadata");var jr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),h0=Symbol("childId"),Ut=o(e=>Reflect.metadata(h0,e),"childId"),em=o((e,t)=>Reflect.getMetadata(h0,e,t),"getChildId"),tm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),l8=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(l8,e),"descriptionSrcURL");var f8=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(f8,e),"validity");function hl(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(hl,"getTextForDeprecated");var P0=ne(A0()),x0=ne(le());var C0=P0.default.change,S0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function O0(e,t){let n="";try{for(let i in S0)e[i]===void 0&&(e[i]=S0[i]);n=C0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(O0,"createChangeString");function ro(e){try{return C0.parse(e)}catch{return!1}}o(ro,"parseChangeString");function I0(e,t,n,i,r){let a=n.layer?n.layer===x0.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(I0,"fillFlexChangeContent");function N0(e,t){return O0(e,t)}o(N0,"exportToFlexChange");var ec=ne(le());function yl(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(yl,"importProperty");function nm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(oe(i,{severity:ec.LogSeverity.Warning,message:hl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(nm,"checkDeprecatedProperties");function Vb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return Vb(n,t)}else return e.title?e.title.startsWith(ec.FACETTITLEPREFIX)?e.title.split(ec.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Vb,"getSectionTitle");function im(e){let t=e.split(`${ec.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(im,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var $t=require("@sap-ux/vocabularies-types/vocabularies/UI");var pa=require("@sap-ux/vocabularies-types/vocabularies/UI");function rm(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(rm,"replaceSpecialChars");var tc=o(function(e){return rm(f0(e))},"prepareId");function y8(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(y8,"evaluateConcat");function nc(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 y8(e);if(e&&typeof e=="string")return rm(e.replace(/ /g,"_"))}o(nc,"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"),da=o(function(e){let t="";if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=L0(e),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=tc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=nc(e.Value)+"::"),t+=e.Action,tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataField)return t="DataField::",t+=nc(e.Value),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=nc(e.Value)+"::",t+=L0(e),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=nc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=nc(e.Value),tc(t)},"getStableIdPartFromDataField");var ge=ne(le());var De=ne(le());var er=require("@sap-ux/vocabularies-types/vocabularies/UI"),_0=require("path"),V0=ne(zs());var om="ResponsiveTableWithMultiSelect<LineItems>",am="ResponsiveTableWithInlineDelete<LineItems>",v8="TreeTable<LineItems>",T8="AnalyticalTable<LineItems>",b8="GridTable<LineItems>",wb=[om,am,v8,T8,b8],R0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],F0="template::",sm="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 A8(e,t){let n;return e==="TableColumnActionIntentBased"?n=Cb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===er.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(A8,"getActionId");function Mb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=A8(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=Ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ic(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(Mb,"handleActionRecord");function S8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===er.UIAnnotationTypes.DataFieldForAction||t.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(S8,"getColumnActionType");function P8(e,t){let n=[];if(!(e.$Type!==er.UIAnnotationTypes.DataFieldForAction&&e.$Type!==er.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),S8(t,e,n),n}o(P8,"getActionType");function w0(e,t,n){let i=Cb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,dm(r.properties[i],e.lineItemRecord),gm(e.lineItemRecord,r.properties,i)}}o(w0,"generateGenericColumn");function x8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Mb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&Mb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Mb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":w0(i,t,r)}}o(x8,"handleAnyAction");function fu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(fu,"retrieveNameWithoutVocabularyFromVisualization");function vl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=pm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=P8(g,r);v?v.forEach(A=>{x8(A,t,s,m,p,l,r)}):w0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(vl,"addLineItemsType");function C8(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(C8,"addListReportLeadingProperties");function O8(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)}ga(v,r)}}o(O8,"addTabkeyEnum");function cm(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,V0.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("\\"+_0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),ga(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(cm,"addFragmentEnum");function Tl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){E8(e,a,s),C8(e,t,s),O8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;cm(e,r,u,"fragmentName",s),cm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),cm(e,r,u,"cellsFragmentName",s),cm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Tl,"addTableColumnExtensions");function M0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(M0,"removeElementsFromEnum");function lm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=hr(n==null?void 0:n.fullyQualifiedName,er.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=oo(s);s.type==="PropertyPath"&&(l=Kg(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(lm,"addSelectionFields");function k0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(k0,"addEntityPropertiesToEnum");function fm(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(fm,"isDraftEnabled");function j0(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(j0,"isEntityDeletable");function U0(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(U0,"isEntityUpdatable");function bl(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(bl,"addStandardHeaderActions");function $0(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($0,"addStandardFooterActionsOP");function um(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});oe(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(um,"getUIAnnotationForEntitySet");function I8(e,t,n,i){if(e===ge.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case $t.UIAnnotationTypes.DataField:case $t.UIAnnotationTypes.DataFieldForAnnotation:case $t.UIAnnotationTypes.DataFieldWithNavigationPath:case $t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ge.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case $t.UIAnnotationTypes.DataField:case $t.UIAnnotationTypes.DataFieldForAnnotation:case $t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(I8,"copyFieldProperties");function N8(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(N8,"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 R8(e,t,n){if(e.$Type===$t.UIAnnotationTypes.DataField||e.$Type===$t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===$t.UIAnnotationTypes.DataFieldWithNavigationPath)L8(e,t,n);else if(e.$Type===$t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:ml(e.Target.value)}],t.definitions[n][ge.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===$t.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===$t.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(R8,"addKeysTagToField");function F8(e){var t,n;return e.$Type===$t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===$t.UIAnnotationTypes.ConnectedFieldsType}o(F8,"isConnectedField");function D8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===$t.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++),kb(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(D8,"addConnectedFields");function B0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(B0,"getFieldsSchemaContainer");function kb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=da(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=N8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===$t.UIAnnotationTypes.DataFieldForAction||n.$Type===$t.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ge.SectionType.Section){let I=B0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),F=I[m]={$ref:`${$}${v}`};F[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let I=B0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);I[m]={$ref:`${$}${v}`,propertyIndex:parseInt(r)},F8(n)&&(A=D8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:Ai(n,a.entityType),additionalProperties:!1},R8(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,dm(t.definitions[v],n),I8(s,t,n,v),n.$Type===$t.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[v].$ref=`${$}${ge.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(kb,"addField");function _8(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(_8,"determineTargetIdOfForm");function V8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&kb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];kb(t,n,l,i,s,e,r)}}o(V8,"addFieldsToFormDefinition");function w8(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]=hr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(w8,"addTagsToFormDefinition");function mm(e,t,n,i,r,a){if(!t.target)return;let s=_8(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},w8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,V8(t,e,i,s,r,g),s}o(mm,"handleForm");function jb(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(jb,"replaceAlias");function hm(e,t){let n=jb(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(hm,"getActionNameAndId");function H0(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:H0(a.pages,t)}}o(H0,"isFirstObjectPage");function ym(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=ii(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(`@${$t.UIAnnotationTerms.Identification}`,`/@${$t.UIAnnotationTerms.Identification}`);a[ge.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[ge.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${$t.UIAnnotationTerms.Identification}`);n===ge.FioriElementsVersion.v2&&H0(r,t)&&!fm(l)&&$0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(ym,"addFooterActions");function vm(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=ii(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(`@${$t.UIAnnotationTerms.Identification}`,`/@${$t.UIAnnotationTerms.Identification}`):t&&(u[ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${$t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&bl(e,!0,l)}o(vm,"addHeaderActions");function Tm(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}/@${$t.UIAnnotationTerms.HeaderInfo}`)}o(Tm,"addCommonHeaderSchema");function G0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(G0,"determineEntitySetOfEntityType");var yr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Xe=ne(le());function ga(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ga,"addEnumToSchema");function uu(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)}}ga(r,n)}o(uu,"addEnumForValidAnnotations");function Xa(e,t,n){let i=t.definitions[n].properties[Xe.SchemaTag.annotationPath],r=[yr.UIAnnotationTerms.SelectionVariant,yr.UIAnnotationTerms.SelectionPresentationVariant];uu(e,r,i)}o(Xa,"addEnumForSingleTabVariant");function W0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[yr.UIAnnotationTerms.SelectionVariant,yr.UIAnnotationTerms.SelectionPresentationVariant];uu(n.entityType,r,i)}o(W0,"addEnumForMultiTabVariant");function K0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ga(r,i)}o(K0,"addEnumForVariantEntitySet");function X0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[yr.UIAnnotationTerms.FieldGroup];uu(e,r,i)}o(X0,"addEnumFieldGroupAnnotationPath");function Q0(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[Xe.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:`${$}${Xe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(Q0,"addDefinitionForRelatedFacetKeys");function rc(e){return e.replace("#","::")}o(rc,"getFacetKeyInSchema");function Em(e,t){return`${e}<${rc(t)}>`}o(Em,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=Em(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 bm(e,t,n){let i;return t===Xe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${yr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,bt(n,t,e,!0)),i}o(bm,"getCustomExtensionDefinitionName");function pm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Xe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=bm(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let u=e?Xe.DefinitionName.ObjectPageToolBar:Xe.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=`${Xe.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(Xe.DefinitionName.LineItems)?Xe.DefinitionName.Actions:Xe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=bm(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===Xe.DefinitionName.LineItems&&t.properties.footer){b=`${Xe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Xe.DefinitionName.GenericFooter}))}let I=`${Xe.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+I,A=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=hr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Xe.SchemaTag.annotationPath]=l,A&&(t.definitions[b][Xe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:A,lineItemPath:l}}o(pm,"addCommonLineItemDefinitions");function q0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(q0,"getDataTypeFromAnnotation");function oc(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=q0(e.$Type)),t}o(oc,"determineDataTypeOfTarget");function oo(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=oc((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=q0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(oo,"determineDataType");function dm(e,t){let n=oo(t);n&&(e[Xe.SchemaTag.dataType]=n)}o(dm,"addDataTypeToDefinition");function Si(e,t){return`${$}${Em(e,t)}`}o(Si,"getFacetDefinitionLink");function Qa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Qa,"addDefinitionRef");function Am(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Xe.UIVOCABULARY}`);t=`/${n}/@${Xe.UIVOCABULARY}${i}`}return t}o(Am,"getFacetAnnotationPath");function pu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:Si(a?u:l,t)};let p=bt(a?u:l,t,i,!0);ua(e,p,t),Wa(e,p,t),p[Xe.SchemaTag.annotationPath]=e.annotationPath,p[Xe.SchemaTag.isViewNode]=!0}o(pu,"handleAddressContact");function Ub(e,t,n){typeof e=="object"&&(e[t]=n)}o(Ub,"updateSchemaProperty");function El(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Xe.DefinitionName.Fields4Dialog}${n}`];Ub(r.properties.fields.items,"enum",i)}o(El,"addFieldsType");function M8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(M8,"findFirstSchemaDefinitionKey");function Sm(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=M8(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(Sm,"getEnumEntry");function qa(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=Sm(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];Ub(l,"oneOf",r)}else Ub(a,"oneOf",r)}o(qa,"addDescriptiveEnumDefinition");function ic(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(ic,"getActionKey");function gm(e,t,n){var i,r,a;try{if(e.Value)t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.value,value:nc(e.Value)}];else if(e.$Type===yr.UIAnnotationTypes.DataFieldWithAction||e.$Type===yr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ic(e.Action,!0);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.action,value:s}],l&&(t[n][Xe.SchemaTag.target]=l)}else if(e.$Type===yr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ic(e.Target.value,!1);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.target,value:ml(s)}],t[n][Xe.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===yr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===yr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ic(s,!0);t[n][Xe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Xe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Xe.SchemaTag.target]=u)}}catch{return}}o(gm,"addKeyToDefinition");function z0(e,t){e[Xe.SchemaTag.messages]||(e[Xe.SchemaTag.messages]=[]),Array.isArray(e[Xe.SchemaTag.messages])&&e[Xe.SchemaTag.messages].push({text:t})}o(z0,"addMessageToSchema");var Al=ne(le());var Y0=[{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","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{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 Z0="1.124.18";var e1={name:"@sap/ux-specification",version:Z0,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/schema/index.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.33.28","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.18","@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.9.0",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.7.2","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 za=class za{constructor(){za.distTagsOfSpec.length===0&&(za.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){za.distTagsOfSpec=[]}getSpecVersion(){return Z0}getDistTagsOfVersion(){let t=[],n=Y0,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("."));za.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Al.LogSeverity.Warning,message:a,location:{path:Al.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return oe(n,{severity:Al.LogSeverity.Info,message:i,location:{path:Al.MANIFESTPATH}}),!1}else return!0}};o(za,"DistTagEvaluator"),za.distTagsOfSpec=[];var du=za;var ue=ne(le());var _n=ne(le());var Pi=ne(le());function t1(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(t1,"getCustomPageFullName");function U8(e){let n=t1(e).split(".");return n[n.length-1]}o(U8,"getCustomPageName");function n1(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(n1,"getViewType");function $8(e,t){return n1(e,t).toLowerCase()}o($8,"getViewTypeExtension");function B8(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=t1(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(B8,"getViewPath");function H8(e,t){let n=e.entitySet||U8(e),{viewPath:i,fileName:r}=B8(e,t,[n]),a=$8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(H8,"getCustomPagePath");var $b=class $b{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(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=n1(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(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=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(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=H8(t,this.app);n.$filePath=i}};o($b,"AppProvider");var Ya=$b;var lt=ne(le());var Sl=ne(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),i1=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"),r1=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 Bb(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(Bb,"getNewPageTemplate");function G8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(G8,"findPageInManifest");function W8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Bb(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Bb(e[t].pageType)}),!Array.isArray(n.pages))){let i=G8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Bb(e[t].pageType)),Hb(t,e,i)}}o(W8,"transformPageFromAssociation");function K8(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)===Sl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Sl.PageTypeV2.ListReport||n.pageType===Sl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(K8,"deletePage");function Hb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Sl.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)W8(t,r,n);Array.isArray(n.pages)||K8(n,t,i)}}o(Hb,"transformPageToNewManifestV2");var H1=ne(zs());var FA={};Qs(FA,{ALPAnalyticalTable:()=>RE,ALPGridTable:()=>LE,ALPResponsiveTable:()=>NE,Action:()=>VE,AnalyticalCard:()=>Il,AnalyticalCardSettings:()=>Om,AnalyticalCardSettingsv4:()=>qb,AnalyticalListPageFilterBar:()=>rE,AnalyticalTable:()=>IE,BaseCustomSection:()=>Wu,ChartSettings:()=>ZE,ChartSettingsType:()=>Wb,CommonCardSettings:()=>ns,CommonFilterBar:()=>xu,CommonHeaderFacetSettings:()=>gc,CommonTableSettings:()=>as,CommonTableSettingsForSections:()=>Tc,CreateWithFilters:()=>EE,CustomCard:()=>Xb,DataLoadSettings:()=>SE,DateRange:()=>eE,DefaultDateRange:()=>tE,DefaultSpanObject:()=>Kb,FRAGMENT_DEFINITION:()=>wo,Field:()=>Zb,FieldForAction:()=>lE,Fields4Dialog:()=>PE,Fields4DialogOP:()=>CA,FooterAction:()=>ME,FormAction:()=>cE,GlobalChartSettings:()=>PA,GlobalTableSettings:()=>LA,GridTable:()=>FE,HeaderActionStandard:()=>BE,HeaderSections:()=>sA,KPISettings:()=>eA,LinkListCardSettings:()=>Yb,LinklistCard:()=>Au,ListCard:()=>Ol,ListCardSettings:()=>Qb,ListReportFilterBar:()=>oE,MultiEdit:()=>AE,ObjectPageAnalyticalTable:()=>OA,ObjectPageChart:()=>SA,ObjectPageCustomSectionFragment:()=>Ku,ObjectPageCustomSectionView:()=>Xu,ObjectPageFooterAction:()=>lA,ObjectPageFooterActionStandard:()=>GE,ObjectPageGridTable:()=>IA,ObjectPageHeader:()=>tA,ObjectPageHeaderAction:()=>nA,ObjectPageHeaderActionStandard:()=>HE,ObjectPageHeaderSectionAddress:()=>aA,ObjectPageHeaderSectionChart:()=>rA,ObjectPageHeaderSectionDataPoint:()=>oA,ObjectPageHeaderSectionForm:()=>iA,ObjectPageLayout:()=>uA,ObjectPageResponsiveTable:()=>bc,ObjectPageSectionAddressV2:()=>hA,ObjectPageSectionChartV2:()=>gA,ObjectPageSectionContactV2:()=>yA,ObjectPageSectionFormV2:()=>dA,ObjectPageSectionTableV2:()=>mA,ObjectPageSectionV2:()=>pA,ObjectPageSubSectionChartV2:()=>bA,ObjectPageSubSectionContactV2:()=>EA,ObjectPageSubSectionFormV2:()=>TA,ObjectPageSubSectionTableV2:()=>AA,ObjectPageSubSectionV2:()=>vA,ObjectPageToolBarAction:()=>RA,ObjectPageTreeTable:()=>NA,QuickVariantSelection:()=>xE,QuickVariantSelectionOP:()=>xA,QuickVariantSelectionX:()=>CE,ResponsiveTable:()=>lc,SAP_UI_TABLE:()=>_m,SaveAndEditOP:()=>$E,SelectionFieldDateSettings:()=>nE,SelectionFields:()=>iE,Share:()=>kE,ShareOP:()=>jE,StackCard:()=>Eu,StackCardSettings:()=>zb,TableALP:()=>Dl,TableCard:()=>Nl,TableCardSettings:()=>Jb,TableColumn:()=>XE,TableColumnAction:()=>th,TableColumnActionIntentBased:()=>QE,TableCustomColumn:()=>qE,ToolBar:()=>YE,ToolBarAction:()=>wE,TreeTable:()=>OE,UpAndDownNavigationOP:()=>UE,buildIntentBasedActionId:()=>WE,deleteColumnFromFragment:()=>Mm,deleteType:()=>Vl,exportColorPalette:()=>c1,exportCreateParametersFields:()=>Wm,exportCustomColumnsToFragment:()=>TE,exportDateSettingsField:()=>p1,exportDefaultSpan:()=>l1,exportType:()=>_l,getChartSectionControlId:()=>k1,getContactSubSectionControlId:()=>U1,getCustomColumnPath:()=>km,getFormSectionControlId:()=>M1,getRootCustomColumnFromFragmentJSON:()=>Iu,getSectionControlId:()=>yc,getSmartChartControlId:()=>Mu,getSmartTableControlId:()=>cc,getSubSectionControlId:()=>j1,getTableSectionControlId:()=>w1,importCreateParameters:()=>Gm,importDateSettings:()=>aE});var Yn=ne(le());var je=o(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),$r=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),o1=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),a1=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Yn.ManifestSection.ovp];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ac=o((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Cm=o(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(Cm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Za=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ao=o((e,t,n)=>{let i=[];i.push(Cm(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),vr=o((e,t,n)=>ao(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),s1=o((e,t,n)=>ao(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Gb=o(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ma=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),`${Gb()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),xm=class xm{};o(xm,"ApplicationV2"),h([Ut("settings")],xm.prototype,"settings",2);var Pm=xm,Ur=class Ur{};o(Ur,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Ur.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Ur.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Ur.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Ur.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Ur.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Ur.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Ur.prototype,"statePreservationMode",2);var Ja=Ur;var gu=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=gu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=gu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:gu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(X8,"importColorPalette");function c1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===gu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(c1,"exportColorPalette");function l1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(l1,"exportDefaultSpan");var Im=class Im{};o(Im,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Im.prototype,"showDataLabel",2);var Wb=Im,es=class es{};o(es,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"minimumSubTitleRow",2);var Kb=es,Qt=class Qt{};o(Qt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:l1}})],Qt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"customParams",2);var ns=Qt,Pl=class Pl{};o(Pl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"settings",2);var Xb=Pl,ts=class ts extends ns{};o(ts,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"listType",2);var Qb=ts,mu=class mu{};o(mu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"template",2);var Ol=mu,so=class so extends ns{};o(so,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:X8,export:c1}})],so.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"bEnableStableColors",2);var Om=so,Nm=class Nm extends Om{};o(Nm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Nm.prototype,"measureAggregate",2);var qb=Nm,hu=class hu{};o(hu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],hu.prototype,"template",2);var Il=hu,xl=class xl extends ns{};o(xl,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"objectStreamCardsSettings",2);var zb=xl,yu=class yu{};o(yu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],yu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],yu.prototype,"template",2);var Eu=yu,Cl=class Cl extends ns{};o(Cl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Cl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Cl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Cl.prototype,"staticContent",2);var Yb=Cl,vu=class vu{};o(vu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vu.prototype,"template",2);var Au=vu,Tu=class Tu extends ns{};o(Tu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tu.prototype,"enableAddToInsights",2);var Jb=Tu,bu=class bu{};o(bu,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bu.prototype,"template",2);var Nl=bu;var f1=ne(le());var Q8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return Yt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Lm=class Lm{};o(Lm,"Field"),h([y({flex:{controlId:Q8,controlType:o(()=>f1.ControlType.GroupElement,"controlType")},generate:mt})],Lm.prototype,"visible",2);var Zb=Lm;var sc=ne(le());function aE(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(aE,"importDateSettings");function q8(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(q8,"importDateSettingsField");function p1(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(p1,"exportDateSettingsField");var Ll=class Ll{};o(Ll,"DateRange"),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ll.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path"),import:aE,export:zg}}),x({since:"1.77.0"})],Ll.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Ll.prototype,"exclude",2);var eE=Ll,Rm={controlId:Yt,controlType:o(()=>sc.ControlType.SmartFilterBar,"controlType")},Su={path:o((e,t,n)=>`${je(e)}${sc.DATESETTINGSPATH}/fields/${n}`,"path")},u1={...Su,import:q8,export:p1},Fm=class Fm{};o(Fm,"DefaultDateRange"),h([y({manifest:Su}),x({since:"1.90.0"})],Fm.prototype,"operation",2);var tE=Fm,is=class is{};o(is,"SelectionFieldDateSettings"),h([y({manifest:u1}),x({since:"1.77.0"})],is.prototype,"selectedValues",2),h([y({manifest:Su}),x({since:"1.77.0"})],is.prototype,"exclude",2),h([y({manifest:Su}),x({since:"1.77.0"})],is.prototype,"customDateRangeImplementation",2),h([y({manifest:u1}),x({since:"1.77.0"})],is.prototype,"filter",2),h([y({manifest:Su}),x({since:"1.90.0"})],is.prototype,"defaultValue",2);var nE=is,sE=class sE{};o(sE,"SelectionFields");var iE=sE,co=class co{};o(co,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],co.prototype,"smartVariantManagement",2),h([y({flex:Rm}),x({since:"1.40.0"})],co.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],co.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],co.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:aE}}),x({since:"1.77.0"})],co.prototype,"dateSettings",2),h([y({flex:Rm}),x({since:"1.28.0"})],co.prototype,"showClearOnFB",2),h([y({flex:Rm}),x({since:"1.38.0"})],co.prototype,"showFilterConfiguration",2),h([y({flex:Rm}),x({since:"1.28.0"})],co.prototype,"showRestoreOnFB",2);var xu=co,Pu=class Pu extends xu{};o(Pu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Pu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Pu.prototype,"filterDefaultsFromSelectionVariant",2);var rE=Pu,Dm=class Dm extends xu{};o(Dm,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Dm.prototype,"annotationPath",2);var oE=Dm;var fE=ne(le());var z8=o((e,t,n,i,r)=>{if(i()===fE.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:z8,controlType:o(()=>fE.ControlType.Button,"controlType")},rs=class rs{};o(rs,"FormAction"),h([y({flex:Vo,generate:mt})],rs.prototype,"visible",2),h([y({flex:Vo})],rs.prototype,"tooltip",2),h([y({flex:Vo})],rs.prototype,"icon",2),h([y({flex:Vo})],rs.prototype,"activeIcon",2),h([y({flex:Vo})],rs.prototype,"type",2);var cE=rs,os=class os{};o(os,"FieldForAction"),h([y({flex:Vo,generate:mt})],os.prototype,"visible",2),h([y({flex:Vo})],os.prototype,"tooltip",2),h([y({flex:Vo})],os.prototype,"icon",2),h([y({flex:Vo})],os.prototype,"activeIcon",2),h([y({flex:Vo}),x({since:"1.73.0"})],os.prototype,"type",2);var lE=os;var Et=ne(le()),lo=ne(zs());var gE=require("path"),gK=ne(le()),x1=ne(P1()),C1=require("fs");var mK=(0,gE.join)(__dirname,"templates");var hK=o((e,t)=>{let n=(0,C1.readFileSync)(e,"utf8");return(0,x1.render)(n,t)},"renderTemplate");var mE=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 hK((0,gE.join)(mK,t+".xml"),n)},"getSingleColumnContent"),hE=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=mE(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),
|
|
290
|
+
</core:FragmentDefinition>`},"getColumnFragmentContent"),yE=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 wm=require("path");var wo="core:FragmentDefinition",Vm="sap.ui.table",yE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Vm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Vm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Vm,name:"AnalyticalColumn"}]]),dK=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]]),P1={type:"element",name:"Text",attributes:{text:"Placeholder"}},gK=JSON.stringify(P1);function mK(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(mK,"getFragmentNamespaces");function S1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(S1,"getTagName");function Mm(e,t,n=e){let i=mK(n,!!(t||n!==e));if(t){let r=yE.get(t);return S1(r,i.get(r.namespace))}else{let r=yE.keys();for(let a of r){let s=yE.get(a),l=i?S1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Mm,"getTagNameFromFragmentJSON");function Iu(e,t=e){let n=Mm(e,void 0,t);return e[n]}o(Iu,"getRootCustomColumnFromFragmentJSON");function hK(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(hK,"addP13nData");function x1(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=hK(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(x1,"handleFragmentColumn");function yK(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(wm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,lo.xml2json)(u.fileContent,{compact:!0}));try{let m=Mm(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(yK,"deleteColumnsFromFragment");function C1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===gK&&(e.splice(n,1),t-=1,t===0));n++);}o(C1,"deleteNumberOfCells");function vK(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&&C1(l.elements[0].elements,u.length),s.fileContent=(0,lo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(vK,"deleteCellsFromFragment");function km(e,t,n,i){if(i){yK(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&vK(a,i,n)}}o(km,"deleteColumnFromFragment");function TK(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(P1)}o(TK,"addNewColumnsInFragment");function bK(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)TK(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;C1(a,r)}e.fileContent=(0,lo.json2xml)(JSON.stringify(n),{spaces:4})}}o(bK,"updateNonEmptyCellsFragment");function EK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(wm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=hE(n):bK(r,n);break}}return i}o(EK,"updateCellsFragment");function AK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(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,wm.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=$n(l,m),A=n.reduce((b,I)=>I.cellsFragmentName?I:b);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):e1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(AK,"exportCustomColumnsToManifest");function SK(e,t,n,i,r){let a=gE(e,t);if(a){let s=JSON.parse((0,lo.xml2json)(a,{compact:!0})),l=Iu(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(SK,"insertNewColumnInFragment");function PK(e,t){let n=[];for(let i=0;i<e.length;i++)x1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(PK,"processCustomColumnInArray");function xK(e,t,n){if(e){if(Array.isArray(e))PK(e,t);else if(!x1(e,t)){let r=Mm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(xK,"maintainExistingColumnInFragment");function CK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=SK(a,i,n,r,s)}return n}o(CK,"insertNewColumnsInFragment");function OK(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=mE(i,r);else{let u=JSON.parse((0,lo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Iu(u[wo]),l=xK(l,i,u),l=CK(i,n,l,r,u);let g=Mm(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(OK,"updateColumnsInFragment");function vE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=AK(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("."),j=F?F[F.length-1]:null,K=j?j+Et.FRAGMENTNAMEPART+g:null,U=OK(s,v,A,m,r),ae=!1;if(p?ae=EK(s,K,n):ae=!0,!U){let Z={fileContent:mE(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:hE(n),dataSourceUri:u.replace(v,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(vE,"exportCustomColumnsToFragment");var jm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=dK.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 ai=ie(le());var TE="/multiEdit",cc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ai.PropertyName.table:Yt(e,t),"getSmartTableControlId");function Wm(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(Wm,"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 IK(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(IK,"exportVariants");function NK(e,t){t.variants&&(Object.keys(t.variants).length>0?IK(e,t):delete e.variants)}o(NK,"exportQuickVariantSelectionX");function LK(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(LK,"importMultiEdit");var Um=class Um{};o(Um,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Um.prototype,"strategy",2);var bE=Um,Rl=class Rl{};o(Rl,"MultiEdit"),h([y({manifest:{path:o(t=>$r(t)+TE,"path")}})],Rl.prototype,"enabled",2),h([y({manifest:{path:o(t=>$r(t)+TE,"path")}})],Rl.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>$r(t)+TE,"path"),export:zg}})],Rl.prototype,"ignoredFields",2);var EE=Rl;function Ru(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(Ru,"importType");function _l(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(_l,"exportType");function Vl(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(Vl,"deleteType");var $m=class $m{};o($m,"DataLoadSettings"),h([y({manifest:{path:o(t=>n1(t),"path")}}),x({since:"1.75.2"})],$m.prototype,"loadDataOnAppLaunch",2);var AE=$m,Bm=class Bm{};o(Bm,"Fields4Dialog"),h([y({manifest:{path:o(t=>$r(t)+"/createWithParameterDialog","path"),export:Km}}),x({since:"1.77.0"})],Bm.prototype,"fields",2);var SE=Bm,Nu=class Nu{};o(Nu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Nu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Nu.prototype,"variants",2);var PE=Nu,Fl=class Fl{};o(Fl,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Fl.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Fl.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path"),export:NK}}),x({since:"1.48.0"})],Fl.prototype,"variants",2);var xE=Fl,oi=class oi{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(oi,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>$r(t),"path"),import:Wm}}),x({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Yt,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],oi.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.120.0"})],oi.prototype,"copy",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectAll",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],oi.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],oi.prototype,"enableTableFilterInPageVariant",2),h([Ut("toolBar")],oi.prototype,"toolBar",2);var as=oi,Mo=class Mo extends as{};o(Mo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Mo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")},generate:qn}),x({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>$r(t),"path"),import:LK}}),x({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var lc=Mo,Hm=class Hm extends as{};o(Hm,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Hm.prototype,"type",2);var CE=Hm,fo=class fo extends as{};o(fo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],fo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],fo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],fo.prototype,"createWithFilters",2);var OE=fo,ko=class ko extends as{};o(ko,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ko.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Dl=ko,Gm=class Gm extends Dl{};o(Gm,"ALPResponsiveTable"),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Gm.prototype,"growingThreshold",2);var IE=Gm,FE=class FE extends Dl{};o(FE,"ALPGridTable");var NE=FE,DE=class DE extends Dl{};o(DE,"ALPAnalyticalTable");var LE=DE,Lu=class Lu extends as{};o(Lu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Lu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Lu.prototype,"createWithFilters",2);var RE=Lu;var Fu=ie(le());var RK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${zi(i).replace(":2f","::")}`},"getActionButtonId"),FK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),DK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${sm}${i}`},"getStandardFooterActionOPButtonId"),GE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${zi(r)}`},"buildIntentBasedActionId"),_K=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${zi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ss={controlId:RK,controlType:o(()=>Fu.ControlType.Button,"controlType")},Du={controlId:FK,controlType:o(()=>Fu.ControlType.Button,"controlType")},O1={controlId:DK,controlType:o(()=>Fu.ControlType.Button,"controlType")},Xm={controlId:_K,controlType:o(()=>Fu.ControlType.Button,"controlType")},fc=class fc{};o(fc,"Action"),h([y({flex:ss})],fc.prototype,"tooltip",2),h([y({flex:ss})],fc.prototype,"icon",2),h([y({flex:ss})],fc.prototype,"activeIcon",2),h([y({flex:ss})],fc.prototype,"type",2);var _E=fc,uc=class uc{};o(uc,"ToolBarAction"),h([y({flex:ss})],uc.prototype,"tooltip",2),h([y({flex:ss})],uc.prototype,"icon",2),h([y({flex:ss})],uc.prototype,"activeIcon",2),h([y({flex:ss})],uc.prototype,"type",2);var VE=uc,pc=class pc{};o(pc,"FooterAction"),h([y({flex:Xm})],pc.prototype,"tooltip",2),h([y({flex:Xm})],pc.prototype,"icon",2),h([y({flex:Xm})],pc.prototype,"activeIcon",2),h([y({flex:Xm})],pc.prototype,"type",2);var wE=pc,Qm=class Qm{};o(Qm,"Share"),h([y({flex:Du})],Qm.prototype,"visible",2);var ME=Qm,qm=class qm{};o(qm,"ShareOP"),h([y({flex:Du})],qm.prototype,"visible",2);var kE=qm,zm=class zm{};o(zm,"UpAndDownNavigationOP"),h([y({flex:Du})],zm.prototype,"visible",2);var jE=zm,Ym=class Ym{};o(Ym,"SaveAndEditOP"),h([y({flex:O1,generate:mt})],Ym.prototype,"visible",2);var UE=Ym,Jm=class Jm{};o(Jm,"HeaderActionStandard"),h([y({flex:Du})],Jm.prototype,"visible",2);var $E=Jm,Zm=class Zm{};o(Zm,"ObjectPageHeaderActionStandard"),h([y({flex:Du})],Zm.prototype,"visible",2);var BE=Zm,eh=class eh{};o(eh,"ObjectPageFooterActionStandard"),h([y({flex:O1})],eh.prototype,"visible",2);var HE=eh;var wu=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"),wK=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"),MK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),WE={controlId:VK,controlType:o(()=>wu.ControlType.TableColumn,"controlType")},_u={controlId:MK,controlType:o(()=>wu.ControlType.Button,"controlType")},I1={...WE,controlId:wK},th={..._u,controlId:GE},Vu=class Vu{};o(Vu,"TableColumn"),h([y({flex:{controlId:Fb,controlType:o(()=>wu.ControlType.TableColumn,"controlType")}})],Vu.prototype,"width",2),h([y({flex:{controlId:Fb,controlType:o(()=>wu.ControlType.TableColumn,"controlType")},generate:qn})],Vu.prototype,"hAlign",2);var KE=Vu,ha=class ha{};o(ha,"TableColumnAction"),h([y({flex:WE})],ha.prototype,"width",2),h([y({flex:WE,generate:qn})],ha.prototype,"hAlign",2),h([y({flex:_u})],ha.prototype,"tooltip",2),h([y({flex:_u})],ha.prototype,"icon",2),h([y({flex:_u})],ha.prototype,"activeIcon",2),h([y({flex:_u})],ha.prototype,"type",2);var nh=ha,ya=class ya extends nh{};o(ya,"TableColumnActionIntentBased"),h([y({flex:I1})],ya.prototype,"width",2),h([y({flex:I1,generate:qn})],ya.prototype,"hAlign",2),h([y({flex:th})],ya.prototype,"tooltip",2),h([y({flex:th})],ya.prototype,"icon",2),h([y({flex:th})],ya.prototype,"activeIcon",2),h([y({flex:th})],ya.prototype,"type",2);var XE=ya,qE=class qE{};o(qE,"TableCustomColumn");var QE=qE;var YE=class YE{};o(YE,"ToolBar");var zE=YE;var dc=ie(le());var Mu=o(e=>e+dc.PropertyName.chart,"getSmartChartControlId"),cs=class cs{};o(cs,"ChartSettings"),h([y({flex:{controlId:Mu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showLegendButton",2),h([y({flex:{controlId:Mu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showDownloadButton",2),h([y({flex:{controlId:Mu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:Mu,controlType:o(()=>dc.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")}})],cs.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>t1(t),"path")}}),x({since:"1.81.0"})],cs.prototype,"showDataLabel",2);var JE=cs;var va=class va{};o(va,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"groupId",2);var ZE=va;var N1=ie(le());var kK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Yt(e,n)},"getAvatarControlId"),ls=class ls{};o(ls,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.46.0"})],ls.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.46.0"})],ls.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"})],ls.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ls.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:kK,controlType:o(()=>N1.ControlType.Avatar,"controlType")},generate:mt})],ls.prototype,"displayShape",2);var eA=ls;var ih=ie(le());var jK=o((e,t,n,i)=>{if(i()===ih.ControlType.Button||i()===ih.ControlType.HeaderAction){let r=n[2];return`${e}action::${zi(r)}`}return Yt(e,t)},"getActionButtonId"),ku={controlId:jK,controlType:o(()=>ih.ControlType.HeaderAction,"controlType")},fs=class fs{};o(fs,"ObjectPageHeaderAction"),h([y({flex:ku,generate:mt})],fs.prototype,"visible",2),h([y({flex:ku})],fs.prototype,"tooltip",2),h([y({flex:ku})],fs.prototype,"icon",2),h([y({flex:ku})],fs.prototype,"activeIcon",2),h([y({flex:ku})],fs.prototype,"type",2);var tA=fs;var ju=ie(le());var lh="header::headerEditable::",UK=o((e,t,n,i,r)=>`${e}${lh}${r}`,"getDataPointHeaderSectionId"),$K=o((e,t,n,i,r)=>`${e}${lh}${r}::ContactAddress`,"getAddressHeaderSectionId"),BK=o((e,t,n,i,r)=>`${e}${lh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),L1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(ju.FACETTITLEPREFIX)?r.split(ju.FACETTITLEPREFIX)[1]:a;return`${e}${lh}${s}::Form`},"getFormHeaderSectionId"),Uu={controlType:o(()=>ju.ControlType.ObjectPageHeaderSection,"controlType")},rh=class rh{};o(rh,"CommonHeaderFacetSettings"),h([y({flex:{...Uu,controlId:L1},generate:mt})],rh.prototype,"visible",2);var gc=rh,oh=class oh extends gc{};o(oh,"ObjectPageHeaderSectionForm"),h([y({flex:{...Uu,controlId:L1}})],oh.prototype,"visible",2);var nA=oh,ah=class ah extends gc{};o(ah,"ObjectPageHeaderSectionChart"),h([y({flex:{...Uu,controlId:BK}})],ah.prototype,"visible",2);var iA=ah,sh=class sh extends gc{};o(sh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Uu,controlId:UK}})],sh.prototype,"visible",2);var rA=sh,ch=class ch extends gc{};o(ch,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Uu,controlId:$K}})],ch.prototype,"visible",2);var oA=ch,sA=class sA{};o(sA,"HeaderSections");var aA=sA;var lA=ie(le());var HK=o((e,t,n,i)=>{if(i()===lA.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${zi(r)}::Determining`}return Yt(e,t)},"getFooterActionButtonId"),$u={controlId:HK,controlType:o(()=>lA.ControlType.Button,"controlType")},us=class us{};o(us,"ObjectPageFooterAction"),h([y({flex:$u,generate:mt})],us.prototype,"visible",2),h([y({flex:$u})],us.prototype,"tooltip",2),h([y({flex:$u})],us.prototype,"icon",2),h([y({flex:$u})],us.prototype,"activeIcon",2),h([y({flex:$u})],us.prototype,"type",2);var cA=us;var Bu=ie(le());var fh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Yt(e,n)},"getControlId"),mc=class mc{};o(mc,"ObjectPageLayout"),h([y({flex:{controlId:fh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")},generate:mt})],mc.prototype,"showHeaderContent",2),h([y({flex:{controlId:fh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")}})],mc.prototype,"showAnchorBar",2),h([y({flex:{controlId:fh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")}})],mc.prototype,"useIconTabBar",2),h([y({flex:{controlId:fh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],mc.prototype,"alwaysShowContentHeader",2);var fA=mc;var R1=ie(le());var hc=class hc{};o(hc,"BaseCustomSection"),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],hc.prototype,"relatedFacet",2),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],hc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ma(t,{},i,R1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],hc.prototype,"title",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],hc.prototype,"className",2);var Wu=hc,Hu=class Hu extends Wu{};o(Hu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Hu.prototype,"fragmentName",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Hu.prototype,"type",2);var Ku=Hu,Gu=class Gu extends Wu{};o(Gu,"ObjectPageCustomSectionView"),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Gu.prototype,"viewName",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Gu.prototype,"type",2);var Xu=Gu;var er=ie(le());var F1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),er.DefinitionName.Table];return Yt(e,s)},"getTableSectionControlId"),D1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return Yt(e,s)},"getFormSectionControlId"),_1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return Yt(e,s)},"getChartSectionControlId"),yc=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"),w1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return Yt(e,s)},"getContactSubSectionControlId"),uh=class uh{};o(uh,"ObjectPageSectionV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],uh.prototype,"visible",2);var uA=uh,ph=class ph{};o(ph,"ObjectPageSectionFormV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ph.prototype,"visible",2);var pA=ph,dh=class dh{};o(dh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],dh.prototype,"visible",2);var dA=dh,gh=class gh{};o(gh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],gh.prototype,"visible",2);var gA=gh,mh=class mh{};o(mh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],mh.prototype,"visible",2);var mA=mh,hh=class hh{};o(hh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],hh.prototype,"visible",2);var hA=hh,yh=class yh{};o(yh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:V1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],yh.prototype,"visible",2);var yA=yh,vh=class vh{};o(vh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:D1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:mt})],vh.prototype,"visible",2);var vA=vh,Th=class Th{};o(Th,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:_1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:mt})],Th.prototype,"visible",2);var TA=Th,bh=class bh{};o(bh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:w1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],bh.prototype,"visible",2);var bA=bh,Eh=class Eh{};o(Eh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:F1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:mt})],Eh.prototype,"visible",2);var EA=Eh;var Ah=class Ah{};o(Ah,"ObjectPageChart"),h([y({manifest:{path:i1}}),x({since:"1.78.0"})],Ah.prototype,"variantManagement",2);var AA=Ah,Sh=class Sh{};o(Sh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],Sh.prototype,"variantManagement",2);var SA=Sh;var vr=ie(le());var vc=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"),Qu=class Qu{};o(Qu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Qu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Qu.prototype,"variants",2);var PA=Qu,Ph=class Ph{};o(Ph,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>yr(t,n,i)+"/createWithParameterDialog","path"),export:Km}}),x({since:"1.77.0"})],Ph.prototype,"fields",2);var xA=Ph,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(si,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:yr,import:Wm}}),x({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],si.prototype,"editable",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],si.prototype,"showPasteButton",2),h([y({manifest:{path:yr}}),x({since:"1.54.0"})],si.prototype,"multiSelect",2),h([y({manifest:{path:yr}}),x({since:"1.70.0"})],si.prototype,"selectAll",2),h([y({manifest:{path:yr}}),x({since:"1.70.0"})],si.prototype,"selectionLimit",2),h([y({manifest:{path:ao}}),x({since:"1.63.0"})],si.prototype,"quickVariantSelection",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],si.prototype,"useExportToExcel",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],si.prototype,"exportType",2),h([y({manifest:{path:ao}}),x({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],si.prototype,"createMode",2),h([y({manifest:{path:ao}}),x({since:"1.61.0"})],si.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:yr}}),x({since:"1.78.0"})],si.prototype,"variantManagement",2),h([y({manifest:{path:yr}}),x({since:"1.120.0"})],si.prototype,"copy",2),h([Ut("toolBar")],si.prototype,"toolBar",2);var Tc=si,ps=class ps extends Tc{};o(ps,"ObjectPageResponsiveTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ps.prototype,"type",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],ps.prototype,"includeItemInSelection",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],ps.prototype,"popinLayout",2),h([y({manifest:{path:yr}}),x({since:"1.77.0"})],ps.prototype,"inlineDelete",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ps.prototype,"growingThreshold",2);var bc=ps,qu=class qu extends Tc{};o(qu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],qu.prototype,"condensedTableLayout",2);var CA=qu,zu=class zu extends Tc{};o(zu,"ObjectPageGridTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],zu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],zu.prototype,"condensedTableLayout",2);var OA=zu,Yu=class Yu extends Tc{};o(Yu,"ObjectPageTreeTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Yu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],Yu.prototype,"condensedTableLayout",2);var IA=Yu,jo=class jo{};o(jo,"GlobalTableSettings"),h([y({manifest:{path:Za}}),x({since:"1.70.0"})],jo.prototype,"selectAll",2),h([y({manifest:{path:Za}}),x({since:"1.78.0"})],jo.prototype,"variantManagement",2),h([y({manifest:{path:Za}}),x({since:"1.120.0"})],jo.prototype,"copy",2),h([y({manifest:{path:Za}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],jo.prototype,"type",2),h([y({manifest:{path:Za}}),x({since:"1.54.0"})],jo.prototype,"multiSelect",2),h([y({manifest:{path:Za}}),x({since:"1.67.0"})],jo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Za}}),x({since:"1.77.0"})],jo.prototype,"inlineDelete",2);var NA=jo;var M1=ie(le());var GK=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=Qn(n[1],r);return`${e}${s}::action::${zi(a).replace(":2f","::")}`},"getActionButtonId"),Ju={controlId:GK,controlType:o(()=>M1.ControlType.Button,"controlType")},ds=class ds{};o(ds,"ObjectPageToolBarAction"),h([y({flex:Ju,generate:mt})],ds.prototype,"visible",2),h([y({flex:Ju})],ds.prototype,"tooltip",2),h([y({flex:Ju})],ds.prototype,"icon",2),h([y({flex:Ju})],ds.prototype,"activeIcon",2),h([y({flex:Ju})],ds.prototype,"type",2);var LA=ds;var Di=ie(le());function FA(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(FA,"addFlexChangeToConfigTableColumn");function xh(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(xh,"addFlexChangeToConfigTable");function Ch(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=ro(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&&FA(t.table,l,n,i)})}o(Ch,"importFlexChangesOfColumn");function gs(e){return e.replace("/","::")}o(gs,"convertActionKey");function DA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(DA,"convertSelector");function WK(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(WK,"addSmartFilterBarFlex");function KK(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=zi((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(KK,"filterActions");function XK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(XK,"addColumnActionConfigPart");function QK(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(QK,"getActionId");function qK(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=KK(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"&&XK(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(qK,"addActionFlex");function zK(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(zK,"addSmartChartFlex");function Oh(e,t,n,i){var r,a;try{let s=ro(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=DA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{WK(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=QK(s);u&&qK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{zK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Oh,"addFlex");function YK(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(YK,"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=$n(t,g),yl(p,s,u,e),nm(l,s,g,r)}YK(u,e)}}o(Dn,"transferSettingsOfObject");function Ih(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(Ih,"determineTableType");function k1(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(k1,"evaluateFragmentColumn");function JK(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(JK,"determineCellsFragmentName");function ZK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,j1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Iu(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)k1(m,n,i,r,t,a,s);else k1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(ZK,"analyzeFilteredFragments");function e3(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=JK(u,e,p,g),b=v.split(".");v=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let I=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{ZK(I,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=>{Ch(i,n,F.id,F,r)})}}}o(e3,"processViewExtensions");function wl(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;e3(g,m,e,t,a)}}o(wl,"addFragments");function Nh(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(Nh,"importHeaderActions");var qt=ie(le());var $1=ie(le());var _A={};Qs(_A,{ANNOERR:()=>b3,ANNOTATIONFILE:()=>E3,COMPONENTNOTDEFINED:()=>A3,CONTEXTPATHCOULDNOTBERESOLVED:()=>h3,ENTITYSETNOTFOUND:()=>m3,FLEXERROR:()=>F3,INCONSISTENTSCHEMA:()=>$3,INVALIDANCHOR:()=>D3,INVALIDEXTENSION:()=>_3,INVALIDTARGETDEFINITION:()=>w3,MACROS_ANNOTATION_ERROR:()=>j3,NOALP:()=>v3,NOANNOTATIONFORPATH:()=>d3,NOBASEPATH:()=>i3,NOCHARTS:()=>C3,NOENTITYSET:()=>c3,NOENTITYTYPE4SET:()=>l3,NOFE:()=>o3,NOFRAGMENT:()=>V3,NOGENERICSCHEMA:()=>a3,NOID4SECTION:()=>M3,NOLINEITEMANDCHARTS:()=>O3,NOLINEITEMFORPATH:()=>g3,NOLINEITEMS:()=>x3,NOLR:()=>y3,NOPAGEFORENTITYSET:()=>s3,NOPAGES:()=>r3,NOPRESENTATIONVARIANT:()=>f3,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>u3,NOPRESENTATIONVARIANTFORSPV:()=>p3,NOROUTING:()=>S3,NOROUTINGID:()=>R3,NOTARGET:()=>L3,NOTARGETS:()=>N3,NOTEMPLATE:()=>T3,NOUIANNOTATIONS:()=>P3,NOVISUALIZATIONS:()=>I3,TYPEERROR:()=>U3,UNKNOWNMINUI5VERSION:()=>n3,WRONGMINUI5VERSION:()=>t3,XMLPARSEFAILURE:()=>k3,default:()=>B3});var t3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",n3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",i3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",r3="No pages found in manifest for app with id '{{- appId}}'",o3="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",a3="No generic schema found while generating page schema for {{- pageType}}",s3="No page found in manifest for entitySet '{{- entitySet}}'",c3="No entitySet defined for page '{{- pageName}}'",l3="No entityType could be found for the given entity set '{{- entitySetName}}'",f3="No PresentationVariant defined for '{{- key}}'",u3="No PresentationVariant found for default SelectionPresentationVariant",p3="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",d3="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",g3="No line item annotation found for path '{{- annotationPath}}'",m3="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",h3="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",y3="No page found in manifest for list report",v3="No page found in manifest for analytical list page",T3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",b3="Error while parsing annotation files",E3="Annotation file: '{{- file}}'",A3="Component name is not defined for page '{{- pageName}}'",S3="Incomplete manifest definition: no routing defined",P3="No UI Annotation defined for entity type '{{- entityType }}'",x3="UI.LineItem annotation has not been defined",C3="UI.Chart annotation has not been defined",O3="Neither UI.LineItem nor UI.Chart annotation has been defined",I3="Empty Collection for Visualizations",N3="Incomplete manifest definition: no targets defined",L3="Invalid reference: annotation target '{{- target}}' not found",R3="No page found in manifest for routingId '{{- routingId}}'",F3="Error while parsing flex change",D3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",_3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",V3="fragmentName is undefined for columnKey '{{- columnKey}}'",w3="Invalid routing target definition in manifest: '{{- target}}'",M3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",k3="Parsing of XML file failed with error - {{- error}}",j3="Error during resolving annotation for '{{- control}}'",U3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",$3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",B3={WRONGMINUI5VERSION:t3,UNKNOWNMINUI5VERSION:n3,NOBASEPATH:i3,NOPAGES:r3,NOFE:o3,NOGENERICSCHEMA:a3,NOPAGEFORENTITYSET:s3,NOENTITYSET:c3,NOENTITYTYPE4SET:l3,NOPRESENTATIONVARIANT:f3,NOPRESENTATIONVARIANTFORDEFAULTSPV:u3,NOPRESENTATIONVARIANTFORSPV:p3,NOANNOTATIONFORPATH:d3,NOLINEITEMFORPATH:g3,ENTITYSETNOTFOUND:m3,CONTEXTPATHCOULDNOTBERESOLVED:h3,NOLR:y3,NOALP:v3,NOTEMPLATE:T3,ANNOERR:b3,ANNOTATIONFILE:E3,COMPONENTNOTDEFINED:A3,NOROUTING:S3,NOUIANNOTATIONS:P3,NOLINEITEMS:x3,NOCHARTS:C3,NOLINEITEMANDCHARTS:O3,NOVISUALIZATIONS:I3,NOTARGETS:N3,NOTARGET:L3,NOROUTINGID:R3,FLEXERROR:F3,INVALIDANCHOR:D3,INVALIDEXTENSION:_3,NOFRAGMENT:V3,INVALIDTARGETDEFINITION:w3,NOID4SECTION:M3,XMLPARSEFAILURE:k3,MACROS_ANNOTATION_ERROR:j3,TYPEERROR:U3,INCONSISTENTSCHEMA:$3};function U1(e){e.addResourceBundle(e.language,"translation",_A)}o(U1,"initI18n");function rn(e="en"){q.init({resources:{en:{translation:$1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Vm=require("path");var wo="core:FragmentDefinition",_m="sap.ui.table",vE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:_m,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:_m,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:_m,name:"AnalyticalColumn"}]]),yK=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]]),I1={type:"element",name:"Text",attributes:{text:"Placeholder"}},vK=JSON.stringify(I1);function TK(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(TK,"getFragmentNamespaces");function O1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(O1,"getTagName");function wm(e,t,n=e){let i=TK(n,!!(t||n!==e));if(t){let r=vE.get(t);return O1(r,i.get(r.namespace))}else{let r=vE.keys();for(let a of r){let s=vE.get(a),l=i?O1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(wm,"getTagNameFromFragmentJSON");function Iu(e,t=e){let n=wm(e,void 0,t);return e[n]}o(Iu,"getRootCustomColumnFromFragmentJSON");function bK(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(bK,"addP13nData");function N1(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=bK(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(N1,"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(Vm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,lo.xml2json)(u.fileContent,{compact:!0}));try{let m=wm(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])===vK&&(e.splice(n,1),t-=1,t===0));n++);}o(L1,"deleteNumberOfCells");function AK(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(AK,"deleteCellsFromFragment");function Mm(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&&AK(a,i,n)}}o(Mm,"deleteColumnFromFragment");function SK(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(I1)}o(SK,"addNewColumnsInFragment");function PK(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)SK(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(PK,"updateNonEmptyCellsFragment");function xK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Vm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=yE(n):PK(r,n);break}}return i}o(xK,"updateCellsFragment");function CK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(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,Vm.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=$n(l,m),A=n.reduce((b,I)=>I.cellsFragmentName?I:b);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):r1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(CK,"exportCustomColumnsToManifest");function OK(e,t,n,i,r){let a=mE(e,t);if(a){let s=JSON.parse((0,lo.xml2json)(a,{compact:!0})),l=Iu(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(OK,"insertNewColumnInFragment");function IK(e,t){let n=[];for(let i=0;i<e.length;i++)N1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(IK,"processCustomColumnInArray");function NK(e,t,n){if(e){if(Array.isArray(e))IK(e,t);else if(!N1(e,t)){let r=wm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(NK,"maintainExistingColumnInFragment");function LK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=OK(a,i,n,r,s)}return n}o(LK,"insertNewColumnsInFragment");function RK(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=hE(i,r);else{let u=JSON.parse((0,lo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Iu(u[wo]),l=NK(l,i,u),l=LK(i,n,l,r,u);let g=wm(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(RK,"updateColumnsInFragment");function TE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=CK(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("."),j=F?F[F.length-1]:null,K=j?j+Et.FRAGMENTNAMEPART+g:null,U=RK(s,v,A,m,r),se=!1;if(p?se=xK(s,K,n):se=!0,!U){let Z={fileContent:hE(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!se){let Z={fileContent:yE(n),dataSourceUri:u.replace(v,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(TE,"exportCustomColumnsToFragment");var km=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=yK.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 ai=ne(le());var bE="/multiEdit",cc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ai.PropertyName.table:Yt(e,t),"getSmartTableControlId");function Gm(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(Gm,"importCreateParameters");function Wm(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(Wm,"exportCreateParametersFields");function FK(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(FK,"exportVariants");function DK(e,t){t.variants&&(Object.keys(t.variants).length>0?FK(e,t):delete e.variants)}o(DK,"exportQuickVariantSelectionX");function _K(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(_K,"importMultiEdit");var jm=class jm{};o(jm,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],jm.prototype,"strategy",2);var EE=jm,Rl=class Rl{};o(Rl,"MultiEdit"),h([y({manifest:{path:o(t=>$r(t)+bE,"path")}})],Rl.prototype,"enabled",2),h([y({manifest:{path:o(t=>$r(t)+bE,"path")}})],Rl.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>$r(t)+bE,"path"),export:zg}})],Rl.prototype,"ignoredFields",2);var AE=Rl;function Ru(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(Ru,"importType");function _l(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(_l,"exportType");function Vl(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(Vl,"deleteType");var Um=class Um{};o(Um,"DataLoadSettings"),h([y({manifest:{path:o(t=>a1(t),"path")}}),x({since:"1.75.2"})],Um.prototype,"loadDataOnAppLaunch",2);var SE=Um,$m=class $m{};o($m,"Fields4Dialog"),h([y({manifest:{path:o(t=>$r(t)+"/createWithParameterDialog","path"),export:Wm}}),x({since:"1.77.0"})],$m.prototype,"fields",2);var PE=$m,Nu=class Nu{};o(Nu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Nu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Nu.prototype,"variants",2);var xE=Nu,Fl=class Fl{};o(Fl,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Fl.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Fl.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path"),export:DK}}),x({since:"1.48.0"})],Fl.prototype,"variants",2);var CE=Fl,oi=class oi{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(oi,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>$r(t),"path"),import:Gm}}),x({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Yt,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],oi.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.120.0"})],oi.prototype,"copy",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectAll",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],oi.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],oi.prototype,"enableTableFilterInPageVariant",2),h([Ut("toolBar")],oi.prototype,"toolBar",2);var as=oi,Mo=class Mo extends as{};o(Mo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Mo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")},generate:qn}),x({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>$r(t),"path"),import:_K}}),x({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var lc=Mo,Bm=class Bm extends as{};o(Bm,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Bm.prototype,"type",2);var OE=Bm,fo=class fo extends as{};o(fo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],fo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],fo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],fo.prototype,"createWithFilters",2);var IE=fo,ko=class ko extends as{};o(ko,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ko.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Dl=ko,Hm=class Hm extends Dl{};o(Hm,"ALPResponsiveTable"),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Hm.prototype,"growingThreshold",2);var NE=Hm,DE=class DE extends Dl{};o(DE,"ALPGridTable");var LE=DE,_E=class _E extends Dl{};o(_E,"ALPAnalyticalTable");var RE=_E,Lu=class Lu extends as{};o(Lu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ru,export:_l,delete:Vl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Lu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Lu.prototype,"createWithFilters",2);var FE=Lu;var Fu=ne(le());var VK=o((e,t,n)=>{let{actionId:i}=Zi(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),wK=o((e,t,n)=>{let{actionId:i}=Zi(n);return`${e}template::${i}`},"getStandardActionButtonId"),MK=o((e,t,n)=>{let{actionId:i}=Zi(n);return`${e}${sm}${i}`},"getStandardFooterActionOPButtonId"),WE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Zi(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),kK=o((e,t,n)=>{let{actionId:i}=Zi(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ss={controlId:VK,controlType:o(()=>Fu.ControlType.Button,"controlType")},Du={controlId:wK,controlType:o(()=>Fu.ControlType.Button,"controlType")},R1={controlId:MK,controlType:o(()=>Fu.ControlType.Button,"controlType")},Km={controlId:kK,controlType:o(()=>Fu.ControlType.Button,"controlType")},fc=class fc{};o(fc,"Action"),h([y({flex:ss})],fc.prototype,"tooltip",2),h([y({flex:ss})],fc.prototype,"icon",2),h([y({flex:ss})],fc.prototype,"activeIcon",2),h([y({flex:ss})],fc.prototype,"type",2);var VE=fc,uc=class uc{};o(uc,"ToolBarAction"),h([y({flex:ss})],uc.prototype,"tooltip",2),h([y({flex:ss})],uc.prototype,"icon",2),h([y({flex:ss})],uc.prototype,"activeIcon",2),h([y({flex:ss})],uc.prototype,"type",2);var wE=uc,pc=class pc{};o(pc,"FooterAction"),h([y({flex:Km})],pc.prototype,"tooltip",2),h([y({flex:Km})],pc.prototype,"icon",2),h([y({flex:Km})],pc.prototype,"activeIcon",2),h([y({flex:Km})],pc.prototype,"type",2);var ME=pc,Xm=class Xm{};o(Xm,"Share"),h([y({flex:Du})],Xm.prototype,"visible",2);var kE=Xm,Qm=class Qm{};o(Qm,"ShareOP"),h([y({flex:Du})],Qm.prototype,"visible",2);var jE=Qm,qm=class qm{};o(qm,"UpAndDownNavigationOP"),h([y({flex:Du})],qm.prototype,"visible",2);var UE=qm,zm=class zm{};o(zm,"SaveAndEditOP"),h([y({flex:R1,generate:mt})],zm.prototype,"visible",2);var $E=zm,Ym=class Ym{};o(Ym,"HeaderActionStandard"),h([y({flex:Du})],Ym.prototype,"visible",2);var BE=Ym,Jm=class Jm{};o(Jm,"ObjectPageHeaderActionStandard"),h([y({flex:Du})],Jm.prototype,"visible",2);var HE=Jm,Zm=class Zm{};o(Zm,"ObjectPageFooterActionStandard"),h([y({flex:R1})],Zm.prototype,"visible",2);var GE=Zm;var wu=ne(le());var jK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Zi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),UK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Zi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),$K=o((e,t,n)=>{let{actionId:i}=Zi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),KE={controlId:jK,controlType:o(()=>wu.ControlType.TableColumn,"controlType")},_u={controlId:$K,controlType:o(()=>wu.ControlType.Button,"controlType")},F1={...KE,controlId:UK},eh={..._u,controlId:WE},Vu=class Vu{};o(Vu,"TableColumn"),h([y({flex:{controlId:Db,controlType:o(()=>wu.ControlType.TableColumn,"controlType")}})],Vu.prototype,"width",2),h([y({flex:{controlId:Db,controlType:o(()=>wu.ControlType.TableColumn,"controlType")},generate:qn})],Vu.prototype,"hAlign",2);var XE=Vu,ha=class ha{};o(ha,"TableColumnAction"),h([y({flex:KE})],ha.prototype,"width",2),h([y({flex:KE,generate:qn})],ha.prototype,"hAlign",2),h([y({flex:_u})],ha.prototype,"tooltip",2),h([y({flex:_u})],ha.prototype,"icon",2),h([y({flex:_u})],ha.prototype,"activeIcon",2),h([y({flex:_u})],ha.prototype,"type",2);var th=ha,ya=class ya extends th{};o(ya,"TableColumnActionIntentBased"),h([y({flex:F1})],ya.prototype,"width",2),h([y({flex:F1,generate:qn})],ya.prototype,"hAlign",2),h([y({flex:eh})],ya.prototype,"tooltip",2),h([y({flex:eh})],ya.prototype,"icon",2),h([y({flex:eh})],ya.prototype,"activeIcon",2),h([y({flex:eh})],ya.prototype,"type",2);var QE=ya,zE=class zE{};o(zE,"TableCustomColumn");var qE=zE;var JE=class JE{};o(JE,"ToolBar");var YE=JE;var dc=ne(le());var Mu=o(e=>e+dc.PropertyName.chart,"getSmartChartControlId"),cs=class cs{};o(cs,"ChartSettings"),h([y({flex:{controlId:Mu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showLegendButton",2),h([y({flex:{controlId:Mu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showDownloadButton",2),h([y({flex:{controlId:Mu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:Mu,controlType:o(()=>dc.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")}})],cs.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>o1(t),"path")}}),x({since:"1.81.0"})],cs.prototype,"showDataLabel",2);var ZE=cs;var va=class va{};o(va,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"groupId",2);var eA=va;var D1=ne(le());var BK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Yt(e,n)},"getAvatarControlId"),ls=class ls{};o(ls,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.46.0"})],ls.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.46.0"})],ls.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"})],ls.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ls.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:BK,controlType:o(()=>D1.ControlType.Avatar,"controlType")},generate:mt})],ls.prototype,"displayShape",2);var tA=ls;var nh=ne(le());var HK=o((e,t,n,i)=>{if(i()===nh.ControlType.Button||i()===nh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return Yt(e,t)},"getActionButtonId"),ku={controlId:HK,controlType:o(()=>nh.ControlType.HeaderAction,"controlType")},fs=class fs{};o(fs,"ObjectPageHeaderAction"),h([y({flex:ku,generate:mt})],fs.prototype,"visible",2),h([y({flex:ku})],fs.prototype,"tooltip",2),h([y({flex:ku})],fs.prototype,"icon",2),h([y({flex:ku})],fs.prototype,"activeIcon",2),h([y({flex:ku})],fs.prototype,"type",2);var nA=fs;var ju=ne(le());var ch="header::headerEditable::",GK=o((e,t,n,i,r)=>`${e}${ch}${r}`,"getDataPointHeaderSectionId"),WK=o((e,t,n,i,r)=>`${e}${ch}${r}::ContactAddress`,"getAddressHeaderSectionId"),KK=o((e,t,n,i,r)=>`${e}${ch}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),_1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(ju.FACETTITLEPREFIX)?r.split(ju.FACETTITLEPREFIX)[1]:a;return`${e}${ch}${s}::Form`},"getFormHeaderSectionId"),Uu={controlType:o(()=>ju.ControlType.ObjectPageHeaderSection,"controlType")},ih=class ih{};o(ih,"CommonHeaderFacetSettings"),h([y({flex:{...Uu,controlId:_1},generate:mt})],ih.prototype,"visible",2);var gc=ih,rh=class rh extends gc{};o(rh,"ObjectPageHeaderSectionForm"),h([y({flex:{...Uu,controlId:_1}})],rh.prototype,"visible",2);var iA=rh,oh=class oh extends gc{};o(oh,"ObjectPageHeaderSectionChart"),h([y({flex:{...Uu,controlId:KK}})],oh.prototype,"visible",2);var rA=oh,ah=class ah extends gc{};o(ah,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Uu,controlId:GK}})],ah.prototype,"visible",2);var oA=ah,sh=class sh extends gc{};o(sh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Uu,controlId:WK}})],sh.prototype,"visible",2);var aA=sh,cA=class cA{};o(cA,"HeaderSections");var sA=cA;var fA=ne(le());var XK=o((e,t,n,i)=>{if(i()===fA.ControlType.Button){let{actionId:r}=Zi(n);return`${e}action::${Yi(r)}::Determining`}return Yt(e,t)},"getFooterActionButtonId"),$u={controlId:XK,controlType:o(()=>fA.ControlType.Button,"controlType")},us=class us{};o(us,"ObjectPageFooterAction"),h([y({flex:$u,generate:mt})],us.prototype,"visible",2),h([y({flex:$u})],us.prototype,"tooltip",2),h([y({flex:$u})],us.prototype,"icon",2),h([y({flex:$u})],us.prototype,"activeIcon",2),h([y({flex:$u})],us.prototype,"type",2);var lA=us;var Bu=ne(le());var lh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Yt(e,n)},"getControlId"),mc=class mc{};o(mc,"ObjectPageLayout"),h([y({flex:{controlId:lh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")},generate:mt})],mc.prototype,"showHeaderContent",2),h([y({flex:{controlId:lh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")}})],mc.prototype,"showAnchorBar",2),h([y({flex:{controlId:lh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")}})],mc.prototype,"useIconTabBar",2),h([y({flex:{controlId:lh,controlType:o(()=>Bu.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],mc.prototype,"alwaysShowContentHeader",2);var uA=mc;var V1=ne(le());var hc=class hc{};o(hc,"BaseCustomSection"),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],hc.prototype,"relatedFacet",2),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],hc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ma(t,{},i,V1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],hc.prototype,"title",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],hc.prototype,"className",2);var Wu=hc,Hu=class Hu extends Wu{};o(Hu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Hu.prototype,"fragmentName",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Hu.prototype,"type",2);var Ku=Hu,Gu=class Gu extends Wu{};o(Gu,"ObjectPageCustomSectionView"),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Gu.prototype,"viewName",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Gu.prototype,"type",2);var Xu=Gu;var tr=ne(le());var w1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),tr.DefinitionName.Table];return Yt(e,s)},"getTableSectionControlId"),M1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return Yt(e,s)},"getFormSectionControlId"),k1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return Yt(e,s)},"getChartSectionControlId"),yc=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return Yt(e,s)},"getSectionControlId"),j1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return Yt(e,s)},"getSubSectionControlId"),U1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return Yt(e,s)},"getContactSubSectionControlId"),fh=class fh{};o(fh,"ObjectPageSectionV2"),h([y({flex:{controlId:yc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],fh.prototype,"visible",2);var pA=fh,uh=class uh{};o(uh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:yc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],uh.prototype,"visible",2);var dA=uh,ph=class ph{};o(ph,"ObjectPageSectionChartV2"),h([y({flex:{controlId:yc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],ph.prototype,"visible",2);var gA=ph,dh=class dh{};o(dh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:yc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],dh.prototype,"visible",2);var mA=dh,gh=class gh{};o(gh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:yc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],gh.prototype,"visible",2);var hA=gh,mh=class mh{};o(mh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:yc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],mh.prototype,"visible",2);var yA=mh,hh=class hh{};o(hh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:j1,controlType:o(()=>tr.ControlType.SubSection,"controlType")},generate:mt})],hh.prototype,"visible",2);var vA=hh,yh=class yh{};o(yh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:M1,controlType:o(()=>tr.ControlType.Group,"controlType")},generate:mt})],yh.prototype,"visible",2);var TA=yh,vh=class vh{};o(vh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:k1,controlType:o(()=>tr.ControlType.SmartChart,"controlType")},generate:mt})],vh.prototype,"visible",2);var bA=vh,Th=class Th{};o(Th,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:U1,controlType:o(()=>tr.ControlType.SubSection,"controlType")},generate:mt})],Th.prototype,"visible",2);var EA=Th,bh=class bh{};o(bh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:w1,controlType:o(()=>tr.ControlType.SmartTable,"controlType")},generate:mt})],bh.prototype,"visible",2);var AA=bh;var Eh=class Eh{};o(Eh,"ObjectPageChart"),h([y({manifest:{path:s1}}),x({since:"1.78.0"})],Eh.prototype,"variantManagement",2);var SA=Eh,Ah=class Ah{};o(Ah,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],Ah.prototype,"variantManagement",2);var PA=Ah;var Tr=ne(le());var vc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Tr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Qn(a[0],r),Yt(e,a)},"getSmartTableControlId"),Qu=class Qu{};o(Qu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+Tr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Qu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+Tr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Qu.prototype,"variants",2);var xA=Qu,Sh=class Sh{};o(Sh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>vr(t,n,i)+"/createWithParameterDialog","path"),export:Wm}}),x({since:"1.77.0"})],Sh.prototype,"fields",2);var CA=Sh,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(si,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:vr,import:Gm}}),x({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],si.prototype,"editable",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],si.prototype,"showPasteButton",2),h([y({manifest:{path:vr}}),x({since:"1.54.0"})],si.prototype,"multiSelect",2),h([y({manifest:{path:vr}}),x({since:"1.70.0"})],si.prototype,"selectAll",2),h([y({manifest:{path:vr}}),x({since:"1.70.0"})],si.prototype,"selectionLimit",2),h([y({manifest:{path:ao}}),x({since:"1.63.0"})],si.prototype,"quickVariantSelection",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],si.prototype,"useExportToExcel",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],si.prototype,"exportType",2),h([y({manifest:{path:ao}}),x({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],si.prototype,"createMode",2),h([y({manifest:{path:ao}}),x({since:"1.61.0"})],si.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:vr}}),x({since:"1.78.0"})],si.prototype,"variantManagement",2),h([y({manifest:{path:vr}}),x({since:"1.120.0"})],si.prototype,"copy",2),h([Ut("toolBar")],si.prototype,"toolBar",2);var Tc=si,ps=class ps extends Tc{};o(ps,"ObjectPageResponsiveTable"),h([y({manifest:{path:vr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ps.prototype,"type",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.Table,"controlType")}})],ps.prototype,"includeItemInSelection",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],ps.prototype,"popinLayout",2),h([y({manifest:{path:vr}}),x({since:"1.77.0"})],ps.prototype,"inlineDelete",2),h([y({flex:{controlId:vc,controlType:o(()=>Tr.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ps.prototype,"growingThreshold",2);var bc=ps,qu=class qu extends Tc{};o(qu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:vr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],qu.prototype,"condensedTableLayout",2);var OA=qu,zu=class zu extends Tc{};o(zu,"ObjectPageGridTable"),h([y({manifest:{path:vr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],zu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],zu.prototype,"condensedTableLayout",2);var IA=zu,Yu=class Yu extends Tc{};o(Yu,"ObjectPageTreeTable"),h([y({manifest:{path:vr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Yu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],Yu.prototype,"condensedTableLayout",2);var NA=Yu,jo=class jo{};o(jo,"GlobalTableSettings"),h([y({manifest:{path:Za}}),x({since:"1.70.0"})],jo.prototype,"selectAll",2),h([y({manifest:{path:Za}}),x({since:"1.78.0"})],jo.prototype,"variantManagement",2),h([y({manifest:{path:Za}}),x({since:"1.120.0"})],jo.prototype,"copy",2),h([y({manifest:{path:Za}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],jo.prototype,"type",2),h([y({manifest:{path:Za}}),x({since:"1.54.0"})],jo.prototype,"multiSelect",2),h([y({manifest:{path:Za}}),x({since:"1.67.0"})],jo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Za}}),x({since:"1.77.0"})],jo.prototype,"inlineDelete",2);var LA=jo;var $1=ne(le());var QK=o((e,t,n,i,r)=>{let{actionId:a}=Zi(n),s=Qn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),Ju={controlId:QK,controlType:o(()=>$1.ControlType.Button,"controlType")},ds=class ds{};o(ds,"ObjectPageToolBarAction"),h([y({flex:Ju,generate:mt})],ds.prototype,"visible",2),h([y({flex:Ju})],ds.prototype,"tooltip",2),h([y({flex:Ju})],ds.prototype,"icon",2),h([y({flex:Ju})],ds.prototype,"activeIcon",2),h([y({flex:Ju})],ds.prototype,"type",2);var RA=ds;var Di=ne(le());function DA(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(DA,"addFlexChangeToConfigTableColumn");function Ph(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(Ph,"addFlexChangeToConfigTable");function xh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=ro(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&&DA(t.table,l,n,i)})}o(xh,"importFlexChangesOfColumn");function gs(e){return e.replace("/","::")}o(gs,"convertActionKey");function _A(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(_A,"convertSelector");function qK(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(qK,"addSmartFilterBarFlex");function zK(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(zK,"filterActions");function YK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(YK,"addColumnActionConfigPart");function JK(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(JK,"getActionId");function ZK(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=zK(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"&&YK(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(ZK,"addActionFlex");function e3(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(e3,"addSmartChartFlex");function Ch(e,t,n,i){var r,a;try{let s=ro(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=_A(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{qK(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=JK(s);u&&ZK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{e3(e,l,s,n);break}default:break}}catch(s){oe(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Ch,"addFlex");function t3(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(t3,"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=$n(t,g),yl(p,s,u,e),nm(l,s,g,r)}t3(u,e)}}o(Dn,"transferSettingsOfObject");function Oh(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(Oh,"determineTableType");function B1(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(B1,"evaluateFragmentColumn");function n3(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(n3,"determineCellsFragmentName");function i3(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,H1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Iu(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)B1(m,n,i,r,t,a,s);else B1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(i3,"analyzeFilteredFragments");function r3(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=n3(u,e,p,g),b=v.split(".");v=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let I=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{i3(I,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=>{xh(i,n,F.id,F,r)})}}}o(r3,"processViewExtensions");function wl(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;r3(g,m,e,t,a)}}o(wl,"addFragments");function Ih(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(Ih,"importHeaderActions");var qt=ne(le());var W1=ne(le());var VA={};Qs(VA,{ANNOERR:()=>P3,ANNOTATIONFILE:()=>x3,COMPONENTNOTDEFINED:()=>C3,CONTEXTPATHCOULDNOTBERESOLVED:()=>b3,ENTITYSETNOTFOUND:()=>T3,FLEXERROR:()=>w3,INCONSISTENTSCHEMA:()=>W3,INVALIDANCHOR:()=>M3,INVALIDEXTENSION:()=>k3,INVALIDTARGETDEFINITION:()=>U3,MACROS_ANNOTATION_ERROR:()=>H3,NOALP:()=>A3,NOANNOTATIONFORPATH:()=>y3,NOBASEPATH:()=>s3,NOCHARTS:()=>L3,NOENTITYSET:()=>p3,NOENTITYTYPE4SET:()=>d3,NOFE:()=>l3,NOFRAGMENT:()=>j3,NOGENERICSCHEMA:()=>f3,NOID4SECTION:()=>$3,NOLINEITEMANDCHARTS:()=>R3,NOLINEITEMFORPATH:()=>v3,NOLINEITEMS:()=>N3,NOLR:()=>E3,NOPAGEFORENTITYSET:()=>u3,NOPAGES:()=>c3,NOPRESENTATIONVARIANT:()=>g3,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>m3,NOPRESENTATIONVARIANTFORSPV:()=>h3,NOROUTING:()=>O3,NOROUTINGID:()=>V3,NOTARGET:()=>_3,NOTARGETS:()=>D3,NOTEMPLATE:()=>S3,NOUIANNOTATIONS:()=>I3,NOVISUALIZATIONS:()=>F3,TYPEERROR:()=>G3,UNEXISTING_ANNOTATION_PATH:()=>K3,UNKNOWNMINUI5VERSION:()=>a3,WRONGMINUI5VERSION:()=>o3,XMLPARSEFAILURE:()=>B3,default:()=>X3});var o3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",a3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",s3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",c3="No pages found in manifest for app with id '{{- appId}}'",l3="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",f3="No generic schema found while generating page schema for {{- pageType}}",u3="No page found in manifest for entitySet '{{- entitySet}}'",p3="No entitySet defined for page '{{- pageName}}'",d3="No entityType could be found for the given entity set '{{- entitySetName}}'",g3="No PresentationVariant defined for '{{- key}}'",m3="No PresentationVariant found for default SelectionPresentationVariant",h3="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",y3="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",v3="No line item annotation found for path '{{- annotationPath}}'",T3="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",b3="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",A3="No page found in manifest for analytical list page",S3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",P3="Error while parsing annotation files",x3="Annotation file: '{{- file}}'",C3="Component name is not defined for page '{{- pageName}}'",O3="Incomplete manifest definition: no routing defined",I3="No UI Annotation defined for entity type '{{- entityType }}'",N3="UI.LineItem annotation has not been defined",L3="UI.Chart annotation has not been defined",R3="Neither UI.LineItem nor UI.Chart annotation has been defined",F3="Empty Collection for Visualizations",D3="Incomplete manifest definition: no targets defined",_3="Invalid reference: annotation target '{{- target}}' not found",V3="No page found in manifest for routingId '{{- routingId}}'",w3="Error while parsing flex change",M3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",k3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",j3="fragmentName is undefined for columnKey '{{- columnKey}}'",U3="Invalid routing target definition in manifest: '{{- target}}'",$3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",B3="Parsing of XML file failed with error - {{- error}}",H3="Error during resolving annotation for '{{- control}}'",G3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",W3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",K3="The annotation path doesn't exist.",X3={WRONGMINUI5VERSION:o3,UNKNOWNMINUI5VERSION:a3,NOBASEPATH:s3,NOPAGES:c3,NOFE:l3,NOGENERICSCHEMA:f3,NOPAGEFORENTITYSET:u3,NOENTITYSET:p3,NOENTITYTYPE4SET:d3,NOPRESENTATIONVARIANT:g3,NOPRESENTATIONVARIANTFORDEFAULTSPV:m3,NOPRESENTATIONVARIANTFORSPV:h3,NOANNOTATIONFORPATH:y3,NOLINEITEMFORPATH:v3,ENTITYSETNOTFOUND:T3,CONTEXTPATHCOULDNOTBERESOLVED:b3,NOLR:E3,NOALP:A3,NOTEMPLATE:S3,ANNOERR:P3,ANNOTATIONFILE:x3,COMPONENTNOTDEFINED:C3,NOROUTING:O3,NOUIANNOTATIONS:I3,NOLINEITEMS:N3,NOCHARTS:L3,NOLINEITEMANDCHARTS:R3,NOVISUALIZATIONS:F3,NOTARGETS:D3,NOTARGET:_3,NOROUTINGID:V3,FLEXERROR:w3,INVALIDANCHOR:M3,INVALIDEXTENSION:k3,NOFRAGMENT:j3,INVALIDTARGETDEFINITION:U3,NOID4SECTION:$3,XMLPARSEFAILURE:B3,MACROS_ANNOTATION_ERROR:H3,TYPEERROR:G3,INCONSISTENTSCHEMA:W3,UNEXISTING_ANNOTATION_PATH:K3};function G1(e){e.addResourceBundle(e.language,"translation",VA)}o(G1,"initI18n");function rn(e="en"){q.init({resources:{en:{translation:W1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),U1(q)}o(rn,"initI18n");var Bt=ie(le());function Ec(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)===Bt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Ec(s.pages,t,n),i))return n.unshift(a),i}}o(Ec,"findObjectPageV2");function Ml(e,t){var n;for(let i in e){let r=e[i];if(fa((n=r.component)==null?void 0:n.name)===Bt.PageTypeV2.ListReport)return t.push(i),r}}o(Ml,"findListReportPageV2");function kl(e){if(!e.manifest[Bt.ManifestSection.generic]){se(e.logger,{severity:Bt.LogSeverity.Error,message:q.t("NOFE"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}let t=e.manifest[Bt.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:Bt.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}return t}o(kl,"getV2Pages");function jl(e,t,n){var i;if(!e){se(t,{severity:Bt.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:Bt.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}}o(jl,"checkV2Page");function Ul(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)===Bt.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:Bt.LogSeverity.Error,message:q.t("NOALP"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}o(Ul,"findAnalyticalListPage");function VA(e,t){let n=e.split("|");return Bt.v2.SectionPosition[n[0]]&&n[1]===t}o(VA,"isAssociatedCustomSection");function B1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${Bt.v2.SAPUI5_VIEW_EXTENSION}/${Bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)VA(r,t)&&(i[r]=n[r]);return i}o(B1,"findCustomSectionExtensions");function H3(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(H3,"removeEmptySettingsOfFooter");function G3(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(G3,"removeEmptySettingsOfFilterBar");function W3(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(W3,"removeEmptySettingsOfToolBar");function Lh(e){W3(e),G3(e),H3(e)}o(Lh,"removeEmptySettings");var MA={};Qs(MA,{AnalyticalListPage:()=>Hr,ListReport:()=>uo,ObjectPage:()=>ci,OverviewPage:()=>Jt,exportFilterSettings:()=>W1,importDateSettingsOVP:()=>H1,importFilterSettings:()=>G1});var Rh=ie(le());var Hr=class{};o(Hr,"AnalyticalListPage"),h([y({flex:{controlId:Zg,controlType:o(()=>Rh.ControlType.DynamicPage,"controlType")}})],Hr.prototype,"fitContent",2),h([Ut("table")],Hr.prototype,"table",2),h([Ut("template::SmartFilterBar")],Hr.prototype,"filterBar",2),h([Ut("analyticalListPageChart")],Hr.prototype,"chart",2),h([Ut("analyticalListFooter")],Hr.prototype,"footer",2),Hr=h([jr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Rh.v2.FE_TEMPLATE_V2_ALP})],Hr);var Zu=ie(le());var uo=class{};o(uo,"ListReport"),h([y({flex:{controlId:Zg,controlType:o(()=>Zu.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([jr({id:Zu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Zu.v2.FE_TEMPLATE_V2_LIST_REPORT})],uo);var wA=ie(le());var ci=class{};o(ci,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),h([Ut("header")],ci.prototype,"header",2),h([Ut("sections")],ci.prototype,"sections",2),h([Ut("layout")],ci.prototype,"layout",2),h([y({manifest:{path:o(t=>Om(t),"path")}}),x({since:"1.77.0"})],ci.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"}}),x({since:"1.78.0"})],ci.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}}),x({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=h([jr({id:wA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:wA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function K3(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(K3,"importDateSettingsFieldsOVP");function H1(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&&K3(e,t),t}o(H1,"importDateSettingsOVP");function G1(e){let t={};return t.dateSettings=H1(e.filterSettings),t}o(G1,"importFilterSettings");function X3(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(X3,"exportFilterFields");function W1(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&&X3(t,n,e))}o(W1,"exportFilterSettings");var Jt=class{};o(Jt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:G1,export:W1}}),x({since:"1.80.0"})],Jt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"resizableLayout",2),Jt=h([jr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Jt);var kA=class kA{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(kA,"MetadataFactory");var $l=kA;var Jn=ie(le());var Q3={},q3={Table:lc,ResponsiveTableWithMultiSelect:lc,ResponsiveTableWithInlineDelete:lc},z3={[Jn.v2.CardSettingsType.listCardSettings]:Ol,[Jn.v2.CardSettingsType.listCardSettingsv4]:Ol,[Jn.v2.CardSettingsType.analyticalCardSettings]:Il,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Il,[Jn.v2.CardSettingsType.stackCardSettings]:Eu,[Jn.v2.CardSettingsType.linkListCardSettings]:Au,[Jn.v2.CardSettingsType.tableCardSettings]:Nl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Nl},Y3={[Jn.SAPUI5_VIEW_CLASS]:Xu,[Jn.SAPUI5_FRAGMENT_CLASS]:Ku,Table:bc,ObjectPageResponsiveTableWithMultiSelect:bc,ObjectPageResponsiveTableWithInlineDelete:bc},J3={[Jn.PageTypeV2.AnalyticalListPage]:Q3,[Jn.PageTypeV2.ListReport]:q3,[Jn.PageTypeV2.ObjectPage]:Y3,[Jn.PageTypeV2.OverviewPage]:z3},jA=class jA extends $l{constructor(){super(RA,MA,J3)}};o(jA,"MetadataInstanceFactoryV2");var _i=jA;function Z3(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(Z3,"importFilterBar");function UA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=ro(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};xh(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"&&Ch(e,n,s)}o(UA,"importFlexChangesOfTableAndColumns");function eX(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[om]&&t[am]&&(a=JSON.parse(JSON.stringify(t[om])),a.properties={...a.properties,...t[am].properties}),Dn(n.table,i.manifest,a,r,i.logger),UA(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(eX,"importTable");function tX(e,t,n,i){let r=e.jsonSchema.definitions,a=Ih(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),Nh(t,n,r),eX(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=gs(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)}Z3(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=gs(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(tX,"addSettings");function Fh(e){if(rn(),!kl(e))return;let n=new _i,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=Ml(e.manifest[qt.ManifestSection.generic].pages,r);if(jl(a,e.logger,a==null?void 0:a.entitySet),!!a)return tX(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&Oh(i,s,e.jsonSchema,e.logger)}),wl(i,e,a,qt.PageTypeV2.ListReport),Lh(i),i}o(Fh,"createListReportConfig");var xt=ie(le());function nX(e,t,n,i){var p,g;let r=Ih(e.manifest,i),a=e.jsonSchema.definitions;Nh(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),UA(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=gs(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=gs(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[xt.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(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(nX,"addSettings");function Dh(e){if(rn(),!kl(e))return;let n=new _i,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=Ul(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(jl(a,e.logger,a==null?void 0:a.entitySet),!!a)return nX(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&Oh(i,s,e.jsonSchema,e.logger)}),wl(i,e,a,xt.PageTypeV2.AnalyticalListPage),Lh(i),i}o(Dh,"createAnalyticalListPageConfig");var Ee=ie(le());var ep=require("@sap-ux/vocabularies-types/vocabularies/UI");var rX=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function oX(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(`${ep.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(ep.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(oX,"getSingleSelectorIdPart");function aX(e){let t,n=e.split(":::");if(n.length===1)t=oX(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(`::${ep.UIAnnotationTerms.LineItem}`,`/@${ep.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(aX,"getFacetID");function sX(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=ro(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=aX(v);v=DA(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(sX,"prepareFlexChanges");var cX=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 lX(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&FA(i,t,r)}o(lX,"addFlexChangeToColumns");function K1(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?lX(a,p,r.properties,n):xh(n,p,r))}}o(K1,"importFlexChangesOfTable");function fX(e,t){return e.facetId==="template"&&t}o(fX,"isStandardActionFlexChange");var X1=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 uX(e,t,n,i,r,a){var I;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=((I=t.facetId)==null?void 0:I.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&X1(u,r.split("::"))&&s,v=e.title&&X1(u,e.title.split("::"),!0),A=!t.facetId&&rX.includes(t.controlType),b=fX(t,l);return p||g||m||v||A||b}o(uX,"matchSelector");function pX(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;uX(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(pX,"importFlexChanges");function dX(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:hl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(dX,"checkDeprecatedProperties");function gX(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=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(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 dX(p,a,n,u),p}o(gX,"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];K1(i.flexChanges,g,t,r,A,l)}else K1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);pX(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&gX(m,i.pageKeys,e,t,g,s,r)}}o(Vi,"transferSettingsAndFlexChanges");function q1(e,t,n,i){let r=zi(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=`${N0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${sm}${r}`;break}}return r.replace(/@/g,"")}o(q1,"getActionId");function mX(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=q1(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(mX,"fillStandardActions");function _h(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=gs(p),m=q1(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]}}mX(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(_h,"fillActions");function hX(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(hX,"fillFields");function yX(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(yX,"prepareTableSchema");function vX(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=yX(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");_h(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(vX,"fillTableInConfig");function TX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?im(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};wl(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(TX,"fillCustomColumnsInConfig");function bX(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(bX,"fillChartSection");function EX(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(EX,"fillHeaderSection");function AX(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&&_h(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&hX(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(AX,"fillFormSection");function Q1(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,$A(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(Q1,"fillSubSection");function $A(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:cX(t[l]),schema:t[l],title:_b(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],vX(e,p,n,i,r),TX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],bX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],AX(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}>`],Q1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],EX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],Q1(e,p,n,i,r))}}o($A,"fillSectionsInConfig");function SX(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(SX,"fillCustomSectionsInConfig");function PX(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&&_h(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&_h(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;$A(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;$A(e,u.properties,v,n.sections,t)}let p=B1(e.manifest,e.entitySet);return SX(p,n,t,i,e),n}o(PX,"fillConfig");function Vh(e){rn();let t=kl(e);if(!t)return;let n=e.entitySet,i=[],r=Ec(t,e.entitySet,i);if(jl(r,e.logger,n),!r)return;let a=sX(e.flex,n),s=new _i;return PX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Vh,"createObjectPageConfigV2");function Mh(e,t){var n,i;return(n=e.component)!=null&&n.name?qg(fa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Mh,"generateId");function xX(e,t,n,i){e.navigation={};let r=z1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Mh(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(xX,"getPageConfigsAndNavigations");function z1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Mh(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=Fh(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=Dh(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=Vh(p)}a.pages&&xX(l,a,t,n)}return n}o(z1,"getPagesAndConfigs");var BA=class BA extends Ya{constructor(t){rn();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&&Mh(n[i],i),a=new Ja,s=_t(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,z1(n,t),a)}};o(BA,"V2AppProvider");var wh=BA;function tp(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=Mh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=tp(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(tp,"getPages");var Sc=ie(le());var Uo=ie(le());var GA=ie(nb());var Vt=ie(le());var CX=["colorPalette","tabs"];function OX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(OX,"createCard");function Y1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Y1(e,n.join("|"))}return t}o(Y1,"findAvailableId");function np(e,t,n,i,r,a,s){i!=null&&i.properties&&HA(e,t,n,i.properties,r,a,s)}o(np,"transferManifestEntriesOVP");function Ac(e,t,n,i){return e.createInstance(Vt.PageTypeV2.OverviewPage,i,n,t)}o(Ac,"assignReflectMetadataRules");function IX(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=Ac(e.factory,i[1],t,"CustomCard"),np(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(IX,"processAnyOfDefinitionsOfOVP");function NX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!CX.includes(i)?t[i]=(0,GA.default)(t[i]||{},r||{},{arrayMerge:Rb}):t[i]=r}o(NX,"checkSyncRuleForExport");function LX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in Vt.v2.CardSettingsType||n==="settings")l.settings=(0,GA.default)(l.settings||{},r||{},{arrayMerge:Rb});else if(r!==void 0){let u=e.manifest.export;NX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(LX,"transferToManifest");function RX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Vt.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]=Ac(e.factory,i[0],e.currentObject[t],"CustomCard"),OX(t,e.exportResults.manifest[Vt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,np(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Vt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Vt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated)})}o(RX,"transferCards");function FX(e,t){if(t==="cards")RX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Vt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Ac(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],np(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],HA(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],HA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(FX,"exportOfObject");function HA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!dl(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=IX(g)):u&&typeof u=="object"&&i[l]&&FX(g,l),p!=null&&p.manifest&&LX(p,a,l,t,u,e)}}o(HA,"processProperties");function DX(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=x0(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,I=JSON.parse(A);I={content:I.content,selector:I.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(I)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(DX,"evaluateFlexRule");function _X(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=Vt.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=Vt.ChangeIndicator.Updated}}o(_X,"exportConfigValueToManifest");function VX(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)_X(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=Vt.ChangeIndicator.Updated,Ka(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(VX,"evaluateManifestRule");function wX(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(Vt.FACETTITLEPREFIX)?r.split(Vt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(wX,"getManifestPathOfSections");function MX(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(MX,"getManifestPathOfTable");function kX(e,t,n,i,r){let a;return t[0]===Vt.PropertyName.sections?a=wX(t,a,n,e,r):t[0]===Vt.PropertyName.table?a=MX(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(kX,"getManifestPath");function jX(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)DX(e,i,t,r,a,n,s);else if(t.manifest){let u=kX(e,i,t,n,a);VX(e,u,t,s,n)}}o(jX,"evaluateExportRule");function UX(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)&&(km(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Vt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Vt.ViewTemplateType.ResponsiveTableColumnsExtension,Vt.ViewTemplateType.ResponsiveTableCellsExtension);km(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(UX,"deleteObsoleteColumn");function $X(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Z0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,UX(r,e,n))}o($X,"deleteObsoleteColumnsFromFragment");function BX(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}=jm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(BX,"clusterConfigColumnsByPath");function J1(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 Vt.v2.TableColumnExtensionTypeV2){let{path:u}=jm(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{$X(p)}catch(g){e.logger.error(g.message)}}if(t){let l=BX(t,n,e.v2Page,s,r);for(let u in l)vE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(J1,"transferColumnExtensions");function HX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=Y1(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]];ms(e,t[p],i,[...r,s[p]],v)}let u=$n(e.exportResults.manifest,Hb());for(let p in u)VA(p,l)&&!s.includes(p)&&delete u[p]}o(HX,"transferManifestExtensions");function GX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Vt.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(GX,"getSectionId");function WX(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);ms(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(WX,"transferIndexTable");function KX(e,t,n,i,r,a){let s,l=im(e.$ref);l&&(s={target:l,key:GX(t,n)}),J1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(KX,"transferCustomColumns");function XX(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&&ms(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(XX,"handleAnyOfDefinitions");function QX(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")HX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){KX(l,t,s,e,n,a);return}else a?ms(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&XX(l,e,s,n==null?void 0:n[r],r,i,t)}o(QX,"transferComplexProperty");function ms(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&&!dl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&em(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(jX(e,g,t,[...i],p,a,l),WX(s,e,a,l,p,i),s===void 0||typeof s=="object")QX(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){J1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ms,"transferManifestEntriesAndFlexChange");function Z1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ac(r,i,n[i],s),a.push(i),WA(r,n[i],e,l.properties,a)}o(Z1,"transferSettingsOfRef");function qX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);Z1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Uo.v2.cardTemplateSettingsMap[e.template]}`.split($);Z1(i,l,e,t,r,a)}}o(qX,"processPropertiesOfObject");function zX(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{yl(s,u,t,e)}catch(p){se(i.logger,{severity:Uo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Yg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&qX(e,t,r,i,a,n)}o(zX,"processOvpProperty");function WA(e,t,n,i,r){for(let a in i)zX(t,a,r,n,i,e)}o(WA,"processOvpProperties");function YX(e,t,n){WA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Uo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Uo.ManifestSection.ovp].cards[i].template,a=Uo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ac(n,a,{},"CustomCard"),e.cards=Ac(n,a,e.cards,"CustomCard"),WA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(YX,"addSettings");function kh(e){let t=new _i,n=t.createPageInstance(Uo.PageTypeV2.OverviewPage);return e.jsonSchema&&YX(n,e,t),n}o(kh,"createOverviewPageConfig");var KA=class KA extends Ya{constructor(t){let n={},i=t.manifest[Sc.ManifestSection.ovp],r=new Ja,a=_t(Sc.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Sc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Sc.PageTypeV2.OverviewPage,config:kh(l),entitySet:i.globalFilterEntitySet},p=qg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(KA,"V2OvpProvider");var jh=KA;var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),eD=require("path");function JX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(JX,"sortByPropertyIndex");function ip(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(JX())}o(ip,"sortPropertiesRecords");function ZX(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(ZX,"getExtensionText");function XA(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(XA,"addExtensionToSortedArray");function e7(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(e7,"addRemainingTargetByBefore");function tD(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=ZX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(tD,"getExtensionDetails");function QA(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=tD(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?(XA(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&&e7(e,p,g,n,m)}else r&&(XA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?QA(e,t,n,i):s>0&&QA(e,t,n,i,!0)}o(QA,"adjustCustomExtReferringToCustomExt");function t7(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(t7,"getExtensionAnchor");function n7(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(n7,"getLocalExtensionsToSkip");function i7(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(i7,"getExtensionIndexByMergedApproach");function r7(e,t,n,i,r=!1){return r?i7(e,t,n):n.findIndex(a=>a[0]===i)}o(r7,"getExtensionIndex");function o7(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(o7,"handleInvalidExtension");function Ta(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=n7(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=tD(g,n,p,te.ActionType.Custom);if(typeof g!="object"){o7(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=t7(g,s);if(v){let A=r7(g,e,t,v,a);A>-1&&(XA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&QA(l,n,t,r),t}o(Ta,"addExtensionToArray");function qA(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(qA,"addEnumForProperties");function a7(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];qA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(a7,"addColumnPropertyIndexAndEnum");function Pc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=ip(l),p=a?a.replace(/::/g,"/"):`@${$o.UIAnnotationTerms.LineItem}`,g=(I=(b=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=Ta(g,u,i,void 0,n)),a7(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Pc,"addCustomColumnDefinition");function s7(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(s7,"determineActionDefinitionName");function c7(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}=ic(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(c7,"addTargetAndKeysOfAction");function l7(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=s7(e),l=Ai(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=rm(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=Si(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=oo(i),c7(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(l7,"addActionRecordToSchema");function f7(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=da(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Ai(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]=oo(s),g[l]=m,mm(s,g,l)}}o(f7,"addLineItemRecordToSchema");function zA(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))l7(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;f7(e,l,u,a,i)}a++})}o(zA,"appendLineItemsToSchema");function xc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=dm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);zA(e,r,a,void 0,t)}o(xc,"addLineItemsTypeToSchema");function Cc(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;ga(s,b)}}o(Cc,"addFragmentEnumForAnchor");function po(e,t,n=te.DefinitionName.CustomActionPosition){qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Uh(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(Uh,"findPageV4");function nD(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(nD,"alignSchemaWithTemplateType");function ba(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,b,I,F,j,K,U;let s=e.definitions[r];if(!s)return;let l=ip(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=(I=(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:I.actions:p=(U=(K=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:K[u])==null?void 0:U.actions,p&&(l=Ta(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(ba,"addCustomActionDefinition");function $h(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,b,I,F;let a=e.definitions[r];if(!a)return;let s=ip(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=(I=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Ta(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,K])=>u[j]=K)}e.definitions[r].properties=u}o($h,"addHeaderFooterCustomActionDefinition");function Oc(e,t,n){let i=Jg(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=Jg(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(Oc,"getManifestPage");function Ic(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,eD.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(Ic,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Oc(n,t,i),a=Jg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function iD(e,t,n,i,r,a,s){var g,m,v,A,b,I,F,j,K,U,ae,Z;let l=ip(t),u=new Map;if(l=l.map(re=>{let Pe=Pm(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=Ta(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;re&&"facets"in re&&(l=Ta(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(U=(K=n.options)==null?void 0:K.settings)==null?void 0:U.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=Ta(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(iD,"addCustomSectionDefinition");function rD(e,t,n){var l,u,p;let i=ip(t),r=new Map;i=i.map(g=>{let m=Pm(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=Ta(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(rD,"addCustomFilterFieldDefinition");var _=ie(le()),Nc=require("@sap-ux/vocabularies-types/vocabularies/UI");var u7=["header","filterBar","chart","table"],YA="@UI.LineItem";function JA(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=mr(e.fullyQualifiedName,Nc.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=Kg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=oo(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(JA,"addSelectionFields");function p7(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Nc.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(p7,"getVisualFilters");function d7(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(d7,"getPropertiesIndex");function g7(e,t,n,i){var s,l,u,p,g,m;let r=d7(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:Si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let F=bt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let j=(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=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(g7,"addVisualFilters");function m7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},rD(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(m7,"applyCustomFilterFields");function h7(e,t,n,i){var l,u;let r=p7(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={},g7(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=JA(e,t,a,s),m7(t,s,n)}o(h7,"addFilterBar");function oD(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=Ai(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(oD,"defineActions");function aD(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"?ml(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(aD,"findTheRightVisualization");function y7(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(y7,"analyzeChartAnnotation");function v7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=aD((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=YA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(v7,"analyzeSPVforView");function Bl(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}=aD(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return v7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=YA,m=`/${s}/@${Nc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=YA;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}=y7(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(Bl,"analyzeViewAnnotation");function T7(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(T7,"addALPChartView");function b7(e,t,n,i,r,a){var j,K,U,ae,Z,re,Pe,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(U=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:U[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=Bl(l,s,n.serviceAVT,"primary",void 0,n.logger);T7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,oD(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Bl((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,I;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=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};xc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[I].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Pc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,r,n.logger,void 0,F),po(e,F,_.DefinitionName.CustomActionPosition)}o(b7,"addALPViews");function E7(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 oD(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(E7,"addViewChartDefinitions");function A7(e,t,n,i,r,a){let s=E7(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(A7,"addViewChart");function S7(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),Qa(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},Qa(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};xc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(S7,"addViewLineItems");function P7(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(P7,"addTagsToView");function x7(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(x7,"getTargetEntityType");function C7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Nc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=bt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Qa(l.properties.position,_.DefinitionName.ViewPosition,r),bt(_.DefinitionName.ViewPosition,r,e.appSchema),Pc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(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}>`;ba(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(C7,"addViewCustomExtensions");function O7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)S7(n,t,e,n.targetAnnotation,i),C7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)A7(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(O7,"addLRViewParts");function I7(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=x7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:b,title:I}=Bl(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]),j={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:I,entitySet:u.entitySet};O7(v,s,j,n,i,m,u),P7(s,F,b,u)}}o(I7,"addLRViews");function N7(e,t,n,i,r,a){var g,m,v,A,b,I,F,j,K,U,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Bl(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],Qa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Qa(ut.properties.columns,D),delete s.properties,Qa(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 Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};xc(Ue);let sn=(v=Pe.split("#"))==null?void 0:v[1],Gn=sn?`@${Nc.UIAnnotationTerms.LineItem}#${sn}`:`@${Nc.UIAnnotationTerms.LineItem}`;Pc(e,i,t.logger,void 0,D,Gn),Cc(e,D,i,void 0,Gn);let tn=`${_.DefinitionName.Actions}<${D}>`,Rt=Em(e,D,_.DefinitionName.CustomTableAction);ba(e,i,t.logger,yn(Rt),tn,Gn),po(e,tn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Qa(s.properties.columns,_.DefinitionName.LineItems);let Pe=(I=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Pe&&!((K=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.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};xc(D),Pc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(U=i.options)==null?void 0:U.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)}>`;ba(e,i,t.logger,void 0,ut),po(e,ut,_.DefinitionName.CustomActionPosition)}}o(N7,"adaptTableDefinition");function L7(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(L7,"getDefaultAnnotationPath");function R7(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=L7(t,n.entityType,n.templateType),l=nD(e,n);h7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(N7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],I7(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&&(b7(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(R7,"addTableAndViews");function F7(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",$h(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,po(e,i,l)}o(F7,"addHeaderActions");function rp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Xa(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=Uh(l,n,e.entitySet,i);if(!u)return r;F7(r,u,e.logger),R7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,u7),r}o(rp,"generateListReportSchemaV4");var Pr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var JV=ie(zs()),ZV=ie(YV()),ew=ie(VS());var tw=ie(le()),nw=ie(le());function rQ(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(rQ,"findElementByXMLPath");function iw(e,t){return e[t]?!1:(e[t]={},!0)}o(iw,"ensureObjectExists");function oQ(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(oQ,"getPropertiesFromRef");function aQ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=iw(l,i),m=l[i];return wc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(aQ,"traverseDefaultAggregation");function sQ(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(sQ,"isDefaultAggregationAppliable");function wc(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=oQ(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&&sQ(u,p)&&(l=aQ(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let I=A.metadata.path,F=I.slice(r.length),j=rQ(i,F);l=iw(a,v)||l;let K=a[v];l=wc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:I,config:K,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(wc,"traverseSchema");function af(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,ew.parse)(e.fileContent),s=(0,ZV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,JV.xml2js)(e.fileContent)}catch(r){se(n,{severity:nw.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Yg(r)}),location:{path:e.dataSourceUri}})}return i}o(af,"parseXML");function sf(e){return`${tw.DefinitionName.CustomExtensionFragment}<${e}>`}o(sf,"getCustomExtensionFragmentDefinitionKey");function Dy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Dy,"getRootElement");var KS=ie(le()),XS=ie(le());var Rp=ie(le());function As(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(As,"getAttribute");function rw(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(rw,"getNodeByName");function cQ(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(cQ,"resolveMetaPath");function $S(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=As(t,"contextPath")||i.contextPath,a=As(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let I=cQ(a);I.path&&(u=l?I.path:`${u}/${I.path}`,a=I.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 I=a.split(".");I.length&&(A=I[I.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o($S,"getEntityTypeResolution");function ow(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(ow,"applyAnnotationPath");function lQ(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Bl(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=Cb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(lQ,"getTableLineItemAnnotationData");var aw={"sap.fe.macros.Chart":o(e=>{let t=$S(e);ow(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=$S(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Rp.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]);JA(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=$S(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=ii(Rp.UIVOCABULARY,n);if(ow(t,r),t.annotationPath){let u=lQ(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:Rp.DefinitionName.LineItems};zA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var sw=ie(le());var fQ=new Map([["filterFields","SelectionField::"]]),uQ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Fp={anchor:"anchor",placement:"placement",key:"key"};function pQ(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 Fp.anchor in r&&Fp.placement in r}return!1}o(pQ,"isCustomExtensionSchema");function cw(e){let t=fQ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=uQ.get(e),t&&(n.prefix=t)),n}o(cw,"getAnnotationPrefix");function dQ(e,t,n,i){let r=t.properties[n],a=cw(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=As(l,Fp.key)||n,p=As(l,Fp.anchor),g=As(l,Fp.placement)||sw.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(dQ,"getExtensionData");function gQ(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}=dQ(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}Ta(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(gQ,"updatePropertyIndices");function mQ(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=As(e.subElements[s],"key")||r}return r}o(mQ,"getCorrectedAnchorEnumKey");function hQ(e,t,n,i){var a,s;let r=cw(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;qa(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=mQ(e,m.const,r,t.properties[m.const]))}}o(hQ,"applyEnumsForAnchors");function lw(e,t,n,i){pQ(t,n)&&(i=i||e.name,gQ(e,t,i),hQ(e,t,n,i))}o(lw,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function fw(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o(fw,"unsafeStringify");var uw=require("crypto");var Vy=new Uint8Array(256),_y=Vy.length;function BS(){return _y>Vy.length-16&&((0,uw.randomFillSync)(Vy),_y=0),Vy.slice(_y,_y+=16)}o(BS,"rng");var pw=require("crypto"),HS={randomUUID:pw.randomUUID};function yQ(e,t,n){var r;if(HS.randomUUID&&!t&&!e)return HS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??BS();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 fw(i)}o(yQ,"v4");var GS=yQ;var WS="sap.fe.macros",vQ=["id","key","title","text","label","header"];function dw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(dw,"getElementName");function TQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(TQ,"isElementWithNamespace");function bQ(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(bQ,"getDependencies");function EQ(e,t){let n="",i=e.attributes||[];for(let r of vQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(EQ,"getViewNodeDescription");function AQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(AQ,"findAvailableName");function gw(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(gw,"prepareSchemaProperties");function SQ(e,t,n){t.properties||gw(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(SQ,"handleAttributes");function PQ(e){e.type===XS.MacrosPropertyType.Control&&(e.internalId=GS())}o(PQ,"applyIdForMacros");function xQ(e,t,n){var i,r;try{(r=(i=aw)[e])==null||r.call(i,t)}catch{se(n,{severity:KS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(xQ,"callAnnotationHandler");function CQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===XS.MacrosPropertyType.Control&&(e.controlName=n)}o(CQ,"updateMetadataByReference");function OQ(e,t,n,i){var v,A,b,I,F;let r=n.schema;t.properties||gw(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=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?AQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${WS}.${i}`,`${WS}.table.${i}`,`${WS}.filterBar.${i}`];let m=!1;for(let j of g){let K=(F=r.definitions)==null?void 0:F[j];if(typeof K!="object")continue;CQ(u,K,j);let U=EQ(e,i),ae={$ref:a0(j),description:U,propertyIndex:n.index,metadata:u};SQ(e,ae,r),t.properties[p]=ae,m=!0,xQ(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(PQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}return p}o(OQ,"addControlToSchema");function mw(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)}mw(r,t)}}o(mw,"populateUsedDefinitionKeys");function IQ(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(IQ,"isElementAddableToSchema");function NQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!rw(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(NQ,"getDefaultAggregation");function LQ(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,hw(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:dw(s),index:a}]},i)}}o(LQ,"handleSubElementsOfXMLNode");function hw(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(TQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&IQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),I=OQ(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];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),mw(t,i));let p=NQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),LQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)lw(A.node,A.schema,n.schema,A.name)}o(hw,"handleXMLNode");function RQ(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(RQ,"getMacrosPrefixes");function Mc(e,t,n,i){let r=af(t.file,!0,i),a=[];if(!r)return;rn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:KS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=bQ(l),p=RQ(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,hw(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:dw(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(Mc,"generateMacrosSchemaDefinition");function yw(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&&yw(i.subSections,t)}}o(yw,"populateTemplates");function vw(e,t,n,i){var s,l,u;let r=Oc(n.manifest,i),a=[];yw(((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=sf(p);e.definitions[m]=g;let v=Ic(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:b={}}=Mc(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(vw,"resolveFragments");var FQ=["header","layout","sections","footer"],DQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],QS="Custom Action";function qS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=ym(t.item,e),p=da(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:Ai(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=oo(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(qS,"addSingleHeaderActionV4");function Tw(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(Tw,"addStandardHeaderAction");function bw(e,t,n,i,r,a){let s=da(e.item),l=Ai(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(bw,"addSingleFooterAction");function _Q(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Pr.UIAnnotationTypes.DataFieldForAction||i.$Type===Pr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(DQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(_Q,"groupByCriticality");function VQ(e,t,n,i,r){for(let a=0;a<e.length;a++)qS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(VQ,"addCriticalActions");function wQ(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&&(qS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(wQ,"addCopyAction");function MQ(e,t,n,i,r,a){for(let s of e)qS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(MQ,"addUncriticalActions");function kQ(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(kQ,"addRelatedAppsButton");function Ew(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(Ew,"setAnnotationPathFromEntitySetOrEntityType");function jQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?_Q(n):{};if(VQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=w0(r.entitySet),g=M0(r.entitySet);if(fm(r.entitySet)&&g){let m=Tw("Edit",t,i,s.length);Ew(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Tw("Delete",t,i,s.length+1);Ew(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;wQ(l,r.serviceAVT,t,e,i,u),MQ(l,r.serviceAVT,t,e,i,u),Sw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),kQ(i)}o(jQ,"addHeaderActionCallBackV4");function UQ(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];bw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];bw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(UQ,"addFooterActionCallBackV4");function $Q(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}>`;Pc(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}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&qA(m,l)}o($Q,"addCustomColumnsOP");function BQ(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=QS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ba(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(BQ,"addTableCustomActionsOP");function Sw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=QS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;$h(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 HQ({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,u=bt(e,t,i);n.entityType&&l&&(u[N.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),u.properties.columns={$ref:`${$}${r}`},u.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t),u.properties.quickVariantSelection.$ref=Si(N.DefinitionName.QuickVariantSelectionV4OP,t),u[N.SchemaTag.target]=a.namespace}o(HQ,"addTableDefinition");function GQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=QS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ba(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(GQ,"addFormCustomActionsOP");function WQ(e,t,n,i,r,a,s){let l=rc(t);[N.DefinitionName.ObjectPageResponsiveTableV4,N.DefinitionName.ObjectPageAnalyticalTableV4,N.DefinitionName.ObjectPageGridTableV4,N.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{HQ({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=Si(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Xa(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let g={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};xc(g,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),$Q(n,a,l,t,s),BQ(n,a,l,t,s)}o(WQ,"handleLineItem");function Pw(e,t,n,i,r,a,s){s&&wy(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);return ua(e,l,rc(t)),Wa(e,l,rc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(u=>{let p=u.$ref.split("/").pop();return{$ref:Si(p,t)}}),WQ(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Pw,"handleSectionTable");function KQ(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:Si(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),ua(e,u,n),Wa(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=hm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=rc(n);bt(N.DefinitionName.CustomFormActionOP,p,r),GQ(r,t,p,g,s)}}o(KQ,"handleFormIdentification");function Aw(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);gl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=oc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(Aw,"handleHeaderFacet");function XQ(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=Ai(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:Si(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]=Sm(l),v[N.SchemaTag.dataType]=oo(l),v.properties={},a++})}return r}o(XQ,"handleChartActions");function QQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=Sm(e),r[N.SchemaTag.dataType]=oc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=Si(N.DefinitionName.ObjectPageToolBarActions,t);let s=XQ(e,t,n,i);return{chart:r,chartActions:s}}o(QQ,"handleChart");function xw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&wy(i,t,l);let p=Am(u,t),g=bt(l,p,n,!1);if(gl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=Sm(e),g.properties.chart.$ref=Si(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=QQ(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(xw,"handleSectionChart");function qQ(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${kb(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(qQ,"getVisualizationKeyAndType");function zQ(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(zQ,"getTargetFromNavigation");function YQ(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=qQ(!!r,a,n),p=r?a:zQ(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(YQ,"getVisualizationProps");function wy(e,t,n,i){e.properties[t]={$ref:Si(n,i||t)}}o(wy,"addPropertyRef");function Cw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Cw,"getSectionPropertyRef");function JQ(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=Cw(t,r);wy(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let p=Pw(e,u,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,gl(e,p,t),delete p[N.SchemaTag.isViewNode]}o(JQ,"addPVLineItemSection");function ZQ(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=Cw(t,r);wy(i,l,s,u);let{parentChartRef:p}=xw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ua(e,p,t),r0(e,p)):gl(e,p,t)}o(ZQ,"addPVChartSection");function eq(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=YQ(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?ZQ(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&JQ(e,t,n,i,l,a,s))}o(eq,"handleSectionPresentationVariant");function tq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(tq,"containsCollectionFacet");function nq(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"}}};Js(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(nq,"createCustomSubSectionReference");function iq(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 I=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${I}`,v[N.SchemaTag.isViewNode]=!0,ba(e,t,i,b,A,p),po(e,A,I)}}o(iq,"applyCustomActionsToCustomSections");function zS(e,t,n,i,r,a,s){var m,v,A,b,I;let l=!1,u;a&&s?(l=!tq(a),u=nq(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},iD(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&qa(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={},iq(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(I=(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:I[s],j=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let U=g.oneOf[K];j[U.const]||(U.hidden=!0)}}}o(zS,"applyCustomSections");function rq(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)YS(a,e.facets,v,g,n,r,s,m);u&&zS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(rq,"handleCollection");function YS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${rc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{eq(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{rq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];Pw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{KQ(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&&xw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{pu(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(YS,"addSection");function oq(e,t,n){let i=Qg(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)YS(e,i,a,r,t,N.SectionType.Section,n);zS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(oq,"addSections");function aq(e,t,n,i){let r=Xg(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)YS(e,r,s,a,t,N.SectionType.HeaderSection,i);zS(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(aq,"addHeaderSections");function sq(e,t,n){let i=e.entityType;bm(t,i),Tm(t,i,e,jQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Pr.UIAnnotationTerms.HeaderFacets}`),aq(e,t,i,n)}o(sq,"addHeader");function Dp(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=Uh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(sq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Pr.UIAnnotationTerms.Facets}`),Js(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{vw(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}oq(e,r,l),vm(r,e,N.FioriElementsVersion.v4,UQ),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,FQ),r}o(Dp,"generateObjectPageSchemaV4");function JS(e,t){return JSON.parse(JSON.stringify(t))}o(JS,"generateFreestyleSchemaV4");var Qr=ie(le());function ZS(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=kc(p,s,t,r),v={templateType:Qr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Dp(v,e,s,l)}o(ZS,"generateObjectPageInterfaceV4");function My(e,t,n,i,r,a,s){rn();let l=No(i,r),{entitySet:u,entityType:p}=kc(l,s,n,r),g={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Qr.TemplateType.ListReportObjectPageV4?Qr.v4.FE_TEMPLATE_V4_LIST_REPORT:Qr.v4.FE_TEMPLATE_V4_ALP;return rp(g,t,m,s)}o(My,"generateListReportInterfaceV4");function eP(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return JS(l,t)}o(eP,"generateFreestyleInterfaceV4");function tP(e,t,n,i,r,a,s){let l={};if(Js(a,Qr.Features.BuildingBlocks)){let u=No(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Mc(e,p,u,s):{}}return l}o(tP,"generateFPMCustomPageInterfaceV4");var Uc=require("@sap-ux/vocabularies-types/vocabularies/UI"),Rw=ie(le());var jc=ie(le());var Nw=new Map([[jc.PageTypeV2.ListReport,jc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[jc.PageTypeV2.ObjectPage,jc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Ow=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"),Iw=o(e=>{var t;for(let[n,i]of Nw)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"),cq=o((e,t)=>{let n="";for(let[r,a]of Nw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Lw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${jc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Iw(n);i&&(t[i]={},Ow(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=cq(s,i);e[l]||(e[l]={}),Ow(r[s],e[l])}for(let s in e){let l=Iw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Uy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),$y=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),lq=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),zr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),By=o((e,t,n)=>zr(e)+`/@${Uc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Hy=o(e=>zr(e)+`/@${Uc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ss=o((e,t,n,i)=>zr(e)+`/@${Uc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),nP=o((e,t,n,i)=>Hy(e)+`/filterFields/${i}`,"getFilterFieldPath"),$i=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),pi=o((e,t,n,i,r)=>r?$i(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Gy=o((e,t,n,i,r)=>pi(e,t,n,i,r)+Rw.QUICKVARPATH,"getQuickVariantPath"),nr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),di=o((e,t,n,i,r)=>r?nr(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Yr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),xr=o((e,t,n,i,r)=>r?Yr(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Bi=o((e,t,n,i)=>zr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>zr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>$y(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),Wy=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),yo=o((e,t,n,i)=>lq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Lt=o((e,t,n)=>zr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),lf=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ps=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Cr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),ff=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"),jy=class jy{};o(jy,"ApplicationV4"),h([Ut("settings")],jy.prototype,"settings",2);var ky=jy,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")}}),x({since:"1.78.0"})],qr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({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(Lw)],qr.prototype,"controllerExtensions",2);var cf=qr;var ve=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&&(yl(m,l,g,e,a,r),nm(u,l,v,s))}}}o(At,"importSettingsOfObject");var Gx={};Qs(Gx,{ALPChart:()=>ax,ALPTable:()=>Tf,ActionAfterExecutionConfiguration:()=>Cx,ActionAfterExecutionConfigurationFooter:()=>SP,ActionAfterExecutionConfigurationForm:()=>OP,ActionAfterExecutionConfigurationOP:()=>id,ActionAfterExecutionConfigurationObjectPageHeader:()=>MP,ActionAfterExecutionConfigurationToolBarLR:()=>Mx,Actions:()=>Dx,AdditionalSemanticObject:()=>Px,CommonHeaderFacetSettings:()=>Ds,CommonViewSettings:()=>vf,CustomActionPosition:()=>Ux,CustomActionPositionOP:()=>Ax,CustomFilterField:()=>aP,CustomFilterFieldPosition:()=>oP,CustomFooterActionOP:()=>CP,CustomFooterActionPositionOP:()=>xP,CustomFormActionOP:()=>DP,CustomHeaderAction:()=>uP,CustomHeaderActionOP:()=>UP,CustomHeaderActionPosition:()=>Mp,CustomHeaderActionPositionOP:()=>jP,CustomSectionActionOP:()=>vP,CustomSectionActionPositionOP:()=>yP,CustomTableAction:()=>$x,CustomTableActionOP:()=>Sx,FilterBar:()=>iP,FlexSettings:()=>BP,FooterActionV4:()=>PP,FormAction:()=>IP,Header:()=>cP,HeaderActions:()=>sP,HeaderSections:()=>QP,LRChartView:()=>sx,LRTableView:()=>cx,MultiTableModeV4:()=>fx,ObjectPageAnalyticalTableV4:()=>Jp,ObjectPageCustomHeaderSectionFlexSettings:()=>pP,ObjectPageCustomHeaderSectionFragment:()=>dP,ObjectPageCustomSectionActions:()=>gP,ObjectPageCustomSectionFragment:()=>pf,ObjectPageCustomSubSectionFragment:()=>mP,ObjectPageFooter:()=>bP,ObjectPageFooterActions:()=>TP,ObjectPageForm:()=>LP,ObjectPageFormActions:()=>NP,ObjectPageGridTableV4:()=>Zp,ObjectPageHeader:()=>VP,ObjectPageHeaderAction:()=>kP,ObjectPageHeaderActions:()=>_P,ObjectPageHeaderSectionAddress:()=>XP,ObjectPageHeaderSectionChart:()=>GP,ObjectPageHeaderSectionContact:()=>KP,ObjectPageHeaderSectionDataPoint:()=>WP,ObjectPageHeaderSectionForm:()=>HP,ObjectPageLayout:()=>tx,ObjectPageResponsiveTableV4:()=>Yp,ObjectPageTable:()=>zp,ObjectPageTableColumn:()=>xf,ObjectPageTableColumnAction:()=>yx,ObjectPageTableRowCountable:()=>Sf,ObjectPageToolBarAction:()=>Ex,ObjectPageTreeTableV4:()=>ed,PersonalizationType:()=>ix,PersonalizationTypeOP:()=>mx,Position:()=>Nx,PositionOP:()=>vx,QuickVariantSelectionV4:()=>ox,QuickVariantSelectionV4OP:()=>hx,RelatedApps:()=>xx,Table:()=>ux,TableColumn:()=>lv,TableColumnAction:()=>Ox,TableCreationModeOP:()=>gx,TableCustomColumn:()=>Rx,TableCustomColumnOP:()=>Tx,TableSettings:()=>Jy,TableViewExtension:()=>lx,TableViewSettings:()=>Kp,ToolBar:()=>_x,ToolBarAction:()=>kx,ViewCustomActionPosition:()=>Bx,ViewPersonalizationType:()=>rx,ViewPosition:()=>Lx,ViewTableColumn:()=>fv,ViewTableColumnAction:()=>Ix,ViewTableCustomAction:()=>Hx,ViewTableCustomColumn:()=>Fx,ViewToolBarAction:()=>jx,VisualFilter:()=>rP,checkViewOrder:()=>px,deleteCreationModeProperty:()=>Qp,deletePersonalizationProperty:()=>bo,exportCreationModeProperty:()=>Xp,exportPersonalization:()=>nv,exportPersonalizationProperty:()=>To});function fq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(fq,"exportVisualFilterValueList");var uf=class uf{};o(uf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],uf.prototype,"hideFilterBar",2),h([y({manifest:{path:Hy}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],uf.prototype,"initialLayout",2),h([y({manifest:{path:Hy}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],uf.prototype,"layout",2);var iP=uf,_p=class _p{};o(_p,"VisualFilter"),h([y({manifest:{path:nP}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],_p.prototype,"availability",2),h([y({manifest:{path:nP,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:fq,key:"visualFilter"}}),x({since:"1.93.0"})],_p.prototype,"visualFilterValueList",2);var rP=_p,Vp=class Vp{};o(Vp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"placement",2);var oP=Vp,xs=class xs{};o(xs,"CustomFilterField"),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"label",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"property",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"template",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"required",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"position",2);var aP=xs;var lP=class lP{};o(lP,"HeaderActions");var sP=lP,fP=class fP{};o(fP,"Header");var cP=fP;var wp=class wp{};o(wp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],wp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],wp.prototype,"placement",2);var Mp=wp,Cs=class Cs{};o(Cs,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:gi},generate:qn}),x({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:gi},generate:qn}),x({since:"1.84.0"})],Cs.prototype,"enabled",2);var uP=Cs;var Ky=class Ky{};o(Ky,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Cr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],Ky.prototype,"designtime",2);var pP=Ky,ir=class ir{};o(ir,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Cr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],ir.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Cr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],ir.prototype,"relativePosition",2),h([y({manifest:{path:Cr},generate:ri}),x({since:"1.84.0"})],ir.prototype,"visible",2),h([y({manifest:{path:Cr}}),x({since:"1.77.0"})],ir.prototype,"title",2),h([y({manifest:{path:Cr}}),x({since:"1.77.0"})],ir.prototype,"subTitle",2),h([y({manifest:{path:Cr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],ir.prototype,"fragmentName",2),h([y({manifest:{path:Cr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],ir.prototype,"templateEdit",2),h([y({manifest:{path:Cr}}),x({since:"1.81.0"})],ir.prototype,"stashed",2),h([y({manifest:{path:Cr}}),x({since:"1.81.0"})],ir.prototype,"flexSettings",2),h([y({manifest:{path:Cr}}),x({since:"1.81.0"})],ir.prototype,"requestGroupId",2),h([y({manifest:{path:Cr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],ir.prototype,"controls",2);var dP=ir;var hP=class hP{};o(hP,"ObjectPageCustomSectionActions");var gP=hP,Os=class Os{};o(Os,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>lf(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Os.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>lf(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Os.prototype,"relativePosition",2),h([y({manifest:{path:lf}}),x({since:"1.77.0"})],Os.prototype,"title",2),h([y({manifest:{path:lf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Os.prototype,"fragmentName",2),h([y({manifest:{path:lf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Os.prototype,"controls",2);var pf=Os,Is=class Is extends pf{};o(Is,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${ff.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Is.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${ff.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Is.prototype,"relativePosition",2),h([y({manifest:{path:ff}}),x({since:"1.77.0"})],Is.prototype,"title",2),h([y({manifest:{path:ff,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Is.prototype,"fragmentName",2),h([y({manifest:{path:ff,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Is.prototype,"controls",2);var mP=Is;var kp=class kp{};o(kp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ps(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],kp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ps(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],kp.prototype,"placement",2);var yP=kp,Ns=class Ns{};o(Ns,"CustomSectionActionOP"),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"text",2),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"position",2),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"press",2),h([y({manifest:{path:Ps},generate:ri}),x({since:"1.84.0"})],Ns.prototype,"visible",2),h([y({manifest:{path:Ps},generate:ri}),x({since:"1.84.0"})],Ns.prototype,"enabled",2);var vP=Ns;var EP=class EP{};o(EP,"ObjectPageFooterActions");var TP=EP,AP=class AP{};o(AP,"ObjectPageFooter");var bP=AP;var jp=class jp{};o(jp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],jp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}})],jp.prototype,"enableAutoScroll",2);var SP=jp,Xy=class Xy{};o(Xy,"FooterActionV4"),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Xy.prototype,"afterExecution",2);var PP=Xy,Up=class Up{};o(Up,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Up.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Up.prototype,"placement",2);var xP=Up,Ls=class Ls{};o(Ls,"CustomFooterActionOP"),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"text",2),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"position",2),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"press",2),h([y({manifest:{path:yo},generate:ri}),x({since:"1.84.0"})],Ls.prototype,"visible",2),h([y({manifest:{path:yo},generate:ri}),x({since:"1.84.0"})],Ls.prototype,"enabled",2);var CP=Ls;var $p=class $p{};o($p,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],$p.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],$p.prototype,"enableAutoScroll",2);var OP=$p,Qy=class Qy{};o(Qy,"FormAction"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Qy.prototype,"afterExecution",2);var IP=Qy,RP=class RP{};o(RP,"ObjectPageFormActions");var NP=RP,FP=class FP{};o(FP,"ObjectPageForm");var LP=FP;var Rs=class Rs{};o(Rs,"CustomFormActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"press",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Rs.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Rs.prototype,"enabled",2);var DP=Rs;var wP=class wP{};o(wP,"ObjectPageHeaderActions");var _P=wP,df=class df{};o(df,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],df.prototype,"editableHeaderContent",2),h([y({manifest:{path:$y}}),x({since:"1.84.0"})],df.prototype,"visible",2),h([y({manifest:{path:$y}}),x({since:"1.84.0"})],df.prototype,"anchorBarVisible",2);var VP=df;var Bp=class Bp{};o(Bp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Bp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],Bp.prototype,"enableAutoScroll",2);var MP=Bp,qy=class qy{};o(qy,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],qy.prototype,"afterExecution",2);var kP=qy,$P=class $P extends Mp{};o($P,"CustomHeaderActionPositionOP");var jP=$P,Fs=class Fs{};o(Fs,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"press",2),h([y({manifest:{path:gi},generate:ri}),x({since:"1.84.0"})],Fs.prototype,"visible",2),h([y({manifest:{path:gi},generate:ri}),x({since:"1.84.0"})],Fs.prototype,"enabled",2);var UP=Fs;var zy=class zy{};o(zy,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>By(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],zy.prototype,"designtime",2);var BP=zy,Hp=class Hp{};o(Hp,"CommonHeaderFacetSettings"),h([y({manifest:{path:By}}),x({since:"1.81.0"})],Hp.prototype,"stashed",2),h([y({manifest:{path:By}}),x({since:"1.81.0"})],Hp.prototype,"flexSettings",2);var Ds=Hp,qP=class qP extends Ds{};o(qP,"ObjectPageHeaderSectionForm");var HP=qP,zP=class zP extends Ds{};o(zP,"ObjectPageHeaderSectionChart");var GP=zP,YP=class YP extends Ds{};o(YP,"ObjectPageHeaderSectionDataPoint");var WP=YP,JP=class JP extends Ds{};o(JP,"ObjectPageHeaderSectionContact");var KP=JP,ZP=class ZP extends Ds{};o(ZP,"ObjectPageHeaderSectionAddress");var XP=ZP,ex=class ex{};o(ex,"HeaderSections");var QP=ex;var Yy=class Yy{};o(Yy,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Yy.prototype,"sectionLayout",2);var tx=Yy;var iv=ie(le());var nx=ie(le());var uq=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=Uy(e),l=uq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[nx.SchemaTag.key]===(a==null?void 0:a.key)||g[nx.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function pq(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(pq,"fillNewlyOrderedViews");function px(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=pq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(px,"checkViewOrder");function nv(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(nv,"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 dx(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(dx,"deleteView");function Xp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Xp,"exportCreationModeProperty");function Qp(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(Qp,"deleteCreationModeProperty");function Fw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Fw,"importPersonalization");function Dw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Dw,"determineIndexOfView");var gf=class gf{};o(gf,"PersonalizationType"),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"column",2),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"filter",2);var ix=gf,mf=class mf{};o(mf,"ViewPersonalizationType"),h([y({manifest:{path:$i,export:To,delete:bo}})],mf.prototype,"column",2),h([y({manifest:{path:$i,export:To,delete:bo}})],mf.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],mf.prototype,"filter",2);var rx=mf,hf=class hf{};o(hf,"QuickVariantSelectionV4"),h([y({manifest:{path:Gy}})],hf.prototype,"paths",2),h([y({manifest:{path:Gy}})],hf.prototype,"hideTableTitle",2),h([y({manifest:{path:Gy}})],hf.prototype,"showCounts",2);var ox=hf,rr=class rr{};o(rr,"TableSettings"),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"type",2),h([y({manifest:{path:pi,import:Fw,export:nv}}),x({since:"1.86.0"})],rr.prototype,"personalization",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],rr.prototype,"selectionMode",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],rr.prototype,"selectAll",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],rr.prototype,"selectionLimit",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],rr.prototype,"enableExport",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],rr.prototype,"quickVariantSelection",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],rr.prototype,"condensedTableLayout",2),h([y({manifest:{path:pi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:pi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:pi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"disableCopyToClipboard",2);var Jy=rr,Zy=class Zy{};o(Zy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:dx}})],Zy.prototype,"annotationPath",2);var ax=Zy,$c=class $c{};o($c,"CommonViewSettings"),h([y({manifest:{path:vo,delete:Zs}})],$c.prototype,"key",2),h([y({manifest:{path:Uy,import:Dw,export:o((t,n)=>{px(t,n)},"export"),delete:dx}})],$c.prototype,"index",2),h([y({manifest:{path:vo,delete:Zs}})],$c.prototype,"annotationPath",2),h([y({manifest:{path:vo}})],$c.prototype,"entitySet",2);var vf=$c,or=class or extends vf{};o(or,"TableViewSettings"),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"type",2),h([y({manifest:{path:$i,import:Fw}}),x({since:"1.86.0"})],or.prototype,"personalization",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"selectionMode",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"selectAll",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"selectionLimit",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],or.prototype,"enableExport",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"quickVariantSelection",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],or.prototype,"condensedTableLayout",2),h([y({manifest:{path:$i}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:$i}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"hierarchyQualifier",2),h([y({manifest:{path:$i}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"disableCopyToClipboard",2);var Kp=or;function dq(e){return Kp}o(dq,"getTableViewSettings");var Gp=class Gp extends Kp{};o(Gp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Zs}})],Gp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Gp.prototype,"initialLoad",2);var Tf=Gp,ev=class ev extends vf{};o(ev,"LRChartView"),h([y({manifest:{path:vo},generate:qn})],ev.prototype,"visible",2);var sx=ev,yf=class yf extends dq(vf){};o(yf,"LRTableView"),h([y({manifest:{path:vo}})],yf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:vo}})],yf.prototype,"entitySet",2),h([y({manifest:{path:vo},generate:qn})],yf.prototype,"visible",2);var cx=yf,_s=class _s{};o(_s,"TableViewExtension"),h([y({manifest:{path:vo}})],_s.prototype,"key",2),h([y({manifest:{path:Uy,import:Dw,export:o((t,n)=>{px(t,n)},"export"),delete:dx}})],_s.prototype,"index",2),h([y({manifest:{path:vo}})],_s.prototype,"label",2),h([y({manifest:{path:vo}})],_s.prototype,"template",2),h([y({manifest:{path:vo},generate:qn})],_s.prototype,"visible",2);var lx=_s,tv=class tv{};o(tv,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],tv.prototype,"showCounts",2);var fx=tv,Wp=class Wp extends Jy{};o(Wp,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Zs}})],Wp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Wp.prototype,"initialLoad",2);var ux=Wp;var bf=class bf{};o(bf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Xp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Qp(t,r)},"delete")}})],bf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Xp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Qp(t,r)},"delete")}})],bf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Xp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Qp(t,r)},"delete")}})],bf.prototype,"inlineCreationRowsHiddenInEditMode",2);var gx=bf,Ef=class Ef{};o(Ef,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],Ef.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],Ef.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],Ef.prototype,"filter",2);var mx=Ef,Af=class Af{};o(Af,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+iv.QUICKVARPATH,"path")}})],Af.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+iv.QUICKVARPATH,"path")}})],Af.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+iv.QUICKVARPATH,"path")}})],Af.prototype,"showCounts",2);var hx=Af,mi=class mi{};o(mi,"ObjectPageTable"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"type",2),h([y({manifest:{path:Lt,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],mi.prototype,"creationMode",2),h([y({manifest:{path:Lt,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:nv}}),x({since:"1.86.0"})],mi.prototype,"personalization",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectionMode",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectAll",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectionLimit",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],mi.prototype,"enableExport",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"quickVariantSelection",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],mi.prototype,"condensedTableLayout",2),h([y({manifest:{path:Lt}}),x({since:"1.86.0"})],mi.prototype,"enableFullScreen",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"enablePaste",2),h([y({manifest:{path:Lt}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],mi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Lt}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Lt}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"disableCopyToClipboard",2);var zp=mi,qp=class qp extends zp{};o(qp,"ObjectPageTableRowCountable"),h([y({manifest:{path:Lt}}),x({since:"1.120.0"})],qp.prototype,"rowCountMode",2),h([y({manifest:{path:Lt}}),x({since:"1.120.0"})],qp.prototype,"rowCount",2);var Sf=qp,rv=class rv extends zp{};o(rv,"ObjectPageResponsiveTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],rv.prototype,"type",2);var Yp=rv,ov=class ov extends Sf{};o(ov,"ObjectPageAnalyticalTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],ov.prototype,"type",2);var Jp=ov,av=class av extends Sf{};o(av,"ObjectPageGridTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],av.prototype,"type",2);var Zp=av,sv=class sv extends Sf{};o(sv,"ObjectPageTreeTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],sv.prototype,"type",2);var ed=sv;var td=class td{};o(td,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],td.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}})],td.prototype,"enableAutoScroll",2);var id=td,Pf=class Pf{};o(Pf,"ObjectPageTableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Pf.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Pf.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pf.prototype,"widthIncludingColumnHeader",2);var xf=Pf,bx=class bx extends xf{};o(bx,"ObjectPageTableColumnAction");var yx=bx,nd=class nd{};o(nd,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"placement",2);var vx=nd,Xo=class Xo{};o(Xo,"TableCustomColumnOP"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Xo.prototype,"properties",2);var Tx=Xo;var cv=class cv{};o(cv,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],cv.prototype,"enableOnSelect",2);var Ex=cv,rd=class rd{};o(rd,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"placement",2);var Ax=rd,Ia=class Ia{};o(Ia,"CustomTableActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"press",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Ia.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Ia.prototype,"enabled",2);var Sx=Ia;var Cf=class Cf{};o(Cf,"AdditionalSemanticObject"),h([y({manifest:{path:Wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Cf.prototype,"allowedActions",2),h([y({manifest:{path:Wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Cf.prototype,"unavailableActions",2),h([y({manifest:{path:Wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Cf.prototype,"mapping",2);var Px=Cf,od=class od{};o(od,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],od.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],od.prototype,"additionalSemanticObjects",2);var xx=od;var ad=class ad{};o(ad,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ad.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}})],ad.prototype,"enableAutoScroll",2);var Cx=ad,Of=class Of{};o(Of,"TableColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Of.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Of.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Of.prototype,"widthIncludingColumnHeader",2);var lv=Of,If=class If{};o(If,"ViewTableColumn"),h([y({manifest:{path:nr}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],If.prototype,"width",2),h([y({manifest:{path:nr}}),x({since:"1.85.0"})],If.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],If.prototype,"widthIncludingColumnHeader",2);var fv=If,uv=class uv extends lv{};o(uv,"TableColumnAction"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],uv.prototype,"afterExecution",2);var Ox=uv,pv=class pv extends fv{};o(pv,"ViewTableColumnAction"),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],pv.prototype,"afterExecution",2);var Ix=pv,sd=class sd{};o(sd,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],sd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],sd.prototype,"placement",2);var Nx=sd,cd=class cd{};o(cd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"placement",2);var Lx=cd,Qo=class Qo{};o(Qo,"TableCustomColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"position",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"header",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"template",2),h([y({manifest:{path:di}}),x({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Qo.prototype,"properties",2);var Rx=Qo,qo=class qo{};o(qo,"ViewTableCustomColumn"),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"position",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"header",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qo.prototype,"width",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"template",2),h([y({manifest:{path:nr}}),x({since:"1.86.0"})],qo.prototype,"horizontalAlign",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"availability",2),h([y({manifest:{path:nr}}),x({since:"1.85.0"})],qo.prototype,"properties",2);var Fx=qo;var Vx=class Vx{};o(Vx,"Actions");var Dx=Vx,wx=class wx{};o(wx,"ToolBar");var _x=wx;var ld=class ld{};o(ld,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ld.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/afterExecution","path")}})],ld.prototype,"enableAutoScroll",2);var Mx=ld,fd=class fd{};o(fd,"ToolBarAction"),h([y({manifest:{path:xr}})],fd.prototype,"enableOnSelect",2),h([y({manifest:{path:xr}})],fd.prototype,"afterExecution",2);var kx=fd,ud=class ud{};o(ud,"ViewToolBarAction"),h([y({manifest:{path:Yr}})],ud.prototype,"enableOnSelect",2),h([y({manifest:{path:Yr}})],ud.prototype,"afterExecution",2);var jx=ud,pd=class pd{};o(pd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"placement",2);var Ux=pd,Na=class Na{};o(Na,"CustomTableAction"),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"text",2),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"position",2),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"press",2),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([y({manifest:{path:xr},generate:qn}),x({since:"1.84.0"})],Na.prototype,"visible",2),h([y({manifest:{path:xr},generate:qn}),x({since:"1.84.0"})],Na.prototype,"enabled",2);var $x=Na,dd=class dd{};o(dd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"placement",2);var Bx=dd,La=class La{};o(La,"ViewTableCustomAction"),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"text",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"position",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"press",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"requiresSelection",2),h([y({manifest:{path:Yr},generate:qn}),x({since:"1.84.0"})],La.prototype,"visible",2),h([y({manifest:{path:Yr},generate:qn}),x({since:"1.84.0"})],La.prototype,"enabled",2);var Hx=La;var Qx={};Qs(Qx,{FreestylePage:()=>Kx,ListReport:()=>Or,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 mq(){}o(mq,"doNotExport");function hq(){}o(hq,"doNotImport");var Or=class{};o(Or,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:hq,export:mq,delete:gq}})],Or.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Or.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Or.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Or.prototype,"defaultTemplateAnnotationPath",2),h([Ut("header")],Or.prototype,"header",2),h([Ut("fe::FilterBar")],Or.prototype,"filterBar",2),Or=h([jr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Or);var Wx=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")}}),x({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([jr({id:`${Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var Xx=class Xx{};o(Xx,"FreestylePage");var Kx=Xx;var Ra=ie(le());var yq={ALPTableView:Tf},vq={ALPTableView:Tf},Tq={[Ra.DefinitionName.ObjectPageResponsiveTableV4]:Yp,[Ra.DefinitionName.ObjectPageAnalyticalTableV4]:Jp,[Ra.DefinitionName.ObjectPageGridTableV4]:Zp,[Ra.DefinitionName.ObjectPageTreeTableV4]:ed,TableColumn:xf,ObjectPageCustomSectionView:pf,ActionAfterExecutionConfiguration:id},bq={[Ra.PageTypeV4.AnalyticalListPage]:yq,[Ra.PageTypeV4.ListReport]:vq,[Ra.PageTypeV4.ObjectPage]:Tq},qx=class qx extends $l{constructor(){super(Gx,Qx,bq)}};o(qx,"MetadataInstanceFactoryV4");var Fa=qx;var zx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yx(e,t,n,i,r,a,s){var g,m,v,A,b,I;let l=t.jsonSchema.definitions,u=a&&a!==`@${zx.UIAnnotationTerms.LineItem}`?a:ve.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 U=s||a;At(e.columns[F],t.manifest,l[K],r,[F,U],U,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(I=(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:I.views;(!F||F.paths.length<1)&&se(t.logger,{severity:ve.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(Yx,"transferColumns");function Eq(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ve.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(Eq,"importVisualFilters");function Aq(e,t,n,i,r,a=ve.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ve.DefinitionName.LineItems,`${ve.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${zx.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ve.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(Aq,"importActions");function Jx(e,t,n,i,r,a=ve.DefinitionName.LineItems,s){let l=n.createInstance(i,ve.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[ve.DefinitionName.ToolBarLR],r,[]),Aq(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o(Jx,"transferToolBar");function _w(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ve.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(_w,"determineTargetAnnotationOfView");function Sq(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ve.DefinitionName.ALPChart);let s=a[ve.DefinitionName.ALPChart],l=s[ve.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[ve.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ve.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[ve.DefinitionName.ViewChartToolBar],r,[]);let u=a[ve.DefinitionName.ALPTable][ve.SchemaTag.annotationPath];if(u){let p=a[ve.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ve.DefinitionName.ALPTable);Jx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ve.SchemaTag.key],m]),Yx(g,e,n,i,r,void 0,m)}}o(Sq,"importALPViews");function Pq(e){let t;return e.indexOf(ve.DefinitionName.LRTableView)>-1?t=ve.DefinitionName.LRTableView:e.indexOf(ve.DefinitionName.LRChartView)>-1?t=ve.DefinitionName.LRChartView:e===ve.DefinitionName.TableViewExtension&&(t=ve.DefinitionName.TableViewExtension),t}o(Pq,"getViewTypeByDefinition");function xq(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ve.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[ve.DefinitionName.MultiTableModeV4],r,[]);let l=s[ve.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ve.SchemaTag.propertyIndex]-g[1][ve.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=Pq(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=_w(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],b]),m===ve.DefinitionName.LRTableView){let I=`${ve.DefinitionName.LineItemsOfView}::${p[0]}`;Jx(e,v,n,i,r,I,b),Yx(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(xq,"importLRViews");function Cq(e,t,n,i,r){let a=ve.DefinitionName.HeaderActions,s=ve.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(ve.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(Cq,"transferHeaderActions");function Oq(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ve.DefinitionName.SelectionFields,ve.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!==$+ve.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ve.PageTypeV4.ListReport,ve.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(Oq,"importCustomFilterFields");function Iq(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ve.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.Header],r,[]),Cq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ve.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.FilterBar],r,[]),Eq(e,t.filterBar,n,i,r),Oq(e,t.filterBar,n,r),a===ve.SchemaType.ListReport){let s=ve.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,ve.DefinitionName.Table);let p=_w(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),Jx(e,t,n,i,r,u),Yx(t.table,e,n,i,r,u,p),xq(e,t,n,i,r)}else a===ve.SchemaType.AnalyticalListPage&&Sq(e,t,n,i,r)}o(Iq,"addSettings");function Bc(e,t){if(rn(),!e.jsonSchema)return;if(!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let n=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let i=new Fa,r=i.createPageInstance(ve.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Sb(s);if("name"in s&&(l===ve.PageTypeV4.ListReport||l===ve.PageTypeV4.AnalyticalListPage)){Iq(e,r,i,ve.PageTypeV4.ListReport,a,t);break}}return r}o(Bc,"createListReportConfig");var ye=ie(le()),Hc=require("@sap-ux/vocabularies-types/vocabularies/UI");function Nq(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(Nq,"isBoolean");function Lq(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(Lq,"isNumber");function Rq(e,t){let n=e.toString();return Nq(n,t)?n==="true":Lq(n,t)?parseFloat(n):e}o(Rq,"convertValue");function Fq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Rq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Fq,"importProperty");function Vw(e,t,n){let i,r=af(e.file,!1,n);if(r){let a=Dy(r);i={},wc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Fq)}return i}o(Vw,"convertXmlFileToConfig");function dv(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=Vw(s,i,e.logger)),l}o(dv,"createCustomPageConfig");function gd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=sf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=Oc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=Vw(g,A,s)}return m}o(gd,"createCustomFragmentConfig");function Zx(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(Zx,"getManifestId");function md(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(md,"getDefinitionId");function Dq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[md(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ye.DefinitionName.CustomColumnOP)>-1?s=ye.DefinitionName.CustomColumnOP:s=ye.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ye.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(Dq,"fillTableColumnsInConfig");function kw(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(ye.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ye.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(kw,"fillSectionActionsInConfig");function _q(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${md(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),I=e.jsonSchema.definitions[b];if(I.annotationType===Hc.UIAnnotationTypes.DataFieldForAction||I.description==="Custom Action"){let F=yn(I.$ref)||b.split("<")[0];i[n].form.actions[v]=r.createInstance(ye.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(_q,"fillFormActionsInConfig");function Vq(e){return new Map([["AnalyticalTable",ye.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ye.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ye.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ye.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ye.DefinitionName.ObjectPageResponsiveTableV4}o(Vq,"getTableDefinitionNameByType");function ww(e,t,n,i,r,a){var u;let s=a||Zx(i,!1,Hc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){let{tableSettings:p={}}=l,g=p.type,m=Vq(g);n[i]={},n[i].table=r.createInstance(ye.PageTypeV4.ObjectPage,m);let v=`${m}<${a?md(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[v],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ToolBar,{actions:{}});let A=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${md(s)}>`];kw(e,A,i,n,r,s),Dq(e,l,n,i,r,s)}}o(ww,"fillTableInConfig");function wq(e,t,n,i,r){var l;let a=Zx(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageForm,{actions:{}}),_q(e,s,i,n,r,a))}o(wq,"fillFormInConfig");function Mq(e,t,n,i,r,a){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.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=gd(e,s.fragmentName);s.controls=u}n[i]=s}o(Mq,"fillCustomSubSectionInConfig");function jw(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(Hc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith($+ye.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];A=Zx(b,!0,Hc.UIAnnotationTerms.LineItem),ww(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith($+ye.DefinitionName.ObjectPageSectionTableV4)?ww(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},jw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith($+ye.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${Hc.UIAnnotationTerms.FieldGroup}::`))?wq(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith($+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&Mq(e,v,i,m,r,a)}}o(jw,"fillSectionsInConfig");function kq(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(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageCustomSectionActions}<${md(l)}>`];kw(e,m,l,p,i,l)}let g=u.template;if(g){let m=gd(e,g);p.controls=m}n.sections[l]=p}}o(kq,"fillCustomSectionsInConfig");function jq(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(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=gd(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=gd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(jq,"fillCustomHeaderSectionsInConfig");function Uq(e,t,n,i,r){var s,l;let a=e.definitions[ye.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(ye.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ye.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FACETTITLEPREFIX)[1]))}}}o(Uq,"fillHeaderFacets");function $q(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(ye.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($q,"importActionSettingsOfReference");function Mw(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&&$q(g,e,n,u,p,i,r)}}}o(Mw,"fillHeaderFooterActions");function Bq(e,t,n){var a,s;let i=n.createPageInstance(ye.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ye.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[ye.DefinitionName.Sections]&&(i.sections={},jw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),kq(e,r,i,n),Uq(e.jsonSchema,i,n,e.manifest,e.routingId),jq(e,r,i,n),Mw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),Mw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}o(Bq,"fillObjectPageConfig");function gv(e){if(rn(),!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 t=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let i=new Fa;return Bq(e,n,i)}o(gv,"createObjectPageConfigV4");var Ge=ie(le());var eC=[],mv={};function Hq(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(Hq,"routesSorter");function tC(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(tC,"resolveTarget");function Gq(e){let t={};e=e.concat().sort(Hq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=tC(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(Gq,"populateAssociations");function Wq(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(Wq,"determinePageType");function Kq(e){let t=e.target.viewId||e.target.id,n=_t(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=gv(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=dv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Bc(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=Bc(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=lu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=Bc(r,s)}}}o(Kq,"convertSettingsToConfig");function Xq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");eC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");eC.push(t[t.length-1])}}o(Xq,"updateUnhandledControllers");function Qq(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(Qq,"setVariantManagmentAndNavigation");function qq(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=kc(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(qq,"setEntitySetEntityTypeContextPath");function zq(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(zq,"evaluateCustomPageSettings");function Yq(e,t,n,i){let r=e.targets[t],a=Wq(r,i.logger,t),s={pageType:a};if(qq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),mv[t]&&mv[t].indexOf(".")!==-1){let p=mv[t].split(".");s.navigationProperty=p[p.length-1]}zq(r,s,a),Qq(r,s),Xq(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}};Kq(u)}o(Yq,"getSinglePageAndConfig");function Uw(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}mv=Gq(n.routes||[]);for(let i in n.targets)Yq(n,i,t,e);return t}o(Uw,"getPagesAndConfigs");function $w(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 tC(t?t.target:e.routes[0].target)}else return}o($w,"getHome");function Bw(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(Bw,"getSettings");function Lf(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(Lf,"getPages");var nC=class nC extends Ya{constructor(t){rn();let n=new cf,i=_t(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,$w(t.manifest[Ge.ManifestSection.ui5].routing),Uw(t),{...Bw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=eC}};o(nC,"V4AppProvider");var Nf=nC;var Hw=require("fs"),Gc=require("path"),Gw=ie(le()),hd=ie(le());var Ww=o((e,t,n=__dirname)=>{let i;switch(t){case hd.SchemaType.Application:{i=`${hd.SchemaType.Application}${e.toUpperCase()}.json`;break}case hd.SchemaType.FPMCustomPage:{i=`${hd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Gc.join)(n,"schemas",e,i);if(n.endsWith((0,Gc.join)("specification","packages","specification")))return(0,Gc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Gc.join)("src","specification")))return(0,Gc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Gc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Jq=o(async e=>new Promise((t,n)=>{(0,Hw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),hv=o(async(e,t)=>{try{let n=Ww(e||Gw.FioriElementsVersion.v4,t,__dirname);return await Jq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Zq(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=_t(r);n[a.filename]=await hv(t,r)}return n}o(Zq,"getGenericSchemas");function Xw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(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(Xw,"getAnnotationsForUi");function yd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(yd,"getEntitySetByEntitySetName");function ez(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(ez,"resolveNavigationProperty");function kc(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}=ez(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(kc,"getEntityTypeEntitySetFromContextPath");function Kw(e,t,n){let i=tp(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=yd(a,e.serviceAVT);s||se(e.logger,{severity:ue.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(ue.SchemaType.ObjectPage);n[l.filename]=vd(e,t[u.filename])}}o(Kw,"generateObjectPageSchemasV2");function tz(e,t,n){var l,u;let i=Lf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Lf(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}=kc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let b=_t(ue.SchemaType.ListReport,p),I=_t(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=lu(a[p])),n[b.filename]=rp(e,t[I.filename],a[p].name,m)}}o(tz,"generateListReportSchemasV4");function nz(e,t,n){var r;let i=tp(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=yd(s,e.serviceAVT);let l=_t(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(ue.SchemaType.ListReport);t[l.filename]=Td(e,n[u.filename])}}o(nz,"generateAppSchemaV2LR");function iz(e,t,n){var a,s;let i=Lf(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}=kc(r,p,u);e.entitySet=m,e.entityType=g;let v=_t(ue.SchemaType.ObjectPage,l),A=_t(ue.SchemaType.ObjectPage),b=_t(ue.SchemaType.FPMCustomPage);n[v.filename]=Dp(e,t[A.filename],p,t[b.filename])}}o(iz,"generateObjectPageSchemasV4");function rz(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)nz(e,r,t),Kw(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=tp(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=yd(u,e.serviceAVT);let p=_t(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(ue.SchemaType.AnalyticalListPage);r[p.filename]=bd(e,t[g.filename])}Kw(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=_t(ue.SchemaType.OverviewPage),l=_t(ue.SchemaType.OverviewPage);r[s.filename]=Ed(t[l.filename],e.manifest)}return{...t,...r}}o(rz,"generateAppSchemasV2");function oz(e,t,n){if(!Js(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Lf(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=_t(ue.SchemaType.FPMCustomPage,void 0,l),p=_t(ue.SchemaType.FPMCustomPage);n[u.filename]=Mc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(oz,"generateCustomPageSchemasV4");function az(e,t,n){let i={};return n&&(tz(e,t,i),iz(e,t,i),oz(e,t,i)),{...t,...i}}o(az,"generateAppSchemasV4");async function Qw(e,t,n){let i=await Zq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?az(e,i,t):rz(e,i,t,n)}o(Qw,"generateAppSchemas");function sz(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new wh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Nf(e);break;case ue.TemplateType.OverviewPageV2:t=new jh(e);break;default:t=new Nf(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(sz,"importConfigs");function qw(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(qw,"getFileList");async function iC(e){var b,I;rn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new du().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let u=Ib(t),p=No(n,i),g=Xw(p),m=Nb(t,u,i),A=await Qw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return qw(A)}o(iC,"importProjectSchema");async function rC(e){var K,U;rn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new du().doesUi5VersionFitDistTags((U=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:U.minUI5Version,i);let p=Ib(t),g=i0(t),m=No(n,i),v=Nb(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Xw(m),I=await Qw(A,b,v),j=sz({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return qw(I,j)}o(rC,"importProjectSchemaAndConfig");var cz=["header","sections","footer"];function lz(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(lz,"addFlexChangeForSection");function fz(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}=ym(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(fz,"addHeaderActionCallBackV2");function uz(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=da(r).split("::").splice(1).join("::"),s=Ai(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(uz,"addFooterActionCallBackV2");function pz(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=Ec(t[oe.ManifestSection.generic].pages,n,m);return Tl(e,v,A,t,l,p,g,a.ID),p}o(pz,"ensureCustomColumnDefinitionExists");function Sd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&lz(e,t,"visible",n)}o(Sd,"addAppSchemaDefinition");function dz(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(dz,"addSectionReference");function Ad(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}>`,Xa(n.entityType,i,`QuickVariant<${t}>`)}o(Ad,"addTableDefinition");function gz(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];Sd(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,ua(i,u,t),Wa(i,u,t),Ad("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Ad("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Ad("ObjectPageGridTable",t,i,n),Ad("ObjectPageTreeTable",t,i,n),Ad("ObjectPageAnalyticalTable",t,i,n);let p,g=$0(i.entityType,e.serviceAVT);g&&(p=pz(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))&&vl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(gz,"handleLineItem");function mz(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Sd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(mz,"handleSubSection");function hz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];Sd(e,a,r,"ObjectPageSectionChartV2")}o(hz,"handleSectionChart");function zw(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];Sd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=oc(n==null?void 0:n.target)}o(zw,"handleHeaderFacet");function yz(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=oc(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(yz,"addDataPointHeaderFacetDataType");function vz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return Sd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(vz,"handleFormSection");function Tz(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(Tz,"getSectionType");function bz(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(bz,"getReferenceKey");function Jw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Tz(l.base,a,s),p=bz(l,n,u),g=`${u}<${p}>`;switch(dz(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,mz(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)Jw(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{gz(e,p,r,l,t,u),El(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{hz(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=vz(r,g,l,p,u);hm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{pu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{pu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{zw(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{zw(r,g,l,p,u),yz(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(Jw,"addSection");function Yw(e,t,n,i,r,a=!1){if(e)for(let s in t)Jw(i,t,s,n,r,!1,a)}o(Yw,"addSectionsFromFacets");function Zw(e,t,n){var g,m,v,A,b,I;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=Qg((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=Xg((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 j=n[F];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(Yw(l,a,i,e,t),Yw(u,s,r,e,t,!0)):Zw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Zw,"addSections");function Ez(e,t,n){bm(e,n),Tm(e,n,t,fz,void 0,!0)}o(Ez,"addHeader");function Az(e,t,n,i){let r=o0(t,n,i,void 0,!0);r&&W0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Az,"addRelatedFacetKeysType");function vd(e,t){var s;rn();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?(Ez(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Zw(e,n,a),Az(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]),vm(n,e,oe.FioriElementsVersion.v2,uz,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,cz),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(vd,"generateObjectPageSchemaV2");var ei=ie(le());var Rf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Pz=["filterBar","table","footer"],xz=ei.UIVOCABULARYALPHADOT.substring(1);function oC(e,t,n,i){Xa(e,n,"QuickVariant"),B0(n,"QuickVariantX",t),H0(i,n,"QuickVariantX")}o(oC,"addEnumForVariantPaths");function Cz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Rf.UIAnnotationTerms.SelectionPresentationVariant,Rf.UIAnnotationTerms.SelectionVariant,Rf.UIAnnotationTerms.PresentationVariant];uu(e,r,i)}o(Cz,"addEnumForFilterBarAnnotationPath");function Oz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Rf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Rf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(xz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(Oz,"getPresentationVariantForLineItem");function Iz(e,t,n){if(pm(t,"annotationPath",n))return;let i=Oz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=fu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(Iz,"getLineItemAnnotation");function Td(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ei.DefinitionName.LineItems},r=$+ei.DefinitionName.ToolBarLR;Vb.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}=um(e);if(s){let u=[],p=Ml(e.manifest[ei.ManifestSection.generic].pages,u);bl(n);let g=Iz(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);Vb.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=v})}vl(!1,n,g,a);let m=s.SelectionFields;if(lm(n,m,a),El(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],V0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;Tl(n,a,p,e.manifest,e.fragments),oC(a,e.entitySet,n,e.serviceAVT),Cz(a,n,ei.DefinitionName.ListReportFilterBar),G0(a,n,ei.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,Pz),n}o(Td,"generateListReportSchemaV2");var en=ie(le());var Nz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Lz(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(pm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let F=I+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:en.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(I){return p=p||fu("LineItem",I),g=g||fu("Chart",I),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 I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(I);se(n,{severity:en.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(Lz,"getLineItemAndChartAnnotation");function Rz(e,t){let n=e.definitions[en.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[en.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(Rz,"addChart");function bd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[en.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[en.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[en.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,_0(n.definitions.TableColumnExtensionTypeV2.enum,[en.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=um(e);if(s){bl(n);let l=[],u=Ul(e.manifest[en.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=Lz(u,s,e.logger);p&&I0.forEach(v=>{n.definitions[v][en.SchemaTag.annotationPath]=mr(a.fullyQualifiedName,p.term,p.qualifier)}),vl(!1,n,p,a),g&&Rz(n,g);let m=s.SelectionFields;if(lm(n,m,a),El(n,a),!u)return se(e.logger,{severity:en.LogSeverity.Error,message:q.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;Tl(n,a,u,e.manifest,e.fragments),oC(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,Nz),n}o(bd,"generateAnalyticalListReportSchemaV2");var eM=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function Fz(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(Fz,"getCardDefinitionNames");function Dz(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"},ga(a,s.CardModel);let l=Fz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(Dz,"addModelsEnum");function _z(e,t){let n=e.properties;for(let i in eM){let r=eM[i],a=r.key;n[a]&&(n[a].messages=[{text:hl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(_z,"markDeprecatedProperties");function tM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},_z(n,t),Dz(n,t),n}o(tM,"generateOverviewPageSchemaV2");var Vs=ie(le());function aC(e,t,n,i,r,a){rn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Vs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=yd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Vs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(aC,"prepareGenerationV2");function sC(e,t,n,i,r,a){let s=aC(n,a,i,r,t,Vs.TemplateType.ListReportObjectPageV2);return vd(s,e)}o(sC,"generateObjectPageInterfaceV2");function cC(e,t,n,i,r,a){let s=aC(n,a,i,r,t,Vs.TemplateType.ListReportObjectPageV2);return Td(s,e)}o(cC,"generateListReportInterfaceV2");function lC(e,t,n,i,r,a){let s=aC(n,a,i,r,t,Vs.TemplateType.AnalyticalListPageV2);return bd(s,e)}o(lC,"generateAnalyticalListPageInterfaceV2");function Ed(e,t){return tM(e,t)}o(Ed,"generateOVPInterfaceV2");var we=ie(le());var Pd=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 nM(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(nM,"getClassesForSingleSection");function iM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],nM(n,i,t),iM(n,t)}}o(iM,"getSubsectionClasses");function Vz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],nM(i,r,n),iM(i,n)}o(Vz,"getExportClassesForSections");function wz(e,t){let n=Ml(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(wz,"findV2Page");function fC(e,t){let n=tm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(fC,"calculateBaseId");function rM(e,t,n=!1){let i=Pd(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=wz(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:fC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(p,u,[],[],e.jsonSchema)}return i}o(rM,"exportListReportPage");function oM(e,t,n=!1){let i=e.page.config,r=Pd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Ul(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:fC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(p,u,[],[],e.jsonSchema)}return r}o(oM,"exportAnalyticalListPage");function aM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Pd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Ec(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&&Vz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:fC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(g,p,[],[],e.jsonSchema)}}return a}o(aM,"exportObjectPage");var sM=o(e=>{let t=Pd();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&&np(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Mz=o((e,t,n)=>{var s;let i=Pd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new xm,e);r.settings=Object.assign(new Ja,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=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ka(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Bb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function cM(e,t){if(e[we.SchemaType.ListReport])return rM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return aM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return sM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Mz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return oM(e[we.SchemaType.AnalyticalListPage],t)}o(cM,"exportPageV2");function uC(e,t,n=!1){if(e[we.SchemaType.ListReport])return rM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return aM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return sM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return oM(e[we.SchemaType.AnalyticalListPage],t,n)}o(uC,"exportConfigEntityByPathV2");var Ff=ie(le()),fM=require("@sap-ux/vocabularies-types/vocabularies/UI");function lM(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(lM,"updateDependencyLib");function yv(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(yv,"extractLastIdPart");function uM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Ff.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Ff.PropertyName.sections),s=a>-1?yv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${fM.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:Ff.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return pC(g),!0}o(uM,"createNewCustomColumn");var Da=ie(le());var dM=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),pM=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function kz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(kz,"initializeRouting");function jz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(jz,"setTargetOptions");function Uz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Da.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(Uz,"calculateQueryPattern");function gM(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){gM(e,t,n,s);return}}}o(gM,"fillNavigationParts");function $z(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($z,"fillParentKeys");function Bz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(jz(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=[];gM(p,a,t,r,l==null?void 0:l.contextPath);let g=$z(e.routePattern);u=Uz(p,l,g)}i.routes.push(dM(u,s.route,s.route))}}}o(Bz,"handlePageNavigation");function Hz(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(Hz,"removeDeletedPages");function Gz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=pM({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=pM({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(Gz,"transferEntitySetandContextPath");function Wz(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(Wz,"updateRouteLayout");function Kz(e,t,n,i){var r;return e.pageType&&![Da.PageTypeV4.CustomPage,Da.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!==Da.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Da.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(Kz,"fillTarget");function mM(e,t,n){var r,a;let i=kz(n[Da.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(dM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Kz(u,l,s,t),Gz(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={}),Bz(u,t,l,i,s),Wz(i,s,u),i.targets[s]=l}return Hz(i,t),i}o(mM,"transformRoutingV4");var Oi=ie(le());var hM=[Oi.FlexibleColumnLayoutAggregations.BeginColumnPages,Oi.FlexibleColumnLayoutAggregations.MidColumnPages,Oi.FlexibleColumnLayoutAggregations.EndColumnPages],yM=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:hM[r]?s.controlAggregation=hM[r]:s.controlAggregation=Oi.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)yM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Xz=o((e,t)=>{e.routing.config.routerClass=Oi.v4.FIORI_FCL_ROUTER_CLASS,yM(e,t,t.home);let n={viewName:Oi.FIORI_FCL_ROOT_VIEW_NAME,type:Oi.ViewTypes.XML,async:!0,id:Oi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,lM(e,Oi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Qz=o(e=>{var t;e.rootView&&e.rootView.viewName===Oi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Oi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),vM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Xz(e,t):Qz(e)},"updateFcl");var ne=ie(le()),xd=require("@sap-ux/vocabularies-types/vocabularies/UI");var TM=ie(zs()),vv=ie(le());function qz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(qz,"isExportValueEquals");function zz(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)===vv.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(zz,"deleteProperty");function bM(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),wc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},bM)}else qz((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]&&(zz(e,i),l=!0);return l}o(bM,"exportProperty");function Tv(e,t,n,i,r,a){let s=af(e.file,!1,a);if(s){let l=Dy(s);if(wc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},bM)){let p=(0,TM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:vv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(Tv,"getExtensionExportResult");var EM=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&&Tv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),AM=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=Oc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=sf(t),A={...i.definitions[m],definitions:i.definitions};Tv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var SM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],Yz=[...SM,"views","initialLoad","template"],bv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function Jz(e,t,n){var s,l,u,p;let i=`@${xd.UIAnnotationTerms.LineItem}`,r=`@${xd.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(Jz,"determineTargetAnnotationOfTable");function Zz(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(Zz,"determineTargetAnnotationOfChart");function eY(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(eY,"determineTargetAnnotationBasedOnParentView");function tY(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}=eY(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(tY,"determineTargetAnnotationOfView");function nY(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(nY,"determineTargetAnnotationOfHeaderSections");function iY(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=yv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(iY,"determineTargetAnnotationOfSections");function rY(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=Jz(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Zz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=iY(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=nY(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=tY(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(rY,"determineTargetAnnotation");function oY(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(oY,"determineKeyForSyncRule");function aY(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(aY,"createNewObjectInManifest");function PM(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&&(aY(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(PM,"transferPropertyToManifest");function sY(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&&SM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&Yz.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 Ka(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(sY,"deleteFromManifest");function cY(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}=rY(e,n.transferParameters,n.configObject),g=oY(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&&dl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=sY(e,A,n.transferParameters,v,m,u,l):r=PM(A,n.propertyDefinition,i)}return r}o(cY,"exportManifestChange");function lY(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);AM(e.transferParameters,r,n.configObject)}else i.manifest&&cY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(lY,"evaluateExportRule");function fY(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&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,gC(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(fY,"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 pY(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)||xd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(pY,"createALPChartView");function dY(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=`@${xd.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(dY,"createVisualFilters");function gY(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(gY,"createLRTableView");function mY(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=uM(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 pY(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=gY(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=dY(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(mY,"createNewElement");function hY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(hY,"isDefinitionTraversable");function dC(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=em(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}=mY(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||lY(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||hY(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;fY(e,s,r,p,m)}}o(dC,"transferSortedListEntry");function yY(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]],dC(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,dC(e,i,r),a=!0)}),e.index++})}return a}o(yY,"transferConfigEntriesWithAnyOfDefinitions");function vY(e,t,n,i){let r=Lb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(vY,"mergeEntriesForInsert");function TY(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(TY,"sortProperties");function bY(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=yY(n,p,i,r,a)}return s}o(bY,"checkIfAnyOfDefinition");function gC(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=bY(u,e,l,a,n,i),g=TY(a.properties);u!=null&&u.$ref&&vY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!dl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,dC(l,n,i,p),m[1].$ref&&s++)})}o(gC,"transferManifestEntriesAndFlexChange");function xM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(xM,"getClassesForSingleSection");function CM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],xM(n,i,t),CM(n,t)}}o(CM,"getSubsectionClasses");function EY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],xM(e,r,n),CM(i,n)}o(EY,"getExportClassesForSections");function OM(e,t){let n=tm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(OM,"calculateBaseId");var IM=o((e,t,n=!1)=>{var l;let i=bv(e.manifest),r=new Fa,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&EY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:OM(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 gC(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),AY=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=bv(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((I=g.toolBar)!=null&&I.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:OM(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 gC(A,n,[],[],[],u),l},"exportListPage"),mC=o((e,t,n,i=!1)=>{let r=new Fa,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return AY(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),NM=o((e,t,n=!1)=>mC(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),SY=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=Pb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];PM(u,p,{}),!l&&Object.keys(s).length&&n0(r,t,s)},"applyExportRule"),PY=o((e,t,n)=>{var a;let i=bv(t),r=Object.assign(new ky,e);r.settings=Object.assign(new cf,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)SY(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],Ka(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=mM(e.home,e.pages,i.manifest),vM(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),LM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return mC(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return IM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return PY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return NM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return EM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),xY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=bv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&Tv(l,s,i.config,t,"view",a),s},"exportCustomPage"),hC=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return mC(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return IM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return NM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return xY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ht=require("@sap-ux/fe-fpm-writer");var CY=new Map([[de.CustomExtensionType.CustomPage,Ht.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ht.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ht.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ht.generateObjectPage],[de.CustomExtensionType.ListReport,Ht.generateListReport],[de.CustomExtensionType.CustomAction,Ht.generateCustomAction],[de.CustomExtensionType.CustomView,Ht.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ht.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ht.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ht.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ht.generateCustomHeaderSection]]),OY={api:Ht.PromptsAPI,types:Ht.PromptsType};function IY(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=cC(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=sC(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=Ed(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=lC(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=My(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=ZS(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=My(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=eP(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=tP(i,r,a,s,u,e.featureToggles,l)}}return t}o(IY,"generateSchema");function NY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=cM(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=LM(i,n)}return t}o(NY,"exportConfig");function LY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=uC(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=hC(i,n)}return t}o(LY,"exportConfigEntityByPath");function RY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=uC(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=hC(i,n,!0)}return t}o(RY,"deleteConfigEntityByPath");function FY(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Fh(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Vh(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=kh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=Dh(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Bc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=gv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Bc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=dv(n[de.SchemaType.FPMCustomPage]))}return t}o(FY,"importConfig");async function DY(e){return rC(e)}o(DY,"importProject");async function _Y(e){return iC(e)}o(_Y,"importProjectSchema");function VY(){return{version:"21",fpmWriter:"29",moduleVersion:z0.version}}o(VY,"getApiVersion");function pC(e){let t=CY.get(e.customExtension);if(t&&typeof t=="function")return(0,Ht.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(pC,"generateCustomExtension");var Jr=require("path"),ws=require("fs");var Df=o(async e=>new Promise((t,n)=>{(0,ws.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),wY=o(async e=>JSON.parse(await Df(e)),"readJSON"),yC=o(async e=>new Promise((t,n)=>{(0,ws.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),MY=o(async e=>new Promise(t=>{(0,ws.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),FM=o(async e=>new Promise(t=>{(0,ws.exists)(e,n=>{t(n)})}),"resourceExists"),kY=o(async e=>wY((0,Jr.join)(e,"manifest.json")),"getManifest"),DM=o(async e=>{let t=[],n=(0,Jr.join)(e,"changes");if(!await FM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await yC(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Df((0,Jr.join)(n,a)));return t},"getChanges"),RM=o(async(e,t="fragments")=>{let n=[],i=(0,Jr.join)(e,"ext",t);if(!await FM(i))return n;let r=await yC(i);for(let a of r){let s=(0,Jr.join)(i,a),l=await Df(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),jY=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,Jr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Df(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,Jr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await Df(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,Jr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Df(b)})}}return n},"getAnnotations"),UY=o(async e=>{let t=(0,Jr.basename)(e),n=(0,Jr.join)(e,"webapp"),i=await kY(n),r=await jY(i,n),a=await DM(n),s=await RM(n),l=await RM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");qs(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});
|
|
294
|
+
`}),G1(q)}o(rn,"initI18n");var Bt=ne(le());function Ec(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)===Bt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Ec(s.pages,t,n),i))return n.unshift(a),i}}o(Ec,"findObjectPageV2");function Ml(e,t){var n;for(let i in e){let r=e[i];if(fa((n=r.component)==null?void 0:n.name)===Bt.PageTypeV2.ListReport)return t.push(i),r}}o(Ml,"findListReportPageV2");function kl(e){if(!e.manifest[Bt.ManifestSection.generic]){oe(e.logger,{severity:Bt.LogSeverity.Error,message:q.t("NOFE"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}let t=e.manifest[Bt.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:Bt.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}return t}o(kl,"getV2Pages");function jl(e,t,n){var i;if(!e){oe(t,{severity:Bt.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:Bt.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}}o(jl,"checkV2Page");function Ul(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)===Bt.PageTypeV2.AnalyticalListPage)return a}oe(n,{severity:Bt.LogSeverity.Error,message:q.t("NOALP"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}o(Ul,"findAnalyticalListPage");function wA(e,t){let n=e.split("|");return Bt.v2.SectionPosition[n[0]]&&n[1]===t}o(wA,"isAssociatedCustomSection");function K1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${Bt.v2.SAPUI5_VIEW_EXTENSION}/${Bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)wA(r,t)&&(i[r]=n[r]);return i}o(K1,"findCustomSectionExtensions");function Q3(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(Q3,"removeEmptySettingsOfFooter");function q3(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(q3,"removeEmptySettingsOfFilterBar");function z3(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(z3,"removeEmptySettingsOfToolBar");function Nh(e){z3(e),q3(e),Q3(e)}o(Nh,"removeEmptySettings");var kA={};Qs(kA,{AnalyticalListPage:()=>Hr,ListReport:()=>uo,ObjectPage:()=>ci,OverviewPage:()=>Jt,exportFilterSettings:()=>q1,importDateSettingsOVP:()=>X1,importFilterSettings:()=>Q1});var Lh=ne(le());var Hr=class{};o(Hr,"AnalyticalListPage"),h([y({flex:{controlId:Zg,controlType:o(()=>Lh.ControlType.DynamicPage,"controlType")}})],Hr.prototype,"fitContent",2),h([Ut("table")],Hr.prototype,"table",2),h([Ut("template::SmartFilterBar")],Hr.prototype,"filterBar",2),h([Ut("analyticalListPageChart")],Hr.prototype,"chart",2),h([Ut("analyticalListFooter")],Hr.prototype,"footer",2),Hr=h([jr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Lh.v2.FE_TEMPLATE_V2_ALP})],Hr);var Zu=ne(le());var uo=class{};o(uo,"ListReport"),h([y({flex:{controlId:Zg,controlType:o(()=>Zu.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([jr({id:Zu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Zu.v2.FE_TEMPLATE_V2_LIST_REPORT})],uo);var MA=ne(le());var ci=class{};o(ci,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),h([Ut("header")],ci.prototype,"header",2),h([Ut("sections")],ci.prototype,"sections",2),h([Ut("layout")],ci.prototype,"layout",2),h([y({manifest:{path:o(t=>Cm(t),"path")}}),x({since:"1.77.0"})],ci.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"}}),x({since:"1.78.0"})],ci.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}}),x({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=h([jr({id:MA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:MA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function Y3(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(Y3,"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&&Y3(e,t),t}o(X1,"importDateSettingsOVP");function Q1(e){let t={};return t.dateSettings=X1(e.filterSettings),t}o(Q1,"importFilterSettings");function J3(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(J3,"exportFilterFields");function q1(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&&J3(t,n,e))}o(q1,"exportFilterSettings");var Jt=class{};o(Jt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:Q1,export:q1}}),x({since:"1.80.0"})],Jt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"resizableLayout",2),Jt=h([jr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Jt);var jA=class jA{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(jA,"MetadataFactory");var $l=jA;var Jn=ne(le());var Z3={},eX={Table:lc,ResponsiveTableWithMultiSelect:lc,ResponsiveTableWithInlineDelete:lc},tX={[Jn.v2.CardSettingsType.listCardSettings]:Ol,[Jn.v2.CardSettingsType.listCardSettingsv4]:Ol,[Jn.v2.CardSettingsType.analyticalCardSettings]:Il,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Il,[Jn.v2.CardSettingsType.stackCardSettings]:Eu,[Jn.v2.CardSettingsType.linkListCardSettings]:Au,[Jn.v2.CardSettingsType.tableCardSettings]:Nl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Nl},nX={[Jn.SAPUI5_VIEW_CLASS]:Xu,[Jn.SAPUI5_FRAGMENT_CLASS]:Ku,Table:bc,ObjectPageResponsiveTableWithMultiSelect:bc,ObjectPageResponsiveTableWithInlineDelete:bc},iX={[Jn.PageTypeV2.AnalyticalListPage]:Z3,[Jn.PageTypeV2.ListReport]:eX,[Jn.PageTypeV2.ObjectPage]:nX,[Jn.PageTypeV2.OverviewPage]:tX},UA=class UA extends $l{constructor(){super(FA,kA,iX)}};o(UA,"MetadataInstanceFactoryV2");var _i=UA;function rX(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(rX,"importFilterBar");function $A(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=ro(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};Ph(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"&&xh(e,n,s)}o($A,"importFlexChangesOfTableAndColumns");function oX(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[om]&&t[am]&&(a=JSON.parse(JSON.stringify(t[om])),a.properties={...a.properties,...t[am].properties}),Dn(n.table,i.manifest,a,r,i.logger),$A(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&&oe(i.logger,{severity:qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(oX,"importTable");function aX(e,t,n,i){let r=e.jsonSchema.definitions,a=Oh(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),Ih(t,n,r),oX(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=gs(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)}rX(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=gs(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(aX,"addSettings");function Rh(e){if(rn(),!kl(e))return;let n=new _i,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=Ml(e.manifest[qt.ManifestSection.generic].pages,r);if(jl(a,e.logger,a==null?void 0:a.entitySet),!!a)return aX(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&Ch(i,s,e.jsonSchema,e.logger)}),wl(i,e,a,qt.PageTypeV2.ListReport),Nh(i),i}o(Rh,"createListReportConfig");var xt=ne(le());function sX(e,t,n,i){var p,g;let r=Oh(e.manifest,i),a=e.jsonSchema.definitions;Ih(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),$A(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=gs(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=gs(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[xt.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(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(sX,"addSettings");function Fh(e){if(rn(),!kl(e))return;let n=new _i,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=Ul(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(jl(a,e.logger,a==null?void 0:a.entitySet),!!a)return sX(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&Ch(i,s,e.jsonSchema,e.logger)}),wl(i,e,a,xt.PageTypeV2.AnalyticalListPage),Nh(i),i}o(Fh,"createAnalyticalListPageConfig");var Ee=ne(le());var ep=require("@sap-ux/vocabularies-types/vocabularies/UI");var lX=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function fX(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(`${ep.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(ep.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(fX,"getSingleSelectorIdPart");function uX(e){let t,n=e.split(":::");if(n.length===1)t=fX(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(`::${ep.UIAnnotationTerms.LineItem}`,`/@${ep.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(uX,"getFacetID");function pX(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=ro(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=uX(v);v=_A(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${g.content.property}`]={controlId:v,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){oe(n,{severity:Ee.LogSeverity.Error,message: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(pX,"prepareFlexChanges");var dX=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 gX(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&DA(i,t,r)}o(gX,"addFlexChangeToColumns");function z1(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?gX(a,p,r.properties,n):Ph(n,p,r))}}o(z1,"importFlexChangesOfTable");function mX(e,t){return e.facetId==="template"&&t}o(mX,"isStandardActionFlexChange");var Y1=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 hX(e,t,n,i,r,a){var I;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=((I=t.facetId)==null?void 0:I.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&Y1(u,r.split("::"))&&s,v=e.title&&Y1(u,e.title.split("::"),!0),A=!t.facetId&&lX.includes(t.controlType),b=mX(t,l);return p||g||m||v||A||b}o(hX,"matchSelector");function yX(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;hX(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(yX,"importFlexChanges");function vX(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(oe(n.logger,{severity:Ee.LogSeverity.Warning,message:hl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(vX,"checkDeprecatedProperties");function TX(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=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(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 vX(p,a,n,u),p}o(TX,"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];z1(i.flexChanges,g,t,r,A,l)}else z1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);yX(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&TX(m,i.pageKeys,e,t,g,s,r)}}o(Vi,"transferSettingsAndFlexChanges");function Z1(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=`${F0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${sm}${r}`;break}}return r.replace(/@/g,"")}o(Z1,"getActionId");function bX(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=Z1(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(bX,"fillStandardActions");function Dh(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=gs(p),m=Z1(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]}}bX(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(Dh,"fillActions");function EX(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(EX,"fillFields");function AX(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(AX,"prepareTableSchema");function SX(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=AX(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");Dh(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(SX,"fillTableInConfig");function PX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?im(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};wl(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(PX,"fillCustomColumnsInConfig");function xX(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(xX,"fillChartSection");function CX(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(CX,"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&&Dh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&EX(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 J1(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,BA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(J1,"fillSubSection");function BA(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:dX(t[l]),schema:t[l],title:Vb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],SX(e,p,n,i,r),PX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],xX(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}>`],J1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],CX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],J1(e,p,n,i,r))}}o(BA,"fillSectionsInConfig");function IX(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(IX,"fillCustomSectionsInConfig");function NX(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&&Dh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&Dh(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;BA(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;BA(e,u.properties,v,n.sections,t)}let p=K1(e.manifest,e.entitySet);return IX(p,n,t,i,e),n}o(NX,"fillConfig");function _h(e){rn();let t=kl(e);if(!t)return;let n=e.entitySet,i=[],r=Ec(t,e.entitySet,i);if(jl(r,e.logger,n),!r)return;let a=pX(e.flex,n),s=new _i;return NX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(_h,"createObjectPageConfigV2");function wh(e,t){var n,i;return(n=e.component)!=null&&n.name?qg(fa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(wh,"generateId");function LX(e,t,n,i){e.navigation={};let r=eD(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=wh(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(LX,"getPageConfigsAndNavigations");function eD(e,t){var i;let n={};for(let r in e){let a=e[r],s=wh(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=Rh(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=Fh(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=_h(p)}a.pages&&LX(l,a,t,n)}return n}o(eD,"getPagesAndConfigs");var HA=class HA extends Ya{constructor(t){rn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:oe(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||oe(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&&wh(n[i],i),a=new Ja,s=_t(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,eD(n,t),a)}};o(HA,"V2AppProvider");var Vh=HA;function tp(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(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=wh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=tp(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(tp,"getPages");var Sc=ne(le());var Uo=ne(le());var WA=ne(ib());var Vt=ne(le());var RX=["colorPalette","tabs"];function FX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(FX,"createCard");function tD(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),tD(e,n.join("|"))}return t}o(tD,"findAvailableId");function np(e,t,n,i,r,a,s){i!=null&&i.properties&&GA(e,t,n,i.properties,r,a,s)}o(np,"transferManifestEntriesOVP");function Ac(e,t,n,i){return e.createInstance(Vt.PageTypeV2.OverviewPage,i,n,t)}o(Ac,"assignReflectMetadataRules");function DX(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=Ac(e.factory,i[1],t,"CustomCard"),np(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(DX,"processAnyOfDefinitionsOfOVP");function _X(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!RX.includes(i)?t[i]=(0,WA.default)(t[i]||{},r||{},{arrayMerge:Fb}):t[i]=r}o(_X,"checkSyncRuleForExport");function VX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in Vt.v2.CardSettingsType||n==="settings")l.settings=(0,WA.default)(l.settings||{},r||{},{arrayMerge:Fb});else if(r!==void 0){let u=e.manifest.export;_X(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(VX,"transferToManifest");function wX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Vt.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]=Ac(e.factory,i[0],e.currentObject[t],"CustomCard"),FX(t,e.exportResults.manifest[Vt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,np(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Vt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Vt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated)})}o(wX,"transferCards");function MX(e,t){if(t==="cards")wX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Vt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Ac(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],np(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],GA(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],GA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(MX,"exportOfObject");function GA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!dl(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=DX(g)):u&&typeof u=="object"&&i[l]&&MX(g,l),p!=null&&p.manifest&&VX(p,a,l,t,u,e)}}o(GA,"processProperties");function kX(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=I0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=N0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,I=JSON.parse(A);I={content:I.content,selector:I.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(I)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(kX,"evaluateFlexRule");function jX(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=Vt.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=Vt.ChangeIndicator.Updated}}o(jX,"exportConfigValueToManifest");function UX(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)jX(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=Vt.ChangeIndicator.Updated,Ka(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(UX,"evaluateManifestRule");function $X(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(Vt.FACETTITLEPREFIX)?r.split(Vt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o($X,"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 HX(e,t,n,i,r){let a;return t[0]===Vt.PropertyName.sections?a=$X(t,a,n,e,r):t[0]===Vt.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(HX,"getManifestPath");function GX(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)kX(e,i,t,r,a,n,s);else if(t.manifest){let u=HX(e,i,t,n,a);UX(e,u,t,s,n)}}o(GX,"evaluateExportRule");function WX(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)&&(Mm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Vt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Vt.ViewTemplateType.ResponsiveTableColumnsExtension,Vt.ViewTemplateType.ResponsiveTableCellsExtension);Mm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(WX,"deleteObsoleteColumn");function KX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=i1(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,WX(r,e,n))}o(KX,"deleteObsoleteColumnsFromFragment");function XX(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}=km(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(XX,"clusterConfigColumnsByPath");function nD(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 Vt.v2.TableColumnExtensionTypeV2){let{path:u}=km(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{KX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=XX(t,n,e.v2Page,s,r);for(let u in l)TE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(nD,"transferColumnExtensions");function QX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=tD(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]];ms(e,t[p],i,[...r,s[p]],v)}let u=$n(e.exportResults.manifest,Gb());for(let p in u)wA(p,l)&&!s.includes(p)&&delete u[p]}o(QX,"transferManifestExtensions");function qX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Vt.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(qX,"getSectionId");function zX(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);ms(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(zX,"transferIndexTable");function YX(e,t,n,i,r,a){let s,l=im(e.$ref);l&&(s={target:l,key:qX(t,n)}),nD(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(YX,"transferCustomColumns");function JX(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&&ms(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(JX,"handleAnyOfDefinitions");function ZX(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")QX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){YX(l,t,s,e,n,a);return}else a?ms(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&JX(l,e,s,n==null?void 0:n[r],r,i,t)}o(ZX,"transferComplexProperty");function ms(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&&!dl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&em(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(GX(e,g,t,[...i],p,a,l),zX(s,e,a,l,p,i),s===void 0||typeof s=="object")ZX(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){nD(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ms,"transferManifestEntriesAndFlexChange");function iD(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ac(r,i,n[i],s),a.push(i),KA(r,n[i],e,l.properties,a)}o(iD,"transferSettingsOfRef");function e7(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);iD(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Uo.v2.cardTemplateSettingsMap[e.template]}`.split($);iD(i,l,e,t,r,a)}}o(e7,"processPropertiesOfObject");function t7(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{yl(s,u,t,e)}catch(p){oe(i.logger,{severity:Uo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Yg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&e7(e,t,r,i,a,n)}o(t7,"processOvpProperty");function KA(e,t,n,i,r){for(let a in i)t7(t,a,r,n,i,e)}o(KA,"processOvpProperties");function n7(e,t,n){KA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Uo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Uo.ManifestSection.ovp].cards[i].template,a=Uo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ac(n,a,{},"CustomCard"),e.cards=Ac(n,a,e.cards,"CustomCard"),KA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(n7,"addSettings");function Mh(e){let t=new _i,n=t.createPageInstance(Uo.PageTypeV2.OverviewPage);return e.jsonSchema&&n7(n,e,t),n}o(Mh,"createOverviewPageConfig");var XA=class XA extends Ya{constructor(t){let n={},i=t.manifest[Sc.ManifestSection.ovp],r=new Ja,a=_t(Sc.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Sc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Sc.PageTypeV2.OverviewPage,config:Mh(l),entitySet:i.globalFilterEntitySet},p=qg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(XA,"V2OvpProvider");var kh=XA;var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ne(le()),rD=require("path");function i7(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(i7,"sortByPropertyIndex");function ip(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(i7())}o(ip,"sortPropertiesRecords");function r7(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(r7,"getExtensionText");function QA(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(QA,"addExtensionToSortedArray");function o7(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(o7,"addRemainingTargetByBefore");function oD(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=r7(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(oD,"getExtensionDetails");function qA(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=oD(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?(QA(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(oe(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&&o7(e,p,g,n,m)}else r&&(QA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?qA(e,t,n,i):s>0&&qA(e,t,n,i,!0)}o(qA,"adjustCustomExtReferringToCustomExt");function a7(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(a7,"getExtensionAnchor");function s7(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(s7,"getLocalExtensionsToSkip");function c7(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(c7,"getExtensionIndexByMergedApproach");function l7(e,t,n,i,r=!1){return r?c7(e,t,n):n.findIndex(a=>a[0]===i)}o(l7,"getExtensionIndex");function f7(e,t,n,i,r){oe(e,{severity:wi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(f7,"handleInvalidExtension");function Ta(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=s7(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=oD(g,n,p,te.ActionType.Custom);if(typeof g!="object"){f7(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=a7(g,s);if(v){let A=l7(g,e,t,v,a);A>-1&&(QA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&qA(l,n,t,r),t}o(Ta,"addExtensionToArray");function zA(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(zA,"addEnumForProperties");function u7(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];zA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(u7,"addColumnPropertyIndexAndEnum");function Pc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=ip(l),p=a?a.replace(/::/g,"/"):`@${$o.UIAnnotationTerms.LineItem}`,g=(I=(b=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=Ta(g,u,i,void 0,n)),u7(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Pc,"addCustomColumnDefinition");function p7(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(p7,"determineActionDefinitionName");function d7(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}=ic(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(d7,"addTargetAndKeysOfAction");function g7(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=p7(e),l=Ai(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=rm(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=Si(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=oo(i),d7(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(g7,"addActionRecordToSchema");function m7(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=da(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Ai(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]=oo(s),g[l]=m,gm(s,g,l)}}o(m7,"addLineItemRecordToSchema");function YA(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))g7(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;m7(e,l,u,a,i)}a++})}o(YA,"appendLineItemsToSchema");function xc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=pm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);YA(e,r,a,void 0,t)}o(xc,"addLineItemsTypeToSchema");function Cc(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;ga(s,b)}}o(Cc,"addFragmentEnumForAnchor");function po(e,t,n=te.DefinitionName.CustomActionPosition){qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function jh(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(jh,"findPageV4");function aD(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(aD,"alignSchemaWithTemplateType");function ba(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,b,I,F,j,K,U;let s=e.definitions[r];if(!s)return;let l=ip(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=(I=(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:I.actions:p=(U=(K=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:K[u])==null?void 0:U.actions,p&&(l=Ta(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let se={};l.forEach(([Z,re])=>se[Z]=re),e.definitions[r].properties=se}}o(ba,"addCustomActionDefinition");function Uh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,b,I,F;let a=e.definitions[r];if(!a)return;let s=ip(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=(I=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Ta(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,K])=>u[j]=K)}e.definitions[r].properties=u}o(Uh,"addHeaderFooterCustomActionDefinition");function Oc(e,t,n){let i=Jg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:wi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Jg(i,[t]);if(!r){oe(n,{severity:wi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Oc,"getManifestPage");function Ic(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,rD.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(Ic,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Oc(n,t,i),a=Jg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function sD(e,t,n,i,r,a,s){var g,m,v,A,b,I,F,j,K,U,se,Z;let l=ip(t),u=new Map;if(l=l.map(re=>{let Pe=Sm(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=Ta(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;re&&"facets"in re&&(l=Ta(re.facets,l,i,"template",s,r))}else{let re=(Z=(se=(U=(K=n.options)==null?void 0:K.settings)==null?void 0:U.content)==null?void 0:se.body)==null?void 0:Z.sections;re&&(l=Ta(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(sD,"addCustomSectionDefinition");function cD(e,t,n){var l,u,p;let i=ip(t),r=new Map;i=i.map(g=>{let m=Sm(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=Ta(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(cD,"addCustomFilterFieldDefinition");var _=ne(le()),Nc=require("@sap-ux/vocabularies-types/vocabularies/UI");var h7=["header","filterBar","chart","table"],JA="@UI.LineItem";function ZA(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=hr(e.fullyQualifiedName,Nc.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=Kg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=oo(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(ZA,"addSelectionFields");function y7(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Nc.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(y7,"getVisualFilters");function v7(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(v7,"getPropertiesIndex");function T7(e,t,n,i){var s,l,u,p,g,m;let r=v7(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:Si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let F=bt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let j=(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=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(T7,"addVisualFilters");function b7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},cD(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(b7,"applyCustomFilterFields");function E7(e,t,n,i){var l,u;let r=y7(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={},T7(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=ZA(e,t,a,s),b7(t,s,n)}o(E7,"addFilterBar");function lD(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=Ai(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(lD,"defineActions");function fD(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"?ml(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(fD,"findTheRightVisualization");function A7(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(A7,"analyzeChartAnnotation");function S7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=fD((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(oe(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=JA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(S7,"analyzeSPVforView");function Bl(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}=fD(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return S7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=JA,m=`/${s}/@${Nc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=JA;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}=A7(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(Bl,"analyzeViewAnnotation");function P7(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];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else z0(r,q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(P7,"addALPChartView");function x7(e,t,n,i,r,a){var j,K,U,se,Z,re,Pe,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(se=(U=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:U[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:u}=Bl(l,s,n.serviceAVT,"primary",void 0,n.logger);P7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,lD(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Bl((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,I;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=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};xc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[I].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Pc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,r,n.logger,void 0,F),po(e,F,_.DefinitionName.CustomActionPosition)}o(x7,"addALPViews");function C7(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 lD(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(C7,"addViewChartDefinitions");function O7(e,t,n,i,r,a){let s=C7(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 I7(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),Qa(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},Qa(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};xc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(I7,"addViewLineItems");function N7(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(N7,"addTagsToView");function L7(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(L7,"getTargetEntityType");function R7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Nc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=bt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Qa(l.properties.position,_.DefinitionName.ViewPosition,r),bt(_.DefinitionName.ViewPosition,r,e.appSchema),Pc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(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}>`;ba(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(R7,"addViewCustomExtensions");function F7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)I7(n,t,e,n.targetAnnotation,i),R7(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 D7(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=L7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:b,title:I}=Bl(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]),j={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:I,entitySet:u.entitySet};F7(v,s,j,n,i,m,u),N7(s,F,b,u)}}o(D7,"addLRViews");function _7(e,t,n,i,r,a){var g,m,v,A,b,I,F,j,K,U,se,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Bl(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],Qa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Qa(ut.properties.columns,D),delete s.properties,Qa(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||oe(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};xc(Ue);let sn=(v=Pe.split("#"))==null?void 0:v[1],Gn=sn?`@${Nc.UIAnnotationTerms.LineItem}#${sn}`:`@${Nc.UIAnnotationTerms.LineItem}`;Pc(e,i,t.logger,void 0,D,Gn),Cc(e,D,i,void 0,Gn);let tn=`${_.DefinitionName.Actions}<${D}>`,Rt=bm(e,D,_.DefinitionName.CustomTableAction);ba(e,i,t.logger,yn(Rt),tn,Gn),po(e,tn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Qa(s.properties.columns,_.DefinitionName.LineItems);let Pe=(I=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Pe&&!((K=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&K.paths)&&oe(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};xc(D),Pc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(se=(U=i.options)==null?void 0:U.settings)==null?void 0:se.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=hr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,i,t.logger,void 0,ut),po(e,ut,_.DefinitionName.CustomActionPosition)}}o(_7,"adaptTableDefinition");function V7(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(V7,"getDefaultAnnotationPath");function w7(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=V7(t,n.entityType,n.templateType),l=aD(e,n);E7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(_7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],D7(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&&(x7(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(w7,"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",Uh(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 rp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Xa(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=jh(l,n,e.entitySet,i);if(!u)return r;M7(r,u,e.logger),w7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,h7),r}o(rp,"generateListReportSchemaV4");var xr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ne(le());var nw=ne(zs()),iw=ne(tw()),rw=ne(wS());var ow=ne(le()),aw=ne(le());function lQ(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(lQ,"findElementByXMLPath");function sw(e,t){return e[t]?!1:(e[t]={},!0)}o(sw,"ensureObjectExists");function fQ(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(fQ,"getPropertiesFromRef");function uQ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=sw(l,i),m=l[i];return wc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(uQ,"traverseDefaultAggregation");function pQ(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(pQ,"isDefaultAggregationAppliable");function wc(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=fQ(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&&pQ(u,p)&&(l=uQ(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let I=A.metadata.path,F=I.slice(r.length),j=lQ(i,F);l=sw(a,v)||l;let K=a[v];l=wc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:I,config:K,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(wc,"traverseSchema");function af(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,rw.parse)(e.fileContent),s=(0,iw.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,nw.xml2js)(e.fileContent)}catch(r){oe(n,{severity:aw.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Yg(r)}),location:{path:e.dataSourceUri}})}return i}o(af,"parseXML");function sf(e){return`${ow.DefinitionName.CustomExtensionFragment}<${e}>`}o(sf,"getCustomExtensionFragmentDefinitionKey");function Fy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Fy,"getRootElement");var XS=ne(le()),QS=ne(le());var Rp=ne(le());function As(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(As,"getAttribute");function cw(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(cw,"getNodeByName");function dQ(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(dQ,"resolveMetaPath");function BS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=As(t,"contextPath")||i.contextPath,a=As(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let I=dQ(a);I.path&&(u=l?I.path:`${u}/${I.path}`,a=I.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 I=a.split(".");I.length&&(A=I[I.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(BS,"getEntityTypeResolution");function lw(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(lw,"applyAnnotationPath");function gQ(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Bl(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=Ob(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(gQ,"getTableLineItemAnnotationData");var fw={"sap.fe.macros.Chart":o(e=>{let t=BS(e);lw(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=BS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Rp.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]);ZA(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=BS(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=ii(Rp.UIVOCABULARY,n);if(lw(t,r),t.annotationPath){let u=gQ(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:Rp.DefinitionName.LineItems};YA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var uw=ne(le());var mQ=new Map([["filterFields","SelectionField::"]]),hQ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Fp={anchor:"anchor",placement:"placement",key:"key"};function yQ(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 Fp.anchor in r&&Fp.placement in r}return!1}o(yQ,"isCustomExtensionSchema");function pw(e){let t=mQ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=hQ.get(e),t&&(n.prefix=t)),n}o(pw,"getAnnotationPrefix");function vQ(e,t,n,i){let r=t.properties[n],a=pw(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=As(l,Fp.key)||n,p=As(l,Fp.anchor),g=As(l,Fp.placement)||uw.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(vQ,"getExtensionData");function TQ(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}=vQ(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}Ta(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(TQ,"updatePropertyIndices");function bQ(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=As(e.subElements[s],"key")||r}return r}o(bQ,"getCorrectedAnchorEnumKey");function EQ(e,t,n,i){var a,s;let r=pw(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;qa(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=bQ(e,m.const,r,t.properties[m.const]))}}o(EQ,"applyEnumsForAnchors");function dw(e,t,n,i){yQ(t,n)&&(i=i||e.name,TQ(e,t,i),EQ(e,t,n,i))}o(dw,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function gw(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o(gw,"unsafeStringify");var mw=require("crypto");var _y=new Uint8Array(256),Dy=_y.length;function HS(){return Dy>_y.length-16&&((0,mw.randomFillSync)(_y),Dy=0),_y.slice(Dy,Dy+=16)}o(HS,"rng");var hw=require("crypto"),GS={randomUUID:hw.randomUUID};function AQ(e,t,n){var r;if(GS.randomUUID&&!t&&!e)return GS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??HS();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 gw(i)}o(AQ,"v4");var WS=AQ;var KS="sap.fe.macros",SQ=["id","key","title","text","label","header"];function yw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(yw,"getElementName");function PQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(PQ,"isElementWithNamespace");function xQ(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(xQ,"getDependencies");function CQ(e,t){let n="",i=e.attributes||[];for(let r of SQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(CQ,"getViewNodeDescription");function OQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(OQ,"findAvailableName");function vw(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(vw,"prepareSchemaProperties");function IQ(e,t,n){t.properties||vw(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(IQ,"handleAttributes");function NQ(e){e.type===QS.MacrosPropertyType.Control&&(e.internalId=WS())}o(NQ,"applyIdForMacros");function LQ(e,t,n){var i,r;try{(r=(i=fw)[e])==null||r.call(i,t)}catch{oe(n,{severity:XS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(LQ,"callAnnotationHandler");function RQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===QS.MacrosPropertyType.Control&&(e.controlName=n)}o(RQ,"updateMetadataByReference");function FQ(e,t,n,i){var v,A,b,I,F;let r=n.schema;t.properties||vw(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=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?OQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${KS}.${i}`,`${KS}.table.${i}`,`${KS}.filterBar.${i}`];let m=!1;for(let j of g){let K=(F=r.definitions)==null?void 0:F[j];if(typeof K!="object")continue;RQ(u,K,j);let U=CQ(e,i),se={$ref:l0(j),description:U,propertyIndex:n.index,metadata:u};IQ(e,se,r),t.properties[p]=se,m=!0,LQ(j,{...n,node:e,schema:se,rootSchema:n.schema},n.logger);break}if(NQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}return p}o(FQ,"addControlToSchema");function Tw(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)}Tw(r,t)}}o(Tw,"populateUsedDefinitionKeys");function DQ(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(DQ,"isElementAddableToSchema");function _Q(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!cw(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(_Q,"getDefaultAggregation");function VQ(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,bw(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:yw(s),index:a}]},i)}}o(VQ,"handleSubElementsOfXMLNode");function bw(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(PQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&DQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),I=FQ(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];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),Tw(t,i));let p=_Q(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),VQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)dw(A.node,A.schema,n.schema,A.name)}o(bw,"handleXMLNode");function wQ(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(wQ,"getMacrosPrefixes");function Mc(e,t,n,i){let r=af(t.file,!0,i),a=[];if(!r)return;rn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:XS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=xQ(l),p=wQ(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,bw(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:yw(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(Mc,"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 Aw(e,t,n,i){var s,l,u;let r=Oc(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=sf(p);e.definitions[m]=g;let v=Ic(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:b={}}=Mc(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(Aw,"resolveFragments");var MQ=["header","layout","sections","footer"],kQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],qS="Custom Action";function zS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=hm(t.item,e),p=da(t.item),g=t.item.fullyQualifiedName.replace(`@${xr.UIAnnotationTerms.Identification}`,`/@${xr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,v=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Ai(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=oo(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(zS,"addSingleHeaderActionV4");function Sw(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(Sw,"addStandardHeaderAction");function Pw(e,t,n,i,r,a){let s=da(e.item),l=Ai(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${xr.UIAnnotationTerms.Identification}`,`/@${xr.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(Pw,"addSingleFooterAction");function jQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===xr.UIAnnotationTypes.DataFieldForAction||i.$Type===xr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(kQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(jQ,"groupByCriticality");function UQ(e,t,n,i,r){for(let a=0;a<e.length;a++)zS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(UQ,"addCriticalActions");function $Q(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&&(zS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o($Q,"addCopyAction");function BQ(e,t,n,i,r,a){for(let s of e)zS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(BQ,"addUncriticalActions");function HQ(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(HQ,"addRelatedAppsButton");function xw(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(xw,"setAnnotationPathFromEntitySetOrEntityType");function GQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?jQ(n):{};if(UQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=j0(r.entitySet),g=U0(r.entitySet);if(fm(r.entitySet)&&g){let m=Sw("Edit",t,i,s.length);xw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Sw("Delete",t,i,s.length+1);xw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;$Q(l,r.serviceAVT,t,e,i,u),BQ(l,r.serviceAVT,t,e,i,u),Ow(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),HQ(i)}o(GQ,"addHeaderActionCallBackV4");function WQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===xr.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];Pw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];Pw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(WQ,"addFooterActionCallBackV4");function KQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${xr.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}>`;Pc(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}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&zA(m,l)}o(KQ,"addCustomColumnsOP");function XQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${xr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=qS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ba(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(XQ,"addTableCustomActionsOP");function Ow(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=qS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Uh(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(Ow,"addHeaderFooterCustomActionsOP");function QQ({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,u=bt(e,t,i);n.entityType&&l&&(u[N.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),u.properties.columns={$ref:`${$}${r}`},u.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t),u.properties.quickVariantSelection.$ref=Si(N.DefinitionName.QuickVariantSelectionV4OP,t),u[N.SchemaTag.target]=a.namespace}o(QQ,"addTableDefinition");function qQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=qS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ba(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(qQ,"addFormCustomActionsOP");function zQ(e,t,n,i,r,a,s){let l=rc(t);[N.DefinitionName.ObjectPageResponsiveTableV4,N.DefinitionName.ObjectPageAnalyticalTableV4,N.DefinitionName.ObjectPageGridTableV4,N.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{QQ({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=Si(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Xa(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let g={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};xc(g,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),KQ(n,a,l,t,s),XQ(n,a,l,t,s)}o(zQ,"handleLineItem");function Iw(e,t,n,i,r,a,s){s&&Vy(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);return ua(e,l,rc(t)),Wa(e,l,rc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(u=>{let p=u.$ref.split("/").pop();return{$ref:Si(p,t)}}),zQ(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Iw,"handleSectionTable");function YQ(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:Si(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),ua(e,u,n),Wa(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=mm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=rc(n);bt(N.DefinitionName.CustomFormActionOP,p,r),qQ(r,t,p,g,s)}}o(YQ,"handleFormIdentification");function Cw(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);gl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=oc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(Cw,"handleHeaderFacet");function JQ(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=Ai(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:Si(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]=Am(l),v[N.SchemaTag.dataType]=oo(l),v.properties={},a++})}return r}o(JQ,"handleChartActions");function ZQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=Am(e),r[N.SchemaTag.dataType]=oc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=Si(N.DefinitionName.ObjectPageToolBarActions,t);let s=JQ(e,t,n,i);return{chart:r,chartActions:s}}o(ZQ,"handleChart");function Nw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&Vy(i,t,l);let p=Em(u,t),g=bt(l,p,n,!1);if(gl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=Am(e),g.properties.chart.$ref=Si(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=ZQ(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(Nw,"handleSectionChart");function eq(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${jb(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(eq,"getVisualizationKeyAndType");function tq(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(tq,"getTargetFromNavigation");function nq(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=eq(!!r,a,n),p=r?a:tq(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(nq,"getVisualizationProps");function Vy(e,t,n,i){e.properties[t]={$ref:Si(n,i||t)}}o(Vy,"addPropertyRef");function Lw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Lw,"getSectionPropertyRef");function iq(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=Lw(t,r);Vy(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let p=Iw(e,u,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,gl(e,p,t),delete p[N.SchemaTag.isViewNode]}o(iq,"addPVLineItemSection");function rq(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=Lw(t,r);Vy(i,l,s,u);let{parentChartRef:p}=Nw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ua(e,p,t),s0(e,p)):gl(e,p,t)}o(rq,"addPVChartSection");function oq(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){oe(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=nq(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?rq(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&iq(e,t,n,i,l,a,s))}o(oq,"handleSectionPresentationVariant");function aq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(aq,"containsCollectionFacet");function sq(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"}}};Js(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(sq,"createCustomSubSectionReference");function cq(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 I=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${I}`,v[N.SchemaTag.isViewNode]=!0,ba(e,t,i,b,A,p),po(e,A,I)}}o(cq,"applyCustomActionsToCustomSections");function YS(e,t,n,i,r,a,s){var m,v,A,b,I;let l=!1,u;a&&s?(l=!aq(a),u=sq(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},sD(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&qa(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={},cq(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(I=(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:I[s],j=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let U=g.oneOf[K];j[U.const]||(U.hidden=!0)}}}o(YS,"applyCustomSections");function lq(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)JS(a,e.facets,v,g,n,r,s,m);u&&YS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(lq,"handleCollection");function JS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${rc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{oq(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{lq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];Iw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{YQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{Cw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?Cw(u,n,i,r,p):a===N.SectionType.Section&&Nw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{pu(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(JS,"addSection");function fq(e,t,n){let i=Qg(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)JS(e,i,a,r,t,N.SectionType.Section,n);YS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(fq,"addSections");function uq(e,t,n,i){let r=Xg(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)JS(e,r,s,a,t,N.SectionType.HeaderSection,i);YS(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(uq,"addHeaderSections");function pq(e,t,n){let i=e.entityType;Tm(t,i),vm(t,i,e,GQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${xr.UIAnnotationTerms.HeaderFacets}`),uq(e,t,i,n)}o(pq,"addHeader");function Dp(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 oe(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 oe(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=jh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(pq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${xr.UIAnnotationTerms.Facets}`),Js(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{Aw(r,i,e,l.id)}catch(u){oe(e.logger,{severity:N.LogSeverity.Error,message:u})}}fq(e,r,l),ym(r,e,N.FioriElementsVersion.v4,WQ),Ow(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(Dp,"generateObjectPageSchemaV4");function ZS(e,t){return JSON.parse(JSON.stringify(t))}o(ZS,"generateFreestyleSchemaV4");var Qr=ne(le());function eP(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=kc(p,s,t,r),v={templateType:Qr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Dp(v,e,s,l)}o(eP,"generateObjectPageInterfaceV4");function wy(e,t,n,i,r,a,s){rn();let l=No(i,r),{entitySet:u,entityType:p}=kc(l,s,n,r),g={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Qr.TemplateType.ListReportObjectPageV4?Qr.v4.FE_TEMPLATE_V4_LIST_REPORT:Qr.v4.FE_TEMPLATE_V4_ALP;return rp(g,t,m,s)}o(wy,"generateListReportInterfaceV4");function tP(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return ZS(l,t)}o(tP,"generateFreestyleInterfaceV4");function nP(e,t,n,i,r,a,s){let l={};if(Js(a,Qr.Features.BuildingBlocks)){let u=No(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Mc(e,p,u,s):{}}return l}o(nP,"generateFPMCustomPageInterfaceV4");var Uc=require("@sap-ux/vocabularies-types/vocabularies/UI"),Vw=ne(le());var jc=ne(le());var Dw=new Map([[jc.PageTypeV2.ListReport,jc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[jc.PageTypeV2.ObjectPage,jc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Rw=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"),Fw=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"),dq=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"),_w={manifest:{path:o(()=>`sap.ui5/extends/extensions/${jc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Fw(n);i&&(t[i]={},Rw(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=dq(s,i);e[l]||(e[l]={}),Rw(r[s],e[l])}for(let s in e){let l=Fw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),jy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Uy=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),gq=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),zr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),$y=o((e,t,n)=>zr(e)+`/@${Uc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),By=o(e=>zr(e)+`/@${Uc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ss=o((e,t,n,i)=>zr(e)+`/@${Uc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),iP=o((e,t,n,i)=>By(e)+`/filterFields/${i}`,"getFilterFieldPath"),$i=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),pi=o((e,t,n,i,r)=>r?$i(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Hy=o((e,t,n,i,r)=>pi(e,t,n,i,r)+Vw.QUICKVARPATH,"getQuickVariantPath"),ir=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),di=o((e,t,n,i,r)=>r?ir(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Yr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Cr=o((e,t,n,i,r)=>r?Yr(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Bi=o((e,t,n,i)=>zr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>zr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>Uy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),Gy=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),yo=o((e,t,n,i)=>gq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Lt=o((e,t,n)=>zr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),lf=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ps=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Or=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),ff=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"),ky=class ky{};o(ky,"ApplicationV4"),h([Ut("settings")],ky.prototype,"settings",2);var My=ky,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")}}),x({since:"1.78.0"})],qr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({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(_w)],qr.prototype,"controllerExtensions",2);var cf=qr;var ve=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&&(yl(m,l,g,e,a,r),nm(u,l,v,s))}}}o(At,"importSettingsOfObject");var Wx={};Qs(Wx,{ALPChart:()=>sx,ALPTable:()=>Tf,ActionAfterExecutionConfiguration:()=>Ox,ActionAfterExecutionConfigurationFooter:()=>PP,ActionAfterExecutionConfigurationForm:()=>IP,ActionAfterExecutionConfigurationOP:()=>id,ActionAfterExecutionConfigurationObjectPageHeader:()=>kP,ActionAfterExecutionConfigurationToolBarLR:()=>kx,Actions:()=>_x,AdditionalSemanticObject:()=>xx,CommonHeaderFacetSettings:()=>Ds,CommonViewSettings:()=>vf,CustomActionPosition:()=>$x,CustomActionPositionOP:()=>Sx,CustomFilterField:()=>sP,CustomFilterFieldPosition:()=>aP,CustomFooterActionOP:()=>OP,CustomFooterActionPositionOP:()=>CP,CustomFormActionOP:()=>_P,CustomHeaderAction:()=>pP,CustomHeaderActionOP:()=>$P,CustomHeaderActionPosition:()=>Mp,CustomHeaderActionPositionOP:()=>UP,CustomSectionActionOP:()=>TP,CustomSectionActionPositionOP:()=>vP,CustomTableAction:()=>Bx,CustomTableActionOP:()=>Px,FilterBar:()=>rP,FlexSettings:()=>HP,FooterActionV4:()=>xP,FormAction:()=>NP,Header:()=>lP,HeaderActions:()=>cP,HeaderSections:()=>qP,LRChartView:()=>cx,LRTableView:()=>lx,MultiTableModeV4:()=>ux,ObjectPageAnalyticalTableV4:()=>Jp,ObjectPageCustomHeaderSectionFlexSettings:()=>dP,ObjectPageCustomHeaderSectionFragment:()=>gP,ObjectPageCustomSectionActions:()=>mP,ObjectPageCustomSectionFragment:()=>pf,ObjectPageCustomSubSectionFragment:()=>hP,ObjectPageFooter:()=>EP,ObjectPageFooterActions:()=>bP,ObjectPageForm:()=>RP,ObjectPageFormActions:()=>LP,ObjectPageGridTableV4:()=>Zp,ObjectPageHeader:()=>wP,ObjectPageHeaderAction:()=>jP,ObjectPageHeaderActions:()=>VP,ObjectPageHeaderSectionAddress:()=>QP,ObjectPageHeaderSectionChart:()=>WP,ObjectPageHeaderSectionContact:()=>XP,ObjectPageHeaderSectionDataPoint:()=>KP,ObjectPageHeaderSectionForm:()=>GP,ObjectPageLayout:()=>nx,ObjectPageResponsiveTableV4:()=>Yp,ObjectPageTable:()=>zp,ObjectPageTableColumn:()=>xf,ObjectPageTableColumnAction:()=>vx,ObjectPageTableRowCountable:()=>Sf,ObjectPageToolBarAction:()=>Ax,ObjectPageTreeTableV4:()=>ed,PersonalizationType:()=>rx,PersonalizationTypeOP:()=>hx,Position:()=>Lx,PositionOP:()=>Tx,QuickVariantSelectionV4:()=>ax,QuickVariantSelectionV4OP:()=>yx,RelatedApps:()=>Cx,Table:()=>px,TableColumn:()=>cv,TableColumnAction:()=>Ix,TableCreationModeOP:()=>mx,TableCustomColumn:()=>Fx,TableCustomColumnOP:()=>bx,TableSettings:()=>Yy,TableViewExtension:()=>fx,TableViewSettings:()=>Kp,ToolBar:()=>Vx,ToolBarAction:()=>jx,ViewCustomActionPosition:()=>Hx,ViewPersonalizationType:()=>ox,ViewPosition:()=>Rx,ViewTableColumn:()=>lv,ViewTableColumnAction:()=>Nx,ViewTableCustomAction:()=>Gx,ViewTableCustomColumn:()=>Dx,ViewToolBarAction:()=>Ux,VisualFilter:()=>oP,checkViewOrder:()=>dx,deleteCreationModeProperty:()=>Qp,deletePersonalizationProperty:()=>bo,exportCreationModeProperty:()=>Xp,exportPersonalization:()=>tv,exportPersonalizationProperty:()=>To});function mq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(mq,"exportVisualFilterValueList");var uf=class uf{};o(uf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],uf.prototype,"hideFilterBar",2),h([y({manifest:{path:By}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],uf.prototype,"initialLayout",2),h([y({manifest:{path:By}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],uf.prototype,"layout",2);var rP=uf,_p=class _p{};o(_p,"VisualFilter"),h([y({manifest:{path:iP}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],_p.prototype,"availability",2),h([y({manifest:{path:iP,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:mq,key:"visualFilter"}}),x({since:"1.93.0"})],_p.prototype,"visualFilterValueList",2);var oP=_p,Vp=class Vp{};o(Vp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"placement",2);var aP=Vp,xs=class xs{};o(xs,"CustomFilterField"),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"label",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"property",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"template",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"required",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"position",2);var sP=xs;var fP=class fP{};o(fP,"HeaderActions");var cP=fP,uP=class uP{};o(uP,"Header");var lP=uP;var wp=class wp{};o(wp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],wp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],wp.prototype,"placement",2);var Mp=wp,Cs=class Cs{};o(Cs,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:gi},generate:qn}),x({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:gi},generate:qn}),x({since:"1.84.0"})],Cs.prototype,"enabled",2);var pP=Cs;var Wy=class Wy{};o(Wy,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Or(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],Wy.prototype,"designtime",2);var dP=Wy,rr=class rr{};o(rr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Or(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],rr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Or(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],rr.prototype,"relativePosition",2),h([y({manifest:{path:Or},generate:ri}),x({since:"1.84.0"})],rr.prototype,"visible",2),h([y({manifest:{path:Or}}),x({since:"1.77.0"})],rr.prototype,"title",2),h([y({manifest:{path:Or}}),x({since:"1.77.0"})],rr.prototype,"subTitle",2),h([y({manifest:{path:Or,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],rr.prototype,"fragmentName",2),h([y({manifest:{path:Or,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],rr.prototype,"templateEdit",2),h([y({manifest:{path:Or}}),x({since:"1.81.0"})],rr.prototype,"stashed",2),h([y({manifest:{path:Or}}),x({since:"1.81.0"})],rr.prototype,"flexSettings",2),h([y({manifest:{path:Or}}),x({since:"1.81.0"})],rr.prototype,"requestGroupId",2),h([y({manifest:{path:Or,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],rr.prototype,"controls",2);var gP=rr;var yP=class yP{};o(yP,"ObjectPageCustomSectionActions");var mP=yP,Os=class Os{};o(Os,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>lf(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Os.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>lf(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Os.prototype,"relativePosition",2),h([y({manifest:{path:lf}}),x({since:"1.77.0"})],Os.prototype,"title",2),h([y({manifest:{path:lf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Os.prototype,"fragmentName",2),h([y({manifest:{path:lf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Os.prototype,"controls",2);var pf=Os,Is=class Is extends pf{};o(Is,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${ff.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Is.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${ff.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Is.prototype,"relativePosition",2),h([y({manifest:{path:ff}}),x({since:"1.77.0"})],Is.prototype,"title",2),h([y({manifest:{path:ff,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Is.prototype,"fragmentName",2),h([y({manifest:{path:ff,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Is.prototype,"controls",2);var hP=Is;var kp=class kp{};o(kp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ps(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],kp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ps(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],kp.prototype,"placement",2);var vP=kp,Ns=class Ns{};o(Ns,"CustomSectionActionOP"),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"text",2),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"position",2),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"press",2),h([y({manifest:{path:Ps},generate:ri}),x({since:"1.84.0"})],Ns.prototype,"visible",2),h([y({manifest:{path:Ps},generate:ri}),x({since:"1.84.0"})],Ns.prototype,"enabled",2);var TP=Ns;var AP=class AP{};o(AP,"ObjectPageFooterActions");var bP=AP,SP=class SP{};o(SP,"ObjectPageFooter");var EP=SP;var jp=class jp{};o(jp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],jp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/afterExecution","path")}})],jp.prototype,"enableAutoScroll",2);var PP=jp,Ky=class Ky{};o(Ky,"FooterActionV4"),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ky.prototype,"afterExecution",2);var xP=Ky,Up=class Up{};o(Up,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Up.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Up.prototype,"placement",2);var CP=Up,Ls=class Ls{};o(Ls,"CustomFooterActionOP"),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"text",2),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"position",2),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"press",2),h([y({manifest:{path:yo},generate:ri}),x({since:"1.84.0"})],Ls.prototype,"visible",2),h([y({manifest:{path:yo},generate:ri}),x({since:"1.84.0"})],Ls.prototype,"enabled",2);var OP=Ls;var $p=class $p{};o($p,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],$p.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],$p.prototype,"enableAutoScroll",2);var IP=$p,Xy=class Xy{};o(Xy,"FormAction"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Xy.prototype,"afterExecution",2);var NP=Xy,FP=class FP{};o(FP,"ObjectPageFormActions");var LP=FP,DP=class DP{};o(DP,"ObjectPageForm");var RP=DP;var Rs=class Rs{};o(Rs,"CustomFormActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"press",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Rs.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Rs.prototype,"enabled",2);var _P=Rs;var MP=class MP{};o(MP,"ObjectPageHeaderActions");var VP=MP,df=class df{};o(df,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],df.prototype,"editableHeaderContent",2),h([y({manifest:{path:Uy}}),x({since:"1.84.0"})],df.prototype,"visible",2),h([y({manifest:{path:Uy}}),x({since:"1.84.0"})],df.prototype,"anchorBarVisible",2);var wP=df;var Bp=class Bp{};o(Bp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Bp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],Bp.prototype,"enableAutoScroll",2);var kP=Bp,Qy=class Qy{};o(Qy,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qy.prototype,"afterExecution",2);var jP=Qy,BP=class BP extends Mp{};o(BP,"CustomHeaderActionPositionOP");var UP=BP,Fs=class Fs{};o(Fs,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"press",2),h([y({manifest:{path:gi},generate:ri}),x({since:"1.84.0"})],Fs.prototype,"visible",2),h([y({manifest:{path:gi},generate:ri}),x({since:"1.84.0"})],Fs.prototype,"enabled",2);var $P=Fs;var qy=class qy{};o(qy,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>$y(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],qy.prototype,"designtime",2);var HP=qy,Hp=class Hp{};o(Hp,"CommonHeaderFacetSettings"),h([y({manifest:{path:$y}}),x({since:"1.81.0"})],Hp.prototype,"stashed",2),h([y({manifest:{path:$y}}),x({since:"1.81.0"})],Hp.prototype,"flexSettings",2);var Ds=Hp,zP=class zP extends Ds{};o(zP,"ObjectPageHeaderSectionForm");var GP=zP,YP=class YP extends Ds{};o(YP,"ObjectPageHeaderSectionChart");var WP=YP,JP=class JP extends Ds{};o(JP,"ObjectPageHeaderSectionDataPoint");var KP=JP,ZP=class ZP extends Ds{};o(ZP,"ObjectPageHeaderSectionContact");var XP=ZP,ex=class ex extends Ds{};o(ex,"ObjectPageHeaderSectionAddress");var QP=ex,tx=class tx{};o(tx,"HeaderSections");var qP=tx;var zy=class zy{};o(zy,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],zy.prototype,"sectionLayout",2);var nx=zy;var nv=ne(le());var ix=ne(le());var hq=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=jy(e),l=hq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[ix.SchemaTag.key]===(a==null?void 0:a.key)||g[ix.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function yq(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(yq,"fillNewlyOrderedViews");function dx(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=yq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(dx,"checkViewOrder");function tv(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(tv,"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 gx(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(gx,"deleteView");function Xp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Xp,"exportCreationModeProperty");function Qp(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(Qp,"deleteCreationModeProperty");function ww(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(ww,"importPersonalization");function Mw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Mw,"determineIndexOfView");var gf=class gf{};o(gf,"PersonalizationType"),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"column",2),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"filter",2);var rx=gf,mf=class mf{};o(mf,"ViewPersonalizationType"),h([y({manifest:{path:$i,export:To,delete:bo}})],mf.prototype,"column",2),h([y({manifest:{path:$i,export:To,delete:bo}})],mf.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],mf.prototype,"filter",2);var ox=mf,hf=class hf{};o(hf,"QuickVariantSelectionV4"),h([y({manifest:{path:Hy}})],hf.prototype,"paths",2),h([y({manifest:{path:Hy}})],hf.prototype,"hideTableTitle",2),h([y({manifest:{path:Hy}})],hf.prototype,"showCounts",2);var ax=hf,or=class or{};o(or,"TableSettings"),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"type",2),h([y({manifest:{path:pi,import:ww,export:tv}}),x({since:"1.86.0"})],or.prototype,"personalization",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],or.prototype,"selectionMode",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],or.prototype,"selectAll",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],or.prototype,"selectionLimit",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],or.prototype,"enableExport",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],or.prototype,"quickVariantSelection",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],or.prototype,"condensedTableLayout",2),h([y({manifest:{path:pi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"hierarchyQualifier",2),h([y({manifest:{path:pi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:pi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"disableCopyToClipboard",2);var Yy=or,Jy=class Jy{};o(Jy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:gx}})],Jy.prototype,"annotationPath",2);var sx=Jy,$c=class $c{};o($c,"CommonViewSettings"),h([y({manifest:{path:vo,delete:Zs}})],$c.prototype,"key",2),h([y({manifest:{path:jy,import:Mw,export:o((t,n)=>{dx(t,n)},"export"),delete:gx}})],$c.prototype,"index",2),h([y({manifest:{path:vo,delete:Zs}})],$c.prototype,"annotationPath",2),h([y({manifest:{path:vo}})],$c.prototype,"entitySet",2);var vf=$c,ar=class ar extends vf{};o(ar,"TableViewSettings"),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],ar.prototype,"type",2),h([y({manifest:{path:$i,import:ww}}),x({since:"1.86.0"})],ar.prototype,"personalization",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],ar.prototype,"selectionMode",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],ar.prototype,"selectAll",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],ar.prototype,"selectionLimit",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ar.prototype,"enableExport",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],ar.prototype,"quickVariantSelection",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ar.prototype,"condensedTableLayout",2),h([y({manifest:{path:$i}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ar.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:$i}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ar.prototype,"hierarchyQualifier",2),h([y({manifest:{path:$i}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ar.prototype,"disableCopyToClipboard",2);var Kp=ar;function vq(e){return Kp}o(vq,"getTableViewSettings");var Gp=class Gp extends Kp{};o(Gp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Zs}})],Gp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Gp.prototype,"initialLoad",2);var Tf=Gp,Zy=class Zy extends vf{};o(Zy,"LRChartView"),h([y({manifest:{path:vo},generate:qn})],Zy.prototype,"visible",2);var cx=Zy,yf=class yf extends vq(vf){};o(yf,"LRTableView"),h([y({manifest:{path:vo}})],yf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:vo}})],yf.prototype,"entitySet",2),h([y({manifest:{path:vo},generate:qn})],yf.prototype,"visible",2);var lx=yf,_s=class _s{};o(_s,"TableViewExtension"),h([y({manifest:{path:vo}})],_s.prototype,"key",2),h([y({manifest:{path:jy,import:Mw,export:o((t,n)=>{dx(t,n)},"export"),delete:gx}})],_s.prototype,"index",2),h([y({manifest:{path:vo}})],_s.prototype,"label",2),h([y({manifest:{path:vo}})],_s.prototype,"template",2),h([y({manifest:{path:vo},generate:qn})],_s.prototype,"visible",2);var fx=_s,ev=class ev{};o(ev,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],ev.prototype,"showCounts",2);var ux=ev,Wp=class Wp extends Yy{};o(Wp,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Zs}})],Wp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Wp.prototype,"initialLoad",2);var px=Wp;var bf=class bf{};o(bf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Xp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Qp(t,r)},"delete")}})],bf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Xp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Qp(t,r)},"delete")}})],bf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Xp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Qp(t,r)},"delete")}})],bf.prototype,"inlineCreationRowsHiddenInEditMode",2);var mx=bf,Ef=class Ef{};o(Ef,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],Ef.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],Ef.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],Ef.prototype,"filter",2);var hx=Ef,Af=class Af{};o(Af,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+nv.QUICKVARPATH,"path")}})],Af.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+nv.QUICKVARPATH,"path")}})],Af.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+nv.QUICKVARPATH,"path")}})],Af.prototype,"showCounts",2);var yx=Af,mi=class mi{};o(mi,"ObjectPageTable"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"type",2),h([y({manifest:{path:Lt,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],mi.prototype,"creationMode",2),h([y({manifest:{path:Lt,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:tv}}),x({since:"1.86.0"})],mi.prototype,"personalization",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectionMode",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectAll",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectionLimit",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],mi.prototype,"enableExport",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"quickVariantSelection",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],mi.prototype,"condensedTableLayout",2),h([y({manifest:{path:Lt}}),x({since:"1.86.0"})],mi.prototype,"enableFullScreen",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"enablePaste",2),h([y({manifest:{path:Lt}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],mi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Lt}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Lt}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"disableCopyToClipboard",2);var zp=mi,qp=class qp extends zp{};o(qp,"ObjectPageTableRowCountable"),h([y({manifest:{path:Lt}}),x({since:"1.120.0"})],qp.prototype,"rowCountMode",2),h([y({manifest:{path:Lt}}),x({since:"1.120.0"})],qp.prototype,"rowCount",2);var Sf=qp,iv=class iv extends zp{};o(iv,"ObjectPageResponsiveTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],iv.prototype,"type",2);var Yp=iv,rv=class rv extends Sf{};o(rv,"ObjectPageAnalyticalTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],rv.prototype,"type",2);var Jp=rv,ov=class ov extends Sf{};o(ov,"ObjectPageGridTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],ov.prototype,"type",2);var Zp=ov,av=class av extends Sf{};o(av,"ObjectPageTreeTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],av.prototype,"type",2);var ed=av;var td=class td{};o(td,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],td.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}})],td.prototype,"enableAutoScroll",2);var id=td,Pf=class Pf{};o(Pf,"ObjectPageTableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Pf.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Pf.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pf.prototype,"widthIncludingColumnHeader",2);var xf=Pf,Ex=class Ex extends xf{};o(Ex,"ObjectPageTableColumnAction");var vx=Ex,nd=class nd{};o(nd,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"placement",2);var Tx=nd,Xo=class Xo{};o(Xo,"TableCustomColumnOP"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Xo.prototype,"properties",2);var bx=Xo;var sv=class sv{};o(sv,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],sv.prototype,"enableOnSelect",2);var Ax=sv,rd=class rd{};o(rd,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"placement",2);var Sx=rd,Ia=class Ia{};o(Ia,"CustomTableActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"press",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Ia.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Ia.prototype,"enabled",2);var Px=Ia;var Cf=class Cf{};o(Cf,"AdditionalSemanticObject"),h([y({manifest:{path:Gy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Cf.prototype,"allowedActions",2),h([y({manifest:{path:Gy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Cf.prototype,"unavailableActions",2),h([y({manifest:{path:Gy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Cf.prototype,"mapping",2);var xx=Cf,od=class od{};o(od,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],od.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],od.prototype,"additionalSemanticObjects",2);var Cx=od;var ad=class ad{};o(ad,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ad.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}})],ad.prototype,"enableAutoScroll",2);var Ox=ad,Of=class Of{};o(Of,"TableColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Of.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Of.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Of.prototype,"widthIncludingColumnHeader",2);var cv=Of,If=class If{};o(If,"ViewTableColumn"),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],If.prototype,"width",2),h([y({manifest:{path:ir}}),x({since:"1.85.0"})],If.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],If.prototype,"widthIncludingColumnHeader",2);var lv=If,fv=class fv extends cv{};o(fv,"TableColumnAction"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],fv.prototype,"afterExecution",2);var Ix=fv,uv=class uv extends lv{};o(uv,"ViewTableColumnAction"),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],uv.prototype,"afterExecution",2);var Nx=uv,sd=class sd{};o(sd,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],sd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],sd.prototype,"placement",2);var Lx=sd,cd=class cd{};o(cd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>ir(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"placement",2);var Rx=cd,Qo=class Qo{};o(Qo,"TableCustomColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"position",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"header",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"template",2),h([y({manifest:{path:di}}),x({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Qo.prototype,"properties",2);var Fx=Qo,qo=class qo{};o(qo,"ViewTableCustomColumn"),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],qo.prototype,"position",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],qo.prototype,"header",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qo.prototype,"width",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],qo.prototype,"template",2),h([y({manifest:{path:ir}}),x({since:"1.86.0"})],qo.prototype,"horizontalAlign",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],qo.prototype,"availability",2),h([y({manifest:{path:ir}}),x({since:"1.85.0"})],qo.prototype,"properties",2);var Dx=qo;var wx=class wx{};o(wx,"Actions");var _x=wx,Mx=class Mx{};o(Mx,"ToolBar");var Vx=Mx;var ld=class ld{};o(ld,"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")],ld.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}})],ld.prototype,"enableAutoScroll",2);var kx=ld,fd=class fd{};o(fd,"ToolBarAction"),h([y({manifest:{path:Cr}})],fd.prototype,"enableOnSelect",2),h([y({manifest:{path:Cr}})],fd.prototype,"afterExecution",2);var jx=fd,ud=class ud{};o(ud,"ViewToolBarAction"),h([y({manifest:{path:Yr}})],ud.prototype,"enableOnSelect",2),h([y({manifest:{path:Yr}})],ud.prototype,"afterExecution",2);var Ux=ud,pd=class pd{};o(pd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"placement",2);var $x=pd,Na=class Na{};o(Na,"CustomTableAction"),h([y({manifest:{path:Cr}}),x({since:"1.84.0"})],Na.prototype,"text",2),h([y({manifest:{path:Cr}}),x({since:"1.84.0"})],Na.prototype,"position",2),h([y({manifest:{path:Cr}}),x({since:"1.84.0"})],Na.prototype,"press",2),h([y({manifest:{path:Cr}}),x({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([y({manifest:{path:Cr},generate:qn}),x({since:"1.84.0"})],Na.prototype,"visible",2),h([y({manifest:{path:Cr},generate:qn}),x({since:"1.84.0"})],Na.prototype,"enabled",2);var Bx=Na,dd=class dd{};o(dd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"placement",2);var Hx=dd,La=class La{};o(La,"ViewTableCustomAction"),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"text",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"position",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"press",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"requiresSelection",2),h([y({manifest:{path:Yr},generate:qn}),x({since:"1.84.0"})],La.prototype,"visible",2),h([y({manifest:{path:Yr},generate:qn}),x({since:"1.84.0"})],La.prototype,"enabled",2);var Gx=La;var qx={};Qs(qx,{FreestylePage:()=>Xx,ListReport:()=>Ir,ObjectPage:()=>Eo});function Tq(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(Tq,"deleteAllALPViews");function bq(){}o(bq,"doNotExport");function Eq(){}o(Eq,"doNotImport");var Ir=class{};o(Ir,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:Eq,export:bq,delete:Tq}})],Ir.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({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([jr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Ir);var Kx=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")}}),x({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([jr({id:`${Kx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Kx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var Qx=class Qx{};o(Qx,"FreestylePage");var Xx=Qx;var Ra=ne(le());var Aq={ALPTableView:Tf},Sq={ALPTableView:Tf},Pq={[Ra.DefinitionName.ObjectPageResponsiveTableV4]:Yp,[Ra.DefinitionName.ObjectPageAnalyticalTableV4]:Jp,[Ra.DefinitionName.ObjectPageGridTableV4]:Zp,[Ra.DefinitionName.ObjectPageTreeTableV4]:ed,TableColumn:xf,ObjectPageCustomSectionView:pf,ActionAfterExecutionConfiguration:id},xq={[Ra.PageTypeV4.AnalyticalListPage]:Aq,[Ra.PageTypeV4.ListReport]:Sq,[Ra.PageTypeV4.ObjectPage]:Pq},zx=class zx extends $l{constructor(){super(Wx,qx,xq)}};o(zx,"MetadataInstanceFactoryV4");var Fa=zx;var Yx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Jx(e,t,n,i,r,a,s){var g,m,v,A,b,I;let l=t.jsonSchema.definitions,u=a&&a!==`@${Yx.UIAnnotationTerms.LineItem}`?a:ve.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 U=s||a;At(e.columns[F],t.manifest,l[K],r,[F,U],U,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(I=(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:I.views;(!F||F.paths.length<1)&&oe(t.logger,{severity:ve.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(Jx,"transferColumns");function Cq(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ve.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(Cq,"importVisualFilters");function Oq(e,t,n,i,r,a=ve.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ve.DefinitionName.LineItems,`${ve.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${Yx.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ve.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(Oq,"importActions");function Zx(e,t,n,i,r,a=ve.DefinitionName.LineItems,s){let l=n.createInstance(i,ve.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[ve.DefinitionName.ToolBarLR],r,[]),Oq(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o(Zx,"transferToolBar");function kw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ve.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(kw,"determineTargetAnnotationOfView");function Iq(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ve.DefinitionName.ALPChart);let s=a[ve.DefinitionName.ALPChart],l=s[ve.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[ve.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ve.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[ve.DefinitionName.ViewChartToolBar],r,[]);let u=a[ve.DefinitionName.ALPTable][ve.SchemaTag.annotationPath];if(u){let p=a[ve.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ve.DefinitionName.ALPTable);Zx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ve.SchemaTag.key],m]),Jx(g,e,n,i,r,void 0,m)}}o(Iq,"importALPViews");function Nq(e){let t;return e.indexOf(ve.DefinitionName.LRTableView)>-1?t=ve.DefinitionName.LRTableView:e.indexOf(ve.DefinitionName.LRChartView)>-1?t=ve.DefinitionName.LRChartView:e===ve.DefinitionName.TableViewExtension&&(t=ve.DefinitionName.TableViewExtension),t}o(Nq,"getViewTypeByDefinition");function Lq(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ve.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[ve.DefinitionName.MultiTableModeV4],r,[]);let l=s[ve.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ve.SchemaTag.propertyIndex]-g[1][ve.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=Nq(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=kw(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],b]),m===ve.DefinitionName.LRTableView){let I=`${ve.DefinitionName.LineItemsOfView}::${p[0]}`;Zx(e,v,n,i,r,I,b),Jx(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(Lq,"importLRViews");function Rq(e,t,n,i,r){let a=ve.DefinitionName.HeaderActions,s=ve.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(ve.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(Rq,"transferHeaderActions");function Fq(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ve.DefinitionName.SelectionFields,ve.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!==$+ve.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ve.PageTypeV4.ListReport,ve.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(Fq,"importCustomFilterFields");function Dq(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ve.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.Header],r,[]),Rq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ve.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.FilterBar],r,[]),Cq(e,t.filterBar,n,i,r),Fq(e,t.filterBar,n,r),a===ve.SchemaType.ListReport){let s=ve.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,ve.DefinitionName.Table);let p=kw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),Zx(e,t,n,i,r,u),Jx(t.table,e,n,i,r,u,p),Lq(e,t,n,i,r)}else a===ve.SchemaType.AnalyticalListPage&&Iq(e,t,n,i,r)}o(Dq,"addSettings");function Bc(e,t){if(rn(),!e.jsonSchema)return;if(!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){oe(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let n=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let i=new Fa,r=i.createPageInstance(ve.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Pb(s);if("name"in s&&(l===ve.PageTypeV4.ListReport||l===ve.PageTypeV4.AnalyticalListPage)){Dq(e,r,i,ve.PageTypeV4.ListReport,a,t);break}}return r}o(Bc,"createListReportConfig");var ye=ne(le()),Hc=require("@sap-ux/vocabularies-types/vocabularies/UI");function _q(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(_q,"isBoolean");function Vq(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(Vq,"isNumber");function wq(e,t){let n=e.toString();return _q(n,t)?n==="true":Vq(n,t)?parseFloat(n):e}o(wq,"convertValue");function Mq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=wq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Mq,"importProperty");function jw(e,t,n){let i,r=af(e.file,!1,n);if(r){let a=Fy(r);i={},wc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Mq)}return i}o(jw,"convertXmlFileToConfig");function pv(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=jw(s,i,e.logger)),l}o(pv,"createCustomPageConfig");function gd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=sf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=Oc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=jw(g,A,s)}return m}o(gd,"createCustomFragmentConfig");function eC(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(eC,"getManifestId");function md(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(md,"getDefinitionId");function kq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[md(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ye.DefinitionName.CustomColumnOP)>-1?s=ye.DefinitionName.CustomColumnOP:s=ye.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ye.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(kq,"fillTableColumnsInConfig");function Bw(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(ye.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ye.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(Bw,"fillSectionActionsInConfig");function jq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${md(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),I=e.jsonSchema.definitions[b];if(I.annotationType===Hc.UIAnnotationTypes.DataFieldForAction||I.description==="Custom Action"){let F=yn(I.$ref)||b.split("<")[0];i[n].form.actions[v]=r.createInstance(ye.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(jq,"fillFormActionsInConfig");function Uq(e){return new Map([["AnalyticalTable",ye.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ye.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ye.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ye.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ye.DefinitionName.ObjectPageResponsiveTableV4}o(Uq,"getTableDefinitionNameByType");function Uw(e,t,n,i,r,a){var u;let s=a||eC(i,!1,Hc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){let{tableSettings:p={}}=l,g=p.type,m=Uq(g);n[i]={},n[i].table=r.createInstance(ye.PageTypeV4.ObjectPage,m);let v=`${m}<${a?md(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[v],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ToolBar,{actions:{}});let A=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${md(s)}>`];Bw(e,A,i,n,r,s),kq(e,l,n,i,r,s)}}o(Uw,"fillTableInConfig");function $q(e,t,n,i,r){var l;let a=eC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageForm,{actions:{}}),jq(e,s,i,n,r,a))}o($q,"fillFormInConfig");function Bq(e,t,n,i,r,a){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.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=gd(e,s.fragmentName);s.controls=u}n[i]=s}o(Bq,"fillCustomSubSectionInConfig");function Hw(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(Hc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith($+ye.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];A=eC(b,!0,Hc.UIAnnotationTerms.LineItem),Uw(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith($+ye.DefinitionName.ObjectPageSectionTableV4)?Uw(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Hw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith($+ye.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${Hc.UIAnnotationTerms.FieldGroup}::`))?$q(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith($+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&Bq(e,v,i,m,r,a)}}o(Hw,"fillSectionsInConfig");function Hq(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(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageCustomSectionActions}<${md(l)}>`];Bw(e,m,l,p,i,l)}let g=u.template;if(g){let m=gd(e,g);p.controls=m}n.sections[l]=p}}o(Hq,"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(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=gd(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=gd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(Gq,"fillCustomHeaderSectionsInConfig");function Wq(e,t,n,i,r){var s,l;let a=e.definitions[ye.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(ye.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ye.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FACETTITLEPREFIX)[1]))}}}o(Wq,"fillHeaderFacets");function Kq(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(ye.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(Kq,"importActionSettingsOfReference");function $w(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&&Kq(g,e,n,u,p,i,r)}}}o($w,"fillHeaderFooterActions");function Xq(e,t,n){var a,s;let i=n.createPageInstance(ye.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ye.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[ye.DefinitionName.Sections]&&(i.sections={},Hw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),Hq(e,r,i,n),Wq(e.jsonSchema,i,n,e.manifest,e.routingId),Gq(e,r,i,n),$w(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),$w(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}o(Xq,"fillObjectPageConfig");function dv(e){if(rn(),!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){oe(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let t=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let i=new Fa;return Xq(e,n,i)}o(dv,"createObjectPageConfigV4");var Ge=ne(le());var tC=[],gv={};function Qq(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(Qq,"routesSorter");function nC(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(nC,"resolveTarget");function qq(e){let t={};e=e.concat().sort(Qq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=nC(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(qq,"populateAssociations");function zq(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:(oe(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(zq,"determinePageType");function Yq(e){let t=e.target.viewId||e.target.id,n=_t(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=dv(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=pv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Bc(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=Bc(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=lu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=Bc(r,s)}}}o(Yq,"convertSettingsToConfig");function Jq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");tC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");tC.push(t[t.length-1])}}o(Jq,"updateUnhandledControllers");function Zq(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(Zq,"setVariantManagmentAndNavigation");function ez(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}=kc(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(ez,"setEntitySetEntityTypeContextPath");function tz(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(tz,"evaluateCustomPageSettings");function nz(e,t,n,i){let r=e.targets[t],a=zq(r,i.logger,t),s={pageType:a};if(ez(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),gv[t]&&gv[t].indexOf(".")!==-1){let p=gv[t].split(".");s.navigationProperty=p[p.length-1]}tz(r,s,a),Zq(r,s),Jq(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}};Yq(u)}o(nz,"getSinglePageAndConfig");function Gw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return oe(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}gv=qq(n.routes||[]);for(let i in n.targets)nz(n,i,t,e);return t}o(Gw,"getPagesAndConfigs");function Ww(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 nC(t?t.target:e.routes[0].target)}else return}o(Ww,"getHome");function Kw(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(Kw,"getSettings");function Lf(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(Lf,"getPages");var iC=class iC extends Ya{constructor(t){rn();let n=new cf,i=_t(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Ww(t.manifest[Ge.ManifestSection.ui5].routing),Gw(t),{...Kw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=tC}};o(iC,"V4AppProvider");var Nf=iC;var Xw=require("fs"),Gc=require("path"),Qw=ne(le()),hd=ne(le());var qw=o((e,t,n=__dirname)=>{let i;switch(t){case hd.SchemaType.Application:{i=`${hd.SchemaType.Application}${e.toUpperCase()}.json`;break}case hd.SchemaType.FPMCustomPage:{i=`${hd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Gc.join)(n,"schemas",e,i);if(n.endsWith((0,Gc.join)("specification","packages","specification")))return(0,Gc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Gc.join)("src","specification")))return(0,Gc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Gc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),iz=o(async e=>new Promise((t,n)=>{(0,Xw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),mv=o(async(e,t)=>{try{let n=qw(e||Qw.FioriElementsVersion.v4,t,__dirname);return await iz(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function rz(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=_t(r);n[a.filename]=await mv(t,r)}return n}o(rz,"getGenericSchemas");function Yw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(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(Yw,"getAnnotationsForUi");function yd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(yd,"getEntitySetByEntitySetName");function oz(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(oz,"resolveNavigationProperty");function kc(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}=oz(r,e):oe(i,{severity:ue.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&oe(i,{severity:ue.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(kc,"getEntityTypeEntitySetFromContextPath");function zw(e,t,n){let i=tp(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=yd(a,e.serviceAVT);s||oe(e.logger,{severity:ue.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(ue.SchemaType.ObjectPage);n[l.filename]=vd(e,t[u.filename])}}o(zw,"generateObjectPageSchemasV2");function az(e,t,n){var l,u;let i=Lf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Lf(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}=kc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let b=_t(ue.SchemaType.ListReport,p),I=_t(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=lu(a[p])),n[b.filename]=rp(e,t[I.filename],a[p].name,m)}}o(az,"generateListReportSchemasV4");function sz(e,t,n){var r;let i=tp(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=yd(s,e.serviceAVT);let l=_t(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(ue.SchemaType.ListReport);t[l.filename]=Td(e,n[u.filename])}}o(sz,"generateAppSchemaV2LR");function cz(e,t,n){var a,s;let i=Lf(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}=kc(r,p,u);e.entitySet=m,e.entityType=g;let v=_t(ue.SchemaType.ObjectPage,l),A=_t(ue.SchemaType.ObjectPage),b=_t(ue.SchemaType.FPMCustomPage);n[v.filename]=Dp(e,t[A.filename],p,t[b.filename])}}o(cz,"generateObjectPageSchemasV4");function lz(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)sz(e,r,t),zw(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=tp(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=yd(u,e.serviceAVT);let p=_t(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(ue.SchemaType.AnalyticalListPage);r[p.filename]=bd(e,t[g.filename])}zw(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=_t(ue.SchemaType.OverviewPage),l=_t(ue.SchemaType.OverviewPage);r[s.filename]=Ed(t[l.filename],e.manifest)}return{...t,...r}}o(lz,"generateAppSchemasV2");function fz(e,t,n){if(!Js(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Lf(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=_t(ue.SchemaType.FPMCustomPage,void 0,l),p=_t(ue.SchemaType.FPMCustomPage);n[u.filename]=Mc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(fz,"generateCustomPageSchemasV4");function uz(e,t,n){let i={};return n&&(az(e,t,i),cz(e,t,i),fz(e,t,i)),{...t,...i}}o(uz,"generateAppSchemasV4");async function Jw(e,t,n){let i=await rz(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?uz(e,i,t):lz(e,i,t,n)}o(Jw,"generateAppSchemas");function pz(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new Vh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Nf(e);break;case ue.TemplateType.OverviewPageV2:t=new kh(e);break;default:t=new Nf(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(pz,"importConfigs");function Zw(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(Zw,"getFileList");async function rC(e){var b,I;rn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new du().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let u=Nb(t),p=No(n,i),g=Yw(p),m=Lb(t,u,i),A=await Jw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Zw(A)}o(rC,"importProjectSchema");async function oC(e){var K,U;rn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new du().doesUi5VersionFitDistTags((U=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:U.minUI5Version,i);let p=Nb(t),g=a0(t),m=No(n,i),v=Lb(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Yw(m),I=await Jw(A,b,v),j=pz({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Zw(I,j)}o(oC,"importProjectSchemaAndConfig");var dz=["header","sections","footer"];function gz(e,t,n,i){t.properties[n][ae.SchemaTag.artifactType]=ae.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=ae.ControlType.Section;break;case"ObjectPageSubSectionV2":r=ae.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=ae.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=ae.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=ae.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=ae.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][ae.SchemaTag.controlType]=r)}o(gz,"addFlexChangeForSection");function mz(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}=hm(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][ae.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][ae.SchemaTag.actionType]=ae.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][ae.SchemaTag.keys]=[{name:ae.SchemaKeyName.action,value:s}],u&&(t.definitions[g][ae.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(mz,"addHeaderActionCallBackV2");function hz(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=da(r).split("::").splice(1).join("::"),s=Ai(r,e),l=dt(`${ae.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[ae.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(hz,"addFooterActionCallBackV2");function yz(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=`${ae.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${ae.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${ae.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=Ec(t[ae.ManifestSection.generic].pages,n,m);return Tl(e,v,A,t,l,p,g,a.ID),p}o(yz,"ensureCustomColumnDefinitionExists");function Sd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&gz(e,t,"visible",n)}o(Sd,"addAppSchemaDefinition");function vz(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(vz,"addSectionReference");function Ad(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][ae.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=ae.FACETTITLEPREFIX+n.ID,i.definitions[r][ae.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=ae.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}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}>`,Xa(n.entityType,i,`QuickVariant<${t}>`)}o(Ad,"addTableDefinition");function Tz(e,t,n,i,r,a){if(i.base!==ae.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];Sd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[ae.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[ae.SchemaTag.annotationPath]=i.annotationPath,ua(i,u,t),Wa(i,u,t),Ad("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Ad("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Ad("ObjectPageGridTable",t,i,n),Ad("ObjectPageTreeTable",t,i,n),Ad("ObjectPageAnalyticalTable",t,i,n);let p,g=G0(i.entityType,e.serviceAVT);g&&(p=yz(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===ae.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&vl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(Tz,"handleLineItem");function bz(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Sd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[ae.SchemaTag.isViewNode]=!0}o(bz,"handleSubSection");function Ez(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];Sd(e,a,r,"ObjectPageSectionChartV2")}o(Ez,"handleSectionChart");function eM(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];Sd(e,s,r,a||"CommonHeaderFacetSettings"),s[ae.SchemaTag.annotationPath]=n.annotationPath,s[ae.SchemaTag.isViewNode]=!0,s[ae.SchemaTag.dataType]=oc(n==null?void 0:n.target)}o(eM,"handleHeaderFacet");function Az(e,t,n){let i=e.definitions[t],r=i[ae.SchemaTag.dataType]=oc(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(Az,"addDataPointHeaderFacetDataType");function Sz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return Sd(e,a,r,"ObjectPageSectionFormV2"),a[ae.SchemaTag.annotationPath]=n.annotationPath,a[ae.SchemaTag.isViewNode]=!0,a}o(Sz,"handleFormSection");function Pz(e,t,n){let i=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ae.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ae.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ae.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ae.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ae.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Pz,"getSectionType");function xz(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(xz,"getReferenceKey");function nM(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Pz(l.base,a,s),p=xz(l,n,u),g=`${u}<${p}>`;switch(vz(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,bz(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)nM(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Tz(e,p,r,l,t,u),El(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Ez(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=Sz(r,g,l,p,u);mm(ae.SectionType.Section,l,m,r,ae.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{pu(l,p,i,r,ae.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{pu(l,p,i,r,ae.SectionType.Section,ae.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{eM(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{eM(r,g,l,p,u),Az(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(nM,"addSection");function tM(e,t,n,i,r,a=!1){if(e)for(let s in t)nM(i,t,s,n,r,!1,a)}o(tM,"addSectionsFromFacets");function iM(e,t,n){var g,m,v,A,b,I;let i=t.definitions[ae.DefinitionName.Sections];i[ae.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[ae.DefinitionName.HeaderSections];if(r[ae.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Qg((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),s=Xg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,ae.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 j=n[F];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(tM(l,a,i,e,t),tM(u,s,r,e,t,!0)):iM(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(iM,"addSections");function Cz(e,t,n){Tm(e,n),vm(e,n,t,mz,void 0,!0)}o(Cz,"addHeader");function Oz(e,t,n,i){let r=c0(t,n,i,void 0,!0);r&&Q0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Oz,"addRelatedFacetKeysType");function vd(e,t){var s;rn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[ae.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[ae.ManifestSection.generic].pages;return a?(Cz(n,e,r),n.definitions[ae.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},iM(e,n,a),Oz(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[ae.SchemaTag.isViewNode]=!0):delete n.properties[ae.PropertyName.sections]),ym(n,e,ae.FioriElementsVersion.v2,hz,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,dz),n):(oe(e.logger,{severity:ae.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ae.MANIFESTPATH,range:[ae.ManifestSection.generic]}}),n)}o(vd,"generateObjectPageSchemaV2");var hv=ne(le());var Iz=ne(le());function yv(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&oe(n,{severity:hv.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(yv,"hasPropertyTypeError");var Gme=Symbol("Property is suppressed without explanation");var ei=ne(le());var Rf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Lz=["filterBar","table","footer"],Rz=ei.UIVOCABULARYALPHADOT.substring(1);function aC(e,t,n,i){Xa(e,n,"QuickVariant"),W0(n,"QuickVariantX",t),K0(i,n,"QuickVariantX")}o(aC,"addEnumForVariantPaths");function Fz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Rf.UIAnnotationTerms.SelectionPresentationVariant,Rf.UIAnnotationTerms.SelectionVariant,Rf.UIAnnotationTerms.PresentationVariant];uu(e,r,i)}o(Fz,"addEnumForFilterBarAnnotationPath");function Dz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Rf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Rf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(Rz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(oe(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(Dz,"getPresentationVariantForLineItem");function _z(e,t,n){if(yv(t,"annotationPath",n))return;let i=Dz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=fu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||oe(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(_z,"getLineItemAnnotation");function Td(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ei.DefinitionName.LineItems},r=$+ei.DefinitionName.ToolBarLR;wb.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}=um(e);if(s){let u=[],p=Ml(e.manifest[ei.ManifestSection.generic].pages,u);bl(n);let g=_z(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=hr(a.fullyQualifiedName,g.term,g.qualifier);wb.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=v})}vl(!1,n,g,a);let m=s.SelectionFields;if(lm(n,m,a),El(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],k0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return oe(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;Tl(n,a,p,e.manifest,e.fragments),aC(a,e.entitySet,n,e.serviceAVT),Fz(a,n,ei.DefinitionName.ListReportFilterBar),X0(a,n,ei.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,Lz),n}o(Td,"generateListReportSchemaV2");var en=ne(le());var Vz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function wz(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(yv(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let F=I+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return oe(n,{severity:en.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(I){return p=p||fu("LineItem",I),g=g||fu("Chart",I),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 I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(I);oe(n,{severity:en.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(wz,"getLineItemAndChartAnnotation");function Mz(e,t){let n=e.definitions[en.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[en.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(Mz,"addChart");function bd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[en.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[en.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[en.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,M0(n.definitions.TableColumnExtensionTypeV2.enum,[en.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=um(e);if(s){bl(n);let l=[],u=Ul(e.manifest[en.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=wz(u,s,e.logger);p&&R0.forEach(v=>{n.definitions[v][en.SchemaTag.annotationPath]=hr(a.fullyQualifiedName,p.term,p.qualifier)}),vl(!1,n,p,a),g&&Mz(n,g);let m=s.SelectionFields;if(lm(n,m,a),El(n,a),!u)return oe(e.logger,{severity:en.LogSeverity.Error,message:q.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;Tl(n,a,u,e.manifest,e.fragments),aC(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,Vz),n}o(bd,"generateAnalyticalListReportSchemaV2");var rM=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function kz(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(kz,"getCardDefinitionNames");function jz(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"},ga(a,s.CardModel);let l=kz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(jz,"addModelsEnum");function Uz(e,t){let n=e.properties;for(let i in rM){let r=rM[i],a=r.key;n[a]&&(n[a].messages=[{text:hl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(Uz,"markDeprecatedProperties");function oM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},Uz(n,t),jz(n,t),n}o(oM,"generateOverviewPageSchemaV2");var Vs=ne(le());function sC(e,t,n,i,r,a){rn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Vs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=yd(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:Vs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(sC,"prepareGenerationV2");function cC(e,t,n,i,r,a){let s=sC(n,a,i,r,t,Vs.TemplateType.ListReportObjectPageV2);return vd(s,e)}o(cC,"generateObjectPageInterfaceV2");function lC(e,t,n,i,r,a){let s=sC(n,a,i,r,t,Vs.TemplateType.ListReportObjectPageV2);return Td(s,e)}o(lC,"generateListReportInterfaceV2");function fC(e,t,n,i,r,a){let s=sC(n,a,i,r,t,Vs.TemplateType.AnalyticalListPageV2);return bd(s,e)}o(fC,"generateAnalyticalListPageInterfaceV2");function Ed(e,t){return oM(e,t)}o(Ed,"generateOVPInterfaceV2");var we=ne(le());var Pd=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 aM(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(aM,"getClassesForSingleSection");function sM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],aM(n,i,t),sM(n,t)}}o(sM,"getSubsectionClasses");function $z(e,t,n){let i;for(let r in e.sections)i=t.sections[r],aM(i,r,n),sM(i,n)}o($z,"getExportClassesForSections");function Bz(e,t){let n=Ml(t.manifest[we.ManifestSection.generic].pages,e);if(!n){oe(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){oe(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(Bz,"findV2Page");function uC(e,t){let n=tm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(uC,"calculateBaseId");function cM(e,t,n=!1){let i=Pd(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=Bz(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:uC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(p,u,[],[],e.jsonSchema)}return i}o(cM,"exportListReportPage");function lM(e,t,n=!1){let i=e.page.config,r=Pd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Ul(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:uC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(p,u,[],[],e.jsonSchema)}return r}o(lM,"exportAnalyticalListPage");function fM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Pd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Ec(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return oe(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&&$z(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:uC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(g,p,[],[],e.jsonSchema)}}return a}o(fM,"exportObjectPage");var uM=o(e=>{let t=Pd();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&&np(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Hz=o((e,t,n)=>{var s;let i=Pd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Pm,e);r.settings=Object.assign(new Ja,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=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ka(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Hb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function pM(e,t){if(e[we.SchemaType.ListReport])return cM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return fM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return uM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Hz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return lM(e[we.SchemaType.AnalyticalListPage],t)}o(pM,"exportPageV2");function pC(e,t,n=!1){if(e[we.SchemaType.ListReport])return cM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return fM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return uM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return lM(e[we.SchemaType.AnalyticalListPage],t,n)}o(pC,"exportConfigEntityByPathV2");var Ff=ne(le()),gM=require("@sap-ux/vocabularies-types/vocabularies/UI");function dM(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(dM,"updateDependencyLib");function vv(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(vv,"extractLastIdPart");function mM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:Ff.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Ff.PropertyName.sections),s=a>-1?vv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${gM.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:Ff.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return dC(g),!0}o(mM,"createNewCustomColumn");var Da=ne(le());var yM=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),hM=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function Gz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(Gz,"initializeRouting");function Wz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(Wz,"setTargetOptions");function Kz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Da.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(Kz,"calculateQueryPattern");function vM(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){vM(e,t,n,s);return}}}o(vM,"fillNavigationParts");function Xz(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(Xz,"fillParentKeys");function Qz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(Wz(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=[];vM(p,a,t,r,l==null?void 0:l.contextPath);let g=Xz(e.routePattern);u=Kz(p,l,g)}i.routes.push(yM(u,s.route,s.route))}}}o(Qz,"handlePageNavigation");function qz(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(qz,"removeDeletedPages");function zz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=hM({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=hM({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(zz,"transferEntitySetandContextPath");function Yz(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(Yz,"updateRouteLayout");function Jz(e,t,n,i){var r;return e.pageType&&![Da.PageTypeV4.CustomPage,Da.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!==Da.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Da.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(Jz,"fillTarget");function TM(e,t,n){var r,a;let i=Gz(n[Da.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(yM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Jz(u,l,s,t),zz(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={}),Qz(u,t,l,i,s),Yz(i,s,u),i.targets[s]=l}return qz(i,t),i}o(TM,"transformRoutingV4");var Oi=ne(le());var bM=[Oi.FlexibleColumnLayoutAggregations.BeginColumnPages,Oi.FlexibleColumnLayoutAggregations.MidColumnPages,Oi.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:bM[r]?s.controlAggregation=bM[r]:s.controlAggregation=Oi.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"),Zz=o((e,t)=>{e.routing.config.routerClass=Oi.v4.FIORI_FCL_ROUTER_CLASS,EM(e,t,t.home);let n={viewName:Oi.FIORI_FCL_ROOT_VIEW_NAME,type:Oi.ViewTypes.XML,async:!0,id:Oi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,dM(e,Oi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),eY=o(e=>{var t;e.rootView&&e.rootView.viewName===Oi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Oi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),AM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Zz(e,t):eY(e)},"updateFcl");var ie=ne(le()),xd=require("@sap-ux/vocabularies-types/vocabularies/UI");var SM=ne(zs()),Tv=ne(le());function tY(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(tY,"isExportValueEquals");function nY(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)===Tv.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(nY,"deleteProperty");function PM(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),wc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},PM)}else tY((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]&&(nY(e,i),l=!0);return l}o(PM,"exportProperty");function bv(e,t,n,i,r,a){let s=af(e.file,!1,a);if(s){let l=Fy(s);if(wc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},PM)){let p=(0,SM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:Tv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(bv,"getExtensionExportResult");var xM=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&&bv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),CM=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=Oc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=sf(t),A={...i.definitions[m],definitions:i.definitions};bv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var OM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],iY=[...OM,"views","initialLoad","template"],Ev=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function rY(e,t,n){var s,l,u,p;let i=`@${xd.UIAnnotationTerms.LineItem}`,r=`@${xd.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(rY,"determineTargetAnnotationOfTable");function oY(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(oY,"determineTargetAnnotationOfChart");function aY(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(aY,"determineTargetAnnotationBasedOnParentView");function sY(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}=aY(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(sY,"determineTargetAnnotationOfView");function cY(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(cY,"determineTargetAnnotationOfHeaderSections");function lY(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=vv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(lY,"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}=rY(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=oY(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=lY(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=cY(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=sY(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(fY,"determineTargetAnnotation");function uY(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(uY,"determineKeyForSyncRule");function pY(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(pY,"createNewObjectInManifest");function IM(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&&(pY(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(IM,"transferPropertyToManifest");function dY(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&&OM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&iY.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 Ka(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(dY,"deleteFromManifest");function gY(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=uY(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&&dl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=dY(e,A,n.transferParameters,v,m,u,l):r=IM(A,n.propertyDefinition,i)}return r}o(gY,"exportManifestChange");function mY(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);CM(e.transferParameters,r,n.configObject)}else i.manifest&&gY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(mY,"evaluateExportRule");function hY(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&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,mC(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(hY,"transferSubObject");function yY(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(yY,"createALPTableView");function vY(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)||xd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(vY,"createALPChartView");function TY(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=`@${xd.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(TY,"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 EY(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=mM(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 vY(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return yY(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=TY(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(EY,"createNewElement");function AY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(AY,"isDefinitionTraversable");function gC(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=em(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}=EY(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||AY(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;hY(e,s,r,p,m)}}o(gC,"transferSortedListEntry");function SY(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]],gC(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,gC(e,i,r),a=!0)}),e.index++})}return a}o(SY,"transferConfigEntriesWithAnyOfDefinitions");function PY(e,t,n,i){let r=Rb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(PY,"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 CY(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=SY(n,p,i,r,a)}return s}o(CY,"checkIfAnyOfDefinition");function mC(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=CY(u,e,l,a,n,i),g=xY(a.properties);u!=null&&u.$ref&&PY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!dl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,gC(l,n,i,p),m[1].$ref&&s++)})}o(mC,"transferManifestEntriesAndFlexChange");function NM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(NM,"getClassesForSingleSection");function LM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],NM(n,i,t),LM(n,t)}}o(LM,"getSubsectionClasses");function OY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],NM(e,r,n),LM(i,n)}o(OY,"getExportClassesForSections");function RM(e,t){let n=tm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(RM,"calculateBaseId");var FM=o((e,t,n=!1)=>{var l;let i=Ev(e.manifest),r=new Fa,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&OY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:RM(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 mC(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),IY=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=Ev(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((I=g.toolBar)!=null&&I.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:RM(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 mC(A,n,[],[],[],u),l},"exportListPage"),hC=o((e,t,n,i=!1)=>{let r=new Fa,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return IY(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),DM=o((e,t,n=!1)=>hC(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),NY=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=xb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];IM(u,p,{}),!l&&Object.keys(s).length&&o0(r,t,s)},"applyExportRule"),LY=o((e,t,n)=>{var a;let i=Ev(t),r=Object.assign(new My,e);r.settings=Object.assign(new cf,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)NY(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],Ka(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=TM(e.home,e.pages,i.manifest),AM(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),_M=o((e,t)=>{if(e[ie.SchemaType.ListReport])return hC(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return FM(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return LY(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return DM(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return xM(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),RY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=Ev(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&bv(l,s,i.config,t,"view",a),s},"exportCustomPage"),yC=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return hC(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return FM(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return DM(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return RY(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ht=require("@sap-ux/fe-fpm-writer");var FY=new Map([[de.CustomExtensionType.CustomPage,Ht.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ht.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ht.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ht.generateObjectPage],[de.CustomExtensionType.ListReport,Ht.generateListReport],[de.CustomExtensionType.CustomAction,Ht.generateCustomAction],[de.CustomExtensionType.CustomView,Ht.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ht.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ht.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ht.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ht.generateCustomHeaderSection]]),DY={api:Ht.PromptsAPI,types:Ht.PromptsType};function _Y(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=lC(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=cC(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=Ed(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=fC(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=wy(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=eP(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=wy(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=tP(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=nP(i,r,a,s,u,e.featureToggles,l)}}return t}o(_Y,"generateSchema");function VY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=pM(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=_M(i,n)}return t}o(VY,"exportConfig");function wY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=pC(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=yC(i,n)}return t}o(wY,"exportConfigEntityByPath");function MY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=pC(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=yC(i,n,!0)}return t}o(MY,"deleteConfigEntityByPath");function kY(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Rh(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=_h(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=Mh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=Fh(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Bc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=dv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Bc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=pv(n[de.SchemaType.FPMCustomPage]))}return t}o(kY,"importConfig");async function jY(e){return oC(e)}o(jY,"importProject");async function UY(e){return rC(e)}o(UY,"importProjectSchema");function $Y(){return{version:"21",fpmWriter:"29",moduleVersion:e1.version}}o($Y,"getApiVersion");function dC(e){let t=FY.get(e.customExtension);if(t&&typeof t=="function")return(0,Ht.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(dC,"generateCustomExtension");var Jr=require("path"),ws=require("fs");var Df=o(async e=>new Promise((t,n)=>{(0,ws.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),BY=o(async e=>JSON.parse(await Df(e)),"readJSON"),vC=o(async e=>new Promise((t,n)=>{(0,ws.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),HY=o(async e=>new Promise(t=>{(0,ws.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),wM=o(async e=>new Promise(t=>{(0,ws.exists)(e,n=>{t(n)})}),"resourceExists"),GY=o(async e=>BY((0,Jr.join)(e,"manifest.json")),"getManifest"),MM=o(async e=>{let t=[],n=(0,Jr.join)(e,"changes");if(!await wM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await vC(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Df((0,Jr.join)(n,a)));return t},"getChanges"),VM=o(async(e,t="fragments")=>{let n=[],i=(0,Jr.join)(e,"ext",t);if(!await wM(i))return n;let r=await vC(i);for(let a of r){let s=(0,Jr.join)(i,a),l=await Df(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),WY=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,Jr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Df(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,Jr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await Df(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,Jr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Df(b)})}}return n},"getAnnotations"),KY=o(async e=>{let t=(0,Jr.basename)(e),n=(0,Jr.join)(e,"webapp"),i=await GY(n),r=await WY(i,n),a=await MM(n),s=await VM(n),l=await VM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");qs(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});
|
|
295
295
|
/*! Bundled license information:
|
|
296
296
|
|
|
297
297
|
sax/lib/sax.js:
|