/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
function show(nd,arg,appCtx){var packs;if(packs=nd.builtinpacks.getPackMetadata(nd,appCtx)){let prefixes=nd.builtinpacks.getPrefixes();arg=arg?arg.toLowerCase():arg;for(let pack of prefixes){if(!arg||arg===pack)_display(packs[pack],appCtx.colors)}}};function _display(pack,clr){var rules,rule,opts,oos,summary=[];console.log(`\n\n${clr.BRIGHTRED("\u25CF")}  ${clr.CYAN("Pack")} ${clr.BRIGHTRED(`${pack.prefix}`)} ${clr.CYAN(" - Rules deprecated by default")}`);rules=pack.rules;for(rule in rules){opts=rules[rule];oos=opts.hasOwnProperty("inservice")&&!opts.inservice;if(opts.hasOwnProperty("status")&&opts.status==="deprecated"){summary.push(rule+(oos?"_":""))}}if(summary.length){summary=summary.sort()}else{console.log(clr.BRIGHTYELLOW(`●  None.`));return}for(rule of summary){oos=rule.endsWith("_");rule=oos?rule.substring(0,rule.length-1):rule;console.log(clr.BRIGHTYELLOW(`●  ${rule}`)+clr.RED(`${oos?" (out of service)":""}`))}};module.exports.show=show;