/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.common.mime.ContentTypeHeader
 *  com.l7tech.identity.User
 *  com.l7tech.identity.UserBean
 *  com.l7tech.message.HttpRequestKnob
 *  com.l7tech.message.HttpResponseKnob
 *  com.l7tech.message.Message
 *  com.l7tech.message.MessageKnob
 *  com.l7tech.policy.assertion.AssertionStatus
 *  com.l7tech.policy.assertion.PolicyAssertionException
 *  com.l7tech.security.token.SecurityToken
 *  com.l7tech.security.token.http.HttpBasicToken
 *  com.l7tech.util.Charsets
 *  com.l7tech.util.Functions$Nullary
 *  com.l7tech.util.Pair
 *  org.jetbrains.annotations.NotNull
 */
package com.l7tech.server.policy.bundle.ssgman.wsman;

import com.l7tech.common.mime.ContentTypeHeader;
import com.l7tech.identity.User;
import com.l7tech.identity.UserBean;
import com.l7tech.message.HttpRequestKnob;
import com.l7tech.message.HttpResponseKnob;
import com.l7tech.message.Message;
import com.l7tech.message.MessageKnob;
import com.l7tech.policy.assertion.AssertionStatus;
import com.l7tech.policy.assertion.PolicyAssertionException;
import com.l7tech.security.token.SecurityToken;
import com.l7tech.security.token.http.HttpBasicToken;
import com.l7tech.server.identity.AuthenticationResult;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.message.PolicyEnforcementContextFactory;
import com.l7tech.server.policy.bundle.GatewayManagementDocumentUtilities;
import com.l7tech.server.policy.bundle.ssgman.BaseGatewayManagementInvoker;
import com.l7tech.server.policy.bundle.ssgman.GatewayManagementInvoker;
import com.l7tech.server.policy.bundle.ssgman.wsman.a;
import com.l7tech.server.policy.bundle.ssgman.wsman.b;
import com.l7tech.util.Charsets;
import com.l7tech.util.Functions;
import com.l7tech.util.Pair;
import java.io.IOException;
import java.util.logging.Level;
import org.jetbrains.annotations.NotNull;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;

/*
 * Exception performing whole class analysis ignored.
 */
