package com.l7tech.policy.assertion;

import com.l7tech.util.XmlSafe;
import java.io.Serializable;

@XmlSafe
public class JmsMessagePropertyRuleSet implements Serializable {
   private boolean _passThruAll;
   private JmsMessagePropertyRule[] _rules;
   static final long serialVersionUID = 278101563114047531L;
   private static final String[] a;

   public JmsMessagePropertyRuleSet() {
      this._passThruAll = true;
      this._rules = new JmsMessagePropertyRule[0];
   }

   @XmlSafe
   public JmsMessagePropertyRuleSet(boolean var1, JmsMessagePropertyRule[] var2) {
      if (var2 == null) {
         throw new IllegalArgumentException(a[1]);
      }

      this._passThruAll = var1;
      this._rules = var2;
   }

   @XmlSafe
   public boolean isPassThruAll() {
      return this._passThruAll;
   }

   @XmlSafe
   public void setPassThruAll(boolean var1) {
      this._passThruAll = var1;
   }

   @XmlSafe
   public JmsMessagePropertyRule[] getRules() {
      return this._rules;
   }

   @XmlSafe
   public void setRules(JmsMessagePropertyRule[] var1) {
      try {
         if (var1 == null) {
            throw new IllegalArgumentException(a[0]);
         }
      } catch (IllegalArgumentException var2) {
         throw a(var2);
      }

      this._rules = var1;
   }

   private static IllegalArgumentException a(IllegalArgumentException var0) {
      return var0;
   }

   static {
      String[] var5 = new String[2];
      int var3 = 0;
      String var2 = "\u0007*Ru5m1'-_if %&+\u001e~)9p7:\u001e~3!<{\u001d\u0007*Ru5m1'-_if %&+\u001e~)9p7:\u001e~3!<{";
      int var4 = "\u0007*Ru5m1'-_if %&+\u001e~)9p7:\u001e~3!<{\u001d\u0007*Ru5m1'-_if %&+\u001e~)9p7:\u001e~3!<{".length();
      char var1 = 29;
      int var0 = -1;

      while (true) {
         String var10002 = a(66, a(var2.substring(++var0, var0 + var1)));
         byte var10001 = -1;
         var5[var3++] = var10002;
         if ((var0 += var1) >= var4) {
            a = var5;
            return;
         }

         var1 = var2.charAt(var0);
      }
   }

   private static char[] a(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 18);
      }

      return var10000;
   }

   private static String a(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 23;
            case 1 -> 29;
            case 2 -> 124;
            case 3 -> 82;
            case 4 -> 4;
            case 5 -> 15;
            default -> 18;
         });
      }

      return new String(var10001).intern();
   }
}
