@uipath/rules-tool 1.206.0-preview.303 → 1.207.0-preview.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/DmnFactory-2Z66XPBB-dcse77vg.js +10 -0
  2. package/dist/DmnModelTypes-QISEK3CY-vth5tgqd.js +8 -0
  3. package/dist/KieDmnMarshaller-KLYKOHUQ-jae862c0.js +8 -0
  4. package/dist/THIRD-PARTY-NOTICES.md +6 -6
  5. package/dist/{business-rules-zfzwr08c.js → business-rules-4b4d9pw6.js} +4 -4
  6. package/dist/{constants-1sdwfz26.js → constants-yt6m7vkn.js} +12 -12
  7. package/dist/{first-party-service-ej32b6j2.js → first-party-service-r63v6skt.js} +1 -1
  8. package/dist/hitPolicyResult-2NPUZW2E-rddfkhb2.js +14 -0
  9. package/dist/{index-y5yffb2s.js → index-189nh3zq.js} +642 -513
  10. package/dist/{index-88sps467.js → index-g955264n.js} +7 -5
  11. package/dist/index-jm0j1yn2.js +212 -0
  12. package/dist/{index-s9wmt93c.js → index-thn9n1n9.js} +1 -1
  13. package/dist/index-xvy3d6qz.js +8 -0
  14. package/dist/index.js +2 -2
  15. package/dist/{rule-catalog-780050xk.js → rule-catalog-0zntgf3s.js} +34 -10
  16. package/dist/rules-command-error-5jq3z0ny.js +15 -0
  17. package/dist/{rules-debug-service-gjmn59w4.js → rules-debug-service-cfaqvnep.js} +16 -9
  18. package/dist/{rules-init-service-najk4r7p.js → rules-init-service-vhd0gzmd.js} +7 -7
  19. package/dist/{rules-refresh-service-x3gfnfqt.js → rules-refresh-service-r7fpbbfv.js} +3 -3
  20. package/dist/{rules-validate-service-e47hgykv.js → rules-validate-service-jrw7c1q9.js} +8 -10
  21. package/dist/{solution-definition-helper-trxp0zbj.js → solution-definition-helper-s5v427j0.js} +1 -1
  22. package/dist/{tool-zs98h1p2.js → tool-0r1ykkjf.js} +12 -5
  23. package/dist/{tool-yfaf9b8c.js → tool-19fj7ema.js} +36 -9
  24. package/dist/{tool-sjp6fvze.js → tool-2cxm18e8.js} +2 -2
  25. package/dist/tool-2grmcreg.js +117 -0
  26. package/dist/{tool-b475et36.js → tool-46g75ed0.js} +3 -3
  27. package/dist/{tool-syavphgt.js → tool-5sgkktdb.js} +287 -139
  28. package/dist/{tool-7ekab7v3.js → tool-a1wk2tqc.js} +28 -26
  29. package/dist/{tool-jzdt6z77.js → tool-c0peefw8.js} +7 -6
  30. package/dist/tool-e83bfqmj.js +192 -0
  31. package/dist/{tool-3755q59j.js → tool-fsmgxvqa.js} +189 -15
  32. package/dist/tool-fv5xtqv5.js +736 -0
  33. package/dist/{tool-vqm4apm6.js → tool-jykscmfk.js} +206 -203
  34. package/dist/{tool-0tbve332.js → tool-kmzhfjw8.js} +64 -10
  35. package/dist/tool-q02dmnzm.js +74 -0
  36. package/dist/{tool-93hqhaj3.js → tool-q3jw2emw.js} +100 -96
  37. package/dist/tool.js +2 -2
  38. package/package.json +2 -2
  39. package/dist/DmnFactory-L7MABUC6-q2sr3grz.js +0 -10
  40. package/dist/DmnModelTypes-ATR7FVKZ-h8srwcxk.js +0 -8
  41. package/dist/KieDmnMarshaller-LGE63WDG-nfkpv8f4.js +0 -8
  42. package/dist/hitPolicyResult-CGCR73CW-jz89f1aa.js +0 -12
  43. package/dist/index-egzwtc07.js +0 -19
  44. package/dist/index-z4kt2kt6.js +0 -8
  45. package/dist/index-zeszs1ra.js +0 -184
  46. package/dist/rules-command-error-2x1vm0wt.js +0 -13
  47. package/dist/tool-2nmqvfmt.js +0 -26
  48. package/dist/tool-89e90qrm.js +0 -777
  49. package/dist/tool-m59a481n.js +0 -49
  50. package/dist/tool-sbtf80ft.js +0 -218
