@profoundlogic/coderflow-server 0.5.6 → 0.5.7
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.
- package/dist/coder-server.js +1 -1
- package/dist/config.js +1 -1
- package/dist/lib/agent-keepalive.js +1 -1
- package/dist/lib/agent-models.js +1 -1
- package/dist/lib/api-keys.js +1 -1
- package/dist/lib/apiKeys.js +1 -1
- package/dist/lib/app-server-ports.js +1 -1
- package/dist/lib/auto-judge.js +1 -1
- package/dist/lib/automation-service.js +1 -1
- package/dist/lib/basic-auth.js +1 -1
- package/dist/lib/bindings.js +1 -1
- package/dist/lib/build-history.js +1 -1
- package/dist/lib/build-output-service.js +1 -1
- package/dist/lib/build-scheduler.js +1 -1
- package/dist/lib/build-service.js +1 -1
- package/dist/lib/ca-certificates.js +1 -1
- package/dist/lib/claude-oauth-refresh.js +1 -1
- package/dist/lib/cli/build.js +1 -1
- package/dist/lib/cli/cleanup-users.js +1 -1
- package/dist/lib/cli/config-command.js +1 -1
- package/dist/lib/cli/config.js +1 -1
- package/dist/lib/cli/create-user.js +1 -1
- package/dist/lib/cli/grant-admin.js +1 -1
- package/dist/lib/cli/init.js +1 -1
- package/dist/lib/cli/jira.js +1 -1
- package/dist/lib/cli/license.js +1 -1
- package/dist/lib/cli/list-roles.js +1 -1
- package/dist/lib/cli/list-users.js +1 -1
- package/dist/lib/cli/server-manager.js +1 -1
- package/dist/lib/cli/set-password.js +1 -1
- package/dist/lib/config-migration.js +1 -1
- package/dist/lib/container-credential-sync.js +1 -1
- package/dist/lib/container-tokens.js +1 -1
- package/dist/lib/data-dir.js +1 -1
- package/dist/lib/deployment-history.js +1 -1
- package/dist/lib/deployment-service.js +1 -1
- package/dist/lib/docker-utils.js +1 -1
- package/dist/lib/email.js +1 -1
- package/dist/lib/emailTemplates.js +1 -1
- package/dist/lib/entitlement.js +1 -1
- package/dist/lib/external-connections.js +1 -1
- package/dist/lib/fetch-utils.js +1 -1
- package/dist/lib/git-commit-details-route.js +1 -1
- package/dist/lib/git-history-diff-guardrails.js +1 -1
- package/dist/lib/git-provider-service.js +1 -1
- package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
- package/dist/lib/git-provider-setup/index.js +1 -1
- package/dist/lib/git-provider-setup/setup-factory.js +1 -1
- package/dist/lib/git-provider-setup/setup-interface.js +1 -1
- package/dist/lib/git-providers/azure-devops-provider.js +1 -1
- package/dist/lib/git-providers/github-app-provider.js +1 -1
- package/dist/lib/git-providers/index.js +1 -1
- package/dist/lib/git-providers/provider-factory.js +1 -1
- package/dist/lib/git-providers/provider-interface.js +1 -1
- package/dist/lib/github-urls.js +1 -1
- package/dist/lib/group-objective-linking.js +1 -1
- package/dist/lib/ibmi-sync.js +1 -1
- package/dist/lib/jira-client.js +1 -1
- package/dist/lib/judge-blinding.js +1 -1
- package/dist/lib/logger.js +1 -1
- package/dist/lib/migration-to-scoped-rbac.js +1 -1
- package/dist/lib/model-fetcher.js +1 -1
- package/dist/lib/notifications.js +1 -1
- package/dist/lib/objective-context.js +1 -1
- package/dist/lib/oidc-auth.js +1 -1
- package/dist/lib/oidc-device-flow.js +1 -1
- package/dist/lib/passwordTokens.js +1 -1
- package/dist/lib/permission-resolver.js +1 -1
- package/dist/lib/pin-cascade.js +1 -1
- package/dist/lib/provider-accounts.js +1 -1
- package/dist/lib/provider-oauth.js +1 -1
- package/dist/lib/provider-profile.js +1 -1
- package/dist/lib/provider-token-refresh.js +1 -1
- package/dist/lib/rbac-user-state.js +1 -1
- package/dist/lib/request-url.js +1 -1
- package/dist/lib/rewind.js +1 -1
- package/dist/lib/role-definitions.js +1 -1
- package/dist/lib/roles.js +1 -1
- package/dist/lib/secrets.js +1 -1
- package/dist/lib/setup-repo-git-auth.js +1 -1
- package/dist/lib/state-capture.js +1 -1
- package/dist/lib/static-files.js +1 -1
- package/dist/lib/task-name-format.js +1 -1
- package/dist/lib/task-name-generator.js +1 -1
- package/dist/lib/task-source-metadata.js +1 -1
- package/dist/lib/teams.js +1 -1
- package/dist/lib/user-git-oauth.js +1 -1
- package/dist/lib/user-git-tokens.js +1 -1
- package/dist/lib/users.js +1 -1
- package/dist/middleware/requireAuth.js +1 -1
- package/dist/middleware/requireInit.js +1 -1
- package/dist/middleware/requirePermission.js +1 -1
- package/dist/package.json +1 -1
- package/dist/playwright.config.js +1 -1
- package/dist/routes/apiKeys.js +1 -1
- package/dist/routes/auth-oidc.js +1 -1
- package/dist/routes/auth.js +1 -1
- package/dist/routes/automations.js +1 -1
- package/dist/routes/bindings.js +1 -1
- package/dist/routes/build.js +1 -1
- package/dist/routes/containers.js +1 -1
- package/dist/routes/deploy-task.js +1 -1
- package/dist/routes/environment-management.js +1 -1
- package/dist/routes/environments.js +1 -1
- package/dist/routes/external-skills.js +1 -1
- package/dist/routes/git-credentials.js +1 -1
- package/dist/routes/git-oauth.js +1 -1
- package/dist/routes/git-provider-setup.js +1 -1
- package/dist/routes/health.js +1 -1
- package/dist/routes/jira.js +1 -1
- package/dist/routes/objective-management.js +1 -1
- package/dist/routes/password.js +1 -1
- package/dist/routes/prompt.js +1 -1
- package/dist/routes/provider-auth.js +1 -1
- package/dist/routes/qa.js +1 -1
- package/dist/routes/roles.js +1 -1
- package/dist/routes/settings.js +1 -1
- package/dist/routes/skill-management.js +1 -1
- package/dist/routes/skills.js +1 -1
- package/dist/routes/tasks.js +1 -1
- package/dist/routes/teams.js +1 -1
- package/dist/routes/templates.js +1 -1
- package/dist/routes/test-task.js +1 -1
- package/dist/routes/test.js +1 -1
- package/dist/routes/users.js +1 -1
- package/dist/routes/visualizations.js +1 -1
- package/dist/scripts/create-user.js +1 -1
- package/dist/scripts/migrate-config-to-data-dir.js +1 -1
- package/dist/start.js +1 -1
- package/dist/web-ui/public/activity-detail-modal.js +1 -1
- package/dist/web-ui/public/activity-feed.js +1 -1
- package/dist/web-ui/public/activity-formatters.js +1 -1
- package/dist/web-ui/public/agent-event-parser.js +1 -1
- package/dist/web-ui/public/app.js +1 -1
- package/dist/web-ui/public/approve-dialog.js +1 -1
- package/dist/web-ui/public/automation-links.js +1 -1
- package/dist/web-ui/public/automation-schedule.js +1 -1
- package/dist/web-ui/public/comments-widget.js +1 -1
- package/dist/web-ui/public/diff-utils.js +1 -1
- package/dist/web-ui/public/environments.js +1 -1
- package/dist/web-ui/public/feedback-widget.css +6 -4
- package/dist/web-ui/public/feedback-widget.js +1 -1
- package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
- package/dist/web-ui/public/git-history.js +1 -1
- package/dist/web-ui/public/git-status.js +1 -1
- package/dist/web-ui/public/index.js +1 -1
- package/dist/web-ui/public/login.js +1 -1
- package/dist/web-ui/public/markdown-editor.js +1 -1
- package/dist/web-ui/public/markdown-file-editor.js +1 -1
- package/dist/web-ui/public/modal-maximize.js +1 -1
- package/dist/web-ui/public/notifications.js +1 -1
- package/dist/web-ui/public/pr-dialog.js +1 -1
- package/dist/web-ui/public/roles.js +1 -1
- package/dist/web-ui/public/server-health.js +1 -1
- package/dist/web-ui/public/settings.js +1 -1
- package/dist/web-ui/public/setup-password.js +1 -1
- package/dist/web-ui/public/skills.js +1 -1
- package/dist/web-ui/public/sse-client.js +1 -1
- package/dist/web-ui/public/sse-shared-worker.js +1 -1
- package/dist/web-ui/public/styles.css +34 -4
- package/dist/web-ui/public/task.js +1 -1
- package/dist/web-ui/public/teams.js +1 -1
- package/dist/web-ui/public/terminal.js +1 -1
- package/dist/web-ui/public/theme.js +1 -1
- package/dist/web-ui/public/users.js +1 -1
- package/dist/web-ui/public/variant-grouping.js +1 -1
- package/package.json +1 -1
package/dist/lib/agent-models.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1253(){const _0x3afb64=['BNnZD2S','ANnVBG','Dc1TB2rLBhmUAG','D3jPDgvgAwXL','Cgf0Aa','C2f2zsbHz2vUDa','odbAC1jIvfO','rNLhvKe','BM93','B2rLBhmUANnVBG','zxfevvu','mJDXDuz0CKO','zxjYB3i','mti4mZmZnJbQu0ngu1O','zgvIDwC','mZC2odq2mMrStxHiva','mJGZnJy0ofj1qNHIAG','BfjstM8','A2LlDeC','DxrMltG','rMfPBgvKihrVia','z1z1vKi','mJKZmtzQyK1gu3u','mtrpqw5yqMq','lw1VzgvSCY5QCW','DhvYBMLUzYbLBq','CMvWzfG','C3bSAxq','BwvZC2fNzq','CgfYC2u','AfHOvha','u2f2zwqGywDLBG','ru5pru5u','AM9PBG','odC3nZu2ognLrMLjuq','Bw9Kzq','CMvJDxjZAxzL','qvjZBwO','BNqTBw9KzwXZlG','igzVDw5KlcbYzq','tM8GywDLBNqTBq','wvv2z2y','Aw5MBW','wM5pz1m','zvnRBK4','CMvHzezPBgu','mhWXFdj8nhWZ','mZe0ntyWmKfwruLuAq','otm4mdzSEwrUr1q','C29U','Chr5ignVBMzPzW'];_0x1253=function(){return _0x3afb64;};return _0x1253();}(function(_0x36e814,_0x37b9ff){const _0x5baa59={_0x155411:0x48f,_0x1ac743:0x4aa,_0x4a055a:0x490,_0x569357:0x4a4,_0x47011e:0x49e,_0x2b1aee:0x11e,_0x3bf547:0x13f,_0x41a42a:0x13d,_0x51ade8:0x4ab,_0x2becd7:0x493,_0x186c2f:0x4b8,_0xb6fe07:0x4a6,_0x3cfdec:0x4a3,_0x1fd89d:0x128,_0x1583de:0x131},_0xcc0488={_0x195bfa:0x386},_0x343c4d={_0x2f942c:0xd},_0x203da7=_0x36e814();function _0x2c7eb3(_0x2cd9f6,_0x14fff5,_0x2a7d2b,_0x12c361){return _0x1af2(_0x2a7d2b-_0x343c4d._0x2f942c,_0x2cd9f6);}function _0x5d4bea(_0x343a4d,_0x35b432,_0x387e79,_0x3409d7){return _0x1af2(_0x35b432-_0xcc0488._0x195bfa,_0x343a4d);}while(!![]){try{const _0xddcd07=-parseInt(_0x2c7eb3(0x13d,0x125,0x126,0x10e))/(-0x6*-0x23f+0x1*-0x377+0x356*-0x3)*(-parseInt(_0x5d4bea(0x49e,0x491,_0x5baa59._0x155411,_0x5baa59._0x1ac743))/(-0xe7d+0xba1+0x2de))+parseInt(_0x5d4bea(0x496,_0x5baa59._0x4a055a,_0x5baa59._0x4a055a,_0x5baa59._0x4a055a))/(0x147*-0x4+-0x20d4+-0x43*-0x91)+-parseInt(_0x5d4bea(_0x5baa59._0x569357,_0x5baa59._0x1ac743,0x4b5,_0x5baa59._0x47011e))/(-0x26bf*-0x1+0xd*-0x23f+-0x988)*(parseInt(_0x2c7eb3(0x117,0x116,0x121,_0x5baa59._0x2b1aee))/(-0x1*-0x1abb+0x1*-0x226d+0x7b7))+-parseInt(_0x2c7eb3(0x150,_0x5baa59._0x3bf547,_0x5baa59._0x41a42a,0x133))/(0xaf9+0x1695+-0x2188)+-parseInt(_0x5d4bea(0x4c5,_0x5baa59._0x51ade8,_0x5baa59._0x2becd7,0x4a6))/(0x17*-0x166+-0x1bb0+0x3be1)*(parseInt(_0x5d4bea(_0x5baa59._0x47011e,0x4a4,_0x5baa59._0x186c2f,_0x5baa59._0xb6fe07))/(0x1*-0xef+0x489+0x1*-0x392))+-parseInt(_0x5d4bea(0x496,_0x5baa59._0x3cfdec,0x48d,0x49d))/(0x1aa7*0x1+-0x3*0x8d7+-0x5*0x5)+parseInt(_0x2c7eb3(0x132,0x13e,_0x5baa59._0x1fd89d,_0x5baa59._0x1583de))/(0x575*0x2+-0x1*-0x1fe4+-0x2ac4);if(_0xddcd07===_0x37b9ff)break;else _0x203da7['push'](_0x203da7['shift']());}catch(_0x4145f6){_0x203da7['push'](_0x203da7['shift']());}}}(_0x1253,-0x3*-0x20435+0x94448+-0x4*0x6ee9));import{promises as _0xd2b094}from'fs';import _0x3b2d2d from'path';import{DATA_DIR}from'./data-dir.js';import{logger}from'./logger.js';function _0x1af2(_0x549544,_0x1900e4){_0x549544=_0x549544-(-0x10e2+0x13e6+-0x1*0x1fc);const _0x39dee7=_0x1253();let _0x8665ad=_0x39dee7[_0x549544];if(_0x1af2['ujfcvI']===undefined){var _0x16d3d2=function(_0x27f1a5){const _0x5ef73e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5dee13='',_0x1858bf='';for(let _0x49b6db=0x1459+-0x85e+-0xbfb*0x1,_0xb38547,_0x50c2f1,_0x27033c=-0x4*-0x917+-0x1c43+-0x819*0x1;_0x50c2f1=_0x27f1a5['charAt'](_0x27033c++);~_0x50c2f1&&(_0xb38547=_0x49b6db%(-0xf*-0x25+0xeb4+-0x10db*0x1)?_0xb38547*(0x9*-0x23+0x22b3+-0x2138)+_0x50c2f1:_0x50c2f1,_0x49b6db++%(0x1601+-0x1*0x1bd9+0x5dc))?_0x5dee13+=String['fromCharCode'](-0x18dc+-0x1*0x1bd1+0x1ca*0x1e&_0xb38547>>(-(0x122d+-0x26a7+0x6d4*0x3)*_0x49b6db&-0x1cf+0x872+-0x69d)):0x3a*-0x8e+0x1963*-0x1+-0x7*-0x839){_0x50c2f1=_0x5ef73e['indexOf'](_0x50c2f1);}for(let _0x467dab=0x22d6+-0x1be2+-0x6f4,_0x544aef=_0x5dee13['length'];_0x467dab<_0x544aef;_0x467dab++){_0x1858bf+='%'+('00'+_0x5dee13['charCodeAt'](_0x467dab)['toString'](-0x17*0x2c+0x343+0xc1))['slice'](-(0x1*-0x53b+-0x1755+-0x1c92*-0x1));}return decodeURIComponent(_0x1858bf);};_0x1af2['DMiHwv']=_0x16d3d2,_0x1af2['SrXywQ']={},_0x1af2['ujfcvI']=!![];}const _0x49e79c=_0x39dee7[0x2579+-0x3*0x789+0xede*-0x1],_0x14603b=_0x549544+_0x49e79c,_0x5cb1a1=_0x1af2['SrXywQ'][_0x14603b];return!_0x5cb1a1?(_0x8665ad=_0x1af2['DMiHwv'](_0x8665ad),_0x1af2['SrXywQ'][_0x14603b]=_0x8665ad):_0x8665ad=_0x5cb1a1,_0x8665ad;}const AGENT_MODELS_FILE='agent-mode'+'ls.json';let dataDirOverride=null,cachedModels=null,cacheTime=0x40b+0x22a7+-0x26b2;const CACHE_TTL_MS=0x15fd+0x3c67+0x97fc;export function setAgentModelsDataDir(_0x53875d){const _0x1d81a4={_0x313a17:0xe7,_0x5c91b0:0xd0,_0x49e602:0xbe},_0x3fc9bc={'ZnOgS':function(_0x7f7d3d){return _0x7f7d3d();}};dataDirOverride=_0x53875d;function _0x22f389(_0x565891,_0x2de937,_0x3acac6,_0x14f911){return _0x1af2(_0x3acac6- -0x209,_0x2de937);}_0x3fc9bc[_0x22f389(-0xc8,-_0x1d81a4._0x313a17,-_0x1d81a4._0x5c91b0,-_0x1d81a4._0x49e602)](clearAgentModelsCache);}function getDataDir(){return dataDirOverride||DATA_DIR;}export async function loadAgentModels(){const _0x333e17={_0x5b3b70:0x172,_0x5e5f04:0x16f,_0x2cce9d:0x3ff,_0x3ee121:0x3f4,_0x14f4e7:0x3e7,_0x38196e:0x3b6,_0x37dd8a:0x3e8,_0x321b47:0x3cf,_0x552f86:0x3bf,_0x3806ae:0x190,_0x977187:0x167,_0x415de3:0x169,_0x4f11cc:0x198,_0x3feb89:0x17f,_0x4adc66:0x3ef,_0x140781:0x3e5,_0x34fd46:0x3e0,_0x3735b3:0x18f,_0x48c993:0x17a,_0x3ea78f:0x1a4,_0x301cde:0x156,_0x12cc37:0x171,_0xfa7410:0x3f6,_0x359b21:0x3e8,_0x49a765:0x3e1,_0x112b12:0x3dc,_0x58b0ed:0x16c,_0x449563:0x168,_0x2feb53:0x405,_0x41e623:0x406,_0xe60c8d:0x3ee,_0x51f916:0x18d,_0xfc08b4:0x16d,_0x36e97c:0x3fe},_0x5c45de={_0xdfc372:0x63},_0x581a7d={_0x6092a0:0x2c0},_0x33a887={'QeNXr':function(_0x4847bc,_0x1ef009){return _0x4847bc<_0x1ef009;},'EblDR':function(_0x4295e3,_0x2faa04){return _0x4295e3-_0x2faa04;},'hXhTp':function(_0x27db2a){return _0x27db2a();},'repdX':_0x5ee3b9(0x16c,0x184,_0x333e17._0x5b3b70,_0x333e17._0x5e5f04),'GZbjA':'Loaded\x20age'+_0xe9f28(0x3f6,_0x333e17._0x2cce9d,_0x333e17._0x3ee121,_0x333e17._0x14f4e7)+_0xe9f28(_0x333e17._0x38196e,_0x333e17._0x37dd8a,_0x333e17._0x321b47,0x3dc),'qOgqQ':function(_0xf62906,_0x1e9e13){return _0xf62906!==_0x1e9e13;},'BcgWT':'kixCI','eqDUU':_0xe9f28(_0x333e17._0x552f86,0x3d0,0x3ce,0x3bf),'ARsmj':function(_0x57d77c,_0x56a9e2){return _0x57d77c===_0x56a9e2;},'hPtXR':'No\x20agent-m'+_0x5ee3b9(_0x333e17._0x3806ae,0x17a,_0x333e17._0x977187,_0x333e17._0x415de3)+_0x5ee3b9(0x188,_0x333e17._0x4f11cc,_0x333e17._0x3feb89,0x18e)+_0x5ee3b9(0x17e,0x18a,_0x333e17._0x3806ae,0x1a2)+_0x5ee3b9(0x15e,0x170,0x163,0x156),'YUvgf':_0xe9f28(0x3f1,0x3ef,0x3e2,_0x333e17._0x4adc66)+'read\x20agent'+'-models.js'+'on'},_0x42bf8b=Date[_0xe9f28(0x3ca,_0x333e17._0x140781,0x3d6,_0x333e17._0x34fd46)]();function _0xe9f28(_0x54741f,_0x10b42a,_0x2899e8,_0x4ec052){return _0x1af2(_0x2899e8-_0x581a7d._0x6092a0,_0x54741f);}if(cachedModels&&_0x33a887['QeNXr'](_0x33a887['EblDR'](_0x42bf8b,cacheTime),CACHE_TTL_MS))return cachedModels;const _0x2310de=_0x3b2d2d[_0xe9f28(0x3e6,0x3e1,0x3ef,0x3ee)](_0x33a887[_0x5ee3b9(_0x333e17._0x3806ae,_0x333e17._0x3735b3,_0x333e17._0x48c993,_0x333e17._0x3ea78f)](getDataDir),AGENT_MODELS_FILE);function _0x5ee3b9(_0x2b3527,_0x59d0cb,_0x120398,_0x14ad81){return _0x1af2(_0x59d0cb-_0x5c45de._0xdfc372,_0x14ad81);}try{const _0x5aa3d0=await _0xd2b094[_0x5ee3b9(0x159,0x16b,_0x333e17._0x301cde,_0x333e17._0x12cc37)](_0x2310de,_0x33a887[_0xe9f28(0x3e6,_0x333e17._0xfa7410,_0x333e17._0x359b21,0x401)]),_0x5af2dc=JSON[_0xe9f28(0x3f3,0x3dd,0x3eb,0x3e8)](_0x5aa3d0);cachedModels=_0x5af2dc,cacheTime=_0x42bf8b;const _0x3c4fcb={};return _0x3c4fcb[_0xe9f28(_0x333e17._0x49a765,0x3bb,0x3d2,0x3e4)]=_0x2310de,logger[_0xe9f28(0x3d6,0x3e2,_0x333e17._0x112b12,0x3d0)](_0x33a887['GZbjA'],_0x3c4fcb),_0x5af2dc;}catch(_0x550e97){if(_0x33a887['qOgqQ'](_0x33a887['BcgWT'],_0x33a887[_0x5ee3b9(0x18f,0x17b,_0x333e17._0x58b0ed,_0x333e17._0x449563)])){if(_0x33a887[_0xe9f28(_0x333e17._0x2feb53,0x3ef,0x3f3,0x3ef)](_0x550e97['code'],_0xe9f28(_0x333e17._0x2feb53,_0x333e17._0x41e623,_0x333e17._0xe60c8d,0x3e2)))return logger['debug'](_0x33a887['hPtXR']),cachedModels={},cacheTime=_0x42bf8b,{};const _0x33be84={};return _0x33be84[_0x5ee3b9(_0x333e17._0x51f916,0x17d,0x167,_0x333e17._0xfc08b4)]=_0x550e97[_0x5ee3b9(0x17a,_0x333e17._0x51f916,0x178,0x181)],logger['warn'](_0x33a887[_0xe9f28(0x3e0,0x40e,0x3f7,_0x333e17._0x36e97c)],_0x33be84),{};}else _0x86c395=null,_0x10b40e=0x19cb+0xaa5+-0x350*0xb;}}export async function saveAgentModels(_0x39fa66){const _0x82afc3={_0x1d4084:0xae,_0x2d991a:0xfd,_0x4a8c11:0xf9,_0x3197ae:0xeb,_0x555231:0x11c,_0xdd7a5a:0x127,_0x9223e0:0x117,_0x500910:0xc0,_0x33bd40:0xc2,_0x40f4e1:0xad,_0x23c120:0xa6,_0x5a4987:0xa4,_0x403ff5:0xaf,_0x1c7030:0x95,_0x4469e3:0xf8,_0x44be3d:0xfa,_0x7115d:0xb8,_0x38224f:0xc0,_0x436abb:0xba,_0x3fcd88:0x9b,_0x250527:0x9c,_0x4cff3a:0x88,_0x3ea209:0xa2,_0x3292fb:0x108,_0x2dfd18:0xfe,_0x3eb2a5:0xb6,_0x46165e:0x88,_0x5322d1:0x85,_0x12164e:0x111,_0x4d1a9e:0xba,_0x408e1c:0xd1,_0x51acac:0xd0,_0x52e6c3:0x12a,_0x537c5f:0x13f,_0x2167cd:0x13e,_0x3bec63:0x122,_0x42e773:0x101,_0x4b3102:0x105,_0x560d32:0xc8,_0x2fa882:0xb0,_0x4eb5b4:0x86,_0x5a4613:0x9e,_0x5a331a:0x12b,_0x2ffcdb:0x113,_0x15b104:0x110,_0x239395:0x106,_0xd5e8c3:0xa5,_0x1c3a8a:0x114,_0x5741e3:0x11a,_0x8a1335:0xfe},_0x5be4d4={_0x54dd57:0x233},_0x1937fb={};_0x1937fb[_0xdf9d48(_0x82afc3._0x1d4084,0xa3,0xb3,0xac)]=_0x4d13dc(-_0x82afc3._0x2d991a,-_0x82afc3._0x4a8c11,-0x10a,-_0x82afc3._0x3197ae)+_0x4d13dc(-_0x82afc3._0x555231,-_0x82afc3._0xdd7a5a,-0x135,-_0x82afc3._0x9223e0)+_0xdf9d48(_0x82afc3._0x500910,_0x82afc3._0x33bd40,_0x82afc3._0x40f4e1,_0x82afc3._0x23c120)+_0xdf9d48(0xb2,0xc8,0xb9,0xb2)+_0xdf9d48(0x98,_0x82afc3._0x5a4987,_0x82afc3._0x403ff5,_0x82afc3._0x1c7030),_0x1937fb[_0x4d13dc(-_0x82afc3._0x4a8c11,-0xe4,-_0x82afc3._0x4469e3,-_0x82afc3._0x44be3d)]=_0xdf9d48(_0x82afc3._0x7115d,0xba,_0x82afc3._0x38224f,_0x82afc3._0x436abb)+_0xdf9d48(_0x82afc3._0x3fcd88,_0x82afc3._0x250527,0xa5,_0x82afc3._0x4cff3a)+_0xdf9d48(0x97,0x85,_0x82afc3._0x3ea209,0x80),_0x1937fb['FyGVA']=function(_0xde9fcf,_0x4c9979){return _0xde9fcf!==_0x4c9979;},_0x1937fb['lRRNo']=_0x4d13dc(-0x111,-_0x82afc3._0x3292fb,-0x11d,-_0x82afc3._0x2dfd18)+_0xdf9d48(0x9e,_0x82afc3._0x3eb2a5,_0x82afc3._0x46165e,_0x82afc3._0x5322d1)+_0x4d13dc(-0x10d,-_0x82afc3._0x12164e,-0xf6,-0x116)+'on';const _0xe48c7b=_0x1937fb,_0x4315f4=getDataDir();function _0xdf9d48(_0x20fbeb,_0x410242,_0x98807b,_0x51f55f){return _0x1af2(_0x20fbeb- -0x75,_0x51f55f);}const _0x36e4c5=_0x3b2d2d[_0xdf9d48(_0x82afc3._0x4d1a9e,_0x82afc3._0x408e1c,0xae,_0x82afc3._0x51acac)](_0x4315f4,AGENT_MODELS_FILE);function _0x4d13dc(_0x33ad0e,_0xa32099,_0x3e192c,_0x5565ed){return _0x1af2(_0x33ad0e- -_0x5be4d4._0x54dd57,_0x3e192c);}try{const _0x20b67b=_0x4d13dc(-_0x82afc3._0x52e6c3,-0x12e,-_0x82afc3._0x537c5f,-_0x82afc3._0x2167cd)[_0x4d13dc(-0x10a,-0x102,-_0x82afc3._0x3bec63,-0x115)]('|');let _0x5c584f=0x71f*0x5+0x2427+-0x47c2;while(!![]){switch(_0x20b67b[_0x5c584f++]){case'0':const _0x3503fc={};_0x3503fc[_0x4d13dc(-_0x82afc3._0x42e773,-_0x82afc3._0x4b3102,-0x10e,-0x117)]=!![],await _0xd2b094['mkdir'](_0x4315f4,_0x3503fc);continue;case'1':const _0x4d0c06={};_0x4d0c06[_0xdf9d48(0xbc,0xae,_0x82afc3._0x560d32,_0x82afc3._0x2fa882)]=0x180,await _0xd2b094[_0xdf9d48(_0x82afc3._0x250527,0x85,_0x82afc3._0x4eb5b4,_0x82afc3._0x5a4613)](_0x36e4c5,JSON['stringify'](_0x39fa66,null,-0x19*-0xb5+-0x592+-0xc19),_0x4d0c06);continue;case'2':cachedModels=_0x39fa66;continue;case'3':const _0x4bd97e={};_0x4bd97e['path']=_0x36e4c5,logger[_0xdf9d48(0xc3,0xc8,0xd0,_0x82afc3._0x7115d)](_0xe48c7b['eSknN'],_0x4bd97e);continue;case'4':cacheTime=Date['now']();continue;}break;}}catch(_0x3fc421){if(_0xe48c7b[_0x4d13dc(-0x11e,-0x121,-_0x82afc3._0x5a331a,-0x111)]('kiKtG',_0x4d13dc(-_0x82afc3._0x2ffcdb,-0x111,-0xfc,-0x114)))return _0x4b0b3b['debug'](_0xe48c7b[_0x4d13dc(-_0x82afc3._0x15b104,-0xf8,-_0x82afc3._0x239395,-0x127)]),_0x45dee5={},_0x83b9c=_0x1e3936,{};else{const _0x294f93={};_0x294f93[_0x4d13dc(-0x119,-0x118,-0x12a,-0x131)]=_0x3fc421['message'],logger[_0xdf9d48(_0x82afc3._0xd5e8c3,0xbb,0x99,0xb5)](_0xe48c7b[_0x4d13dc(-_0x82afc3._0x1c3a8a,-_0x82afc3._0x5741e3,-_0x82afc3._0x8a1335,-0x113)],_0x294f93);throw _0x3fc421;}}}export function clearAgentModelsCache(){cachedModels=null,cacheTime=-0x3*0x6c7+-0x1205+0x265a;}
|
|
1
|
+
(function(_0x50f451,_0x329702){const _0x35f284={_0x5e480f:0x8a,_0xf3d25f:0x9e,_0xf18b99:0x7f,_0x4289f7:0x72,_0x3281c2:0x7a,_0x58a30c:0xa9,_0x238c4e:0xa0,_0x54ba0d:0x6c,_0x5c6d4d:0x97,_0x11ad65:0x7c,_0x3e1e1d:0x74,_0x5747be:0x85,_0xb378fe:0x8e,_0x2ca7cf:0x89,_0x3886f7:0x81,_0x3a9472:0x72,_0x3784e2:0x7f,_0x298a5f:0x8d,_0x3f370d:0x7d,_0x310bab:0x64,_0x356868:0x8d},_0x228f74={_0x2d153b:0xd0},_0xe43071={_0x32404d:0xe3};function _0x31596e(_0x65268c,_0x5553d0,_0x53766a,_0xde919a){return _0x1cd3(_0x65268c- -_0xe43071._0x32404d,_0xde919a);}const _0x28e466=_0x50f451();function _0x628fed(_0x32bc56,_0x4b6846,_0x325cb4,_0x3207ef){return _0x1cd3(_0x32bc56- -_0x228f74._0x2d153b,_0x325cb4);}while(!![]){try{const _0x5e4d71=parseInt(_0x31596e(_0x35f284._0x5e480f,0xa1,_0x35f284._0xf3d25f,0x7b))/(0x5*-0x602+-0x17b*-0x16+-0x1*0x287)*(parseInt(_0x31596e(_0x35f284._0xf18b99,_0x35f284._0x4289f7,0x6e,_0x35f284._0x3281c2))/(0x1b7*-0x10+0x25fa+0xa88*-0x1))+parseInt(_0x628fed(_0x35f284._0x58a30c,0x91,0xa6,_0x35f284._0x238c4e))/(0x45d+-0xd*-0x1f7+-0x9f7*0x3)+parseInt(_0x31596e(_0x35f284._0x3281c2,_0x35f284._0x54ba0d,0x90,0x61))/(0x2051*0x1+0x4c+-0x2099)*(parseInt(_0x628fed(0x94,_0x35f284._0x5c6d4d,_0x35f284._0x11ad65,0xae))/(-0x1*0x18ab+-0x91+-0x1af*-0xf))+-parseInt(_0x31596e(_0x35f284._0x3e1e1d,_0x35f284._0x5747be,_0x35f284._0xb378fe,0x88))/(-0xb0f+-0xafc+0x10d*0x15)+parseInt(_0x628fed(_0x35f284._0x2ca7cf,_0x35f284._0x3886f7,_0x35f284._0x3a9472,_0x35f284._0x3784e2))/(-0x672+-0x248*0xd+0x2421)+-parseInt(_0x31596e(0x90,_0x35f284._0x298a5f,0x81,0x99))/(-0x35*-0x6a+-0x1*-0x772+-0x1d5c)+parseInt(_0x31596e(0x7d,0x8a,_0x35f284._0x3f370d,_0x35f284._0x310bab))/(-0x1ca+0x4ec*0x1+0x319*-0x1)*(-parseInt(_0x31596e(0x94,_0x35f284._0x356868,0x9c,0x88))/(-0x6c6+-0x1166+-0x1836*-0x1));if(_0x5e4d71===_0x329702)break;else _0x28e466['push'](_0x28e466['shift']());}catch(_0x29b610){_0x28e466['push'](_0x28e466['shift']());}}}(_0x5517,0x844ad+-0x93536+0x21bfd*0x7));import{promises as _0x5ca766}from'fs';import _0x55f179 from'path';import{DATA_DIR}from'./data-dir.js';import{logger}from'./logger.js';function _0x5517(){const _0x121219=['y0zbq1i','ywDLBNqTBw9Kzq','D3jPDgvgAwXL','BwvZC2fNzq','lw1VzgvSCY5QCW','uejQCwS','y29Kzq','Aw5MBW','mta2ndKYmZHQtwXJBxu','igzVDw5KlcbYzq','nduZmZCZounqCwLQAq','D2fYBG','DuX5BLG','CMvHzezPBgu','mJiZmZi4wNbjy05x','Bw9Kzq','u2f2zwqGywDLBG','mJy1nxjrvKjXDW','C2f2zsbHz2vUDa','mLD5B01erq','AM9PBG','mte1CMLeuw9g','CMvJDxjZAxzL','BNqTBw9KzwXZlG','Chr5ignVBMzPzW','CMvHzcbHz2vUDa','tNDxt2G','y0rcugG','A2jnDg0','tM8GywDLBNqTBq','otyYndq3CMn4DhbO','DhvYBMLUzYbLBq','CgfYC2u','Dc1TB2rLBhmUAG','BM93','Cgf0Aa','ntC1mtm2uKTItgTM','tg9HzgvKigfNzq','BhmUANnVBG','B2rLBhmUANnVBG','nJyXmtbzwvzPyw0','BhnfC0y','ntqYnJq5nNvpy1nuwq','CMHhD0S','Ee1yzNu','vhbbEwS','ANnVBG','zxjYB3i','DxrMltG','rMfPBgvKihrVia','v0fdy3e','C29U'];_0x5517=function(){return _0x121219;};return _0x5517();}const AGENT_MODELS_FILE=_0x43185b(0x2cf,0x2cd,0x2ba,0x2d3)+_0x592042(0x2f9,0x2ec,0x2f7,0x306);let dataDirOverride=null,cachedModels=null,cacheTime=0x284*0x7+0x247b+-0x3617;function _0x43185b(_0x4ca582,_0x7d408e,_0x3af09e,_0x4a43cc){const _0x3175bd={_0x3f537d:0x183};return _0x1cd3(_0x4a43cc-_0x3175bd._0x3f537d,_0x4ca582);}const CACHE_TTL_MS=-0x671f*-0x3+0x20e*0x35+0x541*-0x23;export function setAgentModelsDataDir(_0x4dddf6){dataDirOverride=_0x4dddf6,clearAgentModelsCache();}function getDataDir(){const _0x38e331={_0x354848:0x14b,_0x33b1ae:0x140,_0x5eeae5:0x13c,_0x2e0ca0:0x15a},_0x1cc25={_0x1bb338:0xa3},_0x3b7384={};_0x3b7384[_0x2f46a8(-_0x38e331._0x354848,-_0x38e331._0x33b1ae,-_0x38e331._0x5eeae5,-_0x38e331._0x2e0ca0)]=function(_0x269c82,_0x15dd86){return _0x269c82||_0x15dd86;};function _0x2f46a8(_0x2d4d92,_0x138f9f,_0x2ea60e,_0x1f84b4){return _0x43185b(_0x2ea60e,_0x138f9f-_0x1cc25._0x1bb338,_0x2ea60e-0x191,_0x138f9f- -0x410);}const _0x31a078=_0x3b7384;return _0x31a078['WACcq'](dataDirOverride,DATA_DIR);}export async function loadAgentModels(){const _0x38e8ac={_0x448522:0x365,_0x1e87ec:0x34d,_0x5c7462:0x356,_0x5273aa:0x345,_0x4b0afd:0x34a,_0x52751a:0x342,_0x4c350d:0x359,_0x190070:0x346,_0x46f471:0x35f,_0x48a184:0x361,_0x321cb5:0x35d,_0x50ad19:0x352,_0x25a89c:0x343,_0x227d57:0x334,_0x538d84:0x33f,_0x4ae901:0x1b2,_0x2c670f:0x1b5,_0x4a6ab5:0x1ce,_0x4d2d59:0x1b8,_0x3186db:0x198,_0x268fbc:0x1aa,_0x24449b:0x1a0,_0x4b5f46:0x194,_0x240f78:0x32f,_0x3375b2:0x31f,_0x5f547c:0x1bd,_0x190b19:0x1a9,_0x334354:0x1c4,_0x2d1c71:0x188,_0x35e742:0x18c,_0x5398d1:0x328,_0x2e1756:0x330,_0x332851:0x33d,_0x1de17c:0x1a3,_0x57252f:0x19e,_0xbd65c6:0x194,_0x447c3d:0x1b7,_0x24e35a:0x1b9,_0x1ad37f:0x1b7,_0x31e82d:0x352,_0x437941:0x33c,_0x53bb7a:0x34e,_0x150c39:0x358,_0x7fa14c:0x372,_0x47e377:0x183,_0x27c3b5:0x18d,_0x565c36:0x190,_0x311ea5:0x1a2,_0x5e76c0:0x1ac,_0x4a01ba:0x1b6,_0x4d1395:0x347,_0x21570f:0x333,_0x2d96a4:0x336},_0x34dac4={_0x5e8c52:0xec,_0x5d262c:0x53};function _0x4f109e(_0x4bc0d8,_0x55c961,_0x33bb4d,_0x323899){return _0x592042(_0x33bb4d- -0x14c,_0x55c961-0x129,_0x33bb4d-0x3b,_0x4bc0d8);}const _0x163c06={'uLynX':function(_0x1644dd,_0x192b33){return _0x1644dd<_0x192b33;},'kbMtm':function(_0x49cbc2,_0x21e0c3){return _0x49cbc2-_0x21e0c3;},'xMXfu':function(_0x33206e){return _0x33206e();},'OLnmX':function(_0x5b2efa,_0x5d8e8c){return _0x5b2efa!==_0x5d8e8c;},'PBjqk':_0x5ce745(_0x38e8ac._0x448522,_0x38e8ac._0x1e87ec,_0x38e8ac._0x5c7462,_0x38e8ac._0x5273aa),'TpAyk':_0x4f109e(0x19f,0x1b9,0x1ac,0x1bd)+_0x5ce745(0x334,_0x38e8ac._0x4b0afd,_0x38e8ac._0x52751a,0x34c)+_0x5ce745(0x357,0x35d,_0x38e8ac._0x4c350d,0x36c),'cDBPh':_0x5ce745(_0x38e8ac._0x190070,0x361,0x348,_0x38e8ac._0x46f471)+_0x5ce745(_0x38e8ac._0x48a184,_0x38e8ac._0x321cb5,_0x38e8ac._0x50ad19,0x338)+_0x5ce745(0x33a,_0x38e8ac._0x25a89c,_0x38e8ac._0x227d57,_0x38e8ac._0x538d84)+_0x4f109e(_0x38e8ac._0x4ae901,0x1c0,0x1a6,_0x38e8ac._0x2c670f)+_0x5ce745(0x34c,0x353,_0x38e8ac._0x25a89c,0x337),'YydQH':_0x4f109e(0x1b3,_0x38e8ac._0x4a6ab5,_0x38e8ac._0x4d2d59,0x1c2)+_0x4f109e(_0x38e8ac._0x3186db,_0x38e8ac._0x268fbc,_0x38e8ac._0x24449b,_0x38e8ac._0x4b5f46)+_0x5ce745(0x31f,0x340,_0x38e8ac._0x240f78,0x32e)+'on'},_0x431f0f=Date['now']();if(cachedModels&&_0x163c06[_0x5ce745(_0x38e8ac._0x3375b2,0x337,0x337,0x33d)](_0x163c06[_0x4f109e(_0x38e8ac._0x5f547c,_0x38e8ac._0x190b19,0x1a3,0x1a3)](_0x431f0f,cacheTime),CACHE_TTL_MS))return cachedModels;function _0x5ce745(_0x5b7221,_0xf4a334,_0x218950,_0xfc8c8d){return _0x43185b(_0xfc8c8d,_0xf4a334-_0x34dac4._0x5e8c52,_0x218950-_0x34dac4._0x5d262c,_0x218950-0x59);}const _0x54d19f=_0x55f179['join'](_0x163c06[_0x4f109e(0x1ad,_0x38e8ac._0x334354,0x1b3,0x1ae)](getDataDir),AGENT_MODELS_FILE);try{if(_0x163c06['OLnmX'](_0x163c06[_0x4f109e(0x19d,_0x38e8ac._0x2d1c71,_0x38e8ac._0x35e742,0x198)],_0x163c06[_0x5ce745(_0x38e8ac._0x5398d1,0x343,_0x38e8ac._0x2e1756,_0x38e8ac._0x332851)]))_0x2c6dfb=null,_0x55b6e7=-0x2*0xa9a+-0x1*0xa0d+0x1f41;else{const _0xe47b85=await _0x5ca766[_0x4f109e(_0x38e8ac._0x1de17c,_0x38e8ac._0x57252f,_0x38e8ac._0xbd65c6,0x190)](_0x54d19f,_0x4f109e(_0x38e8ac._0x447c3d,_0x38e8ac._0x24e35a,_0x38e8ac._0x1ad37f,_0x38e8ac._0x1de17c)),_0x59daf8=JSON[_0x5ce745(0x361,_0x38e8ac._0x31e82d,0x34b,0x33b)](_0xe47b85);cachedModels=_0x59daf8,cacheTime=_0x431f0f;const _0x23d3ef={};return _0x23d3ef[_0x5ce745(0x35e,_0x38e8ac._0x437941,_0x38e8ac._0x53bb7a,_0x38e8ac._0x190070)]=_0x54d19f,logger['debug'](_0x163c06[_0x5ce745(_0x38e8ac._0x53bb7a,_0x38e8ac._0x53bb7a,_0x38e8ac._0x150c39,_0x38e8ac._0x7fa14c)],_0x23d3ef),_0x59daf8;}}catch(_0x2ab256){if(_0x2ab256[_0x4f109e(0x189,_0x38e8ac._0x47e377,_0x38e8ac._0x27c3b5,_0x38e8ac._0x565c36)]==='ENOENT')return logger['debug'](_0x163c06[_0x4f109e(0x1b6,0x1b9,_0x38e8ac._0x311ea5,0x1a8)]),cachedModels={},cacheTime=_0x431f0f,{};const _0x57e7e4={};return _0x57e7e4[_0x4f109e(_0x38e8ac._0x5e76c0,0x1ae,_0x38e8ac._0x4a01ba,0x1ae)]=_0x2ab256['message'],logger[_0x5ce745(_0x38e8ac._0x4d1395,_0x38e8ac._0x21570f,_0x38e8ac._0x2d96a4,_0x38e8ac._0x240f78)](_0x163c06['YydQH'],_0x57e7e4),{};}}function _0x592042(_0x72e3b2,_0x41993e,_0x54b6f2,_0x261d52){const _0xd437ef={_0x1bc379:0x184};return _0x1cd3(_0x72e3b2-_0xd437ef._0x1bc379,_0x261d52);}export async function saveAgentModels(_0x5bfa8e){const _0x4ab121={_0x434a0d:0x14b,_0x1dbed7:0x1c0,_0x5e9c6d:0x1fa,_0x4b3fa1:0x1f6,_0x153050:0x209,_0x210133:0x1dd,_0x5a32f4:0x1ca,_0x49ac81:0x189,_0x4750b0:0x170,_0x3eed06:0x15e,_0x5bb422:0x164,_0x40718f:0x150,_0xb0bd50:0x13c,_0x4d0635:0x147,_0x21c17a:0x154,_0x2cc198:0x174,_0x666ed7:0x16b,_0x47ca82:0x144,_0x578a55:0x134,_0x3f0647:0x149,_0x1fa8b8:0x163,_0x230ad3:0x156,_0x55de1e:0x15d,_0x174eb6:0x16f,_0x3e5a0d:0x14f,_0x305f3d:0x15f,_0x33358e:0x146},_0x576b5f={_0x906976:0x4c8},_0xa705cf={_0x4f540f:0x65},_0x1535ed={'cFACR':function(_0xd39056){return _0xd39056();},'lsEsF':_0x427e05(-0x170,-_0x4ab121._0x434a0d,-0x162,-0x15e)+_0xe35f31(-0x1ee,-0x1ba,-0x1d4,-_0x4ab121._0x1dbed7)+_0xe35f31(-0x207,-_0x4ab121._0x5e9c6d,-_0x4ab121._0x4b3fa1,-_0x4ab121._0x153050),'NwWOh':'Failed\x20to\x20'+_0xe35f31(-_0x4ab121._0x210133,-_0x4ab121._0x5a32f4,-0x1e3,-0x1df)+'-models.js'+'on'};function _0x427e05(_0x18d7e9,_0x24ea82,_0x3903af,_0x103f51){return _0x43185b(_0x103f51,_0x24ea82-0x18d,_0x3903af-_0xa705cf._0x4f540f,_0x3903af- -0x444);}const _0x44ad35=_0x1535ed[_0x427e05(-0x15f,-0x16d,-0x172,-0x15f)](getDataDir),_0x2fdeae=_0x55f179[_0xe35f31(-0x1c9,-0x1cf,-0x1e1,-0x1ce)](_0x44ad35,AGENT_MODELS_FILE);function _0xe35f31(_0xb627cc,_0x3de3aa,_0x54eb7b,_0x38f5df){return _0x592042(_0x54eb7b- -_0x576b5f._0x906976,_0x3de3aa-0xb2,_0x54eb7b-0x17a,_0x3de3aa);}try{const _0x30948e={};_0x30948e[_0xe35f31(-0x1f2,-0x1ca,-0x1df,-0x1d8)]=!![],await _0x5ca766['mkdir'](_0x44ad35,_0x30948e);const _0x5a3aaf={};_0x5a3aaf[_0xe35f31(-0x1cc,-0x1e0,-0x1e6,-0x1ce)]=0x180,await _0x5ca766[_0x427e05(-_0x4ab121._0x49ac81,-0x17f,-_0x4ab121._0x4750b0,-_0x4ab121._0x3eed06)](_0x2fdeae,JSON['stringify'](_0x5bfa8e,null,0x16*-0x1b1+-0x233f*-0x1+0x1f9*0x1),_0x5a3aaf),cachedModels=_0x5bfa8e,cacheTime=Date[_0x427e05(-_0x4ab121._0x5bb422,-0x138,-_0x4ab121._0x40718f,-_0x4ab121._0xb0bd50)]();const _0x22dc63={};_0x22dc63[_0x427e05(-_0x4ab121._0x4d0635,-0x15c,-0x14f,-0x161)]=_0x2fdeae,logger[_0x427e05(-_0x4ab121._0x21c17a,-_0x4ab121._0x2cc198,-_0x4ab121._0x666ed7,-0x174)](_0x1535ed[_0x427e05(-_0x4ab121._0x47ca82,-_0x4ab121._0x578a55,-_0x4ab121._0x3f0647,-_0x4ab121._0x1fa8b8)],_0x22dc63);}catch(_0x5da561){const _0x1a3951={};_0x1a3951[_0x427e05(-0x13d,-0x138,-0x143,-0x14b)]=_0x5da561[_0x427e05(-_0x4ab121._0x230ad3,-_0x4ab121._0x55de1e,-_0x4ab121._0x174eb6,-0x177)],logger['error'](_0x1535ed[_0x427e05(-_0x4ab121._0x3e5a0d,-_0x4ab121._0x305f3d,-0x158,-_0x4ab121._0x33358e)],_0x1a3951);throw _0x5da561;}}function _0x1cd3(_0x33a456,_0x4e65c9){_0x33a456=_0x33a456-(-0x16*-0x89+0xa*0x20+-0xbb9);const _0x1f0e4d=_0x5517();let _0x21ce57=_0x1f0e4d[_0x33a456];if(_0x1cd3['xusnGT']===undefined){var _0x410930=function(_0x2b1eb7){const _0x4c9f27='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x444050='',_0x4254ce='';for(let _0x2086d3=-0x13*0x137+0x1*0x1ba7+0xd*-0x5a,_0x14e2b4,_0x4057b4,_0x3df9ae=0x1945+-0x1f*-0x1+-0x1964;_0x4057b4=_0x2b1eb7['charAt'](_0x3df9ae++);~_0x4057b4&&(_0x14e2b4=_0x2086d3%(-0x3b9*-0x6+0x244d+0x3a9f*-0x1)?_0x14e2b4*(-0x69f+-0xf4a+-0x3d*-0x5d)+_0x4057b4:_0x4057b4,_0x2086d3++%(0x3e8*0x6+0x2*-0xe87+0x5a2))?_0x444050+=String['fromCharCode'](0xda3*0x2+-0x80f*-0x4+0x1381*-0x3&_0x14e2b4>>(-(-0x35*-0x29+-0x7*0x2a6+0xa0f)*_0x2086d3&-0x24cc+0xf94*0x2+0x5aa)):-0x11*-0x224+-0x1189+-0x1*0x12db){_0x4057b4=_0x4c9f27['indexOf'](_0x4057b4);}for(let _0x3b73f5=0xfc8+0xfb4+-0x1f7c,_0x369bac=_0x444050['length'];_0x3b73f5<_0x369bac;_0x3b73f5++){_0x4254ce+='%'+('00'+_0x444050['charCodeAt'](_0x3b73f5)['toString'](0x81d+0x3*-0x5fd+-0x8d*-0x12))['slice'](-(0x1a7*-0x14+-0x75*-0x3f+-0x1*-0x443));}return decodeURIComponent(_0x4254ce);};_0x1cd3['ZMPfbM']=_0x410930,_0x1cd3['DdVESg']={},_0x1cd3['xusnGT']=!![];}const _0xb67936=_0x1f0e4d[-0x226c+-0x139*-0x10+0x1*0xedc],_0x1f3c6f=_0x33a456+_0xb67936,_0x54564b=_0x1cd3['DdVESg'][_0x1f3c6f];return!_0x54564b?(_0x21ce57=_0x1cd3['ZMPfbM'](_0x21ce57),_0x1cd3['DdVESg'][_0x1f3c6f]=_0x21ce57):_0x21ce57=_0x54564b,_0x21ce57;}export function clearAgentModelsCache(){cachedModels=null,cacheTime=0x70f*0x5+0x1*0x461+-0x27ac;}
|
package/dist/lib/api-keys.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xa8f9f0,_0x3e40cf){const _0x3086ea={_0x1bd7b2:0x536,_0x39d41e:0x10a,_0xb7f129:0xff,_0x513326:0x1e,_0x43fad3:0x5a,_0x177b93:0x93,_0x2296aa:0x26,_0x5a7889:0x507,_0x294147:0x4a7,_0xbab4:0xee,_0x168797:0xe1,_0x356547:0xba,_0xe9770b:0x6f,_0x187b04:0x49e,_0x2ebdec:0x441,_0x23a350:0x440,_0x493ef4:0x49,_0x37975f:0x2};function _0x48a0e9(_0x47faa1,_0x4a4c7,_0x44d6e7,_0x5cba2c){return _0x210b(_0x5cba2c- -0x2b3,_0x44d6e7);}function _0x490263(_0x180d3c,_0xb7829,_0x4d722b,_0x30c420){return _0x210b(_0xb7829-0x25d,_0x30c420);}const _0xed352a=_0xa8f9f0();while(!![]){try{const _0x3019ac=-parseInt(_0x490263(0x4b7,0x4af,0x47e,_0x3086ea._0x1bd7b2))/(0x7f7*0x1+0x189f+-0x2095)*(-parseInt(_0x48a0e9(-0xbc,-_0x3086ea._0x39d41e,-_0x3086ea._0xb7f129,-0xe3))/(0x21c3+0x24ed+-0x46ae))+parseInt(_0x48a0e9(-_0x3086ea._0x513326,0xb6,-_0x3086ea._0x43fad3,0x2a))/(0x1*-0x163d+0x1d99+-0x759)+parseInt(_0x48a0e9(-_0x3086ea._0x177b93,0xd,-0x53,-_0x3086ea._0x2296aa))/(-0xb2d+0x246e+-0x47*0x5b)*(parseInt(_0x490263(_0x3086ea._0x5a7889,_0x3086ea._0x294147,0x533,0x43c))/(0x6*-0x68+-0x22f9+0x256e))+parseInt(_0x48a0e9(-_0x3086ea._0xbab4,-0xea,-0x102,-0x96))/(-0x1*0x1d92+-0xd3f+0x2ad7)*(-parseInt(_0x48a0e9(-0xd2,-0x9e,-_0x3086ea._0x168797,-_0x3086ea._0x356547))/(0x1f17+-0x86*0x24+0x22*-0x5c))+parseInt(_0x48a0e9(-0xac,-_0x3086ea._0xe9770b,-0x125,-0xb9))/(-0x1f*0xb+-0x4a1*-0x7+-0x1f0a)*(parseInt(_0x48a0e9(-0x6b,0x57,0x40,-0xc))/(-0x3*0x9a2+-0x19e6+0x36d5*0x1))+-parseInt(_0x490263(_0x3086ea._0x187b04,_0x3086ea._0x2ebdec,0x4b3,_0x3086ea._0x23a350))/(0xa4e+-0x379*-0xa+0x1*-0x2cfe)+-parseInt(_0x48a0e9(0x3b,_0x3086ea._0x493ef4,-0x8e,-_0x3086ea._0x37975f))/(0xb7d*-0x1+0x354+0x64*0x15);if(_0x3019ac===_0x3e40cf)break;else _0xed352a['push'](_0xed352a['shift']());}catch(_0x263343){_0xed352a['push'](_0xed352a['shift']());}}}(_0x5e34,-0x279bd+0xbffee+-0x2a47));import{logger}from'./logger.js';import{getActiveApiKeyAccount,getAnyApiKeyAccount}from'./provider-accounts.js';import{loadAgentModels,clearAgentModelsCache}from'./agent-models.js';const VALID_CLAUDE_MODELS=[_0x5e21b2(0xa,-0x4d,-0x1e,0x49),_0x2fc064(0x307,0x29f,0x2cb,0x2da),_0x5e21b2(0x4e,0xb7,0x54,0xf),_0x5e21b2(0x9c,0xb,0x4b,0x60)+_0x5e21b2(-0x1a,0x4c,-0x26,-0x9d)+'14','claude-opu'+_0x5e21b2(0x78,0x3d,0x33,0x50),_0x5e21b2(0x4,-0x14,-0x1c,0x3)+_0x2fc064(0x209,0x25f,0x260,0x241),'claude-son'+_0x2fc064(0x29f,0x1f4,0x252,0x23a)+_0x2fc064(0x2aa,0x30e,0x2bf,0x29a),_0x2fc064(0x1d4,0x25b,0x256,0x1e5)+_0x5e21b2(-0xaf,-0x99,-0x8d,-0xb3)+_0x5e21b2(0x1,-0x3f,-0x78,-0x94),_0x5e21b2(-0x41,-0x3b,-0x51,-0x61)+'ku-4-5-202'+_0x5e21b2(-0x43,0x55,-0x34,-0xa6),_0x5e21b2(0x28,0x44,0x34,-0x2d)+_0x5e21b2(0xab,0x2a,0x78,0x31)+_0x5e21b2(-0xc3,-0x108,-0x93,-0x11f),_0x2fc064(0x28f,0x2f8,0x2a6,0x285)+_0x2fc064(0x195,0x1ed,0x219,0x19c)+'241022',_0x5e21b2(0x6,0xad,0x34,0x29)+_0x5e21b2(-0x87,-0x80,-0x59,0xa)+_0x2fc064(0x19c,0x22a,0x1e2,0x1a2),_0x2fc064(0x2b4,0x256,0x2a6,0x29b)+_0x5e21b2(0x4d,0x52,0x2c,0x73)+_0x2fc064(0x2f2,0x30f,0x2da,0x261),_0x2fc064(0x28d,0x2ed,0x2a6,0x333)+'-haiku-202'+_0x2fc064(0x24d,0x1fe,0x200,0x20d),'claude-3-o'+_0x5e21b2(-0x1f,-0x40,-0x46,0x8),_0x5e21b2(0x8d,0x56,0x6,-0x6b)+'pus-202402'+'29',_0x5e21b2(0x29,0x1e,0x5a,0x76)+_0x5e21b2(-0x9,-0x43,0x19,0x56)+_0x5e21b2(0xcf,-0x16,0x61,0x48),_0x2fc064(0x290,0x283,0x255,0x1cd)+_0x5e21b2(0x83,0x13,0x7,0x23)+'307'],VALID_OPENAI_MODELS=['o3','o3-mini','o1',_0x5e21b2(-0x74,-0xa3,-0x50,-0xbf),_0x5e21b2(-0xeb,-0xd9,-0x8a,-0xc7),_0x5e21b2(-0x85,0x2,-0x4a,-0x46),_0x5e21b2(-0x46,-0x33,-0x54,-0x16)+_0x5e21b2(-0x8d,-0xf0,-0x7d,-0x26),'gpt-5.3-co'+'dex',_0x5e21b2(0xc2,-0x22,0x4c,0xc9)+_0x2fc064(0x1f1,0x2ad,0x26e,0x2ba),_0x2fc064(0x271,0x203,0x25a,0x23a)+_0x2fc064(0x211,0x1cc,0x1ea,0x247),_0x2fc064(0x282,0x2c6,0x25a,0x1de)+'dex-mini',_0x2fc064(0x283,0x271,0x25a,0x2a8)+_0x2fc064(0x2ec,0x2cb,0x26e,0x202),_0x5e21b2(0x28,-0x79,-0x25,-0x8a),_0x2fc064(0x259,0x210,0x23f,0x286),'gpt-4o-min'+'i',_0x5e21b2(-0x1b,-0x15,-0x4e,0x18)+_0x2fc064(0x29d,0x1f0,0x23d,0x29d),'gpt-4o-202'+'4-08-06',_0x2fc064(0x22c,0x19a,0x224,0x226)+'4-05-13',_0x5e21b2(0x13,0x2b,-0x42,-0x1f)+'o',_0x2fc064(0x25e,0x1a8,0x230,0x25d)+_0x5e21b2(-0x7b,0x2c,-0x55,0x2a),_0x5e21b2(0x46,-0x85,-0x42,-0x8b)+_0x2fc064(0x1f1,0x2d2,0x27a,0x2fb)+'09',_0x2fc064(0x2ba,0x1e4,0x239,0x229),'gpt-4-0613'],VALID_GEMINI_MODELS=[_0x5e21b2(0x56,0xcd,0x66,0xdc)+_0x5e21b2(-0x37,0x99,0x24,0x58)+'ew','gemini-3-p'+_0x2fc064(0x24a,0x26b,0x2ad,0x254),_0x5e21b2(0x8a,0xaa,0x38,0x78)+'lash-previ'+'ew',_0x5e21b2(0xef,0x9b,0x80,0xd4)+'-pro','gemini-2.5'+'-pro-previ'+'ew-06-05',_0x5e21b2(0x87,0x8b,0x80,0x10b)+_0x2fc064(0x247,0x2f5,0x282,0x2db),_0x5e21b2(0x8a,0xd0,0x80,0x101)+_0x2fc064(0x2f7,0x24b,0x2c2,0x338)+_0x5e21b2(-0x49,-0xbd,-0x47,-0xc5),_0x5e21b2(0x19,0x27,0x57,0xaf)+_0x5e21b2(-0x14,0x7,0x10,0x61),_0x2fc064(0x2c2,0x2dd,0x2c9,0x31d)+_0x2fc064(0x316,0x2b2,0x2e8,0x2c2),_0x5e21b2(0x14,-0x8d,-0x16,-0x2)+_0x2fc064(0x266,0x23f,0x1eb,0x1d7),_0x5e21b2(-0xd,-0x19,-0x16,-0x47)+'-pro-lates'+'t',_0x5e21b2(-0x82,0x2d,-0x16,0x4)+_0x2fc064(0x246,0x200,0x282,0x2c6),'gemini-1.5'+_0x5e21b2(0x47,-0x1a,-0x38,-0x3a)+'est','pro',_0x2fc064(0x24a,0x18e,0x210,0x269)],ENDPOINT_ENABLED_AGENTS=new Set([_0x5e21b2(-0x26,-0x6,0x63,0xae),_0x5e21b2(-0x3c,-0xb,-0x56,-0x46),'gemini']);function endpointSupportsApiVersion(_0x171686){const _0x954afd={_0x362925:0x3dc,_0x1bf968:0x3fe,_0x2878e9:0x452,_0x2f79d4:0x448,_0x24d4f2:0x73,_0x41f3c8:0xe9,_0xcff43a:0x406,_0x4c6b27:0x456,_0x375203:0xc9,_0x4a3e4c:0x4b,_0x6453fb:0x49b,_0x1c044a:0x4da,_0x2d3fcd:0x481},_0x4d41db={_0x48f7af:0x143,_0x54a8e8:0x1b2},_0x390cc6={_0x4004fb:0x2f,_0x286247:0x136},_0x401246={};function _0x5daa29(_0x2770f8,_0x5d3ef7,_0x5ad966,_0x4eb0ec){return _0x5e21b2(_0x2770f8-_0x390cc6._0x4004fb,_0x5d3ef7,_0x4eb0ec- -0xc2,_0x4eb0ec-_0x390cc6._0x286247);}_0x401246['MILll']=function(_0x7000de,_0x3c17d2){return _0x7000de===_0x3c17d2;},_0x401246[_0x3881d9(_0x954afd._0x362925,0x39e,_0x954afd._0x1bf968,0x41a)]=_0x3881d9(_0x954afd._0x2878e9,0x425,_0x954afd._0x2f79d4,0x3ce),_0x401246['jITkr']=function(_0x1ddc05,_0x51a694){return _0x1ddc05===_0x51a694;},_0x401246[_0x5daa29(-0xaa,-_0x954afd._0x24d4f2,-0x10e,-_0x954afd._0x41f3c8)]=_0x3881d9(_0x954afd._0xcff43a,0x4bd,0x49e,_0x954afd._0x4c6b27);const _0x20b6a9=_0x401246;function _0x3881d9(_0x1da896,_0x4bd179,_0x17fe06,_0x4a60d2){return _0x2fc064(_0x1da896-0xba,_0x4bd179-_0x4d41db._0x48f7af,_0x4a60d2-_0x4d41db._0x54a8e8,_0x4bd179);}return _0x20b6a9[_0x5daa29(-_0x954afd._0x375203,-_0x954afd._0x4a3e4c,-0xb5,-0x89)](_0x171686,_0x20b6a9['vqhub'])||_0x20b6a9[_0x3881d9(0x4f7,_0x954afd._0x6453fb,_0x954afd._0x1c044a,_0x954afd._0x2d3fcd)](_0x171686,_0x20b6a9[_0x5daa29(-0x154,-0x13f,-0x16a,-_0x954afd._0x41f3c8)]);}function trimString(_0x1d4dae){const _0x30b2a1={_0xe8cde3:0x4f0,_0x4d28d8:0x4da,_0x2d7122:0x298,_0x40632b:0x2bf,_0x4e71ec:0x263,_0x1276ea:0x62e,_0x30108e:0x5b0},_0x3691e4={_0x11ce07:0x27a,_0x220e96:0xee},_0x35a52b={_0x219468:0xba,_0x5e7bba:0x547,_0x3aede6:0x9b},_0x22770a={};_0x22770a['dyPrq']=function(_0x40a79a,_0x558213){return _0x40a79a!==_0x558213;};function _0x567995(_0x2d2361,_0x5a7726,_0x4f0ec7,_0x43b38f){return _0x5e21b2(_0x2d2361-_0x35a52b._0x219468,_0x43b38f,_0x4f0ec7-_0x35a52b._0x5e7bba,_0x43b38f-_0x35a52b._0x3aede6);}_0x22770a[_0x567995(0x5e8,0x5ef,0x565,_0x30b2a1._0xe8cde3)]=_0x567995(0x562,0x484,_0x30b2a1._0x4d28d8,0x49b);const _0x3a37d8=_0x22770a;if(_0x3a37d8['dyPrq'](typeof _0x1d4dae,_0x3a37d8[_0x106acf(_0x30b2a1._0x2d7122,_0x30b2a1._0x40632b,_0x30b2a1._0x4e71ec,0x268)]))return null;const _0x24f5e6=_0x1d4dae[_0x567995(0x5e8,_0x30b2a1._0x1276ea,_0x30b2a1._0x30108e,0x59b)]();function _0x106acf(_0x58f313,_0x4896f2,_0x1be665,_0x46139f){return _0x5e21b2(_0x58f313-0x17,_0x4896f2,_0x58f313-_0x3691e4._0x11ce07,_0x46139f-_0x3691e4._0x220e96);}return _0x24f5e6||null;}function normalizeBaseUrl(_0x341aeb){const _0x1e2d86={_0x1ab6d9:0x21c,_0x7af874:0x217,_0x377a06:0x1b6,_0x2bc581:0x158,_0x21e674:0x17a,_0x47aad6:0x216,_0x5711b5:0x198,_0x4c5b96:0x1f3,_0x152c75:0x218,_0xa80079:0x1d4,_0x5e2d34:0xfd,_0x5ed5c7:0x126},_0x20b99c={_0x545906:0xd1,_0x12677a:0x86},_0x342115={_0x518f69:0x17c,_0x20fc2d:0x35};function _0x5af7a1(_0x1fa6cb,_0x5a760b,_0x433013,_0x1c3b1a){return _0x5e21b2(_0x1fa6cb-_0x342115._0x518f69,_0x1fa6cb,_0x433013-0x19d,_0x1c3b1a-_0x342115._0x20fc2d);}const _0x4f41f4={'PXUqO':function(_0x421282,_0x38cb12){return _0x421282(_0x38cb12);},'GbQYX':function(_0x48c06d,_0x51e93c){return _0x48c06d!==_0x51e93c;},'blvGn':_0x34f6c4(_0x1e2d86._0x1ab6d9,_0x1e2d86._0x7af874,0x258,_0x1e2d86._0x377a06),'RupBI':function(_0x1ba17b,_0x5ed3af){return _0x1ba17b!==_0x5ed3af;}};function _0x34f6c4(_0x79e324,_0x5e9da2,_0x29f0cd,_0x952797){return _0x2fc064(_0x79e324-0x20,_0x5e9da2-_0x20b99c._0x545906,_0x5e9da2- -_0x20b99c._0x12677a,_0x79e324);}const _0x406bdd=_0x4f41f4[_0x34f6c4(0x22e,0x1db,0x250,0x1af)](trimString,_0x341aeb);if(!_0x406bdd)return null;try{const _0x260ffc=new URL(_0x406bdd);if(_0x4f41f4[_0x34f6c4(0x139,_0x1e2d86._0x2bc581,0xd2,0x151)](_0x260ffc[_0x34f6c4(0x1f2,0x1a7,0x132,0x1aa)],_0x4f41f4['blvGn'])&&_0x4f41f4['RupBI'](_0x260ffc[_0x34f6c4(0x231,0x1a7,_0x1e2d86._0x21e674,0x222)],_0x5af7a1(0x179,_0x1e2d86._0x47aad6,_0x1e2d86._0x5711b5,_0x1e2d86._0x4c5b96)))return null;return _0x260ffc[_0x5af7a1(0x1a8,0x272,_0x1e2d86._0x152c75,_0x1e2d86._0xa80079)]()[_0x5af7a1(_0x1e2d86._0x5e2d34,0xaf,_0x1e2d86._0x5ed5c7,0xa2)](/\/+$/,'');}catch{return null;}}function getDefaultEndpointConfig(_0x12c6ee){const _0x5eea03={_0x5b34c5:0x59d,_0x19d262:0x578,_0x3df864:0x522,_0x4b9e9e:0x540,_0x4920c9:0x148},_0x5b33fe={_0x506cce:0x1b6},_0x37842f={_0x3e7492:0x341};function _0x2e8c8b(_0x39504c,_0x1eee45,_0x5c61fd,_0x4eb3f4){return _0x2fc064(_0x39504c-0xb3,_0x1eee45-0xc9,_0x5c61fd-_0x37842f._0x3e7492,_0x4eb3f4);}const _0x5302df={};_0x5302df[_0x2e8c8b(_0x5eea03._0x5b34c5,_0x5eea03._0x19d262,_0x5eea03._0x3df864,_0x5eea03._0x4b9e9e)]='default';const _0x1d05a2=_0x5302df;if(!ENDPOINT_ENABLED_AGENTS[_0x17f954(0x146,0x123,0x111,_0x5eea03._0x4920c9)](_0x12c6ee))return null;const _0x452af5={};_0x452af5['api_versio'+'n']=null;function _0x17f954(_0x385d23,_0x164459,_0x44c3d0,_0x3f6f43){return _0x5e21b2(_0x385d23-0x16a,_0x3f6f43,_0x385d23-_0x5b33fe._0x506cce,_0x3f6f43-0xb4);}return{'mode':_0x1d05a2['iIhll'],'base_url':null,...endpointSupportsApiVersion(_0x12c6ee)?_0x452af5:{}};}export function normalizeEndpointConfig(_0x5549df,_0x68061){const _0x73e904={_0x36bb2f:0xa1,_0x110162:0xd2,_0x52ea51:0xa0,_0x330e86:0x313,_0x3cffe3:0x37e,_0x5a1332:0x3f2,_0x2db8e8:0x3d8,_0x2e3927:0x386,_0x3fa7b3:0x159,_0x202a59:0x199,_0x2cd3eb:0x1ea,_0x5000fc:0x377,_0x32fd1d:0x33f,_0xb496b:0x3a1,_0x245d30:0xb2,_0x2408bf:0x5b,_0x18b284:0xb3,_0x1e52a2:0x397,_0x5a2564:0x41c,_0x56ce7c:0x121,_0x3c42a7:0xee,_0x2565b3:0x13c,_0x1d27c3:0x2ec,_0x2db6ab:0x29d,_0x378127:0x2f3,_0x599376:0x2e9,_0x30f79e:0x36f,_0x3aa0d5:0x2d3,_0x44c9eb:0x11c,_0x25502b:0x18d,_0x362b20:0x176,_0x3ebfe3:0x2f6,_0x513ef8:0x28a,_0x4765d2:0x297,_0x555afe:0x186,_0x18c442:0x157,_0x42afe9:0x12a,_0x4ab365:0x3ee,_0x2e4555:0xaa,_0x5731b5:0x11f,_0x2eac52:0x163,_0x1d2128:0x318,_0x50f543:0x370,_0x24aed8:0xdc,_0x2a9707:0x162,_0x11eaac:0x116,_0x41510f:0x2e4,_0x24801d:0x145,_0x1c40cc:0x113},_0x3abe85={_0x4ae270:0x328},_0x4170d1={_0x289da4:0x191,_0x2897ff:0x8b},_0x2c8138={'HYPOU':function(_0x551cb4,_0x4c8af5){return _0x551cb4===_0x4c8af5;},'iGaNr':_0x208d0c(-_0x73e904._0x36bb2f,-_0x73e904._0x110162,-0x8a,-_0x73e904._0x52ea51),'xneTE':'XGIGq','YGxxD':_0x4b4a58(_0x73e904._0x330e86,0x293,_0x73e904._0x3cffe3,0x36e),'GeMuq':'default','BfDec':function(_0x5027c2,_0x5e6a25){return _0x5027c2!==_0x5e6a25;},'VXvkC':_0x4b4a58(0x3a9,_0x73e904._0x5a1332,_0x73e904._0x2db8e8,_0x73e904._0x2e3927),'nqjMz':_0x208d0c(-0x15a,-_0x73e904._0x3fa7b3,-_0x73e904._0x202a59,-0xe6),'yvycG':function(_0x731dd4,_0x2e591f){return _0x731dd4(_0x2e591f);}},_0x3a7206=getDefaultEndpointConfig(_0x5549df);if(!_0x3a7206){if(_0x2c8138[_0x208d0c(-_0x73e904._0x2cd3eb,-0x15f,-0xe2,-0x11d)](_0x2c8138[_0x4b4a58(_0x73e904._0x5000fc,_0x73e904._0x32fd1d,0x3d1,_0x73e904._0xb496b)],_0x2c8138['xneTE'])){const _0xab8267={};return _0xab8267[_0x208d0c(-0x117,-_0x73e904._0x245d30,-_0x73e904._0x2408bf,-_0x73e904._0x18b284)]=![],_0xab8267[_0x4b4a58(_0x73e904._0x1e52a2,0x3ef,_0x73e904._0x5a2564,0x3b5)]=_0x806bbb,_0xab8267;}else return null;}const _0x5876c2=trimString(_0x68061?.[_0x208d0c(-_0x73e904._0x56ce7c,-0xdf,-_0x73e904._0x3c42a7,-_0x73e904._0x2565b3)]),_0x9d87e4=_0x2c8138[_0x4b4a58(_0x73e904._0x1d27c3,_0x73e904._0x2db6ab,0x346,_0x73e904._0x378127)](_0x5876c2,_0x2c8138[_0x4b4a58(_0x73e904._0x599376,_0x73e904._0x30f79e,_0x73e904._0x3aa0d5,0x33b)])?_0x2c8138['YGxxD']:_0x2c8138['GeMuq'];if(_0x2c8138[_0x208d0c(-_0x73e904._0x44c9eb,-0x189,-_0x73e904._0x25502b,-_0x73e904._0x362b20)](_0x9d87e4,_0x2c8138[_0x4b4a58(0x2e9,_0x73e904._0x3ebfe3,_0x73e904._0x513ef8,_0x73e904._0x4765d2)])){if(_0x2c8138[_0x208d0c(-0x182,-_0x73e904._0x555afe,-0x211,-_0x73e904._0x18c442)]!==_0x2c8138[_0x208d0c(-0xf1,-_0x73e904._0x42afe9,-0x188,-0xbb)])return _0x3a7206;else _0x3e9a97[_0x4b4a58(0x36a,0x3cc,_0x73e904._0x4ab365,0x36d)+_0x208d0c(-_0x73e904._0x2e4555,-_0x73e904._0x5731b5,-0xe6,-_0x73e904._0x2eac52)]=_0x482a82;}const _0x1e5d73=_0x2c8138[_0x4b4a58(0x2e4,_0x73e904._0x1d2128,_0x73e904._0x50f543,0x2d4)](normalizeBaseUrl,_0x68061?.['base_url']);function _0x208d0c(_0x2e31f4,_0x470c99,_0x31cf84,_0x20fc01){return _0x2fc064(_0x2e31f4-_0x4170d1._0x289da4,_0x470c99-_0x4170d1._0x2897ff,_0x470c99- -0x395,_0x20fc01);}if(!_0x1e5d73)return _0x3a7206;function _0x4b4a58(_0x239b06,_0x39a354,_0x103af2,_0x35d760){return _0x5e21b2(_0x239b06-0x14b,_0x39a354,_0x239b06-_0x3abe85._0x4ae270,_0x35d760-0x152);}return{'mode':_0x2c8138[_0x208d0c(-_0x73e904._0x24aed8,-_0x73e904._0x2a9707,-_0x73e904._0x11eaac,-0xf7)],'base_url':_0x1e5d73,..._0x2c8138['yvycG'](endpointSupportsApiVersion,_0x5549df)?{'api_version':_0x2c8138[_0x4b4a58(_0x73e904._0x41510f,0x314,0x36d,0x2e6)](trimString,_0x68061?.[_0x208d0c(-_0x73e904._0x24801d,-0x13c,-_0x73e904._0x1c40cc,-_0x73e904._0x11eaac)+'n'])}:{}};}export function getValidModels(_0x2c695c){const _0x1235bb={_0x4251d3:0x609,_0x346c09:0x56f,_0x456ace:0x5f4},_0x136514={_0x3e4ab7:0x1ba},_0x5f12cb={_0x1faa41:0x45};function _0xbe6b13(_0x3ddaba,_0x5177f4,_0x5efe1c,_0x282e4e){return _0x5e21b2(_0x3ddaba-_0x5f12cb._0x1faa41,_0x5177f4,_0x3ddaba-0x54c,_0x282e4e-0x6f);}const _0xf3f1b5={};_0xf3f1b5[_0xbe6b13(0x54b,0x597,0x541,0x56d)]=_0xbe6b13(0x5af,0x557,_0x1235bb._0x4251d3,0x5dc),_0xf3f1b5[_0xbe6b13(0x4e5,0x4f6,0x4bb,_0x1235bb._0x346c09)]='codex';const _0x2b9755=_0xf3f1b5;function _0x42760d(_0x571656,_0x8446ff,_0x30bdf2,_0x5c195c){return _0x5e21b2(_0x571656-0x26,_0x8446ff,_0x30bdf2-_0x136514._0x3e4ab7,_0x5c195c-0x19f);}switch(_0x2c695c){case _0x2b9755['AemXl']:return VALID_CLAUDE_MODELS;case _0x2b9755['UOQpZ']:return VALID_OPENAI_MODELS;case _0xbe6b13(0x57e,0x571,_0x1235bb._0x456ace,0x502):return VALID_GEMINI_MODELS;default:return[];}}export function validateModel(_0x28f58b,_0x1873fc){const _0x31f975={_0x29bc29:0x207,_0x2c1c4c:0x1ec,_0x1bc52c:0x231,_0x224177:0x420,_0x98821f:0x362,_0x362c97:0x3c1,_0x502ab1:0x3a7,_0x213ad9:0x373,_0x5e19c7:0x3ea,_0x19465f:0x1ec,_0x1e1609:0x324,_0x6d663f:0x3ac,_0x573358:0x2f8,_0x41f75a:0x377,_0x1f581a:0x3ee,_0x48ef7e:0x40e,_0x25d776:0x22a,_0x2f7f38:0x1c6,_0x322395:0x3f2,_0x526a42:0x3fe,_0x5124ad:0x418,_0x474606:0x224,_0x6cfbbb:0x1f8,_0x2c8647:0x273,_0x268e11:0x2f3,_0x3f041b:0x2e4,_0x53796f:0x34a,_0x14b7e4:0x44f,_0x1923d9:0x3be,_0x5b1789:0x2f6,_0x44eb06:0x373,_0x808a9a:0x399,_0x1b5ba6:0x3a7,_0x407be5:0x220,_0x2e1567:0x259,_0x4f12c7:0x3db,_0x35b3a7:0x3c3,_0x2e28eb:0x3c8,_0x5a35cd:0x3a7,_0x31f2c2:0x226,_0x248058:0x28a,_0x5a7843:0x1cf,_0x3c04a4:0x3ea,_0x368927:0x3b7},_0x39c0fa={_0x5ed468:0xc7,_0x75fcb2:0xb1},_0x7173c6={_0x48eaf7:0x72,_0xee0256:0x142},_0xf7317d={'QAdHH':function(_0x4a4801,_0x35f5a7,_0x15cf6e){return _0x4a4801(_0x35f5a7,_0x15cf6e);},'ELaTX':function(_0x128742,_0x14043f){return _0x128742(_0x14043f);},'crdgF':function(_0x3e0812,_0x42e80f){return _0x3e0812(_0x42e80f);},'EBlRJ':function(_0x53b4a9,_0x17b370){return _0x53b4a9===_0x17b370;},'QEbke':_0x147cac(_0x31f975._0x29bc29,_0x31f975._0x2c1c4c,_0x31f975._0x1bc52c,0x268)};if(!_0x28f58b){const _0x37849a={};return _0x37849a['valid']=!![],_0x37849a;}const _0x251879=_0xf7317d['crdgF'](getValidModels,_0x1873fc);function _0x147cac(_0x24c6e5,_0xb7de11,_0x3fd527,_0x9dd6e5){return _0x2fc064(_0x24c6e5-_0x7173c6._0x48eaf7,_0xb7de11-_0x7173c6._0xee0256,_0x24c6e5- -0xbd,_0xb7de11);}if(_0x251879[_0x441e33(0x3eb,0x395,0x3c5,0x454)]===0x2bd*0xa+-0xb7*0x2f+-0x637*-0x1){const _0x4698df={};return _0x4698df[_0x441e33(0x3ea,_0x31f975._0x224177,_0x31f975._0x98821f,0x41c)]=!![],_0x4698df;}if(_0x251879[_0x441e33(_0x31f975._0x362c97,_0x31f975._0x502ab1,_0x31f975._0x213ad9,0x373)](_0x28f58b)){const _0x14ad8e={};return _0x14ad8e[_0x441e33(_0x31f975._0x5e19c7,0x3e9,0x452,0x448)]=!![],_0x14ad8e;}const _0x426970=_0x28f58b[_0x147cac(0x1cd,0x252,_0x31f975._0x19465f,0x17b)+'e'](),_0x54c087=_0x251879[_0x441e33(0x347,_0x31f975._0x1e1609,_0x31f975._0x6d663f,_0x31f975._0x573358)](_0x5a8977=>_0x5a8977[_0x441e33(0x391,0x3db,0x350,0x3d8)+'e']()===_0x426970);if(_0x54c087){if(_0xf7317d[_0x441e33(0x3e5,0x3e5,_0x31f975._0x41f75a,0x3bb)](_0xf7317d[_0x441e33(_0x31f975._0x1f581a,0x460,_0x31f975._0x48ef7e,0x424)],_0xf7317d[_0x147cac(_0x31f975._0x25d776,_0x31f975._0x2f7f38,0x21e,0x231)])){const _0x71f8e9={};return _0x71f8e9[_0x441e33(0x3ea,_0x31f975._0x322395,_0x31f975._0x526a42,_0x31f975._0x5124ad)]=![],_0x71f8e9[_0x147cac(_0x31f975._0x474606,_0x31f975._0x6cfbbb,_0x31f975._0x2c8647,0x23a)]=_0x54c087,_0x71f8e9;}else{void _0xa7f72b;const _0x53c120={};_0x53c120[_0x441e33(_0x31f975._0x268e11,_0x31f975._0x2c8647,_0x31f975._0x3f041b,0x2b1)]=![];const {account:_0x114d12,source:_0x2ed5d6}=_0xf7317d[_0x441e33(0x3bf,0x3d0,0x3ef,_0x31f975._0x53796f)](_0x152fa5,_0x243f68,_0x53c120),_0x2ab082=_0xf7317d[_0x441e33(0x3f5,_0x31f975._0x14b7e4,_0x31f975._0x1923d9,0x3f9)](_0x20740f,_0x114d12);if(_0x2ab082&&_0x114d12){const _0xd746a6={};_0xd746a6[_0x441e33(0x33c,0x3b2,_0x31f975._0x6d663f,0x37e)]=_0x33123b,_0xd746a6[_0x441e33(0x336,0x3a4,0x2c8,_0x31f975._0x5b1789)]=_0x114d12['id'],_0xd746a6['source']=_0x2ed5d6,_0x28d5ed[_0x441e33(_0x31f975._0x44eb06,0x3cf,0x32c,0x361)]('Selected\x20A'+'PI\x20key\x20acc'+_0x441e33(_0x31f975._0x502ab1,0x3e7,_0x31f975._0x808a9a,_0x31f975._0x1b5ba6)+_0x147cac(_0x31f975._0x407be5,_0x31f975._0x2e1567,0x282,0x1bf)+_0x441e33(_0x31f975._0x4f12c7,_0x31f975._0x35b3a7,_0x31f975._0x2e28eb,_0x31f975._0x5a35cd),_0xd746a6);}return _0x2ab082;}}const _0x1a46d0=_0xf7317d['QAdHH'](findClosestMatch,_0x28f58b,_0x251879);if(_0x1a46d0){const _0x191619={};return _0x191619[_0x147cac(_0x31f975._0x31f2c2,0x1f6,_0x31f975._0x248058,0x1b2)]=![],_0x191619[_0x147cac(_0x31f975._0x474606,_0x31f975._0x5a7843,0x2a0,0x248)]=_0x1a46d0,_0x191619;}const _0x22c57c={};function _0x441e33(_0x3b001a,_0xc59079,_0x1c61bf,_0x10de79){return _0x2fc064(_0x3b001a-_0x39c0fa._0x5ed468,_0xc59079-_0x39c0fa._0x75fcb2,_0x3b001a-0x107,_0xc59079);}return _0x22c57c[_0x441e33(_0x31f975._0x3c04a4,_0x31f975._0x368927,0x3ba,0x367)]=![],_0x22c57c;}function findClosestMatch(_0x11d2df,_0xfdc5be){const _0x428200={_0x3c446b:0x366,_0x5cf667:0x283,_0x23e4e8:0x305,_0x1d6a24:0x2f6,_0x23f54d:0xcb,_0x65ea20:0x86,_0x5cc28f:0xb1,_0x520d3c:0x13a,_0xeec66f:0x312,_0x580889:0x365,_0x43473f:0x3d1,_0x2a9278:0xb2,_0x20cd2b:0x355,_0x22a5dd:0x2c1,_0x6395bd:0x25a,_0x1dc0dd:0x2fd,_0x580e9b:0x2ce,_0x1e0c55:0x3d,_0x4f6359:0x8b,_0x18aead:0xcf,_0x56b9eb:0xc5,_0x5276c1:0x133,_0x347f26:0x174,_0x3836d8:0x72,_0x1a5395:0x2d,_0x41fe86:0x35d,_0xde3b87:0x3a8,_0x53e89f:0x3f9,_0x2c1437:0x3a9,_0x474afc:0x360,_0x330704:0xdb,_0x4b24c6:0x2fc,_0x2bc009:0x324,_0x504fa9:0x3bd,_0x590689:0x30a,_0x199dff:0x352,_0x3e2fc1:0x44,_0x35c4cf:0x89,_0x50c752:0xd9,_0x5e315b:0x15e,_0x1ad222:0x18d,_0x8738ac:0x10c},_0x2a3459={_0xf5b0e3:0x128},_0x44063f={_0x2c0ecb:0xf2,_0x11ea56:0xf4},_0x47b526={};_0x47b526[_0x414186(_0x428200._0x3c446b,_0x428200._0x5cf667,0x32b,_0x428200._0x23e4e8)]=_0x414186(0x2fe,0x3dc,_0x428200._0x1d6a24,0x35b),_0x47b526['kTpxa']=_0x2e5b84(-0xe,-0x9a,-_0x428200._0x23f54d,-_0x428200._0x65ea20);function _0x2e5b84(_0x165643,_0x281421,_0x2bd7ec,_0x327966){return _0x2fc064(_0x165643-_0x44063f._0x2c0ecb,_0x281421-_0x44063f._0x11ea56,_0x327966- -0x34d,_0x2bd7ec);}function _0x414186(_0x5a4e94,_0xf74340,_0x566283,_0x289525){return _0x2fc064(_0x5a4e94-_0x2a3459._0xf5b0e3,_0xf74340-0x12b,_0x289525-0xc4,_0x5a4e94);}_0x47b526[_0x2e5b84(-_0x428200._0x5cc28f,-_0x428200._0x520d3c,-0x134,-0x139)]=function(_0x81e15,_0x2bab61){return _0x81e15/_0x2bab61;},_0x47b526[_0x414186(_0x428200._0xeec66f,_0x428200._0x580889,_0x428200._0x43473f,0x34a)]=function(_0x3ff6ff,_0x5d5730){return _0x3ff6ff>_0x5d5730;},_0x47b526[_0x2e5b84(-0x13d,-0x93,-0x57,-_0x428200._0x2a9278)]=function(_0x13776e,_0x299da9){return _0x13776e>_0x299da9;},_0x47b526[_0x414186(_0x428200._0x20cd2b,_0x428200._0x22a5dd,0x313,0x2ca)]=function(_0x40e0ba,_0x46a0b9){return _0x40e0ba===_0x46a0b9;},_0x47b526['JfEih']=_0x414186(0x245,_0x428200._0x6395bd,_0x428200._0x1dc0dd,_0x428200._0x580e9b);const _0x2052aa=_0x47b526,_0x51fa13=_0x11d2df[_0x2e5b84(-0x14c,-0xa1,-_0x428200._0x1e0c55,-0xc3)+'e']();let _0xe6a1d2=null,_0x113ffd=0x19d*-0x7+-0x1c9c+0x46f*0x9;for(const _0x4ac0e4 of _0xfdc5be){const _0xd112df=_0x4ac0e4[_0x2e5b84(-0x130,-_0x428200._0x4f6359,-_0x428200._0x18aead,-0xc3)+'e']();if(_0xd112df['includes'](_0x51fa13)||_0x51fa13[_0x2e5b84(-0xbc,-_0x428200._0x56b9eb,-0x21,-0x93)](_0xd112df)){if(_0x2052aa[_0x2e5b84(-_0x428200._0x18aead,-_0x428200._0x5276c1,-_0x428200._0x347f26,-0x156)]!==_0x2052aa['kTpxa']){const _0x562334={};return _0x562334[_0x2e5b84(-0x91,-_0x428200._0x3836d8,-_0x428200._0x1a5395,-0x6a)]=![],_0x562334['suggestion']=_0x162f1a,_0x562334;}else{const _0x592498=_0x2052aa['rzNGh'](Math['min'](_0x51fa13['length'],_0xd112df['length']),Math[_0x414186(0x3da,0x399,0x383,0x3ad)](_0x51fa13[_0x414186(0x3e6,_0x428200._0x41fe86,0x40e,_0x428200._0xde3b87)],_0xd112df[_0x414186(0x32f,_0x428200._0x53e89f,0x33c,_0x428200._0xde3b87)]));if(_0x2052aa[_0x414186(_0x428200._0x2c1437,_0x428200._0x474afc,0x3c5,0x34a)](_0x592498,_0x113ffd)&&_0x2052aa['NovzV'](_0x592498,0x5f3*-0x6+0x245e+-0x56*0x2+0.5)){if(_0x2052aa[_0x2e5b84(-0xd5,-0xc2,-_0x428200._0x330704,-0x147)](_0x2052aa[_0x414186(_0x428200._0x4b24c6,0x2fd,_0x428200._0x2bc009,0x352)],_0x2052aa[_0x414186(0x31e,_0x428200._0x504fa9,_0x428200._0x590689,_0x428200._0x199dff)]))_0x113ffd=_0x592498,_0xe6a1d2=_0x4ac0e4;else{const _0x35017f={};return _0x35017f[_0x2e5b84(-0xc2,-_0x428200._0x3e2fc1,-0x99,-0x6b)]=_0x2f2473,_0x35017f[_0x2e5b84(-_0x428200._0x35c4cf,-0x9a,-0xda,-_0x428200._0x50c752)]=_0x2052aa[_0x2e5b84(-_0x428200._0x5e315b,-_0x428200._0x1ad222,-0xce,-_0x428200._0x8738ac)],_0x35017f;}}}}}return _0xe6a1d2;}function getApiKeyValueFromAccount(_0x35763e){const _0x412121={_0x2ecbf0:0x6b,_0x3937cb:0x346,_0x2fb4b0:0x33b,_0x16b163:0xfd,_0x30036a:0xa5,_0x2396d4:0xc2},_0x586234={_0x2d49e6:0x3c7,_0x507328:0x9e},_0x4027a9={_0x5df7d4:0x59,_0x13c7c0:0xde,_0x4e7984:0x150};function _0x3a66ce(_0x54cc7a,_0x2aa234,_0x31f1cc,_0x985334){return _0x5e21b2(_0x54cc7a-_0x4027a9._0x5df7d4,_0x54cc7a,_0x2aa234-_0x4027a9._0x13c7c0,_0x985334-_0x4027a9._0x4e7984);}const _0x5eadf5={'PhAgK':function(_0x3ffb0b,_0x19f470){return _0x3ffb0b(_0x19f470);}};function _0x7e3e20(_0x43139f,_0x33d4d7,_0x10c2df,_0x2bb60a){return _0x5e21b2(_0x43139f-0x1b,_0x43139f,_0x33d4d7-_0x586234._0x2d49e6,_0x2bb60a-_0x586234._0x507328);}return _0x5eadf5[_0x3a66ce(_0x412121._0x2ecbf0,0xce,0x66,0xc0)](trimString,_0x35763e?.[_0x7e3e20(0x33c,_0x412121._0x3937cb,_0x412121._0x2fb4b0,0x355)]||_0x35763e?.[_0x3a66ce(0x141,_0x412121._0x16b163,_0x412121._0x30036a,_0x412121._0x2396d4)]||null);}function _0x210b(_0x97cbf9,_0x5d0d8e){_0x97cbf9=_0x97cbf9-(-0x1*-0x841+0x15fb+-0x1*0x1c75);const _0x416a69=_0x5e34();let _0x8baabd=_0x416a69[_0x97cbf9];if(_0x210b['LBeRTe']===undefined){var _0x2bbb7f=function(_0x4604aa){const _0x345314='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x541ca4='',_0x4a8357='';for(let _0x15fe16=0x24f2+-0x8b*-0x45+-0x4a69,_0x5bc018,_0x5c41ae,_0x17f7b2=0x1*-0x1585+0x239f+0x13*-0xbe;_0x5c41ae=_0x4604aa['charAt'](_0x17f7b2++);~_0x5c41ae&&(_0x5bc018=_0x15fe16%(0x2397+-0xfcc+-0x53*0x3d)?_0x5bc018*(-0x7*0x533+-0x7a0+-0x1*-0x2c45)+_0x5c41ae:_0x5c41ae,_0x15fe16++%(0x1*-0x314+0xcfa+-0xb*0xe6))?_0x541ca4+=String['fromCharCode'](-0x262*-0xa+-0x22b3+0xbde&_0x5bc018>>(-(0x39e*0x1+-0x144b+-0x10af*-0x1)*_0x15fe16&-0x7fc+0xfb*0x7+0x125*0x1)):0x11*0x14c+0x1c79+-0x3285){_0x5c41ae=_0x345314['indexOf'](_0x5c41ae);}for(let _0x58acc5=0x148b+-0x830+-0x1*0xc5b,_0x2c68ed=_0x541ca4['length'];_0x58acc5<_0x2c68ed;_0x58acc5++){_0x4a8357+='%'+('00'+_0x541ca4['charCodeAt'](_0x58acc5)['toString'](0x1bf5+0x18a5+0x5*-0xa82))['slice'](-(-0x661*-0x2+0x9f2+-0x16b2));}return decodeURIComponent(_0x4a8357);};_0x210b['dLRUmf']=_0x2bbb7f,_0x210b['FbZyTO']={},_0x210b['LBeRTe']=!![];}const _0x266b96=_0x416a69[0x4*0x357+-0x1c0b+-0x1*-0xeaf],_0x53f40b=_0x97cbf9+_0x266b96,_0x99c206=_0x210b['FbZyTO'][_0x53f40b];return!_0x99c206?(_0x8baabd=_0x210b['dLRUmf'](_0x8baabd),_0x210b['FbZyTO'][_0x53f40b]=_0x8baabd):_0x8baabd=_0x99c206,_0x8baabd;}function resolveApiKeyAccount(_0x2ec8ec,{forTask:forTask=![]}={}){const _0x2a880c={_0x2cd070:0x351,_0x4380e6:0x380,_0x995065:0x339,_0x278fab:0x2d8,_0x525fd5:0x375,_0x382575:0x21d,_0x189983:0x1ca,_0x5a5c0d:0x274,_0x46a534:0x2ae,_0x1fdee9:0x2ed,_0x2b60ad:0x31a,_0x2b2824:0x3bb,_0x3878ee:0x34b,_0x227212:0x39c,_0x1c5e7d:0x3be,_0x5ab7f7:0x223,_0x571abe:0x2da,_0x15585f:0x350,_0x18c858:0x1cd,_0xa9c3d3:0x2d4,_0x26c7f7:0x269,_0x45de39:0x288,_0x38acdc:0x353,_0xf1d8e8:0x32a,_0x4b477c:0x397,_0x2045cd:0x2cb,_0x4fd03f:0x29c,_0x4c98d6:0x3d7,_0x247b84:0x1f0,_0x44bbfe:0x377,_0x3a13b3:0x369,_0x591bb4:0x34f,_0x149f8b:0x2b9,_0xb6efdf:0x29c,_0x5d3cd8:0x244,_0x570a7e:0x2fc,_0x1633d2:0x30f,_0x21e23b:0x31f,_0x85b8:0x280,_0x28a613:0x2cc,_0x56958b:0x2da,_0x29a23b:0x290,_0x456244:0x22e,_0xcb1f06:0x1ff},_0x22abd6={_0x18affc:0xd2,_0x3f614c:0x344};function _0x271655(_0x1093bf,_0x97c2ae,_0x5e8d1b,_0x2259f6){return _0x5e21b2(_0x1093bf-_0x22abd6._0x18affc,_0x5e8d1b,_0x1093bf-_0x22abd6._0x3f614c,_0x2259f6-0x135);}const _0x1d4b9d={'yaMcu':_0x271655(_0x2a880c._0x2cd070,_0x2a880c._0x4380e6,0x31d,0x2d4),'LcPtq':function(_0x34e4fa,_0x467b30){return _0x34e4fa(_0x467b30);},'LHeeP':'active','hmQgx':'none','cWqHu':function(_0x3e1a4c,_0x52d6ea){return _0x3e1a4c===_0x52d6ea;},'nSsIk':'MyGHq','agyqk':_0x271655(_0x2a880c._0x995065,_0x2a880c._0x278fab,_0x2a880c._0x525fd5,0x301),'JvAvY':function(_0x4d9a98,_0x16b306){return _0x4d9a98(_0x16b306);},'BQRpG':function(_0x4f9f0f,_0x57490c){return _0x4f9f0f===_0x57490c;},'DPfWT':'tonlA','LqvlF':_0x44a83d(_0x2a880c._0x382575,0x246,_0x2a880c._0x189983,0x21b)+_0x44a83d(_0x2a880c._0x5a5c0d,0x26a,0x2d5,_0x2a880c._0x46a534)};if(forTask){const _0x493759=_0x1d4b9d[_0x271655(_0x2a880c._0x1fdee9,0x2c1,_0x2a880c._0x2b60ad,0x2ba)](getActiveApiKeyAccount,_0x2ec8ec),_0x3fe6e9={};return _0x3fe6e9['account']=_0x493759,_0x3fe6e9[_0x271655(0x346,_0x2a880c._0x2b2824,0x39a,_0x2a880c._0x3878ee)]=_0x493759?_0x1d4b9d[_0x271655(_0x2a880c._0x227212,0x31c,_0x2a880c._0x1c5e7d,0x384)]:_0x1d4b9d['hmQgx'],_0x3fe6e9;}const _0x137892=getActiveApiKeyAccount(_0x2ec8ec);if(_0x137892){if(_0x1d4b9d[_0x44a83d(0x312,0x287,0x27f,_0x2a880c._0x5ab7f7)](_0x1d4b9d[_0x271655(0x33b,_0x2a880c._0x571abe,0x3c7,_0x2a880c._0x15585f)],_0x1d4b9d[_0x44a83d(_0x2a880c._0x18c858,0x1fc,0x1d2,0x26f)])){if(!_0x1f322d[_0x271655(_0x2a880c._0xa9c3d3,_0x2a880c._0x26c7f7,_0x2a880c._0x45de39,_0x2a880c._0x38acdc)](_0x46575b))return null;const _0x118982={};return _0x118982[_0x271655(0x32b,_0x2a880c._0xf1d8e8,_0x2a880c._0x4b477c,_0x2a880c._0x2045cd)+'n']=null,{'mode':_0x1d4b9d['yaMcu'],'base_url':null,..._0x2263af(_0x4cc54b)?_0x118982:{}};}else{const _0x4ced17={};return _0x4ced17[_0x44a83d(0x250,_0x2a880c._0x4fd03f,0x2aa,0x2bc)]=_0x137892,_0x4ced17[_0x44a83d(0x2ad,0x22e,0x298,0x259)]=_0x1d4b9d[_0x271655(0x39c,0x386,0x3e8,_0x2a880c._0x4c98d6)],_0x4ced17;}}const _0x52517e=_0x1d4b9d[_0x44a83d(0x2c2,0x26c,_0x2a880c._0x247b84,0x257)](getAnyApiKeyAccount,_0x2ec8ec);if(_0x52517e){if(_0x1d4b9d[_0x271655(0x374,0x3ec,_0x2a880c._0x44bbfe,_0x2a880c._0x3a13b3)](_0x1d4b9d['DPfWT'],_0x1d4b9d[_0x271655(_0x2a880c._0x591bb4,0x342,0x2f9,0x2ee)])){const _0x320a07={};return _0x320a07[_0x44a83d(_0x2a880c._0x149f8b,_0x2a880c._0xb6efdf,_0x2a880c._0x5d3cd8,_0x2a880c._0x570a7e)]=_0x52517e,_0x320a07[_0x271655(0x346,_0x2a880c._0x1633d2,_0x2a880c._0x21e23b,0x344)]=_0x1d4b9d[_0x271655(0x2e7,_0x2a880c._0x85b8,0x340,0x283)],_0x320a07;}else return null;}const _0xdfbf84={};_0xdfbf84[_0x44a83d(_0x2a880c._0x28a613,_0x2a880c._0x4fd03f,_0x2a880c._0x56958b,0x284)]=null,_0xdfbf84[_0x44a83d(_0x2a880c._0x29a23b,_0x2a880c._0x456244,_0x2a880c._0xcb1f06,0x259)]=_0x1d4b9d['hmQgx'];function _0x44a83d(_0x45d4de,_0x4ec61a,_0x5368e2,_0x246e17){return _0x5e21b2(_0x45d4de-0x96,_0x45d4de,_0x4ec61a-0x22c,_0x246e17-0x159);}return _0xdfbf84;}export async function getApiKey(_0x2a5790,_0x3209e3,_0x198c6c={}){const _0x41645a={_0x3a749f:0x12a,_0x45c16a:0x141,_0x207065:0x16d,_0x306f14:0x133},_0x1febaa={_0xd2c414:0x5d,_0x1e2263:0xdd},_0xd1e15c={_0x15b84c:0x184,_0x20b89f:0x13d},_0x422533={'QkEJf':function(_0x2c8aed,_0x22c6d3,_0x1a7cec){return _0x2c8aed(_0x22c6d3,_0x1a7cec);},'QrgJx':function(_0x410855,_0x45c486){return _0x410855(_0x45c486);}},{forTask:forTask=![]}=_0x198c6c,_0x152d69={};_0x152d69[_0x2a283d(_0x41645a._0x3a749f,0x1dd,0x151,0x182)]=forTask;const {account:_0x1d3f9f}=_0x422533[_0x2a283d(_0x41645a._0x45c16a,0x1f2,_0x41645a._0x207065,_0x41645a._0x306f14)](resolveApiKeyAccount,_0x3209e3,_0x152d69);function _0x527cff(_0x4c8052,_0x548346,_0x3e9596,_0x1780d2){return _0x5e21b2(_0x4c8052-_0xd1e15c._0x15b84c,_0x3e9596,_0x4c8052-0x5d9,_0x1780d2-_0xd1e15c._0x20b89f);}function _0x2a283d(_0x4ce6d7,_0x3d6235,_0x1afe1e,_0xfcb009){return _0x2fc064(_0x4ce6d7-_0x1febaa._0xd2c414,_0x3d6235-_0x1febaa._0x1e2263,_0x1afe1e- -0x9b,_0x4ce6d7);}return _0x422533['QrgJx'](getApiKeyValueFromAccount,_0x1d3f9f);}function _0x5e34(){const _0xee879c=['C291CMnL','q0Xbvurfx01pra','qvbjx0Tfwq','CuH3A00','y2XHDwrLltmTBW','ywLRDs0Ymdi0ma','BY0Ymdi0lta0lq','r09pr0Xfx0fqsq','Avbqz2S','rfbMv1q','CM52yLO','zgvMyxvSDa','BMvOCKu','qwPSwei','lwzSyxnO','A3v1r1C','ignHDxnLigvYCG','D1rWu1G','zhzfq0i','B3LQEK8','zgvSici','sw52ywXPzcbTBW','Dg9mB3DLCKnHCW','B25UzxqTmJaYna','zwfYBgLLC3rFyW','C2XPy2u','sMzfAwG','vw5RBM93BIbTBW','AuvgCLu','yxbPs2v5','zhP5v2q','rv9frKzpuLrFta','q0Xbvurfx0npra','AgfZs2v5','lxbYBY1WCMv2Aq','ywn0AxzL','u1bewNe','wxP2Dve','r0j1u2m','tM92ELy','DwrvsvC','Ahr0CdO','lwHHAwT1lwXHDa','AM9PBG','B3vUDcbMB3iGyq','ntK4nJuYAwXjzujQ','qLfsCeC','C29Tzq','z2vTAw5P','CY00lty','y2XHDwrLltmTnq','l3yX','reP0u3y','BKner24','z2vTAw5PltmTzG','tuLmBgW','CMvHC29UAw5NxW','CM8TChjLDMLLDW','yu1nB0i','CMDIz2m','CMvHDgvK','ANDSre4','sNzbDLK','B0TSA3q','qu5usfjpueLdxW','veTvy3q','Bw9Kzq','qvjUrwq','uufKseG','v3LdAve','Aw5JBhvKzxm','mte1mdy1D2vVBKHS','AwXWt2y','y2XHDwrLlw9WDq','z3b0ltuUmI1JBW','mduXna','ywn0AxzLqxbPsW','AuDHtNi','lwzSyxnOlxbYzq','C2L2zMi','A0PQEKS','odC0ntG0n3vJy3vtua','AgfPA3u','wMfSC2e','zw5HyMXLzezVCG','z2vTAw5PltiUma','teHLzva','B3b1CW','y2XHDwrLltmTCW','y1DXshu','u2HUuMS','AKLuA3i','Bgv2zwW','BwLU','Bw9KzwXwywXPza','mdiYoq','CgvYyxrPB24','y2XHDwrL','uMjlBgS','r0vnsu5jx0fqsq','z2vTAw5PltmUmq','zwXmEu8','zxn0','DhjPBq','sejMuey','DxHPBgLHCNKGBW','rujSuKO','lIbuAgLZig1HEq','q09ervHFuKvbuW','C3vNz2vZDgLVBG','ywnJB3vUDa','DMfSAwq','BgvUz3rO','AhnoBva','wfjLuu8','uuvIA2u','lwzSyxnOlwv4Ca','Bwf4','lxnVBM5LDc1Syq','zgPVsvy','x0Tfwq','Dg9tDhjPBMC','ruXHvfG','vNrtEKW','uKHpCee','mJe4mJq4ogXUDuPfva','z2vTAw5PltiUnq','y1vxDey','DNnUsfm','u2vSzwn0zwqGqq','CunTB1i','r2jrwvG','DgvZDa','B3jZlG','AuLOBgW','mJqWnJiW','sv9lrvK','mMjktK9jua','BMv0ltqTns0Yma','A2zez0m','tMnJvuC','BZeTChjLDMLLDW','rK9vtKrswv9bua','zgv4lw1HEa','lxbYBW','zM9YvgfZAW','sKndvhm','zwzMB3j0x2XLDG','zvnyvhO','C3rPB24','yxbPx2TLEq','rfjz','uuH6D0q','vLvIyxq','zgv4lxnWyxjR','rwvWt3u','A1rWEge','nJe0oteZmfLlwgrKCG','wKLwDLu','mJuWoti5','CMvWBgfJzq','s1zhs2m','yMfZzv91CMW','ug1zEve','Bw9KzwW','ndeWmJi','DuPLsNe','AgfZ','q29PufG','Cfn0Cue','C3rYAw5N','runQqKK','rv9vu0vFrK9vtG','uwTfsMy','x1zfuLnjt04','C1Hlqw0','vu9rCfO','qMzezwm','mta0nJu3EuHxvgni','mZq0CvHPAKDR','vLH2A0m','zMXHC2G','yvvpy2q','iIbMB3iG','wwrvC1u','CNPor2G','thf2Bey','BwvHBIaI','t1bftKfjx01pra','uhbLv1G','lxnVBM5LDc0Yma','Bwf0y2G','tgnqDhe','y29KzxG','BY1WCMv2Awv3','z3b0ltuUmY1JBW','seLUv24','r2jJufC','y2XHDwrLlwHHAq','BZeTBwLUAq','lI4U','z3b0ltrVltiWmG','lIbeAwqGEw91ia','Cwf3Efy','rvzfta','z3b0ltuUna','zxLby2nVDw50sq','AuL4rgm','DMLLDY0Wns0Yma','ChvZlwXHDgvZDa','ChjVDg9JB2W','Exz5y0C','ywnJB3vUDeLK','z3b0ltqTDhvYyG','mtyYrhzpEgPV','ufHeyNu','wuD4Eeq','Bw90wwO','ChjVDMLKzxi','sfLqt1u','wLHctw4','Bw9KzwXtDwDNzq','z3b0ltq','lwzSyxnOlwXHDa','DLHWwfC','rev1vwq','nc0Xms0Yma','nteWmde','z3b0ltrV','zMLUza','yurJBMW','ywD5CwS','rhbQvNq','D2fYBG','x0jbu0vFvvjm','vgfZA3m','z29XANy','ueKGA2v5igfJyW','BM5ztNK','C3zruhi','D3DQvuC','CY00ltiWmJuWnq','z3b0ltuUmG','r0vnsu5jx01pra','u0vFvvjm','tgPNthq','rv9vuKW','BMv0ltqTmJaYnq','uLnyEwq','C29UBMv0','y2XHDwrLltmTAa','y2XHDwrLlxnVBG','zw5KCg9PBNq','qKftrv9vuKW','yxbPx3zLCNnPBW','z3b0ltuUms1JBW','zMz2z3e','z2vTAw5PlteUnq','y3vZDg9T','nvPrvwfIDa','t05jtKDFtevwrq','BMv0ltqTnG','ufHvCu8','ugHbz0S','yMvuuLO','CgTfDgO','ugHhrw0','mtaWmdeWn2rzy21QAG','vu1AA3a','DNfODwi','BLnZswS','uxrpzxm','BNfQtxO','Aw5MBW','Ahr0Chm6','zgv4','uNf6v0G','uMzmwgy','qwvTwgW','AuztteC','t1bftKfjx0fqsq'];_0x5e34=function(){return _0xee879c;};return _0x5e34();}export async function getApiKeyForTask(_0xac3862,_0x31db40){const _0x5117a1={_0x3ea826:0x1a2,_0x12b914:0x12e,_0x3c37f9:0x19c,_0x42cfda:0x155},_0x8ea9c7={_0x259836:0x16c},_0x37fac7={_0x10e395:0x2ce},_0x10bd3b={'RKTZc':function(_0x27aa42,_0x3cb950,_0x3dc59f){return _0x27aa42(_0x3cb950,_0x3dc59f);},'AjlXB':function(_0x4e8279,_0x580145){return _0x4e8279(_0x580145);}};function _0x11522d(_0x39a751,_0x389d1c,_0x48b6f0,_0x5beeb1){return _0x5e21b2(_0x39a751-0x1c4,_0x39a751,_0x389d1c-_0x37fac7._0x10e395,_0x5beeb1-0x5e);}void _0xac3862;function _0x3ea331(_0x1573d2,_0x9c32a,_0x24abf7,_0x5e13a6){return _0x5e21b2(_0x1573d2-0x27,_0x24abf7,_0x5e13a6- -0x164,_0x5e13a6-_0x8ea9c7._0x259836);}const _0x4413d5={};_0x4413d5[_0x3ea331(-0x1b4,-_0x5117a1._0x3ea826,-0x1a4,-0x1ea)]=!![];const {account:_0x47dae4}=_0x10bd3b['RKTZc'](resolveApiKeyAccount,_0x31db40,_0x4413d5);return _0x10bd3b[_0x3ea331(-_0x5117a1._0x12b914,-0x109,-_0x5117a1._0x3c37f9,-_0x5117a1._0x42cfda)](getApiKeyValueFromAccount,_0x47dae4);}export async function getApiKeyForAuxiliary(_0x6d09c7,_0x4b9f12){const _0x29dc5f={_0x5217df:0x2d,_0x2f869b:0x63,_0x4b6d81:0x6a,_0x498a5b:0x99,_0x4cbf3a:0x1b8,_0x3ec999:0xee,_0x114bd2:0x12e,_0x590e4a:0x158,_0x449442:0x11a,_0x266c2d:0x111,_0x2adabc:0x125,_0x2cb418:0x1b6,_0x569114:0x1df,_0x3e2e08:0x130,_0x995470:0x170,_0x3d8d87:0x1e5,_0x248b6a:0x270,_0x1b7b37:0xde,_0x4ce5ba:0xf3,_0x200808:0x86,_0x4f4266:0xb6,_0x403cd5:0x88,_0x3831d7:0x27,_0x467bbb:0x62},_0x38fd09={_0x5bbb8d:0x11b,_0x4565ea:0xc3},_0x18d46a={_0x48eaf4:0x2b},_0x338a30={'nCDGn':function(_0x52b4bb,_0x12e08a,_0x3d2c57){return _0x52b4bb(_0x12e08a,_0x3d2c57);},'VUbat':function(_0x2d72e4,_0x2b3dd0){return _0x2d72e4(_0x2b3dd0);},'elLyO':function(_0x517d04,_0x4221ac){return _0x517d04&&_0x4221ac;},'aUOcd':_0x1f0df1(-0x57,0x33,-0x35,_0x29dc5f._0x5217df)+_0x1f0df1(_0x29dc5f._0x2f869b,0xf0,_0x29dc5f._0x4b6d81,_0x29dc5f._0x498a5b)+'ount\x20for\x20a'+_0x1f0df1(_0x29dc5f._0x4cbf3a,_0x29dc5f._0x3ec999,0x154,_0x29dc5f._0x114bd2)+_0x1f0df1(_0x29dc5f._0x590e4a,_0x29dc5f._0x449442,_0x29dc5f._0x266c2d,_0x29dc5f._0x2adabc)};void _0x6d09c7;const _0x18cb29={};function _0x29e711(_0x6ce3a5,_0x4ad99e,_0x440e69,_0x336bd4){return _0x2fc064(_0x6ce3a5-0x42,_0x4ad99e-_0x18d46a._0x48eaf4,_0x440e69- -0x3d9,_0x4ad99e);}_0x18cb29[_0x29e711(-_0x29dc5f._0x2cb418,-0x198,-0x1ed,-_0x29dc5f._0x569114)]=![];const {account:_0x3831fc,source:_0x485499}=_0x338a30[_0x29e711(-0x14c,-0x160,-_0x29dc5f._0x3e2e08,-0x15a)](resolveApiKeyAccount,_0x4b9f12,_0x18cb29),_0x3758cd=_0x338a30[_0x29e711(-_0x29dc5f._0x995470,-0x24e,-_0x29dc5f._0x3d8d87,-_0x29dc5f._0x248b6a)](getApiKeyValueFromAccount,_0x3831fc);function _0x1f0df1(_0x599f2d,_0x10a0a8,_0x4b5795,_0x2dbcb3){return _0x5e21b2(_0x599f2d-_0x38fd09._0x5bbb8d,_0x4b5795,_0x2dbcb3-_0x38fd09._0x4565ea,_0x2dbcb3-0x12e);}if(_0x338a30[_0x1f0df1(0x10f,0x13f,_0x29dc5f._0x1b7b37,0x12a)](_0x3758cd,_0x3831fc)){const _0x2cc398={};_0x2cc398[_0x1f0df1(0x28,_0x29dc5f._0x4ce5ba,0x5c,_0x29dc5f._0x200808)]=_0x4b9f12,_0x2cc398['accountId']=_0x3831fc['id'],_0x2cc398['source']=_0x485499,logger[_0x1f0df1(_0x29dc5f._0x4f4266,_0x29dc5f._0x403cd5,0x10b,0xbd)](_0x338a30[_0x1f0df1(-0x1b,0xd0,_0x29dc5f._0x3831d7,_0x29dc5f._0x467bbb)],_0x2cc398);}return _0x3758cd;}export async function getAgentEndpointConfig(_0x5865c5,_0x208152,_0x21d9b8={}){const _0xf096c6={_0x147f81:0xad,_0x24da6c:0xd5,_0x414873:0x156,_0x27fe94:0x12d},_0x6c69c1={_0x285d74:0xd5},_0x3e7449={'YrgRD':function(_0x4902c5,_0x5bc450,_0x2f2a59){return _0x4902c5(_0x5bc450,_0x2f2a59);}};void _0x5865c5;function _0x474f32(_0x44cd2c,_0x13fd58,_0x1cab6b,_0x1e6e6b){return _0x5e21b2(_0x44cd2c-0x17f,_0x1e6e6b,_0x13fd58- -0x127,_0x1e6e6b-0x128);}const {forTask:forTask=!![]}=_0x21d9b8;function _0x2c63b3(_0x59ec25,_0x2dcebd,_0x56e76a,_0x13adf7){return _0x2fc064(_0x59ec25-0x1be,_0x2dcebd-_0x6c69c1._0x285d74,_0x56e76a- -0x2f2,_0x2dcebd);}const _0x585a72={};_0x585a72[_0x2c63b3(-_0xf096c6._0x147f81,-0xbd,-0x106,-_0xf096c6._0x24da6c)]=forTask;const {account:_0x62a6b}=resolveApiKeyAccount(_0x208152,_0x585a72);return _0x3e7449['YrgRD'](normalizeEndpointConfig,_0x208152,_0x62a6b?.[_0x474f32(-0xbb,-0x142,-_0xf096c6._0x414873,-_0xf096c6._0x27fe94)]);}export async function getModel(_0x57eaac,_0x507263,_0x5bf63f={}){const _0x42ed83={_0x6fa94b:0x23e,_0x22ab41:0x21a,_0x3d894b:0x29c,_0x40adf6:0x308,_0x341f2c:0x2df,_0x530803:0x5c1,_0xf01765:0x5a2,_0x113d54:0x4d6,_0x161eed:0x51e,_0x3eac7c:0x29a,_0x1c54f7:0x214,_0x3cce1e:0x2c9,_0x420337:0x553,_0x48ff42:0x515,_0x4d578c:0x1d5,_0x35b347:0x23d,_0x225848:0x24a,_0x4562b4:0x462,_0x32d111:0x524,_0x5b57bd:0x328,_0xba30b0:0x588,_0x498c6f:0x519,_0x107e7:0x541,_0x2d21a8:0x4e9,_0xeb89b0:0x57a,_0x2eb953:0x517,_0x194689:0x598,_0x4cd15c:0x597,_0x5e2211:0x238,_0x4a02f5:0x269,_0x562fe3:0x29d,_0x2deccd:0x1c8,_0x2eec15:0x579,_0x4802cb:0x61f,_0x5684b7:0x593,_0x5ab59f:0x565,_0x5d6922:0x580,_0x1e411c:0x507,_0x1c9fb4:0x538,_0x2e78e4:0x471,_0x1a7082:0x4c9,_0x448739:0x494,_0x5975ef:0x5a3,_0x1627cf:0x2a1,_0x594aef:0x2b2,_0x1c8422:0x259,_0x4957e1:0x2c4},_0x238866={_0x42119b:0x69},_0x29f17e={_0x4f56c0:0x526,_0x173d31:0xaa},_0x56248c={'SfCvv':function(_0x445511){return _0x445511();},'qHwkM':function(_0x5122be,_0x1138a4){return _0x5122be&&_0x1138a4;},'RHOpA':function(_0x536e3d,_0x562f29){return _0x536e3d!==_0x562f29;},'QtOes':'GBSYC','EepOu':_0x1e5b34(_0x42ed83._0x6fa94b,0x31e,0x2a8,0x2a9),'ShnRk':function(_0x183046,_0x42ad90){return _0x183046+_0x42ad90;},'JNXOj':function(_0x313a3a,_0x466646){return _0x313a3a(_0x466646);},'fmoQS':'...','VtSzL':function(_0x33bdf5,_0x2dea8d){return _0x33bdf5+_0x2dea8d;}};void _0x57eaac;const {validate:validate=!![]}=_0x5bf63f;function _0x218a0d(_0x38eed0,_0x10d51b,_0x2d1c2d,_0x1f7fee){return _0x5e21b2(_0x38eed0-0xa3,_0x2d1c2d,_0x1f7fee-_0x29f17e._0x4f56c0,_0x1f7fee-_0x29f17e._0x173d31);}const _0x22ba79=await _0x56248c['SfCvv'](loadAgentModels),_0x4c0c85=_0x22ba79?.[_0x507263],_0x2f0bf1=_0x4c0c85?.['model']||null;function _0x1e5b34(_0x4e395b,_0x28916c,_0x1784d7,_0x295cfd){return _0x5e21b2(_0x4e395b-0xf5,_0x4e395b,_0x1784d7-0x297,_0x295cfd-_0x238866._0x42119b);}if(_0x56248c[_0x1e5b34(_0x42ed83._0x22ab41,0x282,_0x42ed83._0x3d894b,0x234)](_0x2f0bf1,validate)){const _0x4834bf=validateModel(_0x2f0bf1,_0x507263);if(!_0x4834bf[_0x1e5b34(0x2b5,0x338,_0x42ed83._0x40adf6,_0x42ed83._0x341f2c)]){if(_0x56248c[_0x218a0d(0x558,_0x42ed83._0x530803,_0x42ed83._0xf01765,0x5a4)](_0x56248c[_0x218a0d(0x4ea,0x500,_0x42ed83._0x113d54,_0x42ed83._0x161eed)],_0x56248c[_0x1e5b34(0x1f1,_0x42ed83._0x3eac7c,0x21b,_0x42ed83._0x1c54f7)])){if(_0x4834bf['suggestion'])logger[_0x1e5b34(0x1ec,_0x42ed83._0x3cce1e,0x269,0x29a)](_0x218a0d(_0x42ed83._0x420337,_0x42ed83._0x48ff42,0x5c9,0x53d)+'del\x20\x22'+_0x2f0bf1+_0x1e5b34(0x206,_0x42ed83._0x4d578c,0x237,0x246)+_0x507263+(_0x1e5b34(0x288,_0x42ed83._0x35b347,_0x42ed83._0x225848,0x1dc)+_0x218a0d(_0x42ed83._0x4562b4,0x4ab,_0x42ed83._0x32d111,0x4ca))+_0x4834bf[_0x1e5b34(0x2bf,0x2e8,0x306,_0x42ed83._0x5b57bd)]+'\x22?',{'agent':_0x507263,'configuredModel':_0x2f0bf1,'suggestion':_0x4834bf['suggestion'],'validModels':_0x56248c[_0x1e5b34(0x2a8,0x311,0x2f3,0x2b0)](_0x56248c['JNXOj'](getValidModels,_0x507263)[_0x218a0d(_0x42ed83._0xba30b0,0x4ed,_0x42ed83._0x498c6f,_0x42ed83._0x107e7)](0x234c+0x1f41+-0x428d,-0x1*-0x494+-0x2034+0x1ba5)[_0x218a0d(_0x42ed83._0x2d21a8,_0x42ed83._0xeb89b0,0x4d6,0x553)](',\x20'),_0x56248c['fmoQS'])});else{if(_0x56248c['RHOpA']('beTRZ',_0x218a0d(0x4d0,0x48c,0x56c,_0x42ed83._0x2eb953))){const _0x48ab64={};return _0x48ab64[_0x218a0d(0x5e1,0x5ce,_0x42ed83._0x194689,_0x42ed83._0x4cd15c)]=!![],_0x48ab64;}else logger[_0x1e5b34(0x2bc,_0x42ed83._0x5e2211,_0x42ed83._0x4a02f5,0x261)](_0x218a0d(0x4d4,0x4e8,0x509,0x543)+'del\x20\x22'+_0x2f0bf1+_0x1e5b34(0x213,_0x42ed83._0x562fe3,0x237,_0x42ed83._0x2deccd)+_0x507263+(_0x218a0d(_0x42ed83._0x2eec15,_0x42ed83._0x4802cb,0x538,_0x42ed83._0x5684b7)+_0x218a0d(_0x42ed83._0x5ab59f,_0x42ed83._0x5d6922,_0x42ed83._0x1e411c,_0x42ed83._0x1c9fb4)+_0x218a0d(_0x42ed83._0x2e78e4,0x490,_0x42ed83._0x1a7082,_0x42ed83._0x448739)),{'agent':_0x507263,'configuredModel':_0x2f0bf1,'validModels':_0x56248c[_0x218a0d(0x5f4,0x5e5,0x62b,_0x42ed83._0x5975ef)](getValidModels(_0x507263)[_0x1e5b34(_0x42ed83._0x1627cf,0x2cf,_0x42ed83._0x594aef,0x2e8)](-0x1380+-0x1c5d+0x2fdd,-0x1*-0xdb+-0xd09+0xc33)[_0x1e5b34(0x344,_0x42ed83._0x1c8422,_0x42ed83._0x4957e1,0x32a)](',\x20'),_0x56248c['fmoQS'])});}}else return null;}}return _0x2f0bf1;}export async function getApiKeyEnvVars(_0x5d3d6c,_0x2f59d2={}){const _0x29312c={_0x2750fa:0x463,_0x155342:0x4e4,_0x824ddd:0x360,_0x1ed98e:0x2d7,_0x2f2d69:0x30b,_0x684571:0x307,_0x48ca4d:0x471,_0x1124eb:0x537,_0x5a6bac:0x46b,_0xdac96a:0x4c3,_0x91d65e:0x4d2,_0x21d973:0x4f4,_0x1ac22c:0x285,_0x468b70:0x2ce,_0x497119:0x2ce,_0x5f51cf:0x482,_0x462a88:0x3ba,_0x3cef25:0x355,_0x1a063b:0x3cf,_0x2b9983:0x422,_0x43598c:0x35f,_0x2b017c:0x30e,_0x17c8e9:0x565,_0x365db7:0x3d8,_0x3361b7:0x336,_0x1744a4:0x2fb,_0x41988b:0x55d,_0x41ce4b:0x4eb,_0x4873b8:0x51a},_0xe84ec5={_0x527342:0x13c},_0x16aae7={_0xcfbeff:0x191,_0x20e2f5:0x156},_0x360aeb={'LjgLt':_0x2bd6c6(_0x29312c._0x2750fa,0x565,0x466,_0x29312c._0x155342),'YdUsU':function(_0xa161e5,_0x1f5dc9,_0x5dd68b){return _0xa161e5(_0x1f5dc9,_0x5dd68b);},'uJeJq':_0xf47d86(_0x29312c._0x824ddd,_0x29312c._0x1ed98e,0x27f,0x35e)};function _0xf47d86(_0x50f485,_0x20c4fe,_0xe6afb1,_0x39cb93){return _0x2fc064(_0x50f485-_0x16aae7._0xcfbeff,_0x20c4fe-_0x16aae7._0x20e2f5,_0x20c4fe-0xbb,_0xe6afb1);}const {forTask:forTask=!![]}=_0x2f59d2,_0x151873={},_0x36906f=forTask?getApiKeyForTask:getApiKeyForAuxiliary,_0x7cb894=await _0x36906f(_0x5d3d6c,_0x360aeb[_0xf47d86(0x2be,_0x29312c._0x2f2d69,0x33a,_0x29312c._0x684571)]);_0x7cb894&&(_0x151873[_0x2bd6c6(_0x29312c._0x48ca4d,_0x29312c._0x1124eb,_0x29312c._0x5a6bac,_0x29312c._0xdac96a)+_0x2bd6c6(0x40e,_0x29312c._0x91d65e,_0x29312c._0x21d973,0x485)]=_0x7cb894);const _0x46f143=await _0x360aeb[_0xf47d86(_0x29312c._0x1ac22c,_0x29312c._0x468b70,0x25f,0x268)](_0x36906f,_0x5d3d6c,_0x360aeb[_0xf47d86(_0x29312c._0x497119,0x2bc,0x32d,0x233)]);function _0x2bd6c6(_0x35804c,_0xb521a5,_0x2b0a83,_0x52d3f2){return _0x2fc064(_0x35804c-_0xe84ec5._0x527342,_0xb521a5-0xb0,_0x52d3f2-0x20f,_0x35804c);}_0x46f143&&(_0x151873[_0x2bd6c6(0x46d,0x4cc,0x500,_0x29312c._0x5f51cf)+_0xf47d86(_0x29312c._0x462a88,0x3a7,_0x29312c._0x3cef25,0x433)]=_0x46f143);const _0x513fb1=await _0x360aeb[_0x2bd6c6(0x4a2,0x3ad,_0x29312c._0x1a063b,_0x29312c._0x2b9983)](_0x36906f,_0x5d3d6c,_0xf47d86(0x38a,_0x29312c._0x43598c,0x376,_0x29312c._0x2b017c));return _0x513fb1&&(_0x151873[_0x2bd6c6(0x52e,0x4df,_0x29312c._0x17c8e9,0x4e6)+_0xf47d86(_0x29312c._0x365db7,0x3a7,0x351,0x341)]=_0x513fb1,_0x151873[_0xf47d86(0x32e,_0x29312c._0x3361b7,_0x29312c._0x1744a4,0x2cd)+_0x2bd6c6(_0x29312c._0x41988b,_0x29312c._0x41ce4b,_0x29312c._0x4873b8,0x4fb)]=_0x513fb1),_0x151873;}export async function getEndpointEnvVars(_0x41c439,_0x2e2a77=null,_0x9579b7={}){const _0x1de220={_0x121d9b:0x182,_0x17f0d1:0x200,_0x1938fc:0x1cb,_0xbe26a:0x2df,_0x55d17c:0x29b,_0x49b1bd:0x295,_0x230a97:0x2af,_0xbf29b9:0x26a,_0x199090:0x26c,_0x3a22fa:0x236,_0x4893a3:0x258,_0x5019e9:0x26d,_0x294ea4:0x316,_0x154ca7:0x324,_0x59ecb7:0x2ec,_0x6ca8a2:0x28c,_0x33ad94:0x230,_0x2532bf:0x1e2,_0x550779:0x25b,_0x1a9f0d:0x204,_0x4dff71:0x275,_0x30cb6a:0x1c6,_0x1bb6df:0x208,_0x39d18a:0x332,_0x3dddc3:0x1d9,_0x168e02:0x239,_0x54a279:0x225,_0x2fe5fd:0x311,_0x24cabc:0x369,_0x1bc048:0x2a2,_0x55bf6d:0x35e,_0x474d40:0x30a,_0x3a560f:0x29e,_0x1a2ac5:0x31d,_0x2ccd2f:0x25c,_0x3d1abf:0x25f,_0x7fc535:0x25d,_0x44ccec:0x1e0,_0x5a3ea7:0x2a0,_0x355461:0x1e2,_0x4a2325:0x21e,_0x4a7cbe:0x38d,_0x10d2d4:0x2f9,_0x5203af:0x215,_0x287118:0x18b,_0x56da26:0x149,_0x2711ce:0x1a9,_0x3b5a57:0x1a4,_0x3918ec:0x235,_0x17854a:0x204,_0x603c7:0x250,_0x5a4baa:0x2b8,_0x1442f0:0x27e,_0x347b9a:0x261,_0x479ac4:0x1b1,_0x4e69dc:0x215,_0x1e1f17:0x228,_0x18a923:0x1b2,_0x1d8275:0x26e,_0x3da11d:0x2a4,_0x206284:0x1f2,_0x323d69:0x220,_0x379b61:0x184,_0x255c3b:0x1e5,_0x15e8a9:0x2d0,_0x52a998:0x237,_0x28536f:0x29a,_0x16cf9f:0x2ed,_0x494136:0x31b,_0x1b2f3b:0x227,_0x2b91a1:0x252,_0x3c71ad:0x25d,_0x53d219:0x29d,_0x330215:0x2af,_0x2212e0:0x1ee,_0x5cf807:0x21f,_0x3f3122:0x1f1,_0x5a2302:0x27c,_0x157c9b:0x2b7,_0x2f647c:0x1c1,_0x18a5da:0x235,_0x2974bd:0x250,_0x238cc8:0x2e2,_0x36345a:0x29e,_0x520175:0x268,_0x560a00:0x2fa,_0x36ea77:0x2ef,_0x2d2729:0x27d,_0x467914:0x2e3,_0x457d32:0x293,_0xc4a809:0x222,_0x313751:0x2ca,_0x297fd9:0x27d,_0x58be37:0x267,_0xffb2f5:0x2b4,_0x5fd381:0x27c,_0x2e6c56:0x2b6,_0x27ae6f:0x234,_0x59a5bf:0x2b5,_0x6f37b8:0x2ef,_0x512070:0x2dc,_0xdce6ac:0x273,_0x26af05:0x35c,_0x81b4c1:0x20b,_0x292e74:0x23f,_0xd4d393:0x1de,_0x54d01c:0x343,_0x5624d8:0x329,_0x47d82c:0x216,_0x548b67:0x2f4,_0x12fd1c:0x323,_0xec2a7d:0x2fb,_0x41c229:0x297,_0x108f1a:0x2aa,_0x58b17e:0x308,_0x47ee15:0x309,_0xcaf0e2:0x2f3,_0x1583a1:0x29d,_0x193580:0x18c,_0x1ca882:0x251,_0x400aca:0x24f,_0x188721:0x2cf,_0x238d78:0x274,_0x4b50f6:0x24d,_0x421aea:0x343,_0x46d60d:0x30e,_0x99e9e4:0x2a7,_0x20dd27:0x305},_0x51640a={_0x2f7e1a:0x118},_0x25e3dc={_0x1c97f4:0x55,_0x316d3e:0x62},_0x11253c={'RfLXf':function(_0x1948bf,_0x4becfb){return _0x1948bf/_0x4becfb;},'QZvsf':_0x223f76(_0x1de220._0x121d9b,0x228,_0x1de220._0x17f0d1,_0x1de220._0x1938fc),'rgbgc':_0x223f76(0x27d,0x252,_0x1de220._0xbe26a,_0x1de220._0x55d17c),'ARnEd':_0x223f76(_0x1de220._0x49b1bd,0x1f8,_0x1de220._0x230a97,_0x1de220._0xbf29b9),'OJOzh':function(_0x28bc5e,_0x2b9f3d){return _0x28bc5e===_0x2b9f3d;},'iIxDc':_0x223f76(_0x1de220._0x199090,0x283,_0x1de220._0x3a22fa,_0x1de220._0x4893a3),'JALrK':function(_0x3bfdbd,_0x20e654,_0x27c1ea,_0x49fe87){return _0x3bfdbd(_0x20e654,_0x27c1ea,_0x49fe87);},'DJtSv':function(_0x33e6d4,_0x44c6e8,_0x4a245d){return _0x33e6d4(_0x44c6e8,_0x4a245d);},'pwEzd':function(_0x4cfeb2,_0x1af521){return _0x4cfeb2===_0x1af521;},'WyCiQ':'custom','ZzAji':function(_0x2e64bb,_0x439a86){return _0x2e64bb===_0x439a86;},'aMMoB':'codex','HInWn':function(_0x5edb36,_0x24f89f,_0x1462c0){return _0x5edb36(_0x24f89f,_0x1462c0);},'PhGEm':function(_0x147854,_0x4f3adf){return _0x147854+_0x4f3adf;},'PpeWX':_0x223f76(0x29e,0x213,0x2f3,_0x1de220._0x5019e9),'nehrE':function(_0x505e09,_0x7188c9){return _0x505e09===_0x7188c9;},'mHyDz':function(_0x307d90,_0x4be8e5,_0x55068e,_0x5265ab){return _0x307d90(_0x4be8e5,_0x55068e,_0x5265ab);},'YzvuQ':function(_0xd105f,_0x5b6e35){return _0xd105f===_0x5b6e35;},'SPDZq':function(_0x14ceb2,_0x55f689){return _0x14ceb2!==_0x55f689;},'wkhjg':_0xcd7a7f(_0x1de220._0x294ea4,0x348,_0x1de220._0x154ca7,0x2fd),'DpjVt':'CXXXk'},{forTask:forTask=!![]}=_0x9579b7,_0x58e0ec={};function _0xcd7a7f(_0x1cc194,_0x24b448,_0x4e3d6a,_0x5dc7af){return _0x2fc064(_0x1cc194-_0x25e3dc._0x1c97f4,_0x24b448-0x110,_0x24b448-_0x25e3dc._0x316d3e,_0x4e3d6a);}const _0x4a56bd=typeof _0x2e2a77===_0x11253c['QZvsf']?_0x2e2a77[_0xcd7a7f(0x2da,_0x1de220._0x59ecb7,0x26a,_0x1de220._0x6ca8a2)+'e']():null,_0x256379=new Set([_0x11253c['rgbgc'],_0x223f76(_0x1de220._0x33ad94,0x1b9,0x199,_0x1de220._0x2532bf),_0x11253c['ARnEd']]),_0x32fead=_0x256379[_0xcd7a7f(0x2b7,0x264,_0x1de220._0x550779,0x214)](_0x4a56bd)?_0x4a56bd:null;function _0x223f76(_0x2475ea,_0x508b36,_0x1f63ea,_0xd35cf2){return _0x5e21b2(_0x2475ea-0x1f1,_0x2475ea,_0xd35cf2-0x238,_0xd35cf2-_0x51640a._0x2f7e1a);}if(!_0x32fead||_0x11253c['OJOzh'](_0x32fead,_0x11253c[_0x223f76(0x2bf,0x228,_0x1de220._0x1a9f0d,_0x1de220._0x4dff71)])){if('dzyWd'!==_0x11253c[_0x223f76(_0x1de220._0x30cb6a,_0x1de220._0x1bb6df,0x222,0x1f0)])_0x5155bf[_0x223f76(0x27a,_0x1de220._0x39d18a,0x2f4,0x2a6)+_0x223f76(_0x1de220._0x3dddc3,0x25f,_0x1de220._0x168e02,_0x1de220._0x54a279)+'L']=_0x193cd3;else{const _0x4fcdda={};_0x4fcdda[_0xcd7a7f(0x219,0x24e,0x2c0,0x2a0)]=forTask;const _0x23024c=await _0x11253c['JALrK'](getAgentEndpointConfig,_0x41c439,_0x11253c[_0xcd7a7f(0x2aa,_0x1de220._0x2fe5fd,_0x1de220._0x24cabc,_0x1de220._0x1bc048)],_0x4fcdda),_0x114e4e=forTask?await _0x11253c['DJtSv'](getApiKeyForTask,_0x41c439,_0x11253c['rgbgc']):await _0x11253c[_0xcd7a7f(_0x1de220._0x55bf6d,_0x1de220._0x474d40,0x286,0x304)](getApiKeyForAuxiliary,_0x41c439,_0x11253c[_0x223f76(0x26a,_0x1de220._0x3a560f,0x301,0x275)]);if(_0x11253c['pwEzd'](_0x23024c?.[_0xcd7a7f(_0x1de220._0x1a2ac5,0x318,0x2f0,0x31b)],_0x11253c['WyCiQ'])&&_0x23024c['base_url']&&_0x114e4e){const _0x165382=_0x23024c[_0xcd7a7f(_0x1de220._0x2ccd2f,_0x1de220._0x3d1abf,0x264,0x2db)][_0xcd7a7f(0x2a9,_0x1de220._0x7fc535,0x22b,_0x1de220._0x44ccec)](/\/v1\/messages\/?$/,'');_0x58e0ec[_0x223f76(0x2d4,_0x1de220._0x5a3ea7,0x23e,0x27a)+_0x223f76(0x1b8,_0x1de220._0x355461,0x1ac,_0x1de220._0x4a2325)]=_0x165382,_0x58e0ec[_0xcd7a7f(0x35f,0x316,_0x1de220._0x4a7cbe,_0x1de220._0x10d2d4)+'FOUNDRY_BA'+_0x223f76(0x1cc,0x287,0x1a2,_0x1de220._0x5203af)]=_0x165382,_0x58e0ec['ANTHROPIC_'+_0x223f76(_0x1de220._0x287118,_0x1de220._0x56da26,0x221,0x1af)+_0x223f76(0x172,0x215,0x217,_0x1de220._0x2711ce)]=_0x114e4e,_0x58e0ec['CLAUDE_COD'+_0x223f76(_0x1de220._0x3b5a57,_0x1de220._0x3918ec,_0x1de220._0x17854a,0x1cd)+_0xcd7a7f(_0x1de220._0x603c7,0x254,_0x1de220._0x5a4baa,0x230)]='1';}}}if(!_0x32fead||_0x11253c['ZzAji'](_0x32fead,_0xcd7a7f(0x234,_0x1de220._0x1442f0,_0x1de220._0x347b9a,0x2c0))){const _0x4c1f48={};_0x4c1f48[_0x223f76(_0x1de220._0x479ac4,_0x1de220._0x4e69dc,_0x1de220._0x1e1f17,_0x1de220._0x18a923)]=forTask;const _0x4ef515=await getAgentEndpointConfig(_0x41c439,'codex',_0x4c1f48),_0xd63216=forTask?await _0x11253c[_0x223f76(0x232,0x2c9,0x29e,_0x1de220._0x1d8275)](getApiKeyForTask,_0x41c439,_0x11253c[_0x223f76(_0x1de220._0x3da11d,_0x1de220._0x206284,_0x1de220._0x323d69,0x274)]):await _0x11253c[_0x223f76(0x1c0,_0x1de220._0x379b61,0x244,_0x1de220._0x255c3b)](getApiKeyForAuxiliary,_0x41c439,_0x11253c[_0x223f76(_0x1de220._0x15e8a9,_0x1de220._0x52a998,_0x1de220._0x28536f,0x274)]);if(_0x4ef515?.['mode']===_0x11253c[_0xcd7a7f(_0x1de220._0x16cf9f,_0x1de220._0x494136,0x2ed,0x322)]&&_0x4ef515['base_url']&&_0xd63216){let _0x46ac54=_0x4ef515[_0xcd7a7f(0x2ec,0x25f,_0x1de220._0x1b2f3b,0x2c2)][_0xcd7a7f(_0x1de220._0x2b91a1,_0x1de220._0x3c71ad,_0x1de220._0x53d219,_0x1de220._0x330215)](/\/responses\/?$/,'');_0x4ef515[_0x223f76(0x2a8,0x269,_0x1de220._0x2212e0,_0x1de220._0x5cf807)+'n']&&!_0x46ac54[_0xcd7a7f(_0x1de220._0x3f3122,_0x1de220._0x5a2302,0x262,_0x1de220._0x2ccd2f)](/\/v1\/?$/)&&(_0x46ac54=_0x11253c[_0xcd7a7f(0x247,0x2c7,_0x1de220._0x157c9b,0x2d9)](_0x46ac54[_0x223f76(0x1da,0x20e,0x1ea,_0x1de220._0x2f647c)](/\/+$/,''),_0x11253c[_0x223f76(_0x1de220._0x18a5da,0x151,0x1f2,0x1de)])),_0x58e0ec['OPENAI_BAS'+_0xcd7a7f(0x2c5,0x2b3,_0x1de220._0x2974bd,0x273)]=_0x46ac54;}}if(!_0x32fead||_0x11253c[_0xcd7a7f(0x336,_0x1de220._0x238cc8,0x2ae,_0x1de220._0x36345a)](_0x32fead,_0x11253c[_0x223f76(_0x1de220._0x520175,_0x1de220._0x560a00,_0x1de220._0x36ea77,_0x1de220._0x2d2729)])){const _0x1bd0ad={};_0x1bd0ad[_0xcd7a7f(0x2cb,0x24e,0x1c6,_0x1de220._0x52a998)]=forTask;const _0x5f47c5=await _0x11253c['mHyDz'](getAgentEndpointConfig,_0x41c439,_0x11253c[_0x223f76(_0x1de220._0x467914,_0x1de220._0x457d32,0x22f,0x27d)],_0x1bd0ad),_0x3ca3a3=forTask?await getApiKeyForTask(_0x41c439,_0x11253c[_0x223f76(_0x1de220._0xc4a809,_0x1de220._0x313751,0x2a5,_0x1de220._0x297fd9)]):await _0x11253c[_0xcd7a7f(0x30b,0x281,0x22d,_0x1de220._0x58be37)](getApiKeyForAuxiliary,_0x41c439,_0x11253c[_0x223f76(_0x1de220._0xffb2f5,_0x1de220._0x1bb6df,_0x1de220._0x5fd381,_0x1de220._0x2d2729)]);if(_0x11253c[_0x223f76(_0x1de220._0x2e6c56,0x1df,_0x1de220._0x27ae6f,_0x1de220._0x3d1abf)](_0x5f47c5?.['mode'],_0x11253c[_0x223f76(0x276,_0x1de220._0x59a5bf,0x24e,0x27f)])&&_0x5f47c5['base_url']&&_0x3ca3a3){if(_0x11253c[_0xcd7a7f(_0x1de220._0x6f37b8,_0x1de220._0x560a00,_0x1de220._0x512070,_0x1de220._0xdce6ac)]('bMevl',_0x11253c['wkhjg'])){_0x58e0ec[_0xcd7a7f(0x329,0x339,_0x1de220._0x26af05,0x3b8)+_0x223f76(0x234,0x18c,0x1f3,_0x1de220._0x81b4c1)]=_0x5f47c5['base_url'];if(_0x5f47c5['api_versio'+'n']){if(_0x11253c[_0x223f76(_0x1de220._0x292e74,0x186,_0x1de220._0xd4d393,0x209)]!==_0x11253c['DpjVt']){const _0x47c195=_0x2d41de[_0xcd7a7f(0x353,0x2ec,0x36b,_0x1de220._0x54d01c)+'e']();if(_0x47c195[_0xcd7a7f(_0x1de220._0x5624d8,0x31c,0x2b3,0x38e)](_0x24200f)||_0xa15085[_0x223f76(_0x1de220._0x47d82c,0x2ec,0x2a3,0x280)](_0x47c195)){const _0x3aa933=_0x11253c[_0xcd7a7f(0x2bc,0x2d2,0x34e,_0x1de220._0x548b67)](_0x1fe703[_0x223f76(_0x1de220._0x12fd1c,_0x1de220._0xec2a7d,0x2a0,_0x1de220._0x41c229)](_0x16f18b['length'],_0x47c195[_0x223f76(0x2ca,_0x1de220._0x560a00,_0x1de220._0x3a560f,_0x1de220._0x108f1a)]),_0x2b87d4['max'](_0x89b7ac['length'],_0x47c195[_0x223f76(_0x1de220._0x58b17e,_0x1de220._0x47ee15,0x2c0,0x2aa)]));_0x3aa933>_0x5b4c01&&_0x3aa933>0x6*-0xe7+-0x83*-0x11+0x1d*-0x1d+0.5&&(_0x151c9c=_0x3aa933,_0x333883=_0x3e0f3e);}}else _0x58e0ec[_0x223f76(0x247,_0x1de220._0xcaf0e2,0x2d3,_0x1de220._0x1583a1)+_0x223f76(0x1ff,_0x1de220._0x193580,0x219,0x1cf)]=_0x5f47c5[_0x223f76(0x2a9,0x20a,0x298,_0x1de220._0x5cf807)+'n'];}}else _0x5cdb25['warn'](_0x223f76(0x26f,0x292,_0x1de220._0x1ca882,_0x1de220._0x400aca)+_0x223f76(_0x1de220._0xffb2f5,0x1f6,0x2c9,0x24e)+_0x5bfa0c+_0xcd7a7f(_0x1de220._0x188721,_0x1de220._0x238d78,0x296,_0x1de220._0x4b50f6)+_0x5c26f4+(_0xcd7a7f(0x2d6,0x287,_0x1de220._0x1d8275,0x255)+'mean\x20\x22')+_0x4d1acb[_0xcd7a7f(0x391,_0x1de220._0x421aea,_0x1de220._0x46d60d,0x322)]+'\x22?',{'agent':_0x27d85c,'configuredModel':_0x362cee,'suggestion':_0x376fe2[_0x223f76(0x307,_0x1de220._0x5a2302,0x2d3,_0x1de220._0x99e9e4)],'validModels':_0x26d8f(_0x4c7d2b)['slice'](-0x12d5+-0xb75*0x3+-0x11bc*-0x3,0x1157+-0xe4*0x8+-0x6*0x1b3)['join'](',\x20')+_0xcd7a7f(0x2e6,0x285,_0x1de220._0x20dd27,_0x1de220._0x188721)});}}return _0x58e0ec;}export async function getCodexReasoningLevel(_0x1add53){const _0x5729b6={_0x383b3e:0x24b,_0x3bb378:0x2a3,_0x3142ca:0x31f,_0x3bc3e2:0x34b,_0x463c4a:0x3c4},_0x2aa252={_0x130469:0x195,_0x4db48b:0x49,_0x76d85f:0x1c6},_0x260405={_0x2486c1:0x81,_0x146d98:0x2e5};void _0x1add53;function _0x5b7190(_0x501fc6,_0x5c9e62,_0x3139fa,_0x2449e3){return _0x5e21b2(_0x501fc6-_0x260405._0x2486c1,_0x501fc6,_0x5c9e62-_0x260405._0x146d98,_0x2449e3-0x99);}const _0x165b58=await loadAgentModels();function _0xd4205a(_0x318054,_0x5348d2,_0x38f5bb,_0x55a1a8){return _0x5e21b2(_0x318054-_0x2aa252._0x130469,_0x55a1a8,_0x318054- -_0x2aa252._0x4db48b,_0x55a1a8-_0x2aa252._0x76d85f);}return _0x165b58?.[_0x5b7190(0x261,0x28f,_0x5729b6._0x383b3e,_0x5729b6._0x3bb378)]?.[_0x5b7190(0x36b,_0x5729b6._0x3142ca,_0x5729b6._0x3bc3e2,0x2ad)+_0x5b7190(0x30c,0x343,0x370,_0x5729b6._0x463c4a)]||null;}export async function getClaudeEffortLevel(_0x52c57e){const _0x564182={_0x3e4c00:0x3b5,_0x2d03fe:0x432},_0x5ad56c={_0x35e916:0x16c,_0x4cd101:0x4d,_0x65aacb:0x106};function _0x2bc1a6(_0x574f76,_0x1a6ab1,_0x5d256a,_0x51937e){return _0x5e21b2(_0x574f76-_0x5ad56c._0x35e916,_0x1a6ab1,_0x5d256a- -_0x5ad56c._0x4cd101,_0x51937e-_0x5ad56c._0x65aacb);}const _0x52fd22={'ZUfGm':function(_0x3ecfe4){return _0x3ecfe4();}};void _0x52c57e;function _0x3dcc30(_0x20a6f7,_0x440b62,_0x58fbce,_0x5cb709){return _0x2fc064(_0x20a6f7-0x1ed,_0x440b62-0xae,_0x58fbce-0x168,_0x20a6f7);}const _0xaa4c00=await _0x52fd22['ZUfGm'](loadAgentModels);return _0xaa4c00?.[_0x3dcc30(0x3dd,_0x564182._0x3e4c00,0x43d,_0x564182._0x2d03fe)]?.[_0x3dcc30(0x328,0x2ff,0x356,0x37c)+'el']||null;}function _0x5e21b2(_0x4fb758,_0x152348,_0x242ad6,_0x2a83fa){const _0x523858={_0x278224:0x25e};return _0x210b(_0x242ad6- -_0x523858._0x278224,_0x152348);}export async function getModelEnvVars(_0x55ad3a,_0x21e33a=null){const _0x56bdbd={_0x31cfb2:0x365,_0x5c8ca9:0x388,_0x28c9f1:0x37f,_0x1cfec0:0x3cb,_0x4c06f4:0x15f,_0x537abb:0x16e,_0x235754:0x16c,_0x52b470:0x17d,_0x171feb:0x393,_0x3ea8c4:0x32a,_0x3bfdd2:0x3a9,_0x363354:0x11c,_0x248f15:0x374,_0x17cdfd:0x11b,_0x9287e1:0x126,_0xa1117e:0x104,_0x375499:0x375,_0x491257:0x2cd,_0x551bf1:0x146,_0x2fe1b0:0xf2,_0x46c712:0x311,_0x33c05b:0x371,_0x44956b:0x2a9,_0x5f5dfa:0xdf,_0x341156:0x110,_0x41cf6f:0x1c6,_0x2e366f:0x10b,_0x11c1a5:0xc3,_0x35da8b:0x139,_0x2d4066:0x2c0,_0x2e34be:0x238,_0x16ecd4:0x1fa,_0x340f85:0x218,_0x13fd8f:0x19c,_0x1459cc:0xd2,_0x1ceca8:0xd7,_0x2e6fd0:0x125,_0x10e0c6:0x150,_0x3802fa:0x1e2,_0x38ce1a:0x20a,_0x582caf:0x2b7,_0x178218:0x46,_0x347cb6:0x110,_0x219b7a:0x72,_0x184e41:0x8b,_0x421ef9:0x1a7,_0x54c6fc:0x11f,_0x5743df:0x136,_0x48c653:0xb1,_0x391167:0x3a3,_0x4eefb2:0x51,_0x3f42d4:0x2c,_0xdd4c71:0x116,_0x240da8:0x99,_0x22cebe:0x39,_0x346dd6:0xf3,_0x8c282a:0x9e,_0x36702e:0x54,_0x474349:0x105,_0x25b09c:0x2b1,_0xddd718:0x2cd,_0xa66da:0x333,_0x222947:0x2d9,_0x8ba40e:0x2ca,_0xe46eac:0xae,_0x15ea49:0xc2,_0xc897ab:0x1fe,_0x323bbe:0x220,_0x3d94d3:0x1ce,_0x31e8bb:0x9d,_0x381305:0x2f3,_0x4a69ff:0x279,_0x462b49:0x394,_0x1b9100:0x315,_0x3f1aa8:0x39a,_0x53f4ad:0x1ff,_0x1d63b9:0x1b7,_0x31bb25:0x17f,_0x54bb0e:0x26a,_0x2e8b32:0x253,_0x2dc11c:0x28b,_0xf9c74c:0x147,_0x402767:0x16b,_0x2ae78d:0x252,_0xab6a02:0x2b6,_0x16b172:0xbf,_0x39abe6:0xde,_0x438cbe:0x143,_0x44816c:0xe0,_0xb5437b:0x134,_0x59f749:0x2f9,_0x4d13c6:0x322,_0x279abb:0x1da,_0x59ab50:0x98,_0x27e8b9:0x18a,_0x4d84e7:0x16c,_0x2f8902:0xa7,_0x46ef3c:0x1cc,_0x5f14f0:0x183,_0x2fbbf6:0x3a1,_0xf4b7ec:0x3d1,_0x166657:0x2fb,_0x2ae833:0x2e3,_0x57797f:0x29b,_0x135ff5:0x16a,_0x377770:0x1e9,_0x592b07:0x315,_0x329583:0x73,_0x5c182e:0x37e,_0x1bd57f:0x39c,_0x547bba:0x3e8,_0x43a34f:0x187,_0x19f31e:0x14a,_0xa5e3f0:0x159,_0x1d6565:0x20e,_0x2c9754:0x31b,_0x3e9aff:0x2fd,_0x12bdfa:0xb0,_0x188185:0x2e,_0x317ddb:0x126,_0x26f256:0xc5,_0x2a06a7:0x193,_0x3ed96e:0xca,_0x1a5dbc:0x3a,_0x313c32:0xa1,_0x2b2a01:0xc7,_0x566aad:0xb9,_0x4dfd4e:0x358,_0x36ee25:0x325,_0x2b3c72:0x2e4,_0x42c29a:0x131,_0x1854c9:0xd5,_0x134487:0xd1,_0x1bc9b2:0x100,_0x2667f3:0x60,_0x380add:0x326,_0xbf16b3:0x344,_0x38a350:0x2f7,_0x27bea7:0x113,_0x40545d:0x1c4,_0x348fbe:0x15b},_0x508831={_0x35d579:0xf9,_0x629cd:0x136,_0x2bfd54:0x382},_0x192260={_0xdf1eff:0x330,_0x53f3c7:0x82},_0x39384c={'ZPiXw':function(_0xb9802d,_0x22be3d){return _0xb9802d/_0x22be3d;},'QHzwD':function(_0x41b467,_0x206600){return _0x41b467>_0x206600;},'SDvER':function(_0xd65915,_0x14e661){return _0xd65915>_0x14e661;},'ffvgq':function(_0x315481,_0x56fe5c){return _0x315481+_0x56fe5c;},'JCCTs':_0x4b4fa2(_0x56bdbd._0x31cfb2,_0x56bdbd._0x5c8ca9,_0x56bdbd._0x28c9f1,_0x56bdbd._0x1cfec0),'ZIVvU':function(_0x4a3958,_0x311e5b,_0x5607bf){return _0x4a3958(_0x311e5b,_0x5607bf);},'GbcPW':function(_0x3fe9f4,_0x361480){return _0x3fe9f4(_0x361480);},'kfDgC':function(_0x3db10c,_0x2c0e8b){return _0x3db10c===_0x2c0e8b;},'RSXyd':_0x5de9c5(-_0x56bdbd._0x4c06f4,-_0x56bdbd._0x537abb,-_0x56bdbd._0x235754,-_0x56bdbd._0x52b470),'iFSLG':_0x4b4fa2(_0x56bdbd._0x171feb,0x404,0x3d5,_0x56bdbd._0x3ea8c4),'vXpXW':'codex','nnYNy':_0x4b4fa2(0x362,0x366,0x36b,_0x56bdbd._0x3bfdd2),'KVGKc':_0x5de9c5(-0x10b,-0x4f,-_0x56bdbd._0x363354,-0x97),'GBuSc':function(_0x46724e,_0x4bcfd9){return _0x46724e===_0x4bcfd9;},'CoiPX':_0x4b4fa2(0x35a,_0x56bdbd._0x248f15,0x39f,0x38a),'pStqA':function(_0x4fbf05,_0x53014b){return _0x4fbf05===_0x53014b;},'hsNmP':function(_0xe48088,_0x5d00de){return _0xe48088!==_0x5d00de;},'zjtHR':_0x5de9c5(-0xae,-_0x56bdbd._0x17cdfd,-_0x56bdbd._0x9287e1,-_0x56bdbd._0xa1117e),'eSXTz':'ANZoj','jwlDN':_0x4b4fa2(0x343,_0x56bdbd._0x375499,0x3b4,0x365),'RbKlk':_0x4b4fa2(0x2bc,0x2f5,_0x56bdbd._0x491257,0x339),'kkNHR':_0x5de9c5(-0x128,-_0x56bdbd._0x551bf1,-_0x56bdbd._0x2fe1b0,-0xcf)},_0x15e2e3={},_0x527c24=_0x39384c['kfDgC'](typeof _0x21e33a,_0x39384c[_0x4b4fa2(_0x56bdbd._0x46c712,0x370,_0x56bdbd._0x33c05b,_0x56bdbd._0x44956b)])?_0x21e33a['toLowerCas'+'e']():null,_0x508cfb=new Set([_0x39384c[_0x5de9c5(-_0x56bdbd._0x5f5dfa,-0x146,-0xc6,-_0x56bdbd._0x341156)],_0x39384c[_0x5de9c5(-_0x56bdbd._0x41cf6f,-0x16d,-_0x56bdbd._0x2e366f,-0x147)],_0x39384c[_0x5de9c5(-0x18e,-0x10c,-_0x56bdbd._0x11c1a5,-_0x56bdbd._0x35da8b)]]);function _0x4b4fa2(_0x3cfb50,_0x2e0479,_0x472ea1,_0x23ff34){return _0x5e21b2(_0x3cfb50-0x0,_0x2e0479,_0x3cfb50-_0x192260._0xdf1eff,_0x23ff34-_0x192260._0x53f3c7);}const _0x5f08e4=_0x508cfb[_0x4b4fa2(_0x56bdbd._0x2d4066,0x33b,0x2f0,_0x56bdbd._0x2e34be)](_0x527c24)?_0x527c24:null;if(!_0x5f08e4||_0x39384c[_0x5de9c5(-0x137,-_0x56bdbd._0x16ecd4,-_0x56bdbd._0x340f85,-_0x56bdbd._0x13fd8f)](_0x5f08e4,_0x5de9c5(-0x88,-0x6c,-_0x56bdbd._0x1459cc,-0xad))){if(_0x5de9c5(-0x19d,-_0x56bdbd._0x1ceca8,-_0x56bdbd._0x2e6fd0,-_0x56bdbd._0x10e0c6)!==_0x39384c[_0x5de9c5(-_0x56bdbd._0x3802fa,-0x126,-_0x56bdbd._0x38ce1a,-0x186)]){const _0x57f44b=await _0x39384c[_0x4b4fa2(_0x56bdbd._0x582caf,0x2c3,0x2fe,0x342)](getModel,_0x55ad3a,_0x5de9c5(-_0x56bdbd._0x178218,-0x54,-_0x56bdbd._0x347cb6,-0xad));if(_0x57f44b){if(_0x39384c['kfDgC'](_0x5de9c5(-0x130,-_0x56bdbd._0x219b7a,-_0x56bdbd._0x184e41,-0xfb),_0x5de9c5(-0x123,-0x1cf,-0x12b,-_0x56bdbd._0x421ef9))){const _0x3effa2=_0x8b1184['toLowerCas'+'e']();let _0xa298af=null,_0x5d7a34=-0x1*0x26ba+-0x1*-0x96d+-0x241*-0xd;for(const _0x283fc1 of _0x5d0d8e){const _0x182780=_0x283fc1[_0x4b4fa2(0x348,0x35a,0x3c0,0x394)+'e']();if(_0x182780[_0x5de9c5(-0xe5,-0xbe,-0x121,-0xc8)](_0x3effa2)||_0x3effa2[_0x5de9c5(-0x12e,-_0x56bdbd._0x54c6fc,-_0x56bdbd._0x5743df,-0xc8)](_0x182780)){const _0x3be03b=_0x39384c['ZPiXw'](_0x53f40b[_0x5de9c5(-0x61,-0x111,-0xda,-_0x56bdbd._0x48c653)](_0x3effa2[_0x4b4fa2(0x3a2,0x378,0x390,0x3ff)],_0x182780[_0x4b4fa2(0x3a2,_0x56bdbd._0x391167,0x41e,0x315)]),_0x99c206[_0x5de9c5(-_0x56bdbd._0x4eefb2,-_0x56bdbd._0x3f42d4,-_0x56bdbd._0xdd4c71,-_0x56bdbd._0x240da8)](_0x3effa2[_0x5de9c5(-_0x56bdbd._0x22cebe,-0x7e,-_0x56bdbd._0x346dd6,-_0x56bdbd._0x8c282a)],_0x182780[_0x5de9c5(-0x18,-_0x56bdbd._0x36702e,-_0x56bdbd._0x474349,-_0x56bdbd._0x8c282a)]));_0x39384c[_0x4b4fa2(_0x56bdbd._0x25b09c,0x2d1,0x26a,_0x56bdbd._0xddd718)](_0x3be03b,_0x5d7a34)&&_0x39384c['SDvER'](_0x3be03b,0x1*-0x1565+-0x279*0x3+0x1cd0+0.5)&&(_0x5d7a34=_0x3be03b,_0xa298af=_0x283fc1);}}return _0xa298af;}else _0x15e2e3[_0x4b4fa2(_0x56bdbd._0xa66da,_0x56bdbd._0x222947,_0x56bdbd._0x8ba40e,0x374)+'EL']=_0x57f44b;}}else _0x119d7a=_0x39384c[_0x5de9c5(-0xc1,-_0x56bdbd._0xe46eac,-_0x56bdbd._0x15ea49,-0x127)](_0x356659[_0x5de9c5(-0x1d2,-_0x56bdbd._0xc897ab,-0x148,-0x187)](/\/+$/,''),_0x39384c[_0x5de9c5(-_0x56bdbd._0x323bbe,-_0x56bdbd._0x3d94d3,-0x112,-0x195)]);}if(!_0x5f08e4||_0x39384c[_0x5de9c5(-0x114,-_0x56bdbd._0x31e8bb,-0xc5,-0xe8)](_0x5f08e4,_0x39384c[_0x4b4fa2(0x2f9,_0x56bdbd._0x381305,_0x56bdbd._0x4a69ff,0x33f)])){if(_0x4b4fa2(0x35a,_0x56bdbd._0x462b49,_0x56bdbd._0x1b9100,_0x56bdbd._0x3f1aa8)===_0x39384c[_0x5de9c5(-_0x56bdbd._0x53f4ad,-0x1f0,-_0x56bdbd._0x1d63b9,-_0x56bdbd._0x31bb25)]){const _0x311a58=await _0x39384c[_0x4b4fa2(0x2b7,_0x56bdbd._0x54bb0e,_0x56bdbd._0x2e8b32,_0x56bdbd._0x2dc11c)](getModel,_0x55ad3a,_0x39384c[_0x5de9c5(-0xfe,-0xfc,-0x10c,-_0x56bdbd._0xf9c74c)]);_0x311a58&&(_0x15e2e3[_0x5de9c5(-0x1b0,-_0x56bdbd._0x347cb6,-0x1ea,-_0x56bdbd._0x402767)+'EL']=_0x311a58);}else return null;}function _0x5de9c5(_0x6742d8,_0x3ed06b,_0x11e53a,_0x26a577){return _0x2fc064(_0x6742d8-_0x508831._0x35d579,_0x3ed06b-_0x508831._0x629cd,_0x26a577- -_0x508831._0x2bfd54,_0x6742d8);}if(!_0x5f08e4||_0x39384c[_0x4b4fa2(0x2c2,_0x56bdbd._0x2ae78d,_0x56bdbd._0xab6a02,0x312)](_0x5f08e4,_0x39384c[_0x4b4fa2(0x307,0x327,0x290,0x342)])){const _0x2bb1e7=await _0x39384c['ZIVvU'](getModel,_0x55ad3a,_0x5de9c5(-0x111,-_0x56bdbd._0x16b172,-0x160,-_0x56bdbd._0x39abe6));_0x2bb1e7&&(_0x15e2e3[_0x5de9c5(-_0x56bdbd._0x438cbe,-_0x56bdbd._0x44816c,-_0x56bdbd._0x1ceca8,-_0x56bdbd._0xb5437b)+'EL']=_0x2bb1e7);}if(!_0x5f08e4||_0x5f08e4===_0x39384c[_0x4b4fa2(_0x56bdbd._0x59f749,0x2b7,_0x56bdbd._0x4d13c6,0x2ba)]){if(_0x39384c['hsNmP'](_0x5de9c5(-0x208,-0x18b,-_0x56bdbd._0x279abb,-0x1a5),_0x39384c['zjtHR'])){const _0x10ea41=await getCodexReasoningLevel(_0x55ad3a);_0x10ea41&&(_0x15e2e3[_0x5de9c5(-0xfb,-0xbb,-_0x56bdbd._0x59ab50,-0xa2)+_0x5de9c5(-_0x56bdbd._0x27e8b9,-_0x56bdbd._0x4d84e7,-_0x56bdbd._0x2f8902,-0x123)+'L']=_0x10ea41);}else{const _0x1b2004=_0x56711f[_0x4e87dc]||{},_0x32df34=_0x1b2004[_0x5de9c5(-_0x56bdbd._0x46ef3c,-0x183,-0x1ee,-_0x56bdbd._0x5f14f0)]||null,_0x3b5a8f={};_0x3b5a8f[_0x4b4fa2(_0x56bdbd._0x2fbbf6,0x377,0x3da,_0x56bdbd._0xf4b7ec)]=!![];const _0x3cdbb8=_0x32df34?_0x39384c[_0x4b4fa2(0x2b7,_0x56bdbd._0x166657,_0x56bdbd._0x2ae833,_0x56bdbd._0x57797f)](_0x7ba35f,_0x32df34,_0x20e87c):_0x3b5a8f,_0x5c605e=_0x39384c[_0x5de9c5(-_0x56bdbd._0x135ff5,-0x1c3,-_0x56bdbd._0x377770,-0x162)](_0x12b0d4,_0x2499ed),_0x31a38c=_0x1e92de(_0x3cc513),_0x40a529=_0x597f58(_0x4e1f5a,_0x5c605e?.[_0x4b4fa2(_0x56bdbd._0x592b07,0x36b,0x39b,0x2e7)]),_0x542da1={};_0x542da1[_0x5de9c5(-0x157,-0x171,-_0x56bdbd._0x329583,-0xed)]=!!_0x31a38c,_0x542da1['enabledFor'+_0x5de9c5(-0xf7,-0x1a2,-0xc5,-0x13c)]=!!_0x5c605e,_0x542da1[_0x4b4fa2(_0x56bdbd._0x5c182e,_0x56bdbd._0x1bd57f,0x3bb,_0x56bdbd._0x547bba)+_0x5de9c5(-0xd9,-_0x56bdbd._0x43a34f,-_0x56bdbd._0x19f31e,-_0x56bdbd._0xa5e3f0)+'d']=_0x5c605e?.['id']||null,_0x542da1[_0x5de9c5(-0x203,-0x1db,-_0x56bdbd._0x1d6565,-0x183)]=_0x32df34,_0x542da1[_0x4b4fa2(0x315,_0x56bdbd._0x2c9754,_0x56bdbd._0x3e9aff,0x390)]=_0x40a529,_0x542da1[_0x5de9c5(-0xf8,-0x2a,-0xa4,-_0x56bdbd._0x12bdfa)]=_0x3cdbb8[_0x5de9c5(-_0x56bdbd._0x188185,-0x5c,-0x52,-0x9f)],_0x542da1[_0x5de9c5(-_0x56bdbd._0x317ddb,-0x11e,-_0x56bdbd._0x26f256,-0x14a)+_0x5de9c5(-_0x56bdbd._0x2a06a7,-0x1d0,-0x12c,-0x192)]=_0x3cdbb8[_0x5de9c5(-0x53,-_0x56bdbd._0x3ed96e,-_0x56bdbd._0x1a5dbc,-_0x56bdbd._0x313c32)]||null,_0x5f24b1[_0x406f71]=_0x542da1;}}if(!_0x5f08e4||_0x5f08e4===_0x39384c[_0x5de9c5(-_0x56bdbd._0x2b2a01,-_0x56bdbd._0x566aad,-0x18c,-_0x56bdbd._0x341156)]){if(_0x39384c[_0x4b4fa2(_0x56bdbd._0x4dfd4e,_0x56bdbd._0x36ee25,0x2f7,_0x56bdbd._0x2b3c72)](_0x39384c[_0x5de9c5(-0x115,-0x144,-_0x56bdbd._0x42c29a,-0x193)],_0x39384c[_0x5de9c5(-_0x56bdbd._0x1854c9,-0xff,-0xcf,-_0x56bdbd._0x134487)]))_0x1e3f60=_0xfae78a,_0x496da7=_0x538161;else{const _0x5ba092=await _0x39384c['GbcPW'](getClaudeEffortLevel,_0x55ad3a);if(_0x5ba092){if(_0x39384c[_0x5de9c5(-0x78,-0xf2,-0xc1,-0x9d)](_0x39384c[_0x5de9c5(-_0x56bdbd._0x1bc9b2,-_0x56bdbd._0x2667f3,-0x8e,-0xac)],_0x39384c['kkNHR']))_0x15e2e3[_0x4b4fa2(0x352,0x3b2,_0x56bdbd._0x380add,0x2c9)+_0x4b4fa2(0x351,0x316,_0x56bdbd._0xbf16b3,_0x56bdbd._0x38a350)+_0x5de9c5(-_0x56bdbd._0x27bea7,-_0x56bdbd._0x40545d,-0x149,-_0x56bdbd._0x348fbe)]=_0x5ba092;else return _0x48c2d4;}}}return _0x15e2e3;}function _0x2fc064(_0x21ffad,_0x4981fc,_0x30b875,_0x36d404){const _0x12a71a={_0x39e51d:0x14};return _0x210b(_0x30b875-_0x12a71a._0x39e51d,_0x36d404);}export async function hasApiKeys(_0x5844a9){const _0x31d883={_0x179eb0:0x429,_0x4abe5b:0x446,_0xf50bc8:0x3d0,_0x5dff3a:0x35e,_0x322f89:0xdb,_0x3189f8:0xcf,_0x477e48:0xd0,_0x28a9a7:0x4b4,_0xd3dd22:0x489,_0x4223b9:0x481,_0x3f926d:0x374,_0x210084:0x3eb,_0x23da18:0x367,_0x16fea6:0x436,_0x649f05:0xfa,_0x22b8d3:0xfc},_0x2bf413={_0x298ac8:0x125,_0x2dcdd6:0xb7},_0x1c4cd9={_0x4e5381:0x27,_0x25b5e4:0x139},_0x1664ee={};function _0x3faca0(_0x140f93,_0x574b14,_0x13b56c,_0x5ba14e){return _0x5e21b2(_0x140f93-_0x1c4cd9._0x4e5381,_0x5ba14e,_0x13b56c-0x426,_0x5ba14e-_0x1c4cd9._0x25b5e4);}function _0x42997b(_0x35c674,_0x5ba9bf,_0x5d403f,_0x17015d){return _0x5e21b2(_0x35c674-0x58,_0x35c674,_0x5d403f-_0x2bf413._0x298ac8,_0x17015d-_0x2bf413._0x2dcdd6);}_0x1664ee['ZXBMn']=_0x3faca0(_0x31d883._0x179eb0,_0x31d883._0x4abe5b,_0x31d883._0xf50bc8,_0x31d883._0x5dff3a),_0x1664ee[_0x42997b(0x112,_0x31d883._0x322f89,0xe7,_0x31d883._0x3189f8)]=_0x42997b(_0x31d883._0x477e48,0x1b6,0x157,0x1ca);const _0xf6de3e=_0x1664ee;return void _0x5844a9,[_0x3faca0(0x406,_0x31d883._0x28a9a7,_0x31d883._0xd3dd22,_0x31d883._0x4223b9),_0xf6de3e[_0x3faca0(0x3ae,_0x31d883._0x3f926d,_0x31d883._0x210084,0x400)],_0xf6de3e[_0x3faca0(_0x31d883._0x23da18,0x44c,0x3e8,_0x31d883._0x16fea6)]][_0x42997b(_0x31d883._0x649f05,_0x31d883._0x22b8d3,0x156,0x1b9)](_0x223830=>!!getAnyApiKeyAccount(_0x223830));}export async function isApiKeyEnabledForTask(_0x2a6828,_0xf07bca){const _0x171007={_0xd1b901:0x472,_0x2d9f5a:0x492,_0x4b4cd3:0x469},_0x4c1485={'ilpOf':function(_0x291fef,_0x3e78e9){return _0x291fef(_0x3e78e9);}};void _0x2a6828;function _0x2406da(_0x369a5c,_0xb73523,_0xf1b4db,_0x45846d){return _0x5e21b2(_0x369a5c-0x189,_0xf1b4db,_0xb73523-0x448,_0x45846d-0x90);}return!!_0x4c1485[_0x2406da(_0x171007._0xd1b901,_0x171007._0x2d9f5a,0x471,_0x171007._0x4b4cd3)](getActiveApiKeyAccount,_0xf07bca);}export async function getAgentsStatus(_0x60880c){const _0x5c7f59={_0x35429b:0x499,_0x549131:0x4d1,_0x2e5dc9:0x514,_0x242ca9:0x47b,_0x1dae87:0x14,_0x33f79e:0x559,_0x440cdb:0x4df,_0x4092ae:0x47,_0x3b5fa0:0xa,_0x21b425:0x53,_0x4fab5f:0x4cc,_0x1a389f:0x2,_0x259252:0x36,_0xbae653:0x10,_0x541119:0x76,_0x3a1151:0x57,_0x21e714:0xe7,_0x55f4a6:0xce,_0x58f3c4:0x86,_0x206718:0xdf,_0x4f8523:0x35,_0x3d8289:0x4c4,_0x2d9e36:0x46,_0x1807d4:0x6e,_0x1160c6:0x5d,_0x55f7f5:0x5b,_0x358463:0xbe,_0xe2a62f:0x53b,_0x50bfa7:0x538,_0x3d5cca:0x41a,_0x17fbd6:0x50d,_0x47818a:0x456,_0x302e3f:0x4ad,_0x42ee53:0x448,_0x45bf51:0x529,_0x802cfd:0x25,_0xdfc5cb:0xd4,_0x2f20ef:0x4d8,_0x881f29:0x7d,_0x37deb6:0x1f,_0x2f4cb4:0x58,_0x28d505:0xf0,_0xda8093:0xcf,_0x2fac0:0x4d,_0x3c1c1a:0x73,_0x59092b:0x3d,_0x5c4fad:0x2d,_0x41a9c3:0xed},_0x104fc3={_0x15de24:0x189,_0x4aca31:0x19c},_0x2e6113={_0xf4c7b4:0x151},_0x2de7d5={'TKUct':function(_0x841a7f){return _0x841a7f();},'qawxV':_0x2a82e3(0x552,0x4f7,0x592,0x546),'iPPgk':_0x2a82e3(_0x5c7f59._0x35429b,_0x5c7f59._0x549131,_0x5c7f59._0x2e5dc9,_0x5c7f59._0x242ca9),'RqzWH':_0x50e323(0x37,0x4f,0x10,_0x5c7f59._0x1dae87),'NyisJ':function(_0x485598,_0x59a364){return _0x485598===_0x59a364;},'pkEtj':_0x2a82e3(_0x5c7f59._0x33f79e,0x4fb,0x50a,0x54c),'svQPr':function(_0x51edfb,_0x679f5a){return _0x51edfb(_0x679f5a);},'NccUG':function(_0x27a98d,_0x237230){return _0x27a98d(_0x237230);},'goqjv':function(_0x3934e6,_0x5d6e75,_0x55da40){return _0x3934e6(_0x5d6e75,_0x55da40);}};void _0x60880c;function _0x50e323(_0x54d84c,_0x413231,_0x3c16be,_0x54a817){return _0x5e21b2(_0x54d84c-_0x2e6113._0xf4c7b4,_0x3c16be,_0x54d84c-0x5,_0x54a817-0x15b);}const _0x30a0d8=await _0x2de7d5[_0x2a82e3(0x532,0x543,0x4d2,_0x5c7f59._0x440cdb)](loadAgentModels),_0x3cec8b={};function _0x2a82e3(_0x23f29c,_0x3101f2,_0x32de0d,_0x53a5e1){return _0x2fc064(_0x23f29c-_0x104fc3._0x15de24,_0x3101f2-_0x104fc3._0x4aca31,_0x23f29c-0x27d,_0x3101f2);}for(const _0x103c11 of[_0x2de7d5[_0x50e323(-_0x5c7f59._0x4092ae,_0x5c7f59._0x3b5fa0,-0x8c,-_0x5c7f59._0x21b425)],_0x2de7d5[_0x2a82e3(0x4f9,_0x5c7f59._0x4fab5f,0x582,0x4c8)],_0x2de7d5[_0x50e323(_0x5c7f59._0x1a389f,-_0x5c7f59._0x259252,-0x43,0x11)]]){if(_0x2de7d5['NyisJ'](_0x2de7d5[_0x50e323(-0x9,-0x4d,-0x75,-0x85)],_0x50e323(0x6f,-_0x5c7f59._0xbae653,0x61,0x71))){const _0x39135b=_0x30a0d8[_0x103c11]||{},_0x29df46=_0x39135b['model']||null,_0xe31b2e={};_0xe31b2e[_0x50e323(_0x5c7f59._0x541119,_0x5c7f59._0x3a1151,_0x5c7f59._0x21e714,_0x5c7f59._0x55f4a6)]=!![];const _0x52f474=_0x29df46?validateModel(_0x29df46,_0x103c11):_0xe31b2e,_0x4d9098=_0x2de7d5[_0x50e323(-0x23,-0x42,-0x70,-0x46)](getActiveApiKeyAccount,_0x103c11),_0x4fe106=_0x2de7d5[_0x50e323(-_0x5c7f59._0x58f3c4,-_0x5c7f59._0x206718,-_0x5c7f59._0x4f8523,-0x53)](getAnyApiKeyAccount,_0x103c11),_0x5515d0=_0x2de7d5[_0x2a82e3(_0x5c7f59._0x3d8289,0x48c,0x4db,0x447)](normalizeEndpointConfig,_0x103c11,_0x4d9098?.[_0x50e323(-0x16,-0x55,_0x5c7f59._0x2d9e36,_0x5c7f59._0x1807d4)]),_0x4a23f1={};_0x4a23f1[_0x50e323(0x28,0x42,-_0x5c7f59._0x1160c6,0xb3)]=!!_0x4fe106,_0x4a23f1[_0x50e323(_0x5c7f59._0x55f7f5,_0x5c7f59._0x358463,0x38,-0x7)+_0x2a82e3(0x4c3,_0x5c7f59._0xe2a62f,_0x5c7f59._0x50bfa7,0x462)]=!!_0x4d9098,_0x4a23f1['activeApiK'+_0x2a82e3(0x4a6,0x42f,_0x5c7f59._0x3d5cca,_0x5c7f59._0x17fbd6)+'d']=_0x4d9098?.['id']||null,_0x4a23f1[_0x2a82e3(0x47c,0x463,0x48b,_0x5c7f59._0x47818a)]=_0x29df46,_0x4a23f1[_0x2a82e3(0x4d4,_0x5c7f59._0x302e3f,_0x5c7f59._0x42ee53,0x538)]=_0x5515d0,_0x4a23f1[_0x2a82e3(0x54f,0x5d1,_0x5c7f59._0x45bf51,0x4cc)]=_0x52f474[_0x50e323(_0x5c7f59._0x541119,0x3b,_0x5c7f59._0x802cfd,_0x5c7f59._0xdfc5cb)],_0x4a23f1[_0x2a82e3(0x4b5,_0x5c7f59._0x35429b,_0x5c7f59._0x2f20ef,0x48c)+_0x50e323(-_0x5c7f59._0x881f29,-_0x5c7f59._0x37deb6,-0x45,-_0x5c7f59._0x2f4cb4)]=_0x52f474[_0x50e323(0x74,0x9d,-0x4,_0x5c7f59._0x28d505)]||null,_0x3cec8b[_0x103c11]=_0x4a23f1;}else _0x593250['GEMINI_API'+_0x50e323(0x7f,_0x5c7f59._0xda8093,0xfe,_0x5c7f59._0x2fac0)]=_0xda1a61,_0x4dab11[_0x50e323(0xe,-_0x5c7f59._0x3c1c1a,_0x5c7f59._0x59092b,0x92)+_0x50e323(0x7f,-0x5,_0x5c7f59._0x5c4fad,_0x5c7f59._0x41a9c3)]=_0x3b31fb;}return _0x3cec8b;}export function clearCache(){clearAgentModelsCache();}
|
|
1
|
+
(function(_0x58c9ec,_0x30c595){const _0x29add6={_0x33cf38:0x3b5,_0x4cff2e:0x435,_0x4fdc65:0x329,_0x27b846:0x24b,_0xfe82d9:0x1ee,_0x2aa015:0x1df,_0x116580:0x2da,_0x3a98dc:0x2f0,_0x5adbdd:0xd4,_0x390e4b:0x35f,_0x4cc3a3:0x3e5,_0x4cba71:0x3ea,_0x30e75f:0x3c2},_0x220bf8={_0x48df3b:0x24b},_0x2a3cd5=_0x58c9ec();function _0x155d14(_0x39c364,_0x94851f,_0x8eb4fc,_0x434ec0){return _0x3a65(_0x39c364-_0x220bf8._0x48df3b,_0x434ec0);}function _0xdf93b(_0x2208a0,_0x4b83c9,_0x3a8bc0,_0x1ab453){return _0x3a65(_0x3a8bc0-0x55,_0x1ab453);}while(!![]){try{const _0x4499b7=parseInt(_0x155d14(_0x29add6._0x33cf38,0x340,_0x29add6._0x4cff2e,0x38b))/(0xda3*-0x1+-0x19f0+0x2794)+parseInt(_0x155d14(0x3b0,0x38c,0x414,0x333))/(-0x126a+-0x5*0x628+-0x2*-0x189a)+-parseInt(_0x155d14(0x33b,0x3af,_0x29add6._0x4fdc65,0x3a5))/(-0x3a1*0x8+-0x5*-0x483+0x67c)+parseInt(_0xdf93b(_0x29add6._0x27b846,_0x29add6._0xfe82d9,_0x29add6._0x2aa015,0x16c))/(-0xb3d+0xdf*-0x5+0xf9c)*(parseInt(_0x155d14(0x355,_0x29add6._0x116580,0x345,0x3bc))/(-0x1b73*-0x1+0x272*-0xb+-0x8*0x11))+-parseInt(_0x155d14(_0x29add6._0x3a98dc,0x2c6,0x324,0x35c))/(-0x1cf5+0xe38+0xec3*0x1)+parseInt(_0xdf93b(0xe9,_0x29add6._0x5adbdd,0x107,0xfa))/(-0x6f9+0x1*0xf77+0x1*-0x877)*(-parseInt(_0x155d14(0x337,0x317,_0x29add6._0x390e4b,0x363))/(0x10d6+-0x283+0xe4b*-0x1))+parseInt(_0x155d14(_0x29add6._0x4cc3a3,0x3f6,_0x29add6._0x4cba71,0x44f))/(-0xcd8*0x1+-0x124a*0x1+0x4f*0x65)*(parseInt(_0x155d14(0x363,_0x29add6._0x30e75f,0x3a5,0x300))/(0x250a+-0x13*-0x1a9+0x448b*-0x1));if(_0x4499b7===_0x30c595)break;else _0x2a3cd5['push'](_0x2a3cd5['shift']());}catch(_0xa4e8ea){_0x2a3cd5['push'](_0x2a3cd5['shift']());}}}(_0x2006,0x1875*-0xbf+0x325*-0x347+0x102a0*0x28));import{logger}from'./logger.js';import{getActiveApiKeyAccount,getAnyApiKeyAccount}from'./provider-accounts.js';import{loadAgentModels,clearAgentModelsCache}from'./agent-models.js';const VALID_CLAUDE_MODELS=[_0x911598(-0x6f,0x43,0x3,-0x54),_0x911598(-0xce,-0xee,-0x99,-0x2a),_0x3601d8(0x58e,0x5ad,0x531,0x520),'claude-opu'+_0x911598(0xb1,-0x30,0x30,0xb4)+'14',_0x3601d8(0x523,0x4dd,0x502,0x585)+_0x911598(-0x3a,-0x80,-0x3f,0x13),_0x911598(0x97,0x85,0x59,0x86)+_0x3601d8(0x593,0x530,0x544,0x58e),_0x3601d8(0x53e,0x546,0x575,0x4fa)+'net-4-2025'+_0x3601d8(0x54b,0x4cc,0x527,0x4d9),_0x911598(-0xd,0x32,0x59,0xdc)+_0x911598(-0x4a,0x49,0x19,0x4d)+'250929','claude-hai'+'ku-4-5-202'+_0x3601d8(0x51f,0x4ae,0x4c1,0x455),_0x3601d8(0x594,0x540,0x564,0x544)+_0x3601d8(0x45e,0x49f,0x4b5,0x52d)+'test','claude-3-5'+_0x3601d8(0x566,0x4e8,0x4f7,0x480)+_0x3601d8(0x50b,0x568,0x51e,0x57e),_0x911598(0x7c,0x36,0x48,0x78)+'-sonnet-20'+'240620',_0x3601d8(0x55e,0x4ed,0x564,0x4f2)+_0x3601d8(0x4f8,0x4c9,0x51c,0x4c9)+_0x3601d8(0x4d2,0x541,0x520,0x598),_0x911598(0x1f,0x10,0x48,0xab)+_0x3601d8(0x59e,0x4cc,0x529,0x599)+_0x911598(0xa,-0x2d,0x46,0x8f),_0x3601d8(0x4eb,0x500,0x4e8,0x4cf)+_0x3601d8(0x5b0,0x5dc,0x580,0x583),_0x3601d8(0x522,0x4dd,0x4e8,0x526)+_0x911598(0xb1,0x78,0x65,0x91)+'29',_0x911598(0xcf,-0x1b,0x62,0x26)+_0x3601d8(0x526,0x4db,0x4f9,0x49e)+_0x911598(0x12,0x2d,-0x21,-0x5b),_0x911598(0x99,0x4f,0x1c,0x80)+_0x3601d8(0x447,0x4d1,0x4b9,0x468)+'307'],VALID_OPENAI_MODELS=['o3',_0x3601d8(0x47c,0x4cc,0x4a9,0x470),'o1',_0x3601d8(0x549,0x498,0x506,0x51f),_0x911598(-0xc6,-0x19,-0x9a,-0x68),'gpt-5.4',_0x911598(-0x99,-0x8b,-0x86,-0xd1)+_0x911598(0x87,0x49,0x2a,0x3b),_0x3601d8(0x467,0x474,0x496,0x45f)+_0x3601d8(0x4d1,0x4e1,0x48e,0x441),'gpt-5.2-co'+_0x911598(-0xf8,-0x88,-0x8e,-0xa1),'gpt-5.1-co'+_0x3601d8(0x432,0x4e8,0x4a7,0x42c),_0x3601d8(0x55b,0x4fd,0x521,0x4c2)+_0x911598(0xb7,0x7c,0x50,0x90),_0x911598(-0x7f,-0x50,0x5,0x1f)+_0x911598(-0x10b,-0xc5,-0x8e,-0xe6),'gpt-5.2',_0x911598(-0x26,0x31,0x39,-0x2f),_0x911598(-0x6a,0x11,-0xa,0x75)+'i',_0x911598(-0x4c,-0x4f,-0x57,-0x13)+_0x3601d8(0x50c,0x4db,0x4b4,0x476),_0x3601d8(0x465,0x4a8,0x4c5,0x52f)+_0x3601d8(0x4e6,0x4cf,0x4ed,0x4ff),_0x911598(0x20,-0x81,-0x57,-0x3f)+_0x911598(-0x41,0x3,0x21,-0x10),'gpt-4-turb'+'o',_0x3601d8(0x5f0,0x5eb,0x56f,0x4f8)+_0x911598(-0x84,-0x71,-0x7f,-0x93),_0x911598(0x2d,-0x12,0x53,0x3d)+_0x3601d8(0x563,0x54a,0x4f0,0x52f)+'09','gpt-4','gpt-4-0613'],VALID_GEMINI_MODELS=['gemini-3.1'+_0x911598(-0x7e,-0x1f,-0x11,0x6f)+'ew',_0x3601d8(0x552,0x51c,0x4d0,0x4ce)+_0x911598(0x2b,-0x56,-0x3a,-0x1),'gemini-3-f'+_0x3601d8(0x4e9,0x483,0x4da,0x4cc)+'ew',_0x911598(-0x60,-0x91,-0x93,-0x56)+'-pro','gemini-2.5'+_0x3601d8(0x4c7,0x498,0x50b,0x555)+'ew-06-05',_0x911598(-0xdf,-0xb7,-0x93,-0x39)+_0x3601d8(0x48b,0x452,0x493,0x4f9),_0x3601d8(0x491,0x501,0x489,0x507)+_0x3601d8(0x596,0x517,0x584,0x5cb)+_0x3601d8(0x504,0x5a7,0x53f,0x554),_0x3601d8(0x53f,0x4ed,0x56d,0x5d9)+_0x3601d8(0x42f,0x478,0x493,0x4f1),'gemini-2.0'+_0x3601d8(0x531,0x4ea,0x50d,0x49d),_0x3601d8(0x562,0x5d1,0x55b,0x539)+'-pro',_0x911598(0x69,0xbb,0x3f,0x7d)+_0x3601d8(0x5ba,0x5aa,0x563,0x525)+'t',_0x3601d8(0x5d9,0x516,0x55b,0x547)+_0x911598(-0x95,-0x78,-0x89,-0xdf),_0x3601d8(0x5dc,0x545,0x55b,0x538)+_0x911598(-0x9e,-0xc4,-0x6e,-0xe5)+_0x3601d8(0x4fe,0x5a0,0x520,0x529),_0x3601d8(0x4a3,0x45d,0x4a5,0x508),_0x3601d8(0x536,0x4c8,0x52a,0x5aa)],ENDPOINT_ENABLED_AGENTS=new Set([_0x3601d8(0x541,0x506,0x514,0x4fe),_0x911598(-0x4e,0x30,-0x1e,-0x21),_0x3601d8(0x560,0x521,0x541,0x516)]);function endpointSupportsApiVersion(_0x147666){const _0x3864b6={_0x5cbe44:0x37,_0x450d1a:0x58,_0x1ea37b:0x68,_0x479bc6:0xe,_0x9fc8d2:0x22,_0x9e9d40:0x181,_0x5abb34:0x1a5,_0x3f5429:0x63,_0xc7dab1:0x53,_0x6462a4:0xe6,_0x51b2d8:0x113,_0x57723a:0xb6},_0x4a2fd2={_0x3b77ed:0x147,_0x4dbe83:0xa5,_0x114aca:0x169},_0x55e887={};_0x55e887[_0x3a0c5d(0x6a,-_0x3864b6._0x5cbe44,_0x3864b6._0x450d1a,0x40)]=function(_0x499647,_0x459bc5){return _0x499647===_0x459bc5;};function _0x339401(_0x2afd95,_0x29216f,_0x5f6558,_0x224a85){return _0x911598(_0x5f6558,_0x29216f-0x1ca,_0x2afd95- -0x132,_0x224a85-0x12a);}function _0x3a0c5d(_0x5b0711,_0x3cb270,_0x56221f,_0xfff0cc){return _0x911598(_0x5b0711,_0x3cb270-_0x4a2fd2._0x3b77ed,_0xfff0cc-_0x4a2fd2._0x4dbe83,_0xfff0cc-_0x4a2fd2._0x114aca);}_0x55e887[_0x3a0c5d(_0x3864b6._0x1ea37b,-0x1f,_0x3864b6._0x479bc6,_0x3864b6._0x9fc8d2)]='codex',_0x55e887[_0x339401(-0x121,-0x132,-0x1a5,-_0x3864b6._0x9e9d40)]='gemini';const _0x3c206d=_0x55e887;return _0x3c206d['QIPKN'](_0x147666,_0x3c206d[_0x339401(-0x1b5,-0x177,-_0x3864b6._0x5abb34,-0x1cc)])||_0x3c206d[_0x3a0c5d(0xa4,0x6f,_0x3864b6._0x3f5429,0x40)](_0x147666,_0x3c206d[_0x3a0c5d(_0x3864b6._0xc7dab1,_0x3864b6._0x6462a4,_0x3864b6._0x51b2d8,_0x3864b6._0x57723a)]);}function trimString(_0x3f9909){const _0x10042f={_0x464226:0x3c9,_0x2b2814:0x422,_0x1aa221:0x1b9,_0x3c30e8:0x1f8,_0x530535:0x46e,_0x284609:0x3fc,_0x5e3bdf:0x409,_0x54b80f:0x41a},_0x1ce7d7={_0x8e7ce7:0x45,_0xbe30e0:0xe2},_0x2cd139={_0x22103d:0x1f0},_0x364f61={};_0x364f61['upgwZ']=_0xd24ccc(_0x10042f._0x464226,_0x10042f._0x2b2814,0x441,0x3f5);const _0x342e4c=_0x364f61;if(typeof _0x3f9909!==_0x342e4c[_0x3cb5d7(0x238,_0x10042f._0x1aa221,_0x10042f._0x3c30e8,0x195)])return null;function _0x3cb5d7(_0x184453,_0x520bde,_0x3b781f,_0x194361){return _0x911598(_0x520bde,_0x520bde-0x1c2,_0x3b781f-_0x2cd139._0x22103d,_0x194361-0x184);}const _0x296f82=_0x3f9909[_0xd24ccc(_0x10042f._0x530535,_0x10042f._0x284609,_0x10042f._0x5e3bdf,_0x10042f._0x54b80f)]();function _0xd24ccc(_0x2a4017,_0x1059b5,_0x2ed4cd,_0x333e8d){return _0x3601d8(_0x2a4017-_0x1ce7d7._0x8e7ce7,_0x1059b5-_0x1ce7d7._0xbe30e0,_0x333e8d- -0x11c,_0x2ed4cd);}return _0x296f82||null;}function normalizeBaseUrl(_0x3b446b){const _0x409acc={_0x2679c2:0x3dd,_0xc7c45a:0x445,_0x10a7b9:0x456,_0x3bf72a:0x31,_0x4a7581:0x8,_0x40df8c:0x64,_0x372814:0x27,_0x2ff57c:0x72,_0x56e7d2:0x2f,_0x20f544:0x3d1,_0x4c683e:0x341,_0x67fd5:0x8,_0x46142e:0x49,_0x432009:0x3b0,_0x59d873:0x6d,_0x8eb894:0x2,_0xabe14c:0x32},_0x999de6={_0x53651d:0x149},_0x5a6868={_0x3808aa:0x20};function _0xea6dfb(_0x144d1d,_0xb2dd40,_0x32553a,_0x228698){return _0x911598(_0x144d1d,_0xb2dd40-_0x5a6868._0x3808aa,_0x32553a-0x35,_0x228698-0x20);}const _0x5a3ebd={'CGTBF':function(_0x2f301d,_0x22227c){return _0x2f301d(_0x22227c);},'Thxcq':_0x466aca(_0x409acc._0x2679c2,0x3e1,_0x409acc._0xc7c45a,_0x409acc._0x10a7b9),'PaofE':function(_0xb41c86,_0x24d5ba){return _0xb41c86!==_0x24d5ba;},'bpPTn':_0x466aca(0x365,0x3d8,0x409,0x35f)},_0x1f88f9=_0x5a3ebd['CGTBF'](trimString,_0x3b446b);if(!_0x1f88f9)return null;function _0x466aca(_0x5f20b6,_0x1d6acc,_0x312337,_0x447223){return _0x911598(_0x312337,_0x1d6acc-_0x999de6._0x53651d,_0x1d6acc-0x380,_0x447223-0x1de);}try{const _0x416be8=new URL(_0x1f88f9);if(_0x416be8[_0xea6dfb(0x31,_0x409acc._0x3bf72a,-_0x409acc._0x4a7581,-0x3b)]!==_0x5a3ebd[_0xea6dfb(_0x409acc._0x40df8c,_0x409acc._0x372814,_0x409acc._0x2ff57c,_0x409acc._0x56e7d2)]&&_0x5a3ebd[_0x466aca(_0x409acc._0x20f544,0x365,_0x409acc._0x4c683e,0x3b3)](_0x416be8[_0xea6dfb(0x20,-0x2a,-_0x409acc._0x67fd5,-0xf)],_0x5a3ebd[_0xea6dfb(0x1a,_0x409acc._0x46142e,0x8c,0x38)]))return null;return _0x416be8[_0x466aca(0x2c1,0x337,_0x409acc._0x432009,0x2c1)]()[_0xea6dfb(_0x409acc._0x59d873,_0x409acc._0x8eb894,_0x409acc._0xabe14c,0xad)](/\/+$/,'');}catch{return null;}}function getDefaultEndpointConfig(_0x17e945){const _0x3d5e3d={_0x403e41:0x119,_0x4f08ab:0xb2,_0x821502:0xd6,_0x305383:0x144,_0x203d9a:0x123,_0x42df28:0xec,_0x5e5e46:0x20c,_0x2c7c2b:0x194,_0x45892c:0x13f,_0x5c7dc5:0x15e,_0x3bd56d:0x14d,_0x2abf19:0xaf,_0x3b8872:0xb2,_0x4176ba:0x1f1,_0x21993b:0x214,_0x43d896:0x19a,_0x144821:0xbf,_0x30f2db:0xb3},_0x2c5ccb={_0x381fc3:0x15,_0x3b871d:0x54};function _0x15e1a7(_0xdc67d4,_0x4f3a04,_0x104efd,_0x2b2d48){return _0x911598(_0x2b2d48,_0x4f3a04-_0x2c5ccb._0x381fc3,_0xdc67d4-0xeb,_0x2b2d48-_0x2c5ccb._0x3b871d);}const _0x38ba5b={};_0x38ba5b[_0x15e1a7(_0x3d5e3d._0x403e41,0x14c,0x168,0xaf)]=function(_0x35d309,_0x170ded){return _0x35d309===_0x170ded;},_0x38ba5b[_0x15e1a7(_0x3d5e3d._0x4f08ab,0xc3,0xb5,_0x3d5e3d._0x821502)]=_0x264d10(-_0x3d5e3d._0x305383,-_0x3d5e3d._0x203d9a,-_0x3d5e3d._0x42df28,-0xd5),_0x38ba5b['DDERm']=_0x264d10(-_0x3d5e3d._0x5e5e46,-0x197,-0x132,-_0x3d5e3d._0x2c7c2b);function _0x264d10(_0x419e87,_0xd6cdc3,_0x3baf4f,_0x11ab4c){return _0x3601d8(_0x419e87-0x1d9,_0xd6cdc3-0x4e,_0x11ab4c- -0x65c,_0x419e87);}const _0x18f827=_0x38ba5b;if(!ENDPOINT_ENABLED_AGENTS[_0x15e1a7(_0x3d5e3d._0x45892c,_0x3d5e3d._0x5c7dc5,0x17f,_0x3d5e3d._0x3bd56d)](_0x17e945))return _0x18f827['URczr'](_0x18f827[_0x15e1a7(0xb2,0xbd,0x8a,_0x3d5e3d._0x2abf19)],_0x18f827[_0x15e1a7(_0x3d5e3d._0x3b8872,0xf5,0x8a,0x5a)])?null:null;const _0x1202bb={};return _0x1202bb[_0x264d10(-_0x3d5e3d._0x4176ba,-0x145,-_0x3d5e3d._0x21993b,-_0x3d5e3d._0x43d896)+'n']=null,{'mode':_0x18f827[_0x264d10(-0xf9,-_0x3d5e3d._0x144821,-_0x3d5e3d._0x30f2db,-0xe5)],'base_url':null,...endpointSupportsApiVersion(_0x17e945)?_0x1202bb:{}};}export function normalizeEndpointConfig(_0x48434a,_0x4ea190){const _0x30a6d1={_0x3741ee:0x14b,_0x5aec91:0x192,_0x580832:0x183,_0x422382:0xd1,_0x315b56:0x9e,_0x10c7fd:0xb1,_0x2806d9:0xcb,_0x26f76c:0xe4,_0x47b8da:0x6c,_0x2f31b0:0xc9,_0x522158:0x85,_0x12c14b:0x1c,_0x5ebfd3:0x43,_0x3f328b:0xa,_0x279129:0x178,_0x16bee8:0x126,_0x4ba662:0x123,_0x55fe4a:0x45,_0x34d0fc:0x32,_0x493ad0:0x102,_0x8e3aad:0x1c5,_0x55628e:0x1da,_0x4f96b2:0x168,_0x444f59:0xe7,_0x84f5f6:0x16,_0x3b3455:0x97,_0x30cc45:0x3f,_0x5437b4:0x19b,_0x1ef96d:0x189,_0x116a76:0x133,_0x3d3b99:0x3b,_0x107659:0x4a,_0x229786:0x28,_0x354740:0x5c,_0x3846b9:0xc1,_0x6ec382:0x8d,_0x3965c7:0x15f,_0x39f21b:0x1db,_0x1252c8:0x47,_0x55f04d:0x164,_0x5bb56d:0x107,_0x2f3a59:0x127,_0x583f4d:0x11e,_0x2f2af6:0x191,_0x4fd07c:0x1b8},_0x41ab78={_0x166ed4:0xf,_0x22b149:0x496},_0x503eab={_0x183ffc:0x77},_0x1aeffd={'iJTFq':function(_0x57d59f,_0x4d765c){return _0x57d59f!==_0x4d765c;},'daRxt':'https:','iURUE':function(_0x3f47c7,_0x2fb949){return _0x3f47c7(_0x2fb949);},'nNvzf':function(_0xfc03fe,_0x49366d){return _0xfc03fe===_0x49366d;},'HtqPV':_0x555fb2(-_0x30a6d1._0x3741ee,-_0x30a6d1._0x5aec91,-0x126,-_0x30a6d1._0x580832),'VPabP':'kcCXh','WfWvB':function(_0x49a71b,_0x1c0f6a){return _0x49a71b(_0x1c0f6a);}},_0x3ad16f=_0x1aeffd[_0x48bbda(0xcc,_0x30a6d1._0x422382,_0x30a6d1._0x315b56,_0x30a6d1._0x10c7fd)](getDefaultEndpointConfig,_0x48434a);if(!_0x3ad16f)return null;function _0x555fb2(_0x123fff,_0x3c00b3,_0x3aabba,_0x1fec27){return _0x911598(_0x1fec27,_0x3c00b3-_0x503eab._0x183ffc,_0x3aabba- -0x15e,_0x1fec27-0x181);}const _0x29c8aa=_0x1aeffd[_0x555fb2(-_0x30a6d1._0x2806d9,-0xf3,-0x133,-_0x30a6d1._0x26f76c)](trimString,_0x4ea190?.[_0x48bbda(_0x30a6d1._0x47b8da,_0x30a6d1._0x2f31b0,0xb5,_0x30a6d1._0x522158)]);function _0x48bbda(_0x11ba9d,_0x1ca62c,_0x7367b3,_0x2a5280){return _0x3601d8(_0x11ba9d-0x1ad,_0x1ca62c-_0x41ab78._0x166ed4,_0x2a5280- -_0x41ab78._0x22b149,_0x7367b3);}const _0x159b8a=_0x1aeffd[_0x48bbda(-_0x30a6d1._0x12c14b,0x4c,-_0x30a6d1._0x5ebfd3,_0x30a6d1._0x3f328b)](_0x29c8aa,_0x1aeffd[_0x555fb2(-0x163,-0x243,-0x1d7,-0x20c)])?_0x555fb2(-_0x30a6d1._0x279129,-0x155,-_0x30a6d1._0x16bee8,-_0x30a6d1._0x4ba662):_0x48bbda(0x36,-0x10,-_0x30a6d1._0x55fe4a,_0x30a6d1._0x34d0fc);if(_0x159b8a!==_0x48bbda(0x5f,_0x30a6d1._0x493ad0,0xe5,0xbe)){if(_0x1aeffd[_0x555fb2(-0x1cb,-_0x30a6d1._0x8e3aad,-_0x30a6d1._0x55628e,-_0x30a6d1._0x4f96b2)](_0x555fb2(-0xa8,-0x104,-0x124,-_0x30a6d1._0x444f59),_0x1aeffd['VPabP']))return _0x3ad16f;else{const _0x4d13a0=new _0x2f9746(_0x36eab8);if(_0x1aeffd['iJTFq'](_0x4d13a0[_0x48bbda(-0x27,-_0x30a6d1._0x84f5f6,_0x30a6d1._0x3b3455,0x49)],'http:')&&_0x1aeffd[_0x48bbda(0x99,0x7e,0xb2,_0x30a6d1._0x30cc45)](_0x4d13a0[_0x555fb2(-0x1a6,-0x215,-_0x30a6d1._0x5437b4,-0x18e)],_0x1aeffd['daRxt']))return null;return _0x4d13a0['toString']()['replace'](/\/+$/,'');}}const _0x5cf977=_0x1aeffd[_0x555fb2(-0xb2,-_0x30a6d1._0x1ef96d,-_0x30a6d1._0x116a76,-0x183)](normalizeBaseUrl,_0x4ea190?.[_0x48bbda(-0x1a,-_0x30a6d1._0x3d3b99,_0x30a6d1._0x107659,_0x30a6d1._0x229786)]);if(!_0x5cf977){if('TwBzR'!==_0x48bbda(0x56,_0x30a6d1._0x354740,_0x30a6d1._0x3846b9,_0x30a6d1._0x6ec382))_0x479190[_0x555fb2(-0x207,-_0x30a6d1._0x3965c7,-_0x30a6d1._0x39f21b,-0x1bd)+_0x48bbda(0x10c,_0x30a6d1._0x1252c8,0x9a,0xb2)+'L']=_0x14a50b;else return _0x3ad16f;}return{'mode':_0x1aeffd[_0x555fb2(-0x16c,-0x155,-0x1d7,-_0x30a6d1._0x55f04d)],'base_url':_0x5cf977,..._0x1aeffd[_0x48bbda(_0x30a6d1._0x5bb56d,_0x30a6d1._0x2f3a59,0x2f,0xb1)](endpointSupportsApiVersion,_0x48434a)?{'api_version':_0x1aeffd[_0x555fb2(-0xcf,-0x12e,-_0x30a6d1._0x583f4d,-_0x30a6d1._0x2f2af6)](trimString,_0x4ea190?.[_0x555fb2(-0x192,-0x164,-_0x30a6d1._0x4fd07c,-0x20c)+'n'])}:{}};}export function getValidModels(_0x4530d6){const _0x5da081={_0x215d85:0x399,_0x22ea10:0x415,_0x111ad0:0x3e9,_0x5b7525:0x3db,_0x435f3d:0x184,_0xc03209:0x20f,_0x573235:0x1b2,_0x29504a:0x36a,_0x2d6596:0x30f},_0x5b182f={_0xef1b97:0xc2},_0x333760={_0x2df059:0x1e2,_0x1b98f0:0x186,_0x2ce7d0:0x167};function _0x440e49(_0x4570f4,_0x26fd2f,_0x20f739,_0x268f1f){return _0x911598(_0x4570f4,_0x26fd2f-_0x333760._0x2df059,_0x20f739- -_0x333760._0x1b98f0,_0x268f1f-_0x333760._0x2ce7d0);}const _0x1b64e7={};function _0x255b98(_0x47e09c,_0x3d4bfc,_0x45c1a9,_0x5c693c){return _0x911598(_0x5c693c,_0x3d4bfc-_0x5b182f._0xef1b97,_0x3d4bfc-0x36e,_0x5c693c-0x1cc);}_0x1b64e7[_0x255b98(0x3bc,0x360,_0x5da081._0x215d85,0x35e)]='codex',_0x1b64e7[_0x255b98(0x355,0x30f,0x2c4,0x2bc)]=_0x255b98(_0x5da081._0x22ea10,0x393,_0x5da081._0x111ad0,_0x5da081._0x5b7525);const _0x5ade01=_0x1b64e7;switch(_0x4530d6){case _0x440e49(-_0x5da081._0x435f3d,-0x1fb,-0x18e,-_0x5da081._0xc03209):return VALID_CLAUDE_MODELS;case _0x5ade01[_0x440e49(-0x111,-0x153,-0x194,-_0x5da081._0x573235)]:return VALID_OPENAI_MODELS;case _0x5ade01[_0x255b98(_0x5da081._0x29504a,_0x5da081._0x2d6596,0x30f,0x332)]:return VALID_GEMINI_MODELS;default:return[];}}function _0x3a65(_0x3832a0,_0x53e31a){_0x3832a0=_0x3832a0-(0x217e+-0x1b1*-0xa+-0x31ce);const _0x206494=_0x2006();let _0xecb893=_0x206494[_0x3832a0];if(_0x3a65['xAcZSd']===undefined){var _0x97b36c=function(_0x1b37a8){const _0x376354='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bd40c='',_0x155931='';for(let _0x420c3b=-0x145f+0x6aa+0xdb5,_0x419df2,_0x595d93,_0x4b5dfb=-0x4a*0x3b+0x246f+0x1c3*-0xb;_0x595d93=_0x1b37a8['charAt'](_0x4b5dfb++);~_0x595d93&&(_0x419df2=_0x420c3b%(0x209b+0x25c3*0x1+-0x465a)?_0x419df2*(0xa10+-0x216+-0x7ba)+_0x595d93:_0x595d93,_0x420c3b++%(0x4*-0x125+-0x14+0x4ac))?_0x2bd40c+=String['fromCharCode'](0x14b4+-0xd1*0x7+-0xdfe&_0x419df2>>(-(-0x725+-0x1489+0x376*0x8)*_0x420c3b&-0x5d*-0x29+-0x944+-0x59b)):-0x11*0x171+0x1*0x113f+0x742){_0x595d93=_0x376354['indexOf'](_0x595d93);}for(let _0x516981=-0x25f0+-0xb*0xd3+-0x7*-0x6b7,_0x1d51e4=_0x2bd40c['length'];_0x516981<_0x1d51e4;_0x516981++){_0x155931+='%'+('00'+_0x2bd40c['charCodeAt'](_0x516981)['toString'](-0xe27*0x2+0x5*0x788+-0x94a))['slice'](-(-0x16b2+0x1787+-0xd3));}return decodeURIComponent(_0x155931);};_0x3a65['IdUrkg']=_0x97b36c,_0x3a65['xWryQD']={},_0x3a65['xAcZSd']=!![];}const _0x2d8420=_0x206494[0x5cf+0xcb8+-0x1287],_0x3a588c=_0x3832a0+_0x2d8420,_0x31151c=_0x3a65['xWryQD'][_0x3a588c];return!_0x31151c?(_0xecb893=_0x3a65['IdUrkg'](_0xecb893),_0x3a65['xWryQD'][_0x3a588c]=_0xecb893):_0xecb893=_0x31151c,_0xecb893;}export function validateModel(_0x436cd9,_0x2d0505){const _0x203e5d={_0x13ff0c:0x112,_0xd32b8d:0x181,_0x380467:0x161,_0x38edf5:0x1b0,_0x24531c:0x18d,_0x230156:0x193,_0xe71d7d:0xbb,_0x3beae5:0xc4,_0x46278d:0x227,_0xf2aa3a:0x64,_0x557719:0x65,_0x5f32f4:0x2f,_0x1cd516:0x214,_0x18b644:0x1d5,_0x458573:0x8f,_0x5e2a20:0x93,_0x2b18ce:0x10d,_0xbf7dce:0x74,_0x339a98:0x1ca,_0x5124c6:0x237,_0x2576f9:0x221,_0x542da2:0x1f3,_0x4f2475:0x1e9,_0x190d74:0x34,_0x28e333:0x220,_0x48a734:0x1df,_0x291482:0x1f9,_0x37d593:0x22a,_0x1e752a:0x1ea,_0x496a46:0x2a2,_0xb99e72:0x22e,_0xac20fd:0x41,_0x515791:0x33,_0x41944e:0x29,_0x35918c:0x38,_0x5c84fa:0x183,_0x7dfba7:0x18c,_0x1604a7:0x184,_0x229f76:0x126,_0x45c568:0x22a,_0x3d0c69:0x241,_0x2f51bd:0xde,_0x210a2e:0x9b,_0x103d49:0x1d7,_0x502328:0x1aa,_0x557452:0x10a,_0x1de380:0xf3,_0x16df6f:0x91,_0x22a4c4:0xa3,_0x17b14e:0x16e,_0x1f650e:0x83,_0xbf0f9a:0x8,_0x52631a:0xf8,_0x4d3ad6:0xc0,_0x32e2ed:0x238,_0x49c6fc:0x26c,_0x52dc7:0x256,_0x5435e2:0x1fb,_0x1ce20f:0x20c,_0x31cb11:0xff,_0xe1a085:0x47,_0x58e122:0x1cf},_0x329823={_0x5d80da:0xc2,_0x153f58:0x58b},_0x1af1ea={_0x11a3b2:0x9d,_0x168f44:0x1ee},_0xdd390a={'xIUqB':function(_0x13e8f5,_0x4d9c62){return _0x13e8f5/_0x4d9c62;},'eyvXq':function(_0xd6dec8,_0x124fbb){return _0xd6dec8>_0x124fbb;},'XFlZx':function(_0x141ed1,_0x102b61){return _0x141ed1>_0x102b61;},'ciwhm':function(_0x18443a,_0x35a88a){return _0x18443a===_0x35a88a;},'aUqZP':_0x4ec2d8(0x188,_0x203e5d._0x13ff0c,_0x203e5d._0xd32b8d,_0x203e5d._0x380467),'hIUEh':_0x4ec2d8(0x1b0,_0x203e5d._0x38edf5,_0x203e5d._0x24531c,_0x203e5d._0x230156),'LyjQh':function(_0x3b8c97,_0x2db1f2,_0x1bfe10){return _0x3b8c97(_0x2db1f2,_0x1bfe10);},'lqgpM':function(_0x40ccd1,_0x72b329){return _0x40ccd1!==_0x72b329;},'XZUZY':_0xea3128(-0xfc,-_0x203e5d._0xe71d7d,-_0x203e5d._0x3beae5,-0x171)};if(!_0x436cd9){if(_0xdd390a[_0x4ec2d8(0x239,0x24b,0x1cf,_0x203e5d._0x46278d)](_0xdd390a['aUqZP'],_0xdd390a[_0xea3128(-0x69,-_0x203e5d._0xf2aa3a,-_0x203e5d._0x557719,-_0x203e5d._0x5f32f4)])){const _0x319a35=_0xdd390a['xIUqB'](_0x1aec4c[_0x4ec2d8(_0x203e5d._0x1cd516,0x1b4,0x1e4,_0x203e5d._0x18b644)](_0x37d866[_0xea3128(-0x93,-0x6f,-0xf1,-_0x203e5d._0x458573)],_0x3f720f[_0xea3128(-_0x203e5d._0x5e2a20,-0x41,-0x38,-0x8c)]),_0x57a8fe[_0xea3128(-0x9f,-_0x203e5d._0x2b18ce,-_0x203e5d._0xbf7dce,-0xb3)](_0x209310[_0x4ec2d8(_0x203e5d._0x339a98,_0x203e5d._0x5124c6,_0x203e5d._0x2576f9,_0x203e5d._0x542da2)],_0x103063[_0x4ec2d8(_0x203e5d._0x339a98,_0x203e5d._0x4f2475,0x21d,0x1cd)]));_0xdd390a[_0xea3128(-_0x203e5d._0x190d74,-0x24,-0x3a,-0x81)](_0x319a35,_0x30ba43)&&_0xdd390a[_0x4ec2d8(_0x203e5d._0x28e333,_0x203e5d._0x48a734,_0x203e5d._0x291482,0x26f)](_0x319a35,0x301*-0x7+-0x16d9+-0x138*-0x24+0.5)&&(_0x549f88=_0x319a35,_0x376999=_0x28d5db);}else{const _0x17f972={};return _0x17f972[_0x4ec2d8(_0x203e5d._0x37d593,0x246,_0x203e5d._0x1e752a,0x225)]=!![],_0x17f972;}}const _0x97a694=getValidModels(_0x2d0505);if(_0xdd390a[_0x4ec2d8(0x239,0x1e6,_0x203e5d._0x496a46,_0x203e5d._0xb99e72)](_0x97a694[_0xea3128(-0x93,-0xe1,-_0x203e5d._0xac20fd,-0x90)],-0x15bf*-0x1+0xc0f+-0x21ce)){const _0x204c88={};return _0x204c88[_0xea3128(-_0x203e5d._0x515791,-0x1b,-_0x203e5d._0x41944e,-_0x203e5d._0x35918c)]=!![],_0x204c88;}if(_0x97a694[_0x4ec2d8(_0x203e5d._0x5c84fa,_0x203e5d._0x7dfba7,_0x203e5d._0x1604a7,0x1e5)](_0x436cd9)){const _0x1b7c8f={};return _0x1b7c8f['valid']=!![],_0x1b7c8f;}const _0x54af77=_0x436cd9[_0xea3128(-0xcb,-_0x203e5d._0x229f76,-0x94,-0xef)+'e'](),_0xfe08ad=_0x97a694['find'](_0x1f5042=>_0x1f5042['toLowerCas'+'e']()===_0x54af77);if(_0xfe08ad){const _0x323a5a={};return _0x323a5a[_0x4ec2d8(_0x203e5d._0x45c568,_0x203e5d._0x496a46,0x24a,_0x203e5d._0x3d0c69)]=![],_0x323a5a['suggestion']=_0xfe08ad,_0x323a5a;}const _0x1c30d4=_0xdd390a[_0xea3128(-_0x203e5d._0x2f51bd,-0x11b,-_0x203e5d._0x210a2e,-0x14b)](findClosestMatch,_0x436cd9,_0x97a694);function _0x4ec2d8(_0x4b4e0d,_0x94766e,_0x4c4585,_0x194e8f){return _0x911598(_0x4c4585,_0x94766e-_0x1af1ea._0x11a3b2,_0x4b4e0d-_0x1af1ea._0x168f44,_0x194e8f-0x70);}function _0xea3128(_0x8792e4,_0x93cc56,_0x32beb8,_0x439249){return _0x3601d8(_0x8792e4-_0x329823._0x5d80da,_0x93cc56-0x2f,_0x8792e4- -_0x329823._0x153f58,_0x32beb8);}if(_0x1c30d4){if(_0xdd390a[_0x4ec2d8(_0x203e5d._0x103d49,0x224,_0x203e5d._0x502328,0x176)](_0xdd390a[_0xea3128(-0xf3,-0x82,-0x168,-_0x203e5d._0x557452)],_0xdd390a[_0xea3128(-_0x203e5d._0x1de380,-_0x203e5d._0x16df6f,-_0x203e5d._0x22a4c4,-_0x203e5d._0x17b14e)]))_0x24cc5e['GEMINI_API'+_0xea3128(-0x25,-0x60,-_0x203e5d._0x1f650e,_0x203e5d._0xbf0f9a)]=_0x53f763,_0xcb353b[_0xea3128(-0x8f,-0x86,-_0x203e5d._0x52631a,-_0x203e5d._0x4d3ad6)+_0x4ec2d8(_0x203e5d._0x32e2ed,_0x203e5d._0x49c6fc,0x200,0x1c3)]=_0x534294;else{const _0x5f3840={};return _0x5f3840[_0x4ec2d8(_0x203e5d._0x37d593,_0x203e5d._0x52dc7,_0x203e5d._0x5435e2,_0x203e5d._0x1ce20f)]=![],_0x5f3840[_0xea3128(-0xbc,-_0x203e5d._0x31cb11,-0x140,-_0x203e5d._0xe1a085)]=_0x1c30d4,_0x5f3840;}}const _0x51f986={};return _0x51f986[_0x4ec2d8(_0x203e5d._0x45c568,0x1cf,_0x203e5d._0x58e122,0x285)]=![],_0x51f986;}function findClosestMatch(_0x4c80a3,_0x2e6508){const _0x1193b4={_0x124348:0x3e,_0x370299:0xf,_0x5abb6c:0x79,_0x5a0ee8:0x7f,_0x186cbb:0x3b,_0x143e05:0x3f,_0x20d292:0x8f,_0x5d7c36:0x3,_0x38bc05:0x57,_0x1841cf:0x45,_0x23e343:0x4,_0x58533d:0x14,_0x42ee32:0x5c,_0x46319f:0x19,_0x590dea:0x3d,_0x91580e:0x22,_0x39f23:0x9e,_0x96f347:0x8c,_0x22115b:0x28,_0x55c0f7:0x38,_0x1e23b1:0x1a,_0x2bada4:0x69,_0x518945:0x9,_0x25e7c2:0xe,_0x1a1f43:0x1f,_0x1dea7f:0x82,_0x105f17:0x25,_0x503762:0x4a,_0x388c9d:0x55,_0x4f33cd:0x41,_0x4a99f3:0x84,_0x870b88:0xad,_0x5303c6:0x26},_0x2bd106={_0xae25f2:0x4a,_0x1b75f5:0x48f},_0x5605d7={};_0x5605d7['ApKfg']=function(_0x51a575,_0xf05d15){return _0x51a575===_0xf05d15;},_0x5605d7[_0x506cf5(-0x81,-_0x1193b4._0x124348,-_0x1193b4._0x370299,-_0x1193b4._0x5abb6c)]=_0x47a1f0(0xfa,0xd9,0x9f,0x139),_0x5605d7['vVmLK']=function(_0x5a2e5a,_0xbbbcc3){return _0x5a2e5a/_0xbbbcc3;},_0x5605d7[_0x506cf5(-_0x1193b4._0x5a0ee8,-_0x1193b4._0x186cbb,_0x1193b4._0x143e05,-0xb0)]=function(_0x2d5e0b,_0x3f1904){return _0x2d5e0b>_0x3f1904;};function _0x506cf5(_0x2fa8c1,_0x54113c,_0x3e24fa,_0x599129){return _0x911598(_0x2fa8c1,_0x54113c-0x101,_0x54113c-0x43,_0x599129-0xb6);}const _0xab89f=_0x5605d7,_0x26ec37=_0x4c80a3[_0x506cf5(-0x51,-0x19,-0x16,-_0x1193b4._0x20d292)+'e']();function _0x47a1f0(_0x22843f,_0x59702f,_0x486a45,_0x63daa){return _0x3601d8(_0x22843f-_0x2bd106._0xae25f2,_0x59702f-0x1e2,_0x59702f- -_0x2bd106._0x1b75f5,_0x486a45);}let _0xcb60ee=null,_0x77a5e6=0x2da*0x2+-0x4a*-0x2b+0x1222*-0x1;for(const _0xc88346 of _0x2e6508){if(_0xab89f[_0x47a1f0(0x80,_0x1193b4._0x5d7c36,0x1e,-_0x1193b4._0x38bc05)](_0xab89f[_0x506cf5(_0x1193b4._0x1841cf,-0x3e,-_0x1193b4._0x5abb6c,_0x1193b4._0x23e343)],_0xab89f[_0x47a1f0(-0x24,0xc,-_0x1193b4._0x58533d,0x85)])){const _0x1e9f64=_0xc88346[_0x506cf5(-_0x1193b4._0x42ee32,-_0x1193b4._0x46319f,0x43,-0x2d)+'e']();if(_0x1e9f64[_0x47a1f0(_0x1193b4._0x590dea,_0x1193b4._0x91580e,_0x1193b4._0x39f23,-0xc)](_0x26ec37)||_0x26ec37[_0x506cf5(-_0x1193b4._0x96f347,-_0x1193b4._0x22115b,_0x1193b4._0x55c0f7,-0x3d)](_0x1e9f64)){const _0x55b7a3=_0xab89f['vVmLK'](Math[_0x47a1f0(0xb9,0xb3,0xc1,0xe5)](_0x26ec37[_0x47a1f0(_0x1193b4._0x1e23b1,_0x1193b4._0x2bada4,_0x1193b4._0x518945,-_0x1193b4._0x25e7c2)],_0x1e9f64['length']),Math['max'](_0x26ec37[_0x506cf5(-0x43,_0x1193b4._0x1a1f43,0x89,_0x1193b4._0x1dea7f)],_0x1e9f64[_0x506cf5(0x8e,0x1f,-0x5c,0x3a)]));_0xab89f[_0x47a1f0(-0x14,0xf,-_0x1193b4._0x105f17,0x8e)](_0x55b7a3,_0x77a5e6)&&_0xab89f[_0x47a1f0(-0x4c,_0x1193b4._0x370299,-_0x1193b4._0x503762,-0x6a)](_0x55b7a3,0xb*0x24b+0x2032+0x1*-0x396b+0.5)&&(_0x77a5e6=_0x55b7a3,_0xcb60ee=_0xc88346);}}else _0xd3a9b[_0x506cf5(-0x32,0x44,_0x1193b4._0x20d292,-0xa)+_0x47a1f0(_0x1193b4._0x388c9d,_0x1193b4._0x388c9d,_0x1193b4._0x4f33cd,_0x1193b4._0x4a99f3)]=_0x277603[_0x47a1f0(-0x2e,0x33,_0x1193b4._0x870b88,-_0x1193b4._0x5303c6)+'n'];}return _0xcb60ee;}function getApiKeyValueFromAccount(_0x437cf1){const _0x4688d6={_0x116ea9:0x153,_0x429301:0x140},_0x5dc1b3={_0x302475:0x163};function _0x37cb82(_0x51e40d,_0x8f1cdc,_0x8cbda2,_0x375395){return _0x3601d8(_0x51e40d-_0x5dc1b3._0x302475,_0x8f1cdc-0x128,_0x8cbda2- -0x377,_0x8f1cdc);}return trimString(_0x437cf1?.['api_key']||_0x437cf1?.[_0x37cb82(0x17f,0x1b2,_0x4688d6._0x116ea9,_0x4688d6._0x429301)]||null);}function resolveApiKeyAccount(_0x56d8fc,{forTask:forTask=![]}={}){const _0x5e9a68={_0x539c47:0x135,_0x58f06c:0x1c1,_0x1e99eb:0x176,_0x595d08:0x199,_0x553877:0x206,_0x460d51:0x1ba,_0x2f08ab:0x19a,_0x331574:0x18e,_0x53f734:0x1d0,_0xf99452:0xb9,_0x29f859:0xad,_0x3a28c1:0x10e,_0x3737ba:0xb,_0x2927cb:0x15b,_0xfdde8f:0x161,_0x928677:0x9a,_0x47fc04:0x2b,_0x215cd0:0x73,_0x97bd85:0xa2,_0x5f9cc1:0x18,_0x22ce50:0x73,_0x506f96:0xc,_0x57ae25:0xc,_0x33de1f:0x21,_0x59b72f:0x25,_0x508219:0x8c,_0x3eae3a:0x146,_0x33dd9a:0x182,_0x5efb61:0x1b2,_0x4bc43b:0x182,_0x58c228:0xfe,_0x23161c:0x111,_0x56601c:0x18f,_0x36182e:0x1c4,_0x15fc60:0x15f,_0xfaff48:0x17b,_0x5e0b34:0x1e8,_0x6035ed:0x1cb,_0x31352d:0x20c,_0x5f5686:0x1bc,_0xaef7d:0x7c,_0x303063:0x69,_0x164671:0x0,_0x1e9922:0x9f,_0x3fffbc:0x91,_0x167f6c:0x86,_0x598450:0x2,_0x39e108:0x33,_0x1bd7ba:0x40,_0x21ceed:0x45,_0x5eb38e:0xed,_0x3a0f37:0xae,_0x19af11:0x4c,_0x3189d9:0x1f,_0x464e4e:0x41,_0x52b291:0x140,_0x408e66:0x172,_0x1e949c:0x190,_0x4b326c:0x1b8,_0x1ca19d:0x1a4,_0x3d6bd1:0x202,_0x369bb5:0x13f,_0x2c22dc:0x11e,_0xffd9ca:0x118,_0x2f3cb0:0x164,_0xec14c5:0x1e0,_0x3c25e2:0x1c4,_0x1691f1:0x14f,_0x88e90a:0x118,_0x5ba3e1:0x155},_0x3498ee={_0x5f3c02:0x159,_0x460047:0x689},_0x535e19={'NfcyP':function(_0x2a8ce6,_0x1001d9){return _0x2a8ce6(_0x1001d9);},'mfkVg':function(_0x5a53e6,_0x1bfd64){return _0x5a53e6(_0x1bfd64);},'RTfcR':function(_0x5c013e,_0x13e8aa){return _0x5c013e===_0x13e8aa;},'NHpof':_0x39d35c(-0x133,-_0x5e9a68._0x539c47,-0xd0,-0x17a),'WINrQ':_0x39d35c(-0x1b0,-_0x5e9a68._0x58f06c,-_0x5e9a68._0x1e99eb,-0x19c),'UBEWA':function(_0x1308bf,_0x5611a8){return _0x1308bf!==_0x5611a8;},'uSohx':_0x39d35c(-0x1dd,-0x1c3,-_0x5e9a68._0x595d08,-_0x5e9a68._0x553877),'dieGh':_0x39d35c(-_0x5e9a68._0x460d51,-_0x5e9a68._0x2f08ab,-_0x5e9a68._0x331574,-_0x5e9a68._0x53f734),'eATIm':function(_0x3f95f3,_0x95ca61){return _0x3f95f3(_0x95ca61);},'kJjZc':_0x5eefc0(-_0x5e9a68._0xf99452,-_0x5e9a68._0x29f859,-0x7c,-0x107),'DGOxR':_0x39d35c(-0x93,-_0x5e9a68._0x3a28c1,-0xd6,-0xff),'QjIOg':function(_0x540fee,_0x1f5cd2){return _0x540fee(_0x1f5cd2);},'Etrsn':_0x5eefc0(-_0x5e9a68._0x3737ba,-0x34,-0x71,-0x9)+_0x39d35c(-0x14d,-_0x5e9a68._0x2927cb,-0x19f,-_0x5e9a68._0xfdde8f)};if(forTask){if(_0x535e19[_0x5eefc0(_0x5e9a68._0x928677,_0x5e9a68._0x47fc04,_0x5e9a68._0x215cd0,0x62)]===_0x535e19[_0x5eefc0(-_0x5e9a68._0x97bd85,-0x8c,-0x37,-_0x5e9a68._0x5f9cc1)]){const _0x5b5ede=_0x535e19[_0x5eefc0(-_0x5e9a68._0x22ce50,-0x4b,-_0x5e9a68._0x506f96,-_0x5e9a68._0x57ae25)](_0x289cb2,_0x2b7e7d);if(!_0x5b5ede)return null;const _0x3f9796=_0x535e19[_0x5eefc0(0x96,_0x5e9a68._0x33de1f,_0x5e9a68._0x59b72f,_0x5e9a68._0x508219)](_0x11c772,_0x44bcff?.['mode']),_0x168f57=_0x535e19['RTfcR'](_0x3f9796,_0x535e19[_0x39d35c(-_0x5e9a68._0x3eae3a,-_0x5e9a68._0x33dd9a,-_0x5e9a68._0x5efb61,-0x1d6)])?_0x535e19[_0x39d35c(-0x205,-_0x5e9a68._0x4bc43b,-_0x5e9a68._0x58c228,-_0x5e9a68._0x23161c)]:_0x535e19[_0x39d35c(-0x188,-_0x5e9a68._0x56601c,-_0x5e9a68._0x36182e,-_0x5e9a68._0x15fc60)];if(_0x535e19[_0x39d35c(-0x132,-0x11f,-_0x5e9a68._0xfdde8f,-_0x5e9a68._0xfaff48)](_0x168f57,_0x535e19[_0x5eefc0(-0xaa,-0x37,-0x1a,-0x62)]))return _0x5b5ede;const _0x38c6da=_0x5ceb73(_0x20e333?.[_0x39d35c(-_0x5e9a68._0x5e0b34,-_0x5e9a68._0x6035ed,-0x18a,-_0x5e9a68._0x31352d)]);if(!_0x38c6da)return _0x5b5ede;return{'mode':_0x535e19[_0x39d35c(-0x199,-0x182,-0x17f,-_0x5e9a68._0x5f5686)],'base_url':_0x38c6da,..._0x4058b9(_0x34cec9)?{'api_version':_0x159063(_0x1620d5?.[_0x5eefc0(-0x3,-_0x5e9a68._0xaef7d,-_0x5e9a68._0x303063,_0x5e9a68._0x164671)+'n'])}:{}};}else{const _0x39fb5a=_0x535e19[_0x5eefc0(-_0x5e9a68._0x1e9922,-0x27,-_0x5e9a68._0x3fffbc,-_0x5e9a68._0x167f6c)](getActiveApiKeyAccount,_0x56d8fc),_0x584597={};return _0x584597['account']=_0x39fb5a,_0x584597[_0x5eefc0(-_0x5e9a68._0x598450,_0x5e9a68._0x39e108,_0x5e9a68._0x1bd7ba,-_0x5e9a68._0x21ceed)]=_0x39fb5a?_0x535e19[_0x5eefc0(-_0x5e9a68._0x5eb38e,-_0x5e9a68._0x3a0f37,-0xef,-_0x5e9a68._0x19af11)]:_0x535e19[_0x5eefc0(-_0x5e9a68._0x3189d9,_0x5e9a68._0x464e4e,0x36,-_0x5e9a68._0x5f9cc1)],_0x584597;}}function _0x39d35c(_0x4327d3,_0x3e63ab,_0x4b1432,_0x335331){return _0x3601d8(_0x4327d3-_0x3498ee._0x5f3c02,_0x3e63ab-0x93,_0x3e63ab- -_0x3498ee._0x460047,_0x335331);}function _0x5eefc0(_0x31a131,_0x46c87c,_0x2234dd,_0x235ce1){return _0x911598(_0x31a131,_0x46c87c-0x1d4,_0x46c87c- -0x22,_0x235ce1-0xa6);}const _0x1a8e32=_0x535e19[_0x39d35c(-_0x5e9a68._0x52b291,-_0x5e9a68._0x408e66,-_0x5e9a68._0x1e949c,-0x17b)](getActiveApiKeyAccount,_0x56d8fc);if(_0x1a8e32){const _0x19f8b7={};return _0x19f8b7[_0x39d35c(-_0x5e9a68._0x4b326c,-_0x5e9a68._0x1ca19d,-_0x5e9a68._0x3d6bd1,-_0x5e9a68._0x369bb5)]=_0x1a8e32,_0x19f8b7[_0x39d35c(-_0x5e9a68._0x2c22dc,-_0x5e9a68._0xffd9ca,-_0x5e9a68._0x2f3cb0,-0xff)]=_0x535e19['kJjZc'],_0x19f8b7;}const _0x4e552c=_0x535e19['QjIOg'](getAnyApiKeyAccount,_0x56d8fc);if(_0x4e552c){const _0x31262c={};return _0x31262c['account']=_0x4e552c,_0x31262c['source']=_0x535e19['Etrsn'],_0x31262c;}const _0x46a2be={};return _0x46a2be[_0x39d35c(-_0x5e9a68._0xec14c5,-0x1a4,-0x1ff,-_0x5e9a68._0x3c25e2)]=null,_0x46a2be[_0x39d35c(-_0x5e9a68._0x1691f1,-_0x5e9a68._0x88e90a,-0xa1,-_0x5e9a68._0x5ba3e1)]=_0x535e19['DGOxR'],_0x46a2be;}export async function getApiKey(_0x3fad9c,_0x29b1bd,_0x251add={}){const _0x396cca={_0x1cb52a:0x4da,_0x25774f:0x30,_0x1b5d53:0x132},_0x3dd9a2={'WXTKl':function(_0x362f33,_0x3bf5e9,_0x80718b){return _0x362f33(_0x3bf5e9,_0x80718b);},'wEXDL':function(_0x4d19a2,_0x450636){return _0x4d19a2(_0x450636);}},{forTask:forTask=![]}=_0x251add;function _0x2a220c(_0x13676f,_0x1f22bf,_0x230bff,_0x2f2f32){return _0x3601d8(_0x13676f-0x167,_0x1f22bf-0x39,_0x230bff- -0x87,_0x2f2f32);}const _0x4f7c4e={};_0x4f7c4e[_0x2a220c(0x54b,0x4a9,_0x396cca._0x1cb52a,0x4f9)]=forTask;const {account:_0x3f8aa9}=_0x3dd9a2[_0x5eae45(-0x50,-0x2a,-0x86,-_0x396cca._0x25774f)](resolveApiKeyAccount,_0x29b1bd,_0x4f7c4e);function _0x5eae45(_0x7235dd,_0x38b719,_0xbde411,_0x537d94){return _0x911598(_0x38b719,_0x38b719-0x74,_0xbde411- -0xe6,_0x537d94-0xad);}return _0x3dd9a2[_0x5eae45(-0x175,-0x18e,-0x119,-_0x396cca._0x1b5d53)](getApiKeyValueFromAccount,_0x3f8aa9);}export async function getApiKeyForTask(_0x128b32,_0x55472d){const _0x5f0b81={_0x3a9a9c:0x4,_0x2bd48d:0x26,_0xe71e2d:0x7},_0x614ed4={_0x2d7602:0x55,_0xe7cbd1:0x38},_0x37e5be={'GzcJd':function(_0x3bacf1,_0x36800e,_0x27dbe7){return _0x3bacf1(_0x36800e,_0x27dbe7);}};void _0x128b32;function _0x3b36b2(_0x23b415,_0x11e739,_0x1d9d38,_0x3d7c17){return _0x911598(_0x3d7c17,_0x11e739-_0x614ed4._0x2d7602,_0x11e739- -_0x614ed4._0xe7cbd1,_0x3d7c17-0x138);}const _0x1c3f71={};_0x1c3f71['forTask']=!![];const {account:_0x304e0f}=_0x37e5be[_0x3b36b2(_0x5f0b81._0x3a9a9c,_0x5f0b81._0x2bd48d,-_0x5f0b81._0xe71e2d,0x5a)](resolveApiKeyAccount,_0x55472d,_0x1c3f71);return getApiKeyValueFromAccount(_0x304e0f);}export async function getApiKeyForAuxiliary(_0x17cda0,_0x3c3df3){const _0x57cceb={_0x4ab936:0x5,_0xf8d22:0x42,_0x5bb757:0x3a6,_0x2f982c:0x38d,_0x31d6f8:0x33f,_0x166ed3:0x79,_0x55bbcc:0xfa,_0x32aa4:0x88,_0x1c6be5:0x325,_0x5717b6:0x39b,_0x5d260f:0x381,_0x35c38f:0x35d,_0x242858:0x12,_0x3cf333:0x5b,_0x3591c7:0x48},_0x18b45e={_0x997398:0xfc,_0x499001:0x383},_0x3ce6e0={'xZSOL':function(_0x255f81,_0x300e0e){return _0x255f81||_0x300e0e;},'uxrwp':function(_0x3d1fb1,_0x22c7ef,_0x3aca50){return _0x3d1fb1(_0x22c7ef,_0x3aca50);},'svlAJ':function(_0x4cdae1,_0x314d14){return _0x4cdae1(_0x314d14);},'Vjriu':'fgpmr','wCdWO':_0x5816fc(-0x62,-0x29,_0x57cceb._0x4ab936,0x42)};void _0x17cda0;const _0x3dd18f={};_0x3dd18f[_0x5816fc(0x3,0x62,0x3c,0x9d)]=![];const {account:_0x16663a,source:_0x1bd975}=_0x3ce6e0[_0x5816fc(-_0x57cceb._0xf8d22,-0x24,-0x46,0x1e)](resolveApiKeyAccount,_0x3c3df3,_0x3dd18f),_0x175e97=_0x3ce6e0[_0x557bb3(_0x57cceb._0x5bb757,0x3ab,0x3c1,0x3c6)](getApiKeyValueFromAccount,_0x16663a);function _0x557bb3(_0x5c0290,_0x5ab3cc,_0x9beefc,_0x112b72){return _0x911598(_0x5ab3cc,_0x5ab3cc-_0x18b45e._0x997398,_0x9beefc-_0x18b45e._0x499001,_0x112b72-0x14);}function _0x5816fc(_0x2e852e,_0x53b784,_0x39d77b,_0x283c03){return _0x3601d8(_0x2e852e-0x6d,_0x53b784-0x1d9,_0x53b784- -0x4ff,_0x2e852e);}if(_0x175e97&&_0x16663a){if(_0x3ce6e0['Vjriu']!==_0x3ce6e0['wCdWO']){const _0x49acfb={};_0x49acfb[_0x557bb3(0x392,0x3ae,_0x57cceb._0x2f982c,0x359)]=_0x3c3df3,_0x49acfb['accountId']=_0x16663a['id'],_0x49acfb['source']=_0x1bd975,logger[_0x557bb3(0x383,0x3f6,0x38f,0x38a)](_0x557bb3(0x40c,_0x57cceb._0x31d6f8,0x396,0x349)+_0x5816fc(-0xe6,-_0x57cceb._0x166ed3,-_0x57cceb._0x55bbcc,-_0x57cceb._0x32aa4)+_0x557bb3(0x32c,_0x57cceb._0x1c6be5,_0x57cceb._0x5717b6,_0x57cceb._0x5d260f)+'uxiliary\x20o'+_0x557bb3(0x2ef,0x3d1,0x364,_0x57cceb._0x35c38f),_0x49acfb);}else{if(typeof _0x44def1!==_0x5816fc(0x87,_0x57cceb._0x242858,0xf,0x58))return null;const _0x2e25b8=_0x5009f5['trim']();return _0x3ce6e0[_0x5816fc(-0xdd,-_0x57cceb._0x3cf333,-_0x57cceb._0x3591c7,-0x4b)](_0x2e25b8,null);}}return _0x175e97;}function _0x3601d8(_0x9268c3,_0x1bb077,_0x4330ad,_0x5f43d7){return _0x3a65(_0x4330ad-0x3e8,_0x5f43d7);}export async function getAgentEndpointConfig(_0x5b9447,_0x466103,_0x124575={}){const _0x3379db={_0x25845b:0x294,_0x3bad99:0x257,_0x49e6ec:0x29e},_0x1d724e={_0x6b6d82:0x14d,_0x4a2036:0x2b},_0x2ac452={'unvkk':function(_0x491907,_0xc1ca70,_0x46c3a0){return _0x491907(_0xc1ca70,_0x46c3a0);},'gtNds':function(_0x369c5a,_0x145344,_0x1803eb){return _0x369c5a(_0x145344,_0x1803eb);}};void _0x5b9447;const {forTask:forTask=!![]}=_0x124575,_0x185d2e={};_0x185d2e['forTask']=forTask;function _0x59f9e2(_0x18d3b5,_0x319714,_0x159261,_0x377c8d){return _0x911598(_0x18d3b5,_0x319714-_0x1d724e._0x6b6d82,_0x159261- -0x25f,_0x377c8d-_0x1d724e._0x4a2036);}const {account:_0x108019}=_0x2ac452['unvkk'](resolveApiKeyAccount,_0x466103,_0x185d2e);return _0x2ac452[_0x59f9e2(-_0x3379db._0x25845b,-_0x3379db._0x3bad99,-0x242,-_0x3379db._0x49e6ec)](normalizeEndpointConfig,_0x466103,_0x108019?.['endpoint']);}function _0x911598(_0x5a8038,_0x28b9e3,_0x919d98,_0x41965b){return _0x3a65(_0x919d98- -0x134,_0x5a8038);}export async function getModel(_0x322115,_0x40440a,_0xa57b21={}){const _0x6da227={_0x2c44d0:0x13a,_0x5e2ae7:0x175,_0x1b3a0f:0x11,_0x227e03:0x4b,_0x44c18b:0x51,_0x422514:0x69,_0x2c6de5:0x51,_0x114b44:0x22,_0x5420f4:0x43,_0x3ae5ef:0xe0,_0xa62825:0x155,_0xb59518:0x14b,_0x4fb760:0x143,_0x160dda:0xef,_0x23d83e:0x26,_0x38f82d:0x2d,_0x543152:0x40,_0x2da7b0:0x10d,_0x467d17:0x1bb,_0x46b0d9:0x8c,_0x255c88:0x85,_0x4cd670:0x1a,_0x16616a:0x1b6,_0x3e34b9:0x1d0,_0x329067:0x127,_0x1a59f5:0x1b1,_0x44d6f7:0x3f,_0x14c191:0x15,_0x152a07:0x67,_0x4d5f3f:0x50,_0x327bf6:0x115,_0x1fd8c8:0x58,_0x3c21f4:0x23,_0xa4e47c:0x13,_0x2206c5:0x45,_0x19a2e2:0x4,_0x497e07:0x36,_0x35dd75:0x2b,_0x4169af:0x9,_0x45978b:0x191,_0x30c18f:0x1db,_0x31e2ad:0x1c1,_0x2645fe:0x22e,_0x3352f9:0x1f6,_0x215f26:0x6b,_0x31e2a0:0xd,_0x4bf5e7:0x3b,_0x2c5379:0x0,_0x531c88:0x2a,_0x5a9140:0x1a8},_0x1ba945={_0x495313:0x185,_0x2e7a36:0x2d},_0xc325d={_0x50ba27:0x16b,_0x5ed3ae:0x3a,_0x5a0005:0xa8},_0x23ad71={'zIqVv':function(_0x169bb8){return _0x169bb8();},'nCfPr':function(_0x5b2604,_0x5f111e){return _0x5b2604&&_0x5f111e;},'ZyDgn':function(_0x3bb665,_0x4a5e8f,_0x14896a){return _0x3bb665(_0x4a5e8f,_0x14896a);},'rGRRu':function(_0x2f9d3f,_0x132095){return _0x2f9d3f===_0x132095;},'FNOpy':'EyJYK','JFICJ':_0x59b610(-_0x6da227._0x2c44d0,-0x151,-0x1b9,-_0x6da227._0x5e2ae7),'BwLte':function(_0x18fa27,_0x4e5567){return _0x18fa27+_0x4e5567;},'vuiFE':function(_0x36a3dd,_0x62d0fa){return _0x36a3dd(_0x62d0fa);}};void _0x322115;const {validate:validate=!![]}=_0xa57b21;function _0x1fd901(_0x1eddc2,_0x3e79d9,_0x541b54,_0x55253a){return _0x911598(_0x1eddc2,_0x3e79d9-_0xc325d._0x50ba27,_0x541b54-_0xc325d._0x5ed3ae,_0x55253a-_0xc325d._0x5a0005);}const _0x241c9f=await _0x23ad71[_0x1fd901(-_0x6da227._0x1b3a0f,_0x6da227._0x227e03,0x71,_0x6da227._0x44c18b)](loadAgentModels);function _0x59b610(_0x28307c,_0x3711b4,_0x44f6fc,_0x1452ed){return _0x3601d8(_0x28307c-_0x1ba945._0x495313,_0x3711b4-_0x1ba945._0x2e7a36,_0x1452ed- -0x67d,_0x3711b4);}const _0x14c96c=_0x241c9f?.[_0x40440a],_0x1d5309=_0x14c96c?.[_0x1fd901(_0x6da227._0x422514,0x91,_0x6da227._0x2c6de5,-_0x6da227._0x114b44)]||null;if(_0x23ad71['nCfPr'](_0x1d5309,validate)){const _0x24453c=_0x23ad71[_0x1fd901(_0x6da227._0x5420f4,0x6a,0x6f,_0x6da227._0x3ae5ef)](validateModel,_0x1d5309,_0x40440a);if(!_0x24453c['valid']){if(_0x23ad71[_0x59b610(-_0x6da227._0xa62825,-_0x6da227._0xb59518,-0x12d,-_0x6da227._0x4fb760)](_0x23ad71[_0x59b610(-0xce,-0x121,-_0x6da227._0x160dda,-0x13f)],_0x1fd901(_0x6da227._0x23d83e,0xf,_0x6da227._0x38f82d,-_0x6da227._0x543152))){if(!_0x2d321e[_0x59b610(-0xd1,-0xf6,-0x135,-_0x6da227._0x2da7b0)](_0x427219))return null;const _0x5a0591={};return _0x5a0591[_0x59b610(-0x199,-0x14f,-0x200,-_0x6da227._0x467d17)+'n']=null,{'mode':_0x1fd901(-_0x6da227._0x46b0d9,-_0x6da227._0x255c88,-_0x6da227._0x4cd670,-0x6c),'base_url':null,..._0xa34d44(_0x1ae54f)?_0x5a0591:{}};}else _0x24453c[_0x59b610(-_0x6da227._0x16616a,-_0x6da227._0x3e34b9,-0x1a9,-0x1ae)]?logger[_0x59b610(-_0x6da227._0x329067,-0x15d,-_0x6da227._0x1a59f5,-0x18f)](_0x1fd901(-_0x6da227._0x44d6f7,-0x74,-_0x6da227._0x14c191,-_0x6da227._0x152a07)+'del\x20\x22'+_0x1d5309+_0x1fd901(0x1d,0x17,0x8,-0x36)+_0x40440a+(_0x1fd901(0x46,_0x6da227._0x4d5f3f,-0x6,-0x25)+_0x59b610(-0x116,-0xee,-_0x6da227._0x327bf6,-0x16a))+_0x24453c[_0x1fd901(-0x12,-_0x6da227._0x1fd8c8,-0x13,0x2e)]+'\x22?',{'agent':_0x40440a,'configuredModel':_0x1d5309,'suggestion':_0x24453c[_0x1fd901(0x4f,_0x6da227._0x3c21f4,-_0x6da227._0xa4e47c,-_0x6da227._0x2206c5)],'validModels':getValidModels(_0x40440a)[_0x1fd901(_0x6da227._0x19a2e2,0x22,_0x6da227._0x497e07,0x23)](0x35*-0x76+0x12f1+-0x57d*-0x1,0x6d*0x44+0xa*-0x1a1+-0xca5)['join'](',\x20')+_0x23ad71[_0x1fd901(0x9,-_0x6da227._0x35dd75,-0x19,0x17)]}):logger[_0x1fd901(-0x1d,_0x6da227._0x4169af,0xc,-0x63)]('Unknown\x20mo'+_0x59b610(-0x1fe,-_0x6da227._0x45978b,-_0x6da227._0x30c18f,-0x17e)+_0x1d5309+'\x22\x20for\x20'+_0x40440a+(_0x59b610(-0x141,-_0x6da227._0x31e2ad,-0x22d,-0x1ab)+'\x20cause\x20err'+'ors.'),{'agent':_0x40440a,'configuredModel':_0x1d5309,'validModels':_0x23ad71[_0x59b610(-0x218,-0x229,-_0x6da227._0x2645fe,-_0x6da227._0x3352f9)](_0x23ad71[_0x1fd901(_0x6da227._0x215f26,-0x55,-0x2,_0x6da227._0x31e2a0)](getValidModels,_0x40440a)[_0x1fd901(0x76,-_0x6da227._0x4bf5e7,_0x6da227._0x497e07,0x1d)](-0x4*-0x6fc+0x1e5c+0x215*-0x1c,-0x2037+-0x805+-0x479*-0x9)[_0x1fd901(_0x6da227._0x2c5379,0xa7,_0x6da227._0x531c88,-0x3d)](',\x20'),_0x59b610(-0x1f3,-0x1db,-_0x6da227._0x5a9140,-0x175))});}}return _0x1d5309;}export async function getApiKeyEnvVars(_0x43d685,_0x48e985={}){const _0x23b87c={_0x418b90:0x1a7,_0x4f832e:0x20c,_0x2448c5:0x288,_0xd80b2a:0x20c,_0x27bdd3:0x1f5,_0x4a99b3:0x22e,_0x36e277:0x401,_0x3fa24d:0x48e,_0x3d7ac8:0x17f,_0x1d5045:0x164,_0x341b6c:0x1c5,_0xadb0cb:0x448,_0x259f9a:0x424,_0x39143c:0x21f,_0xcff2ac:0x155,_0x3bed93:0x17e,_0x1f9385:0xff,_0x1c1457:0x1ff,_0x4f4d09:0x4da,_0x2df12d:0x4e4},_0x460f53={_0x50ed36:0x19c},_0x52bfd6={'gDUXX':function(_0x171fa0,_0x5b71de,_0x325f69){return _0x171fa0(_0x5b71de,_0x325f69);},'JRVFT':_0x51d269(-_0x23b87c._0x418b90,-0x16e,-0x1d6,-_0x23b87c._0x4f832e),'CSiLO':function(_0x217dad,_0x1a992c){return _0x217dad===_0x1a992c;},'AoKsQ':_0x51d269(-0x233,-_0x23b87c._0x2448c5,-0x25e,-0x1e4),'aNaer':'racZc','bowje':'codex','zoQhl':function(_0x265dd2,_0x38aca1,_0x41e55f){return _0x265dd2(_0x38aca1,_0x41e55f);},'XGhFe':'gemini','ZWlPn':function(_0x2bea0,_0x5b0baf){return _0x2bea0!==_0x5b0baf;},'eGzuH':'DYPsy','vtsxR':_0x23803b(0x480,0x4ff,0x498,0x508)},{forTask:forTask=!![]}=_0x48e985;function _0x51d269(_0x1f8bff,_0x2833ea,_0x145b47,_0x5f44ed){return _0x911598(_0x2833ea,_0x2833ea-_0x460f53._0x50ed36,_0x1f8bff- -0x19f,_0x5f44ed-0x71);}const _0x69f172={},_0x154b87=forTask?getApiKeyForTask:getApiKeyForAuxiliary,_0x206b3d=await _0x52bfd6[_0x51d269(-0x1ef,-0x18a,-_0x23b87c._0xd80b2a,-_0x23b87c._0x27bdd3)](_0x154b87,_0x43d685,_0x52bfd6[_0x51d269(-0x227,-0x1d4,-0x1fb,-_0x23b87c._0x4a99b3)]);function _0x23803b(_0x1385e3,_0x30d416,_0x485e4e,_0x4b9312){return _0x911598(_0x4b9312,_0x30d416-0x1b2,_0x485e4e-0x49a,_0x4b9312-0xb);}if(_0x206b3d){if(_0x52bfd6[_0x23803b(0x475,0x46e,0x413,_0x23b87c._0x36e277)](_0x52bfd6['AoKsQ'],_0x52bfd6[_0x23803b(0x4c2,0x482,_0x23b87c._0x3fa24d,0x475)]))return _0x858919(_0x20be18?.[_0x51d269(-_0x23b87c._0x3d7ac8,-_0x23b87c._0x1d5045,-0x1b1,-_0x23b87c._0x341b6c)]||_0x32d96a?.[_0x23803b(0x480,0x3c6,_0x23b87c._0xadb0cb,_0x23b87c._0x259f9a)]||null);else _0x69f172['ANTHROPIC_'+_0x51d269(-_0x23b87c._0x39143c,-0x1ce,-0x1e5,-0x1f1)]=_0x206b3d;}const _0x242404=await _0x154b87(_0x43d685,_0x52bfd6['bowje']);_0x242404&&(_0x69f172['OPENAI_API'+_0x51d269(-_0x23b87c._0xcff2ac,-_0x23b87c._0x3bed93,-0x15f,-_0x23b87c._0x1f9385)]=_0x242404);const _0x5dce91=await _0x52bfd6[_0x51d269(-_0x23b87c._0x1c1457,-0x1d6,-0x19c,-0x1d4)](_0x154b87,_0x43d685,_0x52bfd6['XGhFe']);return _0x5dce91&&(_0x52bfd6[_0x23803b(0x487,0x444,0x4ae,0x527)](_0x52bfd6['eGzuH'],_0x52bfd6['vtsxR'])?(_0x69f172['GEMINI_API'+_0x23803b(_0x23b87c._0x4f4d09,0x4e7,_0x23b87c._0x2df12d,0x546)]=_0x5dce91,_0x69f172['GOOGLE_API'+'_KEY']=_0x5dce91):_0x4f0cdc['GEMINI_MOD'+'EL']=_0x1e7116),_0x69f172;}export async function getEndpointEnvVars(_0x52d8d6,_0xc4e44c=null,_0x147bf9={}){const _0x82c782={_0x2b3100:0x57,_0x495658:0x74,_0x302299:0xed,_0x48e1da:0x99,_0x1da85d:0x7a,_0x2cba4e:0xe4,_0x219ce0:0x70,_0x4c7d99:0x31,_0x57b4e1:0x4f,_0x447308:0x3e,_0x532bbc:0x88,_0xb02038:0x8f,_0x546bc8:0x8d,_0x252f31:0x88,_0x1fafa7:0xaa,_0x56e7fa:0x86,_0x2a0966:0x1e,_0x1f21a1:0x16,_0xa2946e:0x6,_0x34ffc9:0x4e,_0x5963bd:0x8,_0x136550:0x50,_0x1d206f:0x4,_0x30a9d4:0x91,_0x667ee8:0x38,_0xeac182:0xc6,_0x4e3491:0x4a,_0xce341f:0xc,_0x2b615d:0xe7,_0x243293:0x20,_0x22c6e9:0x28,_0x324f65:0x7e,_0x34d3d8:0x2c,_0x86c9c1:0x34,_0x5e89d7:0x47,_0x1a1ad8:0x21,_0x3d9f8c:0x44,_0x22cb83:0x12,_0x2f8b00:0x165,_0x3e2959:0x60,_0x29554c:0xc5,_0x44adf0:0xe6,_0x2081e0:0x53,_0x3ab728:0x133,_0x413c29:0x30,_0xab030:0x7b,_0x3d03c9:0x58,_0x1abbbb:0x78,_0x42ba36:0x119,_0x54d3f2:0xbf,_0x18ee05:0x7e,_0x477aa5:0x105,_0x3b4c74:0x10,_0x14b37b:0x42,_0x5e58cc:0xb1,_0xc0bd8c:0x5d,_0x461eb2:0x34,_0x22cea6:0x4d,_0x461255:0x101,_0x7b159d:0xc5,_0xc5e3ff:0x23,_0x153d30:0x36,_0x36d4ff:0x13,_0xef9303:0x10,_0x398e17:0x61,_0x4ea579:0xb,_0x4ac207:0xe,_0x17a833:0x2f,_0x401103:0x4c,_0x27d58a:0x6d,_0x1aca44:0x1c,_0x40eabe:0xfe,_0x28fb44:0x19,_0x30c729:0x6a,_0x4880d9:0x5f,_0x36529e:0x80,_0x515df6:0x72,_0x2e6fd2:0x1d,_0x421320:0x5e,_0x3797f4:0xb5,_0x579ee7:0x34,_0x7c9528:0x6e,_0x5853f1:0x45,_0x378c5e:0x48,_0x253fe8:0x81,_0x4d1e45:0x3,_0x3f749d:0x29,_0x1d65b0:0xa3,_0x511b5c:0xad,_0x24538c:0x67,_0x122ddf:0x36,_0x276825:0x4b,_0x122437:0x32,_0x4c4850:0x6c,_0x60499:0xda,_0x592f05:0x10c,_0x197b59:0xb7,_0x22fdc7:0xa8,_0x34cded:0xd7,_0x74b64f:0xd2,_0x3ccd37:0x3f,_0x390a34:0xd,_0x11c90e:0x3a,_0x52d146:0x76,_0xd727fe:0xb0,_0x439c0d:0x67,_0x3c3fb0:0x2c,_0x1c6015:0xb3,_0xc37105:0x81,_0x221a5b:0x106,_0x46453d:0x94,_0x1a479d:0xa1,_0x3cc19e:0x1f,_0x95ebc1:0x2,_0x5b2606:0x23,_0x41bc45:0x1a,_0x67d5b4:0x8b,_0x43efc6:0x75,_0x220834:0x26,_0xebd85f:0x16,_0x167590:0x14,_0x3ff219:0xec,_0x318233:0xd8,_0x27d577:0xc6,_0xcaed74:0x12,_0x519cd4:0x47,_0x1b32b4:0x2e,_0x11975d:0x13,_0x1bfca2:0x5c,_0x397da9:0x42,_0x28a7d5:0x60,_0x285520:0xa9,_0x200861:0xae,_0x164dd4:0xc1,_0x309448:0x61,_0x5cd99b:0x77,_0x41cdbc:0x17},_0x18ab9b={_0x21d01f:0x1cc,_0x2d29ce:0x172};function _0x273ba1(_0x2d11d0,_0x7f0124,_0x4bc9d5,_0x1bd7e8){return _0x3601d8(_0x2d11d0-_0x18ab9b._0x21d01f,_0x7f0124-_0x18ab9b._0x2d29ce,_0x4bc9d5- -0x535,_0x2d11d0);}const _0x5c0871={'lEJqM':function(_0x502b6a,_0x56cd3d,_0x12f0a2){return _0x502b6a(_0x56cd3d,_0x12f0a2);},'hxlDC':function(_0x247f63,_0x360563){return _0x247f63(_0x360563);},'ZVkSA':function(_0x4fffc4,_0x368008){return _0x4fffc4===_0x368008;},'wdjqd':'claude','eoMPs':_0x41b28d(0xf7,_0x82c782._0x2b3100,_0x82c782._0x495658,0x89),'LNCml':function(_0x4d5956,_0x3bec14,_0x359490,_0x5dd5c2){return _0x4d5956(_0x3bec14,_0x359490,_0x5dd5c2);},'BCcsw':function(_0x204ac9,_0x447b0d){return _0x204ac9===_0x447b0d;},'yvLcE':function(_0x4743d6,_0x3517b2){return _0x4743d6!==_0x3517b2;},'CoPlu':_0x273ba1(-_0x82c782._0x302299,-_0x82c782._0x48e1da,-0x85,-0xe1),'wTGoe':function(_0x453d88,_0x5f498a,_0x302abe,_0xcbbd4){return _0x453d88(_0x5f498a,_0x302abe,_0xcbbd4);},'DUWis':_0x41b28d(0xa9,_0x82c782._0x1da85d,0xca,_0x82c782._0x2cba4e),'vBoPE':_0x41b28d(_0x82c782._0x219ce0,-_0x82c782._0x4c7d99,_0x82c782._0x57b4e1,0xc3),'fKWrR':'/v1','wYeIN':function(_0x2f0ef6,_0x528308,_0x3f4b4d,_0x40abc3){return _0x2f0ef6(_0x528308,_0x3f4b4d,_0x40abc3);},'MuukV':_0x41b28d(0x4e,_0x82c782._0x447308,0xb7,_0x82c782._0x532bbc),'sdCDv':'nQrQl','LSyFe':_0x273ba1(0x0,-_0x82c782._0xb02038,-0x4e,-_0x82c782._0x546bc8)},{forTask:forTask=!![]}=_0x147bf9,_0x40a338={},_0x4a4240=_0x5c0871[_0x273ba1(-_0x82c782._0x252f31,-0x76,-_0x82c782._0x1fafa7,-0x48)](typeof _0xc4e44c,_0x273ba1(-_0x82c782._0x56e7fa,-_0x82c782._0x2a0966,-0x24,-_0x82c782._0x1f21a1))?_0xc4e44c[_0x273ba1(-0xe1,-0x69,-0x75,-0x87)+'e']():null,_0x5aa8fa=new Set([_0x5c0871[_0x41b28d(-0x4c,0x4b,-_0x82c782._0xa2946e,-0x41)],_0x5c0871[_0x273ba1(-_0x82c782._0x34ffc9,-0x26,-0x7a,_0x82c782._0x5963bd)],_0x41b28d(0x130,_0x82c782._0x136550,0xb7,0x130)]),_0x9ff6df=_0x5aa8fa['has'](_0x4a4240)?_0x4a4240:null;function _0x41b28d(_0x4239ff,_0x174447,_0x4706aa,_0x3301f5){return _0x911598(_0x3301f5,_0x174447-0x1e3,_0x4706aa-0x92,_0x3301f5-0x10c);}if(!_0x9ff6df||_0x5c0871[_0x41b28d(_0x82c782._0x1d206f,-_0x82c782._0x2a0966,0x1,0x35)](_0x9ff6df,'claude')){const _0x23ad78={};_0x23ad78[_0x273ba1(0xf,_0x82c782._0x30a9d4,0x2c,-0x21)]=forTask;const _0xff66b1=await _0x5c0871['LNCml'](getAgentEndpointConfig,_0x52d8d6,_0x5c0871[_0x41b28d(-0x7b,-_0x82c782._0x667ee8,-0x6,-0x8a)],_0x23ad78),_0x5a4b42=forTask?await getApiKeyForTask(_0x52d8d6,_0x5c0871[_0x273ba1(-_0x82c782._0xeac182,-_0x82c782._0x4e3491,-0xb1,-0x77)]):await _0x5c0871[_0x41b28d(0x12,_0x82c782._0xce341f,0x47,0x68)](getApiKeyForAuxiliary,_0x52d8d6,_0x5c0871[_0x273ba1(-0x9b,-_0x82c782._0x2b615d,-0xb1,-0xec)]);if(_0x5c0871[_0x273ba1(-0x4f,_0x82c782._0x243293,_0x82c782._0x22c6e9,-0x54)](_0xff66b1?.[_0x41b28d(0x43,0x15,_0x82c782._0x30a9d4,_0x82c782._0x324f65)],_0x273ba1(-_0x82c782._0x34d3d8,-0x54,0x1f,0x29))&&_0xff66b1[_0x41b28d(_0x82c782._0x86c9c1,-0x1c,0x34,0x17)]&&_0x5a4b42){const _0x322b4b=_0xff66b1['base_url'][_0x41b28d(0x43,_0x82c782._0x5e89d7,_0x82c782._0xb02038,_0x82c782._0x1a1ad8)](/\/v1\/messages\/?$/,'');_0x40a338[_0x273ba1(0x87,-_0x82c782._0x3d9f8c,0x1a,_0x82c782._0x22cb83)+_0x41b28d(0x13b,_0x82c782._0x2f8b00,0xe1,0xea)]=_0x322b4b,_0x40a338[_0x41b28d(0x42,_0x82c782._0x3e2959,_0x82c782._0x29554c,_0x82c782._0x44adf0)+_0x273ba1(-0xe2,-0xe2,-0x9e,-0xf3)+_0x273ba1(-0x21,-0xb,0x10,-0x40)]=_0x322b4b,_0x40a338['ANTHROPIC_'+_0x273ba1(0x37,0x6a,_0x82c782._0x2081e0,0x38)+_0x273ba1(-0xd7,-_0x82c782._0x3ab728,-0xb0,-0xa1)]=_0x5a4b42,_0x40a338[_0x273ba1(-0x15,0x43,_0x82c782._0x413c29,_0x82c782._0xab030)+_0x41b28d(_0x82c782._0x3d03c9,_0x82c782._0x1abbbb,0xc6,_0x82c782._0x42ba36)+_0x273ba1(-_0x82c782._0x54d3f2,_0x82c782._0x413c29,-_0x82c782._0x3d9f8c,-_0x82c782._0x18ee05)]='1';}}if(!_0x9ff6df||_0x9ff6df==='codex'){if(_0x5c0871[_0x273ba1(-_0x82c782._0x477aa5,-0x5d,-0x82,-0x67)](_0x5c0871[_0x273ba1(0x61,_0x82c782._0x3b4c74,0x6,0x63)],_0x5c0871[_0x41b28d(0xaa,_0x82c782._0x14b37b,_0x82c782._0x5e58cc,_0x82c782._0xc0bd8c)])){const _0x47d98b=_0x3f8448[_0x41b28d(-0x3,0x98,_0x82c782._0x461eb2,0x75)]['replace'](/\/v1\/messages\/?$/,'');_0x10c694[_0x41b28d(_0x82c782._0x22cea6,_0x82c782._0x461255,_0x82c782._0x7b159d,0x141)+_0x273ba1(_0x82c782._0xc5e3ff,-_0x82c782._0x667ee8,_0x82c782._0x153d30,0x86)]=_0x47d98b,_0x329b11['ANTHROPIC_'+'FOUNDRY_BA'+_0x273ba1(_0x82c782._0x36d4ff,0x40,_0x82c782._0xef9303,_0x82c782._0x398e17)]=_0x47d98b,_0x3ed4e5[_0x273ba1(0x94,-_0x82c782._0x4ea579,0x1a,0x19)+_0x273ba1(_0x82c782._0x4ac207,_0x82c782._0x17a833,0x53,0x99)+_0x41b28d(-_0x82c782._0x401103,-_0x82c782._0x27d58a,-0x5,0x57)]=_0x4478cd,_0xc801c6[_0x273ba1(0x85,-_0x82c782._0x1aca44,0x30,0x2c)+'E_USE_FOUN'+'DRY']='1';}else{const _0x1ff18d={};_0x1ff18d['forTask']=forTask;const _0x402a82=await _0x5c0871['wTGoe'](getAgentEndpointConfig,_0x52d8d6,_0x5c0871[_0x273ba1(-0x9d,-_0x82c782._0x40eabe,-_0x82c782._0x1da85d,-0x88)],_0x1ff18d),_0x2a2e4e=forTask?await getApiKeyForTask(_0x52d8d6,_0x5c0871[_0x41b28d(-0x2c,0x88,0x31,0x64)]):await _0x5c0871['lEJqM'](getApiKeyForAuxiliary,_0x52d8d6,_0x5c0871[_0x41b28d(_0x82c782._0x28fb44,0x32,_0x82c782._0x4c7d99,_0x82c782._0x30c729)]);if(_0x5c0871[_0x41b28d(0x51,-_0x82c782._0x4880d9,0x1,-_0x82c782._0x36529e)](_0x402a82?.[_0x273ba1(0x28,-_0x82c782._0x515df6,-0x1a,_0x82c782._0x2e6fd2)],_0x5c0871['DUWis'])&&_0x402a82[_0x41b28d(_0x82c782._0x421320,_0x82c782._0x3797f4,_0x82c782._0x579ee7,0x4)]&&_0x2a2e4e){let _0x28027e=_0x402a82[_0x41b28d(0x98,0x30,0x34,_0x82c782._0xce341f)][_0x273ba1(-_0x82c782._0x5963bd,0x3a,-0x1c,-_0x82c782._0x7c9528)](/\/responses\/?$/,'');_0x402a82[_0x41b28d(-_0x82c782._0x5853f1,-0x4,_0x82c782._0x667ee8,_0x82c782._0x378c5e)+'n']&&!_0x28027e[_0x273ba1(_0x82c782._0x253fe8,-_0x82c782._0x4d1e45,_0x82c782._0x3f749d,_0x82c782._0x1d65b0)](/\/v1\/?$/)&&(_0x41b28d(0x43,0xc8,_0x82c782._0x511b5c,_0x82c782._0x24538c)===_0x5c0871['vBoPE']?_0x45eca2['CLAUDE_MOD'+'EL']=_0xc71bfc:_0x28027e=_0x28027e['replace'](/\/+$/,'')+_0x5c0871[_0x273ba1(_0x82c782._0x122ddf,-_0x82c782._0x276825,-_0x82c782._0x122437,-0x41)]),_0x40a338[_0x41b28d(_0x82c782._0x4c4850,0x10,0x8b,_0x82c782._0x60499)+_0x273ba1(-0x4a,-0x27,-0x31,0x50)]=_0x28027e;}}}if(!_0x9ff6df||_0x9ff6df===_0x41b28d(_0x82c782._0x592f05,0x7f,_0x82c782._0x197b59,_0x82c782._0x86c9c1)){const _0x53519e={};_0x53519e[_0x41b28d(_0x82c782._0x22fdc7,0x86,_0x82c782._0x34cded,_0x82c782._0x74b64f)]=forTask;const _0x5b5db1=await _0x5c0871[_0x41b28d(0x29,0x22,_0x82c782._0x30c729,_0x82c782._0x4c4850)](getAgentEndpointConfig,_0x52d8d6,_0x273ba1(-_0x82c782._0x3ccd37,0x9,0xc,0x84),_0x53519e),_0x10b987=forTask?await _0x5c0871[_0x273ba1(_0x82c782._0x390a34,_0x82c782._0x3b4c74,-0x64,0x16)](getApiKeyForTask,_0x52d8d6,_0x5c0871[_0x273ba1(0x5f,_0x82c782._0x11c90e,_0x82c782._0x34ffc9,_0x82c782._0x52d146)]):await _0x5c0871[_0x41b28d(_0x82c782._0xd727fe,0x56,0x47,-_0x82c782._0x4ea579)](getApiKeyForAuxiliary,_0x52d8d6,_0x5c0871['MuukV']);if(_0x5b5db1?.['mode']===_0x5c0871[_0x273ba1(-0x2b,-_0x82c782._0x439c0d,-_0x82c782._0x4e3491,-0x16)]&&_0x5b5db1[_0x41b28d(_0x82c782._0x3c3fb0,0x2f,_0x82c782._0x579ee7,_0x82c782._0x1c6015)]&&_0x10b987){_0x40a338[_0x273ba1(0x6c,-0x71,-0x18,0x44)+'_BASE_URL']=_0x5b5db1[_0x41b28d(_0x82c782._0x36d4ff,-_0x82c782._0x86c9c1,_0x82c782._0x461eb2,_0x82c782._0xc37105)];if(_0x5b5db1[_0x273ba1(-0xc9,-0x9e,-0x73,-_0x82c782._0x3ccd37)+'n']){if(_0x5c0871[_0x273ba1(-0xdc,-_0x82c782._0x221a5b,-_0x82c782._0x46453d,-0xa9)]===_0x5c0871[_0x41b28d(0xac,0x7c,_0x82c782._0x1a479d,_0x82c782._0x3cc19e)]){const _0x5c627f=_0x45b8d0[_0x16c30c]||{},_0x5b2399=_0x5c627f[_0x273ba1(_0x82c782._0x2a0966,0x65,-0x2,-0x26)]||null,_0x1613c3={};_0x1613c3[_0x273ba1(-0x15,_0x82c782._0x95ebc1,_0x82c782._0x5b2606,0x52)]=!![];const _0xfdbfa6=_0x5b2399?_0x5c0871[_0x41b28d(0x71,-0x8,0x47,-0x2)](_0x3b45ea,_0x5b2399,_0x9e52e3):_0x1613c3,_0x437b3e=_0x2d3d44(_0x229302),_0x34185e=_0x5c0871[_0x273ba1(-0x91,-_0x82c782._0x41bc45,-_0x82c782._0x67d5b4,-_0x82c782._0x43efc6)](_0x3f2aa4,_0x57bae3),_0x167c4d=_0x5c0871[_0x41b28d(0x79,0xb,0x47,-_0x82c782._0x220834)](_0x27e3dc,_0x52e32e,_0x437b3e?.[_0x273ba1(-0x5c,-0x34,_0x82c782._0xebd85f,-_0x82c782._0x167590)]),_0x2a12f5={};_0x2a12f5[_0x41b28d(0x16e,0x126,_0x82c782._0x3ff219,_0x82c782._0x318233)]=!!_0x34185e,_0x2a12f5[_0x41b28d(0x68,0xb9,0xa2,_0x82c782._0x27d577)+_0x41b28d(_0x82c782._0xcaed74,-_0x82c782._0x519cd4,_0x82c782._0x1b32b4,_0x82c782._0x11975d)]=!!_0x437b3e,_0x2a12f5['activeApiK'+_0x41b28d(_0x82c782._0x1bfca2,-_0x82c782._0x397da9,0x1e,0x1e)+'d']=_0x437b3e?.['id']||null,_0x2a12f5[_0x41b28d(0x33,_0x82c782._0x28a7d5,_0x82c782._0x285520,0xa0)]=_0x5b2399,_0x2a12f5[_0x41b28d(0x75,_0x82c782._0x200861,_0x82c782._0x164dd4,0xa5)]=_0x167c4d,_0x2a12f5[_0x273ba1(-_0x82c782._0x309448,-_0x82c782._0x5cd99b,-0x54,-_0x82c782._0x41cdbc)]=_0xfdbfa6['valid'],_0x2a12f5['modelSugge'+_0x41b28d(-_0x82c782._0x579ee7,-0x2,0x3d,-0x1c)]=_0xfdbfa6['suggestion']||null,_0x22ab8e[_0x229d2c]=_0x2a12f5;}else _0x40a338['GEMINI_API'+'_VERSION']=_0x5b5db1['api_versio'+'n'];}}}return _0x40a338;}export async function getCodexReasoningLevel(_0x4c9f07){const _0x3aaa4b={_0x1dd914:0xbe,_0x5b8549:0xe5,_0x3ffe78:0x93},_0x42024f={_0x33cb7b:0x105},_0x17fa98={_0x3e2df8:0x154};function _0x56c83f(_0x417afa,_0x266d67,_0x71ac13,_0x33dab4){return _0x3601d8(_0x417afa-0x2d,_0x266d67-_0x17fa98._0x3e2df8,_0x417afa- -0x48b,_0x71ac13);}const _0x5d2e1f={'qQMgw':function(_0x386aa8){return _0x386aa8();}};function _0x99ef91(_0x49db79,_0x22409e,_0x3cf15d,_0x472c50){return _0x911598(_0x22409e,_0x22409e-0x12a,_0x472c50- -0x86,_0x472c50-_0x42024f._0x33cb7b);}void _0x4c9f07;const _0x11655d=await _0x5d2e1f['qQMgw'](loadAgentModels);return _0x11655d?.['codex']?.[_0x56c83f(0xe3,0xe5,0xbb,0xd2)+_0x56c83f(_0x3aaa4b._0x1dd914,_0x3aaa4b._0x5b8549,0x11a,_0x3aaa4b._0x3ffe78)]||null;}export async function getClaudeEffortLevel(_0x556148){const _0x4637fb={_0x20aafe:0x21d,_0xbeb920:0x216,_0x80a94:0x233,_0x133f36:0x226,_0x67ce94:0x25b,_0x3d401e:0x296,_0x34ddce:0x282,_0x30ba69:0x2b5},_0x3078d4={_0x309885:0x29e,_0x3da1c2:0xce},_0x601539={_0x321d9a:0x234},_0x2bfbf8={'CsPrc':function(_0x18b81d){return _0x18b81d();}};function _0x1b3f43(_0x11e19b,_0x5b7ff8,_0x550570,_0x4c4dfd){return _0x911598(_0x11e19b,_0x5b7ff8-0x181,_0x5b7ff8- -_0x601539._0x321d9a,_0x4c4dfd-0xe5);}void _0x556148;const _0x1a24bf=await _0x2bfbf8[_0x1b3f43(-_0x4637fb._0x20aafe,-0x26a,-0x221,-_0x4637fb._0xbeb920)](loadAgentModels);function _0x1971b7(_0x4f2d4b,_0x3e057c,_0x499cc4,_0x3b9f48){return _0x911598(_0x3e057c,_0x3e057c-0xd9,_0x3b9f48-_0x3078d4._0x309885,_0x3b9f48-_0x3078d4._0x3da1c2);}return _0x1a24bf?.[_0x1971b7(_0x4637fb._0x80a94,_0x4637fb._0x133f36,_0x4637fb._0x67ce94,_0x4637fb._0x3d401e)]?.[_0x1b3f43(-0x2e1,-_0x4637fb._0x34ddce,-_0x4637fb._0x30ba69,-0x274)+'el']||null;}export async function getModelEnvVars(_0x45c23f,_0x447fee=null){const _0x324327={_0x59646a:0x2c9,_0x16504b:0x253,_0x30b14d:0xfb,_0x2026c6:0xe3,_0x4d0983:0xa6,_0x104e90:0x2d7,_0x3b8eed:0x2ad,_0x5ba09f:0x2ac,_0x582aed:0x28e,_0x2d302b:0x258,_0x169848:0x1f1,_0x111f95:0x292,_0x339971:0x2d2,_0x33ae5f:0x24e,_0x20ed25:0x1be,_0xe8fb9a:0x24c,_0x20629a:0x1db,_0x180d2b:0x1b6,_0x3cc37f:0x206,_0x60a225:0x295,_0x1fb610:0x2ca,_0x2739b5:0x1e2,_0x224647:0x27a,_0x16f31c:0x245,_0x3acb59:0x2ea,_0x376b57:0x297,_0x587405:0x2df,_0x5bd3af:0x255,_0x1bcd7f:0x1d0,_0x1ff066:0x213,_0xd4b9f1:0x27e,_0x188c59:0x100,_0x22f63b:0x112,_0x9d7d6e:0xac,_0x1fa491:0x58,_0x4322ab:0xa4,_0x239343:0x269,_0xfe2eef:0x2ba,_0x46a479:0xc3,_0xef37e8:0xb9,_0x4b7eff:0x1df,_0x3eddff:0x205,_0x45ac10:0x20b,_0xc3e205:0x228,_0x2cdabd:0x1c9,_0x4c45b5:0x68,_0x50ed90:0x66,_0x1b1e88:0x54,_0x5067d2:0x146,_0x32bb92:0xc2,_0x306928:0x246,_0x728841:0x279,_0x2424e4:0x280,_0x18a0f0:0x21c,_0x27155c:0x79,_0x5bf53a:0xcb,_0x221442:0x103,_0x237deb:0x95,_0x3a8bae:0x236,_0x14c05d:0x86,_0x39b808:0xc4,_0x18b9e5:0xd0,_0x135e90:0x147,_0x42998a:0x118,_0x2dca38:0x111,_0x200f3b:0xc7,_0x3906b9:0x11,_0x4018cd:0xc0,_0x348f68:0x76,_0x42e372:0x72,_0x45d25c:0x28,_0x33120a:0x97,_0x5e7121:0x8b,_0x90275:0x153,_0x1ca805:0x13e,_0x2e4b44:0x100,_0x1e412b:0x224,_0x26d671:0x215,_0x2a0c8b:0x200,_0x12dca6:0x1bc,_0x3fff6f:0x9,_0xfdb1cc:0x3e,_0x50bbc7:0x3a,_0x42323c:0x41,_0x816d9f:0x264},_0x55a06e={_0x104633:0xdd,_0x2c6ba1:0x161,_0x2368c7:0x5ba},_0x3062e2={_0x452026:0x194,_0xad6b9d:0x2a6},_0x42524a={'qgrVw':function(_0x347919,_0x2f4f5){return _0x347919/_0x2f4f5;},'PiFcV':function(_0x1d3a19,_0x3b8236){return _0x1d3a19>_0x3b8236;},'sudRu':'earliest_c'+_0x374bf7(0x2bd,_0x324327._0x59646a,0x288,0x21e),'cDFtt':_0x374bf7(0x2ca,0x2b8,0x26b,_0x324327._0x16504b),'mzinx':_0x4b0ad2(-0xc0,-_0x324327._0x30b14d,-_0x324327._0x2026c6,-_0x324327._0x4d0983),'YPciQ':_0x374bf7(0x28e,_0x324327._0x104e90,0x29b,_0x324327._0x3b8eed),'jjUYG':function(_0xe318bf,_0x74280d,_0xb85a19){return _0xe318bf(_0x74280d,_0xb85a19);},'tcSDY':function(_0x26a21e,_0x4ea9bc){return _0x26a21e===_0x4ea9bc;},'Xojmr':_0x374bf7(_0x324327._0x5ba09f,_0x324327._0x582aed,_0x324327._0x2d302b,0x23d),'JtCYV':function(_0x3dfbe3,_0x38d641){return _0x3dfbe3!==_0x38d641;},'iFKzU':_0x374bf7(_0x324327._0x169848,_0x324327._0x111f95,0x21e,0x211),'FrtBu':function(_0x22af93,_0x4916d6,_0x4ab88b){return _0x22af93(_0x4916d6,_0x4ab88b);},'PmnmQ':function(_0x1c6ad5,_0x410845){return _0x1c6ad5===_0x410845;},'zowtz':function(_0x3f15dd,_0x16d2aa){return _0x3f15dd(_0x16d2aa);},'VnUFK':function(_0x522eb2,_0x11fc66){return _0x522eb2===_0x11fc66;},'ntkqV':_0x374bf7(0x300,0x275,_0x324327._0x339971,_0x324327._0x33ae5f)},_0x3beb46={},_0x441a3f=typeof _0x447fee===_0x42524a[_0x374bf7(_0x324327._0x20ed25,_0x324327._0xe8fb9a,0x205,_0x324327._0x20629a)]?_0x447fee['toLowerCas'+'e']():null,_0x5ea654=new Set([_0x42524a[_0x374bf7(0x238,_0x324327._0x180d2b,0x225,_0x324327._0x111f95)],'codex',_0x42524a[_0x374bf7(0x244,0x1cd,_0x324327._0x3cc37f,0x27c)]]),_0x1bdba0=_0x5ea654[_0x374bf7(_0x324327._0x60a225,0x2c3,_0x324327._0x1fb610,0x289)](_0x441a3f)?_0x441a3f:null;if(!_0x1bdba0||_0x1bdba0===_0x42524a[_0x374bf7(_0x324327._0x2739b5,_0x324327._0x224647,0x225,_0x324327._0x16f31c)]){const _0x43e91d=await _0x42524a[_0x374bf7(_0x324327._0x3acb59,_0x324327._0x376b57,_0x324327._0x587405,0x2f1)](getModel,_0x45c23f,_0x42524a[_0x374bf7(0x20a,0x1c2,0x225,_0x324327._0x5bd3af)]);_0x43e91d&&(_0x3beb46[_0x4b0ad2(-0x17b,-0xeb,-0xd5,-0xf7)+'EL']=_0x43e91d);}if(!_0x1bdba0||_0x42524a['tcSDY'](_0x1bdba0,_0x42524a[_0x374bf7(_0x324327._0x1bcd7f,_0x324327._0x1ff066,0x24f,_0x324327._0xd4b9f1)])){if(_0x42524a[_0x4b0ad2(-0xe8,-0x134,-0x143,-_0x324327._0x188c59)](_0x4b0ad2(-_0x324327._0x22f63b,-_0x324327._0x9d7d6e,-_0x324327._0x1fa491,-_0x324327._0x4322ab),_0x42524a['iFKzU'])){const _0x5c5886=await _0x42524a[_0x374bf7(_0x324327._0x239343,0x28d,_0x324327._0xfe2eef,0x2bf)](getModel,_0x45c23f,_0x42524a[_0x4b0ad2(-_0x324327._0x46a479,-0x9f,-_0x324327._0xef37e8,-0xc5)]);_0x5c5886&&(_0x3beb46['OPENAI_MOD'+'EL']=_0x5c5886);}else{const _0x193684=_0x97b36c[_0x374bf7(_0x324327._0x4b7eff,0x1cc,0x21a,0x1a9)+'e']();let _0x536900=null,_0x19b13a=0x573+-0xe*-0x69+0xb31*-0x1;for(const _0x887073 of _0x1b37a8){const _0x40bcf7=_0x887073['toLowerCas'+'e']();if(_0x40bcf7[_0x374bf7(0x1bf,_0x324327._0x3eddff,_0x324327._0x45ac10,_0x324327._0xc3e205)](_0x193684)||_0x193684[_0x374bf7(_0x324327._0x2cdabd,0x26b,0x20b,_0x324327._0x180d2b)](_0x40bcf7)){const _0xe1b70a=_0x42524a['qgrVw'](_0x419df2[_0x4b0ad2(-_0x324327._0x4c45b5,-0x9,-_0x324327._0x50ed90,-0x78)](_0x193684['length'],_0x40bcf7[_0x4b0ad2(-0x86,-_0x324327._0x1b1e88,-_0x324327._0x5067d2,-_0x324327._0x32bb92)]),_0x595d93[_0x374bf7(_0x324327._0x2739b5,0x1d1,_0x324327._0x306928,0x243)](_0x193684['length'],_0x40bcf7[_0x374bf7(_0x324327._0x728841,_0x324327._0x2424e4,0x252,_0x324327._0x18a0f0)]));_0xe1b70a>_0x19b13a&&_0x42524a[_0x4b0ad2(-_0x324327._0x27155c,-_0x324327._0x5bf53a,-_0x324327._0x221442,-_0x324327._0x237deb)](_0xe1b70a,-0x832+0x963+0x3d*-0x5+0.5)&&(_0x19b13a=_0xe1b70a,_0x536900=_0x887073);}}return _0x536900;}}function _0x374bf7(_0x2ccead,_0xb52935,_0x3b1125,_0x23bd34){return _0x3601d8(_0x2ccead-_0x3062e2._0x452026,_0xb52935-0x187,_0x3b1125- -_0x3062e2._0xad6b9d,_0xb52935);}if(!_0x1bdba0||_0x42524a['tcSDY'](_0x1bdba0,_0x42524a['YPciQ'])){const _0x9ccecd=await getModel(_0x45c23f,_0x42524a[_0x374bf7(_0x324327._0x3a8bae,0x1bc,_0x324327._0x3cc37f,0x215)]);_0x9ccecd&&(_0x3beb46[_0x4b0ad2(-0xaa,-_0x324327._0x14c05d,-0x50,-_0x324327._0x39b808)+'EL']=_0x9ccecd);}if(!_0x1bdba0||_0x42524a[_0x4b0ad2(-_0x324327._0x18b9e5,-0x95,-_0x324327._0x135e90,-_0x324327._0x42998a)](_0x1bdba0,_0x42524a[_0x4b0ad2(-0x12e,-0x61,-0x146,-0xc5)])){const _0x248f5a=await _0x42524a[_0x4b0ad2(-_0x324327._0x2dca38,-_0x324327._0x200f3b,-0xff,-0xe3)](getCodexReasoningLevel,_0x45c23f);_0x248f5a&&(_0x3beb46['CODEX_REAS'+_0x4b0ad2(-_0x324327._0x3906b9,-_0x324327._0x4018cd,-_0x324327._0x348f68,-_0x324327._0x42e372)+'L']=_0x248f5a);}if(!_0x1bdba0||_0x42524a[_0x4b0ad2(-_0x324327._0x45d25c,-0x41,-_0x324327._0x33120a,-0x77)](_0x1bdba0,_0x42524a['mzinx'])){if(_0x42524a[_0x4b0ad2(-_0x324327._0x5e7121,-_0x324327._0x90275,-_0x324327._0x1ca805,-_0x324327._0x2e4b44)](_0x42524a['ntkqV'],_0x42524a[_0x374bf7(_0x324327._0x1e412b,_0x324327._0x26d671,_0x324327._0x2a0c8b,0x1af)])){const _0x41db7c={};return _0x41db7c[_0x374bf7(0x298,0x271,0x23f,_0x324327._0x12dca6)]=_0x18c6ad,_0x41db7c['source']=_0x42524a['sudRu'],_0x41db7c;}else{const _0x4a5730=await getClaudeEffortLevel(_0x45c23f);_0x4a5730&&(_0x3beb46[_0x4b0ad2(-0xa4,_0x324327._0x3fff6f,-_0x324327._0xfdb1cc,-0x55)+_0x4b0ad2(-_0x324327._0x3fff6f,-0x6f,-_0x324327._0x50bbc7,-_0x324327._0x42323c)+_0x374bf7(0x2f8,_0x324327._0x816d9f,0x2e0,0x278)]=_0x4a5730);}}function _0x4b0ad2(_0x238df9,_0x28f049,_0x541e15,_0x3f22e4){return _0x3601d8(_0x238df9-_0x55a06e._0x104633,_0x28f049-_0x55a06e._0x2c6ba1,_0x3f22e4- -_0x55a06e._0x2368c7,_0x541e15);}return _0x3beb46;}export async function hasApiKeys(_0x11b42b){const _0x1262b4={_0x1f31d3:0x424,_0x3ba21e:0x470,_0x5d6060:0x3fe,_0x28e906:0x3e9,_0xa9831a:0x45c,_0x56ae3c:0x3e8,_0x1bb69f:0x38e,_0x4a7ad1:0x3f3,_0x5c4435:0x3a9,_0xb199fa:0x1c7,_0x3c341f:0x194,_0x6a9735:0x215,_0x567234:0x30d,_0x1b8e22:0x3d7,_0x396e04:0x157,_0x1415bc:0x1e1,_0xfc4c45:0x186},_0x494a8c={_0x575966:0x53};function _0x29915c(_0x5a10d1,_0x46869f,_0x245661,_0x2eefd4){return _0x3601d8(_0x5a10d1-0x124,_0x46869f-0x8b,_0x46869f- -0x61e,_0x2eefd4);}const _0x41138e={};_0x41138e['frEEM']=_0x343b76(0x3c6,_0x1262b4._0x1f31d3,_0x1262b4._0x3ba21e,_0x1262b4._0x5d6060);function _0x343b76(_0x8cfb1,_0x237cbb,_0x14f65e,_0x3949dd){return _0x911598(_0x14f65e,_0x237cbb-0x1ba,_0x3949dd-0x406,_0x3949dd-_0x494a8c._0x575966);}_0x41138e['tqdWv']=_0x343b76(_0x1262b4._0x28e906,_0x1262b4._0xa9831a,0x42d,_0x1262b4._0x56ae3c),_0x41138e[_0x343b76(_0x1262b4._0x1bb69f,_0x1262b4._0x4a7ad1,0x3aa,_0x1262b4._0x5c4435)]='gemini';const _0x699bbc=_0x41138e;return void _0x11b42b,[_0x699bbc[_0x29915c(-_0x1262b4._0xb199fa,-_0x1262b4._0x3c341f,-_0x1262b4._0x6a9735,-0x1f1)],_0x699bbc[_0x343b76(_0x1262b4._0x567234,_0x1262b4._0x1b8e22,0x379,0x376)],_0x699bbc[_0x29915c(-_0x1262b4._0x396e04,-0x15f,-_0x1262b4._0x1415bc,-_0x1262b4._0xfc4c45)]]['some'](_0x5422a2=>!!getAnyApiKeyAccount(_0x5422a2));}export async function isApiKeyEnabledForTask(_0x310431,_0x831a0a){const _0x2ff2fd={_0x24304d:0x143,_0x5f5251:0xb2},_0x565130={'taVTz':function(_0x3b16e2,_0x61afc5){return _0x3b16e2(_0x61afc5);}};function _0x1b7cd3(_0x16b97c,_0x461f2a,_0x53d086,_0x5048fa){return _0x911598(_0x461f2a,_0x461f2a-0xcf,_0x16b97c-0xcd,_0x5048fa-0xc9);}return void _0x310431,!!_0x565130[_0x1b7cd3(0xe3,_0x2ff2fd._0x24304d,_0x2ff2fd._0x5f5251,0x87)](getActiveApiKeyAccount,_0x831a0a);}export async function getAgentsStatus(_0x519097){const _0x38fa97={_0x466f1b:0x3cd,_0x587f09:0x3aa,_0x1923d1:0x36d,_0x43963d:0x455,_0x3fb152:0x3ed,_0x562f89:0x3e6,_0x302943:0x3f3,_0x206e64:0x358,_0x3555f8:0x35b,_0x2e00f1:0x52,_0x2752a4:0x2d,_0x8da56:0x2b,_0x5775b5:0x42d,_0x2c3f66:0x3ee,_0x3f6084:0x3d6,_0x31388d:0x11,_0x481b4b:0x17,_0x3af864:0x7b,_0x21d84c:0x8,_0x40c151:0x364,_0x1b99db:0x2f7,_0x37eed3:0x101,_0x2cfc95:0x3c,_0x349970:0x47b,_0xac27b:0x43f,_0x3b035b:0x3d5,_0xf67111:0x3ec,_0xecaa7a:0x3cb,_0xc32bf4:0x37b,_0x14588f:0x34a},_0x2bedb3={_0x41f395:0x122,_0x7a449e:0x534},_0x2d20a5={'PcQWC':_0x5d3caa(0x38c,_0x38fa97._0x466f1b,_0x38fa97._0x587f09,0x327),'cuNuX':_0x5d3caa(_0x38fa97._0x1923d1,_0x38fa97._0x43963d,_0x38fa97._0x3fb152,_0x38fa97._0x562f89),'ojPWS':function(_0x412156,_0x596a74){return _0x412156(_0x596a74);}};void _0x519097;const _0x3fe1db=await loadAgentModels();function _0x5d3caa(_0x196811,_0x5ba4e7,_0x282b0b,_0x2ef593){return _0x911598(_0x5ba4e7,_0x5ba4e7-0xa7,_0x282b0b-0x3c8,_0x2ef593-0xbb);}const _0x4a7744={};function _0x522d00(_0x450c9a,_0x1df5ba,_0x3bd917,_0x1f1f46){return _0x3601d8(_0x450c9a-_0x2bedb3._0x41f395,_0x1df5ba-0x111,_0x1f1f46- -_0x2bedb3._0x7a449e,_0x3bd917);}for(const _0xb4d28a of[_0x5d3caa(_0x38fa97._0x302943,0x3b4,0x3c0,_0x38fa97._0x206e64),_0x2d20a5[_0x5d3caa(0x372,0x320,_0x38fa97._0x3555f8,0x302)],_0x2d20a5[_0x522d00(-0x48,-_0x38fa97._0x2e00f1,_0x38fa97._0x2752a4,-_0x38fa97._0x8da56)]]){const _0x48fd9e=_0x3fe1db[_0xb4d28a]||{},_0x4a7d08=_0x48fd9e[_0x5d3caa(_0x38fa97._0x5775b5,0x3ba,0x3df,0x420)]||null,_0x14b452={};_0x14b452[_0x5d3caa(0x39f,_0x38fa97._0x2c3f66,0x404,_0x38fa97._0x3f6084)]=!![];const _0x4f7a9f=_0x4a7d08?validateModel(_0x4a7d08,_0xb4d28a):_0x14b452,_0x547ab2=_0x2d20a5['ojPWS'](getActiveApiKeyAccount,_0xb4d28a),_0x25f7d7=getAnyApiKeyAccount(_0xb4d28a),_0x18ec96=normalizeEndpointConfig(_0xb4d28a,_0x547ab2?.[_0x522d00(-0x27,-_0x38fa97._0x31388d,0x92,_0x38fa97._0x481b4b)]),_0x7db54e={};_0x7db54e['hasKey']=!!_0x25f7d7,_0x7db54e[_0x522d00(0x49,-0x72,-_0x38fa97._0x3af864,-_0x38fa97._0x21d84c)+_0x5d3caa(0x33f,0x2e3,_0x38fa97._0x40c151,_0x38fa97._0x1b99db)]=!!_0x547ab2,_0x7db54e['activeApiK'+_0x522d00(-_0x38fa97._0x37eed3,-0x4d,-_0x38fa97._0x2cfc95,-0x8c)+'d']=_0x547ab2?.['id']||null,_0x7db54e['model']=_0x4a7d08,_0x7db54e[_0x522d00(-0x18,0x2,0x47,_0x38fa97._0x481b4b)]=_0x18ec96,_0x7db54e['modelValid']=_0x4f7a9f[_0x5d3caa(0x473,_0x38fa97._0x349970,0x404,0x45a)],_0x7db54e[_0x5d3caa(_0x38fa97._0xac27b,_0x38fa97._0x3b035b,_0x38fa97._0xf67111,_0x38fa97._0xecaa7a)+'stion']=_0x4f7a9f[_0x5d3caa(0x379,0x37e,_0x38fa97._0xc32bf4,_0x38fa97._0x14588f)]||null,_0x4a7744[_0xb4d28a]=_0x7db54e;}return _0x4a7744;}function _0x2006(){const _0x3911bb=['Bw9KzwXtDwDNzq','z2vTAw5P','BwLU','vM5vrKS','BMv0ltqTnG','u0vFvvjm','zgv4lxnWyxjR','Avvsvuu','t05jtKDFtevwrq','Bgv2zwW','vvjJENi','zw5KCg9PBNq','CY00ltiWmJuWnq','mte4mJa2nNLWz2rVDa','wezSwNG','qu5usfjpueLdxW','rv9vu0vFrK9vtG','wNLez24','mJe1mtGYEuPKww9i','EKLXvNy','y3vZDg9T','z3b0ltrV','A2ndwgG','zxL2whe','DMfSAwq','vgH4y3e','C3zSquO','z2vTAw5PlteUnq','v2zxDKi','qKnJC3C','Bwf0y2G','BwzRvMC','rNj0qNu','zM9YvgfZAW','ndeWmJi','lxbYBY1SyxrLCW','y2XHDwrLltmTnq','q0Xbvurfx0npra','x0Tfwq','y2L3Ag0','qMTyANO','DvnVAhG','vujfv0e','qKftrv9vuKW','zgv4lw1PBMK','z2vTAw5PltiUma','CMvHC29UAw5NxW','z3b0ltqTDhvYyG','AgfZ','C291CMnL','nty1mtG4wKv0zKH1','yNbqvg4','Ahr0Chm6','y2XHDwrLlxnVBG','AgfZs2v5','rerfuM0','BePuEvC','rv9frKzpuLrFta','r3PJsMq','BM9Uzq','v1Hus2W','Ahr0CdO','y2XHDwrLltmTCW','reDpEfi','ChvZlwXHDgvZDa','ChvZltiWmJqWmG','mZzbsw9lyvy','txv1A1y','lwzSyxnOlxbYzq','AMPvwuC','rvzfta','tgHUtgS','rK9vtKrswv9bua','BZeTChjLDMLLDW','B3b1CW','D2rQCwq','sv9lrvK','ueKGA2v5igfJyW','qNDmDgu','BNjpvgW','z2vTAw5PltiUnq','zNjfru0','wLzRu0e','DhfKv3y','mZy1nJG4sM1LEKXf','zgv4','vNzyBKW','A0PQwMm','ywn0AxzL','qxblzMC','lwzSyxnO','sLjwrLq','q1nPte8','z3b0ltuUmY1JBW','rK9vtKrswv9cqq','wfPvwLK','CMf0suS','mJffrK50wha','Dxv2zMS','qvbjx0Tfwq','BY1WCMv2Awv3','z3D5sfm','q09ervHFuKvbuW','BK52EMy','C2rdrhy','ug1UBve','shrXufy','EfPtt0W','ChjV','BNrRCvy','zgv4lw1HEa','zxLby2nVDw50sq','BZmTBwLUAq','AhHSrem','y0rgDhq','wvbJAve','thLQuwG','lwzSyxnOlwXHDa','ugnrv0m','tvvkqNe','Aw5JBhvKzxm','zgLLr2G','Exzmy0u','nc0Xms0Yma','lxnVBM5LDc1Syq','s0XHAMu','uuLqs04','vgfZA3m','ywLRDs0Ymdi0ma','sNrdwvy','zw9nuhm','EM9rAgW','AM95BKO','yMfZzv91CMW','tevLEvm','Dg9mB3DLCKnHCW','nteWmde','yxbPx3zLCNnPBW','q0Xbvurfx01pra','vKLgBLe','z3b0ltrVltiWmG','zhzOshC','C3rPB24','zgvMyxvSDa','sKzjq0O','yxbPs2v5','BxPPBNG','z0rvwfG','sw52ywXPzcbTBW','zwzMB3j0x2XLDG','C3vNz2vZDgLVBG','z2vTAw5PltmTCa','BevkCu0','lIbuAgLZig1HEq','Dg9tDhjPBMC','mJqYota0ogDgzwnrCq','AuPurNe','qKXQA3i','EM93DhO','ndq4mZy2nwvhz1LKEq','zuLTCfC','BgfZAc1WCMv2Aq','DxHYD3a','lIbeAwqGEw91ia','CY00lty','tePkreC','ChjVDg9JB2W','DNvPrKu','Bw9KzwXwywXPza','CM8TChjLDMLLDW','Bu1xqMW','x1zfuLnjt04','ywnJB3vUDa','q3nqCMm','s1zTvLu','y2XHDwrLltmTBW','D0vyreW','iIbMB3iG','rfvxAxm','Bwf4','nc0Woc0WnG','D2fYBG','ve5zree','BY0Ymdi0lta0lq','rfjz','mZv3Afr6zgG','tMzJEva','D1LLsu4','wg9QBxi','r0vnsu5jx01pra','lxnVBM5LDc0Yma','BgvUz3rO','B25UzxqTmJaYna','v0LoCLe','mdiYoq','r09pr0Xfx0fqsq','CgvYyxrPB24','y29KzxG','zgvSici','mZyYmdq0meTyCLzwtG','ugfVzKu','y2XHDwrLlw9WDq','zKTxCLi','rv9vuKW','BhfNCe0','BZeTBwLUAq','tKHWB2y','lI4U','y3voDvG','zwfYBgLLC3rFyW','lxbYBY1WCMv2Aq','AM9PBG','lwzSyxnOlwv4Ca','A2nYrvy','wMP6CK0','yu5Hzxi','C3rYAw5N','z3b0ltrVlw1PBG','BwvHBIaI','y2XHDwrL','t1bftKfjx0jbuW','vLL0u2G','zufusw0','C2XPy2u','CMvWBgfJzq','wvD3qwC','Bw9Kzq','lwHHAwT1lwXHDa','r0vnsu5jx0fqsq','mJqXmdiY','C29UBMv0','zxn0','z3b0ltuUms1JBW','AeLvrwG','vhDcELi','DxbND1O','ugLgy1y','ChjVDMLKzxi','mduXna','Aw5MBW','lwHHAwT1ltiWmG','zMXHC2G','tfn5rMu','zw5HyMXLzezVCG','svHHDeS','CMvHDgvK','u2vSzwn0zwqGqq','wLDSug4','AgfPA3u','DgfwvhO','Bw9KzwW','B3vUDcbMB3iGyq','BMv0ltqTns0Yma','DhjPBq','uuzeAgK','y2XHDwrLltmTAa','z3rozhm','CKDsuNu','q29qBhu','yxbPx2TLEq','nc0Wns0XmW','rK5pChK','DMLLDY0Wns0Yma'];_0x2006=function(){return _0x3911bb;};return _0x2006();}export function clearCache(){clearAgentModelsCache();}
|