);
  return {
    sinkGroup: sinkGroup,
    exception: exception,
    violatedPolicies: violations.map(v => {
      return { policy: v.originalPolicy, disposition: v.disposition};
    }),
  };
}
(async function (sinkGroup) {
  for (let sinkGroup of params.get("sinkGroups").split(",", maxSinkGroupCount)) {
    results.push(await trySendPlainStringToTrustedTypeSink(sinkGroup));
  }
  parent.postMessage(results);
})();
</script>
