| |
| |
| |
| |
|
|
|
|
| (global => {
|
| 'use strict';
|
|
|
| const SECURITY_SALTS = Object.freeze({
|
| CRYPTO_VERSION: "5.0-EnterpriseFullE2E",
|
| HASH_KEY_SALT: "FritreeStorageKeyObfuscationSalt_2026_StrictSHA256_AEADMasterLock",
|
| DERIVATION_SALT: "FritreeMasterKeyDerivationEnterpriseSalt_2026_StrictSHA256",
|
| INTEGRITY_SEAL_SALT: "FritreeIntegritySealValidationSalt_SHA256_2026_EnterpriseSecureForce",
|
| STORAGE_SEAL_SALT: "FritreeStorageIntegritySealSalt_V5_AEAD_AES256",
|
| SUPPORT_SALT: "FritreeSupportHelpdeskSymmetricValidationMatrix_2026_StrictSecure",
|
| FB_HEALTH_SALT: "FritreeFacebookGroupRegistryHealthAuditSymmetricMatrix_2026_EnterpriseStrict",
|
| CHALLENGE_SALT: "FritreeChallengeBoardSecureAntiTamperingLockSalt_2026_StrictSymmetricMatrix",
|
| WA_TEMPLATES_SALT: "FritreeWhatsAppTemplateRegistrySymmetricValidationMatrix_2026",
|
| FB_SHIELD_SALT: "FritreeFacebookStealthShieldSymmetricSignatureSalt_SHA256_2026_EnterpriseSecureForce",
|
| PROGRESSION_SALT: "FritreeProgressionMetricsSecuritySignatureSalt_SHA256_2026_StrictSecureSystem",
|
| LEDGER_SALT: "FritreeLedgerVerificationSalt_2026_Enterprise_Production_Wallet_SHA256_UltraSeal",
|
| GATEWAYS_SALT: "FritreePaymentGatewaysSecureVerificationSignatureSalt_2026_StrictSymmetric",
|
| ROTATION_MATRIX_SALT: "FritreeRotationMatrixDynamicIntegrityVerificationSalt_2026",
|
| CONTACTS_VAULT_SALT: "FritreeEnterpriseContactsVaultSymmetricValidationMatrix_SHA256_2026_StrictSeal",
|
| CALENDAR_VAULT_SALT: "FritreeCalendarAgendaEngineSymmetricValidationMatrix_2026_StrictSecure",
|
| HISTORY_AUDIT_SALT: "FritreeCampaignLedgerAuditDynamicIntegritySeal_SHA256_2026_Enterprise",
|
| EXCHANGE_CALC_SALT: "FritreeExchangeCalculatorSecureSignatureSalt_2026_AEAD_Harden",
|
| PURCHASE_GATEWAY_SALT: "FritreeSecurePurchaseGatewaySymmetricVerificationSignatureSalt_SHA256_2026_Lock",
|
| STORE_INTEGRITY_SALT: "FritreeSymmetricExchangeRegistrySecureValidationMatrix_2026_StrictIntegritySeal",
|
| BALANCE_SALT: "FritreeBalanceSymmetricSignatureSalt_2026_EnterpriseStrict_V5",
|
| FB_CARDS_SALT: "FritreeFbCardsSymmetricSignatureSalt_2026_EnterpriseStrict_V5",
|
| WA_CARDS_SALT: "FritreeWaCardsSymmetricSignatureSalt_2026_EnterpriseStrict_V5"
|
| });
|
|
|
| const STORAGE_CONSTANTS = Object.freeze({
|
| DB_NAME: "9a8b7c6d5e4f3a2b1c0",
|
| DB_VERSION: 6,
|
| STORES: Object.freeze({
|
| MEDIA: "t7a8b9c0d",
|
| HISTORY: "q1e2f3a4b",
|
| SYSTEM: "a5c6d7e8f"
|
| }),
|
| PBKDF2_ITERATIONS: 200000,
|
| MAX_PAYLOAD_SIZE_BYTES: 150 * 1024 * 1024,
|
| SECURE_SIS_KEYS: Object.freeze([
|
| "acc_userLevel",
|
| "acc_userXP",
|
| "acc_lifetimeFb",
|
| "acc_lifetimeWa",
|
| "acc_lifetimeTasks",
|
| "local_previous_posts",
|
| "wa_connected",
|
| "wa_sent_today",
|
| "acc_fbPoints",
|
| "acc_waPoints",
|
| "usdPoints",
|
| "local_contacts_database",
|
| "local_calendar_events_db",
|
| "local_post_groups",
|
| "scheduledCampaignsData"
|
| ])
|
| });
|
|
|
| const DEFAULT_SHIELD_MATRIX = Object.freeze({
|
| sessionProfile: "casual",
|
| typingProfile: "average",
|
| typingSpeedMultiplier: 1.0,
|
| humanScrollActive: true,
|
| simulateMouseActive: true,
|
| antiHoneypotActive: true,
|
| humanTypingActive: true,
|
| randomMicroActive: true,
|
| autoPauseFailActive: true,
|
| scrollStepPixels: 250,
|
| scrollTotalCycles: 4,
|
| mouseMovementCycles: 5,
|
| mouseJitterSpeed: 8,
|
| coordinateJitterRadius: 8,
|
| showVirtualCursor: true,
|
| canvasNoiseActive: true,
|
| audioContextNoiseActive: true,
|
| webRtcLeakProtectionActive: true,
|
| hardwareConcurrencyMockActive: true,
|
| deviceMemoryMockActive: true,
|
| batteryApiMockActive: true,
|
| languagesSpoofActive: true,
|
| screenOrientationSpoofActive: true,
|
| pluginsMockActive: true,
|
| idleWanderActive: true,
|
| safeHoursSchedulerActive: true,
|
| dailyCapActive: false,
|
| dailyCapLimit: 100,
|
| typoRatio: 0.04,
|
| activeFreezeState: false,
|
| viewportJitterActive: true,
|
| idleCursorDriftActive: true,
|
| audioFingerprintNoiseActive: true,
|
| fbAntiHoneypotStrict: true,
|
| fbFocusShufflingActive: true,
|
| fbFocusShuffleMinSec: 15,
|
| fbFocusShuffleMaxSec: 45,
|
| fbHesitationBeforeType: true,
|
| fbHesitationMinMs: 800,
|
| fbHesitationMaxMs: 2500,
|
| fbSmoothScrollAcceleration: true,
|
| fbNetworkInfoSpoof: true,
|
| waScrollActive: true,
|
| waMouseEmulationActive: true,
|
| waAntiHoneypotActive: true,
|
| waHumanTypingActive: true,
|
| waCanvasNoiseActive: true,
|
| waRandomTabActive: true,
|
| waTypingSimulationActive: true,
|
| waViewportJitterActive: true,
|
| waDailyCapLimit: 150,
|
| waScrollStepPixels: 200,
|
| waScrollTotalCycles: 3,
|
| waCoordinateJitterRadius: 6,
|
| waTypingDeletions: 3,
|
| waAntiHoneypotStrict: true,
|
| waFocusShufflingActive: true,
|
| waFocusShuffleMinSec: 15,
|
| waFocusShuffleMaxSec: 45,
|
| waHesitationBeforeType: true,
|
| waHesitationMinMs: 600,
|
| waHesitationMaxMs: 2200,
|
| waSmoothScrollAcceleration: true,
|
| waNetworkInfoSpoof: true,
|
| waAudioFingerprintNoise: true,
|
| zwspObfuscationActive: true,
|
| zwspObfuscationDensity: 0.25,
|
| unicodeHomoglyphActive: true,
|
| unicodeHomoglyphStrength: 0.20,
|
| synonymParaphrasingActive: true,
|
| synonymParaphrasingStrength: 0.40,
|
| exifCleansingActive: true,
|
| pixelNoiseActive: true,
|
| unlimitedPublishingActive: true,
|
| unlimitedMessagingActive: true,
|
| antiBotScramblerActive: true,
|
| keyboardLayoutQWERTY: Object.freeze({
|
| 'q': [0,0], 'w': [1,0], 'e': [2,0], 'r': [3,0], 't': [4,0], 'y': [5,0], 'u': [6,0], 'i': [7,0], 'o': [8,0], 'p': [9,0],
|
| 'a': [0.5,1], 's': [1.5,1], 'd': [2.5,1], 'f': [3.5,1], 'g': [4.5,1], 'h': [5.5,1], 'j': [6.5,1], 'k': [7.5,1], 'l': [8.5,1],
|
| 'z': [1.5,2], 'x': [2.5,2], 'c': [3.5,2], 'v': [4.5,2], 'b': [5.5,2], 'n': [6.5,2], 'm': [7.5,2],
|
| ' ': [4.5,3]
|
| })
|
| });
|
|
|
| global.FritreeAppConstants = Object.freeze({
|
| SECURITY_SALTS,
|
| STORAGE_CONSTANTS,
|
| DEFAULT_SHIELD_MATRIX,
|
| SUPPORTED_CURRENCIES: Object.freeze(["USD", "EGP", "EUR", "GBP", "QAR", "SAR", "CHF", "AED", "CAD", "AUD"]),
|
| RECOVERY_WINDOW_MS: 48 * 60 * 60 * 1000
|
| });
|
|
|
| })(typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : this); |