From 215731718a21b43a9f8a3007d8ec13c298899634 Mon Sep 17 00:00:00 2001 From: Davide Cappellini Date: Tue, 6 Oct 2026 23:25:06 +0200 Subject: [PATCH] ChimeraBot_garage: bootstrap exact copy of DevControlBot (CHIMERA M1) --- ChimeraBot_garage/.gitignore | 2 + ChimeraBot_garage/README.md | 24 + ChimeraBot_garage/out/.gitkeep | 0 ChimeraBot_garage/src/ChimeraBot.json | 9 + ChimeraBot_garage/src/ChimeraBot.nim | 261 ++++++ ChimeraBot_garage/src/ChimeraBot.nimble | 256 ++++++ ChimeraBot_garage/src/ChimeraBot.sh | 130 +++ .../src/ChimeraBot/modules/ELM/README.md | 150 ++++ .../src/ChimeraBot/modules/ELM/elm.nim | 370 ++++++++ .../ChimeraBot/modules/ELM/elm_features.nim | 140 +++ .../src/ChimeraBot/modules/ELM/elm_gun.nim | 345 ++++++++ .../modules/ELM/elm_gun_weights.txt | 12 + .../src/ChimeraBot/modules/radar.nim | 161 ++++ .../src/ChimeraBot/modules/tfil.nim | 805 ++++++++++++++++++ ChimeraBot_garage/tests/config.nims | 1 + ChimeraBot_garage/tests/test_elm.nim | 251 ++++++ ChimeraBot_garage/tests/test_online.nim | 94 ++ 17 files changed, 3011 insertions(+) create mode 100644 ChimeraBot_garage/.gitignore create mode 100644 ChimeraBot_garage/README.md create mode 100644 ChimeraBot_garage/out/.gitkeep create mode 100644 ChimeraBot_garage/src/ChimeraBot.json create mode 100644 ChimeraBot_garage/src/ChimeraBot.nim create mode 100644 ChimeraBot_garage/src/ChimeraBot.nimble create mode 100755 ChimeraBot_garage/src/ChimeraBot.sh create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/ELM/README.md create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm.nim create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_features.nim create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun.nim create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun_weights.txt create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/radar.nim create mode 100644 ChimeraBot_garage/src/ChimeraBot/modules/tfil.nim create mode 100644 ChimeraBot_garage/tests/config.nims create mode 100644 ChimeraBot_garage/tests/test_elm.nim create mode 100644 ChimeraBot_garage/tests/test_online.nim diff --git a/ChimeraBot_garage/.gitignore b/ChimeraBot_garage/.gitignore new file mode 100644 index 0000000..6e47899 --- /dev/null +++ b/ChimeraBot_garage/.gitignore @@ -0,0 +1,2 @@ +# User-authored environment variables (e.g. SERVER_URL) — never committed +.env \ No newline at end of file diff --git a/ChimeraBot_garage/README.md b/ChimeraBot_garage/README.md new file mode 100644 index 0000000..1043f95 --- /dev/null +++ b/ChimeraBot_garage/README.md @@ -0,0 +1,24 @@ +# ChimeraBot + +ChimeraBot is an **exact behavioral copy of DevControlBot** at bootstrap: same +run loop, same radar (commanded before `go()`), same TFIL survival movement, +same ELM gun, same full-**black** team colours (white = not programmed, +black = programmed and running). The fork exists to host **CHIMERA** +experiments; see [`../docs/chimera-spec.md`](../docs/chimera-spec.md). + +The faithful-copy reference is `DevControlBot_garage/DevControlBot/`: any +divergence from that source is a bug until an experiment deliberately changes it. + +Sources live in `src/` (`ChimeraBot.nim`, `.json`, `.nimble`, `.sh`, +`ChimeraBot/modules/`); unit tests in `tests/`; `out/` is reserved and builds +stay throwaway (`mktemp -d`). + +## Run + +```sh +cd ChimeraBot_garage/src && nimble runBot # release build + run +cd ChimeraBot_garage/src && nimble test # unit tests +``` + +`SERVER_URL` / `SERVER_SECRET` come from the environment; an optional `.env` +beside the `.nimble` is loaded without ever overriding a preexisting variable. diff --git a/ChimeraBot_garage/out/.gitkeep b/ChimeraBot_garage/out/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ChimeraBot_garage/src/ChimeraBot.json b/ChimeraBot_garage/src/ChimeraBot.json new file mode 100644 index 0000000..813ae56 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot.json @@ -0,0 +1,9 @@ +{ + "name": "ChimeraBot", + "version": "1.0.0", + "authors": ["Davide Cappellini"], + "description": "Control skeleton bot — does nothing, bright colors", + "gameTypes": ["classic", "1v1"], + "platform": "Nim", + "programmingLang": "Nim" +} diff --git a/ChimeraBot_garage/src/ChimeraBot.nim b/ChimeraBot_garage/src/ChimeraBot.nim new file mode 100644 index 0000000..95c7cd4 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot.nim @@ -0,0 +1,261 @@ +## ChimeraBot — control skeleton: boots, drives the radar every tick and keeps +## itself alive with the TFIL survival movement. It never fires. +## +## Team convention: white means "not programmed yet". Each module claims its own +## colours when its init runs, and nothing paints white after that: initTFIL() +## (constructor) paints body, turret and gun BLACK — movement is programmed — +## and initRadar() (first line of run) paints the radar and the scan arc BLACK. +## The bot therefore ends up fully BLACK. Colors are applied once, never per tick. +## +## This module is both the bot type and the program entry point (see isMainModule +## below). All radar logic lives in modules/radar.nim; the bot keeps no state. +## +## The run loop drives the radar: commandRadar() is called BEFORE go() every +## tick, so the command is part of the tick's intent and is sent by THIS go(). +## The order matters — go() sends the intent first and dispatches the pending +## events last, so onScannedBot only feeds the NEXT tick. +## +## Movement: modules/tfil.nim ("The Floor Is Lava"), vendored into this folder so +## the bot depends on nothing but the API. It is asked for a command every tick, +## BEFORE go(), exactly like the radar, and the result is applied with +## setTargetSpeed/setTurnRate — same contract as ModularBot's mover. +## +## Debug graphics: TFIL's drawing needs NO plumbing here. The API's graphics +## procs are global; the SVG buffer is flushed and cleared by the API after every +## tick, so anything drawn before `go()` (i.e. inside computeMove) reaches the +## viewer. It is compiled only with `-d:tfilDebug`; see README "Debug graphics". +## +## API: robocode_tankroyale_botapi 1.0.7 (the renamed tankroyale_botapi package). +import std/[math, os, sequtils, strutils] +import robocode_tankroyale_botapi +import ChimeraBot/modules/radar +import ChimeraBot/modules/tfil +import ChimeraBot/modules/ELM/elm_gun +import ChimeraBot/modules/ELM/elm_features + +const MaxScannedEnemies* = 16 ## movers see every alive enemy; the radar feeds + ## only what it scans, so this is a cap, not a limit + +const EnemyStaleTicks* = 60 ## drop a scanned enemy not rescanned for this many + ## ticks (~1s at 60Hz): a bot seen once would keep + ## painting its heat in the field forever + +const MaxDeadReckonTicks* = 4 ## How far a constant-velocity guess may be + ## extrapolated past the last scan. The radar + ## lock re-scans almost every tick, so this only + ## bites when the target is genuinely lost: past + ## it, freeze at the last seen position rather + ## than let old vx/vy run the aim away. + +# A/B switch, compile time: `-d:baselineGun` builds the geometric-only gun, the +# default build is the ELM gun. Both go through the same predictAim() call, so +# the two binaries differ by exactly the learned correction and nothing else — +# which is what makes the measured difference attributable. +const UseElm* = not defined(baselineGun) + +# Online-start variant: default = neutral (zero output weights). +# `-d:elmPrior` = weak pooled prior (pretrained beta scaled by 0.1). +const OnlinePriorScale* = (when defined(elmPrior): 0.1 else: 0.0) + +const FireSlopDeg = 1.0'f64 ## fire inside this much gun error, in + ## DEGREES (the API's unit). + ## + ## Was 3.0 but compared against radians + ## (`degToRad(FireSlopDeg)` = 0.052 deg): fixing + ## the unit made the gun fire mid-slew, up to + ## 3 deg off, and cost hits. 1 deg is tight + ## enough that the shot is on target while + ## still firing the tick after a correction. + +type ChimeraBot* = ref object of Bot + mover: TfilModule + tick: int + enemies: seq[EnemyInfo] ## fed by onScannedBot, cleared on round end + gun: ElmGun ## the ELM gun (or the geometric baseline, see UseElm) + shotsFired: int ## diagnostics, reset on round end + roundNo: int ## bumped on every RoundEnded, so the shot log can be + ## joined to a recording round + +proc newChimeraBot*(): ChimeraBot = + result = ChimeraBot() + result.mover = initTFIL() # movement is programmed -> body/turret/gun BLACK + result.gun = initElmGun(priorScale = OnlinePriorScale) # hidden layer loaded, online + setRadarColor(WHITE) # overwritten by initRadar() before the first tick + +method onScannedBot*(bot: ChimeraBot, e: ScannedBotEvent) = + onScan(e.x, e.y) # remembered; commandRadar() re-aims every tick + # (e.scannedBotId, schemas.nim:305, is the + # scanned bot's identity) + # ...and the full history the gun needs: this tick, the position, and where WE + # were when we saw it (own displacement since the scan is a model feature). + onScanFull(bot.tick, e.x, e.y, getX(), getY()) # history the gun needs + if bot.gun.online: + bot.gun.noteEnemyAt(bot.tick, e.x, e.y) # delayed-label trace + for i, ei in bot.enemies: + if ei.id == e.scannedBotId: + bot.enemies[i].x = e.x + bot.enemies[i].y = e.y + bot.enemies[i].heading = e.direction + bot.enemies[i].speed = e.speed + bot.enemies[i].energy = e.energy + bot.enemies[i].lastSeenTick = bot.tick + return + if bot.enemies.len >= MaxScannedEnemies: + bot.enemies.delete(0) + bot.enemies.add EnemyInfo(id: e.scannedBotId, x: e.x, y: e.y, + heading: e.direction, speed: e.speed, energy: e.energy, + lastSeenTick: bot.tick) + +method onHitByBullet*(bot: ChimeraBot, e: HitByBulletEvent) = + # an enemy bullet hit us -> tell the fire tracker, else the same tick reads as + # "no fire" and the enemy's shot goes uncounted (see modules/tfil.nim, FireFix) + bot.mover.noteEnemyBulletHit(e.bullet.power) + +method onBulletHit*(bot: ChimeraBot, e: BulletHitBotEvent) = + bot.mover.noteDamageDealt(e.damage) + +method onGameStarted*(bot: ChimeraBot, e: GameStartedEventForBot) = + ## A new game = a new opponent. This is the ONLY reset point for the online + ## model: within a battle the same opponent fights round after round with the + ## same movement code, so RoundStartedEvent deliberately does NOT touch it. + ## (The API fires onGameStarted once per battle and onRoundStarted per round.) + bot.gun.resetOnline() + +method onRoundEnded*(bot: ChimeraBot, e: RoundEndedEventForBot) = + inc bot.roundNo + bot.enemies = @[] + bot.shotsFired = 0 + bot.mover.resetRound() + +method buildBelief(bot: ChimeraBot, power: float): GunBelief = + ## Assemble what the gun is allowed to know. Everything here comes from our + ## own state or from modules/radar.nim's scan history — there is no oracle. + let (vx, vy) = targetVelocity() + let age = scanAge(scanTick) + result.everScanned = haveLast and age >= 0 + result.selfX = getX() + result.selfY = getY() + # The API speaks DEGREES everywhere (getDirection, normalizeRelativeAngle, + # setGunTurnRate); the model speaks radians (every angle in the corpus). This + # conversion is the whole difference between a gun that aims and one that + # sprays bullets into the walls. + result.selfHeading = degToRad(getDirection()) + result.selfSpeed = getSpeed() + result.ownDisp = ownDisp(getX(), getY()) + result.scanAge = age + result.scanGap = scanGap() + result.winN = min(winN, WinCap) + for k in 0 ..< result.winN: + result.winX[k] = winX[k] + result.winY[k] = winY[k] + result.winTick[k] = winTick[k] + result.vx = vx + result.vy = vy + # dead-reckon: last seen position advanced by the estimated velocity, but no + # farther than a constant-velocity guess stays credible (see the const). + let lead = min(age, float(MaxDeadReckonTicks)) + result.ex = lastScan.x + vx * lead + result.ey = lastScan.y + vy * lead + result.power = power + result.bulletSpeed = 20.0 - 3.0 * power + result.gunHeat = getGunHeat() + +method ageEnemies(bot: ChimeraBot) = + # heat field is only as good as the freshest scans; stale entries stay + # plausible-looking but poison the grid, so they go + bot.enemies = bot.enemies.filterIt(it.lastSeenTick >= bot.tick - EnemyStaleTicks) + +method buildWorldState(bot: ChimeraBot): WorldState = + WorldState(selfX: getX(), selfY: getY(), + selfSpeed: getSpeed(), selfHeading: getDirection(), + selfRadarHeading: getRadarDirection(), selfEnergy: getEnergy(), + arenaWidth: getArenaWidth().float, arenaHeight: getArenaHeight().float, + tick: bot.tick, enemies: bot.enemies) + +## The gun tick: aim, and fire when the gun is actually on the aim point. +## +## Standard Tank Royale gun handling, nothing clever — the cleverness (if any) +## lives entirely inside predictAim(). Order is the API's: set the gun turn rate, +## fire only when the gun is both COOLED (getGunHeat() == 0) and ON the aim, and +## do it before go() so the shot is part of this tick's intent. +proc computeGun(bot: ChimeraBot) = + if bot.gun.online: + bot.gun.drainPending(bot.tick) # label any shot whose flight time elapsed + let belief = bot.buildBelief(FirePower) + let feat = buildFeatures(belief) + let aim = bot.gun.predictAim(belief, FirePower, UseElm) + let baseAim = bot.gun.heuristicAim(belief, FirePower) + if aim.aim.isNaN: + setGunTurnRate(0.0) + return + when defined(gunDebug): + if bot.tick mod 20 == 0: + echo "[gun] t=", bot.tick, " self=(", getX(), ",", getY(), ") lastScan=(", lastScan.x, ",", lastScan.y, + ") age=", scanAge(scanTick), ") aimDeg=", radToDeg(aim.aim), + " corr=", aim.correction, " gunDeg=", getGunDirection() + let err = gunAimErrorDeg(aim.aim, getGunDirection()) + # `err` is DEGREES: gunAimErrorDeg is the single rad->deg conversion point and + # its name carries the unit, so `<= FireSlopDeg` can only compare degrees with + # degrees. (The old code compared a degree error against degToRad(FireSlopDeg) + # i.e. 0.052 deg of slop, and withheld fire far past the target.) + if abs(err) <= FireSlopDeg: + # Park the gun: the pending correction from the previous tick is applied + # AFTER firing (TurnProcessor fires before executeBotIntents), so it would + # only over-rotate the gun on the NEXT turn. Zeroing it keeps the gun on the + # aim point while it holds fire. + setGunTurnRate(0.0) + if getGunHeat() == 0.0: + # Non-blocking. `fire()` is the BLOCKING variant: it calls go() itself, so + # the outer loop's go() ran a second, empty turn - the bot double-stepped + # the server on every shot, desyncing tick/scan bookkeeping from the game. + discard setFire(FirePower) + inc bot.shotsFired + if bot.gun.online: + # Enqueue a delayed label: the true impact position is only knowable + # once tof ticks of flight have passed (keyed by dueTick). + let d = hypot(belief.ex - belief.selfX, belief.ey - belief.selfY) + let tofTicks = max(1, int(round(d / belief.bulletSpeed))) + bot.gun.recordShot(feat, baseAim, belief.selfX, belief.selfY, + bot.tick + tofTicks) + when defined(gunLog): + # One line per shot. Columns: + # round,tick,predCorrection,baseAimDeg,finalAimDeg,gunDeg, + # nOnline,gateOpen,modelErr,zeroErr,<32 features> + let path = getEnv("ELM_GUN_LOG", "") + if path.len > 0: + let f = open(path, fmAppend) + defer: f.close() + f.write($bot.roundNo & "," & $bot.tick & "," & $aim.correction & "," & + $(radToDeg(baseAim)) & "," & $(radToDeg(aim.aim)) & "," & + $(getGunDirection()) & "," & $bot.gun.nOnline & "," & + (if bot.gun.gateOpen: "1" else: "0") & "," & + $bot.gun.modelErr & "," & $bot.gun.zeroErr & "," & + feat.mapIt($it).join(" ") & "\n") + else: + setGunTurnRate(err) + +method run*(bot: ChimeraBot) = + setAdjustGunForBodyTurn(true) # turret ignores body rotation + setAdjustRadarForBodyTurn(true) # radar ignores body rotation + setAdjustRadarForGunTurn(true) # radar ignores turret rotation too + initRadar() # once: radar + scan turn BLACK = programmed + while isRunning(): + # One radar command and one movement command per tick, unconditionally, + # BEFORE go() — so both are part of this tick's intent. + commandRadar() + bot.ageEnemies() # stale scans dropped before they paint heat + let (speed, turnRate) = bot.mover.computeMove(bot.buildWorldState()) + setTargetSpeed(speed) + setTurnRate(turnRate) + bot.computeGun() # gun intent, also before go() + go() + inc bot.tick + +when isMainModule: + # argv[1] may override the metadata file (used by ChimeraBot/ChimeraBot.sh); + # otherwise the JSON next to this source, resolved at compile time so any cwd works. + let jsonPath = + if paramCount() >= 1: paramStr(1) + else: currentSourcePath().parentDir / "ChimeraBot.json" + var bot = newChimeraBot() + start(bot, jsonPath) diff --git a/ChimeraBot_garage/src/ChimeraBot.nimble b/ChimeraBot_garage/src/ChimeraBot.nimble new file mode 100644 index 0000000..df6367e --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot.nimble @@ -0,0 +1,256 @@ +# Package +version = "1.0.0" +author = "Davide Cappellini" +description = "ChimeraBot — control-skeleton bot that does nothing but show up bright" +license = "MIT" +srcDir = "." +bin = @[] + +# Dependencies +# Installed globally with `nimble install`; nothing is vendored locally and +# no nimble.paths / vendor/ is used. `runBot` resolves each package's real +# location at run time with `nimble path` and passes explicit --path: flags, +# so the build does not rely on $HOME or on the compiler's bundled nimblepath. +requires "nim >= 2.0.0" +requires "robocode_tankroyale_botapi >= 1.0.7" +requires "jsony >= 1.1.5" + +# The build-and-run logic lives here, not in ChimeraBot.sh. +# +# NimScript cannot install signal handlers, so the temp build dir is owned by a +# small POSIX shell program (below) that Nimble executes via `exec` (which goes +# through the shell). That program traps EXIT/INT/TERM and always removes the +# throwaway build dir, including when compilation fails or the run is +# interrupted. Nothing is ever written to a persistent out/ directory. +# +# `exec` turns ANY non-zero exit into a NimScript exception, which prints a +# stack trace plus an escaped copy of the whole script. That is nonsense for the +# expected "no game server at SERVER_URL" outcome. So the shell always exits 0 and +# hands the real code back through the file named by $CHIMERABOT_STATUS_FILE, +# which ChimeraBot.sh exports and then re-exits with. Direct `nimble runBot` +# (no such variable) keeps the old behaviour: the shell exits with the real code +# and Nimble raises. +# +# ChimeraBot.sh is a thin wrapper: it locates itself, chdirs here so Nimble +# finds this file, forwards caller args, calls `runBot` and forwards signals. +import std/os + +const + runScript = """ +# Resolve the globally-installed dependencies at run time. Plain `nim c` only +# finds them when $HOME is set (the Nim distribution's nim.cfg carries +# `nimblepath="$home/.nimble/pkgs2/"`), which is NOT true in bare environments +# (env -i, nix build sandboxes, CI). `nimble path` is the reliable, +# cwd-independent way to ask for their real location. +# Distinct exit codes, so a caller can tell the failure modes apart. +EXIT_NO_SERVER=1 # bot could not connect to the game server (expected) +EXIT_NO_DEPS=2 # a dependency is not installed +EXIT_COMPILE=3 # compilation failed + +STATUS_FILE="${CHIMERABOT_STATUS_FILE:-}" + +# report : write the real exit code to the status file. Returns 1 when +# there is no status file, i.e. the caller wants it as the shell's own code. +report() { + [ -n "$STATUS_FILE" ] || return 1 + printf '%s\n' "$1" > "$STATUS_FILE" +} + +# die : finish with as the run's real result — quietly (exit 0, +# the status file carries the code) or, with no listener, by exiting with it. +die() { + if report "$1"; then exit 0; else exit "$1"; fi +} + +DEPS="" +for pkg in robocode_tankroyale_botapi jsony; do + pkgdir="$(nimble path "$pkg" 2>/dev/null | head -n 1)" + if [ -z "$pkgdir" ] || [ ! -d "$pkgdir" ]; then + echo "[chimerabot] COMPILE BLOCKED: dependency '$pkg' is not installed." >&2 + echo "[chimerabot] fix with: nimble install $pkg" >&2 + die $EXIT_NO_DEPS + fi + echo "[chimerabot] dependency $pkg -> $pkgdir" + DEPS="$DEPS '--path:$pkgdir'" +done + +# Build mode: $CHIMERABOT_DEBUG is set to "debug" by ChimeraBot.sh when +# the caller passed --debug; anything else (including an unset variable, i.e. a +# direct `nimble runBot`) means release. Release is the quiet default. +BUILD_MODE="${CHIMERABOT_DEBUG:-release}" + +# Compile-time Nim defines, stripped from the caller's argv by ChimeraBot.sh +# and handed over here as a space-separated string. They MUST be stripped: this +# task forwards its own argv to the BOT BINARY, so a -d: arg left there would be +# consumed as the bot's argv and never reach the compiler. Applied to BOTH build +# modes on purpose: defines are independent of optimisation level, so -d:tfilDebug +# debug graphics are wanted in a release build too. Empty when the caller passed +# none, which leaves the compile lines exactly as they were. +DEFINES="${CHIMERABOT_DEFINES:-}" +if [ -n "$DEFINES" ]; then + echo "[chimerabot] compile-time defines: $DEFINES" +fi + +BUILD_DIR="$(mktemp -d "${TMPDIR:-/tmp}/chimerabot.XXXXXX")" +BINARY="$BUILD_DIR/ChimeraBot" + +# ---- optional .env ------------------------------------------------------------ +# Configuration reaches the bot through the ENVIRONMENT, not through any code +# of ours: robocode_tankroyale_botapi's start() reads SERVER_URL and +# SERVER_SECRET (robocode_tankroyale_botapi.nim:424-425, documented at :396-397) +# and loadBotInfo() reads BOT_NAME / BOT_VERSION / ... from the environment when +# the JSON is absent (bot_info.nim:117-130). That is the documented, supported +# mechanism the official BotLauncher uses, so the only thing we do here is make +# those variables PRESENT in the bot's process environment for local runs. +# +# Loaded HERE, in the runBot task, and not in ChimeraBot.sh, so it applies both +# to `./ChimeraBot.sh` and to a direct `nimble runBot` (one implementation, and +# the wrapper stays a thin wrapper). +# - optional: a missing file is not an error, nothing is printed but a note, +# the bot just uses the API defaults. +# - CRLF-tolerant: CRs are stripped so a Windows-edited file does not end up +# with the value "bar\r". +# - both `FOO=bar` and `export FOO=bar` styles. +# - never echoed, never `set -x`: only the file NAME is reported. +# - $CHIMERABOT_ENV_FILE overrides the default path (".env" next to the +# .nimble, which is the cwd because ChimeraBot.sh chdirs there). +# +# PRECEDENCE — CRITICAL. The .env file must NEVER override a variable that is +# already present in the environment: the official BotLauncher's values (and the +# caller's explicit `FOO=bar ./ChimeraBot.sh`) must always win, otherwise this +# convenience file could silently break a BotLauncher run. Sourcing the file +# directly would do the opposite, because an assignment in a sourced file +# overwrites an already-exported variable of the same name. So the file is +# FILTERED line by line: a `NAME=value` line is dropped when NAME is already set +# in the environment (tested with `[ -n "${NAME+x}" ]`, i.e. set-but-maybe-empty, +# not non-empty), and only the remaining, still-unset names are sourced with +# `set -a`. The filtering is what implements the precedence, not the source order. +ENV_FILE="${CHIMERABOT_ENV_FILE:-.env}" +if [ -f "$ENV_FILE" ]; then + ENV_RAW="$BUILD_DIR/env.raw" + ENV_KEEP="$BUILD_DIR/env.keep" + ENV_ADDED="" + # CRLF tolerance: drop the CRs, keep everything else verbatim. + tr -d '\r' < "$ENV_FILE" > "$ENV_RAW" + : > "$ENV_KEEP" + while IFS= read -r line || [ -n "$line" ]; do + case "$line" in + ''|\#*) continue ;; # blank / comment + export\ *|export=*) line="${line#export }" ;; + esac + name="${line%%=*}" + # Only plain NAME=value assignments; anything else is ignored, so the file + # can never smuggle in commands. `name` is validated as an identifier + # BEFORE being used in the eval below. + printf '%s' "$name" | grep -q '^[A-Za-z_][A-Za-z_0-9]*$' || continue + # PRECEDENCE: skip if the variable already exists in the environment. + if eval "[ -n \"\${$name+x}\" ]"; then + continue + fi + printf '%s\n' "$line" >> "$ENV_KEEP" + ENV_ADDED="$ENV_ADDED $name" + done < "$ENV_RAW" + if [ -n "$ENV_ADDED" ]; then + set -a + . "$ENV_KEEP" + set +a + fi + rm -f "$ENV_RAW" "$ENV_KEEP" + # Variable NAMES only, never values. + echo "[chimerabot] env file loaded: $ENV_FILE (names added:${ENV_ADDED:- none}; values never printed)" + echo "[chimerabot] variables already in the environment win and were left untouched" +else + echo "[chimerabot] no env file at $ENV_FILE (optional, using API defaults)" +fi + +cleanup() { + rc=$? + trap - EXIT INT TERM + rm -rf "$BUILD_DIR" + if [ -d "$BUILD_DIR" ]; then + echo "[chimerabot] cleanup failed: $BUILD_DIR still present" >&2 + exit 1 + fi + exit $rc +} +trap cleanup EXIT +trap 'exit 130' INT +trap 'exit 143' TERM + +# Release: hints and the progress/dot lines are noise, so the compiler output is +# captured to a log and only shown if the build fails (errors are ALWAYS shown). +# Debug: classic build, full compiler output (config-file hints, diagnostics). +LOG="$BUILD_DIR/build.log" +if [ "$BUILD_MODE" = "debug" ]; then + echo "[chimerabot] compiling ChimeraBot.nim (DEBUG BUILD) -> $BINARY" + # `eval` re-parses $DEPS and $DEFINES so the embedded quotes do the word + # splitting: the dependency paths survive spaces, without relying on glob or + # brace expansion. $DEFINES holds only whole -d:name[=value] words (the wrapper + # rejects whitespace and shell metacharacters). + # No pipe: POSIX sh has no PIPESTATUS, and `nim | tee` would report tee's + # status, not the compiler's. Buffer first, then replay the log verbatim. + eval nim c $DEFINES $DEPS --out:"$BINARY" ChimeraBot.nim >"$LOG" 2>&1 + compile_rc=$? + cat "$LOG" +else + echo "[chimerabot] compiling ChimeraBot.nim -> $BINARY" + eval nim c -d:release $DEFINES --hints:off $DEPS --out:"$BINARY" ChimeraBot.nim >"$LOG" 2>&1 + compile_rc=$? +fi +if [ $compile_rc -ne 0 ]; then + if [ "$BUILD_MODE" != "debug" ]; then + echo "[chimerabot] --- compiler output ---" >&2 + cat "$LOG" >&2 + echo "[chimerabot] --- end compiler output ---" >&2 + fi + echo "[chimerabot] COMPILE FAILED (nim c exited $compile_rc) — errors above." >&2 + die $EXIT_COMPILE +fi +rm -f "$LOG" +if [ "$BUILD_MODE" = "debug" ]; then + echo "[chimerabot] build ok (debug)" +else + echo "[chimerabot] build ok (release)" +fi + +# The bot reads argv[1] as its metadata JSON path. If the caller already +# supplied a JSON, use that instead of the bundled one. +if [ -n "${1:-}" ] && [ "${1##*.}" = "json" ]; then + echo "[chimerabot] using caller-supplied metadata: $1" + "$BINARY" "$@" +else + # NOTE: no `exec` here: the shell must survive so the EXIT trap can clean up. + echo "[chimerabot] running $BINARY ChimeraBot.json $*" + "$BINARY" ChimeraBot.json "$@" +fi +bot_rc=$? +if [ $bot_rc -ne 0 ]; then + echo "[chimerabot] bot exited with code $bot_rc." >&2 + if [ $bot_rc -eq $EXIT_NO_SERVER ]; then + # The Tank Royale client answers a refused connection with this exact + # exit code, so it means "no server", not "broken bot". + echo "[chimerabot] No game server on ${SERVER_URL:-ws://localhost:7654} (SERVER_URL)." >&2 + echo "[chimerabot] Start the Tank Royale server, or point SERVER_URL at a running one." >&2 + else + echo "[chimerabot] The bot ran but failed at runtime (crash or bad metadata)." >&2 + fi +fi +die $bot_rc +""" + +task runBot, "Compile, run and clean up the bot": + # Nimble passes every CLI argument here (its own flags, then the task name, + # then the caller's arguments). Ours are the ones after the task name. + var args = "" + var seen = false + for a in commandLineParams(): + if seen: + if args != "": args = args & " " + args = args & quoteShell(a) + elif a == "runBot": + seen = true + exec "sh -c " & quoteShell(runScript) & " chimerabot " & args + +task test, "Run unit tests": + exec "nim c -r --hints:off ../tests/test_elm.nim" + exec "nim c -r --hints:off ../tests/test_online.nim" diff --git a/ChimeraBot_garage/src/ChimeraBot.sh b/ChimeraBot_garage/src/ChimeraBot.sh new file mode 100755 index 0000000..81470e8 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot.sh @@ -0,0 +1,130 @@ +#!/usr/bin/env bash +# BotLauncher entry point for ChimeraBot. +# +# Thin wrapper: all build/run/cleanup logic lives in the `runBot` nimble task +# of ChimeraBot.nimble. This script only locates itself, moves next to the +# .nimble so Nimble finds it, forwards caller arguments, calls the task and +# propagates the real exit code. Signals are forwarded to Nimble so the task's +# own EXIT/INT/TERM cleanup always runs. +# +# Usage: ChimeraBot.sh [--debug] [-d:[=]]... [] [extra args] +# +# (no args) RELEASE build + run with the bundled ChimeraBot.json +# (no flag) RELEASE build (nim c -d:release), quiet output +# --debug classic DEBUG build (plain nim c): compiler hints + diagnostics +# -d:foo compile-time Nim define. ANY number, in any position, in EITHER +# build mode: --debug only changes optimisation/hints, defines are +# independent of it, so `-d:tfilDebug` debug graphics work in a +# release build too. Accepted forms: -d:foo and -d:foo=bar. +# +# --debug is a build-mode flag for this wrapper only: it is stripped here and +# never reaches the bot binary or nimble's task arguments. It travels to the +# runBot task as $CHIMERABOT_DEBUG (exported), because an env var cannot be +# confused with a bot argument, cannot collide with the status file mechanism +# and keeps the task's argument parsing untouched. Repeated --debug is harmless. +# +# -d: args travel the same way, as $CHIMERABOT_DEFINES. They MUST be stripped +# here: the runBot task forwards its own argv to the BOT BINARY, so a -d: arg +# would otherwise become the bot's argv and never reach the compiler. Matching is +# the anchored glob `-d:*` (whole-argument, starts with -d:), so a value that +# merely contains "-d:" inside another word ("x-d:y", "--debug-d:x") is NOT a +# define and is forwarded verbatim. Anything that is neither --debug, -h/--help +# nor a -d: arg still reaches the bot binary exactly as before. +# +# Configuration (SERVER_URL, SERVER_SECRET, ...) is NOT handled here at all: the +# API's start() reads those from the environment, and the optional .env file is +# loaded by the runBot task, so it also works with a direct `nimble runBot`. +set -uo pipefail +set -m # job control: the background job gets its own process group + +SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +cd "$SCRIPT_DIR" + +usage() { + cat <[=]]... [] [extra args for the bot] + + --debug classic debug build: shows compiler hints and diagnostics + (default is a quiet RELEASE build, nim c -d:release) + -d:foo, -d:foo=bar Nim compile-time define, passed to `nim c`. Repeatable. + Independent of --debug: defines apply in BOTH build modes, + so `-d:tfilDebug` debug graphics also work in a release + build. Only whole args starting with -d: are treated as + defines; everything else is forwarded to the bot binary. + -h,--help show this help + +Examples: + $(basename "$0") # release build + run, bundled ChimeraBot.json + $(basename "$0") my.json # release build + run with custom metadata + $(basename "$0") -h # this help + $(basename "$0") --debug # debug build + $(basename "$0") --debug my.json # debug build with custom metadata + $(basename "$0") -d:tfilDebug # release build with TFIL debug graphics + $(basename "$0") --debug -d:tfilDebug # debug build, also with debug graphics + $(basename "$0") -d:danger -d:logLevel=2 my.json +EOF +} + +# Split caller args: --debug and -d: defines are consumed here, everything else +# is forwarded verbatim. The defines end up in a single space-separated string +# because the compiler line is `eval`ed (like $DEPS) to survive paths with spaces. +BUILD_MODE=release +DEFINES="" +FORWARDED=() +for a in "$@"; do + case "$a" in + --debug) BUILD_MODE=debug ;; + -d:*) + # TRUST BOUNDARY: the string is eval'ed by the runBot task, so a define + # carrying whitespace, quotes, $, ` or ; could inject shell. Reject it + # loudly instead of passing it on. Legal Nim defines (-d:foo, -d:foo=bar) + # contain none of these. + case "$a" in + *[[:space:]\"\'\$\;\`\\]*) + echo "$(basename "$0"): invalid define '$a'" >&2 + echo " expected -d:name or -d:name=value with no spaces or shell characters" >&2 + exit 1 ;; + esac + DEFINES="$DEFINES $a" ;; + *) FORWARDED+=("$a") ;; + esac +done +set -- ${FORWARDED+"${FORWARDED[@]}"} + +# No arguments is the normal case: build and run with the bundled metadata. +# Usage is printed ONLY for an explicit -h/--help. +case "${1:-}" in + -h|--help) usage; exit 0 ;; +esac + +export CHIMERABOT_DEBUG="$BUILD_MODE" +# Leading space trimmed: empty when the caller passed no -d: arg, and the runBot +# task's compile lines are then byte-identical to a run without this feature. +export CHIMERABOT_DEFINES="${DEFINES# }" + +# The runBot task's shell always exits 0 (otherwise Nimble raises a NimScript +# exception with a stack trace and a dump of the whole script) and writes the +# bot's real exit code here instead. We read it back and exit with it, so +# BotLauncher still sees the faithful status: 1 = no game server at SERVER_URL, +# 2 = a dependency is missing, 3 = compile failure, anything else = the bot's +# own code, 0 = clean run. +STATUS_FILE="$(mktemp "${TMPDIR:-/tmp}/chimerabot.status.XXXXXX")" +export CHIMERABOT_STATUS_FILE="$STATUS_FILE" +trap 'rm -f "$STATUS_FILE"' EXIT + +# Forward to the whole job process group (nimble + the shell it spawned) so the +# task's own EXIT/INT/TERM cleanup runs. No cleanup logic here. +forward() { kill -s "$1" -- "-$NIMBLE_PID" 2>/dev/null; } +trap 'forward TERM' TERM +trap 'forward INT' INT + +nimble runBot ${1+"$@"} & +NIMBLE_PID=$! +wait "$NIMBLE_PID" +rc=$? +trap - TERM INT +# Prefer the code the run actually produced; fall back to Nimble's own status if +# the task died before it could report (e.g. Nimble itself failed). +real_rc="$(head -n 1 "$STATUS_FILE" 2>/dev/null | tr -d '[:space:]')" +[ -n "$real_rc" ] || real_rc=$rc +exit "$real_rc" diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/ELM/README.md b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/README.md new file mode 100644 index 0000000..9f560cd --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/README.md @@ -0,0 +1,150 @@ +# ELM — Extreme Learning Machine + +`modules/ELM/elm.nim`. Single hidden layer, `tanh` activation by default (pluggable +via `activation*`, see below), **closed-form** output layer. Bot-agnostic: stdlib +only (`math`, `random`, `strutils`), `float64` throughout, own Cholesky — no +LAPACK, no `linearalgebra`, nothing to install. + +## Usage + +```nim +import modules/ELM/elm + +var e = initElm(ElmConfig( + inputDim: 6, hiddenDim: 64, outputs: 2, + seed: 42, lambda: 1e-6, decay: 0.98, refitEvery: 1)) + +e.train(x, t) # one sample; refits per refitEvery +let y = e.infer(x) # current output, no refit +e.refit() # force a refit +e.reset() # drop samples, zero beta, keep the hidden layer +echo diagnostics(e).trainRmse +``` + +Tests: `nimble test` (from `ChimeraBot/`), or `nim c -r tests/test_elm.nim` from `ChimeraBot_garage/` + +## Activation (`activation*` on `ElmConfig`) + +The hidden units are **pure additive** nodes — every activation sees the same +pre-activation `s = a·x + b` and differs only in the scalar nonlinearity `g`: + +| `ActivationKind` | `g(s)` | +|------------------|-------------------------------------------------| +| `atanTanh` (default) | `tanh(s)` | +| `atanRelu` | `max(0, s)` | +| `atanStep` | `1.0 if s > 0 else 0.0` | + +```nim +var e = initElm(ElmConfig(..., activation: atanRelu)) +let y = applyActivation(atanStep, 0.3) # pure, also exported standalone +``` + +**The default is `atanTanh` and is unchanged**: the hidden-weight scale, the bias +range and every tuned constant are bit-identical to the previous version for +tanh, so existing callers cannot regress. `parseActivation*(string)` is provided +for config/CLI use and raises `ValueError` on an unknown name. + +Two hidden-init details are activation-aware, because tanh is the only +scale-robust option (it is curved everywhere, so any spread of +pre-activations gives independent features): + +- **bias range**: tanh gets `U[-1,1]` (two-sided, as always). relu/step are dead + for `s <= 0`, so they get `U[0,1]` — otherwise about half the units start dead + and contribute a constant column. +- **weight scale**: relu/step get `8.0 / sqrt(inputDim)` instead of + `1 / sqrt(inputDim)`. relu is curved only at its kink and step only at its + jump, both at `s = 0`; at the tanh scale the pre-activations barely straddle 0 + and the units degenerate into linear/constant features, the Gram matrix loses + rank and Thm 2.2 interpolation fails outright (measured with 20 samples in 20 + nodes: `trainRmse` 1.1e-01 relu, 3.6e-01 step at the tanh scale; 4.0e-12 and + 2.3e-13 at scale 8). See `activationWeightScale` in `elm.nim`. + +Consequence to keep in mind: relu/step are unbounded or piecewise constant, so +the output weights they need are large and the shipped near-zero `lambda` does not +regularise them — on `test_elm.nim` test 8 (`lambda = 1e-8`) held-out MSE is +`1.1e-06` tanh, `3.5e-02` relu, `8.4e-02` step. The activation is a plain `g` +swap, but `lambda` is a co-tuning knob for the one-sided ones. + +### Why there is no RBF/gaussian option + +The classic RBF-ELM hidden unit is `g(b·‖x − a‖)`: the activation reads the +**distance to a centre in input space**, so the hidden layer stores centres plus +per-node widths (and normally picks the width from the data). That is a different +node architecture, not a different `g`, and it cannot be expressed by swapping +`s` for `‖x − a‖` in this additive bank without changing what `W` and `hs` mean, +how they are initialised, and the conditioning argument in `initElm`. It is +deliberately **not** forced in here: adding it would need a separate +`hiddenKind` field with its own init and its own Thm 2.2 validation. + +## How it works + +The hidden layer is drawn **once** at `initElm` from a seeded RNG and is never +trained. That is the ELM: with a random nonlinear feature map the problem on top +of it is convex, so the output layer is a linear solve instead of gradient +descent (Huang, Wang & Lan 2011). + +* hidden weights `W[L][inputDim] ~ U[-1,1] * 1/sqrt(inputDim)` +* hidden biases `b[L] ~ U[-1,1]` — offsets, **not** scaled. They put the `tanh` + units across their nonlinear range; without them the features collapse onto + nearly the same direction and exact interpolation is lost to float64 round-off. +* every `train()` call solves + + minimise sum_i w_i * ||a_i . beta - t_i||^2 + lambda * ||beta_pen||^2 + + over the accumulated samples, accumulating `G = sum w_i a_i a_i^T` and + `C = sum w_i a_i t_i^T`, then `beta = (G + lambda*diag(penalty))^-1 C` via + Cholesky. + +## The bias is a column, not a parameter + +`a_i` is the **augmented** hidden vector `[h_1 .. h_L, 1.0]`. The output bias is +the last column of `a`, and the ridge penalty diagonal is + +``` +penalty[p] = 1 for p < L (weights) +penalty[L] = 0 (the bias) +``` + +so the bias column is **never shrunk toward zero**. With `lambda = 1e4` the slope +is crushed (that is what the penalty is for) and the model still returns the +target's constant offset intact. `tests/test_elm.nim` test 3 asserts exactly that. + +## Forgetting without discarding + +Every stored sample carries a weight. `train()` first multiplies every stored +weight by `decay` (rho, default 0.98), then stores the new sample with weight 1. +Old data is never thrown away, only forgotten — a wave surfer, not a circular +buffer. `decay = 1.0` disables forgetting; with `decay = 0.5`, one sample carries +the weight of 50 samples added before it down to ~3%. + +Refit policy (`refitEvery`): + +| value | behaviour in `train()` | +|---|---| +| `0` | **never** refit — accumulate only. The caller must call `refit()` explicitly. This is the batched-training mode: feed N samples, then refit once (cost `O(N·L²)` instead of `O(N²·L²)`). | +| `1` | refit on every `train()` call (live/online mode). | +| `>1` | refit once every `N` train() calls. | + +**This is a behaviour change.** Earlier versions treated `<= 1` as "refit on +every call", so `refitEvery = 0` did *not* mean "don't refit" — it silently +refit the whole accumulated buffer on every `train()` call. Callers relying on +the old meaning must change `0` to `1`. + +## Measured test numbers + +Nim 2.2.4, float64: + +| test | measured | asserted | +|---|---|---| +| 1. Thm 2.2 interpolation, L = N = 20, lambda = 0 | `trainRmse = 5.19e-10` | `< 1e-8` | +| 2. `sin(3x)+0.5cos(2y)`, 200 train / 100 held out, L = 64 | `MSE = 1.07e-06` | `< 1e-3` | +| 3. bias not penalised, `lambda = 1e4`, target `5 + 0.1x` | `f(0.25) = 4.9906` | offset within 0.05 of 5.0 | +| 4. decay 0.5 vs 1.0 | `-2.878` vs `0.412`, `trainRmse 0.623` vs `1.110` | differ, 0.5 follows B | +| 5. same seed | identical outputs | — | +| 6. dim mismatch | `ValueError` | — | + +## Known ceiling + +`G` is rebuilt from scratch on every refit, so cost is `O(n * L^2)` per refit and +`n` grows without bound. For a long-running bot, bound `n` (ring buffer) or use a +larger `refitEvery`. diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm.nim b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm.nim new file mode 100644 index 0000000..7a4cb5e --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm.nim @@ -0,0 +1,370 @@ +## ELM — Extreme Learning Machine, single hidden layer, tanh activation. +## +## The hidden layer's weights and biases are drawn ONCE at init from a seeded +## RNG and are NEVER trained. That is the whole point of an ELM: with a random +## nonlinear feature map the regression on top of it is convex, so the output +## layer can be solved in closed form instead of by gradient descent +## (Huang / Wang / Lan 2011). +## +## ## What is solved +## +## minimise sum_i w_i * ||a_i . beta - t_i||^2 + lambda * ||beta_pen||^2 +## +## where a_i is the AUGMENTED hidden vector [h_1 .. h_L, 1.0] and w_i is the +## (age-decayed) sample weight. Accumulating +## +## G = sum_i w_i a_i a_i^T (L+1 x L+1) +## C = sum_i w_i a_i t_i^T (L+1 x M) +## +## gives beta = (G + lambda*diag(penalty))^-1 C, solved by Cholesky. +## +## ## Bias handling (deliberate, see README) +## +## The output-layer bias is NOT a separate parameter: it is the last column of +## `a`, a constant 1.0 feature. The ridge penalty diagonal is therefore 1 for +## the first L entries and 0 for the last one, so the bias column is NEVER +## shrunk toward zero — with a large lambda the model still reproduces a large +## constant offset exactly. (The hidden layer has no bias at all; the random +## feature map is homogeneous plus the output bias, which is enough.) +## +## ## Recency weighting +## +## Every stored sample keeps a weight; adding a new sample of weight w first +## multiplies every stored weight by `decay` (rho), then stores the new one. +## Old data is never discarded, only forgotten — a wave surfer, not a +## circular buffer. `decay = 1.0` disables forgetting entirely. +## +## ## Activation +## +## The hidden layer is a bank of PURE ADDITIVE nodes, i.e. every activation +## takes the same pre-activation `s = a . x + b` and differs only in the scalar +## nonlinearity g applied to it: +## +## tanh g(s) = tanh(s) bounded, smooth, always differentiable +## relu g(s) = max(0, s) bounded below only, unbounded above +## step g(s) = 1.0 if s > 0 else 0.0 piecewise constant (a sign/ramp test) +## +## The node form is deliberately NOT varied: ELM theory only needs g to be +## non-polynomial (almost everywhere differentiable) for the random hidden +## layer to be dense in the target space, so a plain g swap is the whole +## experimental knob. tanh is the default and the only activation the shipped +## configuration was ever tuned with, so existing callers are bit-identical. +## +## NOT here: RBF/gaussian nodes. The classic RBF-ELM hidden unit is +## g(b * ||x - a||), i.e. the activation reads the DISTANCE TO A CENTRE in +## input space, not an affine form. That is a different node architecture +## (centres + widths, with a data-dependent width scale), not a different g, +## and it does not fit this additive bank. See README.md. +## +## Stdlib only, float64 throughout, own Cholesky (no LAPACK dependency). + +import std/[math, random, strutils] + +type + ActivationKind* = enum + ## Which nonlinearity the hidden nodes apply to their affine pre-activation. + ## The string values are what `activationName*` returns. + atanTanh = "tanh" + atanRelu = "relu" + atanStep = "step" + + ElmConfig* = object + inputDim*, hiddenDim*, outputs*: int + seed*: int64 + activation*: ActivationKind # default: atanTanh + lambda*: float64 # ridge penalty on the weights, >= 0 + decay*: float64 # sample-weight decay per added sample (rho), in (0,1] + refitEvery*: int # 0 => never refit in train(); 1 => every train(); + # >1 => every N train() calls. With 0 the caller + # must call refit() explicitly (batched training). + + Elm* = ref object + cfg: ElmConfig + W: seq[float64] # hiddenDim * inputDim, row-major + hs: seq[float64] # hiddenDim, hidden-layer biases + beta: seq[float64] # (hiddenDim+1) * outputs + samples: seq[float64] # n * inputDim inputs + targets: seq[float64] # n * outputs targets + weights: seq[float64] # n sample weights + n: int + sinceRefit: int + diag: ElmDiag + + ElmDiag* = object + nSamples*: int + trainRmse*: float64 # weighted RMS of residual at last refit + lastBetaNorm*: float64 + +const defaultDecay* = 0.98 +const defaultLambda* = 1e-6 + +# Hidden-weight scale per activation, RELATIVE to the shipped 1/sqrt(inputDim). +# tanh is scale-robust: it is curved everywhere, so any spread of pre-activations +# gives rich, near-independent features (hence 1.0 = exactly the shipped init). +# relu is curved only at its kink s=0 and step only at its jump s=0, so with the +# tanh scale the pre-activations barely straddle 0, the units behave like plain +# linear/constant features, the Gram matrix drops rank and Thm 2.2 interpolation +# is lost (measured at scale 1.0: trainRmse 1.1e-1 relu, 3.6e-1 step with 20 +# samples in 20 nodes). A wider spread puts the kinks through the data cloud, +# where they can actually cut it. +proc activationWeightScale(kind: ActivationKind): float64 = + case kind + of atanTanh: 1.0 + of atanRelu: 8.0 + of atanStep: 8.0 + +# ── activation ────────────────────────────────────────────────────────────── + +proc applyActivation*(kind: ActivationKind, x: float64): float64 = + ## Pure scalar nonlinearity shared by every hidden node. float64 in, float64 + ## out, no state, no allocation — safe to call in the innermost refit loop. + ## + ## atanTanh tanh(x) the original, and the default + ## atanRelu max(0, x) linear above 0, flat below + ## atanStep 1.0 if x > 0 else 0.0 a hard sign/ramp test + ## + ## All three are non-polynomial and differentiable almost everywhere, which + ## is the only property the ELM interpolation guarantee actually needs. They + ## differ in how they distribute gradient/curvature: tanh saturates on both + ## sides, relu on one, step on neither (it is piecewise constant, so its + ## "gradient" is zero a.e. and lives entirely in its jumps). + case kind + of atanTanh: tanh(x) + of atanRelu: max(0.0, x) + of atanStep: (if x > 0.0: 1.0 else: 0.0) + +proc activationName*(kind: ActivationKind): string {.inline.} = + ## Short human-readable tag, used in logs and benchmark headers. + $kind + +proc parseActivation*(s: string): ActivationKind = + ## Case-insensitive name -> kind. Raises ValueError on an unknown name so a + ## typo in a config/CLI flag fails loudly instead of silently falling back. + case s.toLowerAscii() + of "tanh": atanTanh + of "relu": atanRelu + of "step": atanStep + else: raise newException(ValueError, "elm: unknown activation '" & s & + "' (expected tanh | relu | step)") + +# ── init ──────────────────────────────────────────────────────────────────── + +proc initElm*(cfg: ElmConfig): Elm = + ## Build an ELM. Hidden weights ~ U[-1,1] * 1/sqrt(inputDim). + doAssert cfg.inputDim > 0 and cfg.hiddenDim > 0 and cfg.outputs > 0 + new(result) + result.cfg = cfg + if result.cfg.decay <= 0: result.cfg.decay = defaultDecay + if result.cfg.lambda < 0: result.cfg.lambda = defaultLambda + let scale = activationWeightScale(cfg.activation) / sqrt(float64(cfg.inputDim)) + var rng = initRand(int(cfg.seed)) + result.W = newSeq[float64](cfg.hiddenDim * cfg.inputDim) + for i in 0 ..< result.W.len: + result.W[i] = (rand(rng, 1.0) - 0.5) * 2.0 * scale + # Hidden biases are offsets, not dot products, so they are NOT scaled by + # 1/sqrt(inputDim): they span the whole [-1,1] range, which is what puts the + # tanh units across their nonlinear region and keeps the Gram matrix well + # conditioned (without them the pre-activations are tiny, tanh is effectively + # linear, the features collapse onto nearly the same direction and the exact + # interpolation of Thm 2.2 is lost to float64 round-off). + # + # The bias RANGE is activation-aware, and only for the one-sided activations. + # tanh is two-sided, so [-1,1] straddles its whole nonlinear region and is + # kept EXACTLY as it always was (the default path is bit-identical). relu and + # step are dead for s <= 0: with a symmetric bias ~half the units would start + # dead on inputs near 0 and contribute a constant (relu) or constant zero + # (step) column, so the Gram matrix loses rank and Thm 2.2 interpolation + # fails outright (measured: 20 samples in 20 nodes, trainRmse 0.16 relu / + # 0.41 step). A positive bias range [0,1] puts every unit on its active side. + result.hs = newSeq[float64](cfg.hiddenDim) + let twoSided = result.cfg.activation == atanTanh + for i in 0 ..< result.hs.len: + result.hs[i] = (if twoSided: rand(rng, 1.0) * 2.0 - 1.0 + else: rand(rng, 1.0)) + result.beta = newSeq[float64]((cfg.hiddenDim + 1) * cfg.outputs) + +proc hiddenOf(e: Elm, x: openArray[float64]): seq[float64] = + ## Random features `g(a_j . x + b_j)` per `cfg.activation`, appended with + ## the constant 1.0 bias column. + let d = e.cfg.inputDim + let L = e.cfg.hiddenDim + result = newSeq[float64](L + 1) + var j = 0 + while j < L: + var s = e.hs[j] + for i in 0 ..< d: + s += e.W[j * d + i] * x[i] + result[j] = applyActivation(e.cfg.activation, s) + inc j + result[L] = 1.0 + +# ── Cholesky: A = L L^T, then solve A x = b (in place) ────────────────────── + +proc cholesky(a: var seq[float64], n: int): seq[float64] = + ## Lower-triangular factor. Throws ValueError if A is not positive definite. + result = newSeq[float64](n * n) + for i in 0 ..< n: + for j in 0 .. i: + var s = a[i * n + j] + for k in 0 ..< j: + s -= result[i * n + k] * result[j * n + k] + if i == j: + if s <= 0.0: + raise newException(ValueError, "elm: normal matrix not positive definite") + result[i * n + j] = sqrt(s) + else: + result[i * n + j] = s / result[j * n + j] + +proc cholSolve(l: seq[float64], n: int, b: seq[float64], m: int): seq[float64] = + ## Forward then back substitution, column by column (b is n x m, row-major). + result = newSeq[float64](n * m) + var y = newSeq[float64](n) + for c in 0 ..< m: + for i in 0 ..< n: + var s = b[i * m + c] + for k in 0 ..< i: + s -= l[i * n + k] * y[k] + y[i] = s / l[i * n + i] + for i in countdown(n - 1, 0): + var s = y[i] + for k in i + 1 ..< n: + s -= l[k * n + i] * result[k * m + c] + result[i * m + c] = s / l[i * n + i] + +# ── refit ─────────────────────────────────────────────────────────────────── + +proc refit*(e: Elm) = + ## Solve the weighted ridge system over all accumulated samples. + let L = e.cfg.hiddenDim + let n1 = L + 1 # augmented dimension, bias column included + let M = e.cfg.outputs + var G = newSeq[float64](n1 * n1) + var C = newSeq[float64](n1 * M) + var wsum = 0.0 + var a: seq[float64] + for i in 0 ..< e.n: + a = e.hiddenOf(e.samples.toOpenArray(i * e.cfg.inputDim, i * e.cfg.inputDim + e.cfg.inputDim - 1)) + let w = e.weights[i] + if w == 0.0: continue + wsum += w + for p in 0 ..< n1: + for q in 0 ..< n1: + G[p * n1 + q] += w * a[p] * a[q] + for m in 0 ..< M: + C[p * M + m] += w * a[p] * e.targets[i * M + m] + # Ridge: 1 on the weights, 0 on the bias column (last) — the bias is never + # shrunk. The jitter is a RELATIVE 1e-15 of the largest diagonal, so it keeps + # a lambda = 0 model Cholesky-able on a machine that rounds a zero pivot to + # -1e-18, without leaking a fixed absolute offset into the solution (an + # absolute floor would cost ~floor*||beta||, and ||beta|| is large whenever the + # random features are collinear). + var dmax = 0.0 + for p in 0 ..< n1: + dmax = max(dmax, G[p * n1 + p]) + for p in 0 ..< n1: + G[p * n1 + p] += e.cfg.lambda * (if p < L: 1.0 else: 0.0) + 1e-15 * dmax + if wsum <= 0.0: + return + e.beta = cholSolve(cholesky(G, n1), n1, C, M) + # weighted RMS of the residual ||a.beta - t|| + var res = 0.0 + for i in 0 ..< e.n: + a = e.hiddenOf(e.samples.toOpenArray(i * e.cfg.inputDim, i * e.cfg.inputDim + e.cfg.inputDim - 1)) + for m in 0 ..< M: + var p = 0.0 + for q in 0 ..< n1: + p += a[q] * e.beta[q * M + m] + let d = p - e.targets[i * M + m] + res += e.weights[i] * d * d + var bn = 0.0 + for v in e.beta: bn += v * v + e.diag.trainRmse = sqrt(res / (wsum * float64(M))) + e.diag.lastBetaNorm = sqrt(bn) + e.diag.nSamples = e.n + e.sinceRefit = 0 + +# ── train / infer ─────────────────────────────────────────────────────────── + +proc train*(e: Elm, x: openArray[float64], t: openArray[float64]) = + ## Add one sample (weight 1) after ageing every stored sample by `decay`, + ## then refit per the policy. + if x.len != e.cfg.inputDim: + raise newException(ValueError, "elm: input dim mismatch: got " & $x.len & + ", expected " & $e.cfg.inputDim) + if t.len != e.cfg.outputs: + raise newException(ValueError, "elm: output dim mismatch: got " & $t.len & + ", expected " & $e.cfg.outputs) + for i in 0 ..< e.n: + e.weights[i] *= e.cfg.decay + e.samples.add(x) + e.targets.add(t) + e.weights.add(1.0) + inc e.n + inc e.sinceRefit + # refitEvery == 0 means "accumulate only": the caller owns the refit and + # calls refit() itself. Refitting here on every call is O(n^2*L^2) over a + # batch, which is how the original <=1 check made a 7k-sample training run + # take hours. + if e.cfg.refitEvery == 1 or (e.cfg.refitEvery > 1 and e.sinceRefit >= e.cfg.refitEvery): + e.refit() + +proc infer*(e: Elm, x: openArray[float64]): seq[float64] = + ## Current output for x. Uses the last fitted beta; no refit. + if x.len != e.cfg.inputDim: + raise newException(ValueError, "elm: input dim mismatch: got " & $x.len & + ", expected " & $e.cfg.inputDim) + let a = e.hiddenOf(x) + let n1 = e.cfg.hiddenDim + 1 + result = newSeq[float64](e.cfg.outputs) + for m in 0 ..< e.cfg.outputs: + var p = 0.0 + for q in 0 ..< n1: + p += a[q] * e.beta[q * e.cfg.outputs + m] + result[m] = p + +proc setOnlineParams*(e: Elm, decay: float64, refitEvery: int) = + ## Switch a loaded (or fresh) model into ONLINE mode: set the per-sample + ## forgetting factor and the refit cadence. Kept as a proc because `cfg` is + ## private; the offline loader fixes decay=1.0/refitEvery=0 (batch), the + ## in-game gun overrides both here. + if decay > 0.0 and decay <= 1.0: e.cfg.decay = decay + if refitEvery >= 0: e.cfg.refitEvery = refitEvery + +proc reset*(e: Elm) = + ## Drop all samples and zero the output layer. The hidden layer is NOT redrawn: + ## it is the frozen, seeded part of the model. + e.samples.setLen(0) + e.targets.setLen(0) + e.weights.setLen(0) + e.n = 0 + e.sinceRefit = 0 + for i in 0 ..< e.beta.len: e.beta[i] = 0.0 + e.diag = ElmDiag() + +# ── offline weight export / load ──────────────────────────────────────────── +# An ELM trained offline has no use for its sample store: only the three +# matrices matter (hidden W, hidden biases hs, output beta). These two procs +# move them in and out of a live model so a trained model can be shipped as a +# data file and loaded at bot startup instead of being retrained in-game. + +type ElmWeights* = object + W*: seq[float64] ## hiddenDim * inputDim, row-major + hs*: seq[float64] ## hiddenDim + beta*: seq[float64] ## (hiddenDim+1) * outputs + +proc exportWeights*(e: Elm): ElmWeights = + ElmWeights(W: e.W, hs: e.hs, beta: e.beta) + +proc loadWeights*(e: Elm, w: ElmWeights) = + ## Overwrite the matrices. Sizes must match the config exactly. + doAssert w.W.len == e.cfg.hiddenDim * e.cfg.inputDim + doAssert w.hs.len == e.cfg.hiddenDim + doAssert w.beta.len == (e.cfg.hiddenDim + 1) * e.cfg.outputs + e.W = w.W + e.hs = w.hs + e.beta = w.beta + e.diag.trainRmse = NaN # stale: the model is no longer the one that was fitted + e.diag.lastBetaNorm = NaN + +proc diagnostics*(e: Elm): ElmDiag = + e.diag diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_features.nim b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_features.nim new file mode 100644 index 0000000..5d4ade8 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_features.nim @@ -0,0 +1,140 @@ +## The ELM gun's FEATURE VECTOR — one definition, shared by the offline trainer +## and the in-game gun, so the model can never drift from its inputs. +## +## This is the MOVEMENT-PREDICTION gun's feature set. The label it is trained on +## is the correction from the plain geometric intercept to the enemy's TRUE +## impact position (`tools/elm_bench/extract_predict.py`), so the features are +## enemy-motion-centric: a window of recent scan-to-scan displacement vectors, +## plus the single-frame geometry the old gun used. +## +## Every quantity comes from the shooter's own state and its ScannedBotEvent +## history (scans are exact, one per tick in game). No oracle. +## +## Stdlib only, so the offline trainer and the in-game gun share it verbatim. + +import std/math + +const + WinCap* = 8 ## motion window: scans kept, newest first + ## Feature vector layout (FeatureDim = 32): + ## 0..13 7 newest-to-oldest displacement vectors, each divided by its own + ## tick gap and by 16 px/tick: [dx0,dy0, dx1,dy1, ... dx6,dy6] + ## 14..16 newest speed, window mean speed, window speed sd (all /10) + ## 17,18 sin/cos of the newest displacement heading + ## 19,20 sin/cos of the turn rate (angle between the two newest legs) + ## 21 curvature |dtheta| / speed, clamped to 1 + ## 22..24 belief distance /1000, sin/cos of the body-relative bearing + ## 25 our own speed /10 + ## 26 bullet speed /20 + ## 27 believed time of flight /30 + ## 28 predErr: base-intercept bearing minus current bearing, /PI + ## 29 target lateral velocity /10 + ## 30 closing speed /10 + ## 31 line-of-sight rate (lat vel / dist) + FeatureDim* = 32 + featureNames* = [ + "dx0", "dy0", "dx1", "dy1", "dx2", "dy2", "dx3", "dy3", + "dx4", "dy4", "dx5", "dy5", "dx6", "dy6", + "speed", "speedMean", "speedSd", + "sinHead", "cosHead", "sinTurn", "cosTurn", "curve", + "dist", "sinRel", "cosRel", "ownSpeed", "bulletSpd", "tof", + "predErr", "tgtLatVel", "closing", "losRate", + ] + +type + GunBelief* = object + ## Everything the gun needs, all of it legitimately observable. + everScanned*: bool + selfX*, selfY*: float ## our position NOW + selfHeading*: float ## our body heading, radians (0 = east, CCW +) + selfSpeed*: float + ownDisp*: float ## how far WE moved since the last scan (px) + scanAge*: float ## ticks since the last scan + scanGap*: float ## ticks between the last two scans (0 if <2) + ex*, ey*: float ## dead-reckoned target position NOW + vx*, vy*: float ## estimated target velocity (px/tick) + bulletSpeed*: float ## physical bullet speed, 20 - 3*power + power*: float ## the power we are about to (or did) fire at + gunHeat*: float + ## motion window, newest first. winTick[k] is the tracker tick of the + ## k-th newest scan; winX/winY the scanned position. + winX*, winY*: array[WinCap, float] + winTick*: array[WinCap, int] + winN*: int + +proc wrapAngle*(a: float): float = + ## wrap to (-pi, pi] + var r = a + while r > PI: r -= 2 * PI + while r <= -PI: r += 2 * PI + r + +proc buildFeatures*(b: GunBelief): array[FeatureDim, float64] = + ## The feature vector. Mirrors extract_predict.py exactly. All-zero when we + ## have never scanned the target. + if not b.everScanned: + return default(array[FeatureDim, float64]) + let de = hypot(b.ex - b.selfX, b.ey - b.selfY) + let ang = arctan2(b.ey - b.selfY, b.ex - b.selfX) ## line-of-sight bearing + let rel = wrapAngle(ang - b.selfHeading) + let sp = hypot(b.vx, b.vy) + let lat = -b.vx * sin(ang) + b.vy * cos(ang) + let rad = b.vx * cos(ang) + b.vy * sin(ang) + let tof = de / b.bulletSpeed + let px = b.ex + b.vx * tof + let py = b.ey + b.vy * tof + let base = arctan2(py - b.selfY, px - b.selfX) + let predErr = wrapAngle(base - ang) + + # --- motion window: displacement of leg k = scan k -> scan k+1 --- + var spdSum = 0.0 + var spdSq = 0.0 + var nLeg = 0 + var head = 0.0 + var dtheta = 0.0 + if b.winN >= 2: + var dxs: array[WinCap - 1, float] + var dys: array[WinCap - 1, float] + for k in 0 ..< min(b.winN, WinCap) - 1: + let gap = float(max(b.winTick[k] - b.winTick[k + 1], 1)) + let dx = (b.winX[k] - b.winX[k + 1]) / gap + let dy = (b.winY[k] - b.winY[k + 1]) / gap + dxs[k] = dx + dys[k] = dy + result[2 * k] = dx / 16.0 + result[2 * k + 1] = dy / 16.0 + let s = hypot(dx, dy) + spdSum += s + spdSq += s * s + inc nLeg + let nf = float(nLeg) + let sMean = spdSum / nf + head = arctan2(dys[0], dxs[0]) + if nLeg >= 2: + let phead = arctan2(dys[1], dxs[1]) + dtheta = wrapAngle(head - phead) + result[14] = sp / 10.0 + result[15] = sMean / 10.0 + result[16] = sqrt(max(spdSq / nf - sMean * sMean, 0.0)) / 10.0 + result[17] = sin(head) + result[18] = cos(head) + result[19] = sin(dtheta) + result[20] = cos(dtheta) + result[21] = min(abs(dtheta) / max(sMean, 1e-6), 1.0) + else: + result[14] = sp / 10.0 + result[15] = sp / 10.0 + + result[22] = de / 1000.0 + result[23] = sin(rel) + result[24] = cos(rel) + result[25] = b.selfSpeed / 10.0 + result[26] = b.bulletSpeed / 20.0 + result[27] = tof / 30.0 + result[28] = predErr / PI + result[29] = lat / 10.0 + result[30] = -rad / 10.0 + result[31] = lat / max(de, 1.0) + + for i in 0 ..< FeatureDim: + if classify(result[i]) in {fcNan, fcInf, fcNegInf}: result[i] = 0.0 diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun.nim b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun.nim new file mode 100644 index 0000000..075e35e --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun.nim @@ -0,0 +1,345 @@ +## The ELM GUN — a movement-prediction corrector on top of the geometric +## intercept. +## +## ## What it predicts +## +## The ELM predicts the ENEMY'S FUTURE POSITION, expressed as a correction to +## the plain geometric intercept: at fire time the classic intercept gives a +## base aim point, the ELM estimates `trueImpactBearing - baseBearing` from the +## enemy's recent motion window, and the gun adds the two. That is a movement +## predictor, NOT the old opponent-aim-bias model (which measured how far the +## OTHER bot's shots missed and is deleted). +## +## ## The baseline and the gate +## +## `heuristicAim` is the plain geometric intercept — dead-reckon the target from +## the last two scans, lead it by d/bulletSpeed. The learned correction is +## applied ONLY when `|correction| > gateTau`, the threshold calibrated on +## held-out folds (see `train_predict.nim`); below it the gun returns the exact +## geometric aim, so a small noisy nudge can never make the ELM worse than the +## baseline. +## +## ## Weights file +## +## `elm_gun_weights.txt` next to this file, written by +## `tools/elm_bench/train_predict.nim`. Plain text, one matrix per line, flat: +## +## # comment lines are ignored +## +## W hidden weights, ROW-major +## HS hidden-layer biases, b_j +## BETA <(hiddenDim+1)*outputs vals> output weights, ROW-major +## TRAIN_RMSE training RMSE at export time; diagnostic only, unused. +## GATE_TAU correction magnitude below which correction is 0. +## +## It is a data file, not code: deleting it costs the bot its learned correction, +## nothing else. +## +## ## In-game honesty +## +## Nothing here reads a ground truth. `GunBelief` is assembled by the caller +## from the bot's own state and its own scan history, and `buildFeatures` +## (elm_features.nim) is the same function the trainer fed the corpus through. + +import std/[math, os, sequtils, strutils] +import ./elm +import ./elm_features + +const + DefaultWeightsFile* = "elm_gun_weights.txt" ## next to THIS source file + FirePower* = 2.0'f64 ## The corpus is dominated by + ## mid-power shots (1.95 is + ## its mode, 2795 rows; power 3.0 + ## has 61), and `power` / + ## `bulletSpd` ARE model + ## features, so firing at 2.0 + ## keeps the in-game feature + ## distribution inside the + ## trained one. Damage per hit + ## is 8 instead of 12. + MaxAimShift* = 0.5 ## rad. The learned correction is clamped: the fit law is + ## label ~= 0.87 * predErr + 0.04 rad, but a 0.5 rad + ## correction is already a full miss at any range, and an + ## unclamped outlier on a stale belief would point the + ## gun into the wall. + + ## ── ONLINE LEARNING knobs (see README "Online-learning gun") ──────────── + OnlineDecay* = 0.999 ## forgetting within the battle (reused tuning) + OnlineRefitEvery* = 25 ## shots between closed-form refits (reused tuning) + OnlineMinSamples* = 12 ## gate stays CLOSED below this many online samples + GateRatio* = 0.95 ## gate opens only when modelErr < ratio * zeroErr + OnlineEmaAlpha* = 0.08 ## EMA memory for the held-out gate error (~12 samples) + TraceCap* = 256 ## per-tick enemy position history for delayed labels + TraceTolTicks* = 3 ## label lookup tolerance: nearest scan within this + MaxPending* = 64 ## fired-but-unresolved shots kept at once + +type + ElmGun* = ref object + model*: Elm ## the model, trained ONLINE during the battle + loaded*: bool + gateTau*: float ## |correction| below this -> geometric aim + lastCorrection*: float ## last raw ELM output, rad — the calibration + ## probe the battle harness reads + ## ── online state ────────────────────────────────────────────────────── + online*: bool ## true: feed delayed-label samples in-game + priorBeta*: seq[float64] ## the loaded output layer, BEFORE scaling + priorScale*: float64 ## 0.0 = neutral start; >0 = weak-prior start + pending*: seq[PendingShot] ## fired shots whose true impact is not due yet + traceTick*: seq[int] ## per-tick enemy positions (delayed labels) + traceX*, traceY*: seq[float64] + nOnline*: int ## samples resolved for THIS opponent + modelErr*: float64 ## EMA of (model pred - label)^2, held-out style + zeroErr*: float64 ## EMA of label^2 = zero-correction error + gateOpen*: bool ## novelty gate: correction applied only if true + + PendingShot* = object + ## One fired shot waiting for its label. Keyed by `dueTick`. + feat*: array[FeatureDim, float64] + base*: float64 ## geometric intercept bearing at fire time + selfX*, selfY*: float64 ## our position at fire time + dueTick*: int ## fire tick + time-of-flight in ticks + + GunAim* = object + aim*: float ## ABSOLUTE bearing (rad) to point the gun at + x*, y*: float ## the same point as absolute coordinates + ## (GunPrediction's contract, see + ## common_libs/gun_harness/gun_interface.nim) + confidence*: float ## 0.0 = no signal: this is a deterministic + ## geometric aim, it casts no composite vote + correction*: float ## the learned part, 0 for the baseline + +proc defaultWeightsPath(): string = + ## Resolved at compile time from this file's own location, so the current + ## working directory at bot start does not matter. + currentSourcePath().parentDir / DefaultWeightsFile + +proc readFloats(f: File, n: int, path: string): seq[float64] = + ## `n` space-separated floats, spread over as many lines as needed. + result = newSeq[float64](n) + var got = 0 + var line: string + while got < n: + if f.readLine(line) == false: + echo "[elm_gun] ", path, ": truncated, wanted ", n, " floats, got ", got + return @[] + for t in line.strip().splitWhitespace(): + if got >= n: break + result[got] = t.parseFloat() + inc got + if got < n: return @[] + +proc loadWeightsFile(g: ElmGun, path: string): bool = + ## Parse the format above into the live ELM. Returns false (and says why) + ## instead of raising: a bot with no gun is still a working bot, and the + ## harness must be able to report "ELM unavailable" rather than crash. + if not fileExists(path): + echo "[elm_gun] no weights at ", path, " — gun disabled" + return false + var cfg: ElmConfig + var haveCfg = false + var w, hs, beta: seq[float64] + var f = open(path, fmRead) + defer: f.close() + var line: string + while f.readLine(line): + let t = line.strip() + if t.len == 0 or t.startsWith("#"): continue + let parts = t.splitWhitespace() + case parts[0] + of "W": w = readFloats(f, cfg.hiddenDim * cfg.inputDim, path) + of "HS": hs = readFloats(f, cfg.hiddenDim, path) + of "BETA": beta = readFloats(f, (cfg.hiddenDim + 1) * cfg.outputs, path) + of "TRAIN_RMSE": discard + of "GATE_TAU": g.gateTau = parts[1].parseFloat() + else: + # header row + cfg = ElmConfig(inputDim: parts[0].parseInt(), hiddenDim: parts[1].parseInt(), + outputs: parts[2].parseInt(), lambda: parts[3].parseFloat(), + decay: parts[4].parseFloat(), seed: parseBiggestInt(parts[5]).int64, + activation: parseActivation(parts[6]), refitEvery: 0) + haveCfg = true + continue + # a matrix tag: an empty read means the file was truncated mid-matrix + if (parts[0] == "W" and w.len == 0) or (parts[0] == "HS" and hs.len == 0) or + (parts[0] == "BETA" and beta.len == 0): return false + if not haveCfg or w.len == 0 or hs.len == 0 or beta.len == 0: + echo "[elm_gun] ", path, ": incomplete weight file — gun disabled" + return false + if cfg.inputDim != FeatureDim: + echo "[elm_gun] ", path, ": trained for ", cfg.inputDim, " features, this ", + "build has ", FeatureDim, " — gun disabled" + return false + g.model = initElm(cfg) + g.model.loadWeights(ElmWeights(W: w, hs: hs, beta: beta)) + g.loaded = true + true + +proc initElmGun*(path: string = "", priorScale: float64 = 0.0): ElmGun = + ## Build the gun and load its hidden layer + output prior. `priorScale = 0` + ## starts NEUTRAL (zero output weights, learns purely online); `priorScale > 0` + ## starts from the pooled pretrained `beta` scaled down by that factor. The + ## hidden layer is always the pretrained one so the two arms share W/hs and + ## differ only in the output-layer starting point. + new(result) + result.priorScale = priorScale + result.online = true + if not loadWeightsFile(result, if path.len > 0: path else: defaultWeightsPath()): + return + # Online mode: reuse the held-out-validated decay/refit tuning instead of the + # batch defaults the weights file was exported with (decay 1.0 / refit 0). + result.model.setOnlineParams(OnlineDecay, OnlineRefitEvery) + result.priorBeta = result.model.exportWeights().beta + if priorScale == 0.0: + result.model.reset() # neutral: zero beta, no samples + else: + var b = newSeq[float64](result.priorBeta.len) + for i in 0 ..< b.len: b[i] = result.priorBeta[i] * priorScale + let w = result.model.exportWeights() + result.model.loadWeights(ElmWeights(W: w.W, hs: w.hs, beta: b)) + +proc resetOnline*(g: ElmGun) = + ## New opponent => drop every online sample and restore the starting output + ## layer (neutral, or the scaled pooled prior). Hidden W/hs are never redrawn. + g.pending.setLen(0) + g.traceTick.setLen(0) + g.traceX.setLen(0) + g.traceY.setLen(0) + g.nOnline = 0 + g.modelErr = 0.0 + g.zeroErr = 0.0 + g.gateOpen = false + g.model.reset() + if g.priorScale > 0.0 and g.priorBeta.len > 0: + var b = newSeq[float64](g.priorBeta.len) + for i in 0 ..< b.len: b[i] = g.priorBeta[i] * g.priorScale + let w = g.model.exportWeights() + g.model.loadWeights(ElmWeights(W: w.W, hs: w.hs, beta: b)) + +proc noteEnemyAt*(g: ElmGun, tick: int, x, y: float64) = + ## Append one observed enemy position to the trace that delayed labels read. + g.traceTick.add tick + g.traceX.add x + g.traceY.add y + if g.traceTick.len > TraceCap: + g.traceTick.delete(0) + g.traceX.delete(0) + g.traceY.delete(0) + +proc tracePos(g: ElmGun, dueTick: int): tuple[ok: bool, x, y: float64] = + ## Nearest traced enemy position to `dueTick`, within TraceTolTicks. + var best = TraceTolTicks + 1 + for i in 0 ..< g.traceTick.len: + let dt = abs(g.traceTick[i] - dueTick) + if dt < best: + best = dt + result = (true, g.traceX[i], g.traceY[i]) + +proc updateGate(g: ElmGun) = + ## Novelty gate. Closed until enough ONLINE samples exist, then open only while + ## the model predicts the true correction better than assuming zero. Being + ## closed means the exact geometric intercept — never worse than baseline. + if g.nOnline < OnlineMinSamples: + g.gateOpen = false + else: + g.gateOpen = g.modelErr < GateRatio * g.zeroErr + +proc feedSample*(g: ElmGun, feat: openArray[float64], label: float64) = + ## One resolved delayed-label sample. The CURRENT model is scored against the + ## label BEFORE it trains on it, so `modelErr` is a genuine held-out error, and + ## `zeroErr` is what always aiming at the plain intercept would have cost. + if g.nOnline > 0: + let pred = g.model.infer(feat)[0] + let e = pred - label + let a = OnlineEmaAlpha + g.modelErr = (1.0 - a) * g.modelErr + a * e * e + g.zeroErr = (1.0 - a) * g.zeroErr + a * label * label + g.model.train(feat, @[label]) + inc g.nOnline + g.updateGate() + +proc recordShot*(g: ElmGun, feat: array[FeatureDim, float64], base, selfX, + selfY: float64, dueTick: int) = + ## Enqueue a fired shot; its label only exists `tof` ticks from now. + if g.pending.len >= MaxPending: + g.pending.delete(0) + g.pending.add PendingShot(feat: feat, base: base, selfX: selfX, selfY: selfY, + dueTick: dueTick) + +proc drainPending*(g: ElmGun, nowTick: int) = + ## Resolve (or drop) every shot whose flight time has elapsed. Reads the + ## enemy's actual position from the trace and trains on + ## wrap(trueImpactBearing - geometricInterceptBearing), the validated label. + var i = 0 + while i < g.pending.len: + let p = g.pending[i] + if nowTick < p.dueTick: + inc i + continue + let tp = g.tracePos(p.dueTick) + if tp.ok: + let trueBearing = arctan2(tp.y - p.selfY, tp.x - p.selfX) + g.feedSample(p.feat, wrapAngle(trueBearing - p.base)) + g.pending.delete(i) + +proc heuristicAim*(gun: ElmGun, b: GunBelief, power: float64 = FirePower): float = + ## Baseline A: plain geometric intercept, no learning. Returns the ABSOLUTE + ## bearing to aim at, or NaN when there is no belief at all. + if not b.everScanned: return NaN + let v = 20.0 - 3.0 * power + let d = hypot(b.ex - b.selfX, b.ey - b.selfY) + let tof = d / v # one iteration, exact for a constant bullet speed + arctan2(b.ey + b.vy * tof - b.selfY, b.ex + b.vx * tof - b.selfX) + +proc elmCorrection*(g: ElmGun, b: GunBelief, power: float64 = FirePower): float = + ## The ELM's predicted aim error in radians, clamped to +-MaxAimShift. + ## NaN when the model is unavailable or we have never scanned anything. + if not g.loaded or not b.everScanned: return NaN + if g.online and not g.gateOpen: + return 0.0 # novelty gate closed: exact intercept + var bb = b + bb.power = power + bb.bulletSpeed = 20.0 - 3.0 * power # physical speed, matches heuristicAim + let feat = buildFeatures(bb) + let corr = g.model.infer(feat.toSeq())[0] + g.lastCorrection = corr + if abs(corr) <= g.gateTau: + return 0.0 # gate closed: exact geometric aim + clamp(corr, -MaxAimShift, MaxAimShift) + +proc predictAim*(g: ElmGun, b: GunBelief, power: float64 = FirePower, + useElm: bool = true): GunAim = + ## The gun's per-tick output, GunPrediction-shaped. `useElm = false` is the + ## pure-heuristic baseline; it is the same call with the learned term switched + ## off, so the two differ by exactly one thing. + let base = heuristicAim(g, b, power) + if base.isNaN: return GunAim(aim: NaN, confidence: 0.0) + # One bearing, ONE coordinate computation: fold the learned term (when the + # model is active and returns a number) into `aim` first, then derive x/y + # from the final bearing exactly once. The old version recomputed x/y for the + # baseline and again for the ELM aim, which is how the two could drift apart. + var aim = base + if useElm and g.loaded: + let corr = elmCorrection(g, b, power) + if not corr.isNaN: + aim = base + corr + result.confidence = abs(corr) + result.correction = corr + let d = hypot(b.ex - b.selfX, b.ey - b.selfY) + result.aim = aim + result.x = b.selfX + d * cos(aim) + result.y = b.selfY + d * sin(aim) + +proc gunAimErrorDeg*(aimRad, gunDirDeg: float): float = + ## Short-way gun error in DEGREES between a predicted ABSOLUTE bearing + ## (`aimRad`, radians, 0 = east CCW+) and the gun's current heading + ## (`gunDirDeg`, degrees — the API's unit). + ## + ## THE single rad->deg conversion point at the fire-decision boundary. The + ## name carries the output unit, so `abs(gunAimErrorDeg(...)) <= FireSlopDeg` + ## can only ever compare degrees against degrees. The historical bug compared + ## a degree error against `degToRad(FireSlopDeg)`, i.e. 0.052 deg of slop. + ## Matches the API's `normalizeRelativeAngle` ([-180, 180)) without pulling + ## the API into this stdlib-only module. + result = (radToDeg(aimRad) - gunDirDeg) mod 360.0 + if result >= 180.0: result -= 360.0 + elif result < -180.0: result += 360.0 \ No newline at end of file diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun_weights.txt b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun_weights.txt new file mode 100644 index 0000000..92ec7f9 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/ELM/elm_gun_weights.txt @@ -0,0 +1,12 @@ +# ChimeraBot MOVEMENT-PREDICTION ELM gun weights. Plain text. +# inputDim hiddenDim outputs lambda decay seed activation +# dx0 dy0 dx1 dy1 dx2 dy2 dx3 dy3 dx4 dy4 dx5 dy5 dx6 dy6 speed speedMean speedSd sinHead cosHead sinTurn cosTurn curve dist sinRel cosRel ownSpeed bulletSpd tof predErr tgtLatVel closing losRate +32 256 1 0.01 1.0 12345 tanh +W 8192 +0.0911925883870272 0.168671574682194 0.10686038203673356 -0.09966775994455049 0.13763905273371593 0.12791746771402532 -0.05532515373390199 0.09486140550075128 0.05414735890244529 -0.0007012805505406936 0.002165079930164862 -0.1673791186842604 -0.11702552245387603 0.09139395223408105 -0.027110600246848488 -0.1730988884024373 -0.10749092988248748 0.02752307958668185 -0.07034743349356778 -0.06531317867693429 -0.05688232422944877 0.012106207700799586 -0.08451361658685087 0.10540242857224824 0.03763600206671655 -0.14794943767296062 -0.06367703645619172 0.013948245502050292 0.14089007819936028 -0.026884650417112407 0.09208052338622988 -0.06468866681387131 0.06141992117465138 0.0015603137267211874 0.1372656429274018 0.026104563011967574 -0.11060904451634337 -0.17035951492900725 -0.09218567778896217 -0.07972149431899704 0.1569697008600871 0.13313145403487653 -0.17198023449069522 -0.019031841441695885 0.04139513888587291 -0.12670537457273887 0.08740083696137667 0.046278840561948 -0.030377012855777093 -0.1238444857369203 0.05823266713635909 0.029322008080149124 0.06716294297417329 -0.12076985538233288 0.14742731793025515 -0.03440817843698209 -0.05749035561166572 -0.01709034032350662 -0.0009596231348321296 0.101428180309807 0.13276900655574633 -0.10607657715398172 -0.0999114887999393 0.17098260451678174 0.16746250344659078 -0.061443428735958476 -0.07575497307470747 0.17212126222889462 -0.08012169491592833 -0.12078398587402354 0.10670265841741229 0.15603960996572136 -0.033489480987643275 0.16697504770067934 -0.005715379598286058 -0.1192916037638116 -0.1665487679940831 0.016457713439888697 0.13840041802051137 -0.057614460482730855 -0.08228524189752728 -0.023434082569350128 -0.03879350763547242 -0.01682868616780268 0.14055919986038154 -0.15271001558267908 -0.016865263900623557 -0.17438707967539582 0.02138537251038786 0.09535901642142704 0.11328337660247532 -0.07928348901789596 0.13260541564082606 -0.14563856843841919 0.03845235148281959 -0.17670284297054545 -0.050206270918203955 -0.09043934123549797 -0.027732008680590472 -0.06619277064987253 -0.1627298230437942 0.12796634387582037 0.1023271553721415 -0.0618074262057271 0.05247802167303864 -0.09676771174758098 -0.13924786591740265 -0.004503860116239451 -0.10618210615021186 -0.01794575723659486 0.022385085154725454 -0.05464753856760581 0.14161017919040902 0.1554455372116502 -0.16985116623443472 0.1576668284711419 -0.12891719930768467 -0.025322785393241422 0.01852312712294565 0.12007368105535045 0.16863958419876912 0.14005601332616113 0.1432423500340289 0.0766511181432901 -0.11520383890393233 -0.1248079178008103 0.1214563408116575 -0.0561262478586457 -0.12440557205987957 0.11720065806501853 0.046342591865239355 0.09412174894102646 -0.1627201040058998 0.16134327734327275 0.071003924444472 0.022802382789934385 0.025145751908895023 0.03706434517453457 0.14354580220400762 -0.07283203312615233 -0.10867122507142529 -0.091706858069562 0.16963142592454208 0.10174565201354287 0.16625750733326022 0.066288530741494 0.015335288255252221 -0.1432240209440866 -0.01626971274244379 -0.009324510530038832 0.07145234859215195 0.12422565918214143 0.16553581375635268 0.015564384601496865 0.14021891250715302 -0.07366831641890763 0.03579590851301559 -0.09545355817649129 0.17193145763500056 0.09539882764124148 -0.1620440409421885 -0.1440223621515824 0.06620428243573726 0.17365919524954943 -0.1386368377094737 0.058623318832738455 0.007793002979146053 0.08834885536525877 0.08399152520116358 -0.09550183996990357 -0.029482071011153296 -0.035803486420457165 -0.02866549446944351 -0.003732718971086083 -0.12013070465310192 0.12945503379452078 0.021614663372911257 0.14693631736166024 -0.15178023810280983 0.11998121683259741 -0.03166684179398787 0.052002207921052514 0.12981714530701213 -0.1013564610081481 -0.06387149625423381 -0.04925585898662365 -0.13638424688980877 0.041241513398696104 -0.09397187676643975 0.14390837811125853 0.14861063031335453 -0.03891773769308565 0.12201582883301859 -0.15548824527409855 0.09354960356553975 0.1580808956774408 0.12671181033914233 -0.1446791557562921 0.017835892499127672 0.14470482466958476 -0.11273635590065986 0.15565984934744226 -0.07273555036406244 0.10928319595185344 -0.07644019919941258 -0.1498031923473952 -0.1652177131173917 0.08008996614338802 -0.09222318140681643 0.12493839113461479 0.026497017152984102 0.057764781162528436 0.14037765201711386 -0.1341502502060633 0.10317232810485562 -0.033043950769459686 -0.0622108698895557 -0.08681516765563477 -0.005728718135877136 0.0052936804711697155 0.1699068116685154 -0.06820177633184576 -0.15400470709153716 -0.06233873644538489 -0.11587983409080418 -0.035231612414564295 0.08990331778070448 0.024123654976971574 0.12109722639452027 -0.008704909337450448 0.0816889802552161 -0.13346532236108605 0.1649368634399324 0.07517916750147961 -0.08575218925684645 0.09745166206180303 0.055502230439865935 -0.06023804384424681 0.1637270905933594 -0.1373419580398842 0.028256993375167617 0.12693251681671044 -0.10937314253940748 0.11025266045809232 -0.0036892984893991555 -0.17267090165538962 -0.13556139869835357 -0.02711663023544768 0.04865670388859401 -0.10619645162685026 -0.15630478402570575 0.1635221377685333 -0.1284214414934607 -0.15930160834418436 -0.13853345297152064 0.013048487565738414 0.1638737602873667 -0.025840817190069282 -0.12109182347847666 -0.1706169193687141 0.03586352024456992 0.06433201463389493 -0.1103264946472563 -0.09531408935964453 -0.06337337113588273 0.11115213751245293 0.05460233389298252 -0.16509154281973823 -0.06483136916505793 -0.09098378328102606 0.11666437456569657 -0.1061176218149268 0.06570568126239607 -0.08175936747744329 -0.04314980502776175 -0.15694368829069216 0.09819864683117385 -0.16863281495863172 -0.045640050644051786 0.17257752983098412 -0.07274211232021131 0.06284043820313147 0.12445160995293895 -0.008865259293765608 -0.006727760377602841 -0.13748693506585122 0.16676774813265025 0.07426517951530247 0.028148569552428924 0.15251519711784506 -0.0017260421501052777 -0.04355734435623067 0.16261483235392865 -0.10366068809384178 0.011793102458404188 -0.02926707419204059 -0.09756520613992466 -0.12152075823762529 -0.011260425885115204 -0.04956944518253631 -0.1098963019484771 0.011694207202957357 0.15332003299863303 0.10001809478152758 -0.02502695990270402 -0.027803884685345972 -0.029817990258014272 0.17076871030389598 0.013819996313345394 0.04983006802947205 0.06030351736318242 -0.12830325379488233 0.027344899287840993 -0.0411700084169598 0.002020577396615465 -0.12378921890877462 0.15057056632145127 -0.10053272147536788 0.028314843011189708 -0.068979244246772 0.007199692805171529 0.10035591282301698 0.17069115517690608 0.06525365263402935 0.09966092441965808 -0.1532517149440014 0.06437438186936406 0.009905753657356938 -0.14380228174758974 0.14143109509317156 -0.01922830896642171 0.01965377715069032 -0.13789959503832427 0.030955932872240355 -0.13670627269538724 0.15098624245962758 0.11485677651494737 0.09040761156782731 -0.12479476209173394 0.07612427180684936 0.1134111221271387 -0.11486042273614498 -0.014013602656529605 0.10390034734782586 -0.1354684343076438 0.037878364992630816 0.0929441611691728 0.08328080319682492 0.06668311178064883 0.10398855968290888 -0.1419174966095239 0.005830723545256843 0.10014618947385168 -0.05492951718378075 0.14179538305393635 0.08494145448273685 0.01847900495216005 -0.1490991471346801 -0.048887760940007824 -0.0005327524250833073 -0.12238146910343094 -0.1471564188701846 -0.07735511437724865 -0.12298026083017854 0.04765546197738047 -0.009211735389919085 -0.06631811076378762 -0.07506332693637678 0.09039544840247192 -0.08954367399632361 -0.004813548413996392 -0.12568180128919676 -0.12580013440638022 -0.05940740079535442 0.14099271468865238 0.16030961282373915 0.08095208858732793 0.12729129508045475 -0.1393076489917144 -0.0784844966553432 0.03451958270332824 -0.08923733973478468 0.1457281784508435 0.15379368504197768 -0.002941527329403322 -0.1027202938610621 -0.1687980908157461 -0.16630866466860986 0.021726751872799245 -0.1590477097501386 0.16961203842542957 0.14972837337325104 0.029084496244973574 0.1127738837124721 -0.09679879779472525 -0.08773675482344993 -0.052141338265083555 0.1097055141887397 0.14761390496107693 -0.17345179684152706 -0.14271454776798684 -0.0018821122274903308 0.0801069678341636 0.09714011088789473 0.008397635459954351 0.13723922732544183 -0.11631401743219814 0.13716616711422722 0.1108963741373753 0.04135571724932369 -0.12805265244454744 0.034086705858098844 0.14350516807550204 0.09992297389376867 -0.08618152915795367 0.1234754470140466 -0.1677132325229116 -0.04298153659695587 0.14946358612022312 -0.15986975817428126 -0.06618798473690199 -0.0406804604272795 -0.057644842945345144 0.03494442990491782 -0.08367401029265106 0.07229601784717318 -0.16223222280733307 0.12175986122370534 0.1416112458570114 0.15108767945091806 0.028831752227531548 0.05765294391581428 0.06888427293196091 0.006737180280440151 -0.01571592151067973 0.025716056411577686 0.16296221135635958 0.08204976334440406 0.16032574027311267 0.1513901989519017 -0.07294987201695158 -0.009410476873411245 -0.09145891930340895 -0.08969336369740433 0.03149996465776784 0.035172755981211105 0.029999629138203043 -0.09380829342937345 -0.06712196846431773 -0.12999856831761653 0.12262246020395663 -0.13738876745216108 0.08598774318166592 0.04652067412148531 0.08925052933064843 -0.006761847075439743 -0.018302826975520395 -0.1620063650263881 0.05656867840416584 -0.09034240427637873 -0.08955515702795892 0.1222434849226105 -0.1502890158951967 0.15627129710691468 -0.12849964730070945 -0.12199571177372479 -0.11661996024958123 0.15302957276740778 -0.07438725137204566 0.010076706288497425 0.12559886307316184 -0.11870140003474358 -0.07785157063552164 0.015706788615941818 -0.06615914468211412 -0.16924526337377285 0.03296104380823729 -0.09613992311135088 -0.0658808838849876 0.09388839768113832 0.09904355674113842 0.166683906509853 -0.14453161623864003 0.05453194429853113 0.04540323403833772 0.11689635426415984 0.009354526269546514 -0.15181857238204674 -0.09380876731226194 -0.09999089153502136 0.05349513877068545 0.10194687447590613 0.09309550988434788 -0.06066383054306096 -0.004756246183378239 0.12807513393889505 0.008377114169444996 0.14220087516489435 0.048368910094199406 -0.14793793739726102 0.05299595583634498 -0.08548977732654353 0.15786841432563645 0.04044718158503118 0.0495476587942969 0.09625661430854975 -0.13457627578367015 0.025507454025039015 0.11348054186992314 0.13693603562040282 -0.10961200400987742 -0.11707813800603767 -0.0043031958871564005 -0.11334525975485579 0.08634923057645581 0.16884809117660002 -0.09756554049662249 0.08904266204333611 0.012665280983184247 -0.052819800886935754 0.10450913864680071 -0.08509541014870159 -0.11780834573655663 0.14526738306556783 0.02758246170744631 0.17278503632569223 -0.022559023370491597 -0.049475984768050076 -0.03354387065447442 -0.16065209828566498 -0.01111450784367475 0.08846176726592243 0.13890507899831778 -0.07092077115629676 -0.15398129996373763 0.07856888966383661 0.087042182114868 -0.041483785643590385 -0.003657360782609782 0.17603265197553397 0.031400663208299116 0.14353706441720138 0.14994995056955573 0.035529843376587364 -0.022158753860769355 0.008641593405650107 -0.04620615411128361 -0.07273672103061657 -0.0785280028868385 -0.06415046277155331 -0.08103927878802052 0.04512702002472746 0.11974018410007418 0.1332344007206891 -0.03400770132024918 -0.17671507216799165 0.13760188918148136 -0.12566119323420316 0.1634122431121199 -0.17223911187525576 0.15372060065211343 0.03805156155354787 0.004584465265839519 -0.0977071995752215 0.01922623778449357 0.08813784661041348 -0.08732155626139591 0.13256851524719646 0.0056928409695191995 0.050951226798282866 0.05542097855776348 -0.024543397866759485 -0.10299503157004675 -0.06607303772850229 0.09757801506987877 0.01646393111130104 -0.09076695600831965 -0.09383465899968856 0.04900507018026301 -0.09357606477033324 0.054704657202325375 0.09555617193558022 0.14548107619840628 -0.008962613136778017 0.12550091291825188 -0.09187134464930512 0.12874811290817287 -0.05142361374960389 0.0015215580455484653 -0.16655244262769253 0.006926256621452381 -0.06551539570104185 0.12315874026593993 -0.11131537363643003 0.1484615729999875 0.16946131326039432 -0.15828673178734584 0.06175461807299828 -0.07094302679949534 0.0593361185005643 -0.06974439869198651 0.09435335775784259 0.019272598039410754 -0.09960895927954928 -0.16471202440866958 -0.1087431531381441 -0.038952555255656246 0.08238109118607442 -0.059167973160184004 -0.051627135257059246 -0.06842803048926605 -0.11827515556726505 -0.145111525135864 0.08774462902316155 0.022810672332606453 -0.12811719292405624 0.11632668157483109 0.030588174081084305 -0.10077130434865864 0.13955923778910675 0.04984265767907497 0.125233217628798 0.15179677445975764 -0.023049895414205157 0.05989275499084175 0.04310997089664009 0.15335925703798434 -0.10297621695596716 0.04726489437427418 -0.11781092625681208 -0.09552423047948612 -0.0027277812717946192 0.0033872674428729404 -0.12904485642668032 -0.09253086085750716 0.06869844747429123 -0.11935069208796617 -0.08195513186170571 -0.0200574742285219 -0.04454832696925515 -0.06617496918837903 0.07162034729481599 0.1458161916492114 -0.1339335381271763 -0.13306493957797685 -0.01311372408576899 0.05505508793829213 0.10798154040660736 0.14120239706947993 0.08156113246567705 0.1741181694218326 0.06560298387958796 -0.16786479328793805 0.02567728990393832 0.07291736431715803 0.09793337403070299 0.15073413319941245 0.1615336406819815 -0.09786016509971168 0.09770363114897807 -0.17033386422984198 0.09231906311078883 0.10898947780280785 0.07252547474436098 0.06073911866303626 0.16749599886844246 0.008640720534261187 -0.05383414525558734 0.015751591863436956 0.00241299337280464 0.15271537068756055 -0.05793402236561135 0.10257717784935294 0.03349087179982325 0.03843573422651343 -0.07009143727960938 0.1146815934794162 -0.02240728337899876 0.1424861977583769 -0.0008769300216719821 -0.04519299337026296 0.036259163640255894 -0.10826077485404421 -0.027398270731237635 0.09998749935030143 0.03850002552415667 0.06065130851917717 -0.06014879635273744 -0.11804916044721915 -0.17049679003874776 0.06654993885117107 -0.05741018741029273 0.018283978893363778 -0.10145001788743249 0.15100465517489475 0.013592881345076836 0.1433736113923974 0.014442086944351805 0.0030436390413387804 -0.10457528392444429 -0.07773236090303545 0.16733942546186112 0.03561334730331545 0.17494945144880153 0.12182453258821746 0.1601599230796581 -0.019663922743721342 0.011766181335776366 0.015471737524657168 0.08061512918853907 0.016906104773113658 0.13370385424140058 -0.004884153486526549 0.07107340640443943 -0.049807327614626806 -0.03598837052983369 0.13622685428639636 -0.07420128704625549 -0.10521653970915382 0.09820885442730036 0.08231611195944469 -0.04653357055369308 0.13839121908300012 0.08828461620061329 -0.17454141497516237 0.07033853331237173 0.10106351704425959 0.023031582169501453 -0.10093237321056563 0.009308728674604435 -0.13213685513784013 -0.04137945629378665 0.07532193803197437 -0.0007592306600722483 0.03804901921958616 -0.01877356822750619 -0.05435862920812612 -0.11430018994221225 0.1611083198329719 0.014293371609845675 -0.06909517314682921 -0.15131381437741195 0.027373622431849015 0.14084313395175152 -0.13739460565007197 -0.10082582115232704 -0.0766761509230827 -0.07997513744492034 -0.1385171292746823 0.008309458415973362 0.15947337179682497 -0.04447418475194523 -0.013391059424758163 -0.16665625408909998 0.1622099699146179 -0.12525752362679285 0.07687640378471197 -0.09891634492608305 0.13046219100412332 0.03835613817388768 -0.0229176584527505 -0.034329307245630956 -0.16137873972644282 0.06421055715548822 -0.14087757045161697 0.020388185295316826 0.16290658650838075 -0.061473153700981636 -0.05789895767779316 -0.11663885937806345 0.038361903315077446 -0.026655116971498714 0.0032520503357701693 -0.08877313347303739 0.13378942651953188 -0.17193313765963048 0.15507267371724331 0.15410601119304818 0.08471963786635843 -0.06894734098437054 0.062262257499294815 -0.08997953542033787 -0.0012044183055683097 0.0608100797749292 -0.1191567465867078 0.016350447902201817 -0.07037657900781086 0.05841539741375704 0.14489017531336268 -0.1316287487697309 -0.04520488710367445 -0.00093596011853017 -0.1423470944383557 -0.046990506910051986 0.048989129855269424 0.024171399780616165 0.17627730885188006 0.09351243392367499 -0.11241254714437351 0.12571791929235332 -0.007560076882307341 0.14435736505711902 0.0032037120182865702 -0.08754813182191498 -0.08670050520955873 0.12052951799913413 0.02296328825618209 0.03324199954373219 -0.1635119197688825 0.07141672138007786 0.11798431972090162 0.04601838694421049 0.025679174200047703 -0.15715499402510769 0.17613824655488214 0.14402012065525138 -0.16603358014170166 -0.017882685299377137 -0.03063960848837262 -0.03978260272415849 0.03725696792368782 -0.07935922861094517 0.014678823444054839 0.11266294736591326 0.08029942289269901 -0.15629053934226655 -0.0694809856335516 -0.09989841029962013 0.06910087427554365 -0.15846802097057847 0.16315397258425235 -0.01848548210970031 -0.13240134247822388 -0.08918338850372727 -0.17373467171011334 0.14947111030154617 -0.09570287946817391 -0.000006969957375835745 0.14905946709740356 -0.14939612380301145 0.06878223548504336 0.116367353173668 0.15042734597487747 0.14891841720891721 0.049788548732255286 -0.050496679449504894 -0.14508378228508856 -0.016472917015756077 -0.043869576976842364 -0.12336304266935472 0.13261790845388732 -0.15038270453114905 0.019791096564621947 -0.07591683673741115 -0.06388642467548664 -0.07889982866254026 -0.09541108913596547 0.017748889609677295 0.12776522685088187 0.15981320171160898 0.09855520826007193 0.013735745751345839 -0.15428612571302058 -0.04924320988720434 0.12033741383850792 -0.12578615866386617 -0.11795016906431184 0.06874301665188072 0.08378806993428471 0.13915940344399677 -0.00250636731180397 0.12051897251818494 0.004558843413371837 -0.14467371562689182 -0.02694774067458117 -0.14467829178299765 -0.052739150488728626 -0.16485994785989555 0.023287006755125964 0.06433470330978201 0.09403762141331487 0.05390384665894273 -0.09977957657804093 0.09128224985794538 -0.06539539178136956 -0.17548284024755811 0.061795424831666626 -0.00494338165985316 -0.07466789136229615 -0.14651297495539983 0.16650160400947772 0.12402525690905392 0.07351136705964853 0.020800013549619058 -0.10287836625516551 -0.15652354914883396 0.12332126730602995 0.04742416943431907 0.13117174718471242 -0.028237003288506018 -0.0757282743686946 0.11461588249521122 0.12026915238391744 -0.1096933865589371 -0.09698769641432044 -0.09108722925455845 0.06032177111034725 0.06191187923652198 0.01236804301126821 -0.1302512477416319 -0.06664178226633809 -0.020157739885856684 -0.09845770245724796 0.1055833509028596 -0.13700317068521162 -0.013160454559055207 -0.011936187909370014 0.09336677893845949 -0.14621683740321093 -0.15129978034377245 -0.11945113439264814 -0.025862371573786357 0.1641808269182496 -0.04034341592795481 0.018869116263143207 -0.09661812795314323 0.020934653242896492 -0.13979823881608724 -0.11442337286908319 0.032623066332332806 0.1279443097448693 -0.11888022185161343 -0.17437497144488065 0.11781225669350598 -0.15889940239553335 0.12798430819706605 -0.1384505190608813 0.022011652817871086 0.04537050046803796 -0.0899973728692786 -0.028139456872708746 0.08886708198190248 0.13827033520437118 0.16069009018089214 0.016110059168123008 -0.11379715724051037 0.09858936960452751 0.03244328423095924 0.16869405489645353 0.07653831556933932 0.1523167258669583 -0.0690588656619936 0.005323976553654862 0.03588018386287535 0.11042684600286581 -0.00995005783713047 -0.13239184963224632 -0.037146711421815144 -0.028142345586229373 0.039940183234289516 -0.1060810267133901 0.12121446424302267 0.11559037851245316 -0.09291011025153147 0.04059641484522941 0.1374469300884004 -0.0903685734097421 -0.018153705600392367 0.0786557898990955 -0.012572065472646938 0.13401951351850527 0.07862183044512153 -0.06132802810151465 0.1754716940873848 0.16767568510335987 -0.09415843335444014 -0.11562865131084644 0.10532880256253994 -0.061406137891692913 0.17539147424426688 -0.061198758366789216 0.1333191739752073 -0.05810388073824667 0.0019035016221159323 0.11573914480031619 -0.15892876195886302 -0.037193008142825744 -0.040396286278281776 -0.1205191066839618 -0.07175792307352254 0.15298806174501556 -0.15185213711265064 -0.09915964423494192 -0.1651439077600938 -0.10120695878118723 0.1016882775263964 0.011280897132077673 0.04973477035695861 -0.07321748263039704 0.08139355260284384 -0.09535767879078105 -0.024470283250001192 -0.1459233620400877 -0.10989701977300131 0.009402621284520464 0.02603917205718288 -0.11949725524363622 -0.04370106279799101 0.011670740361317457 0.13429414883170557 0.1326703479908496 0.06977728329837217 -0.002987708555724392 -0.031236327230513443 -0.12152299361688731 -0.16082733289401765 -0.09257153624657292 -0.06417990278419435 0.04596300537988615 0.1088300123145685 0.00945227632669397 0.11890360326021653 -0.1335617100323324 -0.12039945320714635 -0.028484690166541017 -0.15675025758634306 -0.12780319074987173 0.06669479552239149 -0.12083848088088715 -0.16784946692450892 0.09859344812202572 0.012101103600613332 0.06757234659155852 -0.10090204546715184 -0.02011053497550913 0.055395719120680954 -0.05419217676917565 -0.012253863048441876 -0.07377823076685386 -0.03153786129861277 0.029910499996823287 -0.02665075187734028 0.10482162477092243 -0.05561745696324684 -0.08624601911300527 0.1550210072996954 -0.011457758733443719 -0.1645525901847263 -0.04045022707500274 -0.0548384778493652 0.16661623052562458 0.11931151827108888 0.07263698244974663 -0.048594575130824484 0.06433613429807424 -0.023495722308511848 0.0942038248981154 0.11415480173332593 -0.14358257512763103 0.16413505078902438 -0.040859242186865916 -0.03213796050756114 -0.10257300907193792 -0.13733296169627027 -0.14529707653615787 -0.017843216637037123 -0.04754525745983012 0.0749409829209945 0.11755949214952434 -0.1554928664154328 -0.07755480741162014 -0.011575791755326297 -0.030770622692147965 -0.14505277673591868 -0.17060567159542997 -0.16726456414176605 0.02225807773333006 0.00843875418568195 0.14963153471632193 -0.02816064128814504 0.1749469493626198 -0.048329262392136516 -0.05412619215331723 -0.05183025943656067 -0.03941669376391751 -0.12263840698299394 0.007422846809417166 -0.08722392601643435 0.08520189508716136 0.07019706672676879 0.06282578083313725 -0.04646968496829986 -0.01228026171074058 0.0012441991231075906 0.012999890385720286 -0.14448965143132367 -0.01937658308176312 0.11497267654729729 -0.14010011662825267 -0.12293963088913139 0.07854890743368553 -0.01857491162563523 -0.08200381503899261 0.14495792132394306 -0.02043029405408132 -0.13161975293377834 0.09451406299722749 0.10746146330833421 -0.08379417451514323 -0.07625846069039222 0.06789373641781553 -0.02355695074939995 0.1693203658927728 0.16146999852895036 -0.0700158258095317 0.1554537129677013 -0.08635992063596878 -0.08842600604997054 -0.02521978794636801 -0.1572992001880213 0.05278477529982374 -0.088787806142735 0.037053967560332746 -0.06744278540897586 0.10856459950277722 -0.05750597019817457 -0.09353744944965231 -0.016847557457015716 -0.1336379959181356 0.114270801930308 -0.15638002651781438 -0.14287029725471226 -0.046845575581445344 0.022539557756917315 -0.14174110155898775 0.04775824556268155 -0.0775432256933111 0.021636054198483873 0.1724204863562662 0.13310607602414312 -0.04936688089321875 0.12460789523200559 -0.006936889369441321 -0.0787955074943011 0.0884312938854478 0.17674499524808146 0.1514730787142255 -0.11260543443764992 -0.06456441527231713 -0.12022984225843103 -0.02594863003354715 0.0637140648663598 0.027863480169188777 -0.005183042016873104 -0.0012006368837594096 -0.1654624349736404 0.12923585983965405 -0.13603271668938577 0.08972124754850372 -0.05108419385851606 0.17417145981187776 -0.06765592434520036 -0.1712517502874383 0.10760451689945191 -0.1635777136694456 0.022418868425952025 -0.04999859882590596 -0.01610372120552841 0.09844445440754347 0.011731621051241226 -0.09901621956544097 -0.1204746856026528 0.12625570396110827 0.17065764259889557 -0.09597521468283564 -0.04894792329262052 0.10431121569500794 0.007425241824978557 0.0371815914941236 0.15418514743734169 -0.040165177014020184 -0.1151365204523031 -0.09662428592373155 0.03581219867343768 -0.077906134695308 -0.006037729660664547 0.02716094931344239 0.14808039217166205 0.11359237953925666 0.027953751192906582 -0.0031810110635483333 0.11125228917849397 0.14300406262491724 0.07525710224582456 0.04486241784788947 -0.0622313039812605 0.01690416212054336 0.10571329915794225 0.006998106543593619 0.0837553605656552 0.09790815656972904 0.09552180641860558 -0.09716185530900383 0.1308389646604993 -0.04818960043647094 -0.06179612588827192 -0.025958445078233656 -0.13272506018389024 -0.024090170966981368 -0.02258384326517598 -0.15199055207543077 0.09437767797680371 0.1119610251714337 -0.0486857563274915 -0.04866992433080353 0.127856285262703 -0.14866519460125033 0.13838679827329567 0.15751522403555565 0.1608772967584726 -0.08963514958358604 0.016787839499924833 0.0956294887729669 0.14575516580257655 0.03131504221251369 0.033149140609733396 0.015610465285275038 -0.13061937068602453 0.16167194127619158 0.16739714144030304 -0.08416109483442716 -0.11084602422886351 -0.043942994793987354 -0.17273193969497933 0.03448712164662747 -0.14561903169218202 -0.10717429192572912 0.17103851405248555 -0.04125937654995664 -0.009820100385350014 -0.007585164587108397 0.1519246268276684 0.1264975617530489 -0.07900391787680246 -0.1588448126147562 -0.13685850053000945 0.12088115196801279 -0.020023829989494236 -0.14017975430755505 0.07992342248965442 0.06471519094850522 -0.05834654619696669 0.0036326609940431245 0.055917711723293816 0.17414381806925225 -0.1086526282513348 -0.17318515972445833 -0.1299252092985974 -0.14727189365262852 0.0632014859485288 0.1526121589496679 -0.11733925183084724 0.00808846587114701 0.17270241361209712 0.11243584224685597 0.11624404567489345 0.08411994284545263 -0.14923335692552364 0.018791375023227086 0.10553901061024049 -0.14091774678057703 0.01423654220088408 0.10382511096267041 -0.005444552302724182 -0.09087731949701486 -0.14507701305865475 0.12999969383658694 -0.17351692604396182 -0.15054754135927156 -0.09373002977631467 0.08505753489789956 0.0784214728589836 -0.11609413412982574 0.03986517318722115 0.15459543232298562 0.0521908898535905 0.04459531563069449 -0.011195465625191778 0.12472263384293182 -0.03758922600310364 0.020726060016517524 0.1549647707356666 0.1554605616428121 0.058623640888476096 0.10786755627043924 -0.08209118491157669 -0.11933852126934205 0.13232671903348747 0.12873790006719577 0.06666706437756598 0.018289531162661424 -0.07549179959073724 -0.13611654865061865 -0.09456527840599958 -0.1405268495280624 -0.024516045838439953 -0.06698533342135538 0.11156734542514792 0.07838613516792492 -0.04382071022082591 0.07997647165976823 -0.17076592435533422 -0.0490059101701897 -0.08745280654538849 0.13185103105893223 -0.035063636292673415 -0.017026143494972827 -0.0676846151668987 -0.09743756201447684 0.033914975896230715 -0.0643653257633817 0.05326111020692191 -0.14088519522014828 0.03619506863079358 -0.1359286457081771 -0.003577915642982293 -0.08524685182004173 0.030942404138182555 0.036388555983495385 0.004674992160896935 -0.08149577885993986 0.12213543810930193 0.00679687938761959 -0.022418851266176425 0.15031936936086315 0.1616604860056771 0.00028677929369674284 0.08966996161691078 0.005069704008785986 0.011300380511697168 -0.08465045153211807 -0.17356907032669133 0.125445073585626 -0.043466888913938816 0.017115173818181076 -0.0913830820527395 0.015159803652622005 0.020581087575764455 0.1609819518768985 0.006969298991124393 -0.06775871352681315 0.11135127121793266 -0.07526124893497978 0.08820735031661923 0.03065991365161417 -0.012088879465707057 0.03376830253309877 -0.06875912530688498 -0.15333548215709214 -0.00867177784087981 -0.06443434911091551 -0.15943533386360437 -0.0860679951491081 0.06815448769746976 0.04704392217598201 -0.11476928733606008 -0.04012878112027937 0.14560092782457182 0.06830985897809498 0.0829007154539497 0.13018226655532128 0.045385657496748825 -0.13250265059503197 0.08304666686771423 -0.08125080679151805 0.1524479508735803 0.1679697973391475 -0.159644286837265 0.06576343232867421 -0.0516418009586311 0.17112017359726606 0.01934565096789516 0.14273320395249758 0.08181234416773056 -0.06558515542222886 -0.09988122125201022 0.024532051217732484 0.013252000602254331 0.013127335820359081 -0.035627109093883676 -0.1574877534778802 -0.15293413713795717 0.10653647588678873 -0.009804909065938623 -0.09110685073040682 -0.10387834145322099 0.038832436539783646 -0.020981558931157225 -0.0907028114797298 0.08658890574273942 0.1257739180115384 -0.07444019365160472 0.10952879244482171 -0.09446744588010654 0.09265464304533275 -0.1571797552669825 0.170921153323471 0.12595234343978443 -0.03594418861240282 -0.08968443704565102 -0.09858120022224805 -0.03660944558499403 0.13418387907984125 -0.17224705244513458 -0.06577716189431083 0.09058554062693379 0.09638090300550595 -0.11266093126049519 -0.0547176194496397 -0.16455917460025046 -0.024117635477794032 -0.10976639573179982 -0.04006353788953538 -0.12440702774799832 0.06194597383949604 -0.00609559659228874 -0.1222468392310381 -0.05779483168517863 0.07824216587919039 -0.10221454942859048 -0.10588372802522329 0.037058108278291785 -0.07866437416447025 0.07979551406190219 0.06544649507613329 -0.17189888952174845 -0.13713865889446902 -0.1621441272023138 -0.0973786592000875 0.16465946527043046 -0.044040419350157574 0.02318090022937415 -0.17289813297319953 0.11454170973174695 -0.06909544113832093 -0.15648569694885356 0.010050860858761146 -0.013799402182468922 -0.042798216330884695 0.16981334579617072 0.10131717066356903 -0.1009071265401148 0.035380050576431975 0.07525527908483286 -0.08327654476771458 0.0379116968421405 -0.008128634059611957 0.11510269201739334 0.03841243829113015 0.135318028366693 0.01741832668896942 -0.13076639974841964 0.16609054728621836 -0.10503755986935688 0.12027357840697644 0.03637216611308967 0.03839222076712701 0.13644971413944118 -0.11701771202325319 -0.1452719870070999 -0.0858044158395687 -0.01608677915698617 -0.08056742937082162 0.07639113573543169 -0.06604060443091497 0.16751309826649396 -0.1283750271403232 0.07776005767210163 0.015352618114397127 -0.029798731077728274 0.07157315591654298 -0.17171751052357964 -0.14129128366915247 -0.07343830788274143 -0.12100425355439694 -0.17398694956890504 -0.17490789216513758 0.012568239461293533 -0.0410348239364449 0.036454649634033165 -0.11863481603067609 0.11499119949192763 -0.08485947519202136 -0.07110902885924213 -0.09562381642707303 -0.10305876896508424 -0.1382720660588994 0.1581295580078889 0.026831736195055883 0.027113970881055164 0.02869681734997439 0.04751520788002932 0.15288257789798473 0.1497243460027924 -0.04170549139860784 0.14671757216645506 -0.16617860235772794 -0.07411914117025185 -0.08000023987483565 -0.13972296834530737 0.17208232971025678 0.11608409473460692 0.15508009216886734 -0.04215697117732106 -0.07943663379521328 0.0467074738447706 -0.07869505306803873 0.13474381426685964 0.1747626932620041 0.15552978281263796 -0.036804333239600896 -0.07030154322954994 -0.010879104783255801 0.06778377095598363 -0.02714373060211075 0.16859954620868922 -0.11519010468982228 -0.14623444978104902 -0.14885191688925062 -0.16971976804036792 0.14431522999068602 -0.008630913013498252 0.050620001382899266 0.002275071604514897 -0.14984828735519612 0.03767318236420228 -0.017180141680948925 0.1576910904010965 -0.07341007863686051 0.02082567122858191 0.03685690506849654 -0.13665218477558175 -0.00544923784646215 0.012555903890813016 -0.018357542797472235 0.039166560031762256 0.16310496872527577 -0.09806473915767655 -0.020669392315915816 0.15755984216818053 0.09217363620104448 0.011387342549441376 -0.04609631923382287 -0.07552544514449588 0.07657632766202839 0.015222855470173007 0.05271179832365129 0.005558681396059004 -0.13872678342667882 -0.16280670986751913 0.17058700716760583 0.15498281730174188 -0.05708382631696411 0.10027325850774163 0.1521692544949837 0.17279356120840125 0.14577914751539744 -0.1320171289390225 -0.11188995011874851 0.16888522104035328 -0.052390706735896124 0.007262176973867428 0.007333252542697517 -0.16688120314749486 -0.06050593679269943 0.08224699526021945 -0.04321058058314965 0.12234548948629735 0.0009595419498868526 0.05037307911912654 0.04312272590892197 0.10629377543466192 -0.08109180069347012 0.16928835338962284 0.1525302583170932 -0.046477956220024624 -0.13634492426756567 -0.12155841371079598 -0.023128009853525477 0.03399454295843843 0.0008226823626030641 0.12877185804003574 0.10355074811286133 0.1301321304917687 -0.03823291365104255 0.03119880555755083 -0.013261696436601206 0.02691291340486928 -0.1612624384923388 0.02236416353743864 0.1728201645940821 -0.033337715710804634 0.154509363564538 -0.012795499047468784 -0.1427660193551945 0.007085295515836449 -0.015363154136629364 0.1398868970175308 0.12134037054461136 0.043283976872997794 0.08805141832541187 0.052836757146751935 -0.06528414350816705 0.01785389894900493 0.17540701339190198 -0.140314234624385 -0.013149563574955687 0.10987380704020976 0.08413659121239946 -0.07980334775662715 0.052141284798920065 0.11087882498897575 0.04332107466665344 0.14455553734346757 0.01658023697962833 0.029988568887291924 0.056354123097791066 -0.025215552134425882 0.12351838092522927 0.13912525266532116 0.10043747932757252 0.14157610179839583 -0.04160815308017618 -0.07663274502678906 -0.08475875759794442 0.09948882605909237 0.13513254441565017 0.1403151783163934 0.12106847699221288 -0.07382461069565892 -0.15345392502149738 -0.06950170515883716 0.12373805105111217 -0.11210723041073799 0.138439714267106 0.022379056846206287 -0.07577422722132603 -0.1257064422148019 -0.05821038793561236 0.03525737675390885 -0.105112836611201 -0.1745855863422185 -0.01954120943478134 -0.09365371842045198 0.17630066073826287 -0.03794290764690936 -0.014682024308720835 0.10486742212576008 0.130344564029077 -0.05016865400501334 0.035810794581764255 0.13227296839522318 -0.02283388613091363 -0.1109490724328643 -0.05174223840624602 0.1452590812737919 -0.07699237794244064 -0.07162539074840862 -0.1522554469977158 0.07522577989653226 0.1544612756851492 -0.014847626841356393 -0.06630764528919067 -0.056020783580799746 -0.03428961339125762 -0.13330062184931793 0.008958727807911203 -0.008446367088391103 0.052735050315241234 0.04216553214597887 0.007574526979515848 -0.16338562342266483 -0.05780784173035206 0.11020660358019495 -0.11632932295142819 0.02526464215279105 0.1508094619909327 0.1524029811627793 0.0016931664701264617 0.047644709471973676 -0.11847654967439496 0.06474254089826273 -0.028177810612506734 0.06691022489405937 -0.111519362214082 0.13017974619059983 0.15829253243304856 0.024096164212685695 -0.03657686316164894 -0.06167392709395709 -0.0416070854882372 0.14698333159120577 -0.0785971827302054 0.0024722460430973655 0.13496270231483218 -0.04973150295546872 -0.12409196994403483 -0.09083206966856736 -0.05928435197850368 -0.1544741097527857 0.05333423173929688 -0.17195857007483237 -0.12942861434999886 -0.026553334790502304 0.1303263298458295 0.15592568128882248 0.049915048711851935 0.1654609960933907 0.06893988531489917 -0.113938659373634 -0.03897431767512568 -0.11417491551693662 0.10608631179190466 0.1375226578512355 0.050225413031866326 0.12816059371658825 0.07203711794013858 0.12437713265812422 0.09079636867249179 -0.03549908600503438 0.08208029717005763 -0.03600491259020446 -0.039447415295444176 0.08256139061864678 -0.16037504251406404 0.023304066035631208 0.029081478963378433 -0.13658737406078844 0.1191766877543246 -0.1468215714365781 0.025751107350032464 0.08375494794094747 -0.06848865074428455 -0.17332357208117954 0.01910205157191778 0.050185237236512165 -0.02644498442088671 0.07127912160959021 -0.09290968588199948 -0.15932033775055432 -0.06729642006195971 -0.14412323835623012 -0.05319636842779178 -0.041974740901202776 0.01638541624859108 -0.044369962324807305 -0.12658308158740983 0.0622208433510393 0.07544089936717367 -0.17082641320051165 0.04597924193611729 -0.10031132549977842 0.09966098440476617 -0.027743729021098697 -0.0611582688899595 -0.10746993486707289 -0.014089993603546298 0.09158872144041723 0.06802250426394917 0.0822642042321144 0.00598848625895752 0.09042705795807357 -0.13920978489252853 -0.17262317382013884 -0.1633773417632115 0.13111936707441074 -0.04729610800254675 -0.055482161709067064 0.11314964847473104 0.044866702081826866 -0.021760804741050035 0.09815700923684352 -0.1405362613658664 -0.09816757009852481 -0.17048580634400953 -0.04186998089803453 0.05396825245059716 -0.1621272398071326 0.01873816644431331 -0.16402005826811514 0.1372262424727769 0.10700846149542337 0.15114620816773935 0.11989003683920231 -0.019316992008180576 -0.133549649940879 0.0650732336282547 0.15425877850407804 0.044050270238627065 -0.10504170805677127 0.05085676520934134 0.1661984737983968 0.14333977497437012 -0.04887247174158971 0.16848191611805388 -0.07701136165379747 -0.002979309938730555 -0.018284138566224007 0.13025182392328627 -0.078437290442782 -0.08690731683341656 0.040012252428075705 0.03717344957203107 0.04760399046894467 0.15908176241599342 0.11025363053756884 0.12877839714279474 -0.14322866997282924 0.14608487740693815 -0.008010477537045299 -0.14183600867498408 0.13816300698242437 0.02019204736301432 -0.17581161384700178 -0.03493725991429402 -0.05686050558715051 -0.11050722844629093 -0.1618203329438469 -0.03400112644714576 0.028330900441741285 -0.10914074628924446 0.09213139517310566 0.08650929233720617 0.12440225703445841 0.17598735814944863 0.0955292776125402 -0.020769698011646208 -0.1252466086855787 -0.018622667351364627 -0.16073826719604492 0.1039345753082485 0.0005325793493344866 -0.17152523224148897 0.09646799353541627 -0.11695095530874637 -0.007869456570476299 -0.045636139692542085 0.02068613038213561 -0.1399941705007328 0.14595740649101607 0.01763207300200477 -0.03706887091630864 -0.037148856503685254 -0.004698164305683833 -0.05498892504570636 -0.15779691324439565 -0.037254335362225284 -0.0024810680686283997 0.12618741652002766 -0.13905885008280053 -0.050485877658519474 -0.09195813622241514 0.11983236845361919 0.07521511234644956 -0.09531662828442132 0.1207248327918748 -0.04278651090465505 0.16848482924869584 0.03398145240926214 -0.13242982415019602 0.13602536903934087 0.015010748527916206 -0.08100705024281356 0.05497552623157417 0.0034340847372763238 -0.11083723578609778 0.11627927787224505 0.09835305954542271 -0.03200620392747396 0.012553526199670106 -0.10251448454795486 0.08782774079836371 0.14798427072095063 -0.07658399985122277 0.06742310498389245 0.12924981829120924 -0.04513184321102339 0.12336350720671752 -0.1713248574137336 -0.04687673373126529 -0.16427692935295535 0.06045941223500818 -0.0888195583014748 0.15165255250390403 0.0012147013949144864 -0.014875102717754975 0.1759039236823499 -0.008670754893956314 0.0964638693163167 -0.10668582602457609 -0.07612558583867447 0.05708979669863043 -0.014773063088428295 -0.0734939534676934 -0.041354108626942006 -0.10053700401451851 0.11740345125446228 -0.1650529335238751 0.049546393869417386 0.1471105848916883 0.02288163952967415 -0.05930754945670484 -0.05634719688656565 -0.07355459310637494 0.04272416899951236 0.050373593693732385 0.05654771400182781 0.017970766479483816 0.12935183501193007 0.04923974054549374 -0.014246198018286424 0.159147616229213 -0.0024742758576877803 0.07691359459381027 -0.1279534618514421 0.12185870033333794 0.00828237498998059 0.04542719119552208 -0.13938852088469486 0.007375482341821103 0.004980489731933343 0.17504495742904527 -0.025817516334318547 0.030012106546418588 -0.017544365618955626 -0.1693972497964313 0.08913682396508522 -0.07695081714020278 0.06912316609059808 -0.14354000202967282 -0.032565047174761746 0.16254878577309612 -0.07181463189662277 0.12254179475278519 0.17288663104574242 0.06482489026800532 -0.06581562077505107 0.05277016330164276 0.07651037349919884 -0.15331827871821094 -0.020965845505061986 0.09985297937677103 0.07094322627299733 -0.1524888368049088 -0.07298862537526608 -0.005452266525048746 -0.14667050433463238 0.05870168955060885 0.14730489694316873 -0.03093413515215812 -0.015121803915919363 -0.1025378319707946 0.16966079808792026 0.13109545115725582 0.16980308843990788 -0.0072964542451621865 0.04604738234254767 0.0705320871878028 0.05167727907448479 0.15388036328415397 -0.17179653223068686 0.11865366547167293 -0.016429444571685575 0.12564368717114374 0.04891795187007116 0.04213740455218963 0.10837388311155673 -0.1416304435974579 0.031889861320292125 0.03466444160454016 0.09531575868788549 -0.14265900516348004 -0.11415808041144186 -0.056060103010979793 0.008915418677149808 -0.0075032133531400735 0.10512155179145043 0.17621477535133884 0.1628910275062348 -0.15103249643070946 0.001853841806434994 0.04586267741019517 -0.17050559169331758 0.09074996893004977 0.17125833939251106 -0.0016069405872853018 0.002004728236778932 -0.10031844131064568 -0.0008134223054057873 0.01467846570478412 -0.00924002803533572 0.0200542770775229 0.012826463919784429 -0.13159236033500346 -0.04368945129592658 0.11821700273645805 -0.06608254111449177 0.10479216523935145 -0.015388629440733648 -0.09955806594712442 -0.00660330808034323 0.004981166591608716 -0.09424792010689304 -0.14283123898629885 0.08227907273994446 -0.055053983871006046 -0.05037231791852647 -0.010391087150257956 -0.1638868869555613 0.1576176468748555 0.005676073397813402 0.13643992330956192 -0.032294048817012824 0.10046343474360818 -0.08365299652357366 -0.16546672077933097 0.12614972862422827 0.11188212341505908 0.13055505778721568 -0.08984425426503956 0.13115059511396063 -0.1122582991412355 0.0716496653308083 0.07498720819340579 0.0840796526345378 0.061945558907809596 -0.13674135829544853 0.05278730710456283 -0.15386706623441354 -0.1431174278470091 -0.021018911991897767 0.04530832748504825 -0.1458577557934047 -0.13582081612188096 0.13145769101132324 0.10705412327156676 -0.17061570261552328 -0.10599215390181767 0.13190917424384405 -0.16975227417304375 -0.07919252841659928 -0.11131108739683124 -0.09874751471723657 -0.033413736696475724 0.1534794113058157 0.013948505839116743 0.08443721719987016 -0.0018982877204216269 -0.1101103517822262 -0.031121012830068448 -0.10638455520385968 0.13574924179765027 -0.08910185676133821 0.12668315068609548 -0.14324207180690315 0.07184698006450532 -0.011143191434730788 0.06195057616449843 -0.1005504848859688 -0.015950380966903578 0.03824664495700247 -0.10336299294772812 -0.025039537827716007 0.17425966573093488 -0.05546607608894124 0.019089792272511272 -0.06761815629439208 0.1515496298044204 -0.021030804371453618 -0.14970266085818087 -0.1309996894450029 0.07324647924662582 -0.16064601231348238 0.15226778208375089 -0.12026927053411314 0.11852392700678914 0.10526039530669071 0.0876071760058261 -0.024423259391427875 -0.012230375530732874 -0.16206327692009914 -0.13955074394067885 -0.12336511264746408 0.1659192527787031 -0.03743821114790431 -0.09586562213276859 0.09605256419838151 0.16822579323087652 -0.021419580065334436 0.03630201879274012 0.0167515341872845 0.1685692127736463 -0.052969181480527046 0.04908105859835148 0.000706727502317463 0.056519617922757136 0.039437521212781865 0.12641384131296549 -0.1049118221745583 -0.05975118427275235 0.09579827502124941 -0.040440223099733254 0.08432013549891722 -0.07070776932511755 -0.029824032909155966 -0.06234421394031251 -0.06756080361615723 -0.1577658334295906 0.010765937859115325 0.06106304539100632 0.11775402333409128 -0.1637871964638575 0.09770951195326037 -0.03318504530721959 0.16557254426352344 0.016413115767476682 -0.09485623984577914 -0.0972768931545492 -0.06859787694937892 0.12147243381086413 -0.052799761956751214 -0.16028372373605954 0.12196286657553423 -0.02685499030418368 0.11547913512455213 0.08227686381022425 -0.016049169968692205 -0.14722342861709953 0.033515796440446714 0.110760939992305 0.1426707811495964 -0.08471973294815603 -0.13825547053859827 0.015260598555287146 0.13646206980730433 0.15864296915330597 -0.0247488174076462 0.17580680045802194 -0.12467723353283239 -0.13544704168566088 -0.15007314792345056 0.07145433636247765 0.04805478162106518 -0.03711719162754074 0.0010014028217522192 -0.008710325370586637 -0.05492223943574992 -0.0727963778744467 0.04263030092319129 0.0934422410684292 0.13402124151398542 0.008298959751318788 0.08257877113640558 0.11292583652359567 0.07345200085583736 0.018330697542561124 0.15043817655120903 0.008931879932888439 -0.09995946518842805 0.09796613465895916 -0.1501052323773523 -0.17095885798340324 0.11755473548999124 -0.1647474575468249 0.07814358821967093 0.06306107514343945 -0.0796521268184453 0.08553235137074137 -0.025199350518772232 0.07576119357153102 -0.1085213959761589 0.10120020594649003 -0.1529033918883754 0.0615598251538427 -0.02282013749262353 -0.1462675316957792 -0.06056045372775607 0.020214444381448926 -0.08871197160286308 0.1282804884727309 0.002457816970067321 -0.15318173594050663 0.10021523058418752 -0.0036721387723697035 0.06710711479809359 0.0643528653462179 0.09776334783189534 0.09976992361533335 -0.13599662823220734 0.04856021084339168 -0.0933194389589688 0.14721021718216204 0.11614320182337076 -0.06301708274400743 0.17521020268016615 0.041221206369013975 0.13889980307533195 -0.01298105171245711 0.01936209399792155 0.03028671488589323 0.07280014811361192 0.14528223484800454 0.1685199166007087 0.0003527734408113185 -0.15550774040888238 0.14483683113557871 0.14789945105211236 0.046841546427658656 -0.14287074649588435 -0.1493151242545692 0.10028533619795103 -0.15231834219066617 -0.13442379128671805 0.14674060412071324 0.15891325176911772 0.09899277100193955 0.13239685220037312 0.09208376254959018 0.13477187898448434 0.16925536505851513 -0.12172526214380792 -0.17588221092769035 0.11164892103473925 0.07701842848927742 -0.15769722778804637 0.16432352412733733 -0.07953393307390892 0.14697565841999918 0.11288615932758403 0.03940425880113637 0.05545220716959277 -0.07139521862659608 0.09559119007188505 -0.001988132254935754 -0.11530077056755286 -0.04962132406900513 -0.035942175534311484 -0.06485387373290305 -0.16630431257668538 0.09414250727283029 -0.15853375759840102 -0.09363973485305957 -0.07353481703560175 -0.06207752076018128 0.03946023139384609 -0.1486025286164416 0.10660087193107123 0.09586784932109878 0.0023710041934884916 -0.06277469594608735 -0.010280699768572106 -0.12375892743718525 -0.1462933808475739 0.07946397999039291 -0.10088282459274418 -0.06283584532911184 0.054324258703189285 -0.07991404091672093 0.010853335152749504 0.07043737908664457 -0.021358828977765608 0.16100540341463895 0.1451138370054395 0.05516761512273288 0.09250470478603953 -0.09980181143391498 0.020622962870757818 -0.11284553940163422 -0.02100996323268376 0.16850691055687178 -0.14809654324663277 -0.0683428737100287 -0.1404505068877017 -0.016242549103373895 -0.12911962942361693 -0.01638502297264989 -0.08598887889445393 0.09450549573847374 -0.16122072957992764 0.11606009372360628 -0.15796665821846875 -0.047945285346908575 0.09464841918738391 -0.11602908466747403 -0.020164223652587236 -0.13320854227051018 0.06998906312497634 0.012852541859045618 0.10329428829793841 0.09742030260660116 -0.13964656585068644 0.09585573698393228 -0.018731490587269174 0.11515604665389015 0.16568078828832739 -0.1593233387063714 -0.06111134963874459 0.16484072313979503 0.14810580347250196 0.008920043837307493 -0.00957233089009191 -0.046885105289348104 -0.11244157166612774 -0.044043205223036425 -0.16162550578116328 0.13835879559722453 0.10786649588667761 -0.1736457067478647 0.1122672048449979 0.05697487793530491 -0.17386621112621928 0.013102845543572139 0.10861189258251049 0.07228093160376932 0.031074354582045608 0.1589033782279873 0.04393622841990118 -0.12179555411398932 0.006351270435940054 0.15390590267087073 -0.14188598458686916 0.12998119032196367 0.14420132351516166 -0.15179439098173697 0.06298839199101608 -0.05187549001477975 -0.13878500349387274 -0.1670242320098661 0.006742507298637437 0.039568188392567746 -0.11333344945712105 0.07417785838888179 -0.047137384696549205 0.11633929919934397 0.0021460045759665943 0.17243965602150108 -0.03536462115662911 -0.05728100366956384 -0.03715362478448253 0.09533125494444086 -0.0065196056115566815 -0.09797475837094041 0.0050994023796242125 0.04953835607479863 -0.08851955089689965 -0.142416918494778 -0.1145696984750093 -0.11636231707218528 -0.013251851646536937 0.10475195792291654 0.0033945049772999016 -0.03594047352042765 -0.1547738983571206 0.149922030138574 0.04912321823096819 -0.07434959215726457 -0.028619841681632216 0.07349419373113224 0.0035873276183130296 0.1389886776451615 0.045431151249095414 0.15956096038539694 0.04996363151074518 0.056139581369799775 -0.029087422238411792 0.07303049823495066 0.025959871798827822 -0.01372688396358441 -0.15221248353372321 -0.12278296260330301 0.012932635040648382 -0.09898202056244496 0.06710958077510532 0.17013502780326573 -0.13577923419086776 -0.12942091771496944 0.16806226607275246 -0.08226484159156494 0.15926723098871132 0.10505462516993473 0.11599585520476297 -0.06964601808561344 0.0573432713998175 -0.03385692515736524 0.12232731464560422 0.06690535344671066 -0.16392739758068145 -0.15976971442335777 -0.035404204855770074 -0.08692695604164713 -0.06311748675953142 -0.07806256326388834 0.15432785777767286 0.01551616074038911 0.06674932359395451 -0.02536692936615961 0.13437217058736728 0.010158378507383619 0.004824993371750219 0.05385302138705863 -0.07125579329143494 -0.07867797488227604 0.07235247357241185 -0.14888391057215195 -0.12779564525325537 0.11829289996710043 0.04095293080479707 -0.11242496640152112 -0.08182305815060942 -0.16010030571668143 0.0020390438604627205 -0.0013171230129395773 -0.005377837612106435 0.01664937458573365 -0.11342966208246093 -0.15726788217163348 -0.13906935942039914 -0.14933070102663848 0.11112893577293266 -0.16368433966707574 0.016181592950592905 -0.04920008490240938 -0.11925294902294938 0.1455215852891929 -0.1122211791086064 -0.0062797698387800525 0.0334147185922278 0.006415130146488093 -0.0815497708359552 -0.02313980688637373 0.11642755571044895 0.15750182310571256 -0.04426241448051837 0.10268241413939432 -0.10189522730739603 -0.1346995450035692 0.07421056447705816 0.08439127770284698 0.011202619016311926 0.08197646642271188 0.1635746667982806 -0.0989378414931582 -0.011451305559974378 -0.12308911434371278 -0.0025279593677110094 -0.009719357960212168 0.1302278857088283 0.07765298601641321 -0.1290229095611504 -0.039308097202422156 -0.16621115059814068 -0.15071402311230167 -0.03650756482682942 -0.06599915037233449 -0.09230769363878825 0.1604962205537859 0.07939305381673724 -0.017450456788885668 0.14817291727205925 -0.035400428911512904 0.08608741289810658 0.060242759508568715 0.11247640355908828 0.07314364023542798 0.1335876805094495 -0.02400477866958094 0.16554237338787645 -0.04061726889996843 0.1356153585347823 -0.04463829425854223 -0.0723521991185247 -0.14311494733129007 0.01557286409686585 -0.09151884360355216 0.08847088631451236 0.03871781966403235 0.004340336578297738 0.016484915362789926 -0.07337490530104353 -0.022022867224174323 0.16870871205457305 0.16681552445213124 -0.1712327124505283 -0.06439755595187774 -0.1254996862996557 -0.09810371499155239 0.12013352558659325 -0.14931759100754322 -0.04163824890032596 -0.02349735837328613 -0.04772246310896633 0.1055475723480599 -0.030398035671594725 -0.12164650915735467 -0.016430576440177883 0.1569053554389544 0.09152014255021712 0.15563211989453848 0.06762044379014115 -0.1364427135422067 -0.06262581091130226 0.15628446902912949 0.14991661228919984 -0.057621710028591296 -0.13315635325676559 0.05382668592836059 0.0768576422483083 -0.16472579193387202 -0.07729155564003448 -0.026097715126550243 0.17325318527423333 0.09978168102206024 -0.0013371186082899594 -0.10558548299665836 0.13881113178321117 -0.06479982282596718 0.014664641874194506 -0.1662175114044518 -0.10924416064375571 -0.10032377988302549 0.03701914081626669 -0.08194009824134123 0.044048598144383125 -0.10441725439407813 -0.16377966178982203 -0.08951351498802516 0.1351957655582851 0.15695678683127096 0.008322117296365915 0.053258267545603644 0.07103696422417173 -0.07514911104056084 -0.11957093890455883 0.024124323210414453 0.058053481654498036 -0.051138923497856106 -0.04200353569481775 0.057597991046286885 -0.16470489175299222 0.0035102616575134293 -0.12078868115880982 0.016046787025442745 0.09925586751580281 0.047880742936015165 -0.08576645079135367 0.02449284531826818 0.037213077989773115 -0.12550030092990316 -0.054708454426923084 -0.07916194722391291 -0.016740198582330792 0.10170466490234473 -0.10174282426821891 -0.05292521645676701 0.1756762223276034 0.04625083832454202 0.00009193780305848672 0.02991567411883562 0.14925190276247288 0.008825351938307193 0.11020374329504817 0.06666834908815983 0.13037888813769774 0.09464179553764246 -0.1385481268464661 -0.10885577517099779 -0.05374860644311019 0.12127566618165435 0.0036908632102086113 0.05578756947160679 -0.1115221222615527 0.16331692662249214 0.16785551222035558 -0.14414122275320487 -0.09546110826199089 -0.15383571671405255 -0.1077748040176137 0.15827240585613428 0.17468656664354268 -0.10733420458587348 0.17063401316572915 0.002897427767556132 -0.049347935769071066 -0.11672731695723593 -0.026976269469669033 -0.13458703016991747 -0.049747345089410776 0.06331148173071063 0.06546545043852307 -0.11567727297238012 0.028521621491343446 -0.023140917894596668 0.1449794618249005 0.037778956279455246 -0.07789542374519916 -0.039938642791699404 -0.15100916328459132 0.030788388598438472 0.1609599269682282 0.10854217175841786 0.1026807302745146 0.14248343882201606 -0.10167142175186743 0.16956509405642167 0.04986649956400621 0.0058846972118416 0.04071677442187844 -0.05835139449964497 -0.16185829946835723 -0.1318656513790954 -0.07287799112615737 -0.07460452051668713 0.09362080486003045 -0.09046510862284034 0.07609887244841303 -0.10428082404082008 -0.17060616240101778 0.07916487260743985 0.0744455586343256 -0.14526093516115018 0.15375695114603857 0.010033143937697173 0.1286144882392006 0.04913331771999887 0.06671156355832653 0.1546954352278483 -0.09892442968367343 0.1697922357830497 0.07596019745000056 -0.0738736804673441 0.09678891564000613 0.13334561587068822 0.10743064096683731 0.03859571763117742 0.06492204535777665 0.10274077153312827 0.1422621918172336 -0.0031536555516959845 -0.09632265729503853 -0.1546659837093458 -0.035898937423643786 -0.024179713231887005 -0.14399107806659467 -0.03404779257971187 -0.16837832223127341 0.01424945688241686 0.12730623125614662 -0.1496783387254172 0.131969782552345 0.11228192239058556 0.15002917286590772 -0.04372172852568754 0.06742091121365358 -0.02446479933600915 -0.10545313929508203 0.03642401978363824 -0.02785439891529913 -0.11385897315282914 -0.06934701833514277 0.14087116751533135 0.05937872215634299 -0.10025428269250215 -0.056917183886237906 0.04544095644212492 0.13847732565421011 0.0013518968057734278 0.061612725825967704 0.17511309165873293 0.1656282998247313 0.1424882028614523 -0.031503597742250075 -0.0800760650763353 -0.07469537290086625 -0.09340020357525868 -0.07204533842865264 0.05545949445039451 0.013950962927099951 0.14003320712837253 -0.020797891006600712 -0.09120198554736823 -0.06798846056657498 0.09060051997489874 0.03870715690377222 -0.16682689922974642 -0.08528704890311398 -0.12491307309212588 -0.0920066980885191 0.12294056647072288 -0.16681012274420384 -0.008888445283268412 -0.15263212647322585 0.15839961291113047 0.06849851182268527 0.12441770610480705 0.021286328992010762 -0.16559091151877434 0.08818113222790623 -0.02080938750340884 -0.022491067465688682 0.12858539776814096 0.006196365744728742 -0.07456225094723407 0.05465256736342233 -0.02972026444296869 0.037089032273535556 -0.15212260207488798 -0.0955099514110976 0.04989082394375324 0.03556267737347988 -0.06275451699154276 0.09255542613143991 0.01810168534862322 -0.1510945198805634 -0.005842524833255609 -0.006543091068213949 0.10314864060560243 0.10906606497883363 -0.14985679209742403 -0.010880293582862525 0.06479193779575222 -0.009170602764719074 -0.033369043969800984 -0.11127636193547472 -0.0773118313238575 0.0356117936100251 0.1006773949960729 0.17518618958012128 -0.011212517557232304 -0.06888444183658735 0.15539358998040662 -0.07497020489652705 0.06671093592165109 -0.15934596880564258 0.03204361453256974 -0.007522958125819964 -0.08495704769546888 -0.1671720402532249 -0.011306358471405084 0.0077017092995570295 0.13446719626438433 -0.011168728702651948 -0.12061953601229536 0.11583757087107524 -0.14622991129180538 0.09903521861695903 0.15655672656647723 0.025367191041988472 0.11893579064095475 0.13580265486996634 0.042630132556148025 0.02263963816873822 -0.027034442881719176 0.056688241820830425 -0.056601938684882475 0.13072870032838108 -0.026286009854381193 -0.09389258509032486 0.04361410911008509 -0.051057861912736285 -0.06092744232875498 0.08264200904448292 0.11721508942407548 0.025948872842961962 0.17097390371753857 0.03420735045886965 0.06412166844014294 0.08070309501737474 0.04067705126325635 -0.1673766697773131 -0.1663198282007683 -0.06079364556732667 -0.12596613032240278 0.08253152257247845 0.06245426998561745 0.06911679896248182 0.13021519894066144 0.15636455462950138 -0.15827965632742708 -0.025325367961920597 -0.1310632459849368 -0.10634497135448302 -0.08670485852295663 0.12235046770380463 -0.1376516604733167 -0.03880982950821165 -0.037510481311185145 -0.07353928241290661 -0.0009401686623186631 0.059660823954749656 -0.016108731467240477 -0.1763457821898979 0.14253611616240602 -0.029613070230001228 -0.07596287675056426 -0.08745007846797849 -0.1584210909732302 -0.03977731476006357 -0.01491376347827662 0.09396645325092394 0.14032747553597327 0.10505716484897813 0.03267471842417068 0.09294708584534873 0.1726242514965317 -0.038084465086828036 -0.15198878703436117 0.0034491219532982375 0.014253467292722791 0.09871640801111278 -0.0643488603315263 -0.1640177410888721 -0.15794927984681986 0.17199705141595356 -0.1089577322648169 0.13633044868870395 0.05595312388638725 0.16067719950111448 -0.13963206261020994 -0.00808751843511112 0.03194663104378584 0.03224685454071261 0.1204365212193837 0.1060530372517595 -0.1661273654793314 -0.02719753957996971 0.1597877660174636 -0.14021141755584646 0.04237295986211634 -0.06401497481968296 0.14016920057631319 -0.07520048826454805 -0.15659911863518586 0.10209787864534335 -0.10352323650720702 0.1696445236024528 0.09607176654549758 0.16089756297420565 0.07618253495625232 0.020291770146735926 -0.0753582274801511 0.16199244929889914 0.1197926977042626 -0.04491389521503272 0.016721055286660503 -0.1083194840808529 0.1317922010574939 -0.13239615286454362 0.08284341654766239 -0.017778418868361644 0.005491573831252029 0.014434867251967246 0.13848502122031264 -0.029235626959222792 -0.1402540205951535 0.02262134783278373 -0.1668666285667434 -0.08472207263497657 0.14474046968526688 -0.09998533856333572 -0.024673486873143843 -0.0036314648576992537 0.1349451548149848 0.020110772015865943 0.028187693984315844 -0.10033396539448772 -0.152490506335972 0.04520898427830055 -0.002543259312075938 0.08676032760348812 -0.1063268365135817 0.08863008984671905 -0.0722118516192163 -0.1270322541014868 -0.11763914748882344 0.020909594772693312 0.15307709717916215 -0.021700410064479456 0.0011123141025342863 0.1019379647527305 -0.0867886024553373 -0.045493509287225446 -0.16122529959537948 0.019321677742803477 0.16973580017831616 -0.04551900693053866 0.1159817240451016 -0.10624462602823816 -0.03442183028334959 0.07079408974511518 -0.04364465928297454 0.16694918041785306 -0.057714689292100024 -0.05342576041330493 0.07318478236389137 -0.07368341307345815 0.11743387563903006 0.0628565681374072 -0.020982231911465893 -0.022698336295849074 -0.15267364175396295 0.17472363416460848 -0.02272978598598914 0.05906229687539354 -0.06793401617504057 -0.08711657228535176 -0.13731977159533224 -0.12476343073172734 0.01800312647269828 -0.06895504070538098 -0.12677857745014 0.15583480476376213 0.027034011955578422 -0.1677358471567905 -0.008833019890123264 -0.01898158912718207 0.01859907377995474 -0.07710345389079952 -0.03687321588444856 0.13411124857929366 -0.1540906100576698 -0.11233139296219635 -0.08256672999941947 0.158044072435735 -0.07029401248774565 -0.007591232091232237 -0.14324573936759155 -0.16410322576030004 0.0901849280990953 -0.0031292554651848525 0.0760194687145034 -0.020118074537918737 -0.1695510567804054 -0.1019381388284577 -0.1315999115717908 -0.020608382873394462 0.17487391144715994 -0.031309414955260996 0.06697808774386196 -0.13647076701822208 0.1094339275826195 0.12813608623161685 -0.1192496871619881 0.10979298801966955 -0.12885424770687548 0.031394370655079086 -0.04662560024991206 0.09512556357888997 -0.03829531927261876 -0.09205855384120915 -0.03415348741959869 0.10297534595326484 -0.1376332324107611 -0.07247301325540574 0.08667820506874825 -0.014429272624036968 -0.06967523406796905 0.169863392062407 0.15345268720143077 0.06472445016258398 -0.044891007225350554 -0.14225689769395147 0.08783878615764082 -0.036626990603698076 0.12172250220445174 0.051702998163470223 -0.062322975845125826 -0.11671049670743687 0.13478781852787827 -0.11925297906710342 -0.135768344710494 -0.10342506643153716 0.041607186399176 0.025703089889680047 -0.010433480208838358 -0.145035057865703 -0.11900503031579594 0.13501458938008448 -0.1314863982837858 0.000012393671434085948 -0.10399738170955822 0.1404953890349405 -0.07565723026152793 0.14509349148603787 0.12865223170662152 0.13969833252750596 -0.1405951589258531 -0.01793598150129237 0.16695108895708927 0.10502529474504482 -0.009538445548041228 -0.1275260477016303 0.17297108532163594 0.047815839231136595 -0.00849099195359239 -0.032489216068736275 0.023536838742532495 -0.12490853076055683 -0.010307148697794043 0.10328679193946859 -0.03278810592884791 0.0020532818705410777 0.11281960736774456 -0.14656176106725724 0.009051265537946336 -0.023409062000571353 0.09892626433553964 0.14763620529788785 -0.07825655827777515 -0.08800296360252051 0.16939258403823865 0.04146335503156837 0.1760128346758092 0.14287629210502714 -0.08110165568998103 0.0018161961293671999 -0.09737747611010975 0.11083753748986998 -0.14696022412445497 0.13164393811548444 -0.0008253965285444506 0.10001198415025858 -0.026841331158883326 0.05672592568055374 0.008565471349692875 0.14955093384143817 0.057299747116382374 0.1612657652189656 0.11700589448115203 0.028129682024459823 0.1467959771726955 0.13837554949178002 0.06544497234493685 0.1744074477860258 -0.17204781476188805 0.15320683774087962 0.1294296568578742 -0.1542390314793102 -0.157084048404097 -0.08529122966381582 -0.03604746447821286 0.06416045618806972 0.12066637772964285 0.09208827176154899 0.158673917635526 0.022734210919619142 -0.028391330445238158 0.1038065433534008 0.04948547067951561 0.05312142458044132 -0.1549944190750081 0.17112734942046806 0.126362514210033 0.1677264129950074 -0.013236491827919434 0.06333451507914048 -0.06385092490150061 0.042152850589183 0.09506957304803366 0.06927419218311494 0.04422704684308983 0.15223362672669774 -0.1511621601126663 0.004809585710061303 0.14957745252305119 -0.11342804577554903 -0.06390701382092828 -0.15267420779307472 -0.04411247256975062 -0.1421730900448443 -0.11138296431247902 0.08750241246177945 0.10696709093206523 0.1662921261175748 -0.07516278066051886 -0.046313659850457094 -0.14407546726394427 0.16938140581225997 -0.14492122119497994 -0.03561169618839188 -0.05013421124901462 -0.15762947662402874 -0.1390436747036985 -0.05836805238325332 -0.1130189727226655 -0.08152467904613359 0.15426729143462678 0.172907083372626 -0.09033229056024641 -0.12531943223955225 -0.11099461283931863 0.018144443188126663 0.17629308869825405 -0.032169355182566216 0.08605919252655639 0.16541618887364448 -0.07784254726445301 0.10107717387524562 -0.13040711961013038 0.13838388883872066 -0.1207868728779625 0.031535183062627564 0.13869905327418502 -0.07241300847230042 0.12394087235627019 0.0208056133151313 0.014494771023206818 0.09238120382031804 0.1694210578168831 -0.11657464837476901 -0.12581175337904058 -0.058895880516224144 -0.007307110252822363 -0.14894037380754038 0.08739851828647932 -0.0843100442307597 0.043549895845546006 0.0970635039612647 -0.02854159494040828 -0.07335380705449723 0.15750112764488436 0.16549228308831793 0.024094861033125022 0.015960341234544387 0.0046258378484907445 0.15005871506560406 0.15593407786864144 0.13470124929529623 0.14164849416717554 -0.012539799968543403 -0.08752073654462203 -0.02451927435296947 0.019369114955499648 -0.046610372977470095 -0.05712221509663655 0.16613172321148637 0.16380108941279348 -0.01278118841438856 0.11281084308431767 0.11256632565819387 0.007705972077335567 -0.009904558418472735 0.04749159640537992 -0.079978600981962 0.14440570813158757 -0.097304097767746 -0.09462798164485549 -0.1223323014152007 -0.015210367691216904 0.0760068913103651 -0.06857225617247552 -0.12408377927150016 -0.09990789973417585 -0.07502494552150642 0.11630476772420768 -0.1693858715139533 -0.13008139174966324 -0.016086762505286754 -0.12007520072106131 -0.027291800265542374 -0.07752681508109674 0.16203281009384893 0.13850123185824018 0.15002143944289173 -0.08966698734576 -0.16131922370703844 0.11520761933209818 0.06721707283373851 0.1267279030878057 0.15286453968967265 -0.15248686380450588 -0.14125021605667215 -0.010180239147159568 -0.1605844847731299 0.06145846551032414 -0.11009486610783538 0.13202232645827955 -0.1747117690285263 -0.06091708821080341 0.06388708571352417 -0.09908718763884644 -0.008029622848580375 0.10741777791410398 -0.10593230103041378 -0.11070379124738759 0.11654544201013989 -0.1686732699624775 0.007334243471813107 0.1512955567788061 0.00546313443525547 -0.10321995011878124 -0.002056388414412334 0.14825037567127236 -0.014048832406245628 -0.001380432325254843 0.15302542742361713 -0.02562563648978451 0.06955556352099494 0.13172515783318636 -0.04665228454443343 0.1243309688500911 -0.006256583037041414 0.1298956507611098 0.11605708501107437 0.1644333019088043 0.017037734095548332 -0.028185024536567942 -0.055264493569630035 0.005385324015408544 -0.08418522684365272 -0.027860717037498796 -0.1730245751189907 0.08894449121795032 0.10233870113130432 0.030281583201076163 0.16398178587323184 0.14791436772342378 -0.13766100784369245 -0.13988306257854644 0.016103745490135126 -0.08386576353675988 0.11248164225121436 -0.17144483386038809 0.02887842982820669 0.023150107184867222 -0.1625715412875791 0.05080325689871943 -0.0005134365557646945 0.13277042001186018 -0.1758675479930895 0.04266651785665409 0.021260888394641853 0.11225263197934172 -0.004494262380697645 -0.09894437186646422 0.033656128849818195 -0.10821057416160491 -0.0018584465835289707 -0.1474387301153613 -0.009093549124472522 -0.15363116429145016 0.10918963584723772 0.07215108937240947 0.07499864811392203 0.11039721097245866 -0.1028834967652394 -0.010390490649197148 0.05132039337703973 0.07298358000475423 0.15672931421693928 -0.01880533913283608 0.13377197200297117 0.013145127891086083 -0.016325238872272902 -0.0002204946201638494 -0.09551604584111925 -0.028709049918552547 -0.0073941249612270955 0.17002962059281446 0.07279348872209733 0.014464793559989005 -0.02075660322414491 0.09589985345507626 -0.06898599038431118 -0.00184190140123895 -0.010100526527827001 0.13917017327557005 -0.020549106735622012 0.1411926165034665 0.10467749793906389 0.1539790686687035 -0.15764011387400328 0.058520096909683024 -0.16834902003455227 0.01779557195260922 -0.05780256801589919 -0.07738972405513325 -0.11574947142984955 0.06492125023111371 -0.08157568563765967 0.15088874635901034 -0.15344372002739648 -0.024419850504918496 -0.012547483798482185 0.09027965261211542 -0.01785881072205985 0.1352350712449165 0.034139874754389524 0.10146229077223576 0.009940960453583727 0.07579399370854453 0.05175450573727279 0.1266020831622373 0.01362633978863402 0.07696184378411061 -0.056525104405990304 0.15353302907563152 0.035428794475856465 -0.1615703109177823 -0.16409200573813132 0.04305376890629982 0.06313515914832034 -0.01686819401950397 -0.16466400793154903 -0.12243186444344051 -0.04929650210007728 0.002209244231976917 0.11017218589669693 0.15281396811122733 0.09321608789018952 -0.05979486409845961 0.05304280505799805 0.06975506392920895 0.09966560235971313 -0.10507968521382918 -0.0919525266461537 -0.0891213098422803 -0.1289780318791225 0.15321580051351133 -0.09608060269690805 -0.10041569234400319 0.06579562425295463 0.11252632878291643 -0.044610129873573066 -0.0516180765892685 0.12760213471623358 -0.1672203881993663 -0.057079793723786104 -0.14993834218500088 0.008227998578470936 -0.0717613519485332 0.0364627817478319 -0.1298480541319009 -0.12190893557784352 0.118455178755727 -0.0761913913478082 -0.1365400749035807 0.15992112352701074 0.14857709631746077 0.13134560927788647 -0.1036928182197809 0.02994089259518036 -0.1476868969943792 -0.1015179939563702 -0.17319847323206924 -0.12785839689582762 0.11733995217998246 0.005355685978260599 0.11139122932102419 0.13404212350400604 -0.027126923529131073 -0.009765474479663803 -0.015442770356152498 -0.14180055655166288 -0.14574640279701384 -0.14296738601567513 -0.02596377111082283 -0.0866617106118195 0.06047270207146548 -0.14710725998593727 0.03734326335396874 -0.1047539704695428 -0.013443378870043548 0.15103900906024156 0.05547608161179418 -0.06317026184568672 0.07065964435025611 0.15051919709093098 0.014763690203112887 -0.1633349916327014 0.016242706061308905 -0.05467420234393009 0.16929903056935877 -0.16633903546602163 -0.08526660817071034 0.02389374940525923 -0.08526219614090265 -0.13291192170521723 -0.14051112796130288 -0.05838430754063493 -0.11772457039871266 0.11248458286652264 0.11542799469447507 -0.045975794177346825 0.1710403634085807 0.1422413514179319 0.06699466036311434 0.11080052537044985 -0.0459105463931441 0.13626454007494473 -0.10936586038336327 -0.014438670715280238 -0.019436204155135556 0.06993824645230258 -0.04600528338667334 0.08300102810997995 0.15345374062121647 0.07879537635777671 0.06816417436071338 0.14480823856362202 -0.10488125740764516 -0.11840307543154163 -0.11225979394604436 0.018350235624006166 0.06353796809910658 0.08389706763527019 -0.15918857798931577 -0.08564453885194942 0.04426039530214453 -0.013040362919633999 0.061899839773134395 -0.12228601031185962 0.03593650083103071 0.04485836890481671 -0.04081970993227241 -0.07060669276540177 -0.1444944125189935 0.078769245168417 0.15362885229031323 -0.11303566940449158 -0.029303022390637902 -0.15771452576656045 0.15308834487195747 -0.15666338259193488 0.06538576783693205 -0.07935118936681188 0.15607747937171032 -0.121997554846993 -0.006367869446768706 0.0375975689934921 0.07150179670412003 -0.0989669102437434 -0.10536546615687037 -0.17662117162179475 -0.17479038588992474 -0.09650151401663272 -0.09519040839822604 0.14986797499556626 -0.11107927333361961 -0.14978342038236026 -0.007474882525458322 0.055615476244907494 0.17092179196178187 -0.11469767311623745 -0.15773065997798846 -0.14747209736288752 0.023515270868896054 0.06250710528217206 0.09966624682786977 -0.04526823454316916 -0.0031371315172073833 -0.023198923913716935 -0.044058149836762685 -0.02168282411086007 0.1572743776881238 -0.04783674520752314 -0.048786098887638615 0.06194887444128165 -0.03566265533539913 0.11390183804787256 0.033510271235565776 -0.1695469956249926 -0.09977024031146563 -0.0799804563367342 -0.11242917970134743 -0.044302799017897854 0.11691970508697182 -0.12249389704044608 -0.13693241931409394 0.0718206427770406 -0.14938462234438668 0.060755425724831114 -0.1540280651867022 0.10793938432577994 0.1512374174032048 -0.03408958388567634 0.12012985226239171 0.0167987670862303 0.14253897058095327 -0.17198480417110745 -0.061674158438151765 0.11769567999946653 -0.17009410113414677 -0.15233514790066047 0.16659630190744723 -0.02272349597752755 0.08966620058323699 -0.014077557707153644 0.10360913215287376 0.08422607570048628 0.04613049358005551 -0.0065412065546815385 0.11136300664748938 0.11054857117491668 -0.008080699595945024 0.032083634329706734 0.14233796034893248 -0.022752928416374704 -0.15621432662249748 0.11879598981006245 -0.12213474595307199 -0.02497724612465605 0.0003868386776782003 0.11448381175905224 -0.14413974219035017 -0.03422845022467908 0.11654710855306508 0.05895451514256027 0.04474355021244041 -0.0021443380903553555 0.042261484619909445 0.08987969694963006 0.11211518050884638 -0.17618222763014493 -0.007864324258096888 0.11358157147140859 0.06002481566239545 -0.05425471156093775 -0.02907887378882936 0.1679063852724795 0.08766209894665691 0.09451899134189595 0.15529918762019557 -0.029566030646114686 -0.11685783062093051 0.038582262715604165 0.13577189882853077 0.1668791512955563 0.030116056137415064 0.1438889503517542 -0.0484007372562372 -0.11140271947091465 -0.137928091483547 -0.05082530094811286 0.005073681101581962 0.048378982682334586 0.16827051319201394 -0.13353353653030806 0.1302853359701656 0.05097745272252235 -0.14285102768024116 -0.17541431552935757 0.07061093752694352 0.016078259196221197 -0.11662657594454619 0.13746795785416976 0.15965477703931813 0.11958593709322554 0.1400588377244879 0.07874833854469697 0.14143131355482583 -0.022931373901800917 -0.10919206026100729 0.01105256086622088 -0.03530882651606278 0.0875123187124309 0.016931458848377733 -0.060717428745196464 -0.07657246099905857 -0.012969832129557232 -0.08256743312068206 -0.16945004804476552 -0.05460063807346631 0.15257720660964258 -0.14199953372921056 -0.052916643420733794 -0.02911141678329172 -0.016983387660745468 0.06230525426357234 0.0074590035850883194 0.0008240366296753831 -0.0638923923856211 -0.017070699213487427 0.023407870172910142 0.0701695803368039 0.025663629018225095 -0.11129887481063162 0.06683454361555291 0.00791648100200956 0.1145693572741307 0.15707912665778298 0.0018134867269902434 0.05174418074754031 0.12329131496229809 -0.0703782475196444 0.07109351365908535 -0.17518701261576236 0.002290390888151798 0.08764785654664392 -0.012201750071154573 0.05637261025964648 0.041952438417689926 -0.04542061143734627 0.13816024923274284 0.010967061424390547 -0.036660376944171694 0.012274607977159829 -0.02072734419665321 -0.060792527558160614 0.010208669465144128 -0.08703703253868487 0.17213036046584707 -0.11678528000405897 -0.03204432064080253 0.044715602476330676 0.008044772556517544 0.058513557679529635 0.04776371651875713 -0.07994607164421204 0.10679824160015283 0.1403710929283213 -0.12722558835687198 -0.15235866567583548 0.1004314818184827 -0.05332720392723444 0.10000962993311183 -0.14334100832924615 -0.053624783255298424 -0.16729660190382076 0.0934823226286173 0.03408527971319847 0.02003647547003892 0.07340570449144533 0.0005246040791547651 0.15558755403486735 -0.09531508193720302 0.13834087428807149 0.06362809287798278 -0.07203511151375479 -0.02473335186095274 0.11464908367218285 -0.10886204690188166 -0.13833351160756918 -0.06751014813811217 -0.0514915048428688 0.12198910867824679 -0.025779277854335713 0.027118770355637364 -0.15254558768773332 0.1373085385008846 -0.03566432605615288 0.14786549669783167 -0.05053572292000274 0.0916285273477214 0.035378623856155124 -0.014980581472974994 -0.04989354004031235 0.15044480617870393 0.03900821535452139 0.04287289254678951 -0.08603894413994873 0.015219024980186287 -0.07561193060732586 -0.1379705208316734 0.013487473759080321 0.17462846853144207 0.06106291931432924 -0.13963494556939052 0.07880168805093409 0.09575569030107182 -0.06911477942408846 -0.10151537461331582 -0.09698822974905999 -0.16896151338416462 0.154528495636526 -0.02013802196907172 -0.06081826169605488 0.16442107633776193 -0.021430959474878976 0.10505622065214339 0.13683756294987232 0.005662289417243783 -0.08265082662737658 0.17267518564860954 -0.07188298781961881 -0.033946099293241855 0.02649546467469033 0.14243209214111846 0.013456411173640024 -0.022453598821068493 -0.039043513267683294 -0.036453572273918614 0.1364187840043145 0.15215457402828136 -0.10498883137154531 -0.04054165056894805 -0.05480143411201813 0.07462116618027914 0.032549698422683994 -0.0901361780195027 -0.1571124864112152 0.04446390591973134 -0.0007347729129592899 -0.05807982776716907 -0.12822165410122655 -0.040531453141433575 0.07674827188881485 -0.09778525323652904 -0.09881586409933169 -0.05183351343374214 -0.14448099529836947 -0.07543939750303325 -0.06090282717382465 0.08342618585109561 -0.15696902987053438 -0.04003396693723852 0.011796503219268704 0.09729116537714705 -0.12397049046073176 -0.006481285142298546 0.11626778447882045 0.17075505463189003 -0.12476347896672885 -0.13051781752103944 -0.0671651612741421 -0.04625110481036876 0.11963462292022442 0.08826737365900458 0.13911330357071658 0.011820283180272919 0.015140829665485772 0.11083364691030508 0.08861990884237406 -0.14758852879121803 -0.06792977948308752 -0.02168944118130877 -0.166440612356001 -0.022297686380686108 -0.04135921119092876 -0.00887367227529803 0.11242882308385509 0.11532105641042659 0.060111394589740824 0.13447566539274966 -0.06270557075907417 -0.03431923872834869 0.17056978624064395 0.008647819928005007 -0.13214591234711234 0.08153974087613441 0.026909558372169882 -0.07382102964615575 0.07641331178069848 -0.03585748068924343 0.09209228412111614 0.028889217989773727 0.08953173336038663 0.011794786121234678 0.08296819550838315 0.12612556048312415 -0.0884614927528348 0.06316524827752543 0.17548755839976082 -0.15545955117134855 0.0545078370290517 0.01713028330447864 -0.0739766475954573 -0.045164556609834754 0.14931914764483176 -0.07866685901549546 0.02065847426081258 -0.013494580152688847 0.07226068860912042 -0.03282218802009948 -0.13144596030551708 0.09150134303828122 0.14849832997253914 -0.17206025531323776 0.013149759792800392 -0.08735111701119884 -0.055738127152323 0.008445759616447173 0.006078922067486465 0.0725995005510107 -0.14326657431620163 0.09788564430226535 -0.10017409179045803 -0.023796330074814163 0.08006948584899047 0.11830734049467846 -0.07704938841832785 -0.10938206414549903 0.08958736177084722 0.10329088873835478 0.15849582749151422 0.037174424840759744 0.07723699773432131 -0.03024244460942903 0.14737186232665006 0.051996854107557625 -0.11648126363893829 -0.12382432507745872 0.10004225403739588 0.017816020544883376 0.14588061259839208 -0.0732356211294267 -0.12735305723460352 0.12160816952588514 -0.14940187025114152 -0.17150724951237176 -0.10743357074270449 -0.062311204511248615 -0.03934160498341027 0.07883133875609451 -0.0829631516488603 -0.023259547715110098 0.0946345470105892 0.10135766210512585 -0.03125906173815327 0.14576233154413323 0.10643563831071962 0.14350852228755706 0.0193495213658101 0.12978659086471958 -0.17490842731372888 0.12121539639035507 0.09241924211743668 -0.08351392067561626 0.10410205893581474 0.15697711786399698 -0.13309963732496552 -0.02866576690702044 -0.08712440635703847 0.06557562570406708 0.0199391628585981 0.13959539865757287 -0.08267309011317019 -0.10162451105915327 -0.03920082038519836 0.0852643968108577 -0.031063613181685393 0.14496487953539025 0.0738860160823672 0.14248196259835796 0.06523033284820808 -0.0027064590822637492 -0.04003519758904746 -0.17234905731603828 -0.11880531303356355 0.0939449486554152 -0.11820384219179901 -0.05216036170349749 0.010573370578774496 -0.15513375779253458 -0.06747660899007252 0.10801765415545866 0.0729322954405293 -0.006644272052197776 -0.07956967007007207 -0.017156192189058322 0.06247416739777343 -0.07699184239220233 0.16511278144154443 -0.07152891064921298 0.03254516667303388 0.15793602620377054 0.042872093229275425 -0.06408039514466428 0.11173786979006099 0.0210215696986603 0.03619820497556288 -0.16852821191381964 0.09355162519299098 -0.01890884303242551 0.07794435618218705 0.03544805044850355 0.08952813706970614 0.12146478835080608 0.08234536302240256 0.11274010934482089 0.015588714338319294 -0.005897706801689086 0.039325348279437664 -0.08676624468913512 -0.10312133330353408 0.016762379931568688 -0.15941207373103541 -0.0017617345708944858 -0.06432035019608726 0.16012149978763265 0.047381317895161 -0.15188609581728651 0.11169584120379418 -0.10697203230260824 0.023890783907936218 -0.0024226123750378573 -0.1446372746174317 0.11033065544831265 0.1657573738949184 -0.13663694162821113 -0.16869363283126837 -0.07414015927836283 -0.08906751629805104 0.05296475846623608 -0.10673654564852364 0.07625315767368705 -0.15533428539059776 0.13066217756311718 -0.10390034996543117 -0.16630293558742004 -0.14696260896575813 -0.008378135846321879 -0.13678436889970375 0.16778305672245514 -0.020367944278669385 0.05733802891944228 -0.13811198239230793 0.0096770616044608 0.061708684269797795 0.059489874682379214 -0.07137839690053815 -0.024920696357581516 0.0777715178172799 0.04207812518975658 -0.07882570748068969 0.1678354082500234 -0.1321737461264122 0.007284640554145348 -0.0307227835459163 0.05520598498354877 0.13489259887474203 -0.015843341843211928 -0.13276238553937525 0.16485986397020366 -0.12591301449868858 -0.08176916936398376 0.13849005570657288 -0.1705478426506721 0.17028196397312456 -0.0826416131546054 0.14070501143841938 -0.048614542495882464 0.026385252039393306 0.07387528821150273 0.06946173865413552 -0.003837606822197138 0.018552157116321754 -0.03661666302512641 -0.06893560590950941 0.13867011540663104 0.1646518900707638 0.04912397743854235 0.03922305519500032 0.05803593885835407 -0.009383064697388852 0.155409038784056 -0.1496508784502003 -0.031082507016858153 0.03301938591917406 -0.0878898907715145 0.17294942882266692 0.03987474515185397 0.11806641956810848 0.15142776984544196 0.13619069562861236 -0.027036207104130572 -0.16099753189106084 -0.10344939078951951 0.08835423419427971 -0.10950145301106957 -0.027510552067706823 0.08903243552208241 -0.03721992862667456 -0.11865697476572025 0.10842056363388974 0.03207387970017861 -0.12129517343754355 -0.1402358166543364 0.038805083473805714 0.10440459542994368 -0.010509084919490838 0.10731254153141803 0.08141224396642086 -0.0934203950686487 -0.03448405822509776 0.04373824174573711 -0.024612077995515694 0.10830840145022964 -0.02445310445260134 0.07939523406808005 0.06041811230192941 -0.03630268515690031 0.015823347956107698 0.13055631743297247 0.11908382045460911 -0.093563257906134 0.12005676003564991 0.1684740653218358 0.1078415734537373 0.13163752816096844 0.11779238503112131 0.10171055082112715 -0.03319019538144281 0.027127133837549635 -0.09208925963766076 -0.06251068659572943 -0.04834011828129302 0.06658646602882533 0.12267916396667791 0.006786070171439106 0.15823726867874696 0.16708365219845941 0.1752208574992461 0.030602948079601604 0.09311286742368162 0.11839392922732275 -0.01319506084686604 0.011852241753201764 0.03827119974586533 0.169596717119851 -0.1639477506775951 0.040254202706283666 0.07826939007136227 -0.15421807033983972 0.16063773349412253 0.14653952194571981 0.17177152166730225 -0.15818072178128623 0.1022116640189092 0.02456011431456894 -0.11161842899630404 -0.08523627693644138 0.08359533150486809 0.14636666388070943 -0.1698523368453664 0.018226426258795007 -0.14188649875271445 0.00045630046979694053 0.10024339136820042 0.07226761434085154 0.16673292343474386 0.03425195531901185 -0.12007219440510794 0.006001356101832494 -0.10882750160684525 0.0657017485228978 0.14065144837162766 0.09234904274628741 -0.08309347185183855 -0.13298000035861787 0.019609762539105634 0.13592642260945642 0.042425023172052635 0.06183140205743195 -0.16117230310613398 -0.16420566741123607 0.06109749793834363 0.15940995574851421 0.0013336823840330724 0.10050682072310933 -0.12313978494498551 -0.08127442790355856 0.16746498550349254 -0.12178252440475631 -0.07019093782323987 -0.019373268315363585 -0.13619466927886859 0.056212447914098504 -0.07411493459922676 -0.1694498872078332 -0.142401313582559 0.13081352836595636 -0.09422837982854251 0.04805109590492902 0.1098035819399348 -0.11485930040480806 -0.07792129361030996 0.15335059960000533 0.1714786443875839 -0.07388784676649225 -0.17352443897954553 -0.11383337752245433 0.04319721307369848 -0.04400418390841331 -0.04505807660886711 0.07412142818232782 0.07566721330420464 -0.11388822262153209 0.04874972703027031 -0.12951501830000453 -0.10469934895333315 -0.13802879186983164 0.08615008708477818 -0.1402980944433641 -0.09621306820123436 0.08292853361262091 0.08084524116122695 0.07200738007757522 0.10366676042673238 0.11061996114444901 0.13813185403663136 0.16341595247476598 0.14294342254365922 0.13917954385675735 0.016381848103568245 0.11795852429768434 0.1489643932460293 0.046565492057080084 0.09275656262258475 0.13763470574311543 0.14597747291583607 -0.10477289134393863 0.05666740922904061 -0.04655868889992862 0.13187419852106932 -0.09842218859369332 0.14806357824771643 0.13776739277624572 0.001987326459658627 0.13783086639033162 -0.03686502540894849 0.158264714225407 0.08318533843543473 -0.07335920610816936 0.03715705269341789 0.13905681018295593 -0.08885522111776946 0.06295814916530587 -0.07762694200924185 0.03530903295880255 -0.1578766437427632 0.018792571564839294 -0.06099484700475705 0.07960997676090635 -0.06514181496154145 -0.009964548728520099 -0.03049124863948678 -0.03692068373352712 0.1506285317639486 0.176279345235236 0.03169836794648835 0.004100421205276038 -0.02141354882662857 -0.10657008521980221 -0.006708315395813756 0.04397406200051286 0.13908947539690875 0.16039657455565023 0.16430931785128483 -0.03915008217209404 -0.06738323164077749 0.1579035193462045 -0.16201260069668807 -0.17085528025844315 -0.07386388866323683 -0.16818245636565157 0.11387046903935481 0.006582082238146634 0.13265172402278483 0.007121424350311543 0.0017805447626089439 -0.07139704361304777 -0.11452632903641335 -0.029901327653885798 -0.029419794956071266 -0.03639520355115818 0.04504339363907109 -0.09208014457945879 -0.02300676925292084 -0.072396018200243 0.1029684228010716 -0.16801614186458488 0.108233783300318 0.16115694356515733 -0.1755643331218998 -0.06271728010306743 -0.0442038393669427 0.02185904420272956 -0.053054644751731696 0.005503070071335203 0.12422459231461233 0.15423113230630717 -0.16273607955157726 -0.07468621312394873 -0.07078067283768348 0.02585317010849148 -0.10391939223349018 -0.027078279480118962 0.12213747667073566 0.032356101911963815 0.06808241277566182 0.11812502278683201 0.14799619796653873 0.07488516596013485 -0.1276173361849977 0.11194442133867871 0.1533151294030226 -0.12323526160149313 -0.10847661570561519 0.15489396570705932 -0.1107825026896914 -0.12979349319821032 0.14937650573203864 0.14723855190616547 -0.08470021980299619 0.08271852744950282 -0.16342772680420453 -0.07958022862847475 0.12244263133290009 0.13919921531435211 0.11315105805240423 0.06238480414716366 -0.07745302526080852 -0.14251441994849084 -0.1436177378003835 -0.09775592003277479 -0.001403324821246115 -0.081222519392501 0.022864276788151026 0.0371652177786026 -0.014071963543657263 -0.12353128397825448 0.1748682051160748 0.0016202012877452035 0.07482571903476137 -0.031815905888750114 -0.0074090673140434545 -0.13719928784239996 -0.15254878864649765 0.13347885767483264 -0.09628002137748178 0.15053900213130555 -0.1287989690236165 0.052256023323329646 0.11816168461392602 0.09161361626945778 0.10612581306406951 0.022087255903540676 -0.07192665265331379 0.011560454262179021 -0.0026207574472186 0.00211402967955376 -0.06877039746915321 0.0012277769980310765 -0.14323957350962993 0.06673161798992903 -0.11365345487466255 0.16072473632676823 0.008166833281370746 -0.0002245203865646944 -0.06902934811694046 -0.08417815872752325 0.01036154137569457 0.07445110283278183 -0.14700580234098787 0.15654940263252673 0.16317348741881046 -0.02571761066861382 -0.036204665161071965 0.16113613668818944 0.15046741298679903 0.04226086724789762 0.09037157039438808 0.005700304161589307 0.11381951729954308 -0.09846872895895926 0.02336159599953142 0.04892820415303484 -0.13995341982270257 0.03458397329144831 0.08298167888072694 0.14683729259424086 0.0062898906879699824 0.04755031363407877 0.1105927687509535 -0.11876439383391273 -0.10802353307583609 -0.01365427750191119 -0.051379956646641536 0.052689574697356176 -0.08519374937116901 0.06284291487349836 0.0053691689922570835 -0.13898498560170292 0.06274253734296108 -0.1624816534420393 -0.0010251534245472207 0.12047951970051682 -0.034798620673703075 0.09285766852591495 0.04861450272401901 -0.06369892681487022 0.1049514475657533 0.11467118010472054 0.12418843098662155 -0.14607330037075708 -0.10562691532592142 0.09410867927101828 0.007390391759134613 -0.04686122067897499 0.11529534235855048 0.049013946554101025 -0.17412361111766161 -0.13376054160964967 0.015748751167286454 -0.08565142424667846 0.011136985116759856 0.12470218792162187 -0.019802209542548053 -0.15428594134893064 0.0994484604767107 -0.067607315017345 -0.1302861361257776 0.051987177681489145 -0.13273335939156405 -0.07953349313823253 0.11878615001845301 0.05955830023947462 0.021258312652738115 0.12881055456107443 0.10472919715826906 -0.08554767356521367 0.05821713563087403 -0.08058858960158012 0.009450253254599724 -0.14549709205785433 -0.16229713200260468 0.05507928843470785 -0.1626288522592266 -0.048752291155074706 0.07251577112720253 0.09574047174741453 -0.028379823951080303 -0.14442120081473123 -0.17395594603987122 -0.08289030993760942 -0.14360598719658288 0.14359073364598798 -0.052274685811437765 -0.14203907310462816 0.1578458846011276 -0.007458984831135825 -0.07401249882314367 -0.005527139703441313 -0.15199040251367205 -0.1137534114691399 -0.1710228168279321 -0.10224195318565142 -0.043462002892634695 -0.0016899397841110772 0.1170203489954591 -0.08815937961889803 0.056978231931294164 -0.029371269868821513 0.11949575248519838 -0.13881574994369725 -0.11472361006190922 -0.1611581499253385 0.008523783225610941 0.14218845427250085 0.15069286812462152 0.03356128673773105 -0.07059230246846575 0.06795033913127264 -0.003796319248703608 0.03879570061338156 -0.013990926410912222 -0.12181389135815626 0.1548523235144731 0.11951981382911603 -0.04108914641396694 0.13409593435114336 -0.13749435368847518 0.10261222056636672 0.07879771382824555 -0.09869592006671411 0.023207974947000613 0.12384679124111378 0.0066251294342206096 -0.056880748095926206 -0.12630384774286274 0.10417215530519605 0.14283911440839783 0.1543044599337667 -0.06714904337130943 -0.16650659448504962 -0.14559066167175724 0.07141252894494357 -0.08382494107324572 -0.0569308078975399 -0.0250895925136886 0.07143636182436441 -0.07337588239591832 -0.10048201639006576 0.1719814418238523 -0.03757534434445414 -0.07842615911702658 0.07518316665196569 -0.10619682400975096 0.010139294416705438 -0.012867900906323877 0.03499910853532048 -0.10865439591840415 0.08751729515708132 0.1354001867563946 0.166337789594556 0.09818614417852478 -0.03905927003617905 0.12067765406581914 -0.1396588749719069 0.03464499934132582 0.07552145334707835 -0.026092645683093805 0.08495082304493826 0.1263325611485972 0.13670736692673427 -0.06795364714884163 -0.03091108288111213 -0.17576749964014143 -0.16187247042839398 -0.17188960225349542 0.17512800161005262 -0.10796958434977343 0.08634035214559484 -0.06877067065732023 0.08701591532208783 -0.152476228780718 0.11619041208847523 -0.05456147594095505 0.1695824473773786 0.16799827229107805 -0.15519551984016058 -0.14527847800236107 0.10232686202323926 0.17038248729591104 0.00782517481763276 0.06411796945140956 -0.17511520428026064 -0.12789187293549223 0.09830824460862761 0.12387631741476318 -0.11784660056809379 0.009218799392140103 0.09555192916067401 -0.020071162760358998 0.08054569370249305 0.08452697835669734 -0.04200709863345144 -0.04808130521015243 0.061841881612504555 -0.12647509766928222 0.10619509942441176 -0.11564988458563301 0.1352096398013528 -0.17444988374524015 -0.08468147840961138 0.08358793935083005 -0.0320134728451171 0.1766783471206153 -0.06437900354973596 -0.14668227348966542 0.017894140887007744 -0.09714863807897198 0.1113160497489309 0.10737981492648095 -0.04796318606759472 -0.1253146783787766 -0.04247109110196976 -0.010673419904125596 0.16651883783834442 0.03349251220214391 -0.11200816802338326 -0.06688451725259538 0.08654073804462176 0.0811808981905657 -0.14193778130117538 0.05833193740736111 -0.1399041089454812 0.051329485042535046 -0.16933766281865673 -0.062128413302124416 -0.054078733172977206 0.05009841838160912 -0.0177573390879239 0.07779508977902792 0.13262405056825982 -0.025367105330740384 0.05420835880710872 -0.016298674683821925 -0.11913977598407637 -0.16081312931278072 -0.013837569655140974 -0.11011706916812959 0.07404495627629792 0.02434913512510821 -0.0228142766898351 0.04519715243873885 0.13020950043696722 -0.006195232902424428 0.0058041000180350496 0.06432078981031972 -0.15771375183784542 -0.12367261558279657 0.11054407542318011 0.014924282828561846 -0.0063241033572890215 -0.13999638727698663 -0.09635932311920524 0.10988998886031016 -0.06699031557720259 -0.01385294426528771 -0.11138925888477257 0.10488969219160518 0.10077623132402898 -0.13638451982271785 -0.16312912720736922 -0.07488419828372692 -0.0981430151646811 0.07886817774241112 0.01451455984559174 -0.06509938556147445 0.16685997636878852 -0.0786753136373615 -0.16769304846150798 -0.031383615280726807 0.13274813528806823 -0.03446487572012452 0.036157951913897916 -0.15030435305246656 -0.09381469627406726 -0.05101670763900851 0.0090206871203238 -0.06458753038633758 0.14395207017683093 0.05029413648585425 -0.08109662017618854 0.14750244783441233 -0.0540771702869559 0.048578404558756075 0.15381137475944795 0.13218786948986433 0.17001524806800994 0.12719366301591603 -0.06693897900937681 0.08645327444548258 -0.029393967163556235 0.09723040878326264 0.01290756035461641 0.049969892966664826 0.095996314470802 0.11609248447308722 0.10809793844569118 -0.07950062955046884 0.09208972041010985 0.08327887852822058 0.10886226947550547 0.10371541739448063 -0.11928402788729324 0.1297022412069371 -0.007006162186559168 0.14451887339791297 -0.035468235525539044 0.16364842235290025 -0.03382277578654199 0.03519323280824308 -0.13523679015694035 0.03609302379859241 -0.12093095505318492 0.15667189729354822 0.07704946326429403 0.13075120687337902 -0.1652332550338846 -0.07382266713135516 -0.05423446713683021 -0.03447244417007602 -0.07702436537272635 0.08214001666064157 0.14176565624144208 0.07287979708242281 0.14653604083366226 -0.05988504828281075 -0.09112506883240488 0.1452757059168019 0.11078655575673761 -0.007674238702236594 0.13738270031668623 -0.1706272318086887 0.09563796351706944 -0.06250122445453667 0.11251845213915103 -0.044706730282240974 -0.13612225869822964 0.1736396161993895 -0.07079470926782937 0.03762719728305764 -0.10943110158735019 -0.09212875617445096 -0.1316475186027257 -0.07515018126195319 -0.12126607300543103 -0.13560278428484826 -0.0163100126690073 0.11435988703995266 0.030922353128043104 0.000714647155687381 -0.15158308252585553 -0.11252584935190449 -0.04771908911793887 0.02945689670499628 -0.17306228900275392 0.15473234353991114 -0.020796262628752917 -0.07154622966107974 -0.10989746369178953 -0.09415691181383712 0.021496481530908003 0.036297319330749395 0.08984317657622529 -0.13582480603363498 -0.1307861090043048 0.09341101390133533 0.04845521649126959 -0.1318402268063695 -0.09845022894766853 -0.1128663804039884 0.16844043229183367 -0.1584726184064511 -0.011514189092674022 0.016507134811573954 -0.07775266356384708 -0.08178472894738979 -0.1138234872222099 0.1000911147288032 0.00993918582227413 -0.025422332187829928 0.007696520354044142 0.0006553518209748219 0.1005702819863923 -0.140933972289087 0.05322482133099451 -0.08206840790147472 0.07308068106847174 -0.10198632532420618 -0.15200620783086147 0.027091413546711535 -0.07742702535267522 0.10104224337463394 0.10744525499253363 -0.03807026285550815 0.16521642020488966 -0.09768619373893349 0.16707899529102388 -0.17624875259293205 0.16503776209604767 -0.047851208102660865 -0.06392068286761361 -0.03989342914381761 0.16332394582097146 -0.0485196093155034 0.06705473467909823 0.12288690482790054 -0.1396563869024448 -0.006201369618403134 -0.16077218816283553 -0.091353947009514 0.0921076475504606 0.0873051439964505 0.030868980017192568 -0.03124553123646599 -0.07306756460367331 -0.1489918497231999 0.15703248437566375 0.07422958580976584 0.15728736135619856 0.03444612817647331 -0.07925984930484033 0.1173754893719261 -0.06569690069813305 0.017375589724448366 0.1005591407047993 0.07643634335638481 -0.16425425737975022 -0.09706392168098867 -0.10676219208680307 0.11175177510312927 -0.1295318235060467 0.13202874916484472 -0.16694304012901817 -0.09525025598458521 -0.07353424537386131 0.17616206310162885 -0.09091990053118935 0.17223850089638637 0.1625192656231588 0.009702524349396372 -0.06692143490355694 0.035398917076847544 -0.013809403270587233 0.02395751817854435 0.10248629247969013 0.04942326563008423 -0.05785589026047007 0.0866040284621426 -0.07778061260665567 0.1396217591258832 -0.12994764640669695 0.13317486432744383 0.013361474085478874 -0.08403350377822315 -0.09481675651974494 0.13354595920624462 -0.07948743690224871 0.06749957245956774 -0.13764555759096309 0.15312798781186918 -0.13546904929077147 0.010785585628043595 0.13072256955306016 -0.03854995340150837 -0.05071936803204116 -0.052832905641550645 -0.16852461112373918 0.1157501334555926 0.042438350666018046 0.16218322636208327 -0.06552548659640925 -0.04383574993083277 -0.08908601131877958 0.16605021221750269 -0.0069449565110243664 0.11823011196577607 0.08681742564502179 -0.10302930353538463 0.046433715284502 0.10358744443530439 0.09978864133531877 -0.11962526378595374 0.04964466247549282 -0.031978423417734304 0.038438320261621466 0.07615934638429582 0.16658529320538648 0.14360398916194803 0.09030249171691732 0.006861354316380633 -0.06132193619123806 0.1278208406717623 0.1366888201852653 0.08496674299194 0.17570103918424634 0.06309527446819774 -0.04066937380383859 0.0893451666247684 -0.02564425975583158 -0.11434913065445841 -0.023774499466471435 0.12838096544284147 -0.017480821903023188 0.12009356061715024 -0.01663675836179962 0.06790497955724481 0.08721421479280356 0.04369107126157979 -0.07459087312146305 -0.021691081728797114 -0.15298722760762232 -0.04547158553175917 -0.010384552218062549 0.1386188940619375 0.12217830022276391 0.03507445655843508 0.06739182432715946 -0.06027685158778934 -0.12903546774045715 -0.17641727669474974 0.07196729425144394 0.1574281897880415 0.055646428475183536 -0.13731577460693312 -0.053829853310718 -0.06777129529253358 0.16147623474850983 0.013039139094790009 -0.10264051401396981 0.11643570311910413 0.08384105788646908 -0.09434016833634004 0.14881053283680462 0.09306666188090554 0.10212239803896284 0.08822268111026214 0.03232167583479791 0.07213286419147794 -0.015586933904053872 0.08174198904003675 -0.018264851101573592 0.16142094768650422 0.07652033115237813 0.0007254783229866004 -0.04540447536874914 -0.06907293268869884 -0.01666100643285307 0.027358220777614423 -0.10076485583885439 0.17147708796307476 0.038106175533540766 0.0921725368477302 0.08510647340985787 0.05069231262561295 -0.16970356218959812 -0.0611334270898839 -0.10033804153929958 0.10603162719103364 0.0882362890966373 0.13809837313818 0.17162087491779912 0.10329299248132365 0.015411056649422923 -0.09903025098170307 0.11918324565319945 -0.17021174226099192 0.04448071522264771 0.15479518667264924 -0.06544760629103448 0.16374382105452565 0.05162203118148678 -0.06429368332830557 0.008195329752644392 0.07112745113899072 -0.03863668897606172 -0.051978759008582585 -0.16975533098322101 -0.1549876038691837 0.02197003349114448 0.09519355529566502 -0.05371232121916219 -0.17458797145533864 0.09540978779538313 0.04595580529883181 0.029351520063065246 0.0035747357477290695 -0.13307242883178796 -0.06689860997268472 0.12668455543765256 -0.042559558211167206 -0.10940166320409467 0.07895436778114373 -0.0033651976348311324 0.1538491056790122 -0.1648264233761073 0.029051226664202852 0.08378288638277728 0.040111434605113294 -0.034013022475952503 0.10353912300727743 0.13159004877868377 -0.020468203592599595 -0.04471403792644101 0.15438779206322753 -0.018063673948373583 0.08336286275710617 -0.13926747540777965 0.12559362634856108 -0.05230093679822568 0.001488484504901642 0.05657652935758347 0.13553483783230633 0.013823503045690862 0.15705307615631733 -0.04293959819045836 0.04933016680152175 0.021671451548967546 0.13284516823546821 0.15591777498861092 -0.14825046707232123 -0.03839250722918452 -0.056242906442285336 -0.020332829585195746 -0.14114392790793767 -0.16654714941194104 -0.01350269734415049 -0.17208657342552638 -0.05962591732087847 -0.010553770252456057 0.15634112096789948 -0.13235495952645582 0.13282073296579544 0.1726908458394931 -0.010099107917075344 -0.14692411553261797 0.017429179419846088 0.08998149877112743 0.12467651935432814 -0.005151280762878555 0.050531768813101376 -0.16593480266865637 -0.09987245148401094 0.016384055618918397 0.07765186258076628 0.024198171851324595 -0.17659553812185624 0.11041044510615947 -0.0043289197425157066 0.1510535789616519 0.051192641690002726 0.02751606606183039 -0.06900560490546633 0.03823307025113449 -0.12289889496466862 0.019049079573141985 0.004238429267941029 -0.1316806377703455 0.04872574844026824 -0.0339308453376821 -0.14730559708924515 -0.09547464988661486 0.11578101170945618 -0.1442648702728726 -0.11391939865242347 0.1639726807334296 0.019402447503280865 -0.012286444041678064 0.03575762576104934 0.056553913423472456 0.14392409988023033 -0.08454942986286533 0.020474591305893318 -0.07623294105589473 -0.17195341070904333 -0.08372251588335826 0.0487174460535374 -0.08891278173306726 0.02228776904218013 0.11181282267146754 -0.06746523659957789 0.11860839885997096 0.08619874115666125 0.021072107630038136 -0.03739111383783067 0.07045643747319788 -0.020985211484013933 0.15958235751207883 0.07855471617091145 0.1710762778759509 -0.08329468902908076 -0.13979910780023028 -0.13747610010648165 0.16501073024671722 -0.0035515085881511923 0.07586738639426435 0.07971246752659111 -0.15873379386033792 -0.1366997632847443 0.029548766617316438 -0.04971082704600043 -0.12789718688804988 0.053405618583793266 -0.11966592245936836 -0.000520191840529473 0.14467756866687695 -0.12291237372775031 0.13312942282248738 0.14742869525689098 -0.08716619206152264 0.17592305937079275 0.14288066127793447 -0.1578317384289899 0.004425041902137426 0.09111355804181406 0.03431391159769895 0.08523111898314667 -0.07694301404948704 0.07377988196864484 -0.07769287110297975 0.09863675147031771 0.15311343298299074 -0.0848371205660475 -0.040356099906494504 -0.09387464469150883 0.016546768853428553 0.10417166939674906 0.08654935430998528 0.07837124197876141 -0.0913490817381538 -0.15743295416563635 -0.018036248409858093 0.08317970701366557 0.025480750719032542 0.14131266334537262 -0.16658269125778366 -0.11097039417342998 0.12451875018021087 0.1730408947509398 -0.04715191581182689 0.09213982680113422 0.0042126719331053485 -0.03261434970965333 -0.0803557207713754 -0.16843146952482052 0.13477157396591125 0.057400077876103635 0.15105351160859024 0.044621374239689524 0.06121559123846161 -0.1631774085926498 -0.16722104775811986 0.07812472417037608 0.08602474604897899 0.028209143128712144 0.043324295416148295 -0.15170949489894117 -0.1307978188264292 -0.08510938627126612 -0.10023975530797431 0.10060867412018598 -0.11981311918948465 0.028970970590916936 -0.15717532043802596 -0.006445528779193207 -0.13468772274626709 0.1128618860732214 -0.16162136015430498 -0.05165325622065798 0.07449066512245542 -0.11151922495700255 0.10751657682534667 -0.011469948877865519 0.008495916289340332 -0.05997234994434124 -0.0009120651209486624 -0.017818156684189748 -0.110019381001674 0.09976478601260692 -0.17419337079150451 0.10871504754780399 0.016590109905110825 -0.1494378252958271 0.14670899482361688 0.12221953018538916 -0.00814576799069753 -0.13872718408097381 -0.06948710244100553 0.03963277275993336 0.10920627341522765 -0.17104345697361684 0.07473293891732104 0.13552294814441548 -0.07547411737114067 0.15065554076583135 -0.14275727042832337 0.03641670085955272 0.1374887334024458 0.11524665093539563 -0.051890709412828466 -0.08844670684087765 -0.06538952466069896 0.08461124354799286 -0.16619172086133616 -0.036095905805037604 -0.15439718090119228 0.05329830320715244 -0.02231175363374051 0.023095846876915998 -0.16325297649838702 -0.04970565562777925 -0.12399301543689506 -0.1623185095893121 -0.09678153970076761 0.13863435918429187 -0.14434155102836496 -0.11660965230443655 -0.11574258399458612 -0.023281162296425923 -0.007745293910248203 0.036207427753084824 -0.018971554510452834 0.01647709508582627 -0.11381892517953034 0.028588282682661448 -0.059918454477866104 -0.16701424414118318 -0.03478047081219596 0.13614042028562845 0.11123711876850055 -0.14817776776246636 -0.15516651621700425 -0.04580658176346432 -0.02305422652092902 -0.029140908852664432 -0.1303020328579426 -0.13923099430959054 -0.11819449162268651 -0.1367844563139955 -0.06575165876395281 -0.13138507825548337 0.09620280756385158 -0.08796265061754402 -0.06550872211425957 -0.09378688681747233 0.11426175393566437 -0.0017445492984911935 -0.054555349516605595 0.05611933036539329 0.07199241440127334 0.11311190125231618 0.10540017737545769 0.10341136723277491 0.014234913972189102 0.13479358582728518 0.01970891231690773 -0.042669993324356996 0.047908478834236254 -0.06479566523926078 -0.16920992702619833 0.056430087315221436 -0.17090823981493505 0.03179180027933517 -0.0285446377234237 0.1666986475664067 -0.13623385771772342 -0.14014563966164822 0.10757158514724227 0.1363803247041544 -0.06849336458996623 0.14684760950751344 0.012471939089304674 -0.14266013465041694 -0.07136955545415982 -0.12784861481690687 -0.06811088792005449 0.03858581027553879 -0.09008669436409494 -0.008655979063794903 0.16460678013003452 0.0693528376849812 -0.006744362050516191 0.15261150689172434 0.01282057472873338 -0.0355328425862996 -0.015969566468621615 0.08869615721758584 0.12015386428841997 -0.13443974296405978 -0.14572022011157532 0.1319823482445397 0.13885145563367776 0.002878976503360171 -0.12492355946629342 0.07473587436605426 0.05784313322296801 -0.07154296434366063 0.09020764913441123 -0.0002304458700091604 -0.0467005781923866 0.002878551862339803 -0.07495089194081904 0.07759120264623535 -0.03906299327433573 -0.04426491150681627 0.10996447060781714 0.12402517203893575 0.03925896958005159 -0.040845773582862274 0.08741600158940727 -0.170728931560475 -0.053543205453175105 0.09964211918277405 0.12079453037234394 0.15108944837680982 -0.007710638670031024 -0.06916738296146896 0.035158981045121177 0.091142651936021 0.15567323935815075 -0.005383736396823643 -0.12360457838025568 0.024926367836426055 0.059362249085366886 0.1665681475504399 0.1484535376184323 -0.1309789082479791 -0.010324547947461783 -0.16694031317081168 -0.1666804688458302 -0.06518613122057929 0.16474229971374055 0.05263496480212972 -0.15152021590374093 -0.08404337652114525 -0.03895124414755643 0.11395079692035795 -0.13391514607082725 -0.09847912441364737 -0.11220650029150239 0.14126632453404941 0.006534538284973238 -0.02852041033299427 0.1423973763560045 0.1281599121466129 -0.15908522369752534 -0.046348314723672304 0.14841275869027784 0.0857755087479562 -0.12162380780383375 -0.14265033426437315 0.015533626541901265 -0.17616151053859097 -0.026140654399239807 0.11775605743495969 -0.1681002148407572 0.06680340626501413 -0.13109987410653098 0.13734995312585896 0.14826881440790982 -0.09310029838045297 0.04440915250530132 0.025914544770480444 -0.00029518679606801263 -0.09281804374696377 -0.16828962817181847 0.10904208240983605 0.07865015681923485 -0.10259282437239794 -0.10309808945094091 -0.13825670962930567 -0.045107852868205775 0.08001023878071847 -0.14523726796962666 0.05936294608448744 0.01624391897113602 0.08512863075245272 -0.09381383875266512 0.02116774191504543 -0.05234977598428713 0.172624228980325 -0.13693206508114358 0.11653978731432688 0.02150316811076748 -0.0762942074771839 -0.03981410147079418 -0.027450632766540726 -0.11682574274975675 0.10192130170970483 -0.0786738893992088 0.045664524776446704 -0.06697793950615091 -0.10251739842676685 0.005529029055839317 0.10931905621274562 0.00940790098472804 0.04702278925284706 0.030349143901807825 0.16812555756600064 -0.07633919121777827 0.16573655037045013 -0.10432076286454785 -0.017840304097201717 0.08093819200328382 -0.0415190004070474 0.15633294663414332 0.02434417174680358 -0.01671987574103326 0.0027261240125242897 -0.11975776639350472 0.17425057446486458 -0.09051914104116204 0.12569158839235206 -0.13783395740446366 0.1060433036374235 0.14289377294316646 -0.09455868030679114 0.14083674901095045 0.021292981629915126 -0.15091258918279077 -0.07876892708261968 -0.15375942696383613 -0.09379358650969473 -0.10401599016116597 -0.040594206379685055 -0.16413131263207378 -0.042479923285069825 0.07198142636516391 0.11667166015477141 -0.005835467358367566 0.009321475068428604 0.03140652925140859 0.0974438407516164 0.1456140205155333 -0.09559084790668226 0.16091620639579182 -0.14124098244718436 -0.03593003072087644 0.059421022298836675 -0.16772578456535794 -0.06075511854773465 -0.1496804705898968 -0.08498332588717347 -0.017451406019846703 -0.14720760216897102 -0.1246595091355079 0.12454158591843159 -0.045877784281803155 -0.017013717897977378 0.004879353831982628 0.15513665312697117 0.13303058524180106 0.1756069635683832 0.003033140413592684 -0.07800148903792548 -0.056150613449956484 0.037023622219324016 -0.09269537558681126 0.07855419019022104 -0.10870009159611178 0.019410424243076235 0.017167343338452802 0.027005916212205605 -0.04724622037919638 -0.07018950813224588 0.04262611742938413 0.10473861550639665 -0.07495445714821827 0.08018419414674742 -0.038689929803582754 0.14328355343125387 -0.019319542024684222 -0.1545759205455809 -0.03020586354756953 0.007429763066482958 0.0797491905621215 -0.09748097989380006 0.013599905072650985 0.12416848350432759 -0.09073667929708155 0.10778882489160335 0.09685379424207274 0.029421799838517986 0.14822544125476864 -0.08894191322182968 0.059091018769624616 -0.02706396823294292 0.0864081648895849 0.028041465313707232 0.04446879812422866 -0.1350914548220669 -0.1762614350644006 0.08191270400563261 0.002819066651462992 0.12647319598053236 -0.11142827993717304 0.13871002037791946 0.14744580530107998 0.06575273554828893 0.048362755419159784 -0.043189964810857386 -0.14879326874784624 0.03722157022668679 -0.07689208072160977 0.08283830193590001 -0.17648919580589795 -0.05042896058856332 -0.10635116046254961 -0.010308350797599895 0.12114234168259769 0.13814435669228717 0.07934512677560429 -0.08557412452681305 -0.0700586912237824 0.13554641436154174 0.04889332533234741 0.07427820246605404 0.030769933035678234 0.06399821176217793 0.07426663736383117 -0.05900729096246247 -0.04397400426339926 0.16291321561342062 -0.10630080773874775 0.03179607561564826 -0.14419409117089593 0.04808955061069409 -0.005127271583508001 -0.011159215123919673 0.1590528983901882 -0.07352032174765272 -0.12435162139861672 -0.032210788576989495 0.05515302444773642 0.09355409233024037 -0.08499134074484045 -0.12968843481118972 0.12699241077433213 0.15882120596728574 0.09523490078508151 -0.12035180523258852 0.14865512242176682 0.0022296536086062087 -0.11363491408911965 0.11260604472541823 -0.1371044053683167 0.11976324724978205 -0.048464441856730975 0.08480602937195275 0.11008014711093386 0.16180672690552342 0.14522292891655655 -0.1213546836981705 0.17148002815518473 0.1625931760464683 -0.0091842855150212 -0.11360842463946542 -0.13782230420501937 0.15362021101448392 -0.03177795551410648 0.01182860457861965 0.0937783787420252 -0.17113414394997065 0.09045057169159587 0.10121318527074172 0.015144018266676215 0.04448326562923831 -0.06496271817022131 0.1105535449983592 0.09780219690130373 -0.07484642589079395 0.06639746302122126 0.14707448222645103 0.1287765410688047 0.14641908221363278 0.06462597792527014 -0.06058630494679716 0.09660598061646126 0.17586161120564328 0.14443917567175937 0.027055534564005407 -0.12647047748941795 0.15617889222085682 -0.10789939873524336 -0.025521654051804638 -0.016880637857695908 0.15284042640919654 0.13009270947775892 0.08703908030764068 0.12945218642279216 0.13873887485542805 0.02967608309394999 -0.17624303581190495 0.13747749084943953 -0.12215315244482187 -0.10309481674974375 -0.16055627663838765 -0.025909485949774845 0.01866194567339099 0.141070015873252 -0.004596742525087596 0.16059913491411526 -0.15365093210212127 0.022390194837040307 -0.06282424933592597 0.1739170414765222 0.0538314422289865 0.048340884079875725 0.10414307761091271 0.013259426531137436 0.03527886155931313 -0.1715852997077582 -0.1281767434200852 0.08315604060663614 0.05791090070440922 0.11758534706782447 0.03459835324859406 0.10228609504888708 -0.10456094031892793 0.11145781923730638 -0.02980150362891885 0.04936249345572754 0.015241524007737147 0.06663952103969721 -0.0751762559550056 0.07091812235055857 -0.009141006554835641 -0.0566212728137445 0.157680721723777 0.002932166150544907 0.10983767254002666 -0.1564080904980008 0.01547236225319708 0.03918843161481416 -0.06319959157889234 -0.016323226359217815 -0.08588940534404038 0.10963821749689633 0.051390379251728076 -0.05009921122097746 -0.10644837048154589 -0.15327368395027746 0.015609487791063716 0.03607406835660129 -0.024239525694828592 0.13384153506889954 -0.11765694149175308 -0.16607504274027896 0.04928248117311837 0.018683449655921277 -0.1121044242917155 0.04624856786031218 0.08897655532024926 -0.10210257182964635 0.1155809118623747 0.1469256696679034 0.08850696608155025 0.13348082346573664 -0.09488954267614672 -0.14222640924809885 -0.018913774663832424 -0.08249227773073675 0.006250887118900258 -0.06450230747163892 -0.029405899194175383 0.1583918772454581 0.08238869309306897 0.15641222267324661 0.0349187276209701 0.1348842415871195 0.09753223729347743 0.12106539075406132 0.12081955442515843 -0.002395850876560187 0.06999020834322994 -0.11374715999070423 0.08051489197482899 0.03920825031532981 -0.006733618961461323 0.15349220682538803 -0.11810618609855156 -0.1301728329043161 0.0022273774598545767 -0.1285976093403959 -0.06573177506762737 0.14794507898014672 -0.1596538932092504 0.03740794357134035 0.08646610920259197 0.0349643817122486 0.09414866387009259 -0.11582069854581085 0.12873322021951403 -0.036824724149120476 -0.10110235266925043 -0.008682432877735022 -0.10649624113217489 0.11171857302848169 0.09716558902943769 -0.14306525054165428 -0.16757257599983086 0.11096368106328691 -0.13905457486109926 0.1025153185066266 -0.10894681888412408 0.00513867325484547 -0.12313487109526272 0.1628952651798723 -0.15037824851782522 -0.17580998897851174 -0.15314915698821863 -0.028057779838849134 -0.14202437600906803 -0.15912132497654177 -0.051893075219430485 0.06664849717814866 0.1538119056595574 -0.143741984869366 -0.15888823829279397 0.038679457604273285 0.11020375851562456 -0.11957384524063504 0.15641259066366064 -0.02074152605835754 0.10465584567951199 0.0057849933845367 0.0021396558219982558 -0.11313298920616666 0.17307921016640884 0.17363893013281229 0.13861734785267726 -0.02718820700464081 0.09775746257382104 -0.06280881136965351 -0.0616521571654163 0.01749684090150676 -0.12213847315416769 0.1425453946989971 -0.1499634949327892 -0.17056395340464306 0.1421285628130935 -0.15112422214553867 0.013498788161435205 -0.09074383573532685 0.17019906306638447 0.09188480161591496 -0.16546117917011421 0.05538429543601989 -0.004126831668189317 0.07961996004951433 -0.04068087832034747 0.006139096514588181 -0.027627512758266127 0.08232288283523818 -0.017174270691115417 -0.07353078884550703 0.06081205444926459 0.06957088916785781 -0.060419782642646205 -0.05865469863265979 -0.017136010308885095 -0.022192543310719393 0.08849590583588222 0.0029744662907455533 -0.004023659801915557 -0.13458385682950194 -0.13013630261550174 -0.10607167295030635 -0.1554236773840976 -0.11815115972663533 0.04253835253612674 0.08063857749457805 -0.13523479369614072 0.07778578607650945 -0.07000564080974682 0.16131500533452586 0.11833928447451232 -0.07594513483276778 -0.07936468886350553 -0.053333018519285916 -0.16631781824643893 0.048658412678000675 -0.06030659082999702 0.08756220600783393 0.1296291220468624 0.12414747710524408 0.007738851211898304 0.11497603129163798 0.15887160025241975 -0.05110250196975662 0.15857187053280822 -0.04319246876300293 -0.12212204789987485 -0.04442212182650809 0.14425602603778429 0.10139381024879796 0.13676070840254848 -0.032055343368911776 0.1564977759109406 -0.17091490831562514 -0.15312654462047598 0.09748634194930626 0.10331041112310858 0.1432149176651529 -0.15208209978964107 0.14931158193446056 0.01362872652069628 -0.05437806484579388 -0.03070549601059311 -0.09942254655541533 0.07411622463942207 -0.14082311187797952 -0.055278799175605416 -0.01259375174681697 -0.15116317003580906 -0.1736963985308461 -0.14151859340728762 -0.0367618383344428 0.16016768602629045 0.12280678576160796 -0.17069504948260994 0.02605876428694658 0.06814987208656613 -0.10416734891502433 -0.04944202561920795 -0.07333004248953447 -0.12789477425235338 -0.03273305059621784 -0.004560474421321389 0.07301351803662537 0.13885654107840334 -0.05248640635533433 0.04878791017656013 0.14741650985694035 0.023872553248537997 0.1723445178077328 0.11204329344389093 -0.12934892505012194 0.1687118014511163 -0.00014473150689079604 -0.0963403062675697 -0.14340688499530257 -0.13574394429356806 0.11203471431940994 -0.17028828983126917 -0.039310574511686514 0.1367306371627985 0.00025329124575319134 -0.007522639929114678 -0.05472490012687231 -0.14556625845030485 0.062074464821842465 0.1064731177953072 0.09854697756490947 0.06089020298057806 -0.009207734064901274 -0.06822446187754942 0.005706876237624827 0.11107444149917137 -0.012020011823075253 0.018583986292743025 0.11667270268283485 0.17088845372648054 -0.0897838313116834 -0.1427495002214252 0.06812147730288866 -0.04884925381652005 0.1046635363083485 0.14118805791235825 -0.17266419372068628 -0.035600677947323474 0.0966020524689354 -0.1106322941060212 0.005136983854330804 0.09162076046637133 -0.025299755222572492 0.08071796418561081 0.08203908230381429 0.05595426260457112 0.15974247746348685 -0.015432906337447955 -0.15106641088721087 0.032237114133287344 0.06239508642178847 -0.08754686549960733 0.05413324713006477 -0.07545089621286809 0.006918277455450051 0.17370694817535107 -0.04479901823293394 -0.17489814135464982 -0.11198485146559647 -0.12331028109156283 -0.10163518888531203 0.0720254218281134 -0.06084184307417517 0.04803141985081486 -0.04208423287055917 0.046588897899718644 0.026981129130951735 0.056393617021854844 -0.09565273044997857 0.14647926443434092 -0.03473263605436832 0.055895785812459645 0.030860366893850417 0.07367813903828162 0.1397592777081608 -0.12767655141334408 -0.14313477601684735 0.02436392246686668 0.052197625880699934 -0.1298253303994704 -0.11616303183084885 0.0526797275577838 -0.07965913675460543 0.004186879275481979 0.12269261827146258 0.09739537640042711 -0.04965541140426777 -0.07963041806247101 0.105141644732078 0.019498656998270015 -0.10355745546337378 0.10762035027123197 0.16269141554114325 -0.027998822598726353 -0.12213643962242154 0.13398327229918314 0.10979721188323759 0.1578539381760444 0.03843629937410559 -0.08461326515636536 0.13510163566462627 -0.08871132055953643 0.13058016148432144 0.16673502580843524 0.10954480292560739 0.07282497970274547 -0.10040594024273151 0.08729878595479837 0.05581505349888178 -0.004936953648724186 -0.12050572242690738 0.12824599534602624 -0.14284833321439502 0.13007627313033437 0.10231765330575758 0.027286820671462566 0.07201917600926386 -0.07452338733781427 0.11872107839701644 0.015526716844163008 -0.14114131139372285 -0.07573785811810173 0.0235306456670583 -0.137779016004671 -0.04311818552095908 -0.11092175681630038 -0.07562420620492288 -0.011827179342896621 -0.16582435350572902 0.010848736911106195 -0.1145201413108952 -0.09322787920793388 -0.16132070349819677 0.11071925733741901 -0.07721670174634486 -0.016768141543749712 -0.08188760646260465 -0.062057392996288346 -0.07827203014987474 0.0077781567629107715 0.1028218640545775 0.06083708561946332 -0.0050762094232127885 -0.05258559838331744 -0.05168044908192854 0.09153299310558112 0.052607190139244024 0.1578714157666573 0.14121501828741168 0.08993392362590871 0.03922778664315876 -0.06559156325984966 0.1684741454850955 -0.09387346554916745 0.09835828894373812 0.02897593053333478 -0.06574243269283786 0.03194249793734716 -0.05362568287377188 0.14019189919290098 0.16679283881943505 -0.11154406338053394 -0.08909346028331439 0.176648147675898 0.10753611879567915 0.04726559429353669 0.00020615645866306742 -0.10391960502632085 0.04674735310695396 -0.024202209370550797 0.13951076510372273 -0.013970878685039342 0.026136396002401467 0.15051444033189265 0.15106476209798422 -0.014966972402671107 -0.11483903022603154 0.023283829022763734 0.06730564935804065 -0.15605898137306679 0.10871512947837425 0.06673315929758043 0.11420786835503312 -0.14954896108393556 -0.1408670394096436 0.15926792326885847 0.10745070279329283 0.035707978265330315 -0.05332343231435106 0.1307393394068199 -0.13500187927139384 0.02251997568515128 0.03450892050194355 0.028423667037104014 0.12535312047028227 0.11589979787169954 0.15323441789113426 0.08670196202724557 -0.023713068606283527 0.030532617598956382 -0.1694008961954034 0.14426202425944676 0.17675002881946725 -0.045828282814382344 -0.029227736407058363 0.14242486581934521 0.038006860916987864 -0.1656235966040232 -0.08574408515295934 0.1420787762044487 0.1039691645164594 -0.12509523941335907 -0.08688252514752505 0.00379658749239087 -0.124917648870021 -0.04703818192645668 0.17128481483429336 -0.1734665704037509 -0.019869609577697754 0.12974682810094143 0.1302024673751543 -0.04622550789516932 0.012014362377651498 0.1576456956856454 0.006841613418281962 -0.12196177800454988 0.023701905025185384 -0.03536429015913201 0.03762032664780416 -0.12880099686654065 0.060707653649882426 0.16369416611583976 -0.1259518780932407 -0.006568638673553674 -0.09452128029955253 0.02891030383436992 0.11249169057544889 0.1055447977925631 0.03003669596799913 -0.06574030134458124 0.05002937275695632 0.044690709051157046 0.16919726445581035 0.013851836585993092 0.022394313056903814 -0.07376464645005026 -0.1372376991364447 -0.1447312258898233 -0.14241166844065725 0.1414336668827943 0.09181041491980747 0.1457331987875268 0.08330825939202881 -0.15135707064672296 -0.005987360687493494 -0.14640176440651806 0.08478351723119465 0.0167286604504304 -0.1095154452956336 0.13399475271109265 0.08720832322126867 -0.11977560658657202 0.0666152478197868 -0.08238795990856841 0.10472843274220772 0.03619426113191919 -0.06584354192505046 0.12913114706769266 0.04899907325172288 0.014762786243322163 -0.09045887468937694 0.16334262601159052 0.0923434507107989 0.0036893961892129575 -0.008282666970092795 -0.13871693457781925 0.11680605339909833 0.023514183362888155 0.09979539512004783 0.09324754322743528 -0.16791073688485425 0.17400949227339713 -0.1286737167576739 0.14004708183127543 0.16134823468540027 -0.0454068372205635 -0.14221462714229882 -0.09602057846619484 -0.023533924964179817 0.060331323315170916 -0.04518055026460394 -0.08690726825870239 -0.0465388454861937 0.15281228098686495 -0.14394313365933076 0.06630640597258132 -0.14606876249913717 0.07506504403061362 -0.11991704602285119 0.1583186784032957 -0.13437876245612004 0.14272728127650208 -0.030759874061262096 -0.16172664175554816 -0.08846256791185486 -0.061537629489540065 -0.03801401132049581 -0.02874535808443021 -0.07460644979540769 0.07131146015888601 0.05491623356452218 -0.13390360666260184 -0.020272862862072815 -0.11958311085551543 -0.16210790912836928 0.14234014875897813 0.1637146194678533 -0.02222231995799148 -0.04186760797354136 -0.004884373387630043 -0.10578205674161402 -0.03822203373747395 -0.1281305570090133 -0.14197267195719088 -0.130947150159126 0.04327728790618563 0.014138934250186379 0.12792732213306013 0.024302813061569353 -0.028646359752526124 0.09141903467685901 -0.005303351301239473 0.07764417349619193 -0.03641844244514204 -0.0387701871769944 -0.022887637256839292 0.1617682410170791 0.12566461474691573 0.004221932296588568 0.0015618813143438578 0.009919044573287194 0.11217025833006485 -0.13506487844368215 0.132852205794507 0.1320276993615318 -0.059359820091102675 -0.11959693984611562 -0.1681264141911418 0.12575825454389056 0.08280678902731116 -0.0338963635121255 0.10017640472655957 0.012152567766221761 -0.13745535938078352 -0.007497325929244339 -0.15308282841912468 0.08613963034653993 0.010591138892406047 0.02180686883789652 -0.02283488039883994 -0.12091232940642557 -0.019507859821772427 0.007761604431563977 0.15049035979494046 -0.031200892430880315 0.10606006929671766 0.011349762520768194 -0.174308087151361 0.172003804990328 -0.09438032419094203 0.019783186642905452 0.1626358662060733 0.17026845478282068 0.157032573925884 -0.0031003046474918665 -0.10619920212988002 0.06801041534248671 -0.11251721251957122 0.10037495360289637 0.0694501856708448 0.020981222102161905 -0.03812719078818823 0.057199041344010985 -0.12077582058738891 -0.00198501595896282 0.173390904539528 -0.1317904430067507 -0.06573739949858033 -0.09911278210185538 0.17049883441682764 -0.14229468264400444 0.030860006637708062 -0.09366722015666688 0.03873127012605655 -0.10710695473697761 -0.14836426999488184 -0.03882642260651738 0.041605209825973856 0.08849281431229913 -0.10069032922754009 -0.1499693630188661 0.1683841662773902 -0.08262016797808011 -0.0811187032463702 0.0029387713580796447 -0.06359474830744749 0.1519678783082133 -0.11964398670868837 0.032190118371844136 -0.019520937267438677 -0.0490219410972032 0.06430306574307766 0.08623306244897153 0.05642265131905606 -0.04919420081575498 -0.0784874115642269 0.0984730783779044 0.01748130679059928 -0.12135215456136132 0.1518865779686459 0.16721608954701292 -0.16386962051848608 -0.13626468920323553 0.021483825684154596 -0.01902061564079433 0.15007990835259416 0.01602811272604468 0.14100291581461108 -0.12356164918927173 0.1479913036042734 -0.168211274734412 -0.015553533659318436 0.04680360653164024 -0.09287449369066857 -0.005944626584764577 0.08536432327997781 0.12095717846336096 -0.10756719265360783 0.06596199482027526 0.14150589550677475 0.06388552173799403 0.044472010207086105 -0.12246936585179606 0.10341393842903207 0.09211279559839738 -0.11878446425045017 -0.1464630125940953 -0.006776365963630648 -0.1392862254132363 0.13602919018097345 0.0838232543677475 -0.03934887392247686 -0.10616688140846423 -0.15870263132664728 0.07563370998401327 0.002600066578020291 0.11298071565262358 0.015266544886456256 -0.14524313432149424 0.02768649808928025 -0.024126347178240165 -0.008800154867941322 -0.1628963725911669 0.05764169704690269 0.014997501707290861 -0.07322403329094686 -0.15986877790079448 0.1689894679745549 0.061219111282838974 0.09366679339633587 -0.14763397933720376 0.02611332223964799 -0.03665506679395704 0.08379408038951601 -0.16654707050567888 -0.006794901504198367 -0.13424728472603203 0.10858736178750862 0.04220486041475514 0.11553330281100908 0.09053495058046786 -0.12559971729917213 -0.010408452646517408 0.003787340792406782 0.11032065714156375 0.053887557442675725 -0.09825916805837252 -0.10657097053398452 0.011525699993949602 0.03459697413103251 -0.1175671308610544 0.0666689187363768 -0.10751133575971691 0.08782709274887539 -0.05502696968244008 0.00950848426358311 -0.07060421287285934 0.11057574438074087 -0.16245226204783725 -0.15668703859978045 -0.12099802372998866 -0.04191683889020751 0.13364355229881464 -0.10889106169635109 -0.04021220864963662 0.11799184454853691 -0.06476506889747122 0.066675634664085 0.154529038382286 -0.171013843938867 -0.14861267336972406 -0.17102036903440335 -0.10803096472020242 -0.03748234428365756 -0.029833668897299104 0.07150614856710806 0.10877204792283314 0.02376376171010089 -0.0770092743610145 0.13720433088450726 -0.008146106514299135 -0.001922259335347064 0.08517365053158356 0.004506880824693976 -0.05061753453513529 0.1536757254756313 -0.06635474726847136 0.02081557849621246 0.10934675601838946 0.16985351805282245 0.05502963828249553 -0.015725855593410748 0.1708918328990903 0.04240821676291197 -0.15644325877470136 -0.14789015690056115 0.009705337526193443 -0.012192980074469516 0.16678363103310337 0.16501576792550193 0.010592383792713217 -0.14288016728949166 -0.05086429437945482 0.09662103546297948 0.029486448195031587 -0.16998842518544827 0.0440267588472303 0.005516565581235802 -0.09035536413476182 0.10788401397078012 -0.07468811805814801 -0.07752681034914934 0.15955069549824577 -0.11515234159009552 0.004800794766854479 -0.16979607093655824 -0.144775965485194 -0.08854367055011524 0.09908416072088506 0.027652120541963907 0.11373353674745104 0.005997346664321545 -0.0962466201402562 -0.12609461167737152 -0.0966269105701835 0.06689758727934568 0.14286145674694886 0.12207684155317115 0.10362542723404797 0.045676356592005384 -0.07485203689761552 0.1163738872654105 0.11332839239193347 -0.1692673117112265 0.07828738844178915 0.015088480183370835 -0.09824254367644565 0.13216661963004103 0.01808864223519876 -0.15794058119353102 0.11281597271502021 0.011558008000892949 -0.018431881027993254 0.07169582472655676 0.12225794310246327 -0.08915227819553097 0.08462719493688357 -0.06840023664910228 0.13998434732134366 -0.037039450369157824 0.15284174829023806 -0.04520686195118703 -0.0990952900861293 -0.06388126318902135 -0.007141876975050076 -0.13972167866792087 -0.07988303801951172 -0.12464732183365482 -0.1763412959368607 0.04921763055605419 0.06944270685857365 -0.050146882390156106 -0.17432716747454446 -0.10305605827744435 0.1079175900589947 -0.15319085222270096 0.11847647659291556 0.027941691494825262 -0.12114296593775535 0.03819613010986402 -0.04201888553013291 -0.1426169061996864 0.15396540676659234 -0.047604844104762296 -0.16239977830955438 -0.02763342734115403 -0.1434965547092118 0.1250562357058192 0.0350929780161143 0.14225001314216504 0.13570202648619303 -0.003169539714297366 -0.13731925872538558 -0.1366998875405273 0.13436496202063417 -0.16523257365106775 0.02904383400044906 0.0071484639913852515 0.025172000700048526 0.14699739052786973 -0.0380322404537136 -0.013592804812055584 0.16351110765314872 0.12271480401851242 0.08692208649853206 0.15720434292570992 -0.07399756253666945 -0.13734130916515905 0.1436471447288833 -0.15361229187684142 0.14882537822420852 -0.13093433750475447 -0.04153026709325746 0.015753213596479656 0.1228638895900742 -0.09935120630782437 -0.1743713095801692 0.1494123892461645 -0.07794117914732332 -0.03762678972667626 -0.13798189143011427 -0.10011523809614353 -0.0679496449529021 0.13046321065190722 0.011306856981978204 -0.04572344299848331 0.16415853584156734 0.13149208965722117 0.052301268221255436 0.07074851207690333 0.007538595715382729 0.08639367516491873 0.10062929392773716 -0.011112456329840224 0.002179803943871727 -0.1537557473427912 -0.12291041420370925 -0.06839231977380575 0.09407679390803386 -0.13848739465106313 0.151505090588192 0.026708266876603073 0.1151859395061765 0.0013453511602216988 -0.03443152460916309 -0.023277266471747653 -0.15463513203603588 -0.04245379614239797 0.04710816519954429 0.08034093403728322 0.08146113854072982 -0.0553284048759679 -0.034023652143193785 0.01831766477983758 -0.15934392779612225 0.09790459853986506 -0.0564847066179299 0.08916305986553016 -0.17557966916554424 -0.0902592398817965 0.004714118284944563 0.05102927222376532 -0.0324478393916627 0.06056069871604934 -0.16938351464488663 0.09911908794680396 0.011928076936664794 0.16281265357616617 -0.050474071488094935 0.16438089642774073 -0.13505549736900005 0.14517142196915453 -0.05054820940999921 0.0529672223480797 -0.1338238137929381 0.10269396966755082 -0.06933300311112033 0.1423514272785552 -0.17187251170933404 0.15108323274323632 -0.08419157493898283 0.058617621740978544 -0.0029610975535224286 -0.04098592809236832 -0.04923987990572248 0.11078929720881545 -0.09988880981456554 -0.10622384712653739 -0.11614446459882495 0.12269860905329767 -0.13975728238052862 -0.10353784800320938 0.16370022383108865 -0.15427692361127682 -0.1250221778190993 0.1665815401330943 0.16076885553197942 -0.041264642331496564 0.08634618675451099 0.0017723034779248484 0.1147268464180428 0.011188784121873465 -0.03609344621849341 -0.1316253334783301 0.03380857857723703 0.044558070542813626 0.17539235835441672 0.03836908338156745 -0.14037121762766475 -0.11610844234892663 -0.05255616032581002 -0.12711082444035351 0.09295985369140214 0.08393877300006136 0.12505558170114295 0.028211356755388595 0.06504562111398604 -0.02463706429818073 -0.0678263943343883 -0.06976980404643503 -0.0026489765203646536 0.0948264733285391 -0.16332625656736366 -0.06693952097095492 0.05839037004220554 0.15760958427496088 -0.006430236300672638 -0.0643384658240789 0.02062773082466852 -0.11476738435942029 0.061483025640597974 -0.06104829764568339 -0.08802562621947307 -0.0393798969072415 0.0561869160957538 -0.17017221120914505 0.01055017652088865 -0.04880468000843632 0.0751995012236365 -0.1755162893030336 -0.0443599907389224 -0.05531454443511062 0.07031396078707662 -0.12526715605119082 -0.033796548891199936 0.08244171321057533 -0.17637367075003588 -0.015182374841361 -0.09409542908667685 -0.0864403346341653 -0.09544652322009319 -0.01630857002975645 0.021057833355441626 0.08361961540265433 0.05648176766750518 0.09667194967630552 -0.02391692423826117 0.0685106674709966 -0.1260890198521734 -0.07731157616820865 0.06764859827049235 0.12299099327352445 -0.08101430847598097 -0.05768775941024236 -0.05723408882764876 0.11525718027940626 0.028956088109348938 -0.0013047303497464085 -0.007858229077862528 -0.016605930174489258 0.05019731418299264 -0.11246075530884124 0.09100831571111938 0.03440697536813409 0.17621157278629324 0.013909174916349607 0.12450069759888735 0.09272564242651553 0.10513651528575337 0.06682033661999377 0.08420783003931825 -0.07658877000683544 -0.025240994386294714 -0.0966110610672838 0.07812243877333028 -0.06235144818352139 0.14995277036572185 -0.03609835862413568 -0.011269485035692972 0.12797187736672822 -0.056443542353302796 0.1642422421641331 0.13372655639626457 0.029619932498956045 -0.05660748992446246 -0.0851833643657139 -0.0011372258886586527 0.03640424175143183 0.0043704768951019 0.06918469733450366 -0.0958286059318588 -0.075111081600701 -0.11916022221614185 -0.07622469239201214 -0.01110085144871776 0.06904793919099554 -0.07205652650627116 -0.0742975632059228 0.07025315184299807 0.17128479183845427 -0.006718269029113823 0.06447842240078006 0.14923635012948575 -0.00252491431321912 0.03307664677358096 0.015104403349175483 0.037527675991616674 -0.12679705218037735 0.14276540169039167 0.012916100208978971 0.06264177257827147 0.06205562173668864 0.15511761488899706 0.1611851654290117 -0.05024784387177265 0.15936378264846934 -0.00040507052304160124 0.1719823687723696 -0.026967836289081223 -0.14429457544240273 0.02261339404429603 -0.11064936194219199 -0.10170695760953785 0.16223209038057498 -0.0778319601308055 -0.14215448375573125 -0.16934997944500274 0.09181917231782619 0.17292309416678472 0.1415235419428695 -0.16175749833390615 0.13194934057462504 0.10678412905115708 -0.12593238294031164 0.04740509926235737 -0.1405159675787752 -0.12047576439819424 0.1426043917844381 -0.09175792087090869 -0.023930518589380032 0.09579032481529945 -0.08224829054442166 0.0020899219209040945 -0.02293423579950252 0.10359449500791078 -0.04306163098727641 -0.1374189935494387 0.11656545524258725 0.005252173530976033 0.05093443142889429 0.026630627973274798 -0.06080168993943807 0.11345050754977228 -0.12190342664621939 -0.1731079384453646 0.0780273526544393 -0.04134942639408478 -0.1405175160076918 0.14137362527087266 0.013360327696387937 -0.10838975515417133 -0.059724793065159376 -0.0027772048770952915 0.10288570330245218 0.08348056570393785 0.09054050117635538 0.014012066444777515 -0.09019068312136214 0.11980590339144806 -0.1325825472525194 0.04492151086575067 0.04523222322392906 0.16970537606814967 0.16204442826581458 -0.06671790038935627 0.03063463886964413 0.06125344473926456 -0.05167625282102461 -0.155619506070012 0.1323255464827224 0.017119165053999612 -0.13698353341779432 0.16505449486156318 -0.1128199670326678 -0.17635654240672033 0.05772416712223758 -0.12641223022610074 0.10341811858128862 -0.08665671572834026 -0.003169972116953146 0.12885980042325498 -0.06456323192068851 -0.03846097473225167 -0.07906224303556988 0.09772085755711749 0.14997100111379866 -0.0023125232273351285 0.05619640151098753 0.12447745858137459 -0.01809978120581208 -0.06701968393399578 0.059144110457695326 0.17234772726317713 -0.02899682422245879 -0.13793170085333997 0.14094524856933557 0.12079395873876798 -0.043609769386683296 -0.07827033414707019 -0.028000864809312447 -0.16429095013697978 0.009836094281195753 -0.14772285137912777 0.06552559474744915 -0.10667523097489466 -0.06135907496536959 0.03305256266210386 -0.07851601058505737 -0.002465897965202911 0.15325752024364975 0.15425569456072918 0.032658859802291905 -0.1321146454256667 0.013802838712720972 0.12298100008272714 -0.09363074629775604 0.007841987268626826 0.07841820170141459 0.17357974266421008 0.035583714690989796 0.11915506469123123 -0.11351066661384085 -0.003563269388257293 0.12106592740414844 -0.00461730223923772 0.06837773711617626 -0.10239742360947039 0.058408470336113155 0.16533007369186678 0.15090634957278715 0.14583909420718383 -0.09376938914485197 -0.1159036616210352 0.1660391011141511 -0.13719917579594326 0.11784880404198309 -0.05492772421563861 0.14564886427161267 -0.010601904353363644 -0.05488135317434866 -0.15356915446658925 -0.10962559204364142 0.03288423912410423 -0.0026173703588233906 -0.016491784023154894 -0.14383508524243394 0.1286029124701164 0.03802213607867342 0.08351388276917093 0.14817359578308886 0.11772060535426727 0.00878699726054743 0.02940742144116936 -0.023366769639394658 -0.13440674302634273 -0.026591545016094256 0.048385045065968725 -0.05147188486904114 -0.031184168242373102 -0.05980817327182237 0.08581000176684646 0.147308868938101 -0.1717156915267783 0.16225765788020557 0.0919447403135215 -0.11115270812017913 -0.10644548332409287 0.0784231205188256 0.1640895925342748 0.009359110587136045 0.1630709139476075 0.09978834404022315 0.0750086358121653 0.12415605703160153 -0.055742738909490115 -0.044749519719352565 -0.12689099130724757 -0.09891377881592193 -0.0539876794666507 0.07867540701741588 -0.07188050868459216 -0.13746470035849503 0.15073975713052437 0.02535703960601977 -0.1596281820624177 -0.01786707510515868 0.09839051984040284 -0.07397352116252012 0.015030953780992048 0.024224982371511078 0.10862492948109896 0.16711655194379535 -0.1192061184555115 -0.0882532555452968 0.09845427032449759 -0.05322562309474075 0.17382466351691928 -0.000021437091879073226 -0.059122084129971976 0.09253609578361857 -0.09094268440199213 -0.15995585465261303 -0.05873113903441491 0.15820249251096685 0.03943434551467939 0.05518324633876061 -0.08980602863122099 0.1005610639430421 0.031300240883985433 -0.134372409366233 0.11972037228878282 0.04150770103940348 0.09012859291150964 0.1404714363760011 -0.07131485785485343 -0.12388682435450135 -0.13052545377198577 0.12735108506075005 0.13406646645042 -0.03185502252085175 0.10698436429329608 0.08325589495456102 -0.06344352666293591 -0.1392902250527075 0.02021592817092535 0.00022311528371184676 -0.020996526106068086 0.164525377880915 -0.15786637532636957 0.040493813318713635 0.16629888956310504 0.15875826803281895 -0.06997840384248027 0.15202989171422265 -0.09155006704877938 -0.05754868378960499 0.14048498488027508 0.08175730065919674 0.05632921148643346 0.1761067648814348 0.10995875714818336 -0.1665270125185396 -0.10245828857322335 0.054917211743617016 -0.07501637798531671 0.01918018546980114 0.0950166714033247 -0.011034817371754822 -0.12598317065827888 0.09323031084917958 -0.17241598092277674 0.06021474494273473 -0.10340734795858172 -0.061286947859795125 0.16368824802539278 -0.01215546461126599 -0.03615827044190276 0.005424126080618119 0.10986102868168268 -0.1453947673808976 -0.11279067183774612 -0.07070106768668845 0.08289973315160569 -0.0637556208591636 -0.08292843179860968 0.11781471609249125 -0.04388445599380564 -0.1629538609276098 -0.09526880241764464 0.12049989943745362 -0.042411276578540574 -0.1589734843196437 -0.014501485893004309 -0.11668094974829854 -0.12275527583844591 0.1489588805870265 0.04316433859888982 -0.11065718817319598 -0.1520293289958369 -0.1650544146101546 -0.13726798265269557 0.06398147311929742 -0.13239342221794861 0.1383424016297698 -0.07940972874204254 -0.03292944873923086 0.08747262625923523 -0.12538748571179337 0.028175892766504607 -0.1380298326776166 -0.03024660708722731 -0.05345109131257027 -0.12594220178404214 0.16081126212626592 0.06393817045163275 -0.030895361687648913 0.0340240795713882 0.1435834395897876 0.02165026036731405 -0.035384757126065695 -0.022631753860931594 -0.06560499529337523 -0.0014973467092349781 0.07034037185306438 -0.08181042097223022 0.05273016617545059 -0.16164670948752527 -0.02760137368455502 -0.07950739119842709 -0.05638812166392574 -0.1392032681017124 -0.1678307798043916 0.03889022247058181 0.0058932922918453695 0.14858112694706954 -0.11936304270379934 -0.007387538385561214 0.011116650128135773 -0.06903024918923004 -0.038822538344319014 -0.024655432496216424 0.028714439938063076 -0.014838154676853593 -0.009874443183084334 -0.14986867949661525 -0.09043555447986165 -0.10683483732526085 0.07590165074733601 0.030191475936483442 0.15781788352373294 -0.028148429573857336 -0.02160663159325697 -0.16495545905232928 -0.07034878222464302 0.06983134320599348 -0.07803746821803764 -0.041951830465638176 0.041918320768736646 -0.03945570172394925 0.11644275161025221 0.08574371419980957 0.1618177413053469 -0.08854508580069491 0.09327859159474372 -0.07154521097947805 0.008069674664649931 -0.15944028044423833 0.1511235406782069 0.047643722333464956 0.05611414602057882 0.16028163443511803 -0.11593862532674638 -0.03765275589916727 -0.012606976285850361 -0.15299719422446753 0.09242367045627277 0.08379037954078641 0.145941351133907 0.018468909717457235 -0.013427261832120964 0.11100014653492399 0.0200453098697773 -0.13223116541143465 -0.10544234939765712 -0.08775419833671208 -0.0164943389266678 0.12221506002348242 -0.04709917771422204 0.026181522584455247 -0.04599299621981621 -0.1044022414397377 -0.06493245203358342 -0.10290351919744804 -0.04748890562917223 0.15964472556301268 -0.0003229437783245865 -0.025815724978457247 -0.04754745943702556 0.11299118985730498 0.01090203871956544 -0.1073319040703175 -0.04419221845281167 -0.015557443939782393 0.14661535000465004 -0.02711685129785868 0.13473193795392818 0.0703014101922856 0.1736867945873168 0.03689399898928236 0.05940427478455663 -0.09941066379525858 0.04888888592380336 0.0700234292493852 -0.09531295096855756 -0.005204996317489345 -0.0395750734433802 -0.06052550650187013 0.06335672361159943 0.03631820384038115 -0.1644075262191805 -0.06460634109000588 -0.029374920384958834 0.13948818929153678 -0.11235100025126014 0.13997398340075257 -0.11720264451905643 -0.0906632786188527 0.16231748610041474 -0.13068994832313047 0.10532607993829311 -0.03746482074515826 -0.06855753832321487 0.04737753146657799 0.1012902242856191 -0.013459452404555304 -0.11223246952140785 0.043934648762829404 -0.09574568661335277 0.0022872663529628556 0.057279510388568954 0.022775071264711823 -0.139054653174589 -0.13146450414200542 -0.031422847585786506 0.1159235600153893 -0.03614763407308584 0.1363699112809235 0.041146565927756965 0.057962749845035286 0.042038740803880016 0.10799510017293217 0.1727279147063909 -0.10951361398431518 -0.010286892426526058 -0.15432755665848102 -0.0661055524165913 -0.10446480379643742 -0.14315186308561417 0.08766845725736103 -0.014959752730621285 0.14687977451925727 -0.07465488394843384 -0.07580712508011847 -0.04749354696605713 -0.16192361638705047 0.05377695989613688 0.08011635587471279 -0.170872632745217 -0.0824875113235589 -0.026525436499589078 -0.070179872940681 -0.135315930094693 0.08900192890389846 0.1112001003506239 0.16215454904426083 0.03164214886196348 -0.07790788089554106 -0.0009151938477237896 0.15726197265961847 -0.14819868617545534 -0.03777151163364062 -0.02479242868078176 -0.03948400965787326 0.11309579120130676 0.008248358283244862 0.01605223523489592 -0.04453980582353574 0.03295354032099222 -0.03340517128878876 0.09241422667708701 0.12845305141277935 -0.025809403826027023 -0.1754109721175302 -0.17252269611563975 0.08200047723092022 -0.021134793884946972 0.08806785940353512 0.062428383255657124 0.14896538094316344 0.022815579945120547 -0.09647807366120054 0.07285037495301926 0.06899478697143413 -0.14742952123254247 -0.013158522593137253 0.10495611659684466 -0.1074927446075707 0.022132807737649668 -0.057743416508332666 -0.17068666394465287 -0.061835496318347984 -0.17196772961250315 -0.10462142390193939 -0.002281384584773394 -0.13129422103126204 0.1381032181567888 0.030958189855311402 0.09666381188931321 -0.06538997975680809 -0.13138557211009513 0.15659563126200457 -0.15942378954401137 0.02694539097197818 0.09661707438447084 -0.037420019106181236 0.06558527213519325 0.12859236224089746 -0.1339537045560266 -0.15308047384804854 -0.13687512256833276 -0.040966647563196415 -0.06862127515903003 0.08975549710848256 -0.08048250204737128 0.02906751043514341 -0.17195206624701612 0.04285959978950341 -0.09261338743093846 -0.08657738778773186 -0.17510439656833526 -0.12391465792635839 -0.03587708088908535 -0.07580810912992686 0.12782806561391735 -0.1352588752720913 0.043546734009071296 0.15563323126054163 -0.0867364823947608 0.022687208418272695 -0.11214152596168614 -0.1565769965271406 0.1763268118210137 -0.11260214945548637 -0.14082501834594371 -0.07916719616571405 -0.08484603734276647 -0.009219889596943268 -0.10272069065671528 0.02309656851812631 -0.07613848113237626 -0.08613740856456883 0.03431561041266235 -0.02180414657087594 -0.014359167698987516 -0.09452674170401304 0.04076666725581136 -0.09924983457787358 -0.0428647200256192 -0.07063504733646468 -0.04276333177568004 0.14782887289420424 -0.09947003885546123 -0.07488883492276092 -0.007686533720848517 0.13121063189347013 0.06612892101075007 -0.09399365045841909 -0.1675275127634442 -0.17346663988591415 -0.1382185571207139 -0.052481919890464565 0.07329904493332878 0.05097049146403896 -0.023614328897429256 0.026788956347801412 -0.08211320837029042 0.07167418196131674 -0.006744498468604028 0.007112884293703723 0.04311542677439186 0.0995005124529984 -0.06634035888904358 0.030963059949043532 -0.14185557529827986 -0.14067206604354865 0.13310308102234744 0.05389324453084291 -0.0027154008383293605 -0.0705509267315695 -0.12426954437557323 0.16600973038002972 0.12966976848254053 -0.03579510518320794 -0.16171328625461825 -0.09550482686522159 0.15631304314708805 -0.03842070490570922 0.07797487312219492 -0.1699973707078825 0.02930376330917996 0.08604193497953905 -0.014038261093855522 0.08619983083314824 -0.03396209454682387 -0.009459166146199563 -0.17222365194109435 0.060070259873704186 -0.025106985505533266 -0.03101473265257029 0.10925189184890213 0.01190078766239053 0.055689492516468854 -0.09915618961244037 0.08159485714489759 0.03990723058148206 0.13429338139897165 0.10649386793765289 0.139728251329528 -0.11839662575182586 -0.028893971376508613 0.038218275466643345 0.15865617792451314 -0.1125463529428184 0.15852877960909065 -0.05563952793499604 0.1619562021768155 -0.033682478478113086 -0.15894715227715087 -0.09738551984866702 -0.08395085732194738 0.12689791958670138 -0.14583461964412614 0.16481312597583503 -0.07564856000181797 -0.12685585427723173 0.05895325646328489 -0.17231236469896838 0.1236606683063012 0.17335881398250558 0.137944744070101 0.038427352337637374 -0.10855163675400331 0.14768565247941404 0.1472263246905679 -0.1615551645155485 -0.14255655748943036 0.13718031617667958 0.07763405412825312 -0.16565413542918686 0.1571903815563552 -0.007785978733299378 -0.11080970087550684 0.1485625599256018 -0.12250072038992321 -0.1538890192390136 -0.17618669766674447 -0.05953817147278986 0.010991006462604222 -0.02659557952293133 -0.07791803241459874 -0.10420609441873684 0.16448823485002878 -0.07799130626046447 -0.02095279580104749 0.04095550405290898 -0.15446624520099872 -0.011009586638369316 -0.15867471749035875 -0.0173025205841791 0.13584480455188627 0.11129982789666815 0.019023770089113327 0.12975651884274209 0.11254791682922012 0.019903913789956068 -0.09799459541904162 -0.03662862465979906 -0.1761101647906606 0.14900359952837408 -0.11281486426928371 -0.13443556813261404 -0.116141058821567 0.02473281213684447 0.056350087148791174 -0.1764851524763532 0.13718860398465965 -0.07859686663998812 0.10140193694895856 0.10377155953447031 0.07667854270620016 0.12564411189960034 -0.164611993919724 0.023139608648797255 0.12071884551215756 -0.0535240638158225 -0.11773515762490183 -0.020727481168065495 -0.1727336941308931 0.10193712151139998 0.11471279513303681 -0.03332950870796535 -0.17201696471134567 0.061627799778049636 -0.0843574752083204 -0.029531198883773917 0.07558910851839927 0.17455425845402123 0.06494968666837081 -0.011080485964364489 0.06639333413797693 -0.020353586076461358 -0.15715936814291523 -0.14195322169153393 0.05051466828284805 -0.045395881174330195 0.1761160822871169 0.11940810546827817 0.10741463824049437 0.02139685636764655 -0.1402326995153686 0.05815635186510549 0.037351125135634836 -0.11303663036525932 -0.0220247442318017 -0.1180844013526346 0.0881986310745235 0.14669869879868228 -0.14153440577186324 0.02928426137966747 -0.13364442613752245 -0.036224262590686555 -0.09027740651465303 -0.03534407438085447 -0.129645663106674 0.11676808240216574 -0.08581406118590182 0.10055122859672277 0.12471002181851717 0.01511456799998186 0.10706452691629675 -0.17049987707366238 0.13362636017449842 0.01645549799790887 -0.1003895847229788 -0.08716054124533414 0.005086012649807783 0.0037972671411778585 0.012269296784017069 -0.006769164654430198 -0.0999444897009149 -0.06822433402194009 0.11588543906214128 0.1454184156478087 -0.003912516311165108 -0.11585030145544037 -0.10174301515237766 0.08441525152739791 0.11978502352141605 0.16036857354864878 -0.14209012283696643 0.09518773883786813 0.025054282611840638 0.08417731272756604 0.013256284722230812 0.12105375775369179 -0.09608381646517064 -0.09328998339278895 0.0021104904980722003 -0.06395342935246805 -0.004086152077300906 -0.1574623753439206 -0.014215506860895958 0.046040529518846025 -0.08211870744151417 0.12147102686336038 0.046919224317238294 -0.13439140103792804 -0.08868484918743126 0.017842544305651124 0.1308804423847576 -0.007800057408802953 0.07279507714524361 0.1692936984120202 0.06122798234755639 -0.07883597859134643 -0.042413255962361465 0.15091792422283443 0.051805316384394874 0.1533258286796818 -0.01826352175931931 -0.03971362849518622 -0.11949286959432363 0.16028729788698215 0.13026153351063344 -0.05642605461208004 -0.09145476701467058 0.0067785925160748165 -0.00006232327192543965 0.13710682652851422 0.11376729585215221 -0.14371613349557497 0.14657143023929423 -0.030656231253383178 -0.010714333746804808 0.0011409176063947367 -0.0870052129205811 -0.15241480184523126 0.14071186755195367 -0.05985066320179646 0.08677393972156772 0.07788870747328257 -0.1631797216554731 0.05187923605905309 0.1732451372470968 -0.09707882367625947 -0.07878477094083451 -0.1418596588064848 -0.17404613720030646 -0.06249118382926692 -0.1150104378197097 -0.02147041901113107 0.08146344123961187 0.16105310900493525 -0.15323240429108337 -0.09313843594172606 -0.1390109678422684 -0.15836458047263322 0.1275676106228735 -0.17125427011743485 -0.013569041834966489 -0.14224576016666174 -0.05288548524033496 -0.012694054707109041 0.07119100947868039 0.11083118677900608 -0.1518300929534399 -0.014884856585521347 -0.006697567663147874 0.12063717657699005 0.023377197747819496 0.12214058816976399 -0.15707978496930441 -0.01681090489571958 0.15566618710598748 0.0917202988058638 -0.008860044648060382 0.15982154143856364 -0.001338714438630188 -0.1160411663954848 0.06659036770006221 -0.12136544142410584 -0.12284880000682752 -0.10299699559829006 -0.07276163228175124 0.10789656053313 0.004732036818534627 0.09460087258410758 0.11784520156055482 -0.0007223677779994306 0.07284814505434435 -0.08891434353889094 0.020358495396563262 -0.15428402717575354 -0.09382434233972481 -0.030925689582610456 -0.06615528782715831 0.02583379970230108 0.1759273067757545 0.12815398722390386 -0.07166757110967832 0.052658606824957 -0.12885584370506564 0.044180701731965866 -0.0317705293593505 0.1496413378920785 -0.06731457355089178 -0.060097532007974706 -0.1721496888808459 0.1282558555152702 -0.05742970494491303 -0.1312801496958812 -0.16353587144765014 -0.12961349448439413 -0.09211504470307011 0.06107327662601397 0.04800960548290192 0.14335869222303993 -0.026590996256701145 -0.12925681092100705 -0.10348376607139906 0.04141737066998424 -0.10338640264850928 -0.0012543484005195394 0.04982257069821181 -0.1229409123131979 0.08384397740828584 0.08400239577636007 0.08083616009804678 -0.05526035433651795 -0.147137199362096 0.06276803440688238 -0.0007032775960919752 -0.03805959997371957 -0.08775451680969382 0.17613707598383022 0.1330569582080516 -0.10330950982277273 0.16097992663648616 -0.010221812448201887 -0.06867118373949527 0.0837083111956241 0.046412564254472814 0.06444869814050083 -0.0374162596684207 -0.14920619451919762 -0.04981857739476591 0.05968327597246029 0.1674321008196014 -0.1394966535127447 -0.05780556500751795 -0.01646428658195011 -0.07498707935245101 -0.05427917439109669 -0.11348126065648492 0.01082471567744201 0.1067657065038265 -0.06277815838596472 -0.07810265390582731 0.10763800064151557 -0.17112966558682657 0.09727811811507812 -0.12930457472549756 -0.0932831982711093 0.15716443958180248 0.06477518950971002 0.14834849356673752 -0.15244849686577447 -0.044304590607176085 0.1545935851086503 0.03299856982793242 0.07304095511567157 -0.05973424856667654 -0.0999663664893938 -0.021256359151728275 -0.026926625271103108 0.07702493228852632 0.1601141869170912 -0.15723641046000653 0.09516014641640308 -0.011361401359248461 0.006894632597914333 0.10847969914262838 -0.17195294997665295 0.034652226921703375 -0.0076780568176128446 0.16760087323397405 0.10786062065406883 0.01670707607597949 0.008290627548902465 0.1648499172922301 0.1220049126924678 -0.1156927500914493 0.14183884835793226 0.07495745104646803 -0.09565062943707979 0.14101195756506538 -0.012721438389638082 0.1377187224688982 -0.07591895941751897 -0.06574227938470201 -0.08325205433238701 0.07450053289153086 -0.0860736161224248 -0.06285783419953538 -0.11485679681242535 -0.11169534281582755 0.013540902735776792 0.12769548186390725 0.1041942766068241 0.10177620463317365 -0.17301479900346584 -0.1496310442698449 -0.1437411854629412 -0.10474395333278691 0.10122413104108376 -0.07169538388241381 0.023423424321333264 0.06527638248661016 0.12510844111773362 0.13661548424694053 0.15118066011903636 -0.014317657139909942 0.023742457272011963 -0.046182385973802635 0.004293641319408033 -0.09180955445191119 0.15635365365110473 -0.1453473358876276 -0.12652586701101937 0.05612665161799964 0.1283731053928762 0.03362645650836849 0.0846469232656515 0.09304099606118309 -0.08477707862895613 -0.13123950160606757 0.05458587902125081 0.025904879965241538 -0.0005343280552505564 0.1476246239778088 -0.14602855894027955 -0.04366249483463657 0.15062143946761095 -0.1721961204002652 -0.01816892868857773 -0.07388623387092416 -0.07012795624717937 -0.05139976631709212 -0.17120345455950334 -0.12513844539245575 -0.17487335166878787 0.0483148389866397 -0.06348539273906084 0.04832775361308131 0.0700719712909503 0.13195641783116818 -0.03947340042386642 -0.002704408427461035 -0.16643224017887556 0.08333356149131929 -0.03846158421016802 0.04515718486609211 0.16109915647315554 -0.1432707305222952 0.012272232470537976 -0.022386708104437745 -0.0013081455373382803 -0.12503440043344968 0.17010987715793222 0.03406050057742371 -0.17235536702345758 0.008373559448525998 0.05028759694289887 -0.16211215004945007 0.10682069182906466 0.11866293330626526 -0.11654114449155466 -0.09056584297620358 0.009168338442266846 0.09694700912703105 0.1656240913876279 0.05651171015708352 -0.13006695925302186 -0.06068270499599907 -0.08281124838789816 0.09760608021000969 -0.09143367193227345 -0.00996358466774862 -0.15847390583709575 -0.16285828682135153 -0.10148183897147342 -0.08283656809954175 0.16567986601921172 -0.146993815425458 -0.034515972178090056 0.1286049555751275 0.0067658019885676515 0.011110465715741475 -0.15831148793638256 -0.08571750835979895 -0.05130109138454416 0.04896548354144194 0.10641658559866965 0.11848956183198671 -0.1185453734050982 -0.14209414226101866 -0.028269700438687626 -0.15793119253957436 0.1706320598232177 0.0034174566227908746 0.12977787624057924 0.0527950559440559 -0.0367651151994246 0.00015407458058145138 -0.0124173413145799 0.14484958469818865 -0.05177646451378505 -0.15014467330692305 -0.10893616708114255 0.09804518554078814 0.0837877948187997 -0.05873369288467329 -0.11600729668126533 0.04363630278219639 -0.1566054093305871 -0.007973423317723993 0.025146919651571547 -0.018586652539630964 -0.12777164198401986 -0.11454859593760232 -0.164928687922335 -0.01727461685790284 -0.06069146464133194 -0.07619357318837403 0.034367305272071214 -0.08780944044544756 0.08829564923362637 0.06782332595268523 0.14279135633828277 -0.005219155032974022 -0.03380424629863564 -0.02495277503121143 0.001176057929892025 0.024716751269064693 -0.11692306297842978 0.11095659216958415 0.12585828096566964 0.0009016970887044974 0.15802789005345474 -0.047497520928808865 0.03987996357952733 -0.09207906550129294 -0.14055399824022594 0.04118913689170889 0.1740210974890167 -0.05847648987865232 -0.03916844674788341 -0.17478200124779436 -0.13335597088457402 -0.07294201858353962 0.0020262906107188245 0.027906001658552296 -0.13298365029512502 0.1258606792150613 -0.0017853712513977073 0.14243956453752935 0.10824099254554051 0.050860942466111884 0.0387859680125904 -0.10192130129472414 -0.0422366544319498 0.046140050560544155 -0.17219708796133226 -0.02153276116130255 -0.07856465360943578 -0.1092203178798948 0.10431457795529928 -0.09166288624683741 0.09711414650462684 0.12526346684262227 0.1094928052841742 -0.061807548151235306 -0.03787911710839291 -0.05037589492817491 -0.04070639206362929 -0.011881504273903467 0.04637171495096594 -0.007112602878899737 -0.06612951808013112 -0.12277470988259166 0.05042842113906885 0.06420620149031335 -0.04935309345050741 0.13882310929468678 -0.054925630153937234 0.001972363874136973 -0.08284837129958232 0.11694787052803533 0.030128989833594962 -0.15450520185523278 -0.09405937653482027 0.14728247932241706 -0.14761666352902156 -0.1755819312688293 -0.10335453225186049 -0.17213253268524892 0.04564947870115195 -0.015177830652371476 0.1353354557168133 0.13645062238596686 0.0485653614215159 0.03213286676289748 -0.16587018155606878 -0.12133519846987516 0.09179933712780693 0.10388824315219025 0.0071557909886457395 -0.05746676900329983 -0.0977574338258241 -0.06685767806731456 0.03477856456395866 -0.09770600521692836 -0.13378476478766155 0.16036957079094027 0.16632628896578122 0.07431186677256342 0.019396888305941842 -0.11418902320922786 -0.06454009434643068 0.1305524975963176 0.1761381025344418 0.05329835524995575 0.01634559123592229 -0.06563756728137297 -0.10611215590289688 0.012078844186046395 -0.0763282368862372 0.1272686600947492 0.16459199071849262 -0.07193006965599023 0.10586118388659055 -0.15502393091970768 -0.13402341003286528 0.045711867201408365 0.13732954231020938 -0.007962848269960283 -0.16875187941673953 0.15239269498397076 -0.04504680332929494 0.14460164150462435 -0.12450817665831719 -0.11710229975165881 0.08333187800536655 -0.039969715124281144 -0.16782358046531082 0.09281597072033887 -0.11963667279538681 -0.13725911444068675 -0.16645618657509414 0.10871027122556239 0.17544917965862808 0.08087609917127887 -0.07388803992531208 0.07379424046880954 0.12845013875017655 -0.06312902105790749 0.0844650238600721 -0.07830313176468226 -0.1622570983790356 -0.07773358746360391 -0.16470843382230535 0.0342469191567069 0.06591458509749265 -0.11278588419771132 -0.0008644851983583463 0.15917793262018803 -0.12813119926422392 -0.09684140546337036 -0.014551716688366129 -0.010614409829351159 0.0932500578259358 0.12941029341506652 0.029377425729722302 0.028158820104813454 -0.011873713570731198 -0.12101150547813563 0.047257388472473884 0.14368636532704748 -0.037260368073850275 0.08246078314526906 -0.045228867456380384 0.16352450434352084 0.08279439338958836 0.14302564400541387 0.10863026451753124 0.05657751593909067 0.11619199468647942 -0.1572609582944883 -0.13974383718217265 -0.03777363005132064 -0.012634344189837136 -0.059635632702564875 -0.1036469104902742 -0.0983704635139096 -0.07163889373005235 -0.11669803013778357 0.16789382331599523 -0.17446958381525815 -0.17294988152920085 0.10576234326087698 -0.1471893386143853 0.17015887306079663 0.021818071128524068 -0.028509845939639095 -0.009242723942957975 0.03866535959929833 -0.07300841067173094 -0.10730421441405293 0.0685828260376015 -0.17215987934615692 0.0005133711750323799 0.1286811624160231 -0.1374070929089374 -0.038270735305604736 -0.07323434834625923 0.0020693349537927097 0.019862616832111372 0.09523192522314468 -0.14310069640798348 -0.09107671234542777 -0.1670767244361665 -0.16784099496758892 -0.011052217818328533 0.046638121282836 0.16106612266957437 -0.12067342847893904 -0.0038921426486420436 0.12027266001735225 0.16561965692681313 -0.06385109371612958 -0.06016051672909739 -0.11322975929485556 0.15849415685285745 0.12954021575681932 0.09714639849726023 0.050589334725458325 0.07642989789984926 0.09552827463621083 0.15711034741915547 -0.09644298141576538 -0.07095403480223685 -0.09742985196499329 -0.06410436541341678 0.03913098704427719 -0.09486943494443299 -0.018233589375239296 -0.02118174060188104 -0.14021616583520272 -0.08682277742221997 0.06698689766761326 0.05366379645365649 -0.045040788868852856 0.13205517966304559 0.09769888333110897 0.07049515648006044 -0.1452702960963195 -0.11420500541765727 -0.14443209664793547 -0.13003257050474748 -0.058336364245594366 -0.0919767703414547 -0.14813458844152597 0.018143442715661824 -0.039187624877675936 0.14411994160232455 -0.09918683739149632 -0.07251393985956589 -0.03641483110409071 0.08636762251281586 -0.14591700009613098 0.12872116576270554 0.04698001173329234 0.10476314917604712 0.15609570892393446 -0.031863911298295994 -0.1708111706216897 -0.01808989261379356 0.15803678568187357 0.09889984675669972 -0.0750847356070133 0.11191796784571684 -0.050711867183976043 0.1448425903820572 -0.004960133460569936 -0.09993726604843804 0.0008610403390306783 0.14191117725275568 -0.048995282713301815 -0.16035917126872212 -0.024723842078503925 0.1004287721768038 0.0645266097578632 0.05452300062884052 0.15806551797225527 -0.04208081270581589 0.04244154425770977 -0.1499247275814999 0.05517911157931579 -0.010267938414262623 -0.08390701567641544 -0.1668120446677094 -0.08316861079558921 -0.04300634631729785 0.053064779373879045 -0.08247393661723536 0.05170731971385279 0.06224847286826407 -0.14398101765321086 0.06898279327096339 0.1489062370980897 0.01635505428525835 0.0916616906178657 0.007569106576234708 -0.0886481254828621 -0.042147060095940325 0.10698716518574997 0.06298866467271781 -0.07233368330786678 -0.13365147191996227 -0.047941737985820035 -0.12004822911461321 0.015521124358519399 -0.11301644180672162 0.14721109144906752 -0.14609873703006476 -0.1462550919613493 -0.12626139918359822 0.028922840126170146 -0.052818267195042484 -0.1734097139565809 0.0839298804633131 -0.037356027011801685 -0.13860362424620465 0.11954947386273766 0.08817475727822986 -0.05926700985822847 0.004696382703959207 0.0066719873741194775 0.16001976801368686 0.03395552422593795 -0.018017804147063877 0.01904009415695752 0.058215609769895316 -0.17457691638381376 -0.0075244489001394695 0.07188790113644085 -0.008716965352169127 -0.114833865894176 0.027779021880484367 -0.0031469970529487633 0.018051737926077997 -0.002157351802528793 -0.10838043178347219 -0.03165512671922103 -0.06458221446597158 -0.08717883789609301 0.1644437708290866 0.05772269740815944 -0.03179219603168271 0.042238090331872466 0.10406716402149387 0.13238856526227177 -0.058249194036343446 -0.07800063795787389 0.08627049164429346 -0.05268015659828026 0.10106099051495854 -0.12268663317201396 0.137254843601458 -0.10259439296295414 -0.11723889871681833 -0.16310078447704043 0.16099205503884373 0.07196955419552684 -0.0751788574486084 0.02748770910443364 -0.1570972553017513 -0.1261222475576819 0.07469474079997769 -0.1669395377144499 0.09570190254676804 -0.13499469565673747 -0.006553766329363077 -0.08492800735642095 0.030872952131293423 0.005358824923864815 0.12088716537660307 0.003183269375986674 -0.009929552498605762 0.16010672811812285 -0.14347516386984552 0.05231718485070159 -0.05896864638798064 0.15881082417794695 0.07383033664102756 -0.012752342649758323 0.17039411759585812 -0.023244923668497196 -0.03925357777841601 0.1343087090267004 0.02529119999106777 -0.12187181621156717 0.09978326248612741 -0.03173714099484738 0.043138915472031865 -0.08450306929760147 0.1140632543278732 -0.065419044645317 0.03866857616361125 -0.12378273052030804 0.05744378009457616 -0.059736841010396106 -0.16350251661672227 0.008460108746224803 0.16369474792305738 -0.14547407935950243 0.1457916752539171 0.046002524648951396 0.010787661800660476 0.1313692294255893 -0.07730319067379668 0.05814719760988285 0.1548617156556892 0.09632103008573456 -0.1086976277463107 0.11183437238794725 0.17450184436567776 0.1464116542080788 0.04153412303394058 -0.1154669928354834 -0.0036720492685918555 -0.012408619820609045 0.10099398369956859 -0.1052524635244389 0.008109987468164081 -0.05207208805511468 0.03627923524986309 -0.006912358082017719 0.016759854630371513 0.08369022500698561 0.09197341759161848 -0.004586661975359611 0.07771315803482298 0.09723553794508603 0.04760533833280092 0.15502633883306102 -0.12044370629392037 -0.10875926893008309 -0.052381800826027676 -0.05300358124388948 -0.02760277940545396 -0.14697726950992396 -0.12181255753244959 -0.043058840014895836 -0.03225850347521436 -0.005752357001085587 0.08964942198336238 -0.1725705894054593 -0.01681655832505551 0.050157582187899855 0.11302594881121425 0.013880921141579456 -0.03773717756070472 0.17027892315569385 -0.0988224302789912 0.018427320372838295 0.09635998509490104 0.13289334053818527 -0.15602038031930393 -0.1458481174316972 -0.1344070533023032 -0.048794788458093784 0.03761439593957896 -0.07635377665914872 -0.1467113017082087 -0.07145970902076604 -0.139725177750828 0.09283213102985834 0.03300158331094352 0.1703166279718433 0.12683078705819334 0.04467382985283711 0.0486811246755778 0.15319009856722965 0.031676348381495266 -0.060126693597478006 0.041095439583069555 0.08623302353659315 -0.09904499200499622 0.09719152772905472 0.12461664965891714 -0.07509339727261281 0.12430390384972792 0.025878460883260096 0.154045228226308 -0.013826644198529643 0.11160169261057862 0.14791739631970896 0.004462607762860317 -0.07097150533030352 0.02772920003887625 0.0010634518329820618 0.17376774732786318 -0.14703732723351906 0.09994401321309278 0.0005640109210808045 -0.0014740447540740234 -0.11341910001651793 0.07017182225369156 -0.07326162095109227 -0.03598724475327445 -0.0802453445005355 0.15726980327292997 0.03556701625891807 0.12386373929714427 -0.05766117249986519 0.14380472351363102 -0.12400819897751661 0.09992334482142587 -0.1743231990130213 -0.11282029072983216 -0.15723285114353341 0.0042560446058854465 0.12034724927075119 0.019840219958015447 0.13253786712263246 -0.14597023833119488 -0.1675271646236492 -0.09566869037959627 -0.1157760810130624 -0.1365607645808453 -0.08053749583508452 0.1455690780374967 0.006002683384899684 -0.03407793529332466 -0.10735955885482683 0.056013373844616327 -0.04066473530514035 0.008621154390048373 0.01738076859653144 -0.13394966993280172 0.17642057091738167 -0.07418504597043549 -0.09893695315318367 -0.11623364635103466 0.1174059429156317 -0.1744965870016529 -0.1208650115425022 -0.1745684959487194 -0.1700993597230123 -0.002213590991812596 -0.04610232568251248 -0.01615081032301128 0.10469521323061996 -0.1724298861396566 0.029362911252718955 0.03085057194192302 0.16657570600078428 -0.049888875236688106 -0.09839364162746751 -0.044131298848047396 0.07822786379273089 -0.157192861039767 0.054735488296193326 0.14321235530704152 -0.06154876002201883 0.04912511608219189 -0.07770706992943403 0.011610795076858478 0.14237494997939978 -0.10045047696965667 -0.1499056194143388 0.14557923203769052 -0.17611339206461243 -0.13898893630511863 0.17158681421725036 0.04559225455873014 -0.1443083981635838 -0.08280077715642994 0.0833370218996863 -0.04149357541706207 0.02779040907549832 -0.14095278416261173 -0.003533288623132212 0.08689976451696434 0.15007895853624637 +HS 256 +-0.2822336987253591 0.4133898436366228 0.18758402668804797 -0.940830254358032 -0.33482486483662255 -0.8353765631489503 -0.22647860259934482 0.6890098058346372 -0.46192489197046394 0.4064107069347678 0.23565546292281603 0.8944688101411549 0.8371016963719202 0.05109909338245222 -0.5549362958463466 -0.6465876115263174 0.1437518894425467 0.4994974831723793 -0.7896621333114462 0.5720837028925607 -0.009855981382516088 0.5524993593602945 0.1232294482837446 0.6377415229724894 0.43600578666333556 0.9042551663001257 -0.7150013278866321 -0.8008229969313141 -0.21590995927244228 -0.42689342662308816 0.7977045986830285 -0.6421600563011545 0.6615114482276101 0.255668250887755 -0.033536941133855525 0.08721566467671638 -0.4641304796168 -0.9048075504792799 0.2753717716317272 0.44577924920587986 0.5025382910147118 0.951658936307429 0.8712822966410689 0.39895369963174954 -0.33336218220162683 0.03708878044204722 0.9781670709627952 -0.3722716652991904 -0.28732390249789796 0.335244593080815 0.09209209641259708 -0.25931437716641526 0.29481148295266113 0.8284287008828719 -0.388980450846093 -0.4333400614626255 0.728158261955103 -0.979629501108934 0.7443943081076716 0.4254339063265413 0.16234143503563736 -0.8053505267030103 0.07752331428610004 0.9846032245989198 -0.5449768346864232 -0.3350604818817615 0.8067433111552855 0.6990795966318366 -0.3671538674268695 0.7683156411402501 -0.8242597492461332 -0.26720738427719626 -0.9991652825088724 -0.6372644608772045 0.359328731495534 0.4347799035100617 0.7518485209796393 -0.13554690622406484 0.19406142608595722 0.28693523310029256 -0.6599568503478621 -0.5746082372230501 -0.03629201574521934 0.7522857163292977 0.6070718423627559 -0.8145670177601736 -0.5173309430857111 -0.8689641292584627 0.711608528947933 -0.8882734528611609 -0.42968091129182096 0.2897303487454912 -0.5647629543288835 -0.6421090293945189 -0.8479838486569409 0.10670613805414586 0.6827531941970095 -0.6076778462314882 -0.04436554544539417 0.7462496486138015 0.7766562535984725 -0.12580255732816426 0.2519171113766365 -0.019337025586489975 -0.4998535476661754 0.11678282653228145 -0.9741568662302651 -0.8979256792360153 0.5773590559801076 0.7622916817595145 0.5561799166600281 0.7040196773882239 -0.37320474102168033 0.19330536106686624 0.053631751745655265 0.13495592413127477 0.3574977732936806 -0.07363362576611276 0.9472449549816018 0.37216648170564115 -0.45381689982892226 0.923443926115397 0.8575460575771312 -0.28175022775818404 0.6516835980892566 -0.1549052770559598 -0.2901864914257599 -0.5807630880475423 0.39109269482549225 0.6150929479460117 0.9148730898374273 0.9076605372690842 0.5830240409263321 0.44742396975066834 0.35706315206265415 -0.7298855099388835 0.5832025561794305 -0.3027210944749008 -0.10177077898452458 0.596083787507748 0.1995891581325111 0.8184762096861671 0.0011134176317963984 -0.753160447197355 0.7686683526735791 -0.22762616108453804 0.6170089877670817 -0.8659067627833728 0.7571570999412818 0.39087376512943983 0.9810442773396093 0.7960848989059892 0.9629479453414853 0.16895415927331703 -0.46540219842929487 0.22741553276648308 0.028352841821837504 -0.33720831222561154 0.5222163465434932 0.5667710140983218 -0.8453768852310564 -0.4173375531757326 0.8577888747538633 -0.5784508117438709 0.04083102976663566 -0.24644776026463022 -0.06187838075731955 0.9450193163892466 0.7800519057637176 -0.6513064991531219 -0.36963679737439215 0.8451048760765412 -0.27395322236293795 0.7635852524598947 -0.5087207254523176 -0.9712071657499983 -0.6293163283222749 -0.09633616750011997 -0.9229099087385149 0.6502379457815581 0.6787265874310338 0.6283646209084224 0.17262841216874447 0.08064392542666488 0.9969367781436134 -0.7563953407064612 -0.6839777748631923 -0.6789466196161777 -0.16195391371689993 0.503067665663314 0.2074943723299585 0.2103152796819714 0.8249532227302683 -0.5601562907526842 0.31691583139311374 0.23458612557729808 0.46918952072160947 0.8266470790114577 0.5077574713587318 -0.5200918102087657 -0.20799572593235505 -0.5311985928507523 -0.42770616328872624 0.46410924055906033 -0.4323799070653003 0.28641457237386936 0.12358191004984853 0.6654179056332699 0.27346804437794825 0.34819186975264627 0.4681944857065172 0.40381109004563864 -0.8990501057768485 -0.5501845858863441 -0.3060996502125528 -0.2673380108931003 -0.24919009585783325 -0.9041358346691575 0.5851102904559764 0.9179225642001834 0.7235245536124775 0.9106529750966734 -0.6911697079577364 -0.7656162902974395 -0.6072038108030022 0.9529565716855348 0.5585783233365884 0.43561049730601553 0.6475257962196781 0.43400237829351784 0.632113545911626 -0.03740075642566687 -0.05362490715886281 0.6480028043458561 -0.4253774065236535 -0.4163446303610292 0.8948821781770526 0.9082663236668798 -0.7082492943273242 0.16357864433174507 -0.35528555294060205 0.17957014298784824 0.9699100288085654 0.5082479177420791 0.41715676878691177 -0.7299540407878244 -0.7250652858683821 0.41863745413685427 0.6424566403560359 -0.494767793317052 0.6892927099164035 -0.710005800317445 0.6565525033783266 -0.288464609095886 -0.6432234704720035 0.4975391999025951 +BETA 257 +-2.810929079946041 1.2120739831213159 -1.7857742937440677 0.5578383457471247 -0.2863900543430428 0.002391420243848233 -2.111967709822028 2.2196788967187047 1.721696109773287 -0.4308838191966253 0.37341720617671803 -0.4998585416414704 -2.2695186641882947 0.9302189828918045 -2.4613734778899925 0.22272403416357353 2.7275204402717574 1.6360855058156683 -0.0766570249601505 -3.9596882479205324 0.5674838150223813 -0.07831325050930063 -2.226702293763734 1.292142637823766 1.7764190750996374 0.7301267970863251 -0.6327970934121705 2.9881298591332106 2.400126218712822 0.5623310795521365 1.4539260097135775 0.7599743146776221 1.8783525050574719 0.9505682776324625 0.5992512302212668 -0.8942033686008405 0.1325780862478423 -1.1381374092942884 0.5189989890617305 -4.334107206789099 1.242970425323062 2.2120970861344267 3.5441749197241004 -0.45674206281623264 -0.06275974265206799 -1.6892988282686348 1.2764760164330697 1.246180105211022 0.7527456200504609 1.7547874337497098 -0.6365903878846797 -2.5401570137872973 1.2347274784220201 -0.6252422583252796 -3.5942905235860847 1.053515067992836 -1.8698336411117429 -2.513477106527747 -5.828998590994309 1.3375665615450545 0.9397828222141166 1.602729152470511 3.919867147547678 -0.9908543613293983 -0.02544446198687088 0.969243085547982 -0.36652021429265363 -3.3289822572756167 -1.5319705788961395 3.377438769394788 2.14948118480103 0.0881034867594694 -4.0440855437344565 1.0189517770151286 0.5314870772968554 -0.8961196512804559 -1.6860284795742093 1.4930726163813122 -0.4558790637596946 -2.3080400922489925 -0.2815698041011584 -2.2896491764951463 0.32131233138382537 -0.29586989420733284 3.5170622875075623 -4.1664490548143505 -2.5296243830698186 2.5797473482227034 -0.8981639244618117 -0.42697532875366595 -0.7983659959325862 -2.525082126064471 -4.235771800505349 2.1069297013670325 1.4814729164934706 -3.647095729753421 -1.033367551575747 2.5864033084633515 -1.5488174013041245 -1.4884958357444795 1.9903346699803999 -1.2233534973578803 -2.9001070052412166 3.9177446503515383 0.2119687703652627 -0.7557871181943984 -0.38019270318637555 0.6552677402195043 2.5067381844483587 1.025464295999736 -2.498301069393206 6.334948488276358 -4.516821999906197 -0.6074371925952465 -0.42267088936580705 2.178699302563672 -1.0890812472569542 0.608694448881012 -2.162443968213469 0.9808602845813114 0.5366167598789203 -0.23490645674737726 1.995301182555261 0.5095944177813022 1.8813087202797634 0.8633212208231619 -1.8691355727232537 -2.3915192901547373 0.5656651150521164 -2.01383250887868 0.46056323582752146 8.175797781833714 3.7382992129357375 -3.276991873896718 0.4709382381703 -1.0951806648894113 1.9768984913753933 -2.4934891724588204 0.7780074446881595 -1.8603845940445525 0.659070579794177 0.620381856628055 0.09358352711354538 0.3865703057657298 -3.367099590204395 1.9051263219159211 2.609066626676425 1.0859929827591692 1.3297443953172914 -2.678666561424793 -1.9364608414351576 1.1431306774326224 -2.3626256699096637 4.866131677421359 -1.7829417772793765 -2.99569231761864 -0.5237640640031522 0.40652689002289993 -0.2517998400241236 -1.3710899755953305 0.7127697799730384 1.464004838791497 -2.412872378599354 -0.37944112488734716 1.4750077804993882 -0.7824016280944371 0.886509157533832 -2.193698604416341 -1.0335688361195505 -1.1633980433293774 -0.317598508349929 3.897681983621854 2.9931145266176444 1.5779313027461117 0.6591063918650005 -5.862255479594811 0.19503062366380935 0.8887876751074116 -3.347159103796995 -0.947572280286104 -6.61570936687069 -1.2821710421593566 1.1169848156691917 1.1523209135678687 -1.8240130238733212 1.5556434065519567 -2.157225724341226 4.296414129296813 3.8269866783635957 -3.683001521574921 1.759659187449651 0.9977078992669768 0.7612012033061344 0.5944052394462511 -1.1446805742687796 0.8662818254372061 0.03293528145444762 2.264442298774354 -3.2935233888298603 2.6902760777945414 1.8438409899287207 0.19492316763677484 1.107878130171917 1.0537970834969996 0.11293984100444507 1.4826643380932942 -0.9732275783141537 3.862136977608626 1.7902101141728006 3.485766320009293 0.2744385527510244 0.011333474512963272 0.16816033652887116 -2.7244566476909244 -2.0321140596311125 -0.550074704060515 -1.3874898972984626 -0.09340470417743822 5.41561421053755 0.17043453106447132 0.6263393227895029 0.3567520828394211 -1.8366487121228205 -4.432558496943759 1.331335579475404 0.957136573493768 -1.6305198656744015 -2.5996211695270373 7.228639529324614 1.9095672014453493 -1.6168719171735169 -0.1441246149054897 -3.2173479644129004 -0.5823165092689172 -1.8664557266379722 -0.4666497440940604 -0.5766691317740008 -5.579180554357626 0.23124079673278894 0.5995392909030227 -0.9900900509590376 1.668065688918362 -4.4987877691829645 -1.4058312002094742 -0.5975158554399521 1.1885557521036507 0.2199830003437446 0.6209249866175348 1.2285840280638596 -3.6125791457582737 -0.6505257517466757 -0.5953709840927452 -3.8457319448506153 1.5204091997796487 0.05722906423728788 -1.6518976317340939 -20.292146736556173 +TRAIN_RMSE 0.2276850297492122 +GATE_TAU 0.1 diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/radar.nim b/ChimeraBot_garage/src/ChimeraBot/modules/radar.nim new file mode 100644 index 0000000..b110092 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/radar.nim @@ -0,0 +1,161 @@ +## The radar — one module, the whole of it. No movement, no gun. +## +## Every tick `commandRadar()` issues EXACTLY ONE radar command, before `go()`, +## on every path. There is no "idle" branch: the 360 sweep is not a mode we +## fall back INTO, it is the command the other branch replaces. That is why +## switching costs zero turns. +## +## TWO commands, chosen by the only fact the bot knows for sure: +## +## exactly one enemy alive + a target in hand -> LOCK (servo onto its bearing) +## anything else -> SWEEP (45 deg/tick, the cap, +## a full revolution every 8 ticks) +## +## The sweep does double duty and needs no separate "melee" mode: it is both the +## search for a target we do not have yet and the right answer for 2+ enemies +## (a full revolution re-scans every enemy 8x sooner than any narrowed sweep, +## and locking one of several is worthless). +## +## Derived from ModularBot's radar (Davide Cappellini, Apache-2.0), i.e. from +## common_libs/radar_lock/radar_lock.nim (`doRadar`) and common_libs/radars/ +## melee_scan.nim, which ModularBot picks between per tick in exactly this way +## (`let targetMode = if getEnemyCount() == 1: 0 else: 1` — ModularBot.nim, the +## "Auto-switch radar based on the SERVER's live enemy count" block). The one +## idea taken from it is the OVERSHOOT, and it is the whole reason the lock +## works: the rate is the delta to the target's bearing plus 5 deg PAST it, so +## the radar crosses the bearing every tick instead of settling on it — which +## is exactly what produces a fresh ScannedBotEvent every tick. Turning by the +## bare error (or holding inside a deadzone) parks the radar on the bearing and +## the scans stop; the target then has to be re-found by the sweep, which is the +## delay this replaces. common_libs/ is never edited in place. +## +## ANGLES: 0° = east, positive = counter-clockwise, so positive = a LEFT turn +## (proof in ../README.md; the API's own doc comment claiming "0 = North" for +## `directionTo` contradicts its code and is wrong). + +import std/math +import robocode_tankroyale_botapi + +const + MaxRadarTurn* = 45.0 # deg/tick, the radar's hard cap (the sweep) + OvershootDeg* = 5.0 # how far past the target's bearing the lock aims; + # guarantees the bearing is swept every tick + FreshScanTurns* = 1 # how many ticks a remembered target stays usable. + # The 5 deg overshoot makes the lock CROSS the + # target's bearing every tick, so a fresh + # ScannedBotEvent arrives every tick and this + # counter never gets past 1. Hence one tick without a + # scan means the target has genuinely left the radar + # cone: there is nothing left to wait for, sweeping + # re-finds it faster than a stale lock could. + +# The target in hand: the position of the last bot we scanned. Absolute +# position, not a remembered bearing, so the delta is recomputed against the +# radar's CURRENT heading every tick and the lock keeps correcting a target +# that (and a radar that) has moved since the scan. +var + targetX, targetY: float + targetSeen: bool + scanlessTicks: int + +# ── scan history (added for the ELM gun) ───────────────────────────────────── +# The gun needs THREE things the plain radar throws away: the previous scan (to +# estimate the target's velocity), how many ticks ago the last scan was (the +# dead-reckoning age), and how far WE moved in between (one of the 22 features). +# The above variables alone cannot express any of them, so the two most recent +# scans are kept here. Two is enough — a velocity from exactly two samples is +# all the corpus model was fitted with (extract_realistic.py uses hist[-2..-1]). +type ScanHistory* = object + tick*: int ## tracker tick of the scan (scanlessTicks-free counter) + x*, y*: float ## scanned position + ownX*, ownY*: float ## OUR position on that same tick (for own displacement) + +const ScanWinCap* = 8 ## motion-window length kept for the ELM gun + +const MaxVelGap* = 3 ## ticks. Two scans farther apart than this give a + ## velocity that averages over too much motion to be + ## trusted; the corpus velocity is a one-tick delta, + ## so anything much wider is a different estimator and + ## worse than not extrapolating at all. + +var + scanTick*: int ## incremented once per commandRadar() call + lastScan*, prevScan*: ScanHistory + haveLast*, havePrev*: bool + ## window of the most recent scans, newest at index 0 (ELM gun features) + winTick*: array[ScanWinCap, int] + winX*, winY*: array[ScanWinCap, float] + winN*: int + +proc onScanFull*(tick: int, x, y, ownX, ownY: float) = + ## Full-history variant of `onScan`, called by the bot. Shifts the scan + ## history (and the ELM motion window) instead of overwriting a single slot. + prevScan = lastScan + havePrev = haveLast + lastScan = ScanHistory(tick: tick, x: x, y: y, ownX: ownX, ownY: ownY) + haveLast = true + if winN > 0 and winTick[0] == tick: + winX[0] = x; winY[0] = y # same-tick rescans replace, do not shift + else: + for k in countdown(ScanWinCap - 1, 1): + winX[k] = winX[k - 1]; winY[k] = winY[k - 1]; winTick[k] = winTick[k - 1] + winX[0] = x; winY[0] = y; winTick[0] = tick + if winN < ScanWinCap: inc winN + +proc scanAge*(now: int): float = + ## Ticks since the last scan, or -1 when we have never scanned anything. + if not haveLast: -1.0 else: float(now - lastScan.tick) + +proc scanGap*(): float = + ## Ticks between the last two scans; 0 when there is no earlier scan (a + ## zero gap is what the corpus uses for "velocity unknown"). + if not (haveLast and havePrev): 0.0 else: float(lastScan.tick - prevScan.tick) + +proc targetVelocity*(): tuple[vx, vy: float] = + ## px/tick, from the last two scans. (0,0) when there is no gap to measure + ## over or the gap is too wide to be a trustworthy one-tick estimate — the + ## corpus uses the same (0,0) convention for "velocity unknown". + if not (haveLast and havePrev): return (0.0, 0.0) + let gap = lastScan.tick - prevScan.tick + if gap <= 0 or gap > MaxVelGap: return (0.0, 0.0) + ((lastScan.x - prevScan.x) / float(gap), (lastScan.y - prevScan.y) / float(gap)) + +proc ownDisp*(selfX, selfY: float): float = + ## How far WE have moved since the last scan (0 if we never scanned). + if not haveLast: 0.0 else: hypot(selfX - lastScan.ownX, selfY - lastScan.ownY) + +proc onScan*(x, y: float) = + ## Remember a scanned bot as the target. Issues no command: `onScannedBot` + ## runs AFTER go() has already sent this tick's intent. + ## Kept for backward compatibility: it drives the radar's own lock, and the + ## bot calls `onScanFull` when it also wants the history. + targetX = x + targetY = y + targetSeen = true + scanlessTicks = 0 + +proc initRadar*() = + ## Called ONCE, before the first tick: the radar is now programmed and working, + ## so it claims its own colours — radar and scan arc go BLACK. + ## COLOUR CONVENTION: white = "not programmed yet", black = "programmed and + ## running". The bot starts all WHITE (ChimeraBot.nim); the radar paints + ## ITSELF black the moment it takes control, and body/turret/gun stay white + ## forever (they are still unprogrammed — this bot never moves, never fires). + ## Set once here, never per tick: the colour never changes, so re-sending it + ## every tick would only cost intent bandwidth. + setRadarColor(BLACK) + setScanColor(BLACK) + +proc commandRadar*() = + ## Command the radar for THIS tick. Called from run() before go(). + inc scanTick + if targetSeen: inc scanlessTicks + if getEnemyCount() == 1 and targetSeen and scanlessTicks <= FreshScanTurns: + var turn = normalizeRelativeAngle( + directionTo(getX(), getY(), targetX, targetY) - getRadarDirection()) + if turn < 0.0: turn -= OvershootDeg + else: turn += OvershootDeg + setRadarTurnRate(turn.clamp(-MaxRadarTurn, MaxRadarTurn)) + return + targetSeen = false # nothing usable to lock on: sweep + setRadarTurnRate(MaxRadarTurn) diff --git a/ChimeraBot_garage/src/ChimeraBot/modules/tfil.nim b/ChimeraBot_garage/src/ChimeraBot/modules/tfil.nim new file mode 100644 index 0000000..672a456 --- /dev/null +++ b/ChimeraBot_garage/src/ChimeraBot/modules/tfil.nim @@ -0,0 +1,805 @@ +## TFIL — "The Floor Is Lava" survival movement, vendored into ChimeraBot. +## +## Ported from `common_libs/movements/the_floor_is_lava.nim` (the authoritative +## implementation) with its DEFAULT behaviour, kept byte-for-byte. Self-contained +## on purpose: this bot folder never imports from `common_libs`, so the harness +## types (WorldState / EnemyInfo / MoveCommand) and the enemy-fire detector are +## inlined here rather than imported. +## +## WHAT WAS DROPPED (all of it default-OFF or diagnostic-only in the source, so +## the shipped decision path is unchanged): +## * the whole `TR_TFIL_*` / `TR_FIRE_*` env-port surface (knobs baked in as +## consts below with the source's defaults): TILE_REPLAN, COMMIT_TICKS, NO_REV, +## COMMIT_LOG, COMMIT_ARRIVAL, COMMIT_MARGIN, NOREV_SPEED, TURN_BIAS, +## TURN_REF_DEG, DANGER_THRESHOLD, DIAG, GEO_MODE/GEO_TAU, ARRIVE_TICKS, +## HOLD_WHEN_TRAPPED, HOLD_MAX_TICKS, HEAT_TIME/TAU/POWER_GAIN, +## CORRIDOR_TICKS, CORRIDOR_HEAT, WALL_HOTNESS/RADIANCE, BULLET_CORE/AURA, +## PILLAR_ON, FIRE_DIAG, FIRE_FIX (always on here), FIRE_LAG (always 0 here). +## Consequences, all of them no-ops at the defaults: the time-indexed heat +## model and the damage-proportional magnitude scale are OFF (every heat is +## exactly the flat one), corridors run to the wall, the virtual centre pillar +## is absent (0/0), the pick is a UNIFORM draw (no turn / no-rev / geometry +## tilt), no arrival bound, no bounded hold, no commit diagnostics. +## * debug graphics — restored below, but behind ` ` (off by default, +## since the SVG payload costs time every tick). +## * the pure bookkeeping fields (loss histogram, lastPick*, log-only vars). +## +## ANGLES: 0 deg = east, counter-clockwise positive (Tank Royale standard). + +import std/[math, random] +import robocode_tankroyale_botapi +import robocode_tankroyale_botapi/color # graphics comes re-exported by the import above + +## ── Debug graphics ────────────────────────────────────────────────────────── +## OFF by default: the drawing is a real per-tick cost (an SVG buffer sent to +## the server) and nothing else needs it. Turn it ON at compile time: +## nim c -d:tfilDebug ... +## or `nimble runBot -d:tfilDebug`. Everything below is inside +## `when defined(tfilDebug)`, so the OFF build contains none of it. +## +## The API has no Graphics object to hand around: the procs are global, the SVG +## buffer is drained and flushed by the API after every tick. `computeMove` runs +## before `go()`, which is exactly where drawing belongs. + +# ── Harness types (vendored from gun_harness/movement_interface) ───────────── + +type + EnemyInfo* = object + id*: int + x*, y*: float + heading*, speed*, energy*: float + lastSeenTick*: int + + WorldState* = object + enemyX*, enemyY*: float + enemySpeed*, enemyHeading*: float + selfX*, selfY*: float + selfSpeed*, selfHeading*: float + selfRadarHeading*: float + selfEnergy*: float + enemyEnergy*: float + arenaWidth*, arenaHeight*: float + tick*: int + enemies*: seq[EnemyInfo] + + MoveCommand* = tuple[speed: float, turnRate: float] + ## speed: target speed in px/tick (clamped to +-8 by the bot API); + ## turnRate: body turn rate in degrees/tick. + +# ── Tunables (source defaults, baked in) ──────────────────────────────────── + +const + GridSize = 36.0 + MaxSpeed = 8.0 + + BulletCoreRadiusMin = 9.0 ## core radius at power 0.1 + BulletCoreRadiusMax = 54.0 ## core radius at power 3.0 + BulletAuraExtMin = 36.0 ## aura extension at power 3.0 (slow) + BulletAuraExtMax = 54.0 ## aura extension at power 0.1 (fast) + BulletCoreHeat = 10.0 ## lava per bullet-overlapping tile + BulletAuraHeat = 5.0 ## lava for aura ring tiles + + EnemyCoreRadius = 18.0 ## half of 36px body + EnemyAuraRadius = 54.0 ## 18 + 36 + EnemyCoreHeat = 40.0 ## lava per tile overlapping the enemy body circle + EnemyAuraHeat = 10.0 ## lava per tile in the enemy aura ring + + CorridorHeat = 20.0 ## lava per corridor-overlapping tile + WallHotness = 30.0 ## peak wall radiance + WallRadiance = 10.0 ## wall radiance falloff + + CommitTicks = 15 ## ticks to commit to a dodge point + MinCommitTicks = 5 ## must commit this long before a danger replan + LockRadiusTiles = 15.0 ## freeze the committed dodge while a tracked + ## bullet is this many tiles away or closer + DangerReplanThreshold = 25.0 ## replan on serious threats only (bullet core) + CoolestLevels = 2 ## how many distinct lava values count as "cool" + MaxTrackedBullets = 20 ## hard cap on tracked bullets + + PathSampleStep = 18.0 ## ~half a tile + PathDangerThreshold = 10.0 ## max lava on path; above = unsafe + ArriveRadius = 18.0 ## "we are on the committed tile" + HullTicks = 50 ## reachable-hull planning horizon + FireFix = true ## corrected energy-drop detection + +proc bulletRadii(power: float): tuple[core, aura: float] = + let t = (power - 0.1) / 2.9 + let core = BulletCoreRadiusMin + t * (BulletCoreRadiusMax - BulletCoreRadiusMin) + let auraExt = BulletAuraExtMax - t * (BulletAuraExtMax - BulletAuraExtMin) + (core, core + auraExt) + +# ── Enemy-fire detector (vendored from movement_harness/fire_tracker) ──────── +# +# One enemy energy reading in, the confirmed fire powers out. Two server facts +# are corrected for: `BULLET_HIT_ENERGY_GAIN_FACTOR = 3` (an ENEMY bullet hitting +# US raises the SHOOTER's energy by 3*power and masks its own shot) and our own +# same-tick damage to the enemy (pushes the delta above the power cap). The +# corrections are staged one scan late because the server emits the hit event on +# turn N but applies the energy change to the reading of turn N+1. + +type + FireTracker = object + prevEnergy*: seq[tuple[id: int, energy: float]] + hitBonusPending: float + dealtPending: float + hitBonusIncoming: float + dealtIncoming: float + +proc initFireTracker*(): FireTracker = + FireTracker(prevEnergy: @[]) + +proc reset*(t: var FireTracker) = + t.prevEnergy = @[] + t.hitBonusPending = 0.0 + t.dealtPending = 0.0 + t.hitBonusIncoming = 0.0 + t.dealtIncoming = 0.0 + +proc prevEnergyGet(t: FireTracker, id: int): float = + for e in t.prevEnergy: + if e.id == id: return e.energy + 100.0 + +proc prevEnergySet(t: var FireTracker, id: int, energy: float) = + for i in 0.. `e.bullet.power`. + t.hitBonusIncoming += 3.0 * power + +proc noteDamageDealt*(t: var FireTracker, damage: float) {.inline.} = + ## `onBulletHit` -> `e.damage`. + t.dealtIncoming += damage + +proc detect*(t: var FireTracker, id: int, energy: float, lo, hi: float): seq[float] = + let prev = t.prevEnergyGet(id) + let raw = prev - energy + var drop = raw + t.hitBonusPending - t.dealtPending + t.prevEnergySet(id, energy) + if drop > hi: + # Never silently drop a too-large delta: split it into the fewest waves each + # <= 3.0 — some heat beats none. + let n = int(ceil(drop / 3.0)) + let p = drop / n.float + result = newSeq[float](n) + for i in 0..= lo and drop <= hi: + result = @[drop] + +proc endScan*(t: var FireTracker) = + ## Rotate the event corrections one slot: the events noted since the previous + ## `endScan` become the corrections applied by the NEXT scan. + t.hitBonusPending = t.hitBonusIncoming + t.dealtPending = t.dealtIncoming + t.hitBonusIncoming = 0.0 + t.dealtIncoming = 0.0 + +# ── The mover ─────────────────────────────────────────────────────────────── + +type + TrackedBullet = object + x, y: float + velX, velY: float ## speed * cos(heading), speed * sin(heading) + power: float + age: int ## ticks alive; die if > 200 + + ScoredTile = tuple[col, row: int; pathMaxHeat: float] + + CorridorGeom = object + dx, dy: float ## unit heading + px, py: float ## unit perpendicular + tMin: float ## distance to wall + bx, by: float ## bullet origin + + TfilModule* = object + cols, rows: int + marginX, marginY: float + arenaWidth, arenaHeight: float + lava: seq[float] ## flat row-major, index = row*cols + col + bullets: seq[TrackedBullet] + fire: FireTracker + commitTarget: tuple[x, y: float] ## world coords of the committed dodge point + commitTicks: int ## ticks remaining on the commitment + commitLava: float ## lava at commit time (spike detection) + blockedTile: tuple[col, row: int; active: bool] ## excluded from the next pick + cachedHull: seq[tuple[x, y: float]] + cachedInsideTiles: seq[tuple[col, row: int]] + callCount: int ## computeMove call count; 0 = never called + lastBotX, lastBotY: float ## position at the last call (gap detection) + lastTileCol, lastTileRow: int ## grid tile at the last call (tile replan) + +proc initTFIL*(): TfilModule = + # COLOUR CONVENTION: white = "not programmed yet", black = "programmed and + # running". Survival movement IS programmed, so this init claims the body's + # own colours: body, turret and gun go BLACK (radar claims its own pair in + # radar.nim). Set once here, never per tick. + setBodyColor(BLACK) + setTurretColor(BLACK) + setGunColor(BLACK) + TfilModule(cols: 0, rows: 0, fire: initFireTracker()) + +proc resetRound*(m: var TfilModule) = + m.bullets = @[] + m.fire.reset() + m.commitTicks = 0 + m.cachedHull = @[] + m.cachedInsideTiles = @[] + m.blockedTile = (col: 0, row: 0, active: false) + m.callCount = 0 + m.lastBotX = 0.0 + m.lastBotY = 0.0 + m.lastTileCol = 0 + m.lastTileRow = 0 + +proc removeBulletNear*(m: var TfilModule, x, y: float) = + ## Mark the tracked bullet closest to (x,y) within one tile as dead (used when + ## OUR bullet destroys one of theirs before we see it). + var bestIdx = -1 + var bestD2 = GridSize * GridSize ## tolerance squared + for i, b in m.bullets: + let dx = b.x - x + let dy = b.y - y + let d2 = dx * dx + dy * dy + if d2 < bestD2: + bestD2 = d2 + bestIdx = i + if bestIdx >= 0: + m.bullets.del(bestIdx) + +proc initGrid(m: var TfilModule, arenaWidth, arenaHeight: float) = + m.cols = int(arenaWidth / GridSize) + m.rows = int(arenaHeight / GridSize) + m.marginX = (arenaWidth - m.cols.float * GridSize) / 2.0 + m.marginY = (arenaHeight - m.rows.float * GridSize) / 2.0 + m.arenaWidth = arenaWidth + m.arenaHeight = arenaHeight + m.lava = newSeq[float](m.cols * m.rows) + +proc lavaAt(m: TfilModule, col, row: int): float {.inline.} = + m.lava[row * m.cols + col] + +proc tileAt(m: TfilModule, wx, wy: float): tuple[col, row: int] = + (col: clamp(int((wx - m.marginX) / GridSize), 0, m.cols - 1), + row: clamp(int((wy - m.marginY) / GridSize), 0, m.rows - 1)) + +proc noteEnemyBulletHit*(m: var TfilModule, power: float) = + ## `onHitByBullet` -> the shooter's `3*power` bonus correction. + when FireFix: + m.fire.noteEnemyBulletHit(power) + +proc noteDamageDealt*(m: var TfilModule, damage: float) = + ## `onBulletHit` -> our same-tick damage to the enemy correction. + when FireFix: + m.fire.noteDamageDealt(damage) + +proc spawnTrackedWave(m: var TfilModule, ws: WorldState, ei: EnemyInfo, power: float) = + ## One tracked bullet for a confirmed fire of `power`: linear prediction of our + ## position at arrival becomes the aim heading. + let speed = 20.0 - 3.0 * power + let dx = ws.selfX - ei.x + let dy = ws.selfY - ei.y + let travelTime = sqrt(dx * dx + dy * dy) / speed + let hRad = ws.selfHeading * PI / 180.0 + let predX = ws.selfX + ws.selfSpeed * cos(hRad) * travelTime + let predY = ws.selfY + ws.selfSpeed * sin(hRad) * travelTime + let heading = arctan2(predY - ei.y, predX - ei.x) + if m.bullets.len >= MaxTrackedBullets: + m.bullets.del(0) ## ponytail: drop the oldest; fine for a 20-bullet cap + m.bullets.add TrackedBullet(x: ei.x, y: ei.y, + velX: speed * cos(heading), + velY: speed * sin(heading), + power: power, age: 0) + +proc detectFires(m: var TfilModule, ws: WorldState) = + ## Check every enemy for an energy drop; spawn a tracked wave per confirmed fire. + for ei in ws.enemies: + for p in m.fire.detect(ei.id, ei.energy, 0.09, 3.01): + m.spawnTrackedWave(ws, ei, p) + m.fire.endScan() + +proc bulletLock(m: TfilModule, selfX, selfY: float): bool = + ## True while any tracked bullet is within LockRadiusTiles of us: an active + ## dodge, during which the committed tile is frozen (proposal #2). + let r2 = (LockRadiusTiles * GridSize) * (LockRadiusTiles * GridSize) + for b in m.bullets: + let dx = selfX - b.x + let dy = selfY - b.y + if dx * dx + dy * dy <= r2: return true + +proc advanceBullets(m: var TfilModule, selfX, selfY: float) = + ## Advance positions and reap bullets that passed us, left the arena, or are + ## too old. + var i = 0 + while i < m.bullets.len: + var b = m.bullets[i] + b.x += b.velX + b.y += b.velY + b.age += 1 + let dx = selfX - b.x + let dy = selfY - b.y + let passed = b.velX * dx + b.velY * dy < 0.0 ## dot < 0: moving away + let outOfBounds = + b.x < 0.0 or b.x > m.arenaWidth or b.y < 0.0 or b.y > m.arenaHeight + if passed or outOfBounds or b.age > 200: + m.bullets.del(i) + else: + m.bullets[i] = b + inc i + +proc corridorGeom(b: TrackedBullet, arenaWidth, arenaHeight: float): CorridorGeom = + ## `tMin` is the corridor length: the distance to the wall along the heading. + ## Unset (0.0) -> zero-speed bullet, skipped by the caller. + let speed = sqrt(b.velX * b.velX + b.velY * b.velY) + if speed < 0.001: return + let dx = b.velX / speed + let dy = b.velY / speed + var tMin = Inf + if dx > 0.0: tMin = min(tMin, (arenaWidth - b.x) / dx) + elif dx < 0.0: tMin = min(tMin, (0.0 - b.x) / dx) + if dy > 0.0: tMin = min(tMin, (arenaHeight - b.y) / dy) + elif dy < 0.0: tMin = min(tMin, (0.0 - b.y) / dy) + CorridorGeom(dx: dx, dy: dy, px: -dy, py: dx, tMin: tMin, bx: b.x, by: b.y) + +proc pointInHull(px, py: float, hull: seq[(float, float)]): bool = + ## Crossing-number test against the hull polygon. + var inside = false + var j = hull.high + for i in 0..hull.high: + if ((hull[i][1] > py) != (hull[j][1] > py)) and + (px < (hull[j][0] - hull[i][0]) * (py - hull[i][1]) / (hull[j][1] - hull[i][1]) + hull[i][0]): + inside = not inside + j = i + inside + +proc computeReachableHull(x0, y0, heading0, speed0, + arenaW, arenaH: float, ticks: int): seq[(float, float)] = + ## Simulate `ticks` ticks at various turn rates / target speeds, then gift-wrap + ## the convex hull of the final positions. + const TargetSpeeds = [8.0, 4.0, -4.0, -8.0] + const NumRates = 11 + + var pts: seq[(float, float)] + pts.add (x0, y0) ## always reachable: stay + + for tSpeed in TargetSpeeds: + let mtr = 10.0 - 0.75 * abs(tSpeed) ## max turn rate at the target speed + for ri in 0.. tSpeed: spd = max(spd - 1.0, tSpeed) + spd = clamp(spd, -MaxSpeed, MaxSpeed) + let curMtr = 10.0 - 0.75 * abs(spd) + h += clamp(turnRate, -curMtr, curMtr) + let hr = h * PI / 180.0 + x = clamp(x + spd * cos(hr), 0.0, arenaW) + y = clamp(y + spd * sin(hr), 0.0, arenaH) + pts.add (x, y) + + # Gift-wrap from the leftmost (then lowest) point. + var startIdx = 0 + for i in 1.. (tx,ty), sampled every ~half + ## a tile. A single hot tile on the path (corridor, bullet core, enemy aura) + ## makes the whole path unsafe. + let ddx = tx - fx + let ddy = ty - fy + let lineDist = sqrt(ddx * ddx + ddy * ddy) + if lineDist <= 0.1: return 0.0 + let steps = max(1, int(lineDist / PathSampleStep)) + var h = 0.0 + for si in 0..steps: + let frac = si.float / steps.float + let (sc, sr) = m.tileAt(fx + ddx * frac, fy + ddy * frac) + h = max(h, m.lavaAt(sc, sr)) + h + + + +proc paintBulletHeat(m: var TfilModule, b: TrackedBullet) = + ## Core circle and aura ring around one tracked bullet. + let (coreR, auraR) = bulletRadii(b.power) + let bx = b.x + let by = b.y + let coreR2 = coreR * coreR + let auraR2 = auraR * auraR + let colMin = max(0, int(floor((bx - auraR - m.marginX) / GridSize))) + let colMax = min(m.cols - 1, int(floor((bx + auraR - m.marginX) / GridSize))) + let rowMin = max(0, int(floor((by - auraR - m.marginY) / GridSize))) + let rowMax = min(m.rows - 1, int(floor((by + auraR - m.marginY) / GridSize))) + for row in rowMin..rowMax: + let y0 = m.marginY + row.float * GridSize + let nearY = clamp(by, y0, y0 + GridSize) + let dy = nearY - by + let dy2 = dy * dy + for col in colMin..colMax: + let x0 = m.marginX + col.float * GridSize + let dx = clamp(bx, x0, x0 + GridSize) - bx + let d2 = dx * dx + dy2 + let idx = row * m.cols + col + if d2 <= coreR2: m.lava[idx] += BulletCoreHeat + elif d2 <= auraR2: m.lava[idx] += BulletAuraHeat + +proc paintCorridorHeat(m: var TfilModule, b: TrackedBullet) = + ## The rotated rectangle from the bullet to the arena wall, auraR wide. + let cg = corridorGeom(b, m.arenaWidth, m.arenaHeight) + if cg.tMin == 0.0: return ## zero-speed bullet + let (_, auraR) = bulletRadii(b.power) + let wx = cg.bx + cg.dx * cg.tMin + let wy = cg.by + cg.dy * cg.tMin + let c0x = cg.bx + cg.px * auraR; let c0y = cg.by + cg.py * auraR + let c1x = cg.bx - cg.px * auraR; let c1y = cg.by - cg.py * auraR + let c2x = wx - cg.px * auraR; let c2y = wy - cg.py * auraR + let c3x = wx + cg.px * auraR; let c3y = wy + cg.py * auraR + let colMin = max(0, int(floor((min(min(c0x, c1x), min(c2x, c3x)) - m.marginX) / GridSize))) + let colMax = min(m.cols - 1, int(floor((max(max(c0x, c1x), max(c2x, c3x)) - m.marginX) / GridSize))) + let rowMin = max(0, int(floor((min(min(c0y, c1y), min(c2y, c3y)) - m.marginY) / GridSize))) + let rowMax = min(m.rows - 1, int(floor((max(max(c0y, c1y), max(c2y, c3y)) - m.marginY) / GridSize))) + for row in rowMin..rowMax: + let cy = m.marginY + (row.float + 0.5) * GridSize + let relY = cy - cg.by + let along0 = relY * cg.dy + let perp0 = relY * cg.py + for col in colMin..colMax: + let cx = m.marginX + (col.float + 0.5) * GridSize + let relX = cx - cg.bx + let along = along0 + relX * cg.dx + let perp = perp0 + relX * cg.px + if along >= 0.0 and along <= cg.tMin and perp >= -auraR and perp <= auraR: + m.lava[row * m.cols + col] += CorridorHeat + +proc paintEnemyHeat(m: var TfilModule, ei: EnemyInfo) = + ## Enemy core (18px) and aura ring (54px), same pattern as the bullets. + let ex = ei.x + let ey = ei.y + let colMin = max(0, int(floor((ex - EnemyAuraRadius - m.marginX) / GridSize))) + let colMax = min(m.cols - 1, int(floor((ex + EnemyAuraRadius - m.marginX) / GridSize))) + let rowMin = max(0, int(floor((ey - EnemyAuraRadius - m.marginY) / GridSize))) + let rowMax = min(m.rows - 1, int(floor((ey + EnemyAuraRadius - m.marginY) / GridSize))) + let coreR2 = EnemyCoreRadius * EnemyCoreRadius + let auraR2 = EnemyAuraRadius * EnemyAuraRadius + for row in rowMin..rowMax: + let y0 = m.marginY + row.float * GridSize + let dy = clamp(ey, y0, y0 + GridSize) - ey + let dy2 = dy * dy + for col in colMin..colMax: + let x0 = m.marginX + col.float * GridSize + let dx = clamp(ex, x0, x0 + GridSize) - ex + let d2 = dx * dx + dy2 + let idx = row * m.cols + col + if d2 <= coreR2: m.lava[idx] += EnemyCoreHeat + elif d2 <= auraR2: m.lava[idx] += EnemyAuraHeat + +proc paintWallHeat(m: var TfilModule) = + ## Additive wall radiance: hottest along the border, falling off inwards. + for row in 0..= 0 and distinctVals[j] > key: + distinctVals[j + 1] = distinctVals[j] + dec j + distinctVals[j + 1] = key + + result = @[] + let numLevels = min(CoolestLevels, distinctVals.len) + for t in m.cachedInsideTiles: + let v = m.lavaAt(t.col, t.row) + for li in 0.. maxLava: maxLava = v + + setFont("Arial", 10.0) + for row in 0.. 0.0: val / maxLava else: 0.0 + let heatColor = fromRgb(255'u8, uint8(255.0 * (1.0 - t)), 0'u8) + let x0 = m.marginX + col.float * GridSize + let y0 = m.marginY + row.float * GridSize + setStrokeColor(heatColor) + setStrokeWidth(1.0) + drawRectangle(x0, y0, GridSize, GridSize) + setFillColor(heatColor) + drawText($int(val), x0 + 12.0, y0 + 22.0) + + # Tracked bullets: red core outline + filled centre, orange aura ring. + for b in m.bullets: + let (coreR, auraR) = bulletRadii(b.power) + setStrokeColor(RED) + setStrokeWidth(1.0) + setFillColor(RED) + drawCircle(b.x, b.y, coreR) + fillCircle(b.x, b.y, 3.0) + setStrokeColor(fromHex("#FF8800")) + drawCircle(b.x, b.y, auraR) + + # Danger corridor: the rotated rectangle from each bullet to the arena wall. + setStrokeColor(fromHex("#AAAAAA")) + setStrokeWidth(1.0) + for b in m.bullets: + let (_, auraR) = bulletRadii(b.power) + let cg = corridorGeom(b, m.arenaWidth, m.arenaHeight) + if cg.tMin == 0.0: continue + let wx = cg.bx + cg.dx * cg.tMin + let wy = cg.by + cg.dy * cg.tMin + drawPolygon(@[ + (cg.bx + cg.px * auraR, cg.by + cg.py * auraR), + (cg.bx - cg.px * auraR, cg.by - cg.py * auraR), + (wx - cg.px * auraR, wy - cg.py * auraR), + (wx + cg.px * auraR, wy + cg.py * auraR), + ]) + + # Enemies: cyan body core, green aura ring. + setStrokeColor(fromHex("#00FFFF")) + setStrokeWidth(1.5) + for ei in ws.enemies: drawCircle(ei.x, ei.y, EnemyCoreRadius) + setStrokeColor(fromHex("#00CC00")) + setStrokeWidth(1.0) + for ei in ws.enemies: drawCircle(ei.x, ei.y, EnemyAuraRadius) + + proc drawDecision(m: TfilModule, ws: WorldState, + scoredTiles, safeTiles: seq[ScoredTile]) = + ## What the planner actually did: reachable hull, the tiles whose path is + ## blocked, the safe set, the tile it committed to, its own tile, and the + ## committed-target line. + if m.cachedHull.len >= 3: + let hullPts = block: + var s: seq[(float, float)] + for p in m.cachedHull: s.add (p.x, p.y) + s + setStrokeColor(fromHex("#336699")) + setStrokeWidth(1.0) + drawPolygon(hullPts) + + setStrokeColor(fromHex("#006666")) + setStrokeWidth(1.0) + for t in scoredTiles: + if t.pathMaxHeat <= PathDangerThreshold: continue + if t in safeTiles: continue ## promoted into the safe set: drawn cyan below + drawRectangle(m.marginX + t.col.float * GridSize, + m.marginY + t.row.float * GridSize, GridSize, GridSize) + + setStrokeColor(fromHex("#00FFFF")) + setStrokeWidth(2.0) + for t in safeTiles: + drawRectangle(m.marginX + t.col.float * GridSize, + m.marginY + t.row.float * GridSize, GridSize, GridSize) + + let (chosenCol, chosenRow) = m.tileAt(m.commitTarget.x, m.commitTarget.y) + setStrokeColor(fromHex("#00FF00")) + setStrokeWidth(2.5) + drawRectangle(m.marginX + chosenCol.float * GridSize, + m.marginY + chosenRow.float * GridSize, GridSize, GridSize) + + let (botCol, botRow) = m.tileAt(ws.selfX, ws.selfY) + setStrokeColor(fromHex("#0088FF")) + setStrokeWidth(2.5) + drawRectangle(m.marginX + botCol.float * GridSize, + m.marginY + botRow.float * GridSize, GridSize, GridSize) + + setStrokeColor(fromHex("#00FF00")) + setStrokeWidth(1.5) + drawLine(ws.selfX, ws.selfY, m.commitTarget.x, m.commitTarget.y) + +proc computeMove*(m: var TfilModule, ws: WorldState): MoveCommand = + if m.cols == 0: + m.initGrid(ws.arenaWidth, ws.arenaHeight) + + # Soft reset: a position gap (a rammer moved us across ticks) invalidates the + # commitment, the cached hull and every tracked bullet. 12px is above the 8px + # single-tick maximum, so normal motion never trips it. + let jumpDist = sqrt((ws.selfX - m.lastBotX)^2 + (ws.selfY - m.lastBotY)^2) + let jumped = (m.callCount > 0) and (jumpDist > 12.0) + if jumped: + m.commitTicks = 0 + m.cachedHull = @[] + m.cachedInsideTiles = @[] + m.bullets = @[] + m.blockedTile = (col: 0, row: 0, active: false) + # Re-snapshot prevEnergy: energy changes during ramming are not fires. + m.fire.prevEnergy = @[] + for ei in ws.enemies: + m.fire.prevEnergySet(ei.id, ei.energy) + + # Per-tick: advance existing bullets, detect new fires + m.advanceBullets(ws.selfX, ws.selfY) + m.detectFires(ws) + + # Active-dodge lock: while a tracked bullet is within LockRadiusTiles we stop + # the tile-crossing replan, so the committed dodge direction survives the + # crossing. The 15-tick dwell still expires and the safety valve still fires + # (a hard freeze until the bullet passed measured far worse: the bot parked and + # ate the shot). + let locked = m.bulletLock(ws.selfX, ws.selfY) + + # Tile-change replan: crossing a tile boundary cancels the commitment, + # unless we are mid-dodge (locked). + if (not jumped) and (not locked) and (m.callCount > 0) and (m.commitTicks > 0): + let curTileCol = clamp(int((ws.selfX - m.marginX) / GridSize), 0, m.cols - 1) + let curTileRow = clamp(int((ws.selfY - m.marginY) / GridSize), 0, m.rows - 1) + if curTileCol != m.lastTileCol or curTileRow != m.lastTileRow: + m.commitTicks = 0 + m.cachedHull = @[] + m.cachedInsideTiles = @[] + + # Recompute the lava field from scratch + for i in 0..= 3: + for row in 0..= 0 and scoredTiles[j].pathMaxHeat > key.pathMaxHeat: + scoredTiles[j + 1] = scoredTiles[j] + dec j + scoredTiles[j + 1] = key + + # Absolute threshold filter: safe = path max lava <= PathDangerThreshold. + # Fallback: if fewer than two tiles survive, promote the least-hot blocked ones. + var safeTiles: seq[ScoredTile] + for t in scoredTiles: + if t.pathMaxHeat <= PathDangerThreshold: safeTiles.add t + if safeTiles.len < 2: + # Promote the least-hot blocked tiles until there are two (scoredTiles is + # sorted ascending, so the first hot ones are the coolest of the hot). + for t in scoredTiles: + if safeTiles.len >= 2: break + if t.pathMaxHeat > PathDangerThreshold: safeTiles.add t + + # Commitment logic: a fixed 15-tick dwell, cancellable by our own tile crossing + # (above) or by the committed tile getting genuinely dangerous (the safety + # valve, only after the minimum dwell). + if m.commitTicks > 0: + if CommitTicks - m.commitTicks >= MinCommitTicks: + let (cc, cr) = m.tileAt(m.commitTarget.x, m.commitTarget.y) + if m.lavaAt(cc, cr) > m.commitLava + DangerReplanThreshold: + m.blockedTile = (col: cc, row: cr, active: true) + m.commitTicks = 0 + if m.commitTicks > 0: + dec m.commitTicks + + if m.commitTicks == 0 and safeTiles.len > 0: + # Never re-pick the tile we just blocked ourselves with; if that empties the + # pool, the block is ignored (being cornered beats being stuck). + var candidates: seq[ScoredTile] + for t in safeTiles: + if m.blockedTile.active and t.col == m.blockedTile.col and t.row == m.blockedTile.row: + continue + candidates.add t + if candidates.len == 0: candidates = safeTiles + + ## A uniform draw: the randomness in this pick is load-bearing (a + ## deterministic argmin measured worse). + let ct = candidates[rand(candidates.high)] + m.commitTarget = (x: m.marginX + (ct.col.float + 0.5) * GridSize, + y: m.marginY + (ct.row.float + 0.5) * GridSize) + m.commitTicks = CommitTicks + m.commitLava = m.lavaAt(ct.col, ct.row) + m.blockedTile.active = false + + when defined(tfilDebug): + drawDecision(m, ws, scoredTiles, safeTiles) + + # Update the position snapshot and call counter for next gap/tile detection + m.lastBotX = ws.selfX + m.lastBotY = ws.selfY + m.lastTileCol = clamp(int((ws.selfX - m.marginX) / GridSize), 0, m.cols - 1) + m.lastTileRow = clamp(int((ws.selfY - m.marginY) / GridSize), 0, m.rows - 1) + m.callCount += 1 + + # ── Steering ──────────────────────────────────────────────────────────────── + # `speed: 0.0` is how this module says "stop": the already-at-target case below + # returns the same command. The gun is not here — `computeMove` never touches + # fire, so a held tick still fires exactly as every other tick. + let stepDx = m.commitTarget.x - ws.selfX + let stepDy = m.commitTarget.y - ws.selfY + let dist2 = stepDx * stepDx + stepDy * stepDy + if dist2 < ArriveRadius * ArriveRadius: + return (speed: 0.0, turnRate: 0.0) + + let targetBearing = arctan2(stepDy, stepDx) * 180.0 / PI + var delta = targetBearing - ws.selfHeading + while delta > 180.0: delta -= 360.0 + while delta < -180.0: delta += 360.0 + + let maxTurnRate = 10.0 - 0.75 * abs(ws.selfSpeed) + if abs(delta) <= 90.0: + result = (speed: MaxSpeed, turnRate: clamp(delta, -maxTurnRate, maxTurnRate)) + else: + let flipped = if delta > 0.0: delta - 180.0 else: delta + 180.0 + result = (speed: -MaxSpeed, turnRate: clamp(flipped, -maxTurnRate, maxTurnRate)) \ No newline at end of file diff --git a/ChimeraBot_garage/tests/config.nims b/ChimeraBot_garage/tests/config.nims new file mode 100644 index 0000000..9be0dee --- /dev/null +++ b/ChimeraBot_garage/tests/config.nims @@ -0,0 +1 @@ +--path:"../src/ChimeraBot" diff --git a/ChimeraBot_garage/tests/test_elm.nim b/ChimeraBot_garage/tests/test_elm.nim new file mode 100644 index 0000000..ee8a48f --- /dev/null +++ b/ChimeraBot_garage/tests/test_elm.nim @@ -0,0 +1,251 @@ +## Unit tests for the ELM module (ChimeraBot/modules/ELM/elm.nim). +## Run from ChimeraBot_garage/: nim c -r tests/test_elm.nim +## (`import modules/ELM/elm` resolves via tests/config.nims) + +import std/[math, random, strutils] +import modules/ELM/elm + +var failed = 0 + +proc check(name: string, cond: bool, detail: string = "") = + if cond: + echo " ok ", name, (if detail.len > 0: " [" & detail & "]" else: "") + else: + echo " FAIL ", name, " [", detail, "]" + inc failed + +proc target(x, y: float64): float64 = sin(3 * x) + 0.5 * cos(2 * y) + +# ── 1. Theorem 2.2: L = N samples must be interpolated exactly ────────────── +block test1: + echo "test 1: interpolation (Huang 2011, Thm 2.2)" + var rng = initRand(42) + let d = 5 + let N = 20 # N samples, L = 20 hidden nodes >= N + var e = initElm(ElmConfig(inputDim: d, hiddenDim: N, outputs: 2, + seed: 7, lambda: 0.0, decay: 1.0, refitEvery: 1)) + for i in 0 ..< N: + var x = newSeq[float64](d) + var t = newSeq[float64](2) + for k in 0 ..< d: x[k] = rand(rng, 2.0) - 1.0 + t[0] = target(x[0], x[1]); t[1] = 0.3 * x[2] + e.train(x, t) + let rmse = diagnostics(e).trainRmse + echo " measured trainRmse = ", rmse + check("trainRmse < 1e-8", rmse < 1e-8, formatFloat(rmse, ffScientific, 3)) + +# ── 2. Generalisation on a nonlinear function ─────────────────────────────── +block test2: + echo "test 2: generalisation sin(3x)+0.5*cos(2y), 200 train / 100 held-out" + var rng = initRand(11) + var e = initElm(ElmConfig(inputDim: 2, hiddenDim: 64, outputs: 1, + seed: 3, lambda: 1e-8, decay: 1.0, refitEvery: 1)) + for i in 0 ..< 200: + let x = @[rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0] + e.train(x, @[target(x[0], x[1])]) + var se = 0.0 + for i in 0 ..< 100: + let x = @[rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0] + let d = e.infer(x)[0] - target(x[0], x[1]) + se += d * d + let mse = se / 100.0 + # Threshold 1e-3, chosen from the measured value (~3e-4): ~3x headroom, tight + # enough that a broken hidden layer or an un-penalised-shared bias fails. + echo " measured held-out MSE = ", formatFloat(mse, ffScientific, 3) + check("held-out MSE < 1e-3", mse < 1e-3, formatFloat(mse, ffScientific, 3)) + +# ── 3. Large constant offset survives a large ridge ───────────────────────── +block test3: + echo "test 3: bias column is not penalised" + var e = initElm(ElmConfig(inputDim: 1, hiddenDim: 32, outputs: 1, + seed: 5, lambda: 1e4, decay: 1.0, refitEvery: 1)) + var rng = initRand(1) + for i in 0 ..< 64: + let x = @[rand(rng, 2.0) - 1.0] + e.train(x, @[5.0 + 0.1 * x[0]]) + let p = e.infer(@[0.25])[0] + # lambda = 1e4 kills the slope term (that is what the penalty is FOR), but the + # 5.0 offset must survive it untouched, because the bias column carries a zero + # penalty diagonal. A penalised bias would give ~0 here (5.0 is pushed to 0 by + # the same factor as the weights). + echo " measured f(0.25) = ", formatFloat(p, ffDecimal, 6), " (offset ~5.0 + shrunk slope)" + check("offset survives lambda=1e4", abs(p - 5.0) < 0.05, formatFloat(p, ffDecimal, 6)) + check("offset not shrunk toward 0", abs(p) > 4.5) + +# ── 4. Decay forgets; decay=1.0 keeps the old fit ─────────────────────────── +block test4: + echo "test 4: forgetting via sample-weight decay" + proc fit(decay: float64): tuple[f0: float64, rmse: float64] = + var e = initElm(ElmConfig(inputDim: 1, hiddenDim: 32, outputs: 1, + seed: 9, lambda: 1e-6, decay: decay, refitEvery: 1)) + var rng = initRand(100) + for i in 0 ..< 50: + let x = @[rand(rng, 2.0) - 1.0] + e.train(x, @[1.0]) + for i in 0 ..< 5: + let x = @[rand(rng, 2.0) - 1.0] + e.train(x, @[-3.0]) + (e.infer(@[0.0])[0], diagnostics(e).trainRmse) + let fast = fit(0.5) + let fk = fit(1.0) + let forget = fast.f0 + let keep = fk.f0 + echo " forgetting f(0) = ", formatFloat(forget, ffDecimal, 4), + ", no-decay f(0) = ", formatFloat(keep, ffDecimal, 4), + " (trainRmse ", formatFloat(fk.rmse, ffScientific, 2), ")" + # Sanity on the fit itself: the best constant over the (weighted) samples is + # an exact solution for two-valued targets, so trainRmse must equal the RMSE + # of the weighted mean. The tanh features can do better than a constant (they + # vary with x), so this is a floor, not an equality. + proc bestConst(ws, ts: seq[float64]): tuple[mean: float64, rmse: float64] = + var sw = 0.0; var sst = 0.0 + for i in 0 ..< ws.len: sw += ws[i] * ts[i] + let m = sw / float64(ws.len) + var acc = 0.0 + for i in 0 ..< ws.len: acc += ws[i] * (m - ts[i]) * (m - ts[i]) + (m, sqrt(acc / float64(ws.len))) + var wA = newSeq[float64](55) + var tAB = newSeq[float64](55) + for i in 0 ..< 50: + wA[i] = 1.0 + tAB[i] = 1.0 + for i in 50 ..< 55: + wA[i] = 1.0 + tAB[i] = -3.0 + let bcKeep = bestConst(wA, tAB) + var wF = newSeq[float64](55) + for i in 0 ..< 50: wF[i] = pow(0.5, 5.0) + for i in 50 ..< 55: wF[i] = 1.0 + let bcForget = bestConst(wF, tAB) + check("no-decay fit beats a constant", fk.rmse <= bcKeep.rmse + 1e-6, + formatFloat(fk.rmse, ffDecimal, 4) & " vs " & formatFloat(bcKeep.rmse, ffDecimal, 4)) + check("forgetting fit beats a constant", fast.rmse <= bcForget.rmse + 1e-6, + formatFloat(fast.rmse, ffDecimal, 4) & " vs " & formatFloat(bcForget.rmse, ffDecimal, 4)) + # The real forgetting evidence: A now contributes ~1/32 of the total weight, so + # the fit is essentially B's, and its weighted residual collapses. + check("old data stops dominating the loss", fast.rmse < 0.7 * fk.rmse, + formatFloat(fast.rmse, ffDecimal, 4) & " vs " & formatFloat(fk.rmse, ffDecimal, 4)) + check("decay=0.5 follows pattern B", abs(forget + 3.0) < 0.25, + formatFloat(forget, ffDecimal, 4)) + # No decay: all 50 A samples keep weight 1, the 5 B samples too, so the + # least-squares constant over the SAMPLES is the weighted mean + # (50*1 + 5*(-3)) / 55 = 0.636 -- old data still dominates. f(0) is an + # interpolation between samples (ridge 1e-6 leaves a flat direction), so it is + # asserted to sit near the combined mean rather than anywhere near B's -3. + check("decay=1.0 keeps A in the mix", abs(keep - 0.636) < abs(keep + 3.0) + 0.6, + formatFloat(keep, ffDecimal, 4)) + check("decay=1.0 is nowhere near B", abs(keep + 3.0) > 1.5) + check("the two differ", abs(forget - keep) > 1.0) + +# ── 5. Same seed => same model ────────────────────────────────────────────── +block test5: + echo "test 5: seed determinism" + var a = initElm(ElmConfig(inputDim: 3, hiddenDim: 16, outputs: 2, + seed: 1234, lambda: 1e-3, decay: 1.0, refitEvery: 1)) + var b = a + var rng = initRand(5) + for i in 0 ..< 30: + let x = @[rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0] + a.train(x, @[x[0] * x[1], x[2]]) + for i in 0 ..< 30: + let x = @[rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0] + b.train(x, @[x[0] * x[1], x[2]]) + var same = true + for i in 0 ..< 2: + same = same and a.infer(@[0.1 * float64(i), 0.2, -0.3]) == + b.infer(@[0.1 * float64(i), 0.2, -0.3]) + check("identical outputs", same) + +# ── 6. Dimension mismatch raises ValueError ───────────────────────────────── +block test6: + echo "test 6: dimension validation" + var e = initElm(ElmConfig(inputDim: 3, hiddenDim: 8, outputs: 1)) + var raised = "" + try: discard e.infer(@[1.0, 2.0]) + except ValueError as ex: raised = ex.msg + check("infer raises ValueError", raised.len > 0, raised) + raised = "" + try: e.train(@[1.0, 2.0, 3.0], @[1.0, 2.0]) + except ValueError as ex: raised = ex.msg + check("train raises ValueError on target mismatch", raised.len > 0, raised) + +# ── 7. Activation: Thm 2.2 interpolation holds for every activation ───────── +block test7: + echo "test 7: interpolation for tanh / relu / step" + for kind in [atanTanh, atanRelu, atanStep]: + var rng = initRand(42) + let d = 5 + let N = 20 + var e = initElm(ElmConfig(inputDim: d, hiddenDim: N, outputs: 2, seed: 7, + lambda: 0.0, decay: 1.0, refitEvery: 1, + activation: kind)) + for i in 0 ..< N: + var x = newSeq[float64](d) + var t = newSeq[float64](2) + for k in 0 ..< d: x[k] = rand(rng, 2.0) - 1.0 + t[0] = target(x[0], x[1]); t[1] = 0.3 * x[2] + e.train(x, t) + let rmse = diagnostics(e).trainRmse + echo " ", activationName(kind), ": trainRmse = ", formatFloat(rmse, ffScientific, 3) + check(activationName(kind) & " interpolates 20 samples in 20 nodes", + rmse < 1e-8, formatFloat(rmse, ffScientific, 3)) + +# ── 8. Activation: same targets fit comparably well (held-out) ───────────── +block test8: + echo "test 8: generalisation across activations, 200 train / 100 held-out" + var errs: seq[tuple[n: string, mse: float64]] = @[] + for kind in [atanTanh, atanRelu, atanStep]: + var rng = initRand(11) + var e = initElm(ElmConfig(inputDim: 2, hiddenDim: 64, outputs: 1, seed: 3, + lambda: 1e-8, decay: 1.0, refitEvery: 1, + activation: kind)) + for i in 0 ..< 200: + let x = @[rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0] + e.train(x, @[target(x[0], x[1])]) + var se = 0.0 + for i in 0 ..< 100: + let x = @[rand(rng, 2.0) - 1.0, rand(rng, 2.0) - 1.0] + let dd = e.infer(x)[0] - target(x[0], x[1]) + se += dd * dd + let mse = se / 100.0 + errs.add (activationName(kind), mse) + echo " ", activationName(kind), ": held-out MSE = ", formatFloat(mse, ffScientific, 3) + # Per-activation absolute bar, NOT "as good as tanh": the measured values are + # tanh 1.07e-06, relu 3.5e-02, step 8.4e-02, against a target sd of ~1.0, so + # a bar of 1e-1 demands every activation beat "predict the training mean" by + # 10x and would fail a broken hidden layer (~1.0), while NOT asserting the + # null result this experiment is measuring. The 2-4 orders of magnitude gap + # between tanh and the one-sided activations at lambda=1e-8 is a real finding, + # reported rather than hidden by a tuned threshold: relu/step features are + # unbounded/ill-conditioned, so the output weights they need are large and the + # shipped near-zero ridge does not control them. Re-tuning lambda is exactly + # what the benchmark sweep does. + for er in errs: + check(er.n & " generalises (held-out MSE < 0.1, i.e. 10x better than a constant)", + er.mse < 1e-1, formatFloat(er.mse, ffScientific, 3)) + +# ── 9. applyActivation is pure and matches its definition ────────────────── +block test9: + echo "test 9: applyActivation" + check("tanh", applyActivation(atanTanh, 0.5) == tanh(0.5) and + applyActivation(atanTanh, -0.5) == tanh(-0.5)) + check("relu", applyActivation(atanRelu, 0.5) == 0.5 and + applyActivation(atanRelu, -0.5) == 0.0) + check("step", applyActivation(atanStep, 0.5) == 1.0 and + applyActivation(atanStep, -0.5) == 0.0 and + applyActivation(atanStep, 0.0) == 0.0) + check("parse round-trips", parseActivation("ReLU") == atanRelu and + parseActivation("tanh") == atanTanh and + parseActivation("STEP") == atanStep) + var raised = false + try: discard parseActivation("swish") + except ValueError: raised = true + check("parse rejects unknown", raised) + check("default is tanh", ElmConfig(inputDim: 1, hiddenDim: 1, outputs: 1).activation == atanTanh) + +echo "" +if failed == 0: + echo "all tests passed" +else: + echo failed, " test(s) FAILED" + quit(1) diff --git a/ChimeraBot_garage/tests/test_online.nim b/ChimeraBot_garage/tests/test_online.nim new file mode 100644 index 0000000..79d0361 --- /dev/null +++ b/ChimeraBot_garage/tests/test_online.nim @@ -0,0 +1,94 @@ +## Unit tests for the ONLINE-learning gun (elm_gun.nim): the delayed-label +## queue, the novelty gate, and the per-opponent reset. +## Run: nim c -r tests/test_online.nim (from ChimeraBot_garage/) + +import std/math +import modules/ELM/elm_gun +import modules/ELM/elm_features +import modules/ELM/elm # for Elm.infer in the assertions + +var failed = 0 +proc check(name: string, cond: bool, detail: string = "") = + if cond: echo " ok ", name + else: echo " FAIL ", name, " [", detail, "]"; inc failed + +# ── 1. neutral start: no prior, gate closed ───────────────────────────────── +block: + echo "test 1: neutral start" + let g = initElmGun(priorScale = 0.0) + check("weights loaded", g.loaded) + check("prior stored", g.priorBeta.len > 0) + check("nOnline == 0", g.nOnline == 0) + check("gate closed at start", not g.gateOpen) + +# ── 2. online learning opens the gate once it beats zero ──────────────────── +block: + echo "test 2: online learning closes then opens the novelty gate" + let g = initElmGun(priorScale = 0.0) + let feat = newSeq[float64](FeatureDim) # constant feature vector + for i in 0 ..< 60: + g.feedSample(feat, 0.3) # constant true correction + check("accumulated samples", g.nOnline == 60) + check("model beats zero (modelErr < zeroErr)", g.modelErr < g.zeroErr, + $g.modelErr & " vs " & $g.zeroErr) + check("gate OPEN after learning", g.gateOpen) + let corr = g.model.infer(feat)[0] + check("correction near label", abs(corr - 0.3) < 0.1, $corr) + +# ── 3. a model that cannot beat zero keeps the gate shut ──────────────────── +block: + echo "test 3: no-signal data keeps the gate closed" + let g = initElmGun(priorScale = 0.0) + let feat = newSeq[float64](FeatureDim) + for i in 0 ..< 40: + g.feedSample(feat, 0.0) # label is exactly zero + check("gate stays closed on zero labels", not g.gateOpen) + +# ── 4. delayed-label queue: keyed by dueTick, needs the trace ─────────────── +block: + echo "test 4: pending queue resolves at dueTick" + let g = initElmGun(priorScale = 0.0) + let feat: array[FeatureDim, float64] = default(array[FeatureDim, float64]) + let due = 50 + g.noteEnemyAt(due, 100.0, 0.0) # target straight ahead of (0,0) + g.recordShot(feat, 0.0, 0.0, 0.0, due) # base bearing 0, due at tick 50 + g.drainPending(due - 1) + check("nothing resolved before dueTick", g.nOnline == 0 and g.pending.len == 1) + g.drainPending(due) + check("resolved at dueTick", g.nOnline == 1 and g.pending.len == 0) + +# ── 5. reset returns to the neutral start ─────────────────────────────────── +block: + echo "test 5: resetOnline clears per-opponent state" + let g = initElmGun(priorScale = 0.0) + let feat = newSeq[float64](FeatureDim) + for i in 0 ..< 60: g.feedSample(feat, 0.3) + g.noteEnemyAt(1, 1.0, 1.0) + g.recordShot(default(array[FeatureDim, float64]), 0.0, 0.0, 0.0, 5) + g.resetOnline() + check("nOnline cleared", g.nOnline == 0) + check("gate closed after reset", not g.gateOpen) + check("pending cleared", g.pending.len == 0) + check("trace cleared", g.traceTick.len == 0) + +# ── 6. deg/rad fire boundary (regression: the FireSlopDeg mix-up) ─────────── +block: + echo "test 6: gun-aim error is DEGREES at the fire boundary" + # aim 0 rad = east; gun at +1 deg -> short-way error -1 deg, NOT -0.0175. + check("1 deg off gives a -1 deg error", + abs(gunAimErrorDeg(0.0, 1.0) + 1.0) < 1e-9, $gunAimErrorDeg(0.0, 1.0)) + # short way round: gun 350 deg from an east(0) aim is +10 deg to reach it. + check("350 deg wraps to +10 deg", + abs(gunAimErrorDeg(0.0, 350.0) - 10.0) < 1e-6, $gunAimErrorDeg(0.0, 350.0)) + # THE historical bug: a degree error compared against degToRad(FireSlopDeg) + # (radians) admitted only 0.052 deg. At exactly FireSlopDeg degrees off, the + # degrees-vs-degrees predicate admits the shot; the radian mix-up rejects it. + const slop = 1.0'f64 + let err = gunAimErrorDeg(0.0, slop) # exactly `slop` degrees off + check("|err| <= FireSlopDeg admits the boundary", abs(err) <= slop, $err) + check("the radian mix-up would REJECT it", abs(err) > degToRad(slop), $err) + +if failed > 0: + echo "\n", failed, " check(s) FAILED" + quit(1) +echo "\nall online checks passed"