@@ -2,58 +2,66 @@ import {
2
2
  trackVariables,
3
3
  parser,
4
4
  c,
5
- oe,
6
5
  ae,
6
+ le,
7
7
  b,
8
- me,
8
+ ue,
9
9
  h,
10
- xe,
11
- J,
12
- ee,
13
- _e,
10
+ Te,
11
+ ye,
12
+ Z,
14
13
  te,
15
- ne
16
- } from "./tool-vqm4apm6.js";
14
+ Ce,
15
+ ne,
16
+ re
17
+ } from "./tool-jykscmfk.js";
17
18
  import {
18
- bs
19
- } from "./tool-93hqhaj3.js";
19
+ Cs
20
+ } from "./tool-q3jw2emw.js";
20
21
  import {
21
- l
22
- } from "./tool-2nmqvfmt.js";
22
+ be,
23
+ ui,
24
+ ri,
25
+ Eo
26
+ } from "./tool-fv5xtqv5.js";
23
27
  import {
24
- fe,
28
+ S,
29
+ v,
30
+ b2,
25
31
  w,
26
- g,
27
- $,
28
- At,
29
- Ui
30
- } from "./tool-89e90qrm.js";
31
- import {
32
- f,
33
- m3,
32
+ R,
33
+ L,
34
34
  O,
35
- C,
36
- p,
37
- T,
38
- g2,
39
- x,
40
- u,
35
+ _,
36
+ f,
37
+ M,
38
+ V,
39
+ k
40
+ } from "./tool-q02dmnzm.js";
41
+ import {
41
42
  E2,
42
- A,
43
- S
44
- } from "./tool-m59a481n.js";
43
+ y,
44
+ N2,
45
+ I
46
+ } from "./tool-2grmcreg.js";
45
47
  import {
48
+ t,
46
49
  e,
47
50
  r,
48
- R2,
49
- z,
50
- B,
51
- U,
52
- K,
51
+ o,
52
+ d,
53
+ x,
53
54
  Q,
54
- G,
55
- J2
56
- } from "./tool-sbtf80ft.js";
55
+ q,
56
+ H2,
57
+ J,
58
+ Z2,
59
+ ne2,
60
+ se
61
+ } from "./tool-e83bfqmj.js";
62
+
63
+ // ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-5AXWADYO.js
64
+ var e2 = { add_input_column: "Add input column", add_output_column: "Add output column", add_rule: "Add rule", aggregation_count: "Count", aggregation_count_hint: "Counts the distinct values among the matches.", aggregation_label: "Aggregation", aggregation_list_output_hint: "Can't aggregate a list output.", aggregation_max: "Maximum", aggregation_max_hint: "Returns the largest matched output.", aggregation_min: "Minimum", aggregation_min_hint: "Returns the smallest matched output.", aggregation_none: "All", aggregation_none_hint: "Returns the matches as a list.", aggregation_numeric_only_hint: "Needs a number output.", aggregation_sum: "Sum", aggregation_sum_hint: "Adds the matched outputs together.", annotation_placeholder: "Name this rule…", apply_changes: "Apply changes", argument_dialog_cancel: "Cancel", argument_dialog_direction_in: "In", argument_dialog_direction_label: "Direction", argument_dialog_error_invalid: "Use a letter or underscore, then letters, numbers and underscores, and not a FEEL keyword.", argument_dialog_error_taken: "A variable with this name already exists", argument_dialog_item_type_label: "Item type", argument_dialog_name_label: "Name", argument_dialog_save: "Save", argument_dialog_title: "Add input variable", argument_dialog_type_label: "Type", band_annotation: "Annotation", band_column_count_one: "{{count}} column", band_column_count_other: "{{count}} columns", band_inputs: "Inputs", band_outputs: "Outputs", bottom_panel_collapse: "Collapse panel", bottom_panel_expand: "Expand panel", bottom_panel_maximize: "Maximize panel", bottom_panel_restore: "Restore panel", cell_aria: "{{column}}, rule {{index}}", clipboard_copy_failed: "Copy failed — the browser blocked clipboard access", column_kind_input: "Input", column_kind_output: "Output", column_moved: "Column moved from position {{from}} to {{to}}", column_panel_allowed_values: "Allowed values", column_panel_allowed_values_example: "e.g. {{example}}", column_panel_allowed_values_hint: "Separate values with commas, and write each one as the example shows.", column_panel_allowed_values_inherited_note: "Taking these from the data type: {{values}}. Type here to replace them for this column.", column_panel_allowed_values_mode_expression: "FEEL expression", column_panel_allowed_values_mode_inherited: "From data type", column_panel_allowed_values_mode_list: "List of values", column_panel_allowed_values_mode_none: "No restriction", column_panel_allowed_values_mode_regex: "Regex pattern", column_panel_expression: "Input expression", column_panel_expression_clear: "Clear value", column_panel_expression_insert: "Insert", column_panel_expression_insert_aria: "Insert variable", column_panel_expression_more_aria: "Input expression options", column_panel_expression_picker_add_argument: "Add input variable", column_panel_expression_placeholder: "e.g. invoice.countryCode", column_panel_item_type: "Item type", column_panel_label: "Label", column_panel_output_name: "Output name", column_panel_output_name_path_hint: "Read at {{path}} — a single output is the decision's whole result", column_panel_title: "Column properties", column_panel_type: "Data type", column_panel_type_help_aria: "Help for data type", column_panel_type_input_info: "Changing this data type does not change the type of the input argument bound to this column", column_rule_name: "Rule name", context_menu_aria: "Table actions", convert_to_graph: "Convert to decision graph", decision_table_aria: "Decision table", decision_table_properties_title: "Decision table properties", default_project_name: "Business rule", delete_column: "Delete column", delete_column_confirm_action: "Delete column", delete_column_confirm_body: "{{label}} has values in one or more rules. Deleting it removes the column and every cell in it.", delete_column_confirm_cancel: "Cancel", delete_column_confirm_title: "Delete this column?", delete_column_requires_output: "A decision table must have at least one output column.", delete_rule: "Delete rule", delete_rule_aria: "Delete rule {{index}}", drag_column_title: "Drag to reorder column", drag_row_title: "Drag to reorder rule", drd_add_decision: "Add decision", drd_add_element: "Add element", drd_add_input_data: "Add input data", drd_add_knowledge_model: "Add knowledge model", drd_add_knowledge_source: "Add knowledge source", drd_add_text_annotation: "Add text annotation", drd_annotation_edit_aria: "Edit annotation", drd_back_to_diagram: "Back to diagram", drd_category_title: "Decision requirements", drd_decision_unsupported: "This decision can't be opened in the decision table editor.", drd_delete_element: "Delete", drd_element_decision: "Decision", drd_element_input_data: "Input data", drd_element_knowledge_model: "Knowledge model", drd_element_knowledge_source: "Knowledge source", drd_element_text_annotation: "Text annotation", drd_logic_confirm_action: "Replace", drd_logic_confirm_cancel: "Cancel", drd_logic_confirm_dependents: "These decisions read part of this decision's result and will stop resolving: {{decisions}}.", drd_logic_confirm_description: "The current logic will be discarded and replaced with an empty {{kind}}. This cannot be undone.", drd_logic_confirm_title: "Replace this decision's logic?", drd_logic_decision_table: "Decision table", drd_logic_literal_expression: "Literal expression", drd_logic_none: "Not set", drd_logic_unsupported: "Unsupported expression", drd_menu_copy: "Copy", drd_menu_cut: "Cut", drd_menu_hide_grid: "Hide background grid", drd_menu_paste: "Paste", drd_menu_show_grid: "Show background grid", drd_menu_tidy_up: "Tidy up nodes", drd_menu_zoom_to_fit: "Zoom to fit", drd_organize: "Organize", drd_properties_description: "Description", drd_properties_empty: "Select an element on the diagram to see its properties.", drd_properties_identifier: "Identifier", drd_properties_identifier_hint: "What expressions use to reach this element. It stays the same when you rename.", drd_properties_identifier_rename: "Rename identifier", drd_properties_kind: "Type", drd_properties_logic: "Logic", drd_properties_logic_hint: "How this decision works out its answer.", drd_properties_name: "Name", drd_properties_title: "Properties", drd_rename_identifier_body: "The identifier is what expressions use to reach this element. Renaming it updates every expression that reads it.", drd_rename_identifier_cancel: "Cancel", drd_rename_identifier_confirm: "Rename", drd_rename_identifier_error_invalid: "Use a letter or underscore, then letters, numbers and underscores, and not a FEEL keyword.", drd_rename_identifier_error_taken: "Another element already uses this identifier.", drd_rename_identifier_impact_one: "{{count}} decision's table already reads this identifier and will be updated.", drd_rename_identifier_impact_other: "{{count}} decisions' tables already read this identifier and will be updated.", drd_rename_identifier_label: "New identifier", drd_rename_identifier_title: "Rename identifier", drd_run_no_match: "No rule matched", drd_run_output: "{{name}}: {{value}}", drd_toolbox_picked_up: "{{item}} picked up. Click the diagram to place it, or press Escape to cancel.", drd_toolbox_placed: "{{item}} placed.", drd_toolbox_title: "Add to diagram", drd_zoom_in: "Zoom in", drd_zoom_out: "Zoom out", drd_zoom_to_fit: "Zoom to fit", empty_state_description: "Create a decision table to start authoring rules.", empty_state_new_project: "Create decision table", empty_state_title: "This business rule is empty", evaluate_tab: "Evaluate", execution_condition_false: "False", execution_condition_true: "True", execution_condition_value: "Evaluated against {{value}}", execution_rule_not_evaluated: "Not evaluated", execution_rule_not_reached: "Not evaluated — rule {{index}} already matched ({{hitPolicy}} hit policy)", executions_actions_menu_aria: "Debug run actions", executions_cancelled_description: "This run was stopped before it finished evaluating.", executions_cancelled_title: "Run stopped", executions_clear: "Clear debug runs", executions_clear_confirm_action: "Clear", executions_clear_confirm_cancel: "Cancel", executions_clear_confirm_description: "Every finished run leaves the list. A run still evaluating stays.", executions_clear_confirm_title: "Clear debug runs?", executions_empty_description: "Run debug from the toolbar to evaluate this rule.", executions_empty_title: "No debug runs yet", executions_failed_copied: "Copied", executions_failed_copy: "Copy", executions_failed_details: "Error details", executions_failed_no_message: "No error message was returned.", executions_failed_title: "Run failed", executions_header_title: "Debug runs", executions_list_aria: "Debug runs", executions_no_trace_description: "This run finished without recording a trace.", executions_no_trace_title: "No trace recorded", executions_preparing: "Preparing the rule…", executions_retry: "Retry", executions_run_label: "Run #{{sequence}}", executions_running: "Evaluating…", executions_status_cancelled: "Stopped", executions_status_failed: "Failed", executions_status_preparing: "Preparing", executions_status_running: "Evaluating", executions_status_succeeded: "Succeeded", executions_tab: "Executions", executions_trace_empty_description: "No spans are stored for this run.", executions_trace_empty_title: "Trace not available", executions_trace_loading: "Loading trace…", executions_trace_unreadable_title: "Could not read the trace", feel_type_array: "Array", feel_type_array_of: "Array of {{type}}", feel_type_boolean: "Boolean", feel_type_date: "Date", feel_type_date_hint: "Write a date as {{example}}", feel_type_date_time: "Date-time", feel_type_date_time_hint: "Write a date-time as {{example}}", feel_type_day_time_duration: "Day and time duration", feel_type_day_time_duration_meaning: "30 days, 4 hours", feel_type_duration_hint: "Write an ISO 8601 duration like {{example}} ({{meaning}})", feel_type_number: "Number", feel_type_object: "Object", feel_type_string: "String", feel_type_time: "Time", feel_type_time_hint: "Write a time as {{example}}. The time zone after @ is optional.", feel_type_year_month_duration: "Year and month duration", feel_type_year_month_duration_meaning: "2 years, 6 months", formula_bar_input_aria: "Selected cell value", formula_bar_no_selection: "No cell selected", formula_bar_placeholder: "Enter a value for this cell", formula_bar_rule: "Rule {{index}}", hit_policy_any: "Any", hit_policy_any_hint: "Any number may match, but they must all give the same result.", hit_policy_code_title: "Shown in the table's corner as {{code}}", hit_policy_collect: "Collect", hit_policy_collect_aggregated: "Collect and total", hit_policy_collect_aggregated_hint: "Combines every match into one value: a sum, minimum, maximum or count.", hit_policy_first: "First", hit_policy_first_hint: "Stops at the first matching rule, in table order.", hit_policy_group_multiple: "Several results", hit_policy_group_single: "One result", hit_policy_output_order: "Output order", hit_policy_output_order_hint: "Returns every match, ordered by the outputs' allowed values.", hit_policy_priority: "Priority", hit_policy_priority_hint: "Matches the highest-ranked result, prioritized by the outputs' allowed values.", hit_policy_rule_order: "Rule order", hit_policy_rule_order_hint: "Returns every match, in the order the rules appear.", hit_policy_unique: "Unique", hit_policy_unique_hint: "Exactly one rule may match. Overlaps are errors.", hit_policy_value: "Hit policy: {{policy}}", input_cell_any_placeholder: "any", input_column_default: "Input {{index}}", insert_rule_here: "Insert row here", literal_expression_editor_label: "Decision expression", literal_expression_editor_readonly_label: "Decision expression, read only", literal_expression_placeholder: 'Write a FEEL expression, for example: if age > 60 then "high" else "low"', literal_expression_prettify: "Prettify", literal_expression_result_type: "Result type", literal_expression_result_type_none: "Not set", loading_document: "Loading the business rule…", menu_clear_column: "Clear column", menu_clear_contents: "Clear contents", menu_clear_rule: "Clear rule", menu_column_properties: "Column properties…", menu_copy: "Copy", menu_cut: "Cut", menu_duplicate_column: "Duplicate column", menu_duplicate_rule: "Duplicate rule", menu_edit_cell: "Edit", menu_insert_column_left: "Insert column left", menu_insert_column_right: "Insert column right", menu_insert_rule_above: "Insert rule above", menu_insert_rule_below: "Insert rule below", menu_move_down: "Move down", menu_move_left: "Move left", menu_move_right: "Move right", menu_move_up: "Move up", menu_paste: "Paste", menu_paste_insert_rules: "Paste and insert rules", menu_rename_annotation: "Rename annotation column", menu_rename_column: "Rename", output_column_default: "Output {{index}}", paste_clamped: "Pasted block trimmed to fit: dropped {{dropped}}", paste_clamped_and: "{{rows}} and {{columns}}", paste_clamped_columns_one: "{{count}} column", paste_clamped_columns_other: "{{count}} columns", paste_clamped_rows_one: "{{count}} row", paste_clamped_rows_other: "{{count}} rows", paste_hint: "Press Ctrl+V in the table to paste — the browser blocked reading the clipboard from the menu", promote_failed: "This rule couldn't be opened as a decision graph. It is unchanged and still saved as a decision table.", properties_tab: "Properties", rename_column_aria: "Column name", reset_column_width: "Double-click or press Enter to reset width", resize_column_aria: "Resize {{label}} column. Use arrow keys to adjust, Enter to reset.", resize_properties_panel_aria: "Resize properties panel", rule_moved: "Rule moved from position {{from}} to {{to}}", rule_number_aria: "Rule {{index}}", rule_properties_title: "Rule properties", rule_toolbar_debug: "Run debug", rule_toolbar_debug_busy: "Debug run in progress", rule_toolbar_debug_unavailable: "Debug is unavailable right now", rule_toolbar_evaluations_soon: "Evaluations coming soon", save_failed: "Your latest changes couldn't be saved. They will be retried on your next edit — keep this tab open.", sentence_and: "{{first}} and {{second}}", sentence_condition_at_least: "{{input}} is at least {{value}}", sentence_condition_at_most: "{{input}} is at most {{value}}", sentence_condition_between: "{{input}} is between {{low}} and {{high}}", sentence_condition_between_exclusive: "{{input}} is greater than {{low}} and less than {{high}}", sentence_condition_between_high_exclusive: "{{input}} is at least {{low}} and less than {{high}}", sentence_condition_between_low_exclusive: "{{input}} is greater than {{low}} and at most {{high}}", sentence_condition_equals: "{{input}} is {{value}}", sentence_condition_expression: "{{input}} matches {{value}}", sentence_condition_greater_than: "{{input}} is greater than {{value}}", sentence_condition_less_than: "{{input}} is less than {{value}}", sentence_condition_none_of: "{{input}} is none of {{values}}", sentence_condition_not: "{{input}} is not {{value}}", sentence_condition_one_of: "{{input}} is one of {{values}}", sentence_list: "{{first}}, {{second}}", sentence_outcome: "{{output}} is {{value}}", sentence_outcome_list: "{{first}} · {{second}}", sentence_rule_always: "in every case", sentence_rule_when: "when {{conditions}}", sentence_rule_when_all: "when all of these are true:", source_view_aria_label: "DMN source", source_view_notice: "Showing DMN source — this rule can't be opened in an editor yet. Edits here are saved exactly as written.", source_view_reason_invalid_xml: "Its XML isn't well-formed.", source_view_reason_lossy_xml: "It carries XML comments or processing instructions that the decision table editor can't keep.", source_view_reason_migration_failed: "It's a DMN 1.1 file that couldn't be migrated.", source_view_reason_unsafe_xml: "It declares a DOCTYPE, which this editor can't process.", source_view_reason_unsupported_profile: "It's outside what the decision table editor can open.", source_view_reason_unsupported_version: "Its DMN version isn't supported.", source_view_save_failed: "Your latest changes couldn't be saved. Apply again to retry.", table_diagnostics_hint_one: "{{count}} issue with this decision — open properties to fix it", table_diagnostics_hint_other: "{{count}} issues with this decision — open properties to fix them", table_rename_aria: "Business rule name", tests_add: "Add test", tests_band_expected: "Expected outputs", tests_band_input: "Inputs", tests_banner_list_items_one: "[{{count}} item]", tests_banner_list_items_other: "[{{count}} items]", tests_col_name: "Test name", tests_col_result: "Result", tests_column_field_of_single_value: `This column reads a property of "{{name}}", which holds a single value, so it takes no test value. Enter "{{name}}" itself in the test's properties.`, tests_column_list_bound: `This column reads a field of every item in a list, so it takes no test value. Enter the whole list "{{name}}" in the test's properties.`, tests_column_not_fillable: "This column's expression isn't a single variable, so it takes no test value.", tests_debug_matched: "matched Rule {{rules}}", tests_debug_no_match: "no rule matched", tests_debug_rules_changed: "matched rules are no longer in the table", tests_debug_trace_unavailable: "the rule engine didn't report which rule fired", tests_debugging: "Debugging", tests_default_name: "Test {{index}}", tests_delete: "Delete test", tests_drag_row_title: "Drag to reorder test", tests_empty_description: "Add a test to validate this rule.", tests_empty_title: "No tests yet", tests_error_missing_result: "The rule engine returned no result for this test.", tests_error_unrecognized_output_shape: "The rule engine returned an output shape we don't recognize (keys: {{keys}}).", tests_exit_debug: "Exit debug", tests_expected_received: "Expected {{expected}}, received {{received}}", tests_field_root_not_object: `"{{name}}" holds a value that isn't a JSON object, so its fields can't be filled here. Fix the value in the test's properties.`, tests_list_value_invalid: "Enter a JSON array of the item type, such as {{example}}", tests_load_failed_description: "Reopen the file to try again.", tests_load_failed_title: "Tests couldn't be loaded", tests_loading: "Loading tests…", tests_menu_duplicate: "Duplicate test", tests_menu_insert_above: "Insert test above", tests_menu_insert_below: "Insert test below", tests_name_placeholder: "Name this test", tests_no_match_description: 'No tests match "{{query}}"', tests_no_match_title: "No matching tests", tests_object_value_invalid: "Enter a JSON object, such as {{example}}", tests_passing: "{{passing}}/{{total}} passing", tests_paste_skipped_not_object_one: "{{count}} cell was left as it is: its argument holds a value that isn't a JSON object.", tests_paste_skipped_not_object_other: "{{count}} cells were left as they are: their argument holds a value that isn't a JSON object.", tests_paste_skipped_one: "{{count}} cell was left as it is — its column shows an expression, not a value.", tests_paste_skipped_other: "{{count}} cells were left as they are — their columns show expressions, not values.", tests_props_expected: "Expected outputs", tests_props_inputs: "Inputs", tests_props_result: "Result", tests_props_title: "Test data", tests_received: "received: {{value}}", tests_result_error: "Error", tests_result_fail: "Fail", tests_result_pass: "Pass", tests_result_running: "Running", tests_run: "Run test", tests_run_all: "Run all", tests_save_failed: "Your test changes couldn't be saved. They will be retried on your next edit — keep this tab open.", tests_search_aria: "Search tests", tests_search_placeholder: "Search tests...", tests_title: "Tests", tests_update_expected: "Update expected outputs with current outputs", validation_aggregation_result_type: "{{aggregation}} doesn't return {{typeRef}}, the type the decision declares", validation_allowed_value_unquoted: "Quote {{name}} to use it as text", validation_boolean_column_value: "{{value}} is not allowed in a boolean column — use true, false or null", validation_collect_aggregation_type: "{{aggregation}} aggregation requires a number output, not {{typeRef}}", validation_column_type_mismatch: '"{{name}}" is declared as {{declared}}, but this column is typed {{column}}', validation_column_type_mismatch_duration: '"{{name}}" is a string. Use duration({{name}}) to read it in this duration column.', validation_dangling_requirement: "This decision requires an input or decision that no longer exists", validation_decision_name_invalid: '"{{name}}" is not a valid decision identifier. Rename it with the identifier field in the properties panel: use a letter or underscore, then letters, numbers and underscores, and not a FEEL keyword.', validation_decision_name_missing: "This decision has no name", validation_document_namespace_missing: "This rule is missing the namespace the engine needs to run it. Saving any change in the designer adds one; in Source view, add a namespace attribute to its definitions element.", validation_document_unreadable: "This file could not be read as a DMN decision table", validation_duplicate_input_data_name: '"{{name}}" is used by more than one input', validation_duplicate_output_name: 'Output name "{{name}}" is used by more than one column', validation_duplicate_rule: "This rule has the same inputs as another rule", validation_duplicate_rule_any_conflict: "This rule has the same inputs as another rule but different outputs, which this hit policy doesn't allow", validation_duplicate_rule_unique: "This rule has the same inputs as another rule, which this hit policy doesn't allow", validation_feel_lint: "{{message}}", validation_feel_single_quote: `FEEL strings use double quotes. Write "text" instead of 'text'.`, validation_feel_syntax: "{{message}}", validation_field_of_list_item: `Each item of "{{parent}}" is a single {{type}} value, so it has no field "{{name}}". Change the expression, or make the list's items Objects.`, validation_field_of_single_value: '"{{parent}}" holds a single {{type}} value, so it has no field "{{name}}". Change the expression, or make "{{parent}}" an Object.', validation_input_data_name_invalid: '"{{name}}" is not a valid input name', validation_input_data_name_missing: "This input has no name", validation_input_data_shadows_decision: `"{{name}}" is already the name of another decision's result. Delete this input, or rename it.`, validation_input_expression_missing: "This input column has no expression", validation_item_component_duplicate_name: '"{{type}}" has more than one field named "{{field}}". Rename one of them.', validation_item_component_empty: '"{{field}}" in "{{type}}" has no fields or item type yet, so it accepts any value. Add a field or choose a type.', validation_item_component_name_invalid: '"{{field}}" in "{{type}}" is not a valid field name. Rename it to a valid FEEL name.', validation_item_definition_cycle: '"{{type}}" is defined in terms of itself. Point it at a built-in type or a type with fields.', validation_item_definition_duplicate_name: '"{{type}}" names more than one type. Rename one of them.', validation_item_definition_empty: '"{{type}}" has no fields or item type yet, so it accepts any value. Add a field or choose a type.', validation_item_definition_simple_and_structured: '"{{type}}" has both a base type and fields. Keep one of them.', validation_list_result_type: "This hit policy returns a list, but the decision declares {{typeRef}}. Editing the table changes the result type to a list.", validation_literal_expression_empty: "This decision has no expression, so it cannot be evaluated.", validation_literal_expression_type_missing: "Set a result type so callers know what this decision answers with.", validation_missing_requirement: `"{{name}}" is used here, but the file doesn't link it as an input. Change anything in the rule to add the link`, validation_no_rules: "This table has no rules", validation_output_name_invalid: '"{{name}}" is not a valid output name', validation_output_name_missing: "This output column has no name — every output in a multi-output table must be named", validation_output_value_not_allowed: "{{value}} is not one of this output's allowed values", validation_output_value_unchecked_one: "A value that isn't a plain literal can't be checked against this output's allowed values; if it falls outside them, the decision fails", validation_output_value_unchecked_other: "{{count}} values that aren't plain literals can't be checked against this output's allowed values; if one falls outside them, the decision fails", validation_range_endpoint_types: "Both ends of a range must be the same type", validation_range_not_ordered: "A {{columnType}} column has no order, so it cannot be given a range", validation_ranked_output_values_missing: "This hit policy ranks matches by allowed values; add them to at least one output", validation_ranked_output_values_single: "This hit policy ranks matches by the order of allowed values, but every ranked output lists only one entry, so every match ties and rule order decides. List the values in rank order", validation_result_name_referenced: '"{{name}}" is a result of this decision, not an input — it cannot be referenced here', validation_rule_entry_count: "This rule's entries do not match the table's columns", validation_unknown_member: '"{{name}}" is not a field of "{{parent}}". Check the spelling, or add the field to its type.', validation_unknown_name: '"{{name}}" is not a known input or decision variable', validation_unreachable_rule: "This rule can never be reached — an earlier rule matches every input", validation_value_not_valid_for_type: "{{value}} is not a valid {{columnType}}", variable_picker_empty: "No variables found", variable_picker_insert: "Insert variable", variable_picker_search_placeholder: "Search variables…", viewer_unsupported_notice: "This rule can't be shown.", xml_error_apply_failed: "This document could not be applied. Check the XML and try again.", xml_error_invalid: "This is not well-formed XML.", xml_error_lossy: "Remove XML comments and processing instructions — they cannot be kept.", xml_error_migration_failed: "This DMN 1.1 document could not be migrated.", xml_error_uninitialized: "This document holds no decision to apply.", xml_error_unsafe: "Remove the DOCTYPE declaration.", xml_error_unsupported_profile: "Only a single decision table can be applied.", xml_error_unsupported_version: "This DMN version is not supported.", xml_tab: "XML", xml_unavailable: "This table can't be shown as XML right now. Your latest changes are still in the table." };
57
65
 
58
66
  // ../../node_modules/luxon/build/es6/luxon.mjs