public class WsmanInvoker
extends BaseGatewayManagementInvoker {
    public static final String GATEWAY_MGMT_ENUMERATE_FILTER;
    public static final String CREATE_ENTITY_XML;
    public static final String GATEWAY_MGMT_GET_ENTITY;
    private static final String[] b;

    public WsmanInvoker(@NotNull Functions.Nullary<Boolean> nullary, @NotNull GatewayManagementInvoker gatewayManagementInvoker) {
        if (nullary == null) {
            WsmanInvoker.b(0);
        }
        if (gatewayManagementInvoker == null) {
            WsmanInvoker.b(1);
        }
        super(nullary, gatewayManagementInvoker);
    }

    @NotNull
    private Pair<AssertionStatus, Document> a(String string) throws GatewayManagementDocumentUtilities.AccessDeniedManagementResponse, GatewayManagementDocumentUtilities.UnexpectedManagementResponse {
        Document document;
        AssertionStatus assertionStatus;
        PolicyEnforcementContext policyEnforcementContext = this.b(string);
        try {
            assertionStatus = this.gatewayManagementInvoker.checkRequest(policyEnforcementContext);
        }
        catch (PolicyAssertionException | IOException throwable) {
            String[] stringArray = b;
            throw new RuntimeException(stringArray[3] + throwable.getMessage(), throwable);
        }
        Message message = policyEnforcementContext.getResponse();
        try {
            document = message.getXmlKnob().getDocumentReadOnly();
            try {
                if (GatewayManagementDocumentUtilities.isInternalErrorResponse(document)) {
                    throw new GatewayManagementDocumentUtilities.UnexpectedManagementResponse(true);
                }
            }
            catch (IOException iOException) {
                throw WsmanInvoker.b(iOException);
            }
            try {
                if (GatewayManagementDocumentUtilities.isAccessDeniedResponse(document)) {
                    throw new GatewayManagementDocumentUtilities.AccessDeniedManagementResponse(b[6], string);
                }
            }
            catch (IOException iOException) {
                throw WsmanInvoker.b(iOException);
            }
        }
        catch (IOException | SAXException exception) {
            throw new RuntimeException(b[7] + exception.getMessage(), exception);
        }
        return new Pair((Object)assertionStatus, (Object)document);
    }

    public Pair<AssertionStatus, Document> callManagementCheckInterrupted(String string) throws InterruptedException, GatewayManagementDocumentUtilities.AccessDeniedManagementResponse, GatewayManagementDocumentUtilities.UnexpectedManagementResponse {
        Pair<AssertionStatus, Document> pair;
        try {
            pair = this.a(string);
        }
        catch (GatewayManagementDocumentUtilities.UnexpectedManagementResponse unexpectedManagementResponse) {
            block10: {
                try {
                    try {
                        if (!unexpectedManagementResponse.isCausedByMgmtAssertionInternalError() || !((Boolean)this.cancelledCallback.call()).booleanValue()) break block10;
                    }
                    catch (GatewayManagementDocumentUtilities.UnexpectedManagementResponse unexpectedManagementResponse2) {
                        throw WsmanInvoker.b(unexpectedManagementResponse2);
                    }
                    throw new InterruptedException(b[2]);
                }
                catch (GatewayManagementDocumentUtilities.UnexpectedManagementResponse unexpectedManagementResponse3) {
                    throw WsmanInvoker.b(unexpectedManagementResponse3);
                }
            }
            throw unexpectedManagementResponse;
        }
        catch (GatewayManagementDocumentUtilities.AccessDeniedManagementResponse accessDeniedManagementResponse) {
            try {
                if (logger.isLoggable(Level.FINE)) {
                    logger.log(Level.FINE, b[13] + accessDeniedManagementResponse.getDeniedRequest());
                }
            }
            catch (GatewayManagementDocumentUtilities.UnexpectedManagementResponse unexpectedManagementResponse) {
                throw WsmanInvoker.b(unexpectedManagementResponse);
            }
            throw accessDeniedManagementResponse;
        }
        return pair;
    }

    private PolicyEnforcementContext b(String string) {
        PolicyEnforcementContext policyEnforcementContext;
        block5: {
            block4: {
                Message message = new Message();
                ContentTypeHeader contentTypeHeader = ContentTypeHeader.SOAP_1_2_DEFAULT;
                try {
                    message.initialize(contentTypeHeader, string.getBytes(Charsets.UTF8));
                }
                catch (IOException iOException) {
                    String[] stringArray = b;
                    throw new RuntimeException(stringArray[1] + iOException.getMessage(), iOException);
                }
                b b10 = new b(this);
                message.attachKnob(HttpRequestKnob.class, (MessageKnob)b10);
                a a10 = new a(this);
                Message message2 = new Message();
                message2.attachKnob(HttpResponseKnob.class, (MessageKnob)a10);
                policyEnforcementContext = PolicyEnforcementContextFactory.createPolicyEnforcementContext(message, message2);
                UserBean userBean = this.getAuthenticatedUser();
                try {
                    if (userBean == null) break block4;
                    policyEnforcementContext.getDefaultAuthenticationContext().addAuthenticationResult(new AuthenticationResult((User)userBean, (SecurityToken)new HttpBasicToken(userBean.getLogin(), "".toCharArray()), null, false));
                    break block5;
                }
                catch (IOException iOException) {
                    throw WsmanInvoker.b(iOException);
                }
            }
            logger.warning(b[11]);
        }
        return policyEnforcementContext;
    }

    /*
     * Exception decompiling
     */
    private static /* synthetic */ void b(int var0) {
        /*
         * This method has failed to decompile.  When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
         * 
         * org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [0[TRYBLOCK]], but top level block is 1[SWITCH]
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.processEndingBlocks(Op04StructuredStatement.java:435)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:484)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:736)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:850)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
         *     at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
         *     at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1050)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
         *     at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
         *     at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
         *     at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
         *     at org.benf.cfr.reader.Main.main(Main.java:54)
         */
        throw new IllegalStateException("Decompilation failed");
    }

    private static Exception b(Exception exception) {
        return exception;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[15];
                var3_1 = 0;
                var2_2 = "|o\u0017wh/QVo\rsx+E~`\u0017[q8Gpk\u0011@N`\u0006jo+Kok\u00072v \\~|\rssnMi|\f`?>Z~~\u0002`v O;i\u0002fz9Ib.\u000esq/O~c\u0006|knZ~\u007f\u0016wl:\u0012;4Ka\u0010av,D~.\n|k+Zi{\u0013fv!F;j\u0006fz-\\~jCvj+\boaC{q:Mi`\u0002~?+Zia\u0011?N`\u0006jo+Kok\u00072v \\~|\rssnMi|\f`?'Fma\b{q)\b|o\u0017wh/Q;c\u0002|~)Mvk\rf?=Mix\nqzt\b\u0439'k\rd%\u000bFmk\u000f}o+\bcc\u000f|ltMux^0w:\\k4L=h9_5yP<p<O4<S\",a\u0018.!\u0010}~>\u0005~`\u0015ws!X~,i2?n\bcc\u000f|lt_ho^0w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010w\"l@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0006dz \\r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010wqs\nsz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F9\u0004C2?nPvb\ra%9[vo\r/=&\\o~Y=0=Ksk\u000esl`Lvz\u0005<p<O4y\u0001wra_hc\u0002|0\u007f\u0007l}\u000esq`PhjA\u0018?n\b;v\u000e~q=\u0012lv\u0005/=&\\o~Y=0=Ksk\u000esl`Pvb\u0010}~>\u0006t|\u0004=h=\u0007)>S&0~\u00114z\u0011sq=N~|A2g#Du}Yjls\nsz\u0017b%a\u0007ly\u0014<h}\u0006t|\u0004=-~\u0018*!;_S\u001dKsk\u000es=p\";.C2#+Fm4+w~*Mi0i2?n\b;.C2#9[z4\"qk'Gu.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lfm/Fhh\u0006`0\rZ~o\u0017w#a_hoYS|:At`]\u0018?n\b;.C2?r_hoY@z>DbZ\f,\u0015n\b;.C2?n\b;.C.h=I!O\u0007vm+[h.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+6Ls{*Z~}\u0010{q)\u0007ia\u000fw0/Ft`\u001a\u007fp;['!\u0014a~ti\u007fj\u0011wl=\u0016\u0011.C2?n\b;._=h=I!\\\u0006bs7|t0i2?n\b;.C2#9[z4.wl=I|k*V?+Fm4\u000egl:}uj\u0006`l:Iuj^0k<]~,]i/3\u00144y\u0010s%\u0003Mh}\u0002uz\u0007l%\u0004C2?n\b;.C.h=I!Z\f2z ^!c\u0016ak\u001bF\u007fk\u0011ak/F\u007f3Afm;M90\u000bfk>[!!L~p-Iwf\fakt\u0011/:P=h=Ez`_=h=I!Z\f,\u0015n\b;.C2?n\u0014l}\u000esqtz~}\fgm-MN\\*,d\u007fU'!\u0014ar/F!\\\u0006ap;Zxk6@Vp\";.C2?n\b;2\u0014ar/F!A\u0013wm/\\ra\rFv#Mt{\u0017,O\u001a\u001dV>M\"/~{'!\u0014ar/F!A\u0013wm/\\ra\rFv#Mt{\u0017,\u0015n\b;._=z ^!F\u0006s{+Z%\u0004C2?n\u0014~`\u0015(]!Lb0i2?n\b;.Ci-3\";.C2#aMuxYPp*Q%\u0004_=z ^!K\rdz\"Gkk]\u0006'g\r{kp\rZm\u0000wl=\b_k\r{z*?N`\u0006jo+Kok\u00072v \\~|\rssnMi|\f`?>Ii}\n|xnOzz\u0006e~7\bvo\rsx+E~`\u00172m+[ka\razt\b\u0562'k\rd%\u000bFmk\u000f}o+\bcc\u000f|ltMux^0w:\\k4L=h9_5yP<p<O4<S\",a\u0018.!\u0010}~>\u0005~`\u0015ws!X~,i2?n\bcc\u000f|ltD,3Azk:X!!L|l`D,z\u0006qw`KtcL /\u007f\u00184>W=x/\\~y\u0002k2#Iuo\u0004wr+Fo,i2?n\bcc\u000f|lt_ho^0w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010w\"l@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0006dz \\r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010wqs\nsz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F9\u0004C2?nPvb\ra%9[vo\r/=&\\o~Y=0=Ksk\u000esl`Lvz\u0005<p<O4y\u0001wra_hc\u0002|0\u007f\u0007l}\u000esq`PhjA\u0018?n\b;v\u000e~q=\u0012lv\u0005/=&\\o~Y=0=Ksk\u000esl`Pvb\u0010}~>\u0006t|\u0004=h=\u0007)>S&0~\u00114z\u0011sq=N~|A2g#Du}Yjls\nsz\u0017b%a\u0007ly\u0014<h}\u0006t|\u0004=-~\u0018*!;_S\u001dKsk\u000es=p\";.C2#+Fm4+w~*Mi0i2?n\b;.C2#9[z4\"qk'Gu.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F4K\rgr+Zzz\u0006.09[z4\"qk'Gu0i2?n\b;.C2#9[z41wo\"QOa]\u0018?n\b;.C2?n\b;._el/\u0012Zj\u0007`z=[;k\rd%#]hz6|{+Zhz\u0002|{s\no|\u0016w=p@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0002v{<Mh}\n|xaZtb\u0006=~ Guw\u000e}j=\u00144y\u0010s%\u000fL\u007f|\u0006alp\";.C2?n\b;2Lel/\u0012Ik\u0013~f\u001aG%\u0004C2?n\b;.C.h=I!C\u0006al/O~G'2z ^!c\u0016ak\u001bF\u007fk\u0011ak/F\u007f3Afm;M90\u0018\"br\u0007l}\u0002(R+[ho\u0004wV\n\u0016\u0011.C2?n\b;._el/\u0012OaCwq8\u0012v{\u0010fJ L~|\u0010f~ L&,\u0017`j+\n%f\u0017fot\u00074b\fq~\"@t}\u0017('~\u0010+!\u0014ar/F'!\u0014a~t|t0i2?n\b;.C2#9[vo\r(M+[t{\u0011qz\u001bzR0\u0018#br\u0007l}\u000esqtz~}\fgm-MN\\*,\u0015n\b;.C2?n\u0014l}\u000esqtz~\u007f\u0016wl:|tz\u0002~V:Mv} }j \\^}\u0017{r/\\~!]\u0018?n\b;2Lwq8\u0012Sk\u0002vz<\u0016\u0011.C2?rMuxYPp*Q%\u0004C2?n\b;.C.h=Mu4&|j#Mio\u0017w!D\b;.C2?n\b;.C2#9[vo\r(P>\\rc\nhz\u000bFnc\u0006`~:At`L,\u0015n\b;.C2?n\b;.C.h=Ez`Y_~6mwk\u000ewq:[%uQo#a_hc\u0002|%\u0003IcK\u000fwr+Fo}]\u0018?n\b;.C2?n\b;._el#Iu4%{s:Mi0\u0018!br\u0007l}\u000esqtnrb\u0017wmp\"'y\u0010\u007f~ \u0012^`\u0016\u007fz<Iog\f|R!L~0&|j#Mio\u0017wP,B~m\u0017Sq*mK\\_=h=Ez`YWq;E~|\u0002fv!FVa\u0007w!n\b;.C2?n\u00144y\u0010wqtmu{\u000ewm/\\~0i2?n\b'!\u0006|itjtj\u001a,\u0015r\u0007~`\u0015(Z ^~b\fbzp>Z|\u0004gr+Fo.\u0005}mnhUa\u0017\\j\"D;~\u0002`~#Mok\u001128k[<.\ft?k[5+\u00102r;[o.\r}knJ~.\rgs\"\u0498'k\rd%\u000bFmk\u000f}o+\bcc\u000f|ltMux^0w:\\k4L=h9_5yP<p<O4<S\",a\u0018.!\u0010}~>\u0005~`\u0015ws!X~,i2?n\bcc\u000f|lt_ho^0w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010w\"l@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0006dz \\r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010wqs\nsz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F9\u0004C2?nPvb\ra%9[vo\r/=&\\o~Y=0=Ksk\u000esl`Lvz\u0005<p<O4y\u0001wra_hc\u0002|0\u007f\u0007l}\u000esq`PhjA\u0018?n\b;v\u000e~q=\u0012lv\u0005/=&\\o~Y=0=Ksk\u000esl`Pvb\u0010}~>\u0006t|\u0004=h=\u0007)>S&0~\u00114z\u0011sq=N~|A2g#Du}Yjls\nsz\u0017b%a\u0007ly\u0014<h}\u0006t|\u0004=-~\u0018*!;_S\u001dKsk\u000es=p\";.C2#+Fm4+w~*Mi0i2?n\b;.C2#9[z4\"qk'Gu.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lfm/Fhh\u0006`0\tMo2Lel/\u0012Zm\u0017{p \u0016\u0011.C2?n\b;._el/\u0012Ik\u0013~f\u001aG%\u0004C2?n\b;.C2?n\b'y\u0010s%\u000fL\u007f|\u0006alnMuxY\u007fj=\\N`\u0007wm=\\z`\u0007/=:ZnkA,w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u0004=m!D~!\u0002|p Qva\u0016a#a_hoYS{*Z~}\u0010,\u0015n\b;.C2?n\u00144y\u0010s%\u001cMkb\u001aFpp\";.C2?n\b;2\u0014a~te~}\u0010sx+a_.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016`>\u001e.09[z4.wl=I|k*V!D\b;.C2?n\b'y\u0010s%\u001aG;k\rd%#]hz6|{+Zhz\u0002|{s\no|\u0016w=p@oz\u0013(0aDtm\u0002~w![o4[\"'~\u0007l}\u000esqr\u0007l}\u0002(K!\u0016\u0011.C2?n\b;._el#Iu41wl!]im\u0006GM\u0007\u0016`?\u001e.09[vo\r(M+[t{\u0011qz\u001bzR0i2?n\b;.C2#9[vo\r(P>Mio\u0017{p |rc\u0006}j:\u0016K>:\"R~lO>+'R~\u0006+>SA#a_hc\u0002|%\u0001X~|\u0002fv!FOg\u000ewp;\\%\u0004C2?n\b;.C.h=Ez`YAz\"Mxz\f`L+\\%\u0004C2?n\b;.C2?n\b'y\u0010\u007f~ \u0012Hk\u000fw|:Gi.-sr+\u00159uQo=pS(s_=h=Ez`YAz\"Mxz\f`!D\b;.C2?n\b'!\u0014ar/F!]\u0006~z-\\t|0wkp\";.C2#aMuxYZz/L~|]\u0018?n\b;2\u0006|itjtj\u001a=!D\u00144k\rd%\u000bFmk\u000f}o+\u0016;UaCs{#Aug\u0010fm/\\rx\u00062j=Mi.\u0005}j L5.1wn;MhzCfpnAu}\u0017ss\"\blg\u000f~?(IrbM\u0011xo\rqz\"D~j ss\"Jzm\b";
                var4_3 = "|o\u0017wh/QVo\rsx+E~`\u0017[q8Gpk\u0011@N`\u0006jo+Kok\u00072v \\~|\rssnMi|\f`?>Z~~\u0002`v O;i\u0002fz9Ib.\u000esq/O~c\u0006|knZ~\u007f\u0016wl:\u0012;4Ka\u0010av,D~.\n|k+Zi{\u0013fv!F;j\u0006fz-\\~jCvj+\boaC{q:Mi`\u0002~?+Zia\u0011?N`\u0006jo+Kok\u00072v \\~|\rssnMi|\f`?'Fma\b{q)\b|o\u0017wh/Q;c\u0002|~)Mvk\rf?=Mix\nqzt\b\u0439'k\rd%\u000bFmk\u000f}o+\bcc\u000f|ltMux^0w:\\k4L=h9_5yP<p<O4<S\",a\u0018.!\u0010}~>\u0005~`\u0015ws!X~,i2?n\bcc\u000f|lt_ho^0w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010w\"l@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0006dz \\r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010wqs\nsz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F9\u0004C2?nPvb\ra%9[vo\r/=&\\o~Y=0=Ksk\u000esl`Lvz\u0005<p<O4y\u0001wra_hc\u0002|0\u007f\u0007l}\u000esq`PhjA\u0018?n\b;v\u000e~q=\u0012lv\u0005/=&\\o~Y=0=Ksk\u000esl`Pvb\u0010}~>\u0006t|\u0004=h=\u0007)>S&0~\u00114z\u0011sq=N~|A2g#Du}Yjls\nsz\u0017b%a\u0007ly\u0014<h}\u0006t|\u0004=-~\u0018*!;_S\u001dKsk\u000es=p\";.C2#+Fm4+w~*Mi0i2?n\b;.C2#9[z4\"qk'Gu.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lfm/Fhh\u0006`0\rZ~o\u0017w#a_hoYS|:At`]\u0018?n\b;.C2?r_hoY@z>DbZ\f,\u0015n\b;.C2?n\b;.C.h=I!O\u0007vm+[h.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+6Ls{*Z~}\u0010{q)\u0007ia\u000fw0/Ft`\u001a\u007fp;['!\u0014a~ti\u007fj\u0011wl=\u0016\u0011.C2?n\b;._=h=I!\\\u0006bs7|t0i2?n\b;.C2#9[z4.wl=I|k*V?+Fm4\u000egl:}uj\u0006`l:Iuj^0k<]~,]i/3\u00144y\u0010s%\u0003Mh}\u0002uz\u0007l%\u0004C2?n\b;.C.h=I!Z\f2z ^!c\u0016ak\u001bF\u007fk\u0011ak/F\u007f3Afm;M90\u000bfk>[!!L~p-Iwf\fakt\u0011/:P=h=Ez`_=h=I!Z\f,\u0015n\b;.C2?n\u0014l}\u000esqtz~}\fgm-MN\\*,d\u007fU'!\u0014ar/F!\\\u0006ap;Zxk6@Vp\";.C2?n\b;2\u0014ar/F!A\u0013wm/\\ra\rFv#Mt{\u0017,O\u001a\u001dV>M\"/~{'!\u0014ar/F!A\u0013wm/\\ra\rFv#Mt{\u0017,\u0015n\b;._=z ^!F\u0006s{+Z%\u0004C2?n\u0014~`\u0015(]!Lb0i2?n\b;.Ci-3\";.C2#aMuxYPp*Q%\u0004_=z ^!K\rdz\"Gkk]\u0006'g\r{kp\rZm\u0000wl=\b_k\r{z*?N`\u0006jo+Kok\u00072v \\~|\rssnMi|\f`?>Ii}\n|xnOzz\u0006e~7\bvo\rsx+E~`\u00172m+[ka\razt\b\u0562'k\rd%\u000bFmk\u000f}o+\bcc\u000f|ltMux^0w:\\k4L=h9_5yP<p<O4<S\",a\u0018.!\u0010}~>\u0005~`\u0015ws!X~,i2?n\bcc\u000f|ltD,3Azk:X!!L|l`D,z\u0006qw`KtcL /\u007f\u00184>W=x/\\~y\u0002k2#Iuo\u0004wr+Fo,i2?n\bcc\u000f|lt_ho^0w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010w\"l@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0006dz \\r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010wqs\nsz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F9\u0004C2?nPvb\ra%9[vo\r/=&\\o~Y=0=Ksk\u000esl`Lvz\u0005<p<O4y\u0001wra_hc\u0002|0\u007f\u0007l}\u000esq`PhjA\u0018?n\b;v\u000e~q=\u0012lv\u0005/=&\\o~Y=0=Ksk\u000esl`Pvb\u0010}~>\u0006t|\u0004=h=\u0007)>S&0~\u00114z\u0011sq=N~|A2g#Du}Yjls\nsz\u0017b%a\u0007ly\u0014<h}\u0006t|\u0004=-~\u0018*!;_S\u001dKsk\u000es=p\";.C2#+Fm4+w~*Mi0i2?n\b;.C2#9[z4\"qk'Gu.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F4K\rgr+Zzz\u0006.09[z4\"qk'Gu0i2?n\b;.C2#9[z41wo\"QOa]\u0018?n\b;.C2?n\b;._el/\u0012Zj\u0007`z=[;k\rd%#]hz6|{+Zhz\u0002|{s\no|\u0016w=p@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0002v{<Mh}\n|xaZtb\u0006=~ Guw\u000e}j=\u00144y\u0010s%\u000fL\u007f|\u0006alp\";.C2?n\b;2Lel/\u0012Ik\u0013~f\u001aG%\u0004C2?n\b;.C.h=I!C\u0006al/O~G'2z ^!c\u0016ak\u001bF\u007fk\u0011ak/F\u007f3Afm;M90\u0018\"br\u0007l}\u0002(R+[ho\u0004wV\n\u0016\u0011.C2?n\b;._el/\u0012OaCwq8\u0012v{\u0010fJ L~|\u0010f~ L&,\u0017`j+\n%f\u0017fot\u00074b\fq~\"@t}\u0017('~\u0010+!\u0014ar/F'!\u0014a~t|t0i2?n\b;.C2#9[vo\r(M+[t{\u0011qz\u001bzR0\u0018#br\u0007l}\u000esqtz~}\fgm-MN\\*,\u0015n\b;.C2?n\u0014l}\u000esqtz~\u007f\u0016wl:|tz\u0002~V:Mv} }j \\^}\u0017{r/\\~!]\u0018?n\b;2Lwq8\u0012Sk\u0002vz<\u0016\u0011.C2?rMuxYPp*Q%\u0004C2?n\b;.C.h=Mu4&|j#Mio\u0017w!D\b;.C2?n\b;.C2#9[vo\r(P>\\rc\nhz\u000bFnc\u0006`~:At`L,\u0015n\b;.C2?n\b;.C.h=Ez`Y_~6mwk\u000ewq:[%uQo#a_hc\u0002|%\u0003IcK\u000fwr+Fo}]\u0018?n\b;.C2?n\b;._el#Iu4%{s:Mi0\u0018!br\u0007l}\u000esqtnrb\u0017wmp\"'y\u0010\u007f~ \u0012^`\u0016\u007fz<Iog\f|R!L~0&|j#Mio\u0017wP,B~m\u0017Sq*mK\\_=h=Ez`YWq;E~|\u0002fv!FVa\u0007w!n\b;.C2?n\u00144y\u0010wqtmu{\u000ewm/\\~0i2?n\b'!\u0006|itjtj\u001a,\u0015r\u0007~`\u0015(Z ^~b\fbzp>Z|\u0004gr+Fo.\u0005}mnhUa\u0017\\j\"D;~\u0002`~#Mok\u001128k[<.\ft?k[5+\u00102r;[o.\r}knJ~.\rgs\"\u0498'k\rd%\u000bFmk\u000f}o+\bcc\u000f|ltMux^0w:\\k4L=h9_5yP<p<O4<S\",a\u0018.!\u0010}~>\u0005~`\u0015ws!X~,i2?n\bcc\u000f|lt_ho^0w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010w\"l@oz\u0013(0a[xf\u0006\u007f~=\u0006cc\u000fap/X5a\u0011u09[4<S\"+a\u0018#!\u0006dz \\r`\u00040\u0015n\b;.\u001b\u007fs [!y\u0010wqs\nsz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lwq;E~|\u0002fv!F9\u0004C2?nPvb\ra%9[vo\r/=&\\o~Y=0=Ksk\u000esl`Lvz\u0005<p<O4y\u0001wra_hc\u0002|0\u007f\u0007l}\u000esq`PhjA\u0018?n\b;v\u000e~q=\u0012lv\u0005/=&\\o~Y=0=Ksk\u000esl`Pvb\u0010}~>\u0006t|\u0004=h=\u0007)>S&0~\u00114z\u0011sq=N~|A2g#Du}Yjls\nsz\u0017b%a\u0007ly\u0014<h}\u0006t|\u0004=-~\u0018*!;_S\u001dKsk\u000es=p\";.C2#+Fm4+w~*Mi0i2?n\b;.C2#9[z4\"qk'Gu.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016sz\u0017b%a\u0007hm\u000bwr/[5v\u000e~l!Ik \f`xa_h!Q\"/z\u0007+7Lfm/Fhh\u0006`0\tMo2Lel/\u0012Zm\u0017{p \u0016\u0011.C2?n\b;._el/\u0012Ik\u0013~f\u001aG%\u0004C2?n\b;.C2?n\b'y\u0010s%\u000fL\u007f|\u0006alnMuxY\u007fj=\\N`\u0007wm=\\z`\u0007/=:ZnkA,w:\\k4L=l-@~c\u0002a16Ew}\fso`GiiLela\u001a+>W=/v\u0007zj\u0007`z=[r`\u0004=m!D~!\u0002|p Qva\u0016a#a_hoYS{*Z~}\u0010,\u0015n\b;.C2?n\u00144y\u0010s%\u001cMkb\u001aFpp\";.C2?n\b;2\u0014a~te~}\u0010sx+a_.\u0006|itEn}\u0017Gq*Mi}\u0017sq*\u00159z\u0011gzl\u0016`>\u001e.09[z4.wl=I|k*V!D\b;.C2?n\b'y\u0010s%\u001aG;k\rd%#]hz6|{+Zhz\u0002|{s\no|\u0016w=p@oz\u0013(0aDtm\u0002~w![o4[\"'~\u0007l}\u000esqr\u0007l}\u0002(K!\u0016\u0011.C2?n\b;._el#Iu41wl!]im\u0006GM\u0007\u0016`?\u001e.09[vo\r(M+[t{\u0011qz\u001bzR0i2?n\b;.C2#9[vo\r(P>Mio\u0017{p |rc\u0006}j:\u0016K>:\"R~lO>+'R~\u0006+>SA#a_hc\u0002|%\u0001X~|\u0002fv!FOg\u000ewp;\\%\u0004C2?n\b;.C.h=Ez`YAz\"Mxz\f`L+\\%\u0004C2?n\b;.C2?n\b'y\u0010\u007f~ \u0012Hk\u000fw|:Gi.-sr+\u00159uQo=pS(s_=h=Ez`YAz\"Mxz\f`!D\b;.C2?n\b'!\u0014ar/F!]\u0006~z-\\t|0wkp\";.C2#aMuxYZz/L~|]\u0018?n\b;2\u0006|itjtj\u001a=!D\u00144k\rd%\u000bFmk\u000f}o+\u0016;UaCs{#Aug\u0010fm/\\rx\u00062j=Mi.\u0005}j L5.1wn;MhzCfpnAu}\u0017ss\"\blg\u000f~?(IrbM\u0011xo\rqz\"D~j ss\"Jzm\b".length();
                var1_4 = 24;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 11;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = WsmanInvoker.b(v0, WsmanInvoker.d(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "H\u007f\u0012e~/\u001amy\u001fih8\u001aos\u0003 \u007f9K|y\u0002t79js\u001c/akNl\u007f\u0019/~9H\u007fy\u0003/}3V`\u007f\b/o)Tmp\u0014/~/]d}\u001f/z/Whr^W~1[gU\u001fvb7_{";
                    var4_3 = "H\u007f\u0012e~/\u001amy\u001fih8\u001aos\u0003 \u007f9K|y\u0002t79js\u001c/akNl\u007f\u0019/~9H\u007fy\u0003/}3V`\u007f\b/o)Tmp\u0014/~/]d}\u001f/z/Whr^W~1[gU\u001fvb7_{".length();
                    var1_4 = 26;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 25;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = WsmanInvoker.b(v0, WsmanInvoker.d(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        WsmanInvoker.b = var5;
        WsmanInvoker.GATEWAY_MGMT_GET_ENTITY = WsmanInvoker.b[10];
        WsmanInvoker.GATEWAY_MGMT_ENUMERATE_FILTER = WsmanInvoker.b[8];
        WsmanInvoker.CREATE_ENTITY_XML = WsmanInvoker.b[4];
    }

    private static char[] d(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x23);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String b(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 16;
                    case 1 -> 5;
                    case 2 -> 104;
                    case 3 -> 25;
                    case 4 -> 20;
                    case 5 -> 69;
                    default -> 35;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