59
67
  class LuxonError extends Error {
@@ -96,7 +104,7 @@ class ZoneIsAbstractError extends LuxonError {
96
104
  }
97
105
  var n = "numeric";
98
106
  var s = "short";
99
- var l2 = "long";
107
+ var l = "long";
100
108
  var DATE_SHORT = {
101
109
  year: n,
102
110
  month: n,
@@ -115,14 +123,14 @@ var DATE_MED_WITH_WEEKDAY = {
115
123
  };
116
124
  var DATE_FULL = {
117
125
  year: n,
118
- month: l2,
126
+ month: l,
119
127
  day: n
120
128
  };
121
129
  var DATE_HUGE = {
122
130
  year: n,
123
- month: l2,
131
+ month: l,
124
132
  day: n,
125
- weekday: l2
133
+ weekday: l
126
134
  };
127
135
  var TIME_SIMPLE = {
128
136
  hour: n,
@@ -143,7 +151,7 @@ var TIME_WITH_LONG_OFFSET = {
143
151
  hour: n,
144
152
  minute: n,
145
153
  second: n,
146
- timeZoneName: l2
154
+ timeZoneName: l
147
155
  };
148
156
  var TIME_24_SIMPLE = {
149
157
  hour: n,
@@ -168,7 +176,7 @@ var TIME_24_WITH_LONG_OFFSET = {
168
176
  minute: n,
169
177
  second: n,
170
178
  hourCycle: "h23",
171
- timeZoneName: l2
179
+ timeZoneName: l
172
180
  };
173
181
  var DATETIME_SHORT = {
174
182
  year: n,
@@ -210,7 +218,7 @@ var DATETIME_MED_WITH_WEEKDAY = {
210
218
  };
211
219
  var DATETIME_FULL = {
212
220
  year: n,
213
- month: l2,
221
+ month: l,
214
222
  day: n,
215
223
  hour: n,
216
224
  minute: n,
@@ -218,7 +226,7 @@ var DATETIME_FULL = {
218
226
  };
219
227
  var DATETIME_FULL_WITH_SECONDS = {
220
228
  year: n,
221
- month: l2,
229
+ month: l,
222
230
  day: n,
223
231
  hour: n,
224
232
  minute: n,
@@ -227,22 +235,22 @@ var DATETIME_FULL_WITH_SECONDS = {
227
235
  };
228
236
  var DATETIME_HUGE = {
229
237
  year: n,
230
- month: l2,
238
+ month: l,
231
239
  day: n,
232
- weekday: l2,
240
+ weekday: l,
233
241
  hour: n,
234
242
  minute: n,
235
- timeZoneName: l2
243
+ timeZoneName: l
236
244
  };
237
245
  var DATETIME_HUGE_WITH_SECONDS = {
238
246
  year: n,
239
- month: l2,
247
+ month: l,
240
248
  day: n,
241
- weekday: l2,
249
+ weekday: l,
242
250
  hour: n,
243
251
  minute: n,
244
252
  second: n,
245
- timeZoneName: l2
253
+ timeZoneName: l
246
254
  };
247
255
 
248
256
  class Zone {
@@ -4500,162 +4508,163 @@ function friendlyDateTime(dateTimeish) {
4500
4508
  }
4501
4509
  }
4502
4510
 
4503
- // ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-TZVIZNQA.js
4504
- var ne2 = (e, t) => {
4505
- let n = t.trim();
4506
- return n ? e.find((r) => ne(r) === n) : undefined;
4507
- };
4508
- var y = String.raw`-?\d{4,}-\d{2}-\d{2}`;
4509
- var x2 = String.raw`\d{2}:\d{2}(:\d{2}(\.\d+)?)?([Zz]|[+-]\d{2}:\d{2})?`;
4510
- var R = String.raw`-?P(?!$)(\d+Y)?(\d+M)?(\d+D)?(T(?!$)(\d+H)?(\d+M)?(\d+(\.\d+)?S)?)?`;
4511
- var w2 = String.raw`-?(\d+(\.\d+)?|\.\d+)([eE][+-]?\d+)?`;
4512
- var E = new RegExp(`^${y}$`);
4513
- var D = new RegExp(`^${x2}$`);
4514
- var h2 = new RegExp(`^${y}T${x2}$`);
4515
- var b2 = new RegExp(`^${R}$`);
4516
- var A2 = new RegExp(`^${w2}$`);
4517
- var N = /^(?!.*\.\.)[^[\]()<>=!,]*$/;
4518
- var O2 = (e) => {
4519
- let t = e.indexOf("@");
4520
- return t === -1 ? { text: e } : { text: e.slice(0, t), zone: e.slice(t + 1) };
4511
+ // ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-E6SCLGKI.js
4512
+ var A = String.raw`-?\d{4,}-\d{2}-\d{2}`;
4513
+ var N = String.raw`\d{2}:\d{2}(:\d{2}(\.\d+)?)?([Zz]|[+-]\d{2}:\d{2})?`;
4514
+ var P = String.raw`-?P(?!$)(\d+Y)?(\d+M)?(\d+D)?(T(?!$)(\d+H)?(\d+M)?(\d+(\.\d+)?S)?)?`;
4515
+ var F = String.raw`-?(\d+(\.\d+)?|\.\d+)([eE][+-]?\d+)?`;
4516
+ var _2 = new RegExp(`^${A}$`);
4517
+ var S2 = new RegExp(`^${N}$`);
4518
+ var M2 = new RegExp(`^${A}T${N}$`);
4519
+ var O2 = new RegExp(`^${P}$`);
4520
+ var U = new RegExp(`^${F}$`);
4521
+ var I2 = /^(?!.*\.\.)[^[\]()<>=!,]*$/;
4522
+ var R2 = (e2) => {
4523
+ let t = e2.indexOf("@");
4524
+ return t === -1 ? { text: e2 } : { text: e2.slice(0, t), zone: e2.slice(t + 1) };
4521
4525
  };
4522
- var $2 = (e) => E.test(e) && DateTime.fromISO(e).isValid;
4523
- var P = (e) => {
4524
- let { text: t, zone: n } = O2(e);
4525
- return D.test(t) ? DateTime.fromISO(`2000-01-01T${t}`, n ? { zone: n } : { setZone: true }).isValid : false;
4526
+ var C = (e2) => _2.test(e2) && DateTime.fromISO(e2).isValid;
4527
+ var Y = (e2) => {
4528
+ let { text: t, zone: n } = R2(e2);
4529
+ return S2.test(t) ? DateTime.fromISO(`2000-01-01T${t}`, n ? { zone: n } : { setZone: true }).isValid : false;
4526
4530
  };
4527
- var k = (e) => {
4528
- let { text: t, zone: n } = O2(e);
4529
- return h2.test(t) && DateTime.fromISO(t, n ? { zone: n } : { setZone: true }).isValid;
4531
+ var W = (e2) => {
4532
+ let { text: t, zone: n } = R2(e2);
4533
+ return M2.test(t) && DateTime.fromISO(t, n ? { zone: n } : { setZone: true }).isValid;
4530
4534
  };
4531
- var F = (e) => {
4532
- if (!b2.test(e))
4535
+ var J2 = (e2) => {
4536
+ if (!O2.test(e2))
4533
4537
  return;
4534
- let t = Duration.fromISO(e);
4538
+ let t = Duration.fromISO(e2);
4535
4539
  if (!t.isValid)
4536
4540
  return;
4537
- let n = t.toObject(), r = (...i) => i.some((s) => n[s] !== undefined);
4541
+ let n = t.toObject(), r = (...o) => o.some((s) => n[s] !== undefined);
4538
4542
  return { years: r("years", "months"), days: r("weeks", "days", "hours", "minutes", "seconds", "milliseconds") };
4539
4543
  };
4540
- var M = (e, t) => {
4541
- let n = F(e);
4544
+ var L2 = (e2, t) => {
4545
+ let n = J2(e2);
4542
4546
  return n ? t === "yearMonth" ? n.years && !n.days : n.days && !n.years : false;
4543
4547
  };
4544
- var C2 = (e) => A2.test(e);
4545
- var de = (e, t) => {
4546
- let n = e.trim();
4548
+ var v2 = (e2) => U.test(e2);
4549
+ var fe = (e2, t) => {
4550
+ let n = e2.trim();
4547
4551
  if (!n)
4548
4552
  return false;
4549
- switch (R2(t ?? "string")) {
4550
- case "date":
4551
- return $2(n);
4552
- case "time":
4553
- return P(n);
4554
- case "date and time":
4555
- return k(n);
4556
- case "dayTimeDuration":
4557
- return M(n, "dayTime");
4558
- case "yearMonthDuration":
4559
- return M(n, "yearMonth");
4553
+ switch (x(t ?? "string")) {
4554
+ case e.Date:
4555
+ return C(n);
4556
+ case e.Time:
4557
+ return Y(n);
4558
+ case e.DateAndTime:
4559
+ return W(n);
4560
+ case e.DaysAndTimeDuration:
4561
+ return L2(n, "dayTime");
4562
+ case e.YearsAndMonthsDuration:
4563
+ return L2(n, "yearMonth");
4560
4564
  case "boolean":
4561
4565
  return n === "true" || n === "false";
4562
4566
  case "number":
4563
- return C2(n);
4567
+ return v2(n);
4564
4568
  default:
4565
4569
  return true;
4566
4570
  }
4567
4571
  };
4568
- var W = (e) => ["date", "time", "date and time", "dayTimeDuration", "yearMonthDuration", "boolean", "number"].includes(R2(e ?? "string"));
4569
- var _ = (e) => W(e) || R2(e ?? "string") === "string";
4570
- var J3 = String.raw`\"`;
4572
+ var B = new Set([...d, e.Boolean, e.Number]);
4573
+ var H = (e2) => B.has(x(e2 ?? e.String));
4574
+ var w2 = (e2) => H(e2) || x(e2 ?? "string") === "string";
4575
+ var z = String.raw`\"`;
4571
4576
  var c2 = "matches(?, ";
4572
- var S2 = "^(";
4573
- var I = ")$";
4574
- var v = ["date", "time", "date and time", "duration"];
4575
- var Y = (e) => {
4576
- let t = e.trim();
4577
- for (let n of v) {
4577
+ var T = "^(";
4578
+ var g = ")$";
4579
+ var X = ["date", "time", "date and time", "duration"];
4580
+ var Z3 = (e2) => {
4581
+ let t = e2.trim();
4582
+ for (let n of X) {
4578
4583
  let r = `${n}(`;
4579
4584
  if (t.startsWith(r) && t.endsWith(")"))
4580
4585
  try {
4581
- let i = JSON.parse(t.slice(r.length, -1).trim());
4582
- return typeof i == "string" ? i : undefined;
4586
+ let o = JSON.parse(t.slice(r.length, -1).trim());
4587
+ return typeof o == "string" ? o : undefined;
4583
4588
  } catch {
4584
4589
  return;
4585
4590
  }
4586
4591
  }
4587
4592
  };
4588
- var z2 = (e) => {
4589
- let t = e.trim(), n = Y(t);
4590
- return n !== undefined ? n : U2(t) ? X(t)[0] : N.test(t) ? t : undefined;
4593
+ var G = (e2) => {
4594
+ let t = e2.trim(), n = Z3(t);
4595
+ return n !== undefined ? n : V2(t) ? j(t)[0] : I2.test(t) ? t : undefined;
4591
4596
  };
4592
- var U2 = (e) => e.length >= 2 && e.startsWith('"') && e.endsWith('"');
4593
- var B2 = (e) => {
4594
- if (!U2(e))
4595
- return e;
4597
+ var V2 = (e2) => e2.length >= 2 && e2.startsWith('"') && e2.endsWith('"');
4598
+ var K = (e2) => {
4599
+ if (!V2(e2))
4600
+ return e2;
4596
4601
  try {
4597
- let t = JSON.parse(e);
4598
- return typeof t == "string" ? t : e;
4602
+ let t = JSON.parse(e2);
4603
+ return typeof t == "string" ? t : e2;
4599
4604
  } catch {
4600
- return e.slice(1, -1).replaceAll(J3, '"');
4605
+ return e2.slice(1, -1).replaceAll(z, '"');
4601
4606
  }
4602
4607
  };
4603
- var L = (e) => {
4604
- let t = [], n = 0, r = false, i = 0, s = (o) => {
4605
- let a = e.slice(i, o), u = a.trim();
4606
- if (u) {
4607
- let f = i + a.indexOf(u);
4608
- t.push({ token: u, from: f, to: f + u.length });
4608
+ var $ = (e2) => {
4609
+ let t = [], n = 0, r = false, o = 0, s = (a) => {
4610
+ let d = e2.slice(o, a), l = d.trim();
4611
+ if (l) {
4612
+ let y = o + d.indexOf(l);
4613
+ t.push({ token: l, from: y, to: y + l.length });
4609
4614
  }
4610
4615
  };
4611
- for (let o = 0;o < e.length; o += 1) {
4612
- let a = e[o];
4613
- r && a === "\\" ? o += 1 : a === '"' ? r = !r : !r && "([{".includes(a) ? n += 1 : !r && ")]}".includes(a) ? n = Math.max(0, n - 1) : a === "," && !r && n === 0 && (s(o), i = o + 1);
4616
+ for (let a = 0;a < e2.length; a += 1) {
4617
+ let d = e2[a];
4618
+ r && d === "\\" ? a += 1 : d === '"' ? r = !r : !r && "([{".includes(d) ? n += 1 : !r && ")]}".includes(d) ? n = Math.max(0, n - 1) : d === "," && !r && n === 0 && (s(a), o = a + 1);
4614
4619
  }
4615
- return s(e.length), t;
4620
+ return s(e2.length), t;
4616
4621
  };
4617
- var H = (e) => L(e).map(({ token: t }) => t);
4618
- var X = (e) => H(e).map(B2);
4619
- var Z = (e) => {
4620
- let t = e?.text;
4622
+ var Q2 = (e2) => $(e2).map(({ token: t }) => t);
4623
+ var j = (e2) => Q2(e2).map(K);
4624
+ var q2 = (e2) => {
4625
+ let t = e2?.text;
4621
4626
  if (!t?.startsWith(c2) || !t.endsWith(")"))
4622
4627
  return null;
4623
4628
  let n = t.slice(c2.length, -1);
4624
4629
  try {
4625
4630
  let r = JSON.parse(n);
4626
- return typeof r != "string" || `${c2}${JSON.stringify(r)})` !== t || !r.startsWith(S2) || !r.endsWith(I) ? null : r.slice(S2.length, -I.length);
4631
+ return typeof r != "string" || `${c2}${JSON.stringify(r)})` !== t || !r.startsWith(T) || !r.endsWith(g) ? null : r.slice(T.length, -g.length);
4627
4632
  } catch {
4628
4633
  return null;
4629
4634
  }
4630
4635
  };
4631
- var pe = (e, t) => {
4632
- let n = e?.text.trim();
4633
- return !e || !n ? "none" : Z(e) !== null ? "regex" : ae(n, "unaryTests") ? "expression" : G2(e, t) ? "list" : "expression";
4636
+ var he = (e2, t) => {
4637
+ let n = e2?.text.trim();
4638
+ return !e2 || !n ? "none" : q2(e2) !== null ? "regex" : le(n, "unaryTests") ? "expression" : ee(e2, t) ? "list" : "expression";
4634
4639
  };
4635
- var G2 = (e, t) => {
4636
- let n = Q2(e.text);
4640
+ var ee = (e2, t) => {
4641
+ let n = te3(e2.text);
4637
4642
  if (n.length === 0)
4638
4643
  return false;
4639
- if (!_(t))
4640
- return n.every(({ token: i }) => oe(i));
4641
- let r = ee2(t);
4642
- return n.every(({ token: i, value: s }) => s !== undefined || r && K2(i) !== undefined);
4644
+ if (!w2(t))
4645
+ return n.every(({ token: o }) => ae(o));
4646
+ let r = oe(t);
4647
+ return n.every(({ token: o, value: s }) => s !== undefined || r && ne3(o) !== undefined);
4643
4648
  };
4644
- var Q2 = (e) => L(e).map((t) => ({ ...t, value: z2(t.token) }));
4645
- var K2 = (e) => {
4646
- let t = e.trim(), n = e.indexOf(t), r;
4649
+ var te3 = (e2) => $(e2).map((t) => ({ ...t, value: G(t.token) }));
4650
+ var ne3 = (e2) => {
4651
+ let t = e2.trim(), n = e2.indexOf(t), r;
4647
4652
  if (c(t, "unaryTests").iterate({ enter(s) {
4648
4653
  s.name === "Interval" && s.from === 0 && s.to === t.length && (r = s.node);
4649
4654
  } }), !r)
4650
4655
  return;
4651
- let i = [];
4656
+ let o = [];
4652
4657
  for (let s = r.firstChild;s; s = s.nextSibling)
4653
- j.has(s.name) && i.push({ text: t.slice(s.from, s.to), from: n + s.from, to: n + s.to });
4654
- return i.length === 2 ? i : undefined;
4658
+ re2.has(s.name) && o.push({ text: t.slice(s.from, s.to), from: n + s.from, to: n + s.to });
4659
+ return o.length === 2 ? o : undefined;
4660
+ };
4661
+ var re2 = new Set(["StringLiteral", "NumericLiteral", "DateTimeLiteral"]);
4662
+ var se2 = new Set(["number"]);
4663
+ var oe = (e2) => se2.has(x(e2 ?? "string"));
4664
+ var ie = (e2, t) => {
4665
+ let n = t.trim();
4666
+ return n ? e2.find((r) => re(r) === n) : undefined;
4655
4667
  };
4656
- var j = new Set(["StringLiteral", "NumericLiteral", "DateTimeLiteral"]);
4657
- var q = new Set(["number"]);
4658
- var ee2 = (e) => q.has(R2(e ?? "string"));
4659
4668
 
4660
4669
  // ../../node_modules/@bpmn-io/feel-analyzer/dist/index.js
4661
4670
  function stripBackticks(text) {
@@ -5283,7 +5292,7 @@ class FeelAnalyzer {
5283
5292
  }
5284
5293
 
5285
5294
  // ../../node_modules/@bpmn-io/semver-compat/dist/index.js
5286
- var re = { exports: {} };
5295
+ var re3 = { exports: {} };
5287
5296
  var constants;
5288
5297
  var hasRequiredConstants;
5289
5298
  function requireConstants() {
@@ -5329,7 +5338,7 @@ function requireDebug() {
5329
5338
  var hasRequiredRe;
5330
5339
  function requireRe() {
5331
5340
  if (hasRequiredRe)
5332
- return re.exports;
5341
+ return re3.exports;
5333
5342
  hasRequiredRe = 1;
5334
5343
  (function(module, exports$1) {
5335
5344
  const {
@@ -5413,8 +5422,8 @@ function requireRe() {
5413
5422
  createToken("STAR", "(<|>)?=?\\s*\\*");
5414
5423
  createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
5415
5424
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5416
- })(re, re.exports);
5417
- return re.exports;
5425
+ })(re3, re3.exports);
5426
+ return re3.exports;
5418
5427
  }
5419
5428
  var parseOptions_1;
5420
5429
  var hasRequiredParseOptions;
@@ -7470,241 +7479,393 @@ function lintExpression(expression, {
7470
7479
  return lintMessages;
7471
7480
  }
7472
7481
 
7473
- // ../../node_modules/@uipath/dmn-editor-utils/dist/validation/index.js
7474
- var Tt = (e2) => e2.isCollection ? `list<${e2.components ? "context" : e2.baseTypeRef ?? "Any"}>` : e2.baseTypeRef;
7475
- var qe = (e2) => {
7476
- let t = B(e2);
7477
- if (t)
7478
- return { fieldlessType: t };
7479
- let n = U(e2);
7480
- return n ? { fieldlessType: n, fieldlessItems: true } : {};
7481
- };
7482
- var He = (e2) => z(e2) ? [] : e2.components && !e2.recursive ? e2.components.map((t) => {
7483
- let n = He(t.type), i = Tt(t.type);
7484
- return { name: t.name, ...i ? { detail: i } : {}, ...n ? { entries: n } : {}, ...qe(t.type) };
7485
- }) : undefined;
7486
- var Z2 = (e2, t, n, i) => {
7487
- let a = { name: e2, ...t ? { detail: t } : {} };
7488
- if (i?.length)
7489
- return { ...a, entries: i.map((m) => Z2(m.name, m.typeRef, n, m.members)) };
7490
- let s = J2(n ?? {}, t), r2 = n && He(s);
7491
- return { ...a, ...r2 ? { entries: r2 } : {}, ...qe(s) };
7492
- };
7493
- var B3 = (e2, t = [], n) => {
7494
- let i = e2.filter((r2) => ne(r2)), a = i.map((r2) => Z2(ne(r2), r2.typeRef, n)), s = new Set(i.map(ne));
7495
- for (let r2 of t)
7496
- s.has(r2.name) || (s.add(r2.name), a.push(Z2(r2.name, r2.typeRef, n, r2.members)));
7497
- return a;
7498
- };
7499
- var We = "DMN_INPUT_EXPRESSION_MISSING";
7500
- var Et = ["error", "warning", "info"];
7501
- var vt = (e2) => Et.includes(e2) ? e2 : "info";
7502
- var It = (e2) => ({ from: e2.from, to: e2.to, severity: vt(e2.severity), message: e2.message });
7503
- var ee3 = (e2, t, n = []) => lintExpression(e2, { dialect: t, variables: n }).map(It);
7504
- var te2 = (e2, t) => {
7505
- let n = e2.trim();
7482
+ // ../../node_modules/@uipath/dmn-editor-utils/dist/chunks/chunk-KHP6NKPN.js
7483
+ var T2 = ["error", "warning", "info"];
7484
+ var F2 = (e) => T2.includes(e) ? e : "info";
7485
+ var C2 = (e) => ({ from: e.from, to: e.to, severity: F2(e.severity), message: e.message });
7486
+ var y2 = (e, t, n = []) => lintExpression(e, { dialect: t, variables: n }).map(C2);
7487
+ var Q3 = (e, t) => {
7488
+ let n = e.trim();
7506
7489
  return n === "" || t === "unaryTests" && n === "-";
7507
7490
  };
7508
- var ht = /"(?:\\[\s\S]|[^"\\])*"?|\/\*[\s\S]*?(?:\*\/|$)|\/\/[^\n]*|'/g;
7509
- var Mt = (e2) => Array.from(e2.matchAll(ht), (t) => t[0] === "'" ? t.index : -1).filter((t) => t >= 0);
7510
- var Xe = (e2, t) => {
7511
- let n = new Set(t.filter((i) => i.severity === "error").map((i) => i.from));
7512
- return Mt(e2).find((i) => n.has(i));
7491
+ var E = /"(?:\\[\s\S]|[^"\\])*"?|\/\*[\s\S]*?(?:\*\/|$)|\/\/[^\n]*|'/g;
7492
+ var O3 = (e) => Array.from(e.matchAll(E), (t) => t[0] === "'" ? t.index : -1).filter((t) => t >= 0);
7493
+ var x2 = (e, t) => {
7494
+ let n = new Set(t.filter((r) => r.severity === "error").map((r) => r.from));
7495
+ return O3(e).find((r) => n.has(r));
7513
7496
  };
7514
- var I2 = (e2, t, n) => {
7515
- if (te2(e2, t))
7516
- return [];
7517
- let i = ee3(e2, t, n), a = Xe(e2, i);
7518
- return a !== undefined ? [{ code: "DMN_FEEL_SYNTAX", severity: "error", messageKey: "validation_feel_single_quote", range: { from: a, to: a + 1 } }] : i.map((s) => s.severity === "error" ? { code: "DMN_FEEL_SYNTAX", severity: "error", messageKey: "validation_feel_syntax", messageParams: { message: s.message }, range: { from: s.from, to: s.to } } : { code: "DMN_FEEL_LINT", severity: "warning", messageKey: "validation_feel_lint", messageParams: { message: s.message }, range: { from: s.from, to: s.to } });
7519
- };
7520
- var ne3 = { StringLiteral: "string", NumericLiteral: "number", BooleanLiteral: "boolean" };
7521
- var je = { string: ["number", "boolean"], number: ["string", "boolean"], boolean: ["string", "number"] };
7522
- var ie = (e2, t) => {
7523
- let n = e2.trim();
7497
+ var c3 = { StringLiteral: "string", NumericLiteral: "number", BooleanLiteral: "boolean" };
7498
+ var v3 = (e, t) => {
7499
+ let n = e.trim();
7524
7500
  if (!n)
7525
7501
  return;
7526
- let i = c(n, t), a;
7527
- return i.iterate({ enter(s) {
7528
- s.from === 0 && s.to === n.length && (a = ne3[s.name] ?? a);
7529
- } }), a;
7502
+ let r = c(n, t), s;
7503
+ return r.iterate({ enter(o) {
7504
+ o.from === 0 && o.to === n.length && (s = c3[o.name] ?? s);
7505
+ } }), s;
7530
7506
  };
7531
- var ze = (e2, t) => !e2 || !t || !je[e2].includes(R2(t)) ? [] : [{ code: "DMN_TYPE_MISMATCH", severity: "error", messageKey: "validation_type_mismatch", messageParams: { literalType: e2, columnType: t } }];
7532
- var bt = new Set([...Object.keys(ne3), "DateTimeLiteral", "null"]);
7533
- var St = new Set(["UnaryTests", "PositiveUnaryTests", "PositiveUnaryTest", "SimplePositiveUnaryTest", "Interval", "Expression"]);
7534
- var Ot = (e2) => {
7535
- for (let t = e2;t; t = t.parent)
7507
+ var S3 = new Set([...Object.keys(c3), "DateTimeLiteral", "null"]);
7508
+ var D = new Set(["UnaryTests", "PositiveUnaryTests", "PositiveUnaryTest", "SimplePositiveUnaryTest", "Interval", "Expression"]);
7509
+ var L3 = (e) => {
7510
+ for (let t = e;t; t = t.parent)
7536
7511
  if (t.name === "Interval")
7537
7512
  return true;
7538
7513
  return false;
7539
7514
  };
7540
- var Pt = (e2) => {
7541
- for (let t = e2;t; t = t.parent)
7542
- if (!St.has(t.name))
7515
+ var A2 = (e) => {
7516
+ for (let t = e;t; t = t.parent)
7517
+ if (!D.has(t.name))
7543
7518
  return false;
7544
7519
  return true;
7545
7520
  };
7546
- var Rt = (e2, t) => {
7547
- let n = e2.trim(), i = { operands: [], intervals: [] };
7548
- if (!n)
7549
- return i;
7550
- let a = e2.length - e2.trimStart().length;
7551
- return c(n, t).iterate({ enter(s) {
7552
- if (!bt.has(s.name) && s.name !== "Interval" || !Pt(s.node.parent))
7553
- return;
7554
- let r2 = { from: a + s.from, to: a + s.to };
7555
- if (s.name === "Interval") {
7556
- Ot(s.node.parent) || i.intervals.push(r2);
7557
- return;
7558
- }
7559
- i.operands.push({ nodeName: s.name, kind: ne3[s.name], ...r2 });
7560
- } }), i;
7561
- };
7562
- var At2 = (e2) => {
7563
- let t = R2(e2);
7564
- return t === "string" || t === "number" || t === "boolean" ? t : undefined;
7521
+ var b3 = new Set(["BlockComment", "LineComment"]);
7522
+ var m = (e, t = b3) => {
7523
+ let n = [];
7524
+ for (let r = e?.firstChild;r; r = r.nextSibling)
7525
+ t.has(r.name) || n.push(r);
7526
+ return n;
7565
7527
  };
7566
- var wt = new Set(["number", "string", "date", "time", "date and time", "dayTimeDuration", "yearMonthDuration"]);
7567
- var xt = new Set(["boolean"]);
7568
- var Lt = (e2) => {
7569
- let t = R2(e2);
7570
- return wt.has(t) ? "ordered" : xt.has(t) ? "unordered" : "unknown";
7528
+ var w3 = new Set([...b3, "ParameterName", ":"]);
7529
+ var _3 = (e, t) => {
7530
+ let n = m(e.getChild("NamedParameters")), r = n.length ? n.length === 1 ? m(n[0], w3) : [] : m(e.getChild("AtLiteral") ?? e.getChild("PositionalParameters"));
7531
+ return r.length === 1 && r[0].name === "StringLiteral" ? j(t.slice(r[0].from, r[0].to))[0] : undefined;
7571
7532
  };
7572
- var $e = (e2, t) => t.from >= e2.from && t.to <= e2.to;
7573
- var se = (e2, t, n) => {
7574
- if (!n || te2(e2, t))
7575
- return [];
7576
- let { operands: i, intervals: a } = Rt(e2, t), s = [], r2 = At2(n), m = Lt(n), u = m === "unordered" ? a : [];
7577
- if (m === "unordered")
7578
- for (let l of a)
7579
- s.push({ code: "DMN_RANGE_NOT_ORDERED", severity: "error", messageKey: "validation_range_not_ordered", messageParams: { columnType: n }, range: l });
7580
- else if (!r2)
7581
- for (let l of a)
7582
- new Set(i.filter((D) => $e(l, D) && D.kind).map((D) => D.kind)).size > 1 && s.push({ code: "DMN_RANGE_ENDPOINT_TYPES", severity: "error", messageKey: "validation_range_endpoint_types", range: l });
7583
- if (et.has(R2(n))) {
7584
- for (let l of i) {
7585
- let _ = e2.slice(l.from, l.to), D = l.nodeName === "null" ? "" : Y(_);
7586
- l.nodeName !== "null" && (D === undefined || !de(D, n)) && s.push({ code: "DMN_VALUE_NOT_VALID_FOR_TYPE", severity: "error", messageKey: "validation_value_not_valid_for_type", messageParams: { value: _, columnType: n }, range: { from: l.from, to: l.to } });
7533
+ var N3 = (e, t, n) => ({ nodeName: e.name, kind: c3[e.name], temporalString: e.name === "DateTimeLiteral" ? _3(e, t) : undefined, ...n });
7534
+ var I3 = new Set(["Context", "List"]);
7535
+ var j2 = (e, t) => {
7536
+ let n = e.trim(), r = { operands: [], intervals: [], composites: [] };
7537
+ if (!n)
7538
+ return r;
7539
+ let s = e.length - e.trimStart().length;
7540
+ return c(n, t).iterate({ enter(o) {
7541
+ let l = t === "expression" && I3.has(o.name);
7542
+ if (!S3.has(o.name) && o.name !== "Interval" && !l || !A2(o.node.parent))
7543
+ return;
7544
+ let u = { from: s + o.from, to: s + o.to };
7545
+ if (l) {
7546
+ let p = o.name === "List" ? m(o.node) : [], f = (i) => ({ from: s + i.from, to: s + i.to });
7547
+ return r.composites.push({ nodeName: o.name, ...u, elements: p.filter((i) => S3.has(i.name)).map((i) => N3(i, n, f(i))), objects: p.filter((i) => i.name === "Context").map(f) }), false;
7587
7548
  }
7588
- return s;
7589
- }
7590
- if (!r2)
7591
- return s;
7592
- for (let l of i)
7593
- if (!(l.nodeName === "null" || u.some((_) => $e(_, l)))) {
7594
- if (r2 === "boolean") {
7595
- l.kind !== "boolean" && s.push({ code: "DMN_BOOLEAN_COLUMN_VALUE", severity: "error", messageKey: "validation_boolean_column_value", messageParams: { value: e2.slice(l.from, l.to) }, range: { from: l.from, to: l.to } });
7596
- continue;
7597
- }
7598
- l.kind && je[l.kind].includes(r2) && s.push({ code: "DMN_TYPE_MISMATCH", severity: "error", messageKey: "validation_value_not_valid_for_type", messageParams: { value: e2.slice(l.from, l.to), columnType: n }, range: { from: l.from, to: l.to } });
7549
+ if (o.name === "Interval") {
7550
+ L3(o.node.parent) || r.intervals.push(u);
7551
+ return;
7599
7552
  }
7600
- return s;
7553
+ r.operands.push(N3(o.node, n, u));
7554
+ } }), r;
7601
7555
  };
7602
- var Je = (e2) => {
7603
- let t = c(e2.trim(), "unaryTests").topNode, n = t.getChild("PositiveUnaryTests");
7556
+ var G2 = (e) => {
7557
+ let t = c(e.trim(), "unaryTests").topNode, n = t.getChild("PositiveUnaryTests");
7604
7558
  return n && !t.getChild("not") ? n.getChildren("PositiveUnaryTest").length : 1;
7605
7559
  };
7606
- var re2 = (e2) => {
7607
- let t = ie(e2, "expression");
7608
- return t ? Ct(t, e2) : Y(e2);
7560
+ var P2 = (e) => {
7561
+ let t = v3(e, "expression");
7562
+ return t ? V3(t, e) : Z3(e);
7609
7563
  };
7610
- var Ze = (e2) => {
7611
- let t = e2.trim(), n = c(t, "unaryTests").topNode, i = n.getChild("PositiveUnaryTests");
7612
- if (!i || n.getChild("not"))
7564
+ var q3 = (e) => {
7565
+ let t = e.trim(), n = c(t, "unaryTests").topNode, r = n.getChild("PositiveUnaryTests");
7566
+ if (!r || n.getChild("not"))
7613
7567
  return;
7614
- let a = new Set;
7615
- for (let s of i.getChildren("PositiveUnaryTest")) {
7616
- let r2 = re2(t.slice(s.from, s.to));
7617
- if (r2 === undefined)
7568
+ let s = new Set;
7569
+ for (let o of r.getChildren("PositiveUnaryTest")) {
7570
+ let l = P2(t.slice(o.from, o.to));
7571
+ if (l === undefined)
7618
7572
  return;
7619
- a.add(r2);
7573
+ s.add(l);
7620
7574
  }
7621
- return a;
7575
+ return s;
7622
7576
  };
7623
- var Ct = (e2, t) => {
7577
+ var V3 = (e, t) => {
7624
7578
  let n = t.trim();
7625
- return e2 === "number" ? Number(n.replace(/\s+/g, "")) : e2 === "string" ? X(n)[0] : n === "true";
7579
+ return e === "number" ? Number(n.replace(/\s+/g, "")) : e === "string" ? j(n)[0] : n === "true";
7580
+ };
7581
+ var z2 = (e, t, n) => {
7582
+ let r;
7583
+ return (s, o) => !s.includes("'") && e[o - 1] !== "'" ? false : (r ??= x2(e, y2(e, t, Array.from(n, (l) => ({ name: l })))) !== undefined, r);
7626
7584
  };
7627
- var Ft = (e2, t) => t.results.has(e2) ? ["DMN_RESULT_NAME_REFERENCED", "validation_result_name_referenced"] : t.allowedValues?.has(e2) ? ["DMN_ALLOWED_VALUE_UNQUOTED", "validation_allowed_value_unquoted"] : ["DMN_UNKNOWN_NAME", "validation_unknown_name"];
7628
- var et = new Set(["date", "time", "date and time", "dayTimeDuration", "yearMonthDuration"]);
7629
- var tt = (e2, t, n = new Set) => {
7630
- let i = R2(t ?? "string");
7631
- if (!(W(i) || i === "string"))
7585
+
7586
+ // ../../node_modules/@uipath/dmn-editor-utils/dist/validation/index.js
7587
+ var k2 = { DMN_DOCUMENT_UNREADABLE: { severity: "error", messageKey: "validation_document_unreadable" }, DMN_DOCUMENT_NAMESPACE_MISSING: { severity: "warning", messageKey: "validation_document_namespace_missing" }, DMN_DANGLING_REQUIREMENT: { severity: "error", messageKey: "validation_dangling_requirement" }, DMN_DECISION_NAME_MISSING: { severity: "error", messageKey: "validation_decision_name_missing" }, DMN_DECISION_NAME_INVALID: { severity: "error", messageKey: "validation_decision_name_invalid" }, DMN_INPUT_DATA_NAME_MISSING: { severity: "error", messageKey: "validation_input_data_name_missing" }, DMN_INPUT_DATA_NAME_INVALID: { severity: "error", messageKey: "validation_input_data_name_invalid" }, DMN_DUPLICATE_INPUT_DATA_NAME: { severity: "error", messageKey: "validation_duplicate_input_data_name" }, DMN_INPUT_DATA_SHADOWS_DECISION: { severity: "error", messageKey: "validation_input_data_shadows_decision" }, DMN_MISSING_REQUIREMENT: { severity: "error", messageKey: "validation_missing_requirement" }, DMN_ITEM_DEFINITION_DUPLICATE_NAME: { severity: "error", messageKey: "validation_item_definition_duplicate_name" }, DMN_ITEM_DEFINITION_SIMPLE_AND_STRUCTURED: { severity: "error", messageKey: "validation_item_definition_simple_and_structured" }, DMN_ITEM_DEFINITION_CYCLE: { severity: "error", messageKey: "validation_item_definition_cycle" }, DMN_ITEM_DEFINITION_EMPTY: { severity: "warning", messageKey: "validation_item_definition_empty" }, DMN_ITEM_COMPONENT_DUPLICATE_NAME: { severity: "error", messageKey: "validation_item_component_duplicate_name" }, DMN_ITEM_COMPONENT_NAME_INVALID: { severity: "error", messageKey: "validation_item_component_name_invalid" }, DMN_ITEM_COMPONENT_EMPTY: { severity: "warning", messageKey: "validation_item_component_empty" }, DMN_COLLECT_AGGREGATION_TYPE: { severity: "error", messageKey: "validation_collect_aggregation_type" }, DMN_AGGREGATION_RESULT_TYPE: { severity: "error", messageKey: "validation_aggregation_result_type" }, DMN_AGGREGATION_RESULT_TYPE_SINGLE_OUTPUT: { severity: "warning", messageKey: "validation_aggregation_result_type" }, DMN_RANKED_OUTPUT_VALUES_MISSING: { severity: "error", messageKey: "validation_ranked_output_values_missing" }, DMN_RANKED_OUTPUT_VALUES_SINGLE: { severity: "warning", messageKey: "validation_ranked_output_values_single" }, DMN_LIST_RESULT_TYPE: { severity: "error", messageKey: "validation_list_result_type" }, DMN_INPUT_EXPRESSION_MISSING: { severity: "error", messageKey: "validation_input_expression_missing" }, DMN_COLUMN_TYPE_MISMATCH: { severity: "error", messageKey: "validation_column_type_mismatch", typeParams: ["declared", "column"] }, DMN_COLUMN_TYPE_MISMATCH_DURATION: { severity: "error", messageKey: "validation_column_type_mismatch_duration", typeParams: ["declared", "column"] }, DMN_DUPLICATE_OUTPUT_NAME: { severity: "error", messageKey: "validation_duplicate_output_name" }, DMN_OUTPUT_NAME_INVALID: { severity: "error", messageKey: "validation_output_name_invalid" }, DMN_OUTPUT_NAME_MISSING: { severity: "error", messageKey: "validation_output_name_missing" }, DMN_NO_RULES: { severity: "warning", messageKey: "validation_no_rules" }, DMN_RULE_ENTRY_COUNT: { severity: "error", messageKey: "validation_rule_entry_count" }, DMN_UNREACHABLE_RULE: { severity: "warning", messageKey: "validation_unreachable_rule" }, DMN_DUPLICATE_RULE: { severity: "warning", messageKey: "validation_duplicate_rule" }, DMN_DUPLICATE_RULE_UNIQUE: { severity: "error", messageKey: "validation_duplicate_rule_unique" }, DMN_DUPLICATE_RULE_ANY_CONFLICT: { severity: "error", messageKey: "validation_duplicate_rule_any_conflict" }, DMN_FEEL_SYNTAX: { severity: "error", messageKey: "validation_feel_syntax" }, DMN_FEEL_SINGLE_QUOTE: { severity: "error", messageKey: "validation_feel_single_quote" }, DMN_FEEL_LINT: { severity: "warning", messageKey: "validation_feel_lint" }, DMN_VALUE_NOT_VALID_FOR_TYPE: { severity: "error", messageKey: "validation_value_not_valid_for_type" }, DMN_BOOLEAN_COLUMN_VALUE: { severity: "error", messageKey: "validation_boolean_column_value" }, DMN_RANGE_NOT_ORDERED: { severity: "error", messageKey: "validation_range_not_ordered" }, DMN_RANGE_ENDPOINT_TYPES: { severity: "error", messageKey: "validation_range_endpoint_types" }, DMN_UNKNOWN_NAME: { severity: "error", messageKey: "validation_unknown_name" }, DMN_RESULT_NAME_REFERENCED: { severity: "error", messageKey: "validation_result_name_referenced" }, DMN_ALLOWED_VALUE_UNQUOTED: { severity: "error", messageKey: "validation_allowed_value_unquoted" }, DMN_UNKNOWN_MEMBER: { severity: "error", messageKey: "validation_unknown_member" }, DMN_FIELD_OF_SINGLE_VALUE: { severity: "error", messageKey: "validation_field_of_single_value", typeParams: ["type"] }, DMN_FIELD_OF_LIST_ITEM: { severity: "error", messageKey: "validation_field_of_list_item", typeParams: ["type"] }, DMN_OUTPUT_VALUE_NOT_ALLOWED: { severity: "error", messageKey: "validation_output_value_not_allowed" }, DMN_OUTPUT_VALUE_UNCHECKED: { severity: "warning", messageKey: "validation_output_value_unchecked" }, DMN_LITERAL_EXPRESSION_EMPTY: { severity: "error", messageKey: "validation_literal_expression_empty" }, DMN_LITERAL_EXPRESSION_TYPE_MISSING: { severity: "warning", messageKey: "validation_literal_expression_type_missing" } };
7588
+ var Ze = { string: "feel_type_string", number: "feel_type_number", boolean: "feel_type_boolean", Any: "feel_type_object", date: "feel_type_date", time: "feel_type_time", "date and time": "feel_type_date_time", "days and time duration": "feel_type_day_time_duration", "years and months duration": "feel_type_year_month_duration", array: "feel_type_array" };
7589
+ var re4 = "array:";
7590
+ var et = (e2, t2) => t2 ? `${re4}${e2}` : e2;
7591
+ var tt = (e2, t2) => {
7592
+ if (e2.startsWith(re4))
7593
+ return t2("feel_type_array_of", { type: tt(e2.slice(re4.length), t2) });
7594
+ let n = Ze[e2];
7595
+ return n ? t2(n) : e2;
7596
+ };
7597
+ var nt = (e2, t2) => {
7598
+ let i = k2[e2.code]?.typeParams;
7599
+ if (!i || !e2.messageParams)
7600
+ return e2.messageParams;
7601
+ let r2 = { ...e2.messageParams };
7602
+ for (let o2 of i) {
7603
+ let s = r2[o2];
7604
+ typeof s == "string" && (r2[o2] = tt(s, t2));
7605
+ }
7606
+ return r2;
7607
+ };
7608
+ var it = Object.assign(Object.create(null), e2);
7609
+ var en = (e2, t2 = {}) => {
7610
+ let { count: n } = t2;
7611
+ return ((typeof n == "number" ? it[`${e2}_${n === 1 ? "one" : "other"}`] : undefined) ?? it[e2] ?? e2).replace(/\{\{\s*(\w+)\s*\}\}/g, (o2, s) => Object.prototype.hasOwnProperty.call(t2, s) ? String(t2[s]) : o2);
7612
+ };
7613
+ var tn = (e2, t2 = en) => t2(e2.messageKey, nt(e2, t2));
7614
+ var a = (e2, t2, n) => {
7615
+ let { severity: i, messageKey: r2 } = k2[e2];
7616
+ return { code: e2, severity: i, messageKey: r2, target: t2, ...n };
7617
+ };
7618
+ var R3 = (e2, t2, n, i) => {
7619
+ if (Q3(t2, n))
7620
+ return [];
7621
+ let r2 = y2(t2, n, i), o2 = x2(t2, r2);
7622
+ return o2 !== undefined ? [a("DMN_FEEL_SINGLE_QUOTE", e2, { range: { from: o2, to: o2 + 1 } })] : r2.map((s) => a(s.severity === "error" ? "DMN_FEEL_SYNTAX" : "DMN_FEEL_LINT", e2, { messageParams: { message: s.message }, range: { from: s.from, to: s.to } }));
7623
+ };
7624
+ var nn = { string: ["number", "boolean"], number: ["string", "boolean"], boolean: ["string", "number"] };
7625
+ var rn = (e2) => {
7626
+ let t2 = x(e2);
7627
+ return t2 === "string" || t2 === "number" || t2 === "boolean" ? t2 : undefined;
7628
+ };
7629
+ var sn = new Set([e.Number, e.String, ...d]);
7630
+ var on = new Set(["boolean"]);
7631
+ var an = (e2) => {
7632
+ let t2 = x(e2);
7633
+ return sn.has(t2) ? "ordered" : on.has(t2) ? "unordered" : "unknown";
7634
+ };
7635
+ var rt = (e2, t2) => t2.from >= e2.from && t2.to <= e2.to;
7636
+ var st = (e2, t2, n, i) => a("DMN_VALUE_NOT_VALID_FOR_TYPE", e2, { messageParams: { value: t2.slice(n.from, n.to), columnType: i }, range: { from: n.from, to: n.to } });
7637
+ var C3 = (e2, t2, n, i, r2 = false) => {
7638
+ if (!i || Q3(t2, n))
7632
7639
  return [];
7633
- let a = (m, u) => {
7634
- if (m === "null")
7640
+ let o2 = j2(t2, n), { intervals: s } = o2, m = r2 ? o2.composites.filter((p) => p.nodeName === "List") : [], l = [...o2.operands, ...m.flatMap((p) => p.elements)], c = [...o2.composites.filter((p) => !m.includes(p)), ...m.flatMap((p) => p.objects)], u = [], _ = rn(i), d2 = d.has(x(i)), D = an(i), A = D === "unordered" ? s : [];
7641
+ if (D === "unordered")
7642
+ for (let p of s)
7643
+ u.push(a("DMN_RANGE_NOT_ORDERED", e2, { messageParams: { columnType: i }, range: p }));
7644
+ else if (!_)
7645
+ for (let p of s)
7646
+ new Set(l.filter((f) => rt(p, f) && f.kind).map((f) => f.kind)).size > 1 && u.push(a("DMN_RANGE_ENDPOINT_TYPES", e2, { range: p }));
7647
+ if (_ || d2)
7648
+ for (let p of c)
7649
+ u.push(st(e2, t2, p, i));
7650
+ if (d2) {
7651
+ for (let p of l) {
7652
+ let L = t2.slice(p.from, p.to);
7653
+ (p.nodeName === "DateTimeLiteral" ? p.temporalString !== undefined && !fe(p.temporalString, i) : p.nodeName !== "null") && u.push(a("DMN_VALUE_NOT_VALID_FOR_TYPE", e2, { messageParams: { value: L, columnType: i }, range: { from: p.from, to: p.to } }));
7654
+ }
7655
+ return u;
7656
+ }
7657
+ if (!_)
7658
+ return u;
7659
+ for (let p of l) {
7660
+ if (p.nodeName === "null" || A.some((f) => rt(f, p)))
7661
+ continue;
7662
+ if (_ === "boolean") {
7663
+ p.kind !== "boolean" && u.push(a("DMN_BOOLEAN_COLUMN_VALUE", e2, { messageParams: { value: t2.slice(p.from, p.to) }, range: { from: p.from, to: p.to } }));
7664
+ continue;
7665
+ }
7666
+ (p.kind ? nn[p.kind].includes(_) : p.nodeName === "DateTimeLiteral") && u.push(st(e2, t2, p, i));
7667
+ }
7668
+ return u;
7669
+ };
7670
+ var mn = (e2, t2) => t2.results.has(e2) ? "DMN_RESULT_NAME_REFERENCED" : t2.allowedValues?.has(e2) ? "DMN_ALLOWED_VALUE_UNQUOTED" : "DMN_UNKNOWN_NAME";
7671
+ var at = (e2, t2, n, i = new Set) => {
7672
+ let r2 = x(n ?? "string");
7673
+ if (!(H(r2) || r2 === "string"))
7674
+ return [];
7675
+ let o2 = (l, c) => {
7676
+ if (l === "null")
7635
7677
  return true;
7636
- if (i === "string")
7637
- return U2(m);
7638
- if (et.has(i)) {
7639
- let l = Y(m);
7640
- return l !== undefined && de(l, t);
7641
- }
7642
- return !U2(m) && de(u, t);
7643
- }, s = (m, u, l) => ({ code: "DMN_VALUE_NOT_VALID_FOR_TYPE", severity: "error", messageKey: "validation_value_not_valid_for_type", messageParams: { value: m, columnType: t ?? i }, range: { from: u, to: l } }), r2 = ee2(t);
7644
- return Q2(e2).flatMap((m) => {
7645
- if (n.has(m.token))
7678
+ if (r2 === "string")
7679
+ return V2(l);
7680
+ if (d.has(r2)) {
7681
+ let u = Z3(l);
7682
+ return u !== undefined && fe(u, n);
7683
+ }
7684
+ return !V2(l) && fe(c, n);
7685
+ }, s = (l, c, u) => a("DMN_VALUE_NOT_VALID_FOR_TYPE", e2, { messageParams: { value: l, columnType: n ?? r2 }, range: { from: c, to: u } }), m = oe(n);
7686
+ return te3(t2).flatMap((l) => {
7687
+ if (i.has(l.token))
7646
7688
  return [];
7647
- let u = r2 ? K2(m.token) : undefined;
7648
- return u ? u.filter((l) => !a(l.text, l.text)).map((l) => s(l.text, m.from + l.from, m.from + l.to)) : m.value !== undefined && !a(m.token, m.value) ? [s(m.token, m.from, m.to)] : [];
7689
+ let c = m ? ne3(l.token) : undefined;
7690
+ return c ? c.filter((u) => !o2(u.text, u.text)).map((u) => s(u.text, l.from + u.from, l.from + u.to)) : l.value !== undefined && !o2(l.token, l.value) ? [s(l.token, l.from, l.to)] : [];
7649
7691
  });
7650
7692
  };
7651
- var Ut = (e2, t, n) => {
7652
- let i;
7653
- return (a, s) => !a.includes("'") && e2[s - 1] !== "'" ? false : (i ??= Xe(e2, ee3(e2, t, Array.from(n, (r2) => ({ name: r2 })))) !== undefined, i);
7654
- };
7655
- var Vt = (e2, t, n) => e2.filter((i) => !t.known.has(i.name) && !n(i.name, i.from)).map((i) => {
7656
- let [a, s] = Ft(i.name, t);
7657
- return { code: a, messageKey: s, severity: "error", messageParams: { name: i.name }, range: { from: i.from, to: i.to } };
7658
- });
7659
- var Qe = new WeakMap;
7660
- var kt = (e2) => {
7661
- let t = Qe.get(e2);
7662
- return t || (t = new Map(e2.map((n) => [n.name, n])), Qe.set(e2, t)), t;
7693
+ var ln = (e2, t2, n, i) => t2.filter((r2) => !n.known.has(r2.name) && !i(r2.name, r2.from)).map((r2) => a(mn(r2.name, n), e2, { messageParams: { name: r2.name }, range: { from: r2.from, to: r2.to } }));
7694
+ var ot = new WeakMap;
7695
+ var cn = (e2) => {
7696
+ let t2 = ot.get(e2);
7697
+ return t2 || (t2 = new Map(e2.map((n) => [n.name, n])), ot.set(e2, t2)), t2;
7663
7698
  };
7664
- var Kt = (e2, t, n) => {
7665
- let i = kt(t), a = (s, r2) => {
7666
- if (n(s.name, s.from))
7699
+ var un = (e2, t2, n, i) => {
7700
+ let r2 = cn(n), o2 = (s, m) => {
7701
+ if (i(s.name, s.from))
7667
7702
  return;
7668
- let m = { from: s.from, to: s.to };
7669
- if (r2.fieldlessType) {
7670
- let l = { name: s.name, parent: r2.name, type: r2.fieldlessType };
7671
- return { code: "DMN_FIELD_OF_SINGLE_VALUE", severity: "error", messageKey: r2.fieldlessItems ? "validation_field_of_list_item" : "validation_field_of_single_value", messageParams: l, range: m };
7703
+ let l = { from: s.from, to: s.to };
7704
+ if (m.fieldlessType) {
7705
+ let u = { name: s.name, parent: m.name, type: m.fieldlessType };
7706
+ return a(m.fieldlessItems ? "DMN_FIELD_OF_LIST_ITEM" : "DMN_FIELD_OF_SINGLE_VALUE", e2, { messageParams: u, range: l });
7672
7707
  }
7673
- return { code: "DMN_UNKNOWN_MEMBER", severity: "error", messageKey: "validation_unknown_member", messageParams: { name: s.name, parent: r2.name }, range: m };
7708
+ let c = { name: s.name, parent: m.name };
7709
+ return a("DMN_UNKNOWN_MEMBER", e2, { messageParams: c, range: l });
7674
7710
  };
7675
- return e2.flatMap(({ segments: s }) => {
7676
- let r2 = i.get(s[0].name);
7677
- for (let m of s.slice(1)) {
7678
- if (!r2 || !r2.entries && !r2.fieldlessType)
7711
+ return t2.flatMap(({ segments: s }) => {
7712
+ let m = r2.get(s[0].name);
7713
+ for (let l of s.slice(1)) {
7714
+ if (!m || !m.entries && !m.fieldlessType)
7679
7715
  return [];
7680
- let u = r2.entries?.find((l) => l.name === m.name);
7681
- if (!u) {
7682
- let l = a(m, r2);
7683
- return l ? [l] : [];
7716
+ let c = m.entries?.find((u) => u.name === l.name);
7717
+ if (!c) {
7718
+ let u = o2(l, m);
7719
+ return u ? [u] : [];
7684
7720
  }
7685
- r2 = u;
7721
+ m = c;
7686
7722
  }
7687
7723
  return [];
7688
7724
  });
7689
7725
  };
7690
- var h3 = (e2, t, n, i) => {
7691
- if (te2(e2, t))
7726
+ var O4 = (e2, t2, n, i, r2) => {
7727
+ if (Q3(t2, n))
7692
7728
  return [];
7693
- let a = b(e2, t).filter((r2) => !r2.inFilterPredicate), s = Ut(e2, t, n.known);
7694
- return [...Vt(a, n, s), ...Kt(a, i, s)];
7729
+ let o2 = b(t2, n).filter((m) => !m.inFilterPredicate), s = z2(t2, n, i.known);
7730
+ return [...ln(e2, o2, i, s), ...un(e2, o2, r2, s)];
7695
7731
  };
7696
- var w3 = (e2) => e2.filter((t) => !ne(t)).map((t) => ({ code: "DMN_INPUT_DATA_NAME_MISSING", severity: "error", messageKey: "validation_input_data_name_missing", target: { kind: "inputData", inputDataId: t.id } }));
7697
- var nt = (e2) => (e2.definitions.drgElement ?? []).flatMap((t) => {
7698
- if (t.__$$element !== "inputData")
7732
+ var mt = ({ model: e2, table: t2, variables: n, knownNames: i, resultNames: r2, inputLiterals: o2, outputLiterals: s }) => {
7733
+ let m = [], l = t2.outputs.map((d2) => {
7734
+ let D = V(e2, d2);
7735
+ return D && q3(D.text);
7736
+ }), c = t2.outputs.map(() => 0), u = t2.inputs.map((d2) => d2.typeRef), _ = t2.outputs.map((d2) => t2.aggregation ? d2.typeRef : R(e2, d2));
7737
+ for (let d2 of t2.rules) {
7738
+ let D = [{ entries: d2.inputEntries, columns: t2.inputs, typeRefs: u, literals: o2, dialect: "unaryTests" }, { entries: d2.outputEntries, columns: t2.outputs, typeRefs: _, literals: s, dialect: "expression" }];
7739
+ for (let { entries: A, columns: p, typeRefs: L2, literals: f, dialect: h } of D)
7740
+ A.forEach((v2, S2) => {
7741
+ let de = p[S2];
7742
+ if (!de)
7743
+ return;
7744
+ let K = { kind: "cell", ruleId: d2.id, columnId: de.id }, J = R3(K, v2.text, h, n), Z = h === "expression" && !J.some((ee) => ee.severity === "error") ? l[S2] : undefined, De = Z ? P2(v2.text) : undefined, _e = J.some((ee) => ee.severity === "error") ? [] : C3(K, v2.text, h, M(e2, L2[S2]), L(e2, L2[S2]));
7745
+ m.push(...J, ...O4(K, v2.text, h, { known: i, results: r2, allowedValues: f[S2] }, n), ..._e), !(!Z || !v2.text.trim()) && (De === undefined ? c[S2] += 1 : _e.length === 0 && !Z.has(De) && m.push(a("DMN_OUTPUT_VALUE_NOT_ALLOWED", K, { messageParams: { value: v2.text.trim() } })));
7746
+ });
7747
+ }
7748
+ return t2.outputs.forEach((d2, D) => {
7749
+ let A = c[D];
7750
+ A > 0 && m.push(a("DMN_OUTPUT_VALUE_UNCHECKED", { kind: "output", outputId: d2.id, field: "allowedValues" }, { messageParams: { count: A } }));
7751
+ }), m;
7752
+ };
7753
+ var dt = (e2, t2, n, i, r2) => {
7754
+ let o2 = { ...n, field: "allowedValues" };
7755
+ switch (he(e2, t2)) {
7756
+ case "none":
7757
+ return [];
7758
+ case "list":
7759
+ return at(o2, e2.text, t2, r2.known);
7760
+ default: {
7761
+ let s = R3(o2, e2.text, "unaryTests", i), l = s.some((c) => c.severity === "error") ? [] : C3(o2, e2.text, "unaryTests", t2);
7762
+ return [...s, ...O4(o2, e2.text, "unaryTests", r2, i), ...l];
7763
+ }
7764
+ }
7765
+ };
7766
+ var lt = "string";
7767
+ var ct = (e2, t2) => t2 ? ie(e2.inputData, t2) ?? e2.scopeVariables?.find((n) => n.name === t2) : undefined;
7768
+ var ut = (e2, t2) => {
7769
+ if (t2.foreign)
7770
+ return { name: "Any", list: t2.isCollection, structure: false };
7771
+ if (!t2.recursive) {
7772
+ if (t2.components) {
7773
+ let n = [...t2.chain].reverse().find((r2) => r2.components?.length);
7774
+ return { name: n && e2.itemDefinitions?.includes(n) ? n.name : "context", list: t2.isCollection, structure: true };
7775
+ }
7776
+ return t2.baseTypeRef === undefined ? undefined : { name: t2.baseTypeRef, list: t2.isCollection, structure: false };
7777
+ }
7778
+ };
7779
+ var pt = (e2, t2) => {
7780
+ let n = e2.structure && !!t2?.structure && t2.name !== e2.name;
7781
+ return et(e2.structure && !n ? "Any" : e2.name, e2.list);
7782
+ };
7783
+ var pn = (e2, t2) => e2.structure && !t2.structure && t2.name === "Any" && e2.list === t2.list || e2.structure === t2.structure && e2.name === t2.name && e2.list === t2.list;
7784
+ var dn = (e2, t2) => {
7785
+ let n = t2.trim(), i = ct(e2, n);
7786
+ if (i)
7787
+ return se(e2, i.typeRef);
7788
+ let r2 = ue(n, "expression"), o2 = Ce(n);
7789
+ if (r2.length !== 1 || r2[0] !== o2)
7790
+ return;
7791
+ let [s, ...m] = o2.split("."), l = m.length ? ct(e2, s) : undefined;
7792
+ if (l)
7793
+ return J(se(e2, l.typeRef), m).type;
7794
+ };
7795
+ var se3 = (e2) => ({ kind: "input", inputId: e2, field: "expression" });
7796
+ var Dt = ({ table: e2 }) => e2.inputs.flatMap((t2) => t2.expressionText.trim() ? [] : [a("DMN_INPUT_EXPRESSION_MISSING", se3(t2.id))]);
7797
+ var _t = ({ table: e2, variables: t2, knownNames: n, resultNames: i }) => e2.inputs.flatMap((r2) => {
7798
+ let o2 = se3(r2.id);
7799
+ return [...R3(o2, r2.expressionText, "expression", t2), ...O4(o2, r2.expressionText, "expression", { known: n, results: i }, t2)];
7800
+ });
7801
+ var ft = ({ model: e2, table: t2 }) => t2.inputs.flatMap((n) => {
7802
+ let i = dn(e2, n.expressionText), r2 = i && ut(e2, i), o2 = n.typeRef ? ut(e2, se(e2, n.typeRef)) : { name: lt, list: false, structure: false };
7803
+ if (!(!!r2 && (r2.structure || r2.name !== "Any" && r.includes(r2.name))) || (o2 ? pn(r2, o2) : r2.structure))
7699
7804
  return [];
7700
- let n = { id: g(t), name: t["@_name"], variableName: t.variable?.["@_name"] };
7701
- return w3([n]).map((i) => ({ ...i, elementName: fe(t).trim() }));
7805
+ let m = !r2.structure && !r2.list && r2.name === "string" && !!o2 && !o2.list && o.has(o2.name);
7806
+ return [a(m ? "DMN_COLUMN_TYPE_MISMATCH_DURATION" : "DMN_COLUMN_TYPE_MISMATCH", se3(n.id), { messageParams: { name: n.expressionText.trim(), declared: pt(r2, o2), column: o2 ? pt(o2, r2) : f(e2, n.typeRef) ?? lt } })];
7702
7807
  });
7703
- var G3 = { kind: "document" };
7704
- var Yt = (e2, t) => {
7808
+ var gt = ({ model: e2, table: t2, variables: n, knownNames: i, resultNames: r2, inputLiterals: o2 }) => t2.inputs.flatMap((s, m) => s.allowedValues ? dt(s.allowedValues, M(e2, s.typeRef), { kind: "input", inputId: s.id }, n, { known: i, results: r2, allowedValues: o2[m] }) : []);
7809
+ var yt = ({ table: e2 }) => {
7810
+ let t2 = new Map;
7811
+ return e2.outputs.forEach((n, i) => {
7812
+ let r2 = te(n, i);
7813
+ t2.set(r2, (t2.get(r2) ?? 0) + 1);
7814
+ }), e2.outputs.flatMap((n, i) => {
7815
+ let r2 = { kind: "output", outputId: n.id }, o2 = te(n, i), s = (t2.get(o2) ?? 0) > 1 ? [a("DMN_DUPLICATE_OUTPUT_NAME", r2, { messageParams: { name: o2 } })] : [];
7816
+ return n.name?.trim() ? Z(n.name.trim()) || s.push(a("DMN_OUTPUT_NAME_INVALID", r2, { messageParams: { name: n.name.trim() } })) : e2.outputs.length > 1 && s.push(a("DMN_OUTPUT_NAME_MISSING", r2)), s;
7817
+ });
7818
+ };
7819
+ var Tt = ({ model: e2, table: t2, variables: n, knownNames: i, resultNames: r2, outputLiterals: o2 }) => t2.outputs.flatMap((s, m) => s.allowedValues ? dt(s.allowedValues, M(e2, R(e2, s)), { kind: "output", outputId: s.id }, n, { known: i, results: r2, allowedValues: o2[m] }) : []);
7820
+ var Nt = ({ name: e2, variableName: t2, decisionId: n, elementName: i }) => {
7821
+ let r2 = n === undefined ? { kind: "decision" } : { kind: "decision", decisionId: n }, o2 = i === undefined ? {} : { elementName: i }, s = ui({ name: e2, variableName: t2 }).trim();
7822
+ return s ? Z(s) ? [] : [a("DMN_DECISION_NAME_INVALID", r2, { messageParams: { name: s }, ...o2 })] : [a("DMN_DECISION_NAME_MISSING", r2, o2)];
7823
+ };
7824
+ var oe2 = ({ model: e2 }) => Nt({ name: e2.decision.name, variableName: e2.decision.variableName });
7825
+ var Et = (e2, t2 = false) => t2 ? y(e2.definitions).flatMap((n) => Nt({ name: n["@_name"] ?? "", variableName: n.variable?.["@_name"], decisionId: N2(n), elementName: be(n).trim() })) : [];
7826
+ var Dn = (e2, t2, n) => !n || !O(n) || [t2, n].some((i) => x(i) === "Any") ? true : L(e2, t2) ? false : !O(t2) || x(t2) === x(n);
7827
+ var Mt = ({ model: e2, table: t2 }) => {
7828
+ let { aggregation: n } = t2;
7829
+ return t2.hitPolicy !== t.Collect || !n ? [] : t2.outputs.flatMap((i) => {
7830
+ let r2 = R(e2, i);
7831
+ return r2 && !k(e2, n, i) ? [a("DMN_COLLECT_AGGREGATION_TYPE", { kind: "output", outputId: i.id }, { messageParams: { aggregation: n, typeRef: r2 } })] : [];
7832
+ });
7833
+ };
7834
+ var It = ({ model: e2, table: t2 }) => {
7835
+ let { aggregation: n } = t2;
7836
+ if (t2.hitPolicy !== t.Collect || !n)
7837
+ return [];
7838
+ let i = e2.decision.variableTypeRef, r2 = t2.outputs.length === 1, o2 = f(e2, i);
7839
+ return !!i && (r2 ? !Dn(e2, i, f(e2, w(n, t2.outputs[0]))) : L(e2, i) || !!o2 && O(o2) && o2 !== "Any") ? [a(r2 ? "DMN_AGGREGATION_RESULT_TYPE_SINGLE_OUTPUT" : "DMN_AGGREGATION_RESULT_TYPE", { kind: "decision" }, { messageParams: { aggregation: n, typeRef: i } })] : [];
7840
+ };
7841
+ var Rt = ({ model: e2, table: t2 }) => {
7842
+ if (!v.has(t2.hitPolicy))
7843
+ return [];
7844
+ let n = t2.outputs.flatMap((i) => V(e2, i) ?? []);
7845
+ return n.length === 0 ? [a("DMN_RANKED_OUTPUT_VALUES_MISSING", { kind: "decision" }, { messageParams: { hitPolicy: t2.hitPolicy } })] : n.every((i) => G2(i.text) < 2) ? [a("DMN_RANKED_OUTPUT_VALUES_SINGLE", { kind: "decision" }, { messageParams: { hitPolicy: t2.hitPolicy } })] : [];
7846
+ };
7847
+ var Ot = ({ model: e2, table: t2 }) => {
7848
+ let n = e2.decision.variableTypeRef;
7849
+ return b2(t2) === "list" && n && _(e2, n) ? [a("DMN_LIST_RESULT_TYPE", { kind: "decision" }, { messageParams: { hitPolicy: t2.hitPolicy, typeRef: n } })] : [];
7850
+ };
7851
+ var At = (e2) => e2.filter((t2) => !re(t2)).map((t2) => a("DMN_INPUT_DATA_NAME_MISSING", { kind: "inputData", inputDataId: t2.id }, t2.elementName === undefined ? {} : { elementName: t2.elementName }));
7852
+ var ae2 = ({ model: e2 }) => At(e2.inputData);
7853
+ var Lt = (e2) => At(E2(e2.definitions).map((t2) => ({ id: N2(t2), name: t2["@_name"], variableName: t2.variable?.["@_name"], elementName: be(t2).trim() })));
7854
+ var vt = ({ model: e2, table: t2, decisionIdentifier: n }) => {
7855
+ let i = [], r2 = new Set((e2.scopeVariables ?? []).map((l) => l.name)), o2 = Te(t2), s = e2.inputData.filter((l) => re(l)), m = new Map;
7856
+ return s.forEach((l) => {
7857
+ let c = re(l);
7858
+ m.set(c, (m.get(c) ?? 0) + 1);
7859
+ }), s.forEach((l) => {
7860
+ let c = re(l), u = { kind: "inputData", inputDataId: l.id };
7861
+ (m.get(c) ?? 0) > 1 || c === n ? i.push(a("DMN_DUPLICATE_INPUT_DATA_NAME", u, { messageParams: { name: c } })) : r2.has(c) && i.push(a("DMN_INPUT_DATA_SHADOWS_DECISION", u, { messageParams: { name: c } })), h(c) || i.push(a("DMN_INPUT_DATA_NAME_INVALID", u, { messageParams: { name: c } })), !l.requirementId && o2.has(c) && i.push(a("DMN_MISSING_REQUIREMENT", u, { messageParams: { name: c } }));
7862
+ }), i;
7863
+ };
7864
+ var $2 = { kind: "document" };
7865
+ var _n = (e2, t2) => {
7705
7866
  let n = new Set;
7706
- for (let i = G(e2, t);i && !i.components?.length; i = G(e2, i)) {
7707
- if (i === t)
7867
+ for (let i = ne2(e2, t2);i && !i.components?.length; i = ne2(e2, i)) {
7868
+ if (i === t2)
7708
7869
  return true;
7709
7870
  if (n.has(i))
7710
7871
  return false;
@@ -7712,194 +7873,162 @@ var Yt = (e2, t) => {
7712
7873
  }
7713
7874
  return false;
7714
7875
  };
7715
- var st = (e2) => e2.typeRef === undefined && !e2.components?.length;
7716
- var rt = (e2, t) => {
7717
- let n = t.components ?? [], i = new Set;
7718
- return n.flatMap((a) => {
7719
- let s = i.has(a.name);
7720
- return i.add(a.name), [...s ? [{ code: "DMN_ITEM_COMPONENT_DUPLICATE_NAME", severity: "error", messageKey: "validation_item_component_duplicate_name", messageParams: { type: e2, field: a.name }, target: G3 }] : [], ...h(a.name) ? [] : [{ code: "DMN_ITEM_COMPONENT_NAME_INVALID", severity: "error", messageKey: "validation_item_component_name_invalid", messageParams: { type: e2, field: a.name }, target: G3 }], ...st(a) ? [{ code: "DMN_ITEM_COMPONENT_EMPTY", severity: "warning", messageKey: "validation_item_component_empty", messageParams: { type: e2, field: a.name }, target: G3 }] : [], ...rt(e2, a)];
7876
+ var xt = (e2) => e2.typeRef === undefined && !e2.components?.length;
7877
+ var Pt = (e2, t2) => {
7878
+ let n = t2.components ?? [], i = new Set;
7879
+ return n.flatMap((r2) => {
7880
+ let o2 = i.has(r2.name);
7881
+ i.add(r2.name);
7882
+ let s = { type: e2, field: r2.name };
7883
+ return [...o2 ? [a("DMN_ITEM_COMPONENT_DUPLICATE_NAME", $2, { messageParams: s })] : [], ...h(r2.name) ? [] : [a("DMN_ITEM_COMPONENT_NAME_INVALID", $2, { messageParams: s })], ...xt(r2) ? [a("DMN_ITEM_COMPONENT_EMPTY", $2, { messageParams: s })] : [], ...Pt(e2, r2)];
7721
7884
  });
7722
7885
  };
7723
- var at = (e2) => e2.typeRef !== undefined && !!e2.components?.length || !!e2.components?.some(at);
7724
- var it = new WeakMap;
7725
- var M2 = (e2) => {
7726
- let t = e2.itemDefinitions;
7727
- if (!t)
7886
+ var bt = (e2) => e2.typeRef !== undefined && !!e2.components?.length || !!e2.components?.some(bt);
7887
+ var St = new WeakMap;
7888
+ var Ut = (e2) => {
7889
+ let t2 = e2.itemDefinitions;
7890
+ if (!t2)
7728
7891
  return [];
7729
- let n = it.get(t);
7892
+ let n = St.get(t2);
7730
7893
  if (n && n.namespace === e2.namespace && n.namespaces === e2.namespaces)
7731
7894
  return [...n.diagnostics];
7732
- let i = Bt(e2, t);
7733
- return it.set(t, { namespace: e2.namespace, namespaces: e2.namespaces, diagnostics: i }), [...i];
7895
+ let i = fn(e2, t2);
7896
+ return St.set(t2, { namespace: e2.namespace, namespaces: e2.namespaces, diagnostics: i }), [...i];
7734
7897
  };
7735
- var Bt = (e2, t) => {
7898
+ var fn = (e2, t2) => {
7736
7899
  let n = new Set;
7737
- return t.flatMap((i) => {
7738
- let a = i.name, s = n.has(a);
7739
- n.add(a);
7740
- let r2 = (m, u) => ({ code: m, severity: "error", messageKey: u, messageParams: { type: a }, target: G3 });
7741
- return [...s ? [r2("DMN_ITEM_DEFINITION_DUPLICATE_NAME", "validation_item_definition_duplicate_name")] : [], ...at(i) ? [r2("DMN_ITEM_DEFINITION_SIMPLE_AND_STRUCTURED", "validation_item_definition_simple_and_structured")] : [], ...Yt(e2, i) ? [r2("DMN_ITEM_DEFINITION_CYCLE", "validation_item_definition_cycle")] : [], ...st(i) ? [{ ...r2("DMN_ITEM_DEFINITION_EMPTY", "validation_item_definition_empty"), severity: "warning" }] : [], ...rt(a, i)];
7900
+ return t2.flatMap((i) => {
7901
+ let r2 = i.name, o2 = n.has(r2);
7902
+ n.add(r2);
7903
+ let s = (m) => a(m, $2, { messageParams: { type: r2 } });
7904
+ return [...o2 ? [s("DMN_ITEM_DEFINITION_DUPLICATE_NAME")] : [], ...bt(i) ? [s("DMN_ITEM_DEFINITION_SIMPLE_AND_STRUCTURED")] : [], ..._n(e2, i) ? [s("DMN_ITEM_DEFINITION_CYCLE")] : [], ...xt(i) ? [s("DMN_ITEM_DEFINITION_EMPTY")] : [], ...Pt(r2, i)];
7742
7905
  });
7743
7906
  };
7744
- var ot = (e2, t, n, i, a) => {
7745
- let s = { ...n, field: "allowedValues" }, r2 = (m) => m.map((u) => ({ ...u, target: s }));
7746
- switch (pe(e2, t)) {
7747
- case "none":
7748
- return [];
7749
- case "list":
7750
- return r2(tt(e2.text, t, a.known));
7751
- default: {
7752
- let m = I2(e2.text, "unaryTests", i), l = m.some((_) => _.severity === "error") ? [] : se(e2.text, "unaryTests", t);
7753
- return r2([...m, ...h3(e2.text, "unaryTests", a, i), ...l]);
7754
- }
7755
- }
7756
- };
7757
- var Gt = (e2, t, n) => !n || !g2(n) || [t, n].some((i) => R2(i) === "Any") ? true : T(e2, t) ? false : !g2(t) || R2(t) === R2(n);
7758
- var dt = (e2) => {
7759
- let t = e2.trim();
7760
- return t === "" || t === "-";
7761
- };
7762
- var qt = (e2) => JSON.stringify(e2.inputEntries.map((t) => dt(t.text) ? null : t.text.trim()));
7763
- var Ht = (e2) => ({ kind: "row", ruleId: e2 });
7764
- var lt = "string";
7765
- var Wt = new Set(["dayTimeDuration", "yearMonthDuration"]);
7766
- var mt = (e2, t) => t ? ne2(e2.inputData, t) ?? e2.scopeVariables?.find((n) => n.name === t) : undefined;
7767
- var ct = (e2, t) => {
7768
- if (t.foreign)
7769
- return { name: "Any", list: t.isCollection, structure: false };
7770
- if (!t.recursive) {
7771
- if (t.components) {
7772
- let n = [...t.chain].reverse().find((a) => a.components?.length);
7773
- return { name: n && e2.itemDefinitions?.includes(n) ? n.name : "context", list: t.isCollection, structure: true };
7774
- }
7775
- return t.baseTypeRef === undefined ? undefined : { name: t.baseTypeRef, list: t.isCollection, structure: false };
7776
- }
7907
+ var me = ({ model: e2 }) => Ut(e2);
7908
+ var Ct = (e2) => Ut(Z2(e2.definitions));
7909
+ var F3 = { kind: "decision" };
7910
+ var le2 = (e2) => !e2.trim();
7911
+ var ht = ({ model: e2 }) => le2(e2.decision.literalExpression.text) ? [a("DMN_LITERAL_EXPRESSION_EMPTY", F3)] : [];
7912
+ var wt = ({ model: e2 }) => {
7913
+ let { literalExpression: t2 } = e2.decision;
7914
+ return le2(t2.text) || t2.typeRef ? [] : [a("DMN_LITERAL_EXPRESSION_TYPE_MISSING", F3)];
7777
7915
  };
7778
- var ut = (e2, t) => {
7779
- let n = e2.structure && !!t?.structure && t.name !== e2.name;
7780
- return l(e2.structure && !n ? "Any" : e2.name, e2.list);
7916
+ var Vt = ({ model: e2, variables: t2 }) => {
7917
+ let { literalExpression: n } = e2.decision;
7918
+ if (le2(n.text))
7919
+ return [];
7920
+ let i = new Set(t2.map((s) => s.name)), r2 = R3(F3, n.text, "expression", t2), o2 = r2.some((s) => s.severity === "error") ? [] : C3(F3, n.text, "expression", M(e2, n.typeRef), L(e2, n.typeRef));
7921
+ return [...r2, ...O4(F3, n.text, "expression", { known: i, results: new Set([ne(e2.decision.variableName, e2.decision.name)]) }, t2), ...o2];
7781
7922
  };
7782
- var $t = (e2, t) => e2.structure && !t.structure && t.name === "Any" && e2.list === t.list || e2.structure === t.structure && e2.name === t.name && e2.list === t.list;
7783
- var Qt = (e2, t) => {
7784
- let n = t.trim(), i = mt(e2, n);
7785
- if (i)
7786
- return J2(e2, i.typeRef);
7787
- let a = me(n, "expression"), s = _e(n);
7788
- if (a.length !== 1 || a[0] !== s)
7923
+ var gn = (e2) => JSON.stringify(e2.inputEntries.map((t2) => Q3(t2.text, "unaryTests") ? null : t2.text.trim()));
7924
+ var yn = (e2) => {
7925
+ if (ye(e2))
7926
+ return null;
7927
+ let t2 = P2(e2);
7928
+ if (t2 === undefined)
7789
7929
  return;
7790
- let [r2, ...m] = s.split("."), u = m.length ? mt(e2, r2) : undefined;
7791
- if (u)
7792
- return K(J2(e2, u.typeRef), m).type;
7930
+ let n = e2.trim();
7931
+ return Z3(n) !== undefined ? [n.slice(0, n.indexOf("(")), t2] : typeof t2 == "number" ? [`number/${(n.split(".")[1] ?? "").trim().length}`, t2] : [typeof t2, t2];
7793
7932
  };
7794
- var ae2 = (e2) => {
7795
- let t = e2.decision.decisionTable, n = [], i = B3(e2.inputData, e2.scopeVariables, e2), a = new Set(i.map((o) => o.name)), s = te(e2.decision.variableName, e2.decision.name), r2 = new Set([s, ...t.outputs.map((o, c) => ee(o, c))]), m = (o) => new Set(o ? X(o.text) : []), u2 = t.inputs.map((o) => m(o.allowedValues)), l = t.outputs.map((o) => m(A(e2, o)));
7796
- if (e2.decision.name.trim() || n.push({ code: "DMN_DECISION_NAME_MISSING", severity: "error", messageKey: "validation_decision_name_missing", target: { kind: "decision" } }), t.rules.length === 0 && n.push({ code: "DMN_NO_RULES", severity: "warning", messageKey: "validation_no_rules", target: { kind: "decision" } }), t.hitPolicy === e.Collect && t.aggregation) {
7797
- let { aggregation: o } = t;
7798
- t.outputs.forEach((f2) => {
7799
- let g = p(e2, f2);
7800
- g && !S(e2, o, f2) && n.push({ code: "DMN_COLLECT_AGGREGATION_TYPE", severity: "error", messageKey: "validation_collect_aggregation_type", messageParams: { aggregation: o, typeRef: g }, target: { kind: "output", outputId: f2.id } });
7801
- });
7802
- let c = e2.decision.variableTypeRef, d = t.outputs.length === 1, p2 = u(e2, c);
7803
- !!c && (d ? !Gt(e2, c, u(e2, C(o, t.outputs[0]))) : T(e2, c) || !!p2 && g2(p2) && p2 !== "Any") && n.push({ code: "DMN_AGGREGATION_RESULT_TYPE", severity: d ? "warning" : "error", messageKey: "validation_aggregation_result_type", messageParams: { aggregation: o, typeRef: c }, target: { kind: "decision" } });
7804
- }
7805
- if (m3.has(t.hitPolicy)) {
7806
- let o = t.outputs.flatMap((c) => A(e2, c) ?? []);
7807
- o.length === 0 ? n.push({ code: "DMN_RANKED_OUTPUT_VALUES_MISSING", severity: "error", messageKey: "validation_ranked_output_values_missing", messageParams: { hitPolicy: t.hitPolicy }, target: { kind: "decision" } }) : o.every((c) => Je(c.text) < 2) && n.push({ code: "DMN_RANKED_OUTPUT_VALUES_SINGLE", severity: "warning", messageKey: "validation_ranked_output_values_single", messageParams: { hitPolicy: t.hitPolicy }, target: { kind: "decision" } });
7808
- }
7809
- let _ = e2.decision.variableTypeRef;
7810
- O(t) === "list" && _ && x(e2, _) && n.push({ code: "DMN_LIST_RESULT_TYPE", severity: "error", messageKey: "validation_list_result_type", messageParams: { hitPolicy: t.hitPolicy, typeRef: _ }, target: { kind: "decision" } });
7811
- let D = new Map;
7812
- t.outputs.forEach((o, c) => {
7813
- let d = ee(o, c);
7814
- D.set(d, (D.get(d) ?? 0) + 1);
7815
- }), t.inputs.forEach((o, c) => {
7816
- let p = { ...{ kind: "input", inputId: o.id }, field: "expression" };
7817
- o.expressionText.trim() || n.push({ code: We, severity: "error", messageKey: "validation_input_expression_missing", target: p }), n.push(...[...I2(o.expressionText, "expression", i), ...h3(o.expressionText, "expression", { known: a, results: r2 }, i)].map((y) => ({ ...y, target: p })));
7818
- let b = Qt(e2, o.expressionText), f2 = b && ct(e2, b), g = o.typeRef ? ct(e2, J2(e2, o.typeRef)) : { name: lt, list: false, structure: false };
7819
- if (!!f2 && (f2.structure || f2.name !== "Any" && r.includes(f2.name)) && (g ? !$t(f2, g) : !f2.structure)) {
7820
- let y = !f2.structure && !f2.list && f2.name === "string" && !!g && !g.list && Wt.has(g.name);
7821
- n.push({ code: "DMN_COLUMN_TYPE_MISMATCH", severity: "error", messageKey: y ? "validation_column_type_mismatch_duration" : "validation_column_type_mismatch", messageParams: { name: o.expressionText.trim(), declared: ut(f2, g), column: g ? ut(g, f2) : u(e2, o.typeRef) ?? lt }, target: p });
7822
- }
7823
- if (o.allowedValues) {
7824
- let y = E2(e2, o.typeRef), S = { known: a, results: r2, allowedValues: u2[c] };
7825
- n.push(...ot(o.allowedValues, y, { kind: "input", inputId: o.id }, i, S));
7826
- }
7827
- }), t.outputs.forEach((o, c) => {
7828
- let d = { kind: "output", outputId: o.id }, p2 = ee(o, c);
7829
- (D.get(p2) ?? 0) > 1 && n.push({ code: "DMN_DUPLICATE_OUTPUT_NAME", severity: "error", messageKey: "validation_duplicate_output_name", messageParams: { name: p2 }, target: d }), o.name?.trim() ? J(o.name.trim()) || n.push({ code: "DMN_OUTPUT_NAME_INVALID", severity: "error", messageKey: "validation_output_name_invalid", messageParams: { name: o.name.trim() }, target: d }) : t.outputs.length > 1 && n.push({ code: "DMN_OUTPUT_NAME_MISSING", severity: "error", messageKey: "validation_output_name_missing", target: d }), o.allowedValues && n.push(...ot(o.allowedValues, E2(e2, p(e2, o)), { kind: "output", outputId: o.id }, i, { known: a, results: r2, allowedValues: l[c] }));
7830
- });
7831
- let pt = new Set((e2.scopeVariables ?? []).map((o) => o.name)), ft = xe(t);
7832
- n.push(...w3(e2.inputData));
7833
- let le = e2.inputData.filter((o) => ne(o)), q = new Map;
7834
- le.forEach((o) => {
7835
- let c = ne(o);
7836
- q.set(c, (q.get(c) ?? 0) + 1);
7837
- }), le.forEach((o) => {
7838
- let c = ne(o), d = { kind: "inputData", inputDataId: o.id };
7839
- (q.get(c) ?? 0) > 1 || c === s ? n.push({ code: "DMN_DUPLICATE_INPUT_DATA_NAME", severity: "error", messageKey: "validation_duplicate_input_data_name", messageParams: { name: c }, target: d }) : pt.has(c) && n.push({ code: "DMN_INPUT_DATA_SHADOWS_DECISION", severity: "error", messageKey: "validation_input_data_shadows_decision", messageParams: { name: c }, target: d }), h(c) || n.push({ code: "DMN_INPUT_DATA_NAME_INVALID", severity: "error", messageKey: "validation_input_data_name_invalid", messageParams: { name: c }, target: d }), !o.requirementId && ft.has(c) && n.push({ code: "DMN_MISSING_REQUIREMENT", severity: "error", messageKey: "validation_missing_requirement", messageParams: { name: c }, target: d });
7840
- });
7841
- let gt = t.outputs.map((o) => {
7842
- let c = A(e2, o);
7843
- return c && Ze(c.text);
7844
- }), me = t.outputs.map(() => 0), ce = new Set, ue = false;
7845
- return t.rules.forEach((o) => {
7846
- let c = Ht(o.id);
7847
- if ((o.inputEntries.length !== t.inputs.length || o.outputEntries.length !== t.outputs.length) && n.push({ code: "DMN_RULE_ENTRY_COUNT", severity: "error", messageKey: "validation_rule_entry_count", target: c }), t.hitPolicy === e.First && (ue ? n.push({ code: "DMN_UNREACHABLE_RULE", severity: "warning", messageKey: "validation_unreachable_rule", target: c }) : o.inputEntries.every((p) => dt(p.text)) && (ue = true)), !f.has(t.hitPolicy)) {
7848
- let p = qt(o);
7849
- ce.has(p) ? n.push({ code: "DMN_DUPLICATE_RULE", severity: "warning", messageKey: "validation_duplicate_rule", target: c }) : ce.add(p);
7850
- }
7851
- let d = [{ entries: o.inputEntries, columns: t.inputs, literals: u2, dialect: "unaryTests" }, { entries: o.outputEntries, columns: t.outputs, literals: l, dialect: "expression" }];
7852
- for (let { entries: p, columns: b, literals: f2, dialect: g } of d)
7853
- p.forEach((E, y) => {
7854
- let S = b[y];
7855
- if (!S)
7856
- return;
7857
- let de = { kind: "cell", ruleId: o.id, columnId: S.id }, H = I2(E.text, g, i), W = g === "expression" && !H.some((O) => O.severity === "error") ? gt[y] : undefined, pe = W ? re2(E.text) : undefined, fe = H.some((O) => O.severity === "error") ? [] : se(E.text, g, E2(e2, S.typeRef)), _t = [...H, ...h3(E.text, g, { known: a, results: r2, allowedValues: f2[y] }, i), ...fe];
7858
- n.push(..._t.map((O) => ({ ...O, target: de }))), !(!W || !E.text.trim()) && (pe === undefined ? me[y] += 1 : fe.length === 0 && !W.has(pe) && n.push({ code: "DMN_OUTPUT_VALUE_NOT_ALLOWED", severity: "error", messageKey: "validation_output_value_not_allowed", messageParams: { value: E.text.trim() }, target: de }));
7859
- });
7860
- }), t.outputs.forEach((o, c) => {
7861
- let d = me[c];
7862
- d > 0 && n.push({ code: "DMN_OUTPUT_VALUE_UNCHECKED", severity: "warning", messageKey: "validation_output_value_unchecked", messageParams: { count: d }, target: { kind: "output", outputId: o.id, field: "allowedValues" } });
7863
- }), n.push(...M2(e2)), n;
7933
+ var Tn = (e2) => e2.outputEntries.map((t2) => {
7934
+ let n = yn(t2.text);
7935
+ return n === undefined ? undefined : JSON.stringify(n);
7936
+ });
7937
+ var ce = (e2) => ({ kind: "row", ruleId: e2 });
7938
+ var kt = ({ table: e2 }) => e2.rules.length === 0 ? [a("DMN_NO_RULES", { kind: "decision" })] : [];
7939
+ var Ft = ({ table: e2 }) => e2.rules.flatMap((t2) => t2.inputEntries.length !== e2.inputs.length || t2.outputEntries.length !== e2.outputs.length ? [a("DMN_RULE_ENTRY_COUNT", ce(t2.id))] : []);
7940
+ var Kt = ({ table: e2 }) => {
7941
+ if (e2.hitPolicy !== t.First)
7942
+ return [];
7943
+ let t2 = [], n = false;
7944
+ for (let i of e2.rules)
7945
+ n ? t2.push(a("DMN_UNREACHABLE_RULE", ce(i.id))) : i.inputEntries.every((r2) => Q3(r2.text, "unaryTests")) && (n = true);
7946
+ return t2;
7864
7947
  };
7865
- var oe2 = (e2) => {
7866
- let { literalExpression: t } = e2.decision, n = M2(e2), i = { kind: "decision" }, a = B3(e2.inputData, e2.scopeVariables, e2);
7867
- if (e2.decision.name.trim() || n.push({ code: "DMN_DECISION_NAME_MISSING", severity: "error", messageKey: "validation_decision_name_missing", target: i }), n.push(...w3(e2.inputData)), !t.text.trim())
7868
- return n.push({ code: "DMN_LITERAL_EXPRESSION_EMPTY", severity: "error", messageKey: "validation_literal_expression_empty", target: i }), n;
7869
- t.typeRef || n.push({ code: "DMN_LITERAL_EXPRESSION_TYPE_MISSING", severity: "warning", messageKey: "validation_literal_expression_type_missing", target: i });
7870
- let s = new Set(a.map((r2) => r2.name));
7871
- return n.push(...[...I2(t.text, "expression", a), ...h3(t.text, "expression", { known: s, results: new Set([te(e2.decision.variableName, e2.decision.name)]) }, a), ...ze(ie(t.text, "expression"), t.typeRef)].map((r2) => ({ ...r2, target: i }))), n;
7948
+ var Gt = ({ table: e2 }) => {
7949
+ if (S.has(e2.hitPolicy))
7950
+ return [];
7951
+ let t2 = [], n = e2.hitPolicy === t.Any, i = new Set, r2 = new Map;
7952
+ for (let o2 of e2.rules) {
7953
+ let s = ce(o2.id), m = gn(o2), l = n ? Tn(o2) : [], c = r2.get(m) ?? [];
7954
+ r2.set(m, l.map((d2, D) => c[D] ?? d2));
7955
+ let u = l.some((d2, D) => d2 !== undefined && c[D] !== undefined && d2 !== c[D]), _ = l.some((d2, D) => d2 === undefined || c[D] === undefined);
7956
+ i.has(m) ? e2.hitPolicy === t.Unique ? t2.push(a("DMN_DUPLICATE_RULE_UNIQUE", s)) : n ? u ? t2.push(a("DMN_DUPLICATE_RULE_ANY_CONFLICT", s)) : _ && t2.push(a("DMN_DUPLICATE_RULE", s)) : t2.push(a("DMN_DUPLICATE_RULE", s)) : i.add(m);
7957
+ }
7958
+ return t2;
7872
7959
  };
7873
- var Xt = new Set(["invalid-xml", "unsafe-xml", "migration-failed", "unsupported-version"]);
7874
- var jt = (e2) => Xt.has(e2) ? { code: "DMN_DOCUMENT_UNREADABLE", severity: "error", messageKey: "validation_document_unreadable", target: { kind: "document" } } : null;
7875
- var zt = (e2) => {
7876
- let t = e2.definitions.drgElement ?? [], n = new Set(t.filter((r2) => r2.__$$element === "inputData").map(g)), i = new Set(t.filter((r2) => r2.__$$element === "decision").map(g)), a = (r2, m) => {
7877
- if (!r2)
7960
+ var Yt = [oe2, kt, Mt, It, Rt, Ot, Dt, _t, ft, gt, yt, Tt, ae2, vt, Ft, Kt, Gt, mt, me];
7961
+ var Bt = [me, oe2, ae2, ht, wt, Vt];
7962
+ var Ht = [Lt, Et, Ct];
7963
+ var Nn = new Set(["invalid-xml", "unsafe-xml", "migration-failed", "unsupported-version"]);
7964
+ var qt = (e2) => Nn.has(e2) ? [a("DMN_DOCUMENT_UNREADABLE", { kind: "document" })] : [];
7965
+ var Qt = (e2) => e2.definitions["@_namespace"] ? [] : [a("DMN_DOCUMENT_NAMESPACE_MISSING", { kind: "document" })];
7966
+ var Wt = (e2) => {
7967
+ let t2 = y(e2.definitions), n = new Set(E2(e2.definitions).map(N2)), i = new Set(t2.map(N2)), r2 = (s, m) => {
7968
+ if (!s)
7878
7969
  return false;
7879
- let u = r2["@_href"], l = $(u);
7880
- return l !== undefined ? !m.has(l) : !u;
7970
+ let l = s["@_href"], c = I(l);
7971
+ return c !== undefined ? !m.has(c) : !l;
7881
7972
  };
7882
- return t.filter((r2) => r2.__$$element === "decision").some((r2) => (r2.informationRequirement ?? []).some((m) => a(m.requiredInput, n) || a(m.requiredDecision, i))) ? [{ code: "DMN_DANGLING_REQUIREMENT", severity: "error", messageKey: "validation_dangling_requirement", target: { kind: "document" } }] : [];
7973
+ return t2.some((s) => (s.informationRequirement ?? []).some((m) => r2(m.requiredInput, n) || r2(m.requiredDecision, i))) ? [a("DMN_DANGLING_REQUIREMENT", { kind: "document" })] : [];
7974
+ };
7975
+ var En = (e2) => e2.isCollection ? `list<${e2.components ? "context" : e2.baseTypeRef ?? "Any"}>` : e2.baseTypeRef;
7976
+ var Xt = (e2) => {
7977
+ let t2 = q(e2);
7978
+ if (t2)
7979
+ return { fieldlessType: t2 };
7980
+ let n = H2(e2);
7981
+ return n ? { fieldlessType: n, fieldlessItems: true } : {};
7982
+ };
7983
+ var jt = (e2) => Q(e2) ? [] : e2.components && !e2.recursive ? e2.components.map((t2) => {
7984
+ let n = jt(t2.type), i = En(t2.type);
7985
+ return { name: t2.name, ...i ? { detail: i } : {}, ...n ? { entries: n } : {}, ...Xt(t2.type) };
7986
+ }) : undefined;
7987
+ var ue2 = (e2, t2, n, i) => {
7988
+ let r2 = { name: e2, ...t2 ? { detail: t2 } : {} };
7989
+ if (i?.length)
7990
+ return { ...r2, entries: i.map((m) => ue2(m.name, m.typeRef, n, m.members)) };
7991
+ let o2 = se(n ?? {}, t2), s = n && jt(o2);
7992
+ return { ...r2, ...s ? { entries: s } : {}, ...Xt(o2) };
7993
+ };
7994
+ var pe = (e2, t2 = [], n) => {
7995
+ let i = e2.filter((s) => re(s)), r2 = i.map((s) => ue2(re(s), s.typeRef, n)), o2 = new Set(i.map(re));
7996
+ for (let s of t2)
7997
+ o2.has(s.name) || (o2.add(s.name), r2.push(ue2(s.name, s.typeRef, n, s.members)));
7998
+ return r2;
7999
+ };
8000
+ var zt = (e2) => {
8001
+ let t2 = e2.decision.decisionTable, n = pe(e2.inputData, e2.scopeVariables, e2), i = ne(e2.decision.variableName, e2.decision.name), r2 = (o2) => new Set(o2 ? j(o2.text) : []);
8002
+ return { model: e2, table: t2, variables: n, knownNames: new Set(n.map((o2) => o2.name)), decisionIdentifier: i, resultNames: new Set([i, ...t2.outputs.map((o2, s) => te(o2, s))]), inputLiterals: t2.inputs.map((o2) => r2(o2.allowedValues)), outputLiterals: t2.outputs.map((o2) => r2(V(e2, o2))) };
8003
+ };
8004
+ var $t = (e2) => ({ model: e2, variables: pe(e2.inputData, e2.scopeVariables, e2) });
8005
+ var Jt = (e2) => {
8006
+ let t2 = zt(e2);
8007
+ return Yt.flatMap((n) => n(t2));
8008
+ };
8009
+ var Zt = (e2) => {
8010
+ let t2 = $t(e2);
8011
+ return Bt.flatMap((n) => n(t2));
8012
+ };
8013
+ var Mn = async (e2, t2, { parsed: n, allowDrdDocuments: i = false }) => {
8014
+ if (y(t2.definitions).length === 1) {
8015
+ let o2 = n?.kind === "decision-table" ? n : await ri(e2);
8016
+ if (o2.kind === "decision-table")
8017
+ return Jt(o2.model);
8018
+ }
8019
+ let r2 = Eo(t2);
8020
+ return r2 ? Zt(r2) : Ht.flatMap((o2) => o2(t2, i));
7883
8021
  };
7884
- var Jt = async (e2, t) => {
7885
- let n = await bs(e2);
7886
- if (n.status === "error") {
7887
- let s = jt(n.reason);
7888
- return s ? [s] : [];
7889
- }
7890
- let i = zt(n.document);
7891
- if (i.length > 0)
7892
- return i;
7893
- if (w(n.document.definitions).length === 1) {
7894
- let s = t?.kind === "decision-table" ? t : await At(e2);
7895
- if (s.kind === "decision-table")
7896
- return i.push(...ae2(s.model)), i;
7897
- }
7898
- let a = Ui(n.document);
7899
- return a ? i.push(...oe2(a)) : i.push(...nt(n.document), ...M2(Q(n.document.definitions))), i;
8022
+ var In = async (e2, { parsed: t2, allowDrdDocuments: n = false } = {}) => {
8023
+ let i = await Cs(e2);
8024
+ if (i.status === "error")
8025
+ return qt(i.reason);
8026
+ let r2 = Wt(i.document), o2 = [...Qt(i.document), ...r2];
8027
+ return r2.length ? o2 : [...o2, ...await Mn(e2, i.document, { parsed: t2, allowDrdDocuments: n })];
7900
8028
  };
7901
8029
  export {
7902
- Jt as validateDmnDocument
8030
+ tn as translateDmnDiagnostic,
8031
+ In as validateDmnDocument
7903
8032
  };
7904
8033
 
7905
- //# debugId=C52D52571BE6132564756E2164756E21
8034
+ //# debugId=6F91B418F3940D8864756E2164756E21