Full Code of ppeccin/javatari.js for AI

master f954960ddfbd cached
114 files
4.4 MB
1.2M tokens
1465 symbols
1 requests
Download .txt
Showing preview only (4,679K chars total). Download the full file or copy to clipboard to get everything.
Repository: ppeccin/javatari.js
Branch: master
Commit: f954960ddfbd
Files: 114
Total size: 4.4 MB

Directory structure:
gitextract_3gk_afnw/

├── .gitignore
├── README.md
├── doc/
│   └── README.md
├── gruntfile.js
├── license.txt
├── package.json
├── release/
│   └── stable/
│       ├── 4.0/
│       │   ├── embedded/
│       │   │   ├── index.html
│       │   │   └── javatari.js
│       │   └── standalone/
│       │       ├── cache.manifest
│       │       ├── index.html
│       │       └── manifest.webapp
│       ├── 5.0/
│       │   ├── embedded/
│       │   │   ├── index.html
│       │   │   └── javatari.js
│       │   └── standalone/
│       │       ├── cache.manifest
│       │       ├── index.html
│       │       └── manifest.webapp
│       └── old/
│           ├── index.html
│           └── javatari/
│               └── javatari.js
├── src/
│   ├── main/
│   │   ├── Configurator.js
│   │   ├── Javatari.js
│   │   ├── Launcher.js
│   │   ├── atari/
│   │   │   ├── audio/
│   │   │   │   └── AudioSignal.js
│   │   │   ├── cartridge/
│   │   │   │   ├── Cartridge.js
│   │   │   │   ├── CartridgeCreator.js
│   │   │   │   ├── CartridgeDatabase.js
│   │   │   │   ├── CartridgeDatabaseUncompressed.js
│   │   │   │   ├── CartridgeFormats.js
│   │   │   │   ├── ROM.js
│   │   │   │   └── formats/
│   │   │   │       ├── Cartridge10K_DPCa.js
│   │   │   │       ├── Cartridge16K_E7.js
│   │   │   │       ├── Cartridge24K_28K_32K_FA2.js
│   │   │   │       ├── Cartridge2K_CV.js
│   │   │   │       ├── Cartridge4K.js
│   │   │   │       ├── Cartridge64K_F0.js
│   │   │   │       ├── Cartridge64K_X07.js
│   │   │   │       ├── Cartridge8K_0840.js
│   │   │   │       ├── Cartridge8K_256K_SB.js
│   │   │   │       ├── Cartridge8K_512K_3E.js
│   │   │   │       ├── Cartridge8K_512K_3F.js
│   │   │   │       ├── Cartridge8K_64K_AR.js
│   │   │   │       ├── Cartridge8K_E0.js
│   │   │   │       ├── Cartridge8K_FE.js
│   │   │   │       ├── Cartridge8K_UA.js
│   │   │   │       ├── CartridgeBankedByBusMonitoring.js
│   │   │   │       └── CartridgeBankedByMaskedRange.js
│   │   │   ├── console/
│   │   │   │   ├── AtariConsole.js
│   │   │   │   └── Bus.js
│   │   │   ├── controls/
│   │   │   │   ├── ConsoleControls.js
│   │   │   │   └── JoystickButtons.js
│   │   │   ├── cpu/
│   │   │   │   ├── M6502.js
│   │   │   │   └── Ram64K.js
│   │   │   ├── pia/
│   │   │   │   ├── Pia.js
│   │   │   │   └── Ram.js
│   │   │   ├── tia/
│   │   │   │   ├── Tia.js
│   │   │   │   ├── TiaAudio.js
│   │   │   │   ├── TiaAudioChannel.js
│   │   │   │   └── TiaPalettes.js
│   │   │   └── video/
│   │   │       ├── VideoSignal.js
│   │   │       └── VideoStandard.js
│   │   ├── images/
│   │   │   ├── Images.js
│   │   │   └── originals/
│   │   │       ├── Controllers.xcf
│   │   │       ├── IconSprites.xcf
│   │   │       ├── LogoIcon.xcf
│   │   │       ├── LogoJS.xcf
│   │   │       ├── LogoSiteBar.xcf
│   │   │       └── Panel.xcf
│   │   ├── room/
│   │   │   ├── Room.js
│   │   │   ├── clock/
│   │   │   │   └── Clock.js
│   │   │   ├── controls/
│   │   │   │   ├── DOMConsoleControls.js
│   │   │   │   ├── DOMKeys.js
│   │   │   │   ├── DOMPeripheralControls.js
│   │   │   │   ├── DOMTouchControls.js
│   │   │   │   ├── GamepadButtons.js
│   │   │   │   ├── GamepadConsoleControls.js
│   │   │   │   ├── PeripheralControls.js
│   │   │   │   └── TouchControls.js
│   │   │   ├── files/
│   │   │   │   ├── FileDownloader.js
│   │   │   │   ├── FileLoader.js
│   │   │   │   └── RecentStoredROMs.js
│   │   │   ├── netplay/
│   │   │   │   ├── NetClient.js
│   │   │   │   └── NetServer.js
│   │   │   ├── savestate/
│   │   │   │   └── LocalStorageSaveStateMedia.js
│   │   │   ├── screen/
│   │   │   │   ├── CanvasDisplay.js
│   │   │   │   ├── ConsolePanel.js
│   │   │   │   ├── FullScreenSetup.js
│   │   │   │   ├── Monitor.js
│   │   │   │   ├── ScreenGUI.es5.js
│   │   │   │   ├── dialogs/
│   │   │   │   │   ├── CartridgeFormatDialog.js
│   │   │   │   │   ├── NetPlayDialog.js
│   │   │   │   │   ├── QuickOptionsDialog.js
│   │   │   │   │   ├── RecentROMsDialog.js
│   │   │   │   │   └── SaveStateDialog.js
│   │   │   │   ├── es6/
│   │   │   │   │   ├── ScreenGUI.js
│   │   │   │   │   └── SettingsGUI.js
│   │   │   │   └── settings/
│   │   │   │       ├── Settings.js
│   │   │   │       └── SettingsGUI.es5.js
│   │   │   └── speaker/
│   │   │       └── WebAudioSpeaker.js
│   │   ├── userprefs/
│   │   │   ├── UserPreferences.js
│   │   │   └── UserROMFormats.js
│   │   └── util/
│   │       ├── EmbeddedFiles.js
│   │       ├── MD5.js
│   │       ├── MultiDownloader.js
│   │       ├── MultiFileReader.js
│   │       ├── Util.js
│   │       └── ZIP.js
│   └── runtime/
│       ├── embedded/
│       │   └── index.html
│       ├── images/
│       │   └── EmbeddedImages.js
│       └── standalone/
│           ├── cache.manifest
│           ├── index.base.html
│           ├── index.part1.html
│           ├── index.part2.html
│           └── manifest.webapp
└── test/
    ├── index.html
    └── manifest.webapp

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
.idea/
node_modules/
temp/



================================================
FILE: README.md
================================================
# Javatari

**Javatari** is a new cross platform Atari 2600 emulator designed for the Web.

It's great for displaying games running inside webpages. You can launch the emulator and load ROMs with a single link.
And now you can play Atari 2600 games with touch controls on your Android/iOS device, even when offline!
Join friends in multiplayer games with the new NetPlay! function.

Please go to **https://javatari.org** to enjoy it online!

Refer to [**/doc**](https://github.com/ppeccin/javatari.js/tree/master/doc) for parameters reference and URL usage examples.
Refer to [**/release**](https://github.com/ppeccin/javatari.js/tree/master/release) for stable release files and deployment examples.

Atari, VCS and the Atari logo are shown here as a tribute.
All trademarks are property of their respective owners.

#### New in Version 5.0

- NetPlay! Connect several users on the same Virtual Atari Console over the internet
- Enjoy multiplayer gaming sessions with your friends online
- P2P connection with automatic network discovery, no worries with IPs and ports
- User interface for selecting Cartridge Mapper type
- Several improvements and fixes

### Features

- Cross platform HTML5/JS. Runs in any Browser, tested in Chrome/Firefox/Safari
- Support for mobile iOS and Android devices
- Finally enjoy Atari 2600 games on your iPhone/iPad
- Customizable Touch Controls for mobile devices with Haptic feedback
- Real Atari 2600 Console panel for a nostalgic feel!
- Install as a WebApp on iOS/Android/Desktop, then run offline!
- Put Atari 2600 games in webpages easily
- Show games running with a single link to the Javatari page
- Drag & Drop system for loading files
- Open files from local storage, iCloud, Google Drive, Dropbox, web links
- Savestates support. Export and share Savestate files
- Fully customizable Joysticks, Joykeys and Touch controllers
- Adjustable speed, Pause and Frame-by-frame advance
- Screen Capture and Debug modes
- Resizable Screen, Full Screen mode
- Javascript API for loading ROMs and Console control

## About the NetPlay! feature

Javatari 5.0 brings NetPlay!, in which any number of users may connect and control the same virtual Atari Console.
To access the feature, open the NetPlay! control dialog available on the System Menu (Power button).

One user must be the "Server" and start a NetPlay! Session. Just choose a name for the Session, or let the emulator generate it randomly, then hit "HOST".
Once the Session is started and active, other users may join the Session simply by entering the same Session name and hitting "JOIN".
All users connected have complete control over the machine, except that only the Server user may load/change media files (ROMs). All features of the emulator work during NetPlay!
Any Client user may leave the Session at any time, but only the Server user may end the Session completely.

Be careful not to make your Session name public! Anyone that knows your Session name will be able to join it while its active. Send the session name only to people you want to invite.
Another way of sharing your Session to users is sending them a link that will open the emulator and join the session automatically.
In the NetPlay! dialog, once you are Hosting a Session, there will be a link button on the upper right, that will generate the link and copy it to your clipboard.

**IMPORTANT:** NetPlay! performance is completely dependent on the network quality. The lower the network latency between users, the better. Higher bandwidths with higher latencies won't help much.
It uses a specialized P2P protocol, and tries to use STUN to traverse NATs/routers so users don't have to worry about IPs and opening ports. Use at your own risk! :-)

To make all this work seamlessly, Javatari uses modern Web technologies including WebRTC, which are supported by all major browsers and platforms.
Unfortunately, those technologies are still not available on Apple iOS, so NetPlay! will not work on iOS devices. Sorry but there is not much we can do about it, until Apple feels it should allow its customers to access those technologies.

## Javatari Configuration and Launch Options

Several parameters are available for customizing the emulator. They can be changed either directly in Javascript if you are hosting the emulator in your own page, or via URL Query Parameters if you are creating links or bookmarks to open the emulator, or just using it in your browser.

All parameters are in the form of properties in the global object `Javatari`. Just set these object properties in Javascript, or use URL Query parameter/value pairs. For example:

```
Javatari.CARTRIDGE_URL = "files/Game.rom";      is the same as      https://javatari.org?ROM=files/Game.rom
```

**IMPORTANT:** Any parameter setting via Javascript must be done AFTER importing the `javatari.js` file.

## Media Loading

The emulator can be set to automatically load files like ROMs images and Savestate files. Files may be compressed in ZIP or GZIP formats. Available parameters:

| Parameter | Function | Shortcut for URL form
| --- | --- | ---
| `CARTRIDGE_URL`    | URL of ROM image file to load                  | `ROM`, `CART`
| `CARTRIDGE_FORMAT` | Force a specific ROM Format                    | `FORMAT`
| `STATE_URL`        | URL of SaveState file to load                  | `STATE`, `SAVESTATE`
| `AUTODETECT_URL`   | URL of file to load with media auto-detection  | `AUTODETECT`, `AUTO`, `ANY`

### ROM Format (or Mapper Type)
The ROM Format is auto-detected. To force a format, use the `CARTRIDGE_FORMAT` parameter.
You can also put the format specification in the ROM file name, between brackets. Example: `Robotank [FE].rom`

#### Valid Formats
`4K`, `CV`, `E0`, `F0`, `FE`, `E7`, `F4`, `F6`, `F8`, `FA`, `FA2`, `FA2cu`, `EF`, `DPC`, `3F`, `3E`, `X07`, `0840`, `UA`, `SB`, `AR`

## Launch URL Examples

Javatari is great for displaying Atari 2600 games in the web. With a simple URL, you can launch the emulator and automatically load and run anything. You may combine several settings and media loading options in a single link. Here are some examples:

- To load a game in ROM format:
```
https://javatari.org?ROM=https://gamesarchive.org/Pitfall.rom
```
- To load a game in a ZIPped ROM Image and force the ROM Format to `FA2`
```
https://javatari.org?ROM=https://gamesarchive.org/StarCastle.zip&FORMAT=FA2
```

## Parameters Reference

| Parameter | Default | Description
| --- | :---: | ---
| `CARTRIDGE_URL`                 |  --                 |  URL of ROM image file to load 
| `CARTRIDGE_FORMAT`              |  --                 |  ROM Format to use. Leave unset for autodetection 
| `STATE_URL`                     |  --                 |  URL of SaveState file to load
| `AUTODETECT_URL`                |  --                 |  URL of file to load with media auto-detection
| `SCREEN_ELEMENT_ID`             |  "javatari-screen"  |  HTML Element ID to place the Emulator Screen
| `SCREEN_CONSOLE_PANEL_DISABLED` |  false              |  Hide the Console Panel controls
| `CARTRIDGE_SHOW_RECENT`         |  true               |  Show a list of recent loaded ROMs at startup
| `CARTRIDGE_LABEL_COLORS`        |  ""                 |  Space-separated colors for customised Label, Background, Border. e.g. "#f00 #000 transparent". Leave "" for defaults
| `ALLOW_URL_PARAMETERS`          |  true               |  Allows overriding any parameters via URL query parameters
| `AUTO_START`                    |  true               |  Auto-Start the emulator as soon as ready
| `AUTO_POWER_ON_DELAY`           |  1200               |  Auto-Power-ON after specified msecs. -1: no Auto-Power-ON
| `CARTRIDGE_CHANGE_DISABLED`     |  false              |  Block user from changing Cartridges
| `SCREEN_RESIZE_DISABLED`        |  false              |  Block user from changing Screen size
| `SCREEN_FULLSCREEN_MODE`        |  -1                 |  FullScreen mode. -2: disabled; -1: auto; 0: off; 1: on
| `SCREEN_FILTER_MODE`            |  -3                 |  Screen CRT Filter level. -3: user set (default auto); -2: browser default; -1: auto; 0..3: smoothing level
| `SCREEN_CRT_MODE`               |  0                  |  Screen CRT Phosphor Effect. -1: auto; 0: off; 1: on
| `SCREEN_DEFAULT_SCALE`          |  -1                 |  Screen size. -1: auto; 0.5..N in 0.1 steps
| `SCREEN_DEFAULT_ASPECT`         |  1                  |  Screen aspect ratio (width) in 0.1 steps
| `SCREEN_CANVAS_SIZE`            |  2                  |  Internal canvas size factor. Don't change! :-)
| `SCREEN_CONTROL_BAR`            |  1                  |  Screen Bottom Bar controls. 0: on hover; 1: always
| `SCREEN_FORCE_HOST_NATIVE_FPS`  |  -1                 |  Force host native video frequency. -1: auto-detect. Don't change! :-)
| `SCREEN_VSYNCH_MODE`            |  -2                 |  V-Synch mode. -2: user set (default on); -1: disabled; 0: off; 1: on
| `AUDIO_MONITOR_BUFFER_BASE`     |  -3                 |  Audio buffer base size. -3: user set (default auto); -2: disable audio; -1: auto; 0: browser default; 1..6: base value. More buffer = more delay
| `AUDIO_MONITOR_BUFFER_SIZE`     |  -1                 |  Audio buffer size. -1: auto; 256, 512, 1024, 2048, 4096, 8192, 16384: buffer size. More buffer = more delay. Don't change! :-)
| `AUDIO_SIGNAL_BUFFER_RATIO`     |  2                  |  Internal Audio Signal buffer based on Monitor buffer
| `AUDIO_SIGNAL_ADD_FRAMES`       |  3                  |  Additional frames in internal Audio Signal buffer based on Monitor buffer
| `PADDLES_MODE`                  |  -1                 |  Paddle controls. -1: auto; 0: off; 1: on
| `TOUCH_MODE`                    |  -1                 |  Touch controls. -1: auto; 0: disabled; 1: enabled; 2: enabled (swapped)
| `RESET`                         |  0                  |  If value = 1 clear all saved data on the client
| `PAGE_BACK_CSS`                 |  --                 |  CSS to modify page background color. Applied to the body element



================================================
FILE: doc/README.md
================================================
# Javatari

**Javatari** is a new cross platform Atari 2600 emulator designed for the Web.

It's great for displaying games running inside webpages. You can launch the emulator and load ROMs with a single link.
And now you can play Atari 2600 games with touch controls on your Android/iOS device, even when offline!
Join friends in multiplayer games with the new NetPlay! function.

Please go to **https://javatari.org** to enjoy it online!

Refer to [**/doc**](https://github.com/ppeccin/javatari.js/tree/master/doc) for parameters reference and URL usage examples.
Refer to [**/release**](https://github.com/ppeccin/javatari.js/tree/master/release) for stable release files and deployment examples.

Atari, VCS and the Atari logo are shown here as a tribute.
All trademarks are property of their respective owners.

#### New in Version 5.0

- NetPlay! Connect several users on the same Virtual Atari Console over the internet
- Enjoy multiplayer gaming sessions with your friends online
- P2P connection with automatic network discovery, no worries with IPs and ports
- User interface for selecting Cartridge Mapper type
- Several improvements and fixes

### Features

- Cross platform HTML5/JS. Runs in any Browser, tested in Chrome/Firefox/Safari
- Support for mobile iOS and Android devices
- Finally enjoy Atari 2600 games on your iPhone/iPad
- Customizable Touch Controls for mobile devices with Haptic feedback
- Real Atari 2600 Console panel for a nostalgic feel!
- Install as a WebApp on iOS/Android/Desktop, then run offline!
- Put Atari 2600 games in webpages easily
- Show games running with a single link to the Javatari page
- Drag & Drop system for loading files
- Open files from local storage, iCloud, Google Drive, Dropbox, web links
- Savestates support. Export and share Savestate files
- Fully customizable Joysticks, Joykeys and Touch controllers
- Adjustable speed, Pause and Frame-by-frame advance
- Screen Capture and Debug modes
- Resizable Screen, Full Screen mode
- Javascript API for loading ROMs and Console control

## About the NetPlay! feature

Javatari 5.0 brings NetPlay!, in which any number of users may connect and control the same virtual Atari Console.
To access the feature, open the NetPlay! control dialog available on the System Menu (Power button).

One user must be the "Server" and start a NetPlay! Session. Just choose a name for the Session, or let the emulator generate it randomly, then hit "HOST".
Once the Session is started and active, other users may join the Session simply by entering the same Session name and hitting "JOIN".
All users connected have complete control over the machine, except that only the Server user may load/change media files (ROMs). All features of the emulator work during NetPlay!
Any Client user may leave the Session at any time, but only the Server user may end the Session completely.

Be careful not to make your Session name public! Anyone that knows your Session name will be able to join it while its active. Send the session name only to people you want to invite.
Another way of sharing your Session to users is sending them a link that will open the emulator and join the session automatically.
In the NetPlay! dialog, once you are Hosting a Session, there will be a link button on the upper right, that will generate the link and copy it to your clipboard.

**IMPORTANT:** NetPlay! performance is completely dependent on the network quality. The lower the network latency between users, the better. Higher bandwidths with higher latencies won't help much.
It uses a specialized P2P protocol, and tries to use STUN to traverse NATs/routers so users don't have to worry about IPs and opening ports. Use at your own risk! :-)

To make all this work seamlessly, Javatari uses modern Web technologies including WebRTC, which are supported by all major browsers and platforms.
Unfortunately, those technologies are still not available on Apple iOS, so NetPlay! will not work on iOS devices. Sorry but there is not much we can do about it, until Apple feels it should allow its customers to access those technologies.

## Javatari Configuration and Launch Options

Several parameters are available for customizing the emulator. They can be changed either directly in Javascript if you are hosting the emulator in your own page, or via URL Query Parameters if you are creating links or bookmarks to open the emulator, or just using it in your browser.

All parameters are in the form of properties in the global object `Javatari`. Just set these object properties in Javascript, or use URL Query parameter/value pairs. For example:

```
Javatari.CARTRIDGE_URL = "files/Game.rom";      is the same as      https://javatari.org?ROM=files/Game.rom
```

**IMPORTANT:** Any parameter setting via Javascript must be done AFTER importing the `javatari.js` file.

## Media Loading

The emulator can be set to automatically load files like ROMs images and Savestate files. Files may be compressed in ZIP or GZIP formats. Available parameters:

| Parameter | Function | Shortcut for URL form
| --- | --- | ---
| `CARTRIDGE_URL`    | URL of ROM image file to load                  | `ROM`, `CART`
| `CARTRIDGE_FORMAT` | Force a specific ROM Format                    | `FORMAT`
| `STATE_URL`        | URL of SaveState file to load                  | `STATE`, `SAVESTATE`
| `AUTODETECT_URL`   | URL of file to load with media auto-detection  | `AUTODETECT`, `AUTO`, `ANY`

### ROM Format (or Mapper Type)
The ROM Format is auto-detected. To force a format, use the `CARTRIDGE_FORMAT` parameter.
You can also put the format specification in the ROM file name, between brackets. Example: `Robotank [FE].rom`

#### Valid Formats
`4K`, `CV`, `E0`, `F0`, `FE`, `E7`, `F4`, `F6`, `F8`, `FA`, `FA2`, `FA2cu`, `EF`, `DPC`, `3F`, `3E`, `X07`, `0840`, `UA`, `SB`, `AR`

## Launch URL Examples

Javatari is great for displaying Atari 2600 games in the web. With a simple URL, you can launch the emulator and automatically load and run anything. You may combine several settings and media loading options in a single link. Here are some examples:

- To load a game in ROM format:
```
https://javatari.org?ROM=https://gamesarchive.org/Pitfall.rom
```
- To load a game in a ZIPped ROM Image and force the ROM Format to `FA2`
```
https://javatari.org?ROM=https://gamesarchive.org/StarCastle.zip&FORMAT=FA2
```

## Parameters Reference

| Parameter | Default | Description
| --- | :---: | ---
| `CARTRIDGE_URL`                 |  --                 |  URL of ROM image file to load 
| `CARTRIDGE_FORMAT`              |  --                 |  ROM Format to use. Leave unset for autodetection 
| `STATE_URL`                     |  --                 |  URL of SaveState file to load
| `AUTODETECT_URL`                |  --                 |  URL of file to load with media auto-detection
| `SCREEN_ELEMENT_ID`             |  "javatari-screen"  |  HTML Element ID to place the Emulator Screen
| `SCREEN_CONSOLE_PANEL_DISABLED` |  false              |  Hide the Console Panel controls
| `CARTRIDGE_SHOW_RECENT`         |  true               |  Show a list of recent loaded ROMs at startup
| `CARTRIDGE_LABEL_COLORS`        |  ""                 |  Space-separated colors for customised Label, Background, Border. e.g. "#f00 #000 transparent". Leave "" for defaults
| `ALLOW_URL_PARAMETERS`          |  true               |  Allows overriding any parameters via URL query parameters
| `AUTO_START`                    |  true               |  Auto-Start the emulator as soon as ready
| `AUTO_POWER_ON_DELAY`           |  1200               |  Auto-Power-ON after specified msecs. -1: no Auto-Power-ON
| `CARTRIDGE_CHANGE_DISABLED`     |  false              |  Block user from changing Cartridges
| `SCREEN_RESIZE_DISABLED`        |  false              |  Block user from changing Screen size
| `SCREEN_FULLSCREEN_MODE`        |  -1                 |  FullScreen mode. -2: disabled; -1: auto; 0: off; 1: on
| `SCREEN_FILTER_MODE`            |  -3                 |  Screen CRT Filter level. -3: user set (default auto); -2: browser default; -1: auto; 0..3: smoothing level
| `SCREEN_CRT_MODE`               |  0                  |  Screen CRT Phosphor Effect. -1: auto; 0: off; 1: on
| `SCREEN_DEFAULT_SCALE`          |  -1                 |  Screen size. -1: auto; 0.5..N in 0.1 steps
| `SCREEN_DEFAULT_ASPECT`         |  1                  |  Screen aspect ratio (width) in 0.1 steps
| `SCREEN_CANVAS_SIZE`            |  2                  |  Internal canvas size factor. Don't change! :-)
| `SCREEN_CONTROL_BAR`            |  1                  |  Screen Bottom Bar controls. 0: on hover; 1: always
| `SCREEN_FORCE_HOST_NATIVE_FPS`  |  -1                 |  Force host native video frequency. -1: auto-detect. Don't change! :-)
| `SCREEN_VSYNCH_MODE`            |  -2                 |  V-Synch mode. -2: user set (default on); -1: disabled; 0: off; 1: on
| `AUDIO_MONITOR_BUFFER_BASE`     |  -3                 |  Audio buffer base size. -3: user set (default auto); -2: disable audio; -1: auto; 0: browser default; 1..6: base value. More buffer = more delay
| `AUDIO_MONITOR_BUFFER_SIZE`     |  -1                 |  Audio buffer size. -1: auto; 256, 512, 1024, 2048, 4096, 8192, 16384: buffer size. More buffer = more delay. Don't change! :-)
| `AUDIO_SIGNAL_BUFFER_RATIO`     |  2                  |  Internal Audio Signal buffer based on Monitor buffer
| `AUDIO_SIGNAL_ADD_FRAMES`       |  3                  |  Additional frames in internal Audio Signal buffer based on Monitor buffer
| `PADDLES_MODE`                  |  -1                 |  Paddle controls. -1: auto; 0: off; 1: on
| `TOUCH_MODE`                    |  -1                 |  Touch controls. -1: auto; 0: disabled; 1: enabled; 2: enabled (swapped)
| `RESET`                         |  0                  |  If value = 1 clear all saved data on the client
| `PAGE_BACK_CSS`                 |  --                 |  CSS to modify page background color. Applied to the body element



================================================
FILE: gruntfile.js
================================================
module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON("package.json"),

        clean: {
            init: ["temp", "release/stable/5.0"],
            finish: ["temp"]
        },

        concat: {
            emuPart: {
                src: [
                    "src/main/room/screen/FullScreenSetup.js",
                    "src/main/util/Util.js",
                    "src/main/util/MD5.js",
                    "src/main/util/ZIP.js",
                    "src/main/util/EmbeddedFiles.js",
                    "src/main/util/MultiDownloader.js",
                    "src/main/util/MultiFileReader.js",
                    "src/main/atari/video/VideoStandard.js",
                    "src/main/atari/video/VideoSignal.js",
                    "src/main/atari/audio/AudioSignal.js",
                    "src/main/atari/cpu/M6502.js",
                    "src/main/atari/pia/Ram.js",
                    "src/main/atari/pia/Pia.js",
                    "src/main/atari/tia/TiaPalettes.js",
                    "src/main/atari/tia/TiaAudio.js",
                    "src/main/atari/tia/TiaAudioChannel.js",
                    "src/main/atari/tia/Tia.js",
                    "src/main/atari/console/Bus.js",
                    "src/main/atari/console/AtariConsole.js",
                    "src/main/atari/controls/JoystickButtons.js",
                    "src/main/atari/controls/ConsoleControls.js",
                    "src/main/atari/cartridge/ROM.js",
                    "src/main/atari/cartridge/CartridgeDatabase.js",
                    "src/main/atari/cartridge/Cartridge.js",
                    "src/main/atari/cartridge/formats/Cartridge4K.js",
                    "src/main/atari/cartridge/formats/Cartridge2K_CV.js",
                    "src/main/atari/cartridge/formats/CartridgeBankedByMaskedRange.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_E0.js",
                    "src/main/atari/cartridge/formats/Cartridge64K_F0.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_FE.js",
                    "src/main/atari/cartridge/formats/Cartridge16K_E7.js",
                    "src/main/atari/cartridge/formats/Cartridge10K_DPCa.js",
                    "src/main/atari/cartridge/formats/Cartridge24K_28K_32K_FA2.js",
                    "src/main/atari/cartridge/formats/CartridgeBankedByBusMonitoring.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_512K_3F.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_512K_3E.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_256K_SB.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_64K_AR.js",
                    "src/main/atari/cartridge/formats/Cartridge64K_X07.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_0840.js",
                    "src/main/atari/cartridge/formats/Cartridge8K_UA.js",
                    "src/main/atari/cartridge/CartridgeFormats.js",
                    "src/main/atari/cartridge/CartridgeCreator.js",
                    "src/main/images/Images.js",
                    "src/main/room/clock/Clock.js",
                    "src/main/room/files/RecentStoredROMs.js",
                    "src/main/room/files/FileLoader.js",
                    "src/main/room/files/FileDownloader.js",
                    "src/main/room/controls/DOMKeys.js",
                    "src/main/room/controls/GamepadButtons.js",
                    "src/main/room/controls/TouchControls.js",
                    "src/main/room/controls/GamepadConsoleControls.js",
                    "src/main/room/controls/DOMTouchControls.js",
                    "src/main/room/controls/DOMConsoleControls.js",
                    "src/main/room/screen/ScreenGUI.es5.js",
                    "src/main/room/screen/Monitor.js",
                    "src/main/room/screen/ConsolePanel.js",
                    "src/main/room/screen/CanvasDisplay.js",
                    "src/main/room/screen/dialogs/RecentROMsDialog.js",
                    "src/main/room/screen/dialogs/SaveStateDialog.js",
                    "src/main/room/screen/dialogs/QuickOptionsDialog.js",
                    "src/main/room/screen/dialogs/NetPlayDialog.js",
                    "src/main/room/screen/dialogs/CartridgeFormatDialog.js",
                    "src/main/room/screen/settings/SettingsGUI.es5.js",
                    "src/main/room/screen/settings/Settings.js",
                    "src/main/room/speaker/WebAudioSpeaker.js",
                    "src/main/room/savestate/LocalStorageSaveStateMedia.js",
                    "src/main/room/controls/PeripheralControls.js",
                    "src/main/room/controls/DOMPeripheralControls.js",
                    "src/main/room/netplay/NetServer.js",
                    "src/main/room/netplay/NetClient.js",
                    "src/main/room/Room.js",
                    "src/main/userprefs/UserPreferences.js",
                    "src/main/userprefs/UserROMFormats.js",
                    "src/runtime/images/EmbeddedImages.js",
                    "src/main/Configurator.js",
                    "src/main/Launcher.js"
                ],
                dest: "temp/javatari.part.js"
            },
            emuFinal: {
                src: [
                    "src/main/Javatari.js",
                    "temp/javatari.part.min.js"
                ],
                dest: "temp/javatari.js"
            },
           standalone: {
                src: [
                    "src/runtime/standalone/index.part1.html",
                    "temp/javatari.js",
                    "src/runtime/standalone/index.part2.html"
                ],
                dest: "temp/index.html"
            }
        },

        uglify: {
            emuPart: {
                options: {
                    maxLineLen: 7900,
                    mangle: {
                        toplevel: true,
                        screw_ie8: true
                    },
                    compress: {
                        screw_ie8: true,
                        sequences: true,
                        dead_code: true,
                        drop_debugger: true,
                        comparisons: true,
                        conditionals: true,
                        evaluate: true,
                        booleans: true,
                        loops: true,
                        unused: true,
                        if_return: true,
                        hoist_funs: true,
                        join_vars: true,
                        cascade: true,
                        unsafe: false
                    }
                },
                files: {
                    "temp/javatari.part.min.js": ["temp/javatari.part.js"]
                }
            }
        },

        copy: {
            standalone: {
                files: [
                    {src: "temp/index.html", dest: "release/stable/5.0/standalone", expand: true, flatten: true, filter: "isFile"},
                    {src: "src/runtime/standalone/cache.manifest", dest: "release/stable/5.0/standalone", expand: true, flatten: true, filter: "isFile"},
                    {src: "src/runtime/standalone/manifest.webapp", dest: "release/stable/5.0/standalone", expand: true, flatten: true, filter: "isFile"},
                    {src: "src/runtime/images/files/logo-icon192.png", dest: "release/stable/5.0/standalone/images", expand: true, flatten: true, filter: "isFile"},
                    {src: "src/runtime/images/files/logo-icon512.png", dest: "release/stable/5.0/standalone/images", expand: true, flatten: true, filter: "isFile"}
                ]
            },
            embedded: {
                files: [
                    {src: "src/runtime/embedded/index.html", dest: "release/stable/5.0/embedded", expand: true, flatten: true, filter: "isFile"},
                    {src: "temp/javatari.js", dest: "release/stable/5.0/embedded", expand: true, flatten: true, filter: "isFile"}
                ]
            }
        }
    });

    grunt.loadNpmTasks("grunt-contrib-clean");
    grunt.loadNpmTasks("grunt-contrib-concat");
    grunt.loadNpmTasks("grunt-contrib-uglify");
    grunt.loadNpmTasks("grunt-contrib-copy");
    grunt.registerTask("default", [
        "clean:init",
        "concat:emuPart",
        "uglify:emuPart",
        "concat:emuFinal",
        "concat:standalone",
        "copy:standalone",
        "copy:embedded",
        "clean:finish"
    ]);

};

================================================
FILE: license.txt
================================================
                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

  A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.  Many developers of free software are heartened and
encouraged by the resulting cooperation.  However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

  The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community.  It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server.  Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

  An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals.  This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU Affero General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Remote Network Interaction; Use with the GNU General Public License.

  Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software.  This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time.  Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source.  For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code.  There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>. 


================================================
FILE: package.json
================================================
{
  "name": "Javatari",
  "title": "Javatari - The online Atari 2600 emulator",
  "version": "5.0.4",
  "devDependencies": {
    "grunt": "",
    "grunt-contrib-clean": "",
    "grunt-contrib-concat": "",
    "grunt-contrib-uglify": "2.3.0",
    "grunt-contrib-copy": ""
  }
}


================================================
FILE: release/stable/4.0/embedded/index.html
================================================
<!DOCTYPE html>
<html>

    <head lang="en">

        <meta charset="UTF-8">
        <title>Javatari</title>
        <meta name="description" content="Javatari - The online Atari 2600 emulator">

    </head>

    <body>

        <div id="javatari" style="text-align: center; margin: 20px auto 0;">
            <div id="javatari-screen" style="box-shadow: 2px 2px 10px rgba(0, 0, 0, .7);"></div>
        </div>

        <script src="javatari.js"></script>

    </body>

</html>

================================================
FILE: release/stable/4.0/embedded/javatari.js
================================================
// Javatari version 4.0
// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.

// Main Emulator parameters.
// May be overridden dynamically by URL query parameters, if ALLOW_URL_PARAMETERS = true.

Javatari = {

    PRESETS:                        "",                         // Configuration Presets to apply. See Presets Configuration

    // Full or relative URL of Media files to load
    CARTRIDGE_URL:                  "",
    AUTODETECT_URL:                 "",
    STATE_URL:                      "",

    // Forcing ROM formats
    CARTRIDGE_FORMAT:               "",                         // 4K, F8, F4, FE, AR, etc...

    // General configuration
    AUTO_START:                     true,
    AUTO_POWER_ON_DELAY:            1200,                       // -1: no auto Power-ON; >= 0: wait specified milliseconds before Power-ON
    CARTRIDGE_SHOW_RECENT:          true,
    CARTRIDGE_CHANGE_DISABLED:      false,
    CARTRIDGE_LABEL_COLORS:         "",                         // Space-separated colors for Label, Background, Border. e.g. "#f00 #000 transparent". Leave "" for defaults
    SCREEN_RESIZE_DISABLED:         false,
    SCREEN_CONSOLE_PANEL_DISABLED:  false,
    SCREEN_ELEMENT_ID:              "javatari-screen",
    CONSOLE_PANEL_ELEMENT_ID:       -1,                         // -1: auto. Don't change! :-)
    SCREEN_FULLSCREEN_MODE:         -1,                         // -2: disabled; -1: auto; 0: off; 1: on
    SCREEN_CRT_MODE:                -1,                         // -1: auto; 0: off; 1: on
    SCREEN_FILTER_MODE:             -1,                         // -2: browser default; -1: auto; 0..3: smoothing level
    SCREEN_DEFAULT_SCALE:           -1,                         // -1: auto; 0.5..N in 0.1 steps: scale
    SCREEN_DEFAULT_ASPECT:          1,                          // in 0.1 steps
    SCREEN_CANVAS_SIZE:             2,                          // Internal canvas size factor. Don't change! :-)
    SCREEN_CONTROL_BAR:             1,                          // 0: on hover; 1: always
    SCREEN_FORCE_HOST_NATIVE_FPS:   -1,                         // -1: auto. Don't change! :-)
    SCREEN_VSYNCH_MODE:             1,                          // -1: disabled; 0: off; 1: on
    AUDIO_MONITOR_BUFFER_BASE:      -3,                         // -3: user set value; -2: disable audio; -1: auto; 0: browser default; 1..6: base value. More buffer = more delay
    AUDIO_MONITOR_BUFFER_SIZE:      -1,                         // -1: auto; 256, 512, 1024, 2048, 4096, 8192, 16384: buffer size.     More buffer = more delay. Don't change! :-)
    AUDIO_SIGNAL_BUFFER_RATIO:      2,                          // Internal Audio Signal buffer based on Monitor buffer
    AUDIO_SIGNAL_ADD_FRAMES:        3,                          // Additional frames in internal Audio Signal buffer based on Monitor buffer
    PADDLES_MODE:                   -1,                         // -1: auto; 0: off; 1: on
    TOUCH_MODE:                     -1,                         // -1: auto; 0: disabled; 1: enabled; 2: enabled (swapped)
    IMAGES_PATH:                    window.JAVATARI_IMAGES_PATH || "images/",

    RESET:                          0,                          // if value = 1 clear all saved data on the client
    ALLOW_URL_PARAMETERS:           true                        // Allows user to override any of these parameters via URL query parameters

};

Javatari.PRESETS_CONFIG = { };                                  // No built-in Presets for now

jt = window.jt || {};                                           // Namespace for all classes and objects

function onUpdateReady(){alert("A new version is available!\nJavatari will restart..."),window.applicationCache.swapCache(),window.location.reload()}JavatariFullScreenSetup={apply:function(){if(!this.cssApplied){var a=document.createElement("style");a.type="text/css",a.innerHTML=this.css,document.head.appendChild(a),this.cssApplied=!0}document.documentElement.classList.toggle("jt-full-screen",this.shouldStartInFullScreen())},shouldStartInFullScreen:function(){return window.Javatari?1===Javatari.SCREEN_FULLSCREEN_MODE||Javatari.SCREEN_FULLSCREEN_MODE===-1&&this.isBrowserStandaloneMode():this.isBrowserStandaloneMode()},isBrowserStandaloneMode:function(){return navigator.standalone||window.matchMedia("(display-mode: standalone)").matches},css:"html.jt-full-screen, html.jt-full-screen body {   background: black;}html.jt-full-screen .jt-full-screen-hidden {   display: none;}html:not(.jt-full-screen) .jt-full-screen-only {   display: none;}"},JavatariFullScreenSetup.apply(),jt.Util=new function(){"use strict";function a(a,b){return a.name<b.name?-1:a.name>b.name?1:0}function b(a){return a.stopPropagation(),a.cancelable&&a.preventDefault(),!1}this.log=function(a){console.log(">> jt: "+a)},this.warning=function(a){console.warn(">> jt Warning: "+a)},this.error=function(a){console.error(">> jt Error: "+a)},this.message=function(a){console.info(a),alert(a)},this.asNormalArray=function(a){return a instanceof Array?a:this.arrayCopy(a,0,new Array(a.length))},this.arrayFill=function(a,b,c,d){if(a.fill)return a.fill(b,c,d);void 0===c&&(c=0);for(var e=(void 0===d?a.length:d)-1;e>=c;e-=1)a[e]=b;return a},this.arrayFillSegment=function(a,b,c,d){for(var e=c;e-- >b;)a[e]=d;return a},this.arrayCopy=function(a,b,c,d,e){d=d||0;for(var f=e?b+e:a.length;b<f;)c[d++]=a[b++];return c},this.arrayAdd=function(a,b){return a[a.length]=b,a},this.arrayRemoveAllElement=function(a,b){for(var c;(c=a.indexOf(b))>=0;)a.splice(c,1);return a},this.arraysConcatAll=function(a){for(var b=0,c=0;c<a.length;++c)b+=a[c].length;var d=new a[0].constructor(b),e=0;for(c=0;c<a.length;++c)this.arrayCopy(a[c],0,d,e),e+=a[c].length;return d},this.arrayRemove=function(a,b){var c=a.indexOf(b);c<0||a.splice(c,1)},this.arraysEqual=function(a,b){var c=a.length;if(c!==b.length)return!1;for(;c--;)if(a[c]!==b[c])return!1;return!0},this.reverseInt8=function(a){return(1&a)<<7|(2&a)<<5|(4&a)<<3|(8&a)<<1|(16&a)>>1|(32&a)>>3|(64&a)>>5|(128&a)>>7},this.int8BitArrayToByteString=function(a,b,c){if(null===a||void 0==a)return a;void 0===b&&(b=0),void 0===c&&(c=a.length-b);for(var d="",e=b,f=b+c;e<f;e+=1)d+=String.fromCharCode(255&a[e]);return d},this.byteStringToInt8BitArray=function(a,b){if(null===a||void 0===a)return a;if("null"==a)return null;if("undefined"!=a){for(var c=a.length,d=b&&b.length===c?b:new(b?b.constructor:Array)(c),e=0;e<c;e+=1)d[e]=255&a.charCodeAt(e);return d}},this.int32BitArrayToByteString=function(a,b,c){if(null===a||void 0==a)return a;void 0===b&&(b=0),void 0===c&&(c=a.length-b);for(var d="",e=b,f=b+c;e<f;e+=1)d+=String.fromCharCode(255&a[e])+String.fromCharCode(a[e]>>8&255)+String.fromCharCode(a[e]>>16&255)+String.fromCharCode(a[e]>>24&255);return d},this.byteStringToInt32BitArray=function(a,b){if(null===a||void 0===a)return a;if("null"==a)return null;if("undefined"!=a){for(var c=a.length/4|0,d=b&&b.length===c?b:new(b?b.constructor:Array)(c),e=0,f=0;e<c;e+=1,f+=4)d[e]=255&a.charCodeAt(f)|(255&a.charCodeAt(f+1))<<8|(255&a.charCodeAt(f+2))<<16|(255&a.charCodeAt(f+3))<<24;return d}},this.storeInt8BitArrayToStringBase64=function(a){return null===a||void 0===a?a:0===a.length?"":btoa(this.int8BitArrayToByteString(a))},this.restoreStringBase64ToInt8BitArray=function(a,b){if(null===a||void 0===a)return a;if("null"==a)return null;if("undefined"!=a)return""==a?[]:this.byteStringToInt8BitArray(atob(a),b)},this.compressInt8BitArrayToStringBase64=function(a,b){return null===a||void 0===a?a:0===a.length?"":b<a.length?this.storeInt8BitArrayToStringBase64(JSZip.compressions.DEFLATE.compress(a.slice(0,b))):this.storeInt8BitArrayToStringBase64(JSZip.compressions.DEFLATE.compress(a))},this.uncompressStringBase64ToInt8BitArray=function(a,b,c){if(null===a||void 0===a)return a;if("null"==a)return null;if("undefined"!=a){if(""==a)return[];var d=JSZip.compressions.DEFLATE.uncompress(atob(a));return b&&(c||b.length===d.length)?this.arrayCopy(d,0,b):this.arrayCopy(d,0,new(b?b.constructor:Array)(d.length))}},this.storeInt32BitArrayToStringBase64=function(a){return null===a||void 0===a?a:0===a.length?"":btoa(this.int32BitArrayToByteString(a))},this.restoreStringBase64ToInt32BitArray=function(a,b){if(null===a||void 0===a)return a;if("null"==a)return null;if("undefined"!=a)return""==a?[]:this.byteStringToInt32BitArray(atob(a),b)},this.compressStringToStringBase64=function(a){return null===a||void 0===a?a:0===a.length?a:this.storeInt8BitArrayToStringBase64(JSZip.compressions.DEFLATE.compress(a))},this.uncompressStringBase64ToString=function(a){if(null===a||void 0===a)return a;if("null"==a)return null;if("undefined"!=a)return""==a?a:this.int8BitArrayToByteString(JSZip.compressions.DEFLATE.uncompress(atob(a)))},this.toHex2=function(a){if(null===a||void 0===a)return a;var b=a.toString(16).toUpperCase();return a>=0&&b.length%2?"0"+b:b},this.toHex4=function(a){if(null===a||void 0===a)return a;var b=a.toString(16).toUpperCase();if(a<0)return b;switch(b.length){case 4:return b;case 3:return"0"+b;case 2:return"00"+b;case 1:return"000"+b;default:return b}},this.escapeHtml=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/\//g,"&#047;").replace(/\?/g,"&#063;").replace(/\-/g,"&#045;").replace(/\|/g,"&#0124;")},this.arrayFind=function(a,b){if(a.find)return a.find(b);for(var c=0,d=a.length;c<d;++c)if(b(a[c],c,a))return a[c]},this.arrayFindIndex=function(a,b){if(a.findIndex)return a.findIndex(b);for(var c=0,d=a.length;c<d;++c)if(b(a[c],c,a))return c;return-1},this.arrayIndexOfSubArray=function(a,b,c,d){var e=b.length,f=a.length,g=d||1;a:for(var h=c;h>=0&&h<f;h+=g){for(var i=0;i<e;i+=1)if(a[h+i]!==b[i])continue a;return h}return-1},this.stringCountOccurrences=function(a,b){for(var c=0,d=0,e=a.length;d<e;++d)a[d]==b&&++c;return c},this.stringStartsWith=function(a,b){return a.startsWith?a.startsWith(b):a.substr(0,b.length)===b},this.stringEndsWith=function(a,b){return a.endsWith?a.endsWith(b):a.substr(a.length-b.length)===b},this.checkContentIsZIP=function(a){if(a&&80===a[0]&&75===a[1])try{return new JSZip(a)}catch(a){}return null},this.getZIPFilesSorted=function(b){var c=b.file(/.+/);return c.sort(a),c},this.checkContentIsGZIP=function(a){if(!a||31!==a[0]||139!==a[1]||8!==a[2])return null;try{var b=a[3],c=2&b,d=4&b,e=8&b,f=16&b,g=10;if(d){var h=a[g++]|a[g++]<<8;g+=h}if(e)for(;0!==a[g++];);if(f)for(;0!==a[g++];);return c&&(g+=2),JSZip.compressions.DEFLATE.uncompress(a.slice(g,a.length-8))}catch(a){return null}},this.leafFilename=function(a){return((a&&a.indexOf("/")>=0?a.split("/").pop():a)||"").trim()},this.leafFilenameNoExtension=function(a){var b=this.leafFilename(a),c=b.lastIndexOf(".");return c<=0?b:b.substr(0,c).trim()},this.leafFilenameOnlyExtension=function(a){var b=this.leafFilename(a),c=b.lastIndexOf(".");return c<=0?"":b.substr(c+1).trim()},this.dump=function(a,b,c,d){var e="",f=b||0;d=d||1;for(var g=0;g<d;g++){for(var h=0;h<c;h++){var i=a[f++];e+=void 0!=i?i.toString(16,2)+" ":"? "}e+="   "}console.log(e)},this.browserInfo=function(){if(this.browserInfoAvailable)return this.browserInfoAvailable;var a,b=navigator.userAgent,c=b.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(c[1]))return a=/\brv[ :]+(\d+)/g.exec(b)||[],this.browserInfoAvailable={name:"IE",version:a[1]||""};if("Chrome"===c[1]&&(a=b.match(/\bOPR\/(\d+)/),null!=a))return this.browserInfoAvailable={name:"OPERA",version:a[1]};c=c[2]?[c[1],c[2]]:[navigator.appName,navigator.appVersion,"-?"],
null!=(a=b.match(/version\/(\d+)/i))&&c.splice(1,1,a[1]);var d=c[0].toUpperCase();return this.browserInfoAvailable={name:this.isIOSDevice()||"NETSCAPE"===d?"SAFARI":d,version:c[1]}},this.userLanguage=function(){return(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage||"en-US").trim()},this.isOfficialHomepage=function(){var a=window.location;return a&&"javatari.org"===a.hostname.toLowerCase()&&(""===a.port||"80"===a.port)},this.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},this.isMobileDevice=function(){return this.isTouchDevice()&&/android|blackberry|iemobile|ipad|iphone|ipod|opera mini|webos/i.test(navigator.userAgent)},this.isIOSDevice=function(){return/ipad|iphone|ipod/i.test(navigator.userAgent)},this.isBrowserStandaloneMode=function(){return navigator.standalone||window.matchMedia("(display-mode: standalone)").matches},this.onTapOrMouseDown=function(a,b){this.addEventsListener(a,this.isTouchDevice()?"touchstart mousedown":"mousedown",b)},this.onTapOrMouseDownWithBlock=function(a,c){function d(a){return c(a),b(a)}this.addEventsListener(a,this.isTouchDevice()?"touchstart mousedown":"mousedown",d)},this.onTapOrMouseUpWithBlock=function(a,c){function d(a){return c(a),b(a)}this.addEventsListener(a,this.isTouchDevice()?"touchstart mouseup":"mouseup",d)},this.onTapOrMouseDownWithBlockUIG=function(a,c){function d(a){if(("touchstart"!==a.type||!a.target.jtNeedsUIG)&&("touchend"!==a.type||a.target.jtNeedsUIG))return c(a),b(a)}this.addEventsListener(a,this.isTouchDevice()?"touchstart touchend mousedown":"mousedown",d)},this.blockEvent=b,this.addEventsListener=function(a,b,c,d){b=b.split(" ");for(var e=0;e<b.length;++e)b[e]&&a.addEventListener(b[e],c,d)},this.removeEventsListener=function(a,b,c,d){b=b.split(" ");for(var e=0;e<b.length;++e)b[e]&&a.removeEventListener(b[e],c,d)},this.insertCSS=function(a){var b=document.createElement("style");b.type="text/css",b.innerHTML=a,document.head.appendChild(b)},this.log2=function(a){return Math.log(a)/Math.log(2)},this.exp2=function(a){return Math.pow(2,a)},this.performanceNow=function(){return this.performanceNow.startOffset?Date.now()-this.performanceNow.startOffset:window.performance.now()}},window.performance&&window.performance.now||(jt.Util.performanceNow.startOffset=Date.now()),jt.MD5=function(a){"use strict";function b(a){var b=(a>>>0).toString(16);return"00000000".substr(0,8-b.length)+b}function c(a){for(var b=[],c=0;c<a.length;c++)b=b.concat(k(a[c]));return b}function d(a){for(var b=[],c=0;c<8;c++)b.push(255&a),a>>>=8;return b}function e(a,b){return a<<b&4294967295|a>>>32-b}function f(a,b,c){return a&b|~a&c}function g(a,b,c){return c&a|~c&b}function h(a,b,c){return a^b^c}function i(a,b,c){return b^(a|~c)}function j(a,b){return a[b+3]<<24|a[b+2]<<16|a[b+1]<<8|a[b]}function k(a){for(var b=[],c=0;c<a.length;c++)if(a.charCodeAt(c)<=127)b.push(a.charCodeAt(c));else for(var d=encodeURIComponent(a.charAt(c)).substr(1).split("%"),e=0;e<d.length;e++)b.push(parseInt(d[e],16));return b}function l(a,c,d,e){for(var f="",g=0,h=0,i=3;i>=0;i--)h=arguments[i],g=255&h,h>>>=8,g<<=8,g|=255&h,h>>>=8,g<<=8,g|=255&h,h>>>=8,g<<=8,g|=h,f+=b(g);return f}function m(a){for(var b=new Array(a.length),c=0;c<a.length;c++)b[c]=a[c];return b}function n(a,b){return 4294967295&a+b}function o(){function a(a,b,c,d){var f=v;v=u,u=t,t=n(t,e(n(s,n(a,n(b,c))),d)),s=f}var b=p.length;p.push(128);var c=p.length%64;if(c>56){for(var k=0;k<64-c;k++)p.push(0);c=p.length%64}for(k=0;k<56-c;k++)p.push(0);p=p.concat(d(8*b));var m=1732584193,o=4023233417,q=2562383102,r=271733878,s=0,t=0,u=0,v=0;for(k=0;k<p.length/64;k++){s=m,t=o,u=q,v=r;var w=64*k;a(f(t,u,v),3614090360,j(p,w),7),a(f(t,u,v),3905402710,j(p,w+4),12),a(f(t,u,v),606105819,j(p,w+8),17),a(f(t,u,v),3250441966,j(p,w+12),22),a(f(t,u,v),4118548399,j(p,w+16),7),a(f(t,u,v),1200080426,j(p,w+20),12),a(f(t,u,v),2821735955,j(p,w+24),17),a(f(t,u,v),4249261313,j(p,w+28),22),a(f(t,u,v),1770035416,j(p,w+32),7),a(f(t,u,v),2336552879,j(p,w+36),12),a(f(t,u,v),4294925233,j(p,w+40),17),a(f(t,u,v),2304563134,j(p,w+44),22),a(f(t,u,v),1804603682,j(p,w+48),7),a(f(t,u,v),4254626195,j(p,w+52),12),a(f(t,u,v),2792965006,j(p,w+56),17),a(f(t,u,v),1236535329,j(p,w+60),22),a(g(t,u,v),4129170786,j(p,w+4),5),a(g(t,u,v),3225465664,j(p,w+24),9),a(g(t,u,v),643717713,j(p,w+44),14),a(g(t,u,v),3921069994,j(p,w),20),a(g(t,u,v),3593408605,j(p,w+20),5),a(g(t,u,v),38016083,j(p,w+40),9),a(g(t,u,v),3634488961,j(p,w+60),14),a(g(t,u,v),3889429448,j(p,w+16),20),a(g(t,u,v),568446438,j(p,w+36),5),a(g(t,u,v),3275163606,j(p,w+56),9),a(g(t,u,v),4107603335,j(p,w+12),14),a(g(t,u,v),1163531501,j(p,w+32),20),a(g(t,u,v),2850285829,j(p,w+52),5),a(g(t,u,v),4243563512,j(p,w+8),9),a(g(t,u,v),1735328473,j(p,w+28),14),a(g(t,u,v),2368359562,j(p,w+48),20),a(h(t,u,v),4294588738,j(p,w+20),4),a(h(t,u,v),2272392833,j(p,w+32),11),a(h(t,u,v),1839030562,j(p,w+44),16),a(h(t,u,v),4259657740,j(p,w+56),23),a(h(t,u,v),2763975236,j(p,w+4),4),a(h(t,u,v),1272893353,j(p,w+16),11),a(h(t,u,v),4139469664,j(p,w+28),16),a(h(t,u,v),3200236656,j(p,w+40),23),a(h(t,u,v),681279174,j(p,w+52),4),a(h(t,u,v),3936430074,j(p,w),11),a(h(t,u,v),3572445317,j(p,w+12),16),a(h(t,u,v),76029189,j(p,w+24),23),a(h(t,u,v),3654602809,j(p,w+36),4),a(h(t,u,v),3873151461,j(p,w+48),11),a(h(t,u,v),530742520,j(p,w+60),16),a(h(t,u,v),3299628645,j(p,w+8),23),a(i(t,u,v),4096336452,j(p,w),6),a(i(t,u,v),1126891415,j(p,w+28),10),a(i(t,u,v),2878612391,j(p,w+56),15),a(i(t,u,v),4237533241,j(p,w+20),21),a(i(t,u,v),1700485571,j(p,w+48),6),a(i(t,u,v),2399980690,j(p,w+12),10),a(i(t,u,v),4293915773,j(p,w+40),15),a(i(t,u,v),2240044497,j(p,w+4),21),a(i(t,u,v),1873313359,j(p,w+32),6),a(i(t,u,v),4264355552,j(p,w+60),10),a(i(t,u,v),2734768916,j(p,w+24),15),a(i(t,u,v),1309151649,j(p,w+52),21),a(i(t,u,v),4149444226,j(p,w+16),6),a(i(t,u,v),3174756917,j(p,w+44),10),a(i(t,u,v),718787259,j(p,w+8),15),a(i(t,u,v),3951481745,j(p,w+36),21),m=n(m,s),o=n(o,t),q=n(q,u),r=n(r,v)}return l(r,q,o,m).toUpperCase()}var p=null,q=null;return"string"==typeof a?p=k(a):a.constructor==Array?0===a.length?p=a:"string"==typeof a[0]?p=c(a):"number"==typeof a[0]?p=a:q=typeof a[0]:"undefined"!=typeof ArrayBuffer?a instanceof ArrayBuffer?p=m(new Uint8Array(a)):a instanceof Uint8Array||a instanceof Int8Array?p=m(a):a instanceof Uint32Array||a instanceof Int32Array||a instanceof Uint16Array||a instanceof Int16Array||a instanceof Float32Array||a instanceof Float64Array?p=m(new Uint8Array(a.buffer)):q=typeof a:q=typeof a,q&&alert("MD5 type mismatch, cannot process "+q),o()},!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.JSZip=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";c.encode=function(a){for(var b,c,e,f,g,h,i,j="",k=0;k<a.length;)b=a.charCodeAt(k++),c=a.charCodeAt(k++),e=a.charCodeAt(k++),f=b>>2,g=(3&b)<<4|c>>4,h=(15&c)<<2|e>>6,i=63&e,isNaN(c)?h=i=64:isNaN(e)&&(i=64),j=j+d.charAt(f)+d.charAt(g)+d.charAt(h)+d.charAt(i);return j},c.decode=function(a){var b,c,e,f,g,h,i,j="",k=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k<a.length;)f=d.indexOf(a.charAt(k++)),g=d.indexOf(a.charAt(k++)),h=d.indexOf(a.charAt(k++)),i=d.indexOf(a.charAt(k++)),b=f<<2|g>>4,c=(15&g)<<4|h>>2,e=(3&h)<<6|i,
j+=String.fromCharCode(b),64!=h&&(j+=String.fromCharCode(c)),64!=i&&(j+=String.fromCharCode(e));return j}},{}],2:[function(a,b){"use strict";function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}c.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},b.exports=c},{}],3:[function(a,b,c){"use strict";c.STORE={magic:"\0\0",compress:function(a){return a},uncompress:function(a){return a},compressInputType:null,uncompressInputType:null},c.DEFLATE=a("./flate")},{"./flate":8}],4:[function(a,b){"use strict";var c=a("./utils"),d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];b.exports=function(a,b){if("undefined"==typeof a||!a.length)return 0;var e="string"!==c.getTypeOf(a);"undefined"==typeof b&&(b=0);var f=0,g=0,h=0;b^=-1;for(var i=0,j=a.length;j>i;i++)h=e?a[i]:a.charCodeAt(i),g=255&(b^h),f=d[g],b=b>>>8^f;return-1^b}},{"./utils":21}],5:[function(a,b){"use strict";function c(){this.data=null,this.length=0,this.index=0}var d=a("./utils");c.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<a||0>a)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1)}},b.exports=c},{"./utils":21}],6:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.createFolders=!1,c.date=null,c.compression=null,c.comment=null},{}],7:[function(a,b,c){"use strict";var d=a("./utils");c.string2binary=function(a){return d.string2binary(a)},c.string2Uint8Array=function(a){return d.transformTo("uint8array",a)},c.uint8Array2String=function(a){return d.transformTo("string",a)},c.string2Blob=function(a){var b=d.transformTo("arraybuffer",a);return d.arrayBuffer2Blob(b)},c.arrayBuffer2Blob=function(a){return d.arrayBuffer2Blob(a)},c.transformTo=function(a,b){return d.transformTo(a,b)},c.getTypeOf=function(a){return d.getTypeOf(a)},c.checkSupport=function(a){return d.checkSupport(a)},c.MAX_VALUE_16BITS=d.MAX_VALUE_16BITS,c.MAX_VALUE_32BITS=d.MAX_VALUE_32BITS,c.pretty=function(a){return d.pretty(a)},c.findCompression=function(a){return d.findCompression(a)},c.isRegExp=function(a){return d.isRegExp(a)}},{"./utils":21}],8:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=a("pako");c.uncompressInputType=d?"uint8array":"array",c.compressInputType=d?"uint8array":"array",c.magic="\b\0",c.compress=function(a){return e.deflateRaw(a)},c.uncompress=function(a){return e.inflateRaw(a)}},{pako:24}],9:[function(a,b){"use strict";function c(a,b){return this instanceof c?(this.files={},this.comment=null,this.root="",a&&this.load(a,b),void(this.clone=function(){var a=new c;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a})):new c(a,b)}var d=a("./base64");c.prototype=a("./object"),c.prototype.load=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.utils=a("./deprecatedPublicUtils"),c.base64={encode:function(a){return d.encode(a)},decode:function(a){return d.decode(a)}},c.compressions=a("./compressions"),b.exports=c},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(a,b){"use strict";var c=a("./base64"),d=a("./zipEntries");b.exports=function(a,b){var e,f,g,h;for(b=b||{},b.base64&&(a=c.decode(a)),f=new d(a,b),e=f.files,g=0;g<e.length;g++)h=e[g],this.file(h.fileName,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileComment.length?h.fileComment:null,createFolders:b.createFolders});return f.zipComment.length&&(this.comment=f.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(a,b){(function(a){"use strict";b.exports=function(b,c){return new a(b,c)},b.exports.test=function(b){return a.isBuffer(b)}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(a,b){"use strict";function c(a){this.data=a,this.length=this.data.length,this.index=0}var d=a("./uint8ArrayReader");c.prototype=new d,c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./uint8ArrayReader":18}],13:[function(a,b){"use strict";var c=a("./support"),d=a("./utils"),e=a("./crc32"),f=a("./signature"),g=a("./defaults"),h=a("./base64"),i=a("./compressions"),j=a("./compressedObject"),k=a("./nodeBuffer"),l=a("./utf8"),m=a("./stringWriter"),n=a("./uint8ArrayWriter"),o=function(a){if(a._data instanceof j&&(a._data=a._data.getContent(),a.options.binary=!0,a.options.base64=!1,"uint8array"===d.getTypeOf(a._data))){var b=a._data;a._data=new Uint8Array(b.length),
0!==b.length&&a._data.set(b,0)}return a._data},p=function(a){var b=o(a),e=d.getTypeOf(b);return"string"===e?!a.options.binary&&c.nodebuffer?k(b,"utf-8"):a.asBinary():b},q=function(a){var b=o(this);return null===b||"undefined"==typeof b?"":(this.options.base64&&(b=h.decode(b)),b=a&&this.options.binary?A.utf8decode(b):d.transformTo("string",b),a||this.options.binary||(b=d.transformTo("string",A.utf8encode(b))),b)},r=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this._data=b,this.options=c,this._initialMetadata={dir:c.dir,date:c.date}};r.prototype={asText:function(){return q.call(this,!0)},asBinary:function(){return q.call(this,!1)},asNodeBuffer:function(){var a=p(this);return d.transformTo("nodebuffer",a)},asUint8Array:function(){var a=p(this);return d.transformTo("uint8array",a)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var s=function(a,b){var c,d="";for(c=0;b>c;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},t=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])arguments[a].hasOwnProperty(b)&&"undefined"==typeof c[b]&&(c[b]=arguments[a][b]);return c},u=function(a){return a=a||{},a.base64!==!0||null!==a.binary&&void 0!==a.binary||(a.binary=!0),a=t(a,g),a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),a},v=function(a,b,c){var e,f=d.getTypeOf(b);if(c=u(c),c.createFolders&&(e=w(a))&&x.call(this,e,!0),c.dir||null===b||"undefined"==typeof b)c.base64=!1,c.binary=!1,b=null;else if("string"===f)c.binary&&!c.base64&&c.optimizedBinaryString!==!0&&(b=d.string2binary(b));else{if(c.base64=!1,c.binary=!0,!(f||b instanceof j))throw new Error("The data of '"+a+"' is in an unsupported format !");"arraybuffer"===f&&(b=d.transformTo("uint8array",b))}var g=new r(a,b,c);return this.files[a]=g,g},w=function(a){"/"==a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},x=function(a,b){return"/"!=a.slice(-1)&&(a+="/"),b="undefined"!=typeof b&&b,this.files[a]||v.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]},y=function(a,b){var c,f=new j;return a._data instanceof j?(f.uncompressedSize=a._data.uncompressedSize,f.crc32=a._data.crc32,0===f.uncompressedSize||a.dir?(b=i.STORE,f.compressedContent="",f.crc32=0):a._data.compressionMethod===b.magic?f.compressedContent=a._data.getCompressedContent():(c=a._data.getContent(),f.compressedContent=b.compress(d.transformTo(b.compressInputType,c)))):(c=p(a),(!c||0===c.length||a.dir)&&(b=i.STORE,c=""),f.uncompressedSize=c.length,f.crc32=e(c),f.compressedContent=b.compress(d.transformTo(b.compressInputType,c))),f.compressedSize=f.compressedContent.length,f.compressionMethod=b.magic,f},z=function(a,b,c,g){var h,i,j,k,m=(c.compressedContent,d.transformTo("string",l.utf8encode(b.name))),n=b.comment||"",o=d.transformTo("string",l.utf8encode(n)),p=m.length!==b.name.length,q=o.length!==n.length,r=b.options,t="",u="",v="";j=b._initialMetadata.dir!==b.dir?b.dir:r.dir,k=b._initialMetadata.date!==b.date?b.date:r.date,h=k.getHours(),h<<=6,h|=k.getMinutes(),h<<=5,h|=k.getSeconds()/2,i=k.getFullYear()-1980,i<<=4,i|=k.getMonth()+1,i<<=5,i|=k.getDate(),p&&(u=s(1,1)+s(e(m),4)+m,t+="up"+s(u.length,2)+u),q&&(v=s(1,1)+s(this.crc32(o),4)+o,t+="uc"+s(v.length,2)+v);var w="";w+="\n\0",w+=p||q?"\0\b":"\0\0",w+=c.compressionMethod,w+=s(h,2),w+=s(i,2),w+=s(c.crc32,4),w+=s(c.compressedSize,4),w+=s(c.uncompressedSize,4),w+=s(m.length,2),w+=s(t.length,2);var x=f.LOCAL_FILE_HEADER+w+m+t,y=f.CENTRAL_FILE_HEADER+"\0"+w+s(o.length,2)+"\0\0\0\0"+(j===!0?"\0\0\0":"\0\0\0\0")+s(g,4)+m+t+o;return{fileRecord:x,dirRecord:y,compressedObject:c}},A={load:function(){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(a){var b,c,d,e,f=[];for(b in this.files)this.files.hasOwnProperty(b)&&(d=this.files[b],e=new r(d.name,d._data,t(d.options)),c=b.slice(this.root.length,b.length),b.slice(0,this.root.length)===this.root&&a(c,e)&&f.push(e));return f},file:function(a,b,c){if(1===arguments.length){if(d.isRegExp(a)){var e=a;return this.filter(function(a,b){return!b.dir&&e.test(a)})}return this.filter(function(b,c){return!c.dir&&b===a})[0]||null}return a=this.root+a,v.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(d.isRegExp(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=x.call(this,b),e=this.clone();return e.root=c.name,e},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!=a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(a){a=t(a||{},{base64:!0,compression:"STORE",type:"base64",comment:null}),d.checkSupport(a.type);var b,c,e=[],g=0,j=0,k=d.transformTo("string",this.utf8encode(a.comment||this.comment||""));for(var l in this.files)if(this.files.hasOwnProperty(l)){var o=this.files[l],p=o.options.compression||a.compression.toUpperCase(),q=i[p];if(!q)throw new Error(p+" is not a valid compression method !");var r=y.call(this,o,q),u=z.call(this,l,o,r,g);g+=u.fileRecord.length+r.compressedSize,j+=u.dirRecord.length,e.push(u)}var v="";v=f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(e.length,2)+s(e.length,2)+s(j,4)+s(g,4)+s(k.length,2)+k;var w=a.type.toLowerCase();for(b="uint8array"===w||"arraybuffer"===w||"blob"===w||"nodebuffer"===w?new n(g+j+v.length):new m(g+j+v.length),c=0;c<e.length;c++)b.append(e[c].fileRecord),b.append(e[c].compressedObject.compressedContent);for(c=0;c<e.length;c++)b.append(e[c].dirRecord);b.append(v);var x=b.finalize();switch(a.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return d.transformTo(a.type.toLowerCase(),x);case"blob":return d.arrayBuffer2Blob(d.transformTo("arraybuffer",x));case"base64":return a.base64?h.encode(x):x;default:return x}},crc32:function(a,b){return e(a,b)},utf8encode:function(a){return d.transformTo("string",l.utf8encode(a))},utf8decode:function(a){return l.utf8decode(a)}};b.exports=A},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(a,b,c){"use strict";c.LOCAL_FILE_HEADER="PK",c.CENTRAL_FILE_HEADER="PK",c.CENTRAL_DIRECTORY_END="PK",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",c.ZIP64_CENTRAL_DIRECTORY_END="PK",c.DATA_DESCRIPTOR="PK\b"},{}],15:[function(a,b){"use strict";function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),this.length=this.data.length,this.index=0}var d=a("./dataReader"),e=a("./utils");c.prototype=new d,c.prototype.byteAt=function(a){return this.data.charCodeAt(a)},c.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)},c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":5,"./utils":21}],16:[function(a,b){"use strict";var c=a("./utils"),d=function(){this.data=[]};d.prototype={append:function(a){a=c.transformTo("string",a),this.data.push(a)},finalize:function(){return this.data.join("")}},b.exports=d},{"./utils":21}],17:[function(a,b,c){(function(a){"use strict";if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c.nodebuffer="undefined"!=typeof a,c.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)c.blob=!1;else{var b=new ArrayBuffer(0);try{c.blob=0===new Blob([b],{type:"application/zip"}).size}catch(a){try{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,e=new d;e.append(b),c.blob=0===e.getBlob("application/zip").size}catch(a){c.blob=!1}}}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(a,b){
"use strict";function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}var d=a("./dataReader");c.prototype=new d,c.prototype.byteAt=function(a){return this.data[a]},c.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f;return-1},c.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":5}],19:[function(a,b){"use strict";var c=a("./utils"),d=function(a){this.data=new Uint8Array(a),this.index=0};d.prototype={append:function(a){0!==a.length&&(a=c.transformTo("uint8array",a),this.data.set(a,this.index),this.index+=a.length)},finalize:function(){return this.data}},b.exports=d},{"./utils":21}],20:[function(a,b,c){"use strict";for(var d=a("./utils"),e=a("./support"),f=a("./nodeBuffer"),g=new Array(256),h=0;256>h;h++)g[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;g[254]=g[254]=1;var i=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=e.uint8array?new Uint8Array(i):new Array(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},j=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+g[a[c]]>b?c:b},k=function(a){var b,c,e,f,h=a.length,i=new Array(2*h);for(c=0,b=0;h>b;)if(e=a[b++],128>e)i[c++]=e;else if(f=g[e],f>4)i[c++]=65533,b+=f-1;else{for(e&=2===f?31:3===f?15:7;f>1&&h>b;)e=e<<6|63&a[b++],f--;f>1?i[c++]=65533:65536>e?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};c.utf8encode=function(a){return e.nodebuffer?f(a,"utf-8"):i(a)},c.utf8decode=function(a){if(e.nodebuffer)return d.transformTo("nodebuffer",a).toString("utf-8");a=d.transformTo(e.uint8array?"uint8array":"array",a);for(var b=[],c=0,f=a.length,g=65536;f>c;){var h=j(a,Math.min(c+g,f));b.push(k(e.uint8array?a.subarray(c,h):a.slice(c,h))),c=h}return b.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(a,b,c){"use strict";function d(a){return a}function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{switch(f){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,j(0))}}catch(a){h=!1}if(!h){for(var i="",k=0;k<a.length;k++)i+=String.fromCharCode(a[k]);return i}for(;e>g&&b>1;)try{d.push("array"===f||"nodebuffer"===f?String.fromCharCode.apply(null,a.slice(g,Math.min(g+b,e))):String.fromCharCode.apply(null,a.subarray(g,Math.min(g+b,e)))),g+=b}catch(a){b=Math.floor(b/2)}return d.join("")}function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}var h=a("./support"),i=a("./compressions"),j=a("./nodeBuffer");c.string2binary=function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(255&a.charCodeAt(c));return b},c.arrayBuffer2Blob=function(a){c.checkSupport("blob");try{return new Blob([a],{type:"application/zip"})}catch(c){try{var b=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,d=new b;return d.append(a),d.getBlob("application/zip")}catch(a){throw new Error("Bug : can't construct the Blob.")}}},c.applyFromCharCode=f;var k={};k.string={string:d,array:function(a){return e(a,new Array(a.length))},arraybuffer:function(a){return k.string.uint8array(a).buffer},uint8array:function(a){return e(a,new Uint8Array(a.length))},nodebuffer:function(a){return e(a,j(a.length))}},k.array={string:f,array:d,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return j(a)}},k.arraybuffer={string:function(a){return f(new Uint8Array(a))},array:function(a){return g(new Uint8Array(a),new Array(a.byteLength))},arraybuffer:d,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return j(new Uint8Array(a))}},k.uint8array={string:f,array:function(a){return g(a,new Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:d,nodebuffer:function(a){return j(a)}},k.nodebuffer={string:f,array:function(a){return g(a,new Array(a.length))},arraybuffer:function(a){return k.nodebuffer.uint8array(a).buffer},uint8array:function(a){return g(a,new Uint8Array(a.length))},nodebuffer:d},c.transformTo=function(a,b){if(b||(b=""),!a)return b;c.checkSupport(a);var d=c.getTypeOf(b),e=k[d][a](b);return e},c.getTypeOf=function(a){return"string"==typeof a?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":h.nodebuffer&&j.test(a)?"nodebuffer":h.uint8array&&a instanceof Uint8Array?"uint8array":h.arraybuffer&&a instanceof ArrayBuffer?"arraybuffer":void 0},c.checkSupport=function(a){var b=h[a.toLowerCase()];if(!b)throw new Error(a+" is not supported by this browser")},c.MAX_VALUE_16BITS=65535,c.MAX_VALUE_32BITS=-1,c.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)b=a.charCodeAt(c),d+="\\x"+(16>b?"0":"")+b.toString(16).toUpperCase();return d},c.findCompression=function(a){for(var b in i)if(i.hasOwnProperty(b)&&i[b].magic===a)return i[b];return null},c.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(a,b){"use strict";function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}var d=a("./stringReader"),e=a("./nodeBufferReader"),f=a("./uint8ArrayReader"),g=a("./utils"),h=a("./signature"),i=a("./zipEntry"),j=a("./support"),k=a("./object");c.prototype={checkSignature:function(a){var b=this.reader.readString(4);if(b!==a)throw new Error("Corrupted zip or bug : unexpected signature ("+g.pretty(b)+", expected "+g.pretty(a)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=k.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44,e=0;d>e;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readString(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),
b.readLocalPart(this.reader),b.handleUTF8()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===h.CENTRAL_FILE_HEADER;)a=new i({zip64:this.zip64},this.loadOptions),a.readCentralPart(this.reader),this.files.push(a)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(-1===a)throw new Error("Corrupted zip : can't find end of central directory");if(this.reader.setIndex(a),this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===g.MAX_VALUE_16BITS||this.diskWithCentralDirStart===g.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===g.MAX_VALUE_16BITS||this.centralDirRecords===g.MAX_VALUE_16BITS||this.centralDirSize===g.MAX_VALUE_32BITS||this.centralDirOffset===g.MAX_VALUE_32BITS){if(this.zip64=!0,a=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),-1===a)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(a),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(a){var b=g.getTypeOf(a);this.reader="string"!==b||j.uint8array?"nodebuffer"===b?new e(a):new f(g.transformTo("uint8array",a)):new d(a,this.loadOptions.optimizedBinaryString)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},b.exports=c},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(a,b){"use strict";function c(a,b){this.options=a,this.loadOptions=b}var d=a("./stringReader"),e=a("./utils"),f=a("./compressedObject"),g=a("./object");c.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},prepareCompressedContent:function(a,b,c){return function(){var d=a.index;a.setIndex(b);var e=a.readData(c);return a.setIndex(d),e}},prepareContent:function(a,b,c,d,f){return function(){var a=e.transformTo(d.uncompressInputType,this.getCompressedContent()),b=d.uncompress(a);if(b.length!==f)throw new Error("Bug : uncompressed data size mismatch");return b}},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readString(this.fileNameLength),a.skip(c),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");if(b=e.findCompression(this.compressionMethod),null===b)throw new Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new f,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(a,a.index,this.compressedSize,b),this.decompressed.getContent=this.prepareContent(a,a.index,this.compressedSize,b,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=e.transformTo("string",this.decompressed.getContent()),g.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(a){if(this.versionMadeBy=a.readString(2),this.versionNeeded=a.readInt(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4),this.fileNameLength=a.readInt(2),this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=a.readString(this.fileNameLength),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readString(this.fileCommentLength),this.dir=!!(16&this.externalFileAttributes)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=new d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index;for(this.extraFields=this.extraFields||{};a.index<e+this.extraFieldsLength;)b=a.readInt(2),c=a.readInt(2),d=a.readString(c),this.extraFields[b]={id:b,length:c,value:d}},handleUTF8:function(){if(this.useUTF8())this.fileName=g.utf8decode(this.fileName),this.fileComment=g.utf8decode(this.fileComment);else{var a=this.findExtraFieldUnicodePath();null!==a&&(this.fileName=a);var b=this.findExtraFieldUnicodeComment();null!==b&&(this.fileComment=b)}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=new d(a.value);return 1!==b.readInt(1)?null:g.crc32(this.fileName)!==b.readInt(4)?null:g.utf8decode(b.readString(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=new d(a.value);return 1!==b.readInt(1)?null:g.crc32(this.fileComment)!==b.readInt(4)?null:g.utf8decode(b.readString(a.length-5))}return null}},b.exports=c},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(a,b){"use strict";var c=a("./lib/utils/common").assign,d=a("./lib/deflate"),e=a("./lib/inflate"),f=a("./lib/zlib/constants"),g={};c(g,d,e,f),b.exports=g},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(a,b,c){"use strict";function d(a,b){var c=new s(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}var g=a("./zlib/deflate.js"),h=a("./utils/common"),i=a("./utils/strings"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=0,m=4,n=0,o=1,p=-1,q=0,r=8,s=function(a){this.options=h.assign({level:p,method:r,chunkSize:16384,windowBits:15,memLevel:8,strategy:q,to:""},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==n)throw new Error(j[c]);b.header&&g.deflateSetHeader(this.strm,b.header)};s.prototype.push=function(a,b){var c,d,e=this.strm,f=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?m:l,e.input="string"==typeof a?i.string2buf(a):a,e.next_in=0,e.avail_in=e.input.length;do{if(0===e.avail_out&&(e.output=new h.Buf8(f),e.next_out=0,e.avail_out=f),c=g.deflate(e,d),c!==o&&c!==n)return this.onEnd(c),this.ended=!0,!1;(0===e.avail_out||0===e.avail_in&&d===m)&&this.onData("string"===this.options.to?i.buf2binstring(h.shrinkBuf(e.output,e.next_out)):h.shrinkBuf(e.output,e.next_out))}while((e.avail_in>0||0===e.avail_out)&&c!==o);return d!==m||(c=g.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===n)},s.prototype.onData=function(a){this.chunks.push(a)},s.prototype.onEnd=function(a){a===n&&(this.result="string"===this.options.to?this.chunks.join(""):h.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=s,c.deflate=d,c.deflateRaw=e,c.gzip=f},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,
"./zlib/zstream":39}],26:[function(a,b,c){"use strict";function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}var f=a("./zlib/inflate.js"),g=a("./utils/common"),h=a("./utils/strings"),i=a("./zlib/constants"),j=a("./zlib/messages"),k=a("./zlib/zstream"),l=a("./zlib/gzheader"),m=function(a){this.options=g.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0===(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new k,this.strm.avail_out=0;var c=f.inflateInit2(this.strm,b.windowBits);if(c!==i.Z_OK)throw new Error(j[c]);this.header=new l,f.inflateGetHeader(this.strm,this.header)};m.prototype.push=function(a,b){var c,d,e,j,k,l=this.strm,m=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?i.Z_FINISH:i.Z_NO_FLUSH,l.input="string"==typeof a?h.binstring2buf(a):a,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new g.Buf8(m),l.next_out=0,l.avail_out=m),c=f.inflate(l,i.Z_NO_FLUSH),c!==i.Z_STREAM_END&&c!==i.Z_OK)return this.onEnd(c),this.ended=!0,!1;l.next_out&&(0===l.avail_out||c===i.Z_STREAM_END||0===l.avail_in&&d===i.Z_FINISH)&&("string"===this.options.to?(e=h.utf8border(l.output,l.next_out),j=l.next_out-e,k=h.buf2string(l.output,e),l.next_out=j,l.avail_out=m-j,j&&g.arraySet(l.output,l.output,e,j,0),this.onData(k)):this.onData(g.shrinkBuf(l.output,l.next_out)))}while(l.avail_in>0&&c!==i.Z_STREAM_END);return c===i.Z_STREAM_END&&(d=i.Z_FINISH),d!==i.Z_FINISH||(c=f.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===i.Z_OK)},m.prototype.onData=function(a){this.chunks.push(a)},m.prototype.onEnd=function(a){a===i.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):g.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=m,c.inflate=d,c.inflateRaw=e,c.ungzip=d},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;c>b;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;c>b;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],28:[function(a,b,c){"use strict";function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return String.fromCharCode.apply(null,e.shrinkBuf(a,b));for(var c="",d=0;b>d;d++)c+=String.fromCharCode(a[d]);return c}var e=a("./common"),f=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(a){f=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){g=!1}for(var h=new e.Buf8(256),i=0;256>i;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1,c.string2buf=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;h>f;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),i+=128>c?1:2048>c?2:65536>c?3:4;for(b=new e.Buf8(i),g=0,f=0;i>g;f++)c=a.charCodeAt(f),55296===(64512&c)&&h>f+1&&(d=a.charCodeAt(f+1),56320===(64512&d)&&(c=65536+(c-55296<<10)+(d-56320),f++)),128>c?b[g++]=c:2048>c?(b[g++]=192|c>>>6,b[g++]=128|63&c):65536>c?(b[g++]=224|c>>>12,b[g++]=128|c>>>6&63,b[g++]=128|63&c):(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63,b[g++]=128|c>>>6&63,b[g++]=128|63&c);return b},c.buf2binstring=function(a){return d(a,a.length)},c.binstring2buf=function(a){for(var b=new e.Buf8(a.length),c=0,d=b.length;d>c;c++)b[c]=a.charCodeAt(c);return b},c.buf2string=function(a,b){var c,e,f,g,i=b||a.length,j=new Array(2*i);for(e=0,c=0;i>c;)if(f=a[c++],128>f)j[e++]=f;else if(g=h[f],g>4)j[e++]=65533,c+=g-1;else{for(f&=2===g?31:3===g?15:7;g>1&&i>c;)f=f<<6|63&a[c++],g--;g>1?j[e++]=65533:65536>f?j[e++]=f:(f-=65536,j[e++]=55296|f>>10&1023,j[e++]=56320|1023&f)}return d(j,e)},c.utf8border=function(a,b){var c;for(b=b||a.length,b>a.length&&(b=a.length),c=b-1;c>=0&&128===(192&a[c]);)c--;return 0>c?b:0===c?b:c+h[a[c]]>b?c:b}},{"./common":27}],29:[function(a,b){"use strict";function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=c},{}],30:[function(a,b){b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(a,b){"use strict";function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function d(a,b,c,d){var f=e,g=d+c;a^=-1;for(var h=d;g>h;h++)a=a>>>8^f[255&(a^b[h])];return-1^a}var e=c();b.exports=d},{}],32:[function(a,b,c){"use strict";function d(a,b){return a.msg=G[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b>=0;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(C.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,C.arraySet(b,a.input,a.next_in,e,c),1===a.state.wrap?a.adler=E(a.adler,b,e,c):2===a.state.wrap&&(a.adler=F(a.adler,b,e,c)),a.next_in+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-ja?a.strstart-(a.w_size-ja):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+ia,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&m>f);if(d=ia-(m-f),f=m-ia,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-ja)){C.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);c=g,b=c;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=ha)for(f=a.strstart-a.insert,
a.ins_h=a.window[f],a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[f+ha-1])&a.hash_mask,a.prev[f&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=f,f++,a.insert--,!(a.lookahead+a.insert<ha)););}while(a.lookahead<ja&&0!==a.strm.avail_in)}function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===H)return sa;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return sa;if(a.strstart-a.block_start>=a.w_size-ja&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.strstart>a.block_start&&(h(a,!1),0===a.strm.avail_out)?sa:sa}function o(a,b){for(var c,d;;){if(a.lookahead<ja){if(m(a),a.lookahead<ja&&b===H)return sa;if(0===a.lookahead)break}if(c=0,a.lookahead>=ha&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-ja&&(a.match_length=l(a,c)),a.match_length>=ha)if(d=D._tr_tally(a,a.strstart-a.match_start,a.match_length-ha),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=ha){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=a.strstart<ha-1?a.strstart:ha-1,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function p(a,b){for(var c,d,e;;){if(a.lookahead<ja){if(m(a),a.lookahead<ja&&b===H)return sa;if(0===a.lookahead)break}if(c=0,a.lookahead>=ha&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=ha-1,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-ja&&(a.match_length=l(a,c),a.match_length<=5&&(a.strategy===S||a.match_length===ha&&a.strstart-a.match_start>4096)&&(a.match_length=ha-1)),a.prev_length>=ha&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-ha,d=D._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-ha),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+ha-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!==--a.prev_length);if(a.match_available=0,a.match_length=ha-1,a.strstart++,d&&(h(a,!1),0===a.strm.avail_out))return sa}else if(a.match_available){if(d=D._tr_tally(a,0,a.window[a.strstart-1]),d&&h(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return sa}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(d=D._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<ha-1?a.strstart:ha-1,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ia){if(m(a),a.lookahead<=ia&&b===H)return sa;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=ha&&a.strstart>0&&(e=a.strstart-1,d=g[e],d===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+ia;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&f>e);a.match_length=ia-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=ha?(c=D._tr_tally(a,1,a.match_length-ha),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===H)return sa;break}if(a.match_length=0,c=D._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return sa}return a.insert=0,b===K?(h(a,!0),0===a.strm.avail_out?ua:va):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?sa:ta}function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.level].max_lazy,a.good_match=B[a.level].good_length,a.nice_match=B[a.level].nice_length,a.max_chain_length=B[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=ha-1,a.match_available=0,a.ins_h=0}function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new C.Buf16(2*fa),this.dyn_dtree=new C.Buf16(2*(2*da+1)),this.bl_tree=new C.Buf16(2*(2*ea+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new C.Buf16(ga+1),this.heap=new C.Buf16(2*ca+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new C.Buf16(2*ca+1),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=X,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?la:qa,a.adler=2===b.wrap?0:1,b.last_flush=H,D._tr_init(b),M):d(a,O)}function v(a){var b=u(a);return b===M&&s(a.state),b}function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M):O}function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,e=-e):e>15&&(h=2,e-=16),1>f||f>Z||c!==Y||8>e||e>15||0>b||b>9||0>g||g>V)return d(a,O);8===e&&(e=9);var i=new t;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+ha-1)/ha),i.window=new C.Buf8(2*i.w_size),i.head=new C.Buf16(i.hash_size),i.prev=new C.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new C.Buf8(i.pending_buf_size),i.d_buf=i.lit_bufsize>>1,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,v(a)}function y(a,b){return x(a,b,Y,$,_,W)}function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;if(h=a.state,!a.output||!a.input&&0!==a.avail_in||h.status===ra&&b!==K)return d(a,0===a.avail_out?Q:O);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===la)if(2===h.wrap)a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead?(i(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),i(h,255&h.gzhead.time),i(h,h.gzhead.time>>8&255),i(h,h.gzhead.time>>16&255),i(h,h.gzhead.time>>24&255),i(h,9===h.level?2:h.strategy>=T||h.level<2?4:0),i(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(i(h,255&h.gzhead.extra.length),i(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(a.adler=F(a.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=ma):(i(h,0),i(h,0),i(h,0),
i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=T||h.level<2?4:0),i(h,wa),h.status=qa);else{var m=Y+(h.w_bits-8<<4)<<8,n=-1;n=h.strategy>=T||h.level<2?0:h.level<6?1:6===h.level?2:3,m|=n<<6,0!==h.strstart&&(m|=ka),m+=31-m%31,h.status=qa,j(h,m),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(h.status===ma)if(h.gzhead.extra){for(k=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending!==h.pending_buf_size));)i(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=na)}else h.status=na;if(h.status===na)if(h.gzhead.name){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.gzindex=0,h.status=oa)}else h.status=oa;if(h.status===oa)if(h.gzhead.comment){k=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),g(a),k=h.pending,h.pending===h.pending_buf_size)){l=1;break}l=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,i(h,l)}while(0!==l);h.gzhead.hcrc&&h.pending>k&&(a.adler=F(a.adler,h.pending_buf,h.pending-k,k)),0===l&&(h.status=pa)}else h.status=pa;if(h.status===pa&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&g(a),h.pending+2<=h.pending_buf_size&&(i(h,255&a.adler),i(h,a.adler>>8&255),a.adler=0,h.status=qa)):h.status=qa),0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,M}else if(0===a.avail_in&&e(b)<=e(c)&&b!==K)return d(a,Q);if(h.status===ra&&0!==a.avail_in)return d(a,Q);if(0!==a.avail_in||0!==h.lookahead||b!==H&&h.status!==ra){var o=h.strategy===T?r(h,b):h.strategy===U?q(h,b):B[h.level].func(h,b);if((o===ua||o===va)&&(h.status=ra),o===sa||o===ua)return 0===a.avail_out&&(h.last_flush=-1),M;if(o===ta&&(b===I?D._tr_align(h):b!==L&&(D._tr_stored_block(h,0,0,!1),b===J&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,M}return b!==K?M:h.wrap<=0?N:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?M:N)}function A(a){var b;return a&&a.state?(b=a.state.status,b!==la&&b!==ma&&b!==na&&b!==oa&&b!==pa&&b!==qa&&b!==ra?d(a,O):(a.state=null,b===qa?d(a,P):M)):O}var B,C=a("../utils/common"),D=a("./trees"),E=a("./adler32"),F=a("./crc32"),G=a("./messages"),H=0,I=1,J=3,K=4,L=5,M=0,N=1,O=-2,P=-3,Q=-5,R=-1,S=1,T=2,U=3,V=4,W=0,X=2,Y=8,Z=9,$=15,_=8,aa=29,ba=256,ca=ba+1+aa,da=30,ea=19,fa=2*ca+1,ga=15,ha=3,ia=258,ja=ia+ha+1,ka=32,la=42,ma=69,na=73,oa=91,pa=103,qa=113,ra=666,sa=1,ta=2,ua=3,va=4,wa=3,xa=function(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e};B=[new xa(0,0,0,0,n),new xa(4,4,8,4,o),new xa(4,5,16,8,o),new xa(4,6,32,32,o),new xa(4,4,16,16,p),new xa(8,16,32,32,p),new xa(8,16,128,128,p),new xa(8,32,128,256,p),new xa(32,128,258,1024,p),new xa(32,258,258,4096,p)],c.deflateInit=y,c.deflateInit2=x,c.deflateReset=v,c.deflateResetKeep=u,c.deflateSetHeader=w,c.deflate=z,c.deflateEnd=A,c.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(a,b){"use strict";function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}b.exports=c},{}],34:[function(a,b){"use strict";var c=30,d=12;b.exports=function(a,b){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;e=a.state,f=a.next_in,B=a.input,g=f+(a.avail_in-5),h=a.next_out,C=a.output,i=h-(b-a.avail_out),j=h+(a.avail_out-257),k=e.dmax,l=e.wsize,m=e.whave,n=e.wnext,o=e.window,p=e.hold,q=e.bits,r=e.lencode,s=e.distcode,t=(1<<e.lenbits)-1,u=(1<<e.distbits)-1;a:do{15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=r[p&t];b:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,0===w)C[h++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=r[(65535&v)+(p&(1<<w)-1)];continue b}if(32&w){e.mode=d;break a}a.msg="invalid literal/length code",e.mode=c;break a}x=65535&v,w&=15,w&&(w>q&&(p+=B[f++]<<q,q+=8),x+=p&(1<<w)-1,p>>>=w,q-=w),15>q&&(p+=B[f++]<<q,q+=8,p+=B[f++]<<q,q+=8),v=s[p&u];c:for(;;){if(w=v>>>24,p>>>=w,q-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=s[(65535&v)+(p&(1<<w)-1)];continue c}a.msg="invalid distance code",e.mode=c;break a}if(y=65535&v,w&=15,w>q&&(p+=B[f++]<<q,q+=8,w>q&&(p+=B[f++]<<q,q+=8)),y+=p&(1<<w)-1,y>k){a.msg="invalid distance too far back",e.mode=c;break a}if(p>>>=w,q-=w,w=h-i,y>w){if(w=y-w,w>m&&e.sane){a.msg="invalid distance too far back",e.mode=c;break a}if(z=0,A=o,0===n){if(z+=l-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}else if(w>n){if(z+=l+n-w,w-=n,x>w){x-=w;do C[h++]=o[z++];while(--w);if(z=0,x>n){w=n,x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}}else if(z+=n-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}for(;x>2;)C[h++]=A[z++],C[h++]=A[z++],C[h++]=A[z++],x-=3;x&&(C[h++]=A[z++],x>1&&(C[h++]=A[z++]))}else{z=h-y;do C[h++]=C[z++],C[h++]=C[z++],C[h++]=C[z++],x-=3;while(x>2);x&&(C[h++]=C[z++],x>1&&(C[h++]=C[z++]))}break}}break}}while(g>f&&j>h);x=q>>3,f-=x,q-=x<<3,p&=(1<<q)-1,a.next_in=f,a.next_out=h,a.avail_in=g>f?5+(g-f):5-(f-g),a.avail_out=j>h?257+(j-h):257-(h-j),e.hold=p,e.bits=q}},{}],35:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=K,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new r.Buf32(oa),b.distcode=b.distdyn=new r.Buf32(pa),b.sane=1,b.back=-1,C):F}function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,f(a)):F}function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(b>>4)+1,48>b&&(b&=15)),b&&(8>b||b>15)?F:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,g(a))):F}function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,b),c!==C&&(a.state=null),c):F}function j(a){return i(a,ra)}function k(a){if(sa){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;144>b;)a.lens[b++]=8;for(;256>b;)a.lens[b++]=9;for(;280>b;)a.lens[b++]=7;for(;288>b;)a.lens[b++]=8;for(v(x,a.lens,0,288,p,0,a.work,{bits:9}),b=0;32>b;)a.lens[b++]=5;v(y,a.lens,0,32,q,0,a.work,{bits:5}),sa=!1}a.lencode=p,a.lenbits=9,a.distcode=q,a.distbits=5}function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new r.Buf8(f.wsize)),d>=f.wsize?(r.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),r.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(r.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=e))),0}function m(a,b){
var c,e,f,g,h,i,j,m,n,o,p,q,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa=0,Ba=new r.Buf8(4),Ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return F;c=a.state,c.mode===V&&(c.mode=W),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,o=i,p=j,xa=C;a:for(;;)switch(c.mode){case K:if(0===c.wrap){c.mode=W;break}for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(2&c.wrap&&35615===m){c.check=0,Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0),m=0,n=0,c.mode=L;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&m)<<8)+(m>>8))%31){a.msg="incorrect header check",c.mode=la;break}if((15&m)!==J){a.msg="unknown compression method",c.mode=la;break}if(m>>>=4,n-=4,wa=(15&m)+8,0===c.wbits)c.wbits=wa;else if(wa>c.wbits){a.msg="invalid window size",c.mode=la;break}c.dmax=1<<wa,a.adler=c.check=1,c.mode=512&m?T:V,m=0,n=0;break;case L:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.flags=m,(255&c.flags)!==J){a.msg="unknown compression method",c.mode=la;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=la;break}c.head&&(c.head.text=m>>8&1),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0)),m=0,n=0,c.mode=M;case M:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.time=m),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,Ba[2]=m>>>16&255,Ba[3]=m>>>24&255,c.check=t(c.check,Ba,4,0)),m=0,n=0,c.mode=N;case N:for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.head&&(c.head.xflags=255&m,c.head.os=m>>8),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0)),m=0,n=0,c.mode=O;case O:if(1024&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length=m,c.head&&(c.head.extra_len=m),512&c.flags&&(Ba[0]=255&m,Ba[1]=m>>>8&255,c.check=t(c.check,Ba,2,0)),m=0,n=0}else c.head&&(c.head.extra=null);c.mode=P;case P:if(1024&c.flags&&(q=c.length,q>i&&(q=i),q&&(c.head&&(wa=c.head.extra_len-c.length,c.head.extra||(c.head.extra=new Array(c.head.extra_len)),r.arraySet(c.head.extra,e,g,q,wa)),512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,c.length-=q),c.length))break a;c.length=0,c.mode=Q;case Q:if(2048&c.flags){if(0===i)break a;q=0;do wa=e[g+q++],c.head&&wa&&c.length<65536&&(c.head.name+=String.fromCharCode(wa));while(wa&&i>q);if(512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,wa)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=R;case R:if(4096&c.flags){if(0===i)break a;q=0;do wa=e[g+q++],c.head&&wa&&c.length<65536&&(c.head.comment+=String.fromCharCode(wa));while(wa&&i>q);if(512&c.flags&&(c.check=t(c.check,e,q,g)),i-=q,g+=q,wa)break a}else c.head&&(c.head.comment=null);c.mode=S;case S:if(512&c.flags){for(;16>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(65535&c.check)){a.msg="header crc mismatch",c.mode=la;break}m=0,n=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=V;break;case T:for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}a.adler=c.check=d(m),m=0,n=0,c.mode=U;case U:if(0===c.havedict)return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,E;a.adler=c.check=1,c.mode=V;case V:if(b===A||b===B)break a;case W:if(c.last){m>>>=7&n,n-=7&n,c.mode=ia;break}for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}switch(c.last=1&m,m>>>=1,n-=1,3&m){case 0:c.mode=X;break;case 1:if(k(c),c.mode=ba,b===B){m>>>=2,n-=2;break a}break;case 2:c.mode=$;break;case 3:a.msg="invalid block type",c.mode=la}m>>>=2,n-=2;break;case X:for(m>>>=7&n,n-=7&n;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if((65535&m)!==(m>>>16^65535)){a.msg="invalid stored block lengths",c.mode=la;break}if(c.length=65535&m,m=0,n=0,c.mode=Y,b===B)break a;case Y:c.mode=Z;case Z:if(q=c.length){if(q>i&&(q=i),q>j&&(q=j),0===q)break a;r.arraySet(f,e,g,q,h),i-=q,g+=q,j-=q,h+=q,c.length-=q;break}c.mode=V;break;case $:for(;14>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(c.nlen=(31&m)+257,m>>>=5,n-=5,c.ndist=(31&m)+1,m>>>=5,n-=5,c.ncode=(15&m)+4,m>>>=4,n-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=la;break}c.have=0,c.mode=_;case _:for(;c.have<c.ncode;){for(;3>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.lens[Ca[c.have++]]=7&m,m>>>=3,n-=3}for(;c.have<19;)c.lens[Ca[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,ya={bits:c.lenbits},xa=v(w,c.lens,0,19,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid code lengths set",c.mode=la;break}c.have=0,c.mode=aa;case aa:for(;c.have<c.nlen+c.ndist;){for(;Aa=c.lencode[m&(1<<c.lenbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(16>sa)m>>>=qa,n-=qa,c.lens[c.have++]=sa;else{if(16===sa){for(za=qa+2;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m>>>=qa,n-=qa,0===c.have){a.msg="invalid bit length repeat",c.mode=la;break}wa=c.lens[c.have-1],q=3+(3&m),m>>>=2,n-=2}else if(17===sa){for(za=qa+3;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qa,n-=qa,wa=0,q=3+(7&m),m>>>=3,n-=3}else{for(za=qa+7;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=qa,n-=qa,wa=0,q=11+(127&m),m>>>=7,n-=7}if(c.have+q>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=la;break}for(;q--;)c.lens[c.have++]=wa}}if(c.mode===la)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=la;break}if(c.lenbits=9,ya={bits:c.lenbits},xa=v(x,c.lens,0,c.nlen,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid literal/lengths set",c.mode=la;break}if(c.distbits=6,c.distcode=c.distdyn,ya={bits:c.distbits},xa=v(y,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,ya),c.distbits=ya.bits,xa){a.msg="invalid distances set",c.mode=la;break}if(c.mode=ba,b===B)break a;case ba:c.mode=ca;case ca:if(i>=6&&j>=258){a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,u(a,p),h=a.next_out,f=a.output,j=a.avail_out,g=a.next_in,e=a.input,i=a.avail_in,m=c.hold,n=c.bits,c.mode===V&&(c.back=-1);break}for(c.back=0;Aa=c.lencode[m&(1<<c.lenbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(ra&&0===(240&ra)){for(ta=qa,ua=ra,va=sa;Aa=c.lencode[va+((m&(1<<ta+ua)-1)>>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=ta+qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=ta,n-=ta,c.back+=ta}if(m>>>=qa,n-=qa,c.back+=qa,c.length=sa,0===ra){c.mode=ha;break}if(32&ra){c.back=-1,c.mode=V;break}if(64&ra){a.msg="invalid literal/length code",c.mode=la;break}c.extra=15&ra,c.mode=da;case da:if(c.extra){for(za=c.extra;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=ea;case ea:for(;Aa=c.distcode[m&(1<<c.distbits)-1],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(0===(240&ra)){for(ta=qa,ua=ra,va=sa;Aa=c.distcode[va+((m&(1<<ta+ua)-1)>>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(n>=ta+qa);){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}m>>>=ta,n-=ta,c.back+=ta}if(m>>>=qa,n-=qa,c.back+=qa,64&ra){a.msg="invalid distance code",c.mode=la;break}c.offset=sa,c.extra=15&ra,c.mode=fa;case fa:if(c.extra){for(za=c.extra;za>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.offset+=m&(1<<c.extra)-1,m>>>=c.extra,n-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=la;break}c.mode=ga;case ga:if(0===j)break a;if(q=p-j,c.offset>q){if(q=c.offset-q,q>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=la;break}q>c.wnext?(q-=c.wnext,oa=c.wsize-q):oa=c.wnext-q,q>c.length&&(q=c.length),pa=c.window}else pa=f,oa=h-c.offset,q=c.length;q>j&&(q=j),j-=q,c.length-=q;do f[h++]=pa[oa++];while(--q);0===c.length&&(c.mode=ca);break;case ha:if(0===j)break a;f[h++]=c.length,j--,c.mode=ca;break;case ia:if(c.wrap){for(;32>n;){if(0===i)break a;i--,m|=e[g++]<<n,n+=8}if(p-=j,a.total_out+=p,c.total+=p,p&&(a.adler=c.check=c.flags?t(c.check,f,p,h-p):s(c.check,f,p,h-p)),p=j,(c.flags?m:d(m))!==c.check){a.msg="incorrect data check",c.mode=la;break}m=0,n=0}c.mode=ja;case ja:
if(c.wrap&&c.flags){for(;32>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}if(m!==(4294967295&c.total)){a.msg="incorrect length check",c.mode=la;break}m=0,n=0}c.mode=ka;case ka:xa=D;break a;case la:xa=G;break a;case ma:return H;case na:default:return F}return a.next_out=h,a.avail_out=j,a.next_in=g,a.avail_in=i,c.hold=m,c.bits=n,(c.wsize||p!==a.avail_out&&c.mode<la&&(c.mode<ia||b!==z))&&l(a,a.output,a.next_out,p-a.avail_out)?(c.mode=ma,H):(o-=a.avail_in,p-=a.avail_out,a.total_in+=o,a.total_out+=p,c.total+=p,c.wrap&&p&&(a.adler=c.check=c.flags?t(c.check,f,p,a.next_out-p):s(c.check,f,p,a.next_out-p)),a.data_type=c.bits+(c.last?64:0)+(c.mode===V?128:0)+(c.mode===ba||c.mode===Y?256:0),(0===o&&0===p||b===z)&&xa===C&&(xa=I),xa)}function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b.window=null),a.state=null,C}function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?F:(c.head=b,b.done=!1,C)):F}var p,q,r=a("../utils/common"),s=a("./adler32"),t=a("./crc32"),u=a("./inffast"),v=a("./inftrees"),w=0,x=1,y=2,z=4,A=5,B=6,C=0,D=1,E=2,F=-2,G=-3,H=-4,I=-5,J=8,K=1,L=2,M=3,N=4,O=5,P=6,Q=7,R=8,S=9,T=10,U=11,V=12,W=13,X=14,Y=15,Z=16,$=17,_=18,aa=19,ba=20,ca=21,da=22,ea=23,fa=24,ga=25,ha=26,ia=27,ja=28,ka=29,la=30,ma=31,na=32,oa=852,pa=592,qa=15,ra=qa,sa=!0;c.inflateReset=g,c.inflateReset2=h,c.inflateResetKeep=f,c.inflateInit=j,c.inflateInit2=i,c.inflate=m,c.inflateEnd=n,c.inflateGetHeader=o,c.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(a,b){"use strict";var c=a("../utils/common"),d=15,e=852,f=592,g=0,h=1,i=2,j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],k=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];b.exports=function(a,b,n,o,p,q,r,s){var t,u,v,w,x,y,z,A,B,C=s.bits,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=null,O=0,P=new c.Buf16(d+1),Q=new c.Buf16(d+1),R=null,S=0;for(D=0;d>=D;D++)P[D]=0;for(E=0;o>E;E++)P[b[n+E]]++;for(H=C,G=d;G>=1&&0===P[G];G--);if(H>G&&(H=G),0===G)return p[q++]=20971520,p[q++]=20971520,s.bits=1,0;for(F=1;G>F&&0===P[F];F++);for(F>H&&(H=F),K=1,D=1;d>=D;D++)if(K<<=1,K-=P[D],0>K)return-1;if(K>0&&(a===g||1!==G))return-1;for(Q[1]=0,D=1;d>D;D++)Q[D+1]=Q[D]+P[D];for(E=0;o>E;E++)0!==b[n+E]&&(r[Q[b[n+E]]++]=E);if(a===g?(N=R=r,y=19):a===h?(N=j,O-=257,R=k,S-=257,y=256):(N=l,R=m,y=-1),M=0,E=0,D=F,x=q,I=H,J=0,v=-1,L=1<<H,w=L-1,a===h&&L>e||a===i&&L>f)return 1;for(var T=0;;){T++,z=D-J,r[E]<y?(A=0,B=r[E]):r[E]>y?(A=R[S+r[E]],B=N[O+r[E]]):(A=96,B=0),t=1<<D-J,u=1<<I,F=u;do u-=t,p[x+(M>>J)+u]=z<<24|A<<16|B|0;while(0!==u);for(t=1<<D-1;M&t;)t>>=1;if(0!==t?(M&=t-1,M+=t):M=0,E++,0===--P[D]){if(D===G)break;D=b[n+r[E]]}if(D>H&&(M&w)!==v){for(0===J&&(J=H),x+=F,I=D-J,K=1<<I;G>I+J&&(K-=P[I+J],!(0>=K));)I++,K<<=1;if(L+=1<<I,a===h&&L>e||a===i&&L>f)return 1;v=M&w,p[v]=H<<24|I<<16|x-q|0}}return 0!==M&&(p[x+M]=D-J<<24|64<<16|0),s.bits=H,0}},{"../utils/common":27}],37:[function(a,b){"use strict";b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b>=0;)a[b]=0}function e(a){return 256>a?ga[a]:ga[256+(a>>>7)]}function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi_buf),a.bi_buf=b>>V-a.bi_valid,a.bi_valid+=c-V):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function h(a,b,c){g(a,c[2*b],c[2*b+1])}function i(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;U>=f;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;T>c;c++)d=a.heap[c],f=i[2*i[2*d+1]+1]+1,f>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g+c[d-1]<<1;for(e=0;b>=e;e++){var h=a[2*e+1];0!==h&&(a[2*e]=i(f[h]++,h))}}function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ia[d]=c,a=0;a<1<<_[d];a++)ha[c++]=d;for(ha[c-1]=d,e=0,d=0;16>d;d++)for(ja[d]=e,a=0;a<1<<aa[d];a++)ga[e++]=d;for(e>>=7;R>d;d++)for(ja[d]=e<<7,a=0;a<1<<aa[d]-7;a++)ga[256+e++]=d;for(b=0;U>=b;b++)f[b]=0;for(a=0;143>=a;)ea[2*a+1]=8,a++,f[8]++;for(;255>=a;)ea[2*a+1]=9,a++,f[9]++;for(;279>=a;)ea[2*a+1]=7,a++,f[7]++;for(;287>=a;)ea[2*a+1]=8,a++,f[8]++;for(l(ea,Q+1,f),a=0;R>a;a++)fa[2*a+1]=5,fa[2*a]=i(a,5);ka=new na(ea,_,P+1,Q,U),la=new na(fa,aa,0,R,U),ma=new na(new Array(0),ba,0,S,W)}function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a.dyn_dtree[2*b]=0;for(b=0;S>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*X]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&q(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!q(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*k]<<8|a.pending_buf[a.d_buf+2*k+1],f=a.pending_buf[a.l_buf+k],k++,0===d?h(a,f,b):(i=ha[f],h(a,i+P+1,b),j=_[i],0!==j&&(f-=ia[i],g(a,f,j)),d--,i=e(d),h(a,i,c),j=aa[i],0!==j&&(d-=ja[i],g(a,d,j)));while(k<a.last_lit);h(a,X,b)}function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,i=b.stat_desc.elems,j=-1;for(a.heap_len=0,a.heap_max=T,c=0;i>c;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)e=a.heap[++a.heap_len]=2>j?++j:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)r(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],r(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,r(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],k(a,b),l(f,j,a.bl_count)}function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;c>=d;d++)e=g,g=b[2*(d+1)+1],++h<i&&e===g||(j>h?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*Y]++):10>=h?a.bl_tree[2*Z]++:a.bl_tree[2*$]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3),d=0;c>=d;d++)if(e=i,i=b[2*(d+1)+1],!(++j<k&&e===i)){if(l>j){do h(a,e,a.bl_tree);while(0!==--j)}else 0!==e?(e!==f&&(h(a,e,a.bl_tree),j--),h(a,Y,a.bl_tree),g(a,j-3,2)):10>=j?(h(a,Z,a.bl_tree),g(a,j-3,3)):(h(a,$,a.bl_tree),g(a,j-11,7));j=0,f=e,0===i?(k=138,l=3):e===i?(k=6,l=3):(k=7,l=4)}}function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtree,a.d_desc.max_code),
t(a,a.bl_desc),b=S-1;b>=3&&0===a.bl_tree[2*ca[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e;e++)g(a,a.bl_tree[2*ca[e]+1],3);v(a,a.dyn_ltree,b-1),v(a,a.dyn_dtree,c-1)}function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return G;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return H;for(b=32;P>b;b++)if(0!==a.dyn_ltree[2*b])return H;return G}function z(a){pa||(m(),pa=!0),a.l_desc=new oa(a.dyn_ltree,ka),a.d_desc=new oa(a.dyn_dtree,la),a.bl_desc=new oa(a.bl_tree,ma),a.bi_buf=0,a.bi_valid=0,n(a)}function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}function B(a){g(a,K<<1,3),h(a,X,ea),j(a)}function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm.data_type=y(a)),t(a,a.l_desc),t(a,a.d_desc),h=w(a),e=a.opt_len+3+7>>>3,f=a.static_len+3+7>>>3,e>=f&&(e=f)):e=f=c+5,e>=c+4&&-1!==b?A(a,b,c,d):a.strategy===F||f===e?(g(a,(K<<1)+(d?1:0),3),s(a,ea,fa)):(g(a,(L<<1)+(d?1:0),3),x(a,a.l_desc.max_code+1,a.d_desc.max_code+1,h+1),s(a,a.dyn_ltree,a.dyn_dtree)),n(a),d&&o(a)}function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(ha[c]+P+1)]++,a.dyn_dtree[2*e(b)]++),a.last_lit===a.lit_bufsize-1}var E=a("../utils/common"),F=4,G=0,H=1,I=2,J=0,K=1,L=2,M=3,N=258,O=29,P=256,Q=P+1+O,R=30,S=19,T=2*Q+1,U=15,V=16,W=7,X=256,Y=16,Z=17,$=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],aa=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ba=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ca=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],da=512,ea=new Array(2*(Q+2));d(ea);var fa=new Array(2*R);d(fa);var ga=new Array(da);d(ga);var ha=new Array(N-M+1);d(ha);var ia=new Array(O);d(ia);var ja=new Array(R);d(ja);var ka,la,ma,na=function(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length},oa=function(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b},pa=!1;c._tr_init=z,c._tr_stored_block=A,c._tr_flush_block=C,c._tr_tally=D,c._tr_align=B},{"../utils/common":27}],39:[function(a,b){"use strict";function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=c},{}]},{},[9])(9)}),jt.EmbeddedFiles={get:function(a){var b=this.compressedContent[a];if(void 0!==b)return{name:a,content:jt.Util.uncompressStringBase64ToInt8BitArray(b)};var c=this.diffsContent[a];if(void 0!==c){var d=this.get(c.based);if(void 0!==d){var e=d.content;for(var f in c.diffs)for(var g=c.diffs[f],h=0;h<g.length;++h)e[(0|f)+h]=g[h];return{name:a,content:e}}}},embedFileCompressedContent:function(a,b){this.compressedContent[a]=b},embedFileDiff:function(a,b){this.diffsContent[a]=b},compressedContent:{},diffsContent:{}},jt.MultiDownloader=function(a,b,c,d){"use strict";function e(a){if(a){var b=a.url.trim().split(/\s*\|\s*/);a.filesToLoad=b.length,a.filesContent=new Array(a.filesToLoad);for(var c=0;c<b.length;++c){var d=b[c];"@"===d[0]?f(a,c,d):g(a,c,d)}}}function f(a,b,c){jt.Util.log("Reading Embedded file: "+c);var d=jt.EmbeddedFiles.get(c.substr(1));void 0!==d?h(a,b,d.content):i(a,"Embedded file not found!")}function g(a,b,c,e){var f=k(c)?l(c):c,g=new XMLHttpRequest;g.open("GET",f,!0),g.responseType="arraybuffer",g.timeout=void 0!==d?d:s,g.onload=function(){200===g.status?h(a,b,new Uint8Array(g.response)):g.onerror()},g.onerror=g.ontimeout=function(){i(a,""+g.status+" "+g.statusText)},jt.Util.log("Reading file from: "+c),g.send()}function h(a,b,c){a.filesContent[b]=c,--a.filesToLoad>0||(a.success=!0,a.content=jt.Util.arraysConcatAll(a.filesContent),a.onSuccess&&a.onSuccess(a),j())}function i(a,b){a.success=!1,a.error=b;var d="Could not load file: "+a.url+"\nError: "+b;a.onError?(jt.Util.error(d),a.onError(a)):c||jt.Util.message(d),j()}function j(){if(!q){for(var d=0;d<a.length;d++)if(a[d]&&void 0===a[d].success)return;for(q=!0,n(),d=0;d<a.length;d++)if(a[d]&&!a[d].success)return void(c&&c(a));b&&b(a)}}function k(a){return a&&(0===a.indexOf("http:")||0===a.indexOf("https:"))}function l(a){return(Javatari.PROXY_DOWNLOADER||"")+a}function m(){Javatari.room.isLoading||(p=window.setTimeout(function(){p=null,o=!0,Javatari.room.setLoading(!0)},r))}function n(){p&&(window.clearTimeout(p),p=null),o&&(o=!1,Javatari.room.setLoading(!1))}this.start=function(){if(a&&0!==a.length){m();for(var b=0;b<a.length;b++)e(a[b])}j()};var o=!1,p=null,q=!1,r=1e3,s=15e3},jt.MultiFileReader=function(a,b,c,d){"use strict";function e(a){if(a){jt.Util.log("Reading file: "+a.name);var b=new FileReader;b.onload=function(b){a.success=!0,a.content=new Uint8Array(b.target.result),f()},b.onerror=function(b){a.success=!1,a.error=b.target.error.name,f()},b.readAsArrayBuffer(a)}}function f(){if(!g){for(var d=0;d<a.length;d++)if(a[d]&&void 0===a[d].success)return;for(g=!0,d=0;d<a.length;d++)if(a[d]&&!a[d].success)return c&&c(a,a[d].error),a;b&&b(a)}}this.start=function(){if(a&&0!==a.length){d||(d=h);for(var g=0,i=0;i<a.length;i++)g+=a[i].size;if(g>d){var j="Maximum total size limit exceeded: "+(d/1024|0)+"KB";return void(c&&c(a,j,!0))}for(i=0;i<a.length;i++)e(a[i]);f()}else b(a)};var g=!1,h=5898240},jt.VideoStandard={NTSC:{name:"NTSC",desc:"NTSC 60Hz",totalWidth:228,totalHeight:262,defaultOriginYPct:10.8,defaultHeightPct:85.2,targetFPS:60,pulldowns:{60:{standard:"NTSC",frequency:60,linesPerCycle:262,firstStepCycleLinesAdjust:0,cadence:[1],steps:1},120:{standard:"NTSC",frequency:120,linesPerCycle:131,firstStepCycleLinesAdjust:0,cadence:[0,1],steps:2},50:{standard:"NTSC",frequency:50,linesPerCycle:314,firstStepCycleLinesAdjust:2,cadence:[1,1,1,1,2],steps:5},100:{standard:"NTSC",frequency:100,linesPerCycle:157,firstStepCycleLinesAdjust:2,cadence:[0,1,0,1,1,0,1,0,1,1],steps:10},TIMER:{standard:"NTSC",frequency:62.5,linesPerCycle:262,firstStepCycleLinesAdjust:0,cadence:[1],steps:1}}},PAL:{name:"PAL",desc:"PAL 50Hz",totalWidth:228,totalHeight:312,defaultOriginYPct:13.5,defaultHeightPct:77.3,targetFPS:50,pulldowns:{50:{standard:"PAL",frequency:50,linesPerCycle:313,firstStepCycleLinesAdjust:0,cadence:[1],steps:1},100:{standard:"PAL",frequency:100,linesPerCycle:156,firstStepCycleLinesAdjust:1,cadence:[0,1],steps:2},60:{standard:"PAL",frequency:60,linesPerCycle:261,firstStepCycleLinesAdjust:-1,cadence:[0,1,1,1,1,1],steps:6},120:{standard:"PAL",frequency:120,linesPerCycle:130,firstStepCycleLinesAdjust:5,cadence:[0,0,1,0,1,0,0,1,0,1,0,1],steps:12},TIMER:{standard:"PAL",frequency:50,linesPerCycle:313,firstStepCycleLinesAdjust:0,cadence:[1],steps:1}}}},jt.VideoSignal=function(){"use strict";this.connectMonitor=function(a){this.monitor=a},this.setVideoStandard=function(a){this.monitor&&this.monitor.setVideoStandard(a)},this.nextLine=function(a,b){return this.monitor.nextLine(a,b)},this.finishFrame=function(){this.monitor.refresh()},this.signalOff=function(){this.monitor&&this.monitor.videoSignalOff()},this.showOSD=function(a,b){this.monitor&&this.monitor.showOSD(a,b)},this.toggleShowInfo=function(){this.monitor.toggleShowInfo()},this.monitor=null},jt.AudioSignal=function(a,b,c,d){"use strict";function e(){if(n>0){if(p<=0)return void(n=0);g(),--n,--p}}function f(){var a=s*Javatari.AUDIO_SIGNAL_BUFFER_RATIO+k*Javatari.AUDIO_SIGNAL_ADD_FRAMES|0;r.length=a,a>o&&jt.Util.arrayFill(r,0,o,a),o=a,t.bufferSize=o,q=o-2,j.flush()}function g(){r[l]=b.nextSample()*d,++l>=o&&(l=0)}function h(){r[l]=0,++l>=o&&(l=0)}function i(a,b){if(b)for(var c=a;c>0;c-=1)h();else for(var d=a;d>0;d-=1)g();p-=a}var j=this;this.flush=function(){l=0,m=0,p=q},this.setFps=function(a){k=c/a|0,f()},this.audioFinishFrame=function(){if(n>0)for(;n>0;)e();n=k},this.retrieveSamples=function(a,b){
var c=q-p,d=a-c;d>0&&(d>p&&(d=p),i(d,b)),t.start=m;var e=c+d;return p+=e,m+=e,m>=o&&(m-=o),t},this.audioClockPulse=e,this.getSampleRate=function(){return c},this.toString=function(){return"AudioSignal "+a},this.setAudioMonitorBufferSize=function(a){s=a,f()},this.name=a;var k,l=0,m=0,n=0,o=0,p=0,q=0,r=jt.Util.arrayFill(new Array(o),0),s=0,t={buffer:r,bufferSize:o,start:0}},jt.M6502=function(){"use strict";function a(){return Jb(function(){Cb(Ba>127),Ba=Ba<<1&255,zb(Ba),Ab(Ba)})}function b(){return Jb(function(){Ja=0})}function c(){return Jb(function(){Ga=0})}function d(){return Jb(function(){Ha=0})}function e(){return Jb(function(){Fa=0})}function f(){return Jb(function(){Ca=Ca-1&255,zb(Ca),Ab(Ca)})}function g(){return Jb(function(){Da=Da-1&255,zb(Da),Ab(Da)})}function h(){return Jb(function(){Ca=Ca+1&255,zb(Ca),Ab(Ca)})}function i(){return Jb(function(){Da=Da+1&255,zb(Da),Ab(Da)})}function j(){return Jb(function(){Ja=1&Ba,Ba>>>=1,zb(Ba),Ea=0})}function k(){return Jb(function(){})}function l(){return Jb(function(){var a=Ba>127;Ba=255&(Ba<<1|Ja),Cb(a),zb(Ba),Ab(Ba)})}function m(){return Jb(function(){var a=1&Ba;Ba=Ba>>>1|Ja<<7,Cb(a),zb(Ba),Ab(Ba)})}function n(){return Jb(function(){Ja=1})}function o(){return Jb(function(){Ga=1})}function p(){return Jb(function(){Ha=1})}function q(){return Jb(function(){Ca=Ba,zb(Ca),Ab(Ca)})}function r(){return Jb(function(){Da=Ba,zb(Da),Ab(Da)})}function s(){return Jb(function(){Ca=Aa,zb(Ca),Ab(Ca)})}function t(){return Jb(function(){Ba=Ca,zb(Ba),Ab(Ba)})}function u(){return Jb(function(){Aa=Ca})}function v(){return Jb(function(){Ba=Da,zb(Ba),Ab(Ba)})}function w(){return[_a,function(){Ib("KIL/HLT/JAM")},function(){Ka--}]}function x(a){return a(function(){Ib("NOP/DOP")})}function y(a){return a(function(){if(Ga){var a=Ma,b=(15&Ba)+(15&a)+Ja;b>9&&(b+=6);var c=(Ba>>4)+(a>>4)+(b>15)<<4;zb(Ba+a+Ja&255),Ab(c),Bb((Ba^c)&~(Ba^a)&128),c>159&&(c+=96),Cb(c>255),Ba=255&(c|15&b)}else{var d=Ba+Ma+Ja;Cb(d>255),Bb((Ba^d)&(Ma^d)&128),Ba=255&d,zb(Ba),Ab(Ba)}})}function z(a){return a(function(){Ba&=Ma,zb(Ba),Ab(Ba)})}function A(a){return a(function(){var a=Ma;zb(Ba&a),Bb(64&a),Ab(a)})}function B(a){return a(function(){var a=Ba-Ma&255;Cb(Ba>=Ma),zb(a),Ab(a)})}function C(a){return a(function(){var a=Ca-Ma&255;Cb(Ca>=Ma),zb(a),Ab(a)})}function D(a){return a(function(){var a=Da-Ma&255;Cb(Da>=Ma),zb(a),Ab(a)})}function E(a){return a(function(){Ba^=Ma,zb(Ba),Ab(Ba)})}function F(a){return a(function(){Ba=Ma,zb(Ba),Ab(Ba)})}function G(a){return a(function(){Ca=Ma,zb(Ca),Ab(Ca)})}function H(a){return a(function(){Da=Ma,zb(Da),Ab(Da)})}function I(a){return a(function(){Ba|=Ma,zb(Ba),Ab(Ba)})}function J(a){return a(function(){if(Ga){var a=Ma,b=(15&Ba)-(15&a)-(1-Ja),c=(Ba>>4)-(a>>4)-(b<0);b<0&&(b-=6),c<0&&(c-=6);var d=Ba-a-(1-Ja);Cb(256&~d),Bb((Ba^a)&(Ba^d)&128),zb(255&d),Ab(d),Ba=255&(c<<4|15&b)}else a=255&~Ma,d=Ba+a+Ja,Cb(d>255),Bb((Ba^d)&(a^d)&128),Ba=255&d,zb(Ba),Ab(Ba)})}function K(a){return a(function(){Ib("ANC"),Ba&=Ma,zb(Ba),Ea=Ja=128&Ba?1:0})}function L(a){return a(function(){Ib("ANE")})}function M(a){return a(function(){Ib("ARR");var a=Ba&Ma,b=Ja?128:0;a=a>>>1|b,Ba=a,zb(a),Ab(a);var c=96&Ba;96==c?(Ja=1,Fa=0):0==c?(Ja=0,Fa=0):32==c?(Ja=0,Fa=1):64==c&&(Ja=1,Fa=1)})}function N(a){return a(function(){Ib("ASR");var a=Ba&Ma;Ja=1&a,a>>>=1,Ba=a,zb(a),Ea=0})}function O(a){return a(function(){Ib("LAS");var a=Aa&Ma;Ba=a,Ca=a,Aa=a,zb(a),Ab(a)})}function P(a){return a(function(){Ib("LAX");var a=Ma;Ba=a,Ca=a,zb(a),Ab(a)})}function Q(a){return a(function(){Ib("LXA");var a=Ba&Ma;Ba=a,Ca=a,zb(a),Ab(a)})}function R(a){return a(function(){Ib("SBX");var a=Ba&Ca,b=Ma,c=a-b&255;Ca=c,Cb(a>=b),zb(c),Ab(c)})}function S(a){return a(function(){Ma=Ba})}function T(a){return a(function(){Ma=Ca})}function U(a){return a(function(){Ma=Da})}function V(a){return a(function(){Ib("SAX"),Ma=Ba&Ca})}function W(a){return a(function(){Ib("SHA"),Ma=Ba&Ca&(Oa>>>8)+1&255})}function X(a){return a(function(){Ib("SHS");var a=Ba&Ca;Aa=a,Ma=a&(Oa>>>8)+1&255})}function Y(a){return a(function(){Ib("SHX"),Ma=Ca&(Oa>>>8)+1&255})}function Z(a){return a(function(){Ib("SHY"),Ma=Da&(Oa>>>8)+1&255})}function $(a){return a(function(){Cb(Ma>127);var a=Ma<<1&255;Ma=a,zb(a),Ab(a)})}function _(a){return a(function(){var a=Ma-1&255;Ma=a,zb(a),Ab(a)})}function aa(a){return a(function(){var a=Ma+1&255;Ma=a,zb(a),Ab(a)})}function ba(a){return a(function(){Ja=1&Ma,Ma>>>=1,zb(Ma),Ea=0})}function ca(a){return a(function(){var a=Ma>127,b=255&(Ma<<1|Ja);Ma=b,Cb(a),zb(b),Ab(b)})}function da(a){return a(function(){var a=1&Ma,b=Ma>>>1|Ja<<7;Ma=b,Cb(a),zb(b),Ab(b)})}function ea(a){return a(function(){Ib("DCP");var a=Ma-1&255;Ma=a,a=Ba-a,Cb(a>=0),zb(a),Ab(a)})}function fa(a){return a(function(){if(Ib("ISB"),Ma=Ma+1&255,Ga){var a=Ma,b=(15&Ba)-(15&a)-(1-Ja),c=(Ba>>4)-(a>>4)-(b<0);b<0&&(b-=6),c<0&&(c-=6);var d=Ba-a-(1-Ja);Cb(256&~d),Bb((Ba^a)&(Ba^d)&128),zb(255&d),Ab(d),Ba=255&(c<<4|15&b)}else a=255&~Ma,d=Ba+a+Ja,Cb(d>255),Bb((Ba^d)&(a^d)&128),Ba=255&d,zb(Ba),Ab(Ba)})}function ga(a){return a(function(){Ib("RLA");var a=Ma,b=Ja;Cb(128&a),a=255&(a<<1|b),Ma=a,Ba&=a,zb(a),Ab(a)})}function ha(a){return a(function(){Ib("RRA");var a=Ma,b=Ja?128:0;if(Cb(1&a),a=a>>>1|b,Ma=a,Ga){var c=Ma,d=(15&Ba)+(15&c)+Ja;d>9&&(d+=6);var e=(Ba>>4)+(c>>4)+(d>15)<<4;zb(Ba+c+Ja&255),Ab(e),Bb((Ba^e)&~(Ba^c)&128),e>159&&(e+=96),Cb(e>255),Ba=255&(e|15&d)}else{var f=Ba+Ma+Ja;Cb(f>255),Bb((Ba^f)&(Ma^f)&128),Ba=255&f,zb(Ba),Ab(Ba)}})}function ia(a){return a(function(){Ib("SLO");var a=Ma;Cb(128&a),a=a<<1&255,Ma=a,a|=Ba,Ba=a,zb(a),Ab(a)})}function ja(a){return a(function(){Ib("SRE");var a=Ma;Cb(1&a),a>>>=1,Ma=a,a=255&(Ba^a),Ba=a,zb(a),Ab(a)})}function ka(){return[_a,bb,function(){Fb(Ba)},ab]}function la(){return[_a,bb,function(){Fb(Gb())},ab]}function ma(){return[_a,bb,Eb,function(){Ba=Db(),zb(Ba),Ab(Ba)},ab]}function na(){return[_a,bb,Eb,function(){Hb(Db())},ab]}function oa(){return[_a,db,Eb,function(){Fb(za>>>8&255)},function(){Fb(255&za)},eb,function(){za=Na,ab()}]}function pa(){return[_a,sb,function(){va.debug&&va.breakpoint("BRK "+Ma),Fb(za>>>8&255)},function(){Fb(255&za)},function(){Fb(Gb())},function(){Na=wa.read(Ua)},function(){Na|=wa.read(Ua+1)<<8},function(){za=Na,ab()}]}function qa(){return[_a,bb,Eb,function(){Hb(Db())},function(){Na=Db()},function(){Na|=Db()<<8},function(){za=Na,ab()}]}function ra(){return[_a,bb,Eb,function(){Na=Db()},function(){Na|=Db()<<8},function(){za=Na,sb()},ab]}function sa(){return[_a,db,eb,function(){za=Na,ab()}]}function ta(){return[_a,pb,qb,jb,function(){rb(),kb()},function(){za=Oa,ab()}]}function ua(a,b){var c;return c=a===Za?function(){return Ia===b}:a===Xa?function(){return Ea===b}:a===$a?function(){return Ja===b}:function(){return Fa===b},[_a,cb,function(){c()?(bb(),xb()):ab()},function(){Sa?(bb(),yb()):ab()},ab]}var va=this;this.powerOn=function(){this.reset()},this.powerOff=function(){},this.clockPulse=function(){ya&&(Ka++,xa[Ka]())},this.connectBus=function(a){wa=a},this.setRDY=function(a){ya=a},this.reset=function(){Ha=1,Ka=-1,xa=[_a],za=wa.read(Ta)|wa.read(Ta+1)<<8,this.setRDY(!0)};var wa,xa,ya=!1,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=-1,La=-1,Ma=0,Na=0,Oa=0,Pa=!1,Qa=0,Ra=0,Sa=0,Ta=65532,Ua=65534,Va=0,Wa=1,Xa=7,Ya=6,Za=1,$a=0;this.debug=!1,this.trace=!1;var _a=function(){La=wa.read(za),xa=cc[La],Ka=0,za++},ab=_a,bb=function(){wa.read(za)},cb=function(){Ra=wa.read(za),za++},db=function(){Na=wa.read(za),za++},eb=function(){Na|=wa.read(za)<<8,za++},fb=function(){Na=wa.read(Oa)},gb=function(){Na|=wa.read(Oa)<<8},hb=function(){Oa=wa.read(za),za++},ib=function(){Oa|=wa.read(za)<<8,za++},jb=function(){Oa=wa.read(Qa)},kb=function(){Oa|=wa.read(Qa)<<8},lb=function(){var a=(255&Oa)+Ca;Pa=a>255,Oa=65280&Oa|255&a},mb=function(){var a=(255&Oa)+Da;Pa=a>255,Oa=65280&Oa|255&a},nb=function(){var a=(255&Oa)+1;Pa=a>255,Oa=65280&Oa|255&a},ob=function(){Pa&&(Oa=Oa+256&65535)},pb=function(){Qa=wa.read(za),za++},qb=function(){
Qa|=wa.read(za)<<8,za++},rb=function(){var a=(255&Qa)+1;Qa=65280&Qa|255&a},sb=function(){Ma=wa.read(za),za++},tb=function(){Ma=wa.read(Na)},ub=function(){Ma=wa.read(Oa)},vb=function(){wa.write(Na,Ma)},wb=function(){wa.write(Oa,Ma)},xb=function(){var a=255&za,b=a+Ra&255;Sa=Ra>127?b>a?-256:0:b<a?256:0,za=65280&za|b},yb=function(){za=za+Sa&65535},zb=function(a){Ia=0===a?1:0},Ab=function(a){Ea=128&a?1:0},Bb=function(a){Fa=a?1:0},Cb=function(a){Ja=a?1:0},Db=function(){return Aa=Aa+1&255,wa.read(256+Aa)},Eb=function(){return wa.read(256+Aa)},Fb=function(a){wa.write(256+Aa,a),Aa=Aa-1&255},Gb=function(){return Ea<<7|Fa<<6|48|Ga<<3|Ha<<2|Ia<<1|Ja},Hb=function(a){Ea=a>>>7,Fa=a>>>6&1,Ga=a>>>3&1,Ha=a>>>2&1,Ia=a>>>1&1,Ja=1&a},Ib=function(a){va.debug&&va.breakpoint("Illegal Opcode: "+a)},Jb=function(a){return[_a,bb,function(){a(),ab()}]},Kb=function(a){return[_a,sb,function(){a(),ab()}]},Lb=function(a){return[_a,db,tb,function(){a(),ab()}]},Mb=function(a){return[_a,db,eb,tb,function(){a(),ab()}]},Nb=function(a){return[_a,hb,ub,function(){lb(),fb()},function(){nb(),gb()},tb,function(){a(),ab()}]},Ob=function(a){var b=a===Va?lb:mb;return function(a){return[_a,hb,ib,function(){b(),ub(),ob()},function(){Pa?ub():(a(),ab())},function(){a(),ab()}]}},Pb=function(a){var b=a===Va?lb:mb;return function(a){return[_a,hb,ub,function(){b(),ub()},function(){a(),ab()}]}},Qb=function(a){return[_a,pb,jb,function(){rb(),kb()},function(){mb(),ub(),ob()},function(){Pa?ub():(a(),ab())},function(){a(),ab()}]},Rb=function(a){return[_a,db,function(){a(),vb()},ab]},Sb=function(a){return[_a,db,eb,function(){a(),vb()},ab]},Tb=function(a){return[_a,hb,ub,function(){lb(),fb()},function(){nb(),gb()},function(){a(),vb()},ab]},Ub=function(a){var b=a===Va?lb:mb;return function(a){return[_a,hb,ib,function(){b(),ub(),ob()},function(){a(),wb()},ab]}},Vb=function(a){var b=a===Va?lb:mb;return function(a){return[_a,hb,ub,function(){b(),a(),wb()},ab]}},Wb=function(a){return[_a,pb,jb,function(){rb(),kb()},function(){mb(),ub(),ob()},function(){a(),wb()},ab]},Xb=function(a){return[_a,db,tb,vb,function(){a(),vb()},ab]},Yb=function(a){return[_a,db,eb,tb,vb,function(){a(),vb()},ab]},Zb=function(a){var b=a===Va?lb:mb;return function(a){return[_a,hb,ub,function(){b(),ub()},wb,function(){a(),wb()},ab]}},$b=function(a){var b=a===Va?lb:mb;return function(a){return[_a,hb,ib,function(){b(),ub(),ob()},ub,wb,function(){a(),wb()},ab]}},_b=function(a){return[_a,hb,ub,function(){lb(),fb()},function(){nb(),gb()},tb,vb,function(){a(),vb()},ab]},ac=function(a){return[_a,pb,jb,function(){rb(),kb()},function(){mb(),ub(),ob()},ub,wb,function(){a(),wb()},ab]},bc=new Array(256),cc=new Array(256);bc[0]="BRK",cc[0]=pa(),bc[1]="ORA",cc[1]=I(Nb),bc[2]="uKIL",cc[2]=w(),bc[3]="uSLO",cc[3]=ia(_b),bc[4]="uNOP",cc[4]=x(Lb),bc[5]="ORA",cc[5]=I(Lb),bc[6]="ASL",cc[6]=$(Xb),bc[7]="uSLO",cc[7]=ia(Xb),bc[8]="PHP",cc[8]=la(),bc[9]="ORA",cc[9]=I(Kb),bc[10]="ASL",cc[10]=a(),bc[11]="uANC",cc[11]=K(Kb),bc[12]="uNOP",cc[12]=x(Mb),bc[13]="ORA",cc[13]=I(Mb),bc[14]="ASL",cc[14]=$(Yb),bc[15]="uSLO",cc[15]=ia(Yb),bc[16]="BPL",cc[16]=ua(Xa,0),bc[17]="ORA",cc[17]=I(Qb),bc[18]="uKIL",cc[18]=w(),bc[19]="uSLO",cc[19]=ia(ac),bc[20]="uNOP",cc[20]=x(Pb(Va)),bc[21]="ORA",cc[21]=I(Pb(Va)),bc[22]="ASL",cc[22]=$(Zb(Va)),bc[23]="uSLO",cc[23]=ia(Zb(Va)),bc[24]="CLC",cc[24]=b(),bc[25]="ORA",cc[25]=I(Ob(Wa)),bc[26]="uNOP",cc[26]=x(Jb),bc[27]="uSLO",cc[27]=ia($b(Wa)),bc[28]="uNOP",cc[28]=x(Ob(Va)),bc[29]="ORA",cc[29]=I(Ob(Va)),bc[30]="ASL",cc[30]=$($b(Va)),bc[31]="uSLO",cc[31]=ia($b(Va)),bc[32]="JSR",cc[32]=oa(),bc[33]="AND",cc[33]=z(Nb),bc[34]="uKIL",cc[34]=w(),bc[35]="uRLA",cc[35]=ga(_b),bc[36]="BIT",cc[36]=A(Lb),bc[37]="AND",cc[37]=z(Lb),bc[38]="ROL",cc[38]=ca(Xb),bc[39]="uRLA",cc[39]=ga(Xb),bc[40]="PLP",cc[40]=na(),bc[41]="AND",cc[41]=z(Kb),bc[42]="ROL",cc[42]=l(),bc[43]="uANC",cc[43]=K(Kb),bc[44]="BIT",cc[44]=A(Mb),bc[45]="AND",cc[45]=z(Mb),bc[46]="ROL",cc[46]=ca(Yb),bc[47]="uRLA",cc[47]=ga(Yb),bc[48]="BMI",cc[48]=ua(Xa,1),bc[49]="AND",cc[49]=z(Qb),bc[50]="uKIL",cc[50]=w(),bc[51]="uRLA",cc[51]=ga(ac),bc[52]="uNOP",cc[52]=x(Pb(Va)),bc[53]="AND",cc[53]=z(Pb(Va)),bc[54]="ROL",cc[54]=ca(Zb(Va)),bc[55]="uRLA",cc[55]=ga(Zb(Va)),bc[56]="SEC",cc[56]=n(),bc[57]="AND",cc[57]=z(Ob(Wa)),bc[58]="uNOP",cc[58]=x(Jb),bc[59]="uRLA",cc[59]=ga($b(Wa)),bc[60]="uNOP",cc[60]=x(Ob(Va)),bc[61]="AND",cc[61]=z(Ob(Va)),bc[62]="ROL",cc[62]=ca($b(Va)),bc[63]="uRLA",cc[63]=ga($b(Va)),bc[64]="RTI",cc[64]=qa(),bc[65]="EOR",cc[65]=E(Nb),bc[66]="uKIL",cc[66]=w(),bc[67]="uSRE",cc[67]=ja(_b),bc[68]="uNOP",cc[68]=x(Lb),bc[69]="EOR",cc[69]=E(Lb),bc[70]="LSR",cc[70]=ba(Xb),bc[71]="uSRE",cc[71]=ja(Xb),bc[72]="PHA",cc[72]=ka(),bc[73]="EOR",cc[73]=E(Kb),bc[74]="LSR",cc[74]=j(),bc[75]="uASR",cc[75]=N(Kb),bc[76]="JMP",cc[76]=sa(),bc[77]="EOR",cc[77]=E(Mb),bc[78]="LSR",cc[78]=ba(Yb),bc[79]="uSRE",cc[79]=ja(Yb),bc[80]="BVC",cc[80]=ua(Ya,0),bc[81]="EOR",cc[81]=E(Qb),bc[82]="uKIL",cc[82]=w(),bc[83]="uSRE",cc[83]=ja(ac),bc[84]="uNOP",cc[84]=x(Pb(Va)),bc[85]="EOR",cc[85]=E(Pb(Va)),bc[86]="LSR",cc[86]=ba(Zb(Va)),bc[87]="uSRE",cc[87]=ja(Zb(Va)),bc[88]="CLI",cc[88]=d(),bc[89]="EOR",cc[89]=E(Ob(Wa)),bc[90]="uNOP",cc[90]=x(Jb),bc[91]="uSRE",cc[91]=ja($b(Wa)),bc[92]="uNOP",cc[92]=x(Ob(Va)),bc[93]="EOR",cc[93]=E(Ob(Va)),bc[94]="LSR",cc[94]=ba($b(Va)),bc[95]="uSRE",cc[95]=ja($b(Va)),bc[96]="RTS",cc[96]=ra(),bc[97]="ADC",cc[97]=y(Nb),bc[98]="uKIL",cc[98]=w(),bc[99]="uRRA",cc[99]=ha(_b);bc[100]="uNOP";cc[100]=x(Lb),bc[101]="ADC",cc[101]=y(Lb),bc[102]="ROR",cc[102]=da(Xb),bc[103]="uRRA",cc[103]=ha(Xb),bc[104]="PLA",cc[104]=ma(),bc[105]="ADC",cc[105]=y(Kb),bc[106]="ROR",cc[106]=m(),bc[107]="uARR",cc[107]=M(Kb),bc[108]="JMP",cc[108]=ta(),bc[109]="ADC",cc[109]=y(Mb),bc[110]="ROR",cc[110]=da(Yb),bc[111]="uRRA",cc[111]=ha(Yb),bc[112]="BVS",cc[112]=ua(Ya,1),bc[113]="ADC",cc[113]=y(Qb),bc[114]="uKIL",cc[114]=w(),bc[115]="uRRA",cc[115]=ha(ac),bc[116]="uNOP",cc[116]=x(Pb(Va)),bc[117]="ADC",cc[117]=y(Pb(Va)),bc[118]="ROR",cc[118]=da(Zb(Va)),bc[119]="uRRA",cc[119]=ha(Zb(Va)),bc[120]="SEI",cc[120]=p(),bc[121]="ADC",cc[121]=y(Ob(Wa)),bc[122]="uNOP",cc[122]=x(Jb),bc[123]="uRRA",cc[123]=ha($b(Wa)),bc[124]="uNOP",cc[124]=x(Ob(Va)),bc[125]="ADC",cc[125]=y(Ob(Va)),bc[126]="ROR",cc[126]=da($b(Va)),bc[127]="uRRA",cc[127]=ha($b(Va)),bc[128]="uNOP",cc[128]=x(Kb),bc[129]="STA",cc[129]=S(Tb),bc[130]="uNOP",cc[130]=x(Kb),bc[131]="uSAX",cc[131]=V(Tb),bc[132]="STY",cc[132]=U(Rb),bc[133]="STA",cc[133]=S(Rb),bc[134]="STX",cc[134]=T(Rb),bc[135]="uSAX",cc[135]=V(Rb),bc[136]="DEY",cc[136]=g(),bc[137]="uNOP",cc[137]=x(Kb),bc[138]="TXA",cc[138]=t(),bc[139]="uANE",cc[139]=L(Kb),bc[140]="STY",cc[140]=U(Sb),bc[141]="STA",cc[141]=S(Sb),bc[142]="STX",cc[142]=T(Sb),bc[143]="uSAX",cc[143]=V(Sb),bc[144]="BCC",cc[144]=ua($a,0),bc[145]="STA",cc[145]=S(Wb),bc[146]="uKIL",cc[146]=w(),bc[147]="uSHA",cc[147]=W(Wb),bc[148]="STY",cc[148]=U(Vb(Va)),bc[149]="STA",cc[149]=S(Vb(Va)),bc[150]="STX",cc[150]=T(Vb(Wa)),bc[151]="uSAX",cc[151]=V(Vb(Wa)),bc[152]="TYA",cc[152]=v(),bc[153]="STA",cc[153]=S(Ub(Wa)),bc[154]="TXS",cc[154]=u(),bc[155]="uSHS",cc[155]=X(Ub(Wa)),bc[156]="uSHY",cc[156]=Z(Ub(Va)),bc[157]="STA",cc[157]=S(Ub(Va)),bc[158]="uSHX",cc[158]=Y(Ub(Wa)),bc[159]="uSHA",cc[159]=W(Ub(Wa)),bc[160]="LDY",cc[160]=H(Kb),bc[161]="LDA",cc[161]=F(Nb),bc[162]="LDX",cc[162]=G(Kb),bc[163]="uLAX",cc[163]=P(Nb),bc[164]="LDY",cc[164]=H(Lb),bc[165]="LDA",cc[165]=F(Lb),bc[166]="LDX",cc[166]=G(Lb),bc[167]="uLAX",cc[167]=P(Lb),bc[168]="TAY",cc[168]=r(),bc[169]="LDA",cc[169]=F(Kb),bc[170]="TAX",cc[170]=q(),bc[171]="uLXA",cc[171]=Q(Kb),bc[172]="LDY",cc[172]=H(Mb),bc[173]="LDA",cc[173]=F(Mb),bc[174]="LDX",cc[174]=G(Mb),bc[175]="uLAX",cc[175]=P(Mb),bc[176]="BCS",cc[176]=ua($a,1),bc[177]="LDA",cc[177]=F(Qb),bc[178]="uKIL",cc[178]=w(),bc[179]="uLAX",cc[179]=P(Qb),bc[180]="LDY",cc[180]=H(Pb(Va)),bc[181]="LDA",cc[181]=F(Pb(Va)),bc[182]="LDX",cc[182]=G(Pb(Wa)),bc[183]="uLAX",cc[183]=P(Pb(Wa)),bc[184]="CLV",
cc[184]=e(),bc[185]="LDA",cc[185]=F(Ob(Wa)),bc[186]="TSX",cc[186]=s(),bc[187]="uLAS",cc[187]=O(Ob(Wa)),bc[188]="LDY",cc[188]=H(Ob(Va)),bc[189]="LDA",cc[189]=F(Ob(Va)),bc[190]="LDX",cc[190]=G(Ob(Wa)),bc[191]="uLAX",cc[191]=P(Ob(Wa)),bc[192]="CPY",cc[192]=D(Kb),bc[193]="CMP",cc[193]=B(Nb),bc[194]="uNOP",cc[194]=x(Kb),bc[195]="uDCP",cc[195]=ea(_b),bc[196]="CPY",cc[196]=D(Lb),bc[197]="CMP",cc[197]=B(Lb),bc[198]="DEC",cc[198]=_(Xb),bc[199]="uDCP",cc[199]=ea(Xb),bc[200]="INY";cc[200]=i();bc[201]="CMP",cc[201]=B(Kb),bc[202]="DEX",cc[202]=f(),bc[203]="uSBX",cc[203]=R(Kb),bc[204]="CPY",cc[204]=D(Mb),bc[205]="CMP",cc[205]=B(Mb),bc[206]="DEC",cc[206]=_(Yb),bc[207]="uDCP",cc[207]=ea(Yb),bc[208]="BNE",cc[208]=ua(Za,0),bc[209]="CMP",cc[209]=B(Qb),bc[210]="uKIL",cc[210]=w(),bc[211]="uDCP",cc[211]=ea(ac),bc[212]="uNOP",cc[212]=x(Pb(Va)),bc[213]="CMP",cc[213]=B(Pb(Va)),bc[214]="DEC",cc[214]=_(Zb(Va)),bc[215]="uDCP",cc[215]=ea(Zb(Va)),bc[216]="CLD",cc[216]=c(),bc[217]="CMP",cc[217]=B(Ob(Wa)),bc[218]="uNOP",cc[218]=x(Jb),bc[219]="uDCP",cc[219]=ea($b(Wa)),bc[220]="uNOP",cc[220]=x(Ob(Va)),bc[221]="CMP",cc[221]=B(Ob(Va)),bc[222]="DEC",cc[222]=_($b(Va)),bc[223]="uDCP",cc[223]=ea($b(Va)),bc[224]="CPX",cc[224]=C(Kb),bc[225]="SBC",cc[225]=J(Nb),bc[226]="uNOP",cc[226]=x(Kb),bc[227]="uISB",cc[227]=fa(_b),bc[228]="CPX",cc[228]=C(Lb),bc[229]="SBC",cc[229]=J(Lb),bc[230]="INC",cc[230]=aa(Xb),bc[231]="uISB",cc[231]=fa(Xb),bc[232]="newINX",cc[232]=h(),bc[233]="SBC",cc[233]=J(Kb),bc[234]="NOP",cc[234]=k(),bc[235]="SBC",cc[235]=J(Kb),bc[236]="CPX",cc[236]=C(Mb),bc[237]="SBC",cc[237]=J(Mb),bc[238]="INC",cc[238]=aa(Yb),bc[239]="uISB",cc[239]=fa(Yb),bc[240]="BEQ",cc[240]=ua(Za,1),bc[241]="SBC",cc[241]=J(Qb),bc[242]="uKIL",cc[242]=w(),bc[243]="uISB",cc[243]=fa(ac),bc[244]="uNOP",cc[244]=x(Pb(Va)),bc[245]="SBC",cc[245]=J(Pb(Va)),bc[246]="INC",cc[246]=aa(Zb(Va)),bc[247]="uISB",cc[247]=fa(Zb(Va)),bc[248]="SED",cc[248]=o(),bc[249]="SBC",cc[249]=J(Ob(Wa)),bc[250]="uNOP",cc[250]=x(Jb),bc[251]="uISB",cc[251]=fa($b(Wa)),bc[252]="uNOP",cc[252]=x(Ob(Va)),bc[253]="SBC",cc[253]=J(Ob(Va)),bc[254]="INC",cc[254]=aa($b(Va)),bc[255]="uISB",cc[255]=fa($b(Va)),this.saveState=function(){return{PC:za,A:Ba,X:Ca,Y:Da,SP:Aa,N:Ea,V:Fa,D:Ga,I:Ha,Z:Ia,C:Ja,T:Ka,o:La,R:0|ya,d:Ma,AD:Na,BA:Oa,BC:0|Pa,IA:Qa,bo:Ra,boa:Sa}},this.loadState=function(a){za=a.PC,Ba=a.A,Ca=a.X,Da=a.Y,Aa=a.SP,Ea=a.N,Fa=a.V,Ga=a.D,Ha=a.I,Ia=a.Z,Ja=a.C,Ka=a.T,La=a.o,ya=!!a.R,Ma=a.d,Na=a.AD,Oa=a.BA,Pa=!!a.BC,Qa=a.IA,Ra=a.bo,Sa=a.boa,xa=cc[La]},this.toString=function(){return"CPU  PC: "+za.toString(16)+"  op: "+La.toString()+"  T: "+Ka+"  data: "+Ma+"\n A: "+Ba.toString(16)+"  X: "+Ca.toString(16)+"  Y: "+Da.toString(16)+"  SP: "+Aa.toString(16)+"     N"+Ea+"  V"+Fa+"  D"+Ga+"  I"+Ha+"  Z"+Ia+"  C"+Ja+"  "},this.breakpoint=function(a){if(jt.Util.log(a),this.trace){var b="CPU Breakpoint!  "+(a?"("+a+")":"")+"\n\n"+this.toString();jt.Util.message(b)}},this.runCycles=function(a){for(var b=performance.now(),c=0;c<a;c++)this.clockPulse();var d=performance.now();jt.Util.message("Done running "+a+" cycles in "+(d-b)+" ms.")}},jt.Ram=function(){"use strict";function a(){for(var a=b.length-1;a>=0;a--)b[a]=256*Math.random()|0}this.powerOn=function(){},this.powerOff=function(){},this.read=function(a){return b[a&c]},this.write=function(a,d){b[a&c]=d},this.powerFry=function(){for(var a=1-f+2*Math.random()*f,c=a*d,g=0;g<c;g++)b[128*Math.random()|0]&=256*Math.random()|0;var h=a*e;for(g=0;g<h;g++)b[128*Math.random()|0]|=1<<(8*Math.random()|0)},this.saveState=function(){return{b:jt.Util.storeInt8BitArrayToStringBase64(b)}},this.loadState=function(a){b=jt.Util.restoreStringBase64ToInt8BitArray(a.b,b)};var b=new Array(128),c=127,d=120,e=25,f=.3;a()},jt.Pia=function(){"use strict";this.powerOn=function(){},this.powerOff=function(){},this.clockPulse=function(){--h<=0&&a()},this.connectBus=function(a){g=a},this.read=function(a){var b=a&u;return 4===b||6===b?(c(),o):0===b?k:2===b?m:1===b?l:3===b?n:5===b||7===b?p:0},this.write=function(a,c){var f=a&u;return 4===f?(q=c,void b(c,1)):5===f?(r=c,void b(c,8)):6===f?(s=c,void b(c,64)):7===f?(t=c,void b(c,1024)):2===f?void d(c):3===f?(n=c,void e(">>>> Ineffective Write to PIA SWBCNT: "+c)):0===f?void e(">>>> Unsupported Write to PIA SWCHA: "+c):1===f?void e(">>>> Unsupported Write to PIA SWACNT "+c):0};var a=function(){--o<0?(p|=192,o=255,h=i=1):h=i},b=function(b,c){o=b,p&=63,h=i=j=c,a()},c=function(){p&=191,1===i&&(h=i=j)},d=function(a){m=203&m|34&a},e=function(a){self.debug&&jt.Util.log(a)},f=jt.ConsoleControls;this.controlStateChanged=function(a,b){switch(a){case f.JOY0_UP:return void(b?k&=239:k|=16);case f.JOY0_DOWN:return void(b?k&=223:k|=32);case f.PADDLE1_BUTTON:case f.JOY0_LEFT:return void(b?k&=191:k|=64);case f.PADDLE0_BUTTON:case f.JOY0_RIGHT:return void(b?k&=127:k|=128);case f.JOY1_UP:return void(b?k&=254:k|=1);case f.JOY1_DOWN:return void(b?k&=253:k|=2);case f.JOY1_LEFT:return void(b?k&=251:k|=4);case f.JOY1_RIGHT:return void(b?k&=247:k|=8);case f.RESET:return void(b?m&=254:m|=1);case f.SELECT:return void(b?m&=253:m|=2)}if(b)switch(a){case f.BLACK_WHITE:return 0==(8&m)?m|=8:m&=247,void g.getTia().getVideoOutput().showOSD(0!=(8&m)?"COLOR":"B/W",!0);case f.DIFFICULTY0:return 0==(64&m)?m|=64:m&=191,void g.getTia().getVideoOutput().showOSD(0!=(64&m)?"P1 Expert":"P1 Novice",!0);case f.DIFFICULTY1:return 0==(128&m)?m|=128:m&=127,void g.getTia().getVideoOutput().showOSD(0!=(128&m)?"P2 Expert":"P2 Novice",!0)}},this.controlsStateReport=function(a){a[f.BLACK_WHITE]=0===(8&m),a[f.DIFFICULTY0]=0!==(64&m),a[f.DIFFICULTY1]=0!==(128&m),a[f.SELECT]=0===(2&m),a[f.RESET]=0===(1&m)},this.saveState=function(){return{t:h,c:i,l:j,SA:k,SAC:l,SB:m,SBC:n,IT:o,IS:p,T1:q,T8:r,T6:s,T2:t}},this.loadState=function(a){h=a.t,i=a.c,j=a.l,l=a.SAC,m=a.SB,n=a.SBC,o=a.IT,p=a.IS,q=a.T1,r=a.T8,s=a.T6,t=a.T2},this.debug=!1;var g,h=1024,i=1024,j=1024,k=255,l=0,m=11,n=0,o=256*Math.random()|0,p=0,q=0,r=0,s=0,t=0,u=7},function(){"use strict";for(var a=[0,4210752,7105644,9474192,11579568,13158600,14474460,16053492,17476,1074276,2393220,3448992,4241592,5296336,6088936,6880508,10352,1328260,2645144,3963052,5016764,6070476,6862044,7915756,6276,1586328,3166380,4745408,6062288,7378144,8431852,9747708,136,2105500,3947696,5789888,7368912,8947936,10526956,11842812,6029432,7610508,8928416,10246320,11563200,12616912,13671644,14725356,7864392,9445472,10763384,12081292,13398176,14451892,15506628,16560340,8650772,9969712,11287628,12605544,13660284,14715028,15507624,16561340,8912896,10231836,11550776,12606544,13661288,14716028,15508624,16562340,8132608,9451548,11031608,12349520,13404264,14457980,15512720,16566436,6040576,7883804,9463864,11306064,12622952,13939836,15256720,16572580,2898944,4742172,6585400,8428624,9745512,11325564,12641424,13958308,15360,2120736,4226112,6069340,7648372,9228428,10806436,12123320,14356,1858612,3701840,5281900,6861956,8178844,9495732,10812616,12332,1855564,3436648,5016708,6596764,7913652,8967372,10284256,10308,1591396,3172484,4490400,5807288,7124176,8178920,9232636],b=[0,2631720,5263440,7631988,9737364,11842740,13684944,15856113,0,2631720,5263440,7631988,9737364,11842740,13684944,15856113,22656,2125972,3966120,5807292,7384268,8700124,10277100,11591932,23620,2127964,3969140,5811340,7389344,8705200,10283204,11599060,13424,2117768,3958944,5801140,7379144,8695004,10273004,11588860,1336320,3440672,5281852,7123032,8701040,10279044,11856028,13171888,1310832,3416200,5258400,7100596,8679624,10257628,11836652,13152508,6052864,7631904,9210940,10789976,12105840,13158532,14474396,15527088,6029424,7610500,8928404,10246312,11563188,12616900,13671632,14725344,7355392,8935452,10515512,11832400,13149288,14465148,15518864,16572580,7340120,8921196,10501248,11819156,13136036,14451892,15506628,16560340,7348224,8928284,10508344,11826256,13142120,14459004,15512720,16566436,8388668,9707604,11025516,12343424,13398164,14451880,15506616,16560328,8912896,10231840,11549756,12605528,13660272,14713988,15506588,16560304,0,2631720,5263440,7631988,9737364,11842740,13684944,15856113,0,2631720,5263440,7631988,9737364,11842740,13684944,15856113],c=new Uint32Array(256),d=new Uint32Array(256),e=0,f=a.length;e<f;e++)c[2*e]=c[2*e+1]=a[e]+4278190080,
d[2*e]=d[2*e+1]=b[e]+4278190080;a=b=void 0,jt.TiaPalettes={NTSC:c,PAL:d}}(),jt.TiaAudio=function(){"use strict";function a(){e||(e=new jt.AudioSignal("TiaAudio",c,k,j)),d.connectAudioSignal(e)}function b(){e&&d.disconnectAudioSignal(e)}var c=this;this.connectAudioSocket=function(a){d=a},this.cartridgeInserted=function(a){f=a&&a.needsAudioClock()?a:null},this.audioClockPulse=function(){d.audioClockPulse()},this.getChannel0=function(){return h},this.getChannel1=function(){return i},this.powerOn=function(){this.reset(),a()},this.powerOff=function(){b()},this.reset=function(){h.setVolume(0),i.setVolume(0),g=0},this.nextSample=function(){f&&f.audioClockPulse();var a=h.nextSample()-i.nextSample();return a!==g&&(a=(9*a+g)/10,g=a),a};var d,e,f,g=0,h=new jt.TiaAudioChannel,i=new jt.TiaAudioChannel,j=.4,k=31440},jt.TiaAudioChannel=function(){"use strict";this.nextSample=function(){return--s<=0&&(s+=r,t=o()),1===t?p:0},this.setVolume=function(a){p=a/E},this.setDivider=function(a){r!==a&&(s=s/r*a,r=a)},this.setControl=function(b){q!==b&&(q=b,o=0===b||11===b?a:1===b?c:2===b?k:3===b?l:4===b||5===b?f:6===b||10===b?j:7===b||9===b?d:8===b?e:12===b||13===b?h:14===b?m:15===b?n:a)};var a=function(){return 1},b=function(){return z[y]},c=function(){return 15===++y&&(y=0),z[y]},d=function(){return 31===++A&&(A=0),B[A]},e=function(){var a=1&x,b=1&(x>>4^a);return x>>>=1,0===b?x&=255:x|=256,a},f=function(){return 1===r?1:u=u?0:1},g=function(){return v},h=function(){return 0===--w&&(w=3,v=v?0:1),v},i=function(){return D[C]},j=function(){return 31===++C&&(C=0),D[C]},k=function(){return i()!==j()?c():b()},l=function(){return d()?c():b()},m=function(){return i()!=j()?h():g()},n=function(){return d()?h():g()},o=a,p=0,q=0,r=1,s=1,t=0,u=1,v=1,w=3,x=511,y=14,z=[1,1,1,1,0,0,0,1,0,0,1,1,0,1,0],A=30,B=[1,1,1,1,1,0,0,0,1,1,0,1,1,1,0,1,0,1,0,0,0,0,1,0,0,1,0,1,1,0,0],C=30,D=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0],E=15},jt.Tia=function(pCpu,pPia,audioSocket){"use strict";function init(){generateObjectsLineSprites(),generateObjectsCopiesOffsets()}function renderLineTo(a){var b,c=a>LINE_WIDTH?LINE_WIDTH:a;if(vBlankOn)for(var d=renderClock;d<c;++d)linePixels[d]=vBlankColor;else{for(var e=collisions,f=renderClock-HBLANK_DURATION,g=c-HBLANK_DURATION;f<g;++f){var h=0,i=collisionsPossible;playfieldPriority&&(playfieldEnabled&&(1&(f<80?playfieldPatternL>>(f>>2):playfieldPatternR>>(f-80>>2))?h=playfieldColor:i&=PFC),ballEnabled&&(b=f-ballPixel,b<0&&(b+=160),missileBallLineSprites[ballLineSpritePointer+(b>>3)]>>(7&b)&1?h||(h=ballColor):i&=BLC)),player0Enabled&&(b=f-player0Pixel,b<0&&(b+=160),playerLineSprites[player0LineSpritePointer+(b>>3)]>>(7&b)&1?h||(h=player0Color):i&=P0C),missile0Enabled&&(b=f-missile0Pixel,b<0&&(b+=160),missileBallLineSprites[missile0LineSpritePointer+(b>>3)]>>(7&b)&1?h||(h=missile0Color):i&=M0C),player1Enabled&&(b=f-player1Pixel,b<0&&(b+=160),playerLineSprites[player1LineSpritePointer+(b>>3)]>>(7&b)&1?h||(h=player1Color):i&=P1C),missile1Enabled&&(b=f-missile1Pixel,b<0&&(b+=160),missileBallLineSprites[missile1LineSpritePointer+(b>>3)]>>(7&b)&1?h||(h=missile1Color):i&=M1C),playfieldPriority||(playfieldEnabled&&(f<80?playfieldPatternL>>(f>>2)&1?h||(h=playfieldLeftColor):i&=PFC:playfieldPatternR>>(f-80>>2)&1?h||(h=playfieldRightColor):i&=PFC),ballEnabled&&(b=f-ballPixel,b<0&&(b+=160),missileBallLineSprites[ballLineSpritePointer+(b>>3)]>>(7&b)&1?h||(h=ballColor):i&=BLC)),linePixels[f+HBLANK_DURATION]=h||playfieldBackground,e|=i}debugNoCollisions||(collisions=e)}}function changeAt(a){vBlankOn||(a>renderClock&&((changeClock>=0||changeClockPrevLine>=0)&&renderLineTo(a),renderClock=a),changeClock=renderClock)}function changeAtClock(){changeAt(clock)}function changeAtClockPlus(a){changeAt(clock+a)}function changePlayfieldAtClock(){if(debug&&debugPixel(DEBUG_PF_GR_COLOR),clock<renderClock-1)return changeAtClock();var a=3&clock;changeAtClockPlus(a<3?4-a:5)}function changeVBlankAtClockPlus1(){var a=clock+1;a>renderClock&&((changeClock>=0||changeClockPrevLine>=0)&&renderLineTo(a),renderClock=a),changeClock=renderClock}function updateToClock(){vBlankOn||clock>renderClock&&((changeClock>=0||changeClockPrevLine>=0)&&renderLineTo(clock),renderClock=clock)}function augmentCollisionsPossible(){collisionsPossible=65534,player0Enabled||(collisionsPossible&=P0C),player1Enabled||(collisionsPossible&=P1C),missile0Enabled||(collisionsPossible&=M0C),missile1Enabled||(collisionsPossible&=M1C),playfieldEnabled||(collisionsPossible&=PFC),ballEnabled||(collisionsPossible&=BLC)}function playfieldUpdateSprite(){playfieldPatternL=PF2<<12|jt.Util.reverseInt8(PF1)<<4|(240&PF0)>>4,playfieldUpdateSpriteR()}function playfieldUpdateSpriteR(){playfieldPatternR=playfieldReflected?jt.Util.reverseInt8(PF0)<<16|PF1<<8|jt.Util.reverseInt8(PF2):playfieldPatternL,0!==playfieldPatternL||0!==playfieldPatternR?(playfieldEnabled=!0,augmentCollisionsPossible()):(playfieldEnabled=!1,collisionsPossible&=PFC)}function ballSetEnabled(a){a?(ballEnabled=!0,augmentCollisionsPossible()):(ballEnabled=!1,collisionsPossible&=BLC)}function player0SetShape(a){if(NUSIZ0!==a){var b=NUSIZ0^a,c=NUSIZ0;NUSIZ0=a;var d=7&a,e=clock<HBLANK_DURATION?2:clock-HBLANK_DURATION+2;if(7&b){if(!player0Alt){var f=e-player0Pixel;f<0?f+=160:f>=160&&(f-=160);var g=playerScanOffsetsShape[160*(7&c)+f],h=playerScanOffsetsShape[160*d+f];if(h!==g)if(player0Enabled&&changeAtClockPlus(2),player0Alt=player0Pixel>=80?1:2,player0LineSpritePointer+=20,player0AltFrom=f,player0AltLength=playerCopyLengthPerShape[d],192&g)player0AltCopyOffset=191&g;else if(clock<HBLANK_DURATION&&hMoveHitBlank)player0AltCopyOffset=128;else{var i=playerPixelSizePerShape[d];player0AltCopyOffset=playerScanStartPerShape[d]+g*i+(1&f),player0AltLength-=(192&h?0:h)*i}}player0UpdateSprite(2)}if(55&b){if(!missile0Alt&&(f=e-missile0Pixel,f<0?f+=160:f>=160&&(f-=160),g=missileScanOffsetsShape[160*((48&c)>>1|7&c)+f],h=missileScanOffsetsShape[160*((48&a)>>1|d)+f],h!==g)){missile0Enabled&&changeAtClockPlus(2),missile0Alt=missile0Pixel>=80?1:2,missile0LineSpritePointer+=20,missile0AltFrom=f;var j=(48&a)>>4;missile0AltLength=4+(1<<j),192&g?missile0AltCopyOffset=191&g:clock<HBLANK_DURATION&&hMoveHitBlank?missile0AltCopyOffset=128:(missile0AltCopyOffset=4+(g<<j)+(1&f),missile0AltLength-=(192&h?0:h)<<j)}missile0UpdateSprite(2)}}}function player0SetSprite(a){debug&&debugPixel(DEBUG_P0_GR_COLOR),GRP0d!==a&&(GRP0d=a,VDELP0||player0UpdateSprite(1)),GRP1!==GRP1d&&(GRP1=GRP1d,VDELP1&&player1UpdateSprite(1))}function player0UpdateSprite(a){var b=VDELP0?GRP0:GRP0d;if(b){var c=((REFP0<<11|b<<3|7&NUSIZ0)<<6)+(player0Alt?20:0);player0Enabled&&player0LineSpritePointer===c||(changeAtClockPlus(a),player0LineSpritePointer=c,player0Alt&&player0DefineAlt()),player0Enabled||(player0Enabled=!0,augmentCollisionsPossible())}else player0Enabled&&(changeAtClockPlus(a),player0Enabled=!1,collisionsPossible&=P0C)}function player1SetShape(a){if(NUSIZ1!==a){var b=NUSIZ1^a,c=NUSIZ1;NUSIZ1=a;var d=7&a,e=clock<HBLANK_DURATION?2:clock-HBLANK_DURATION+2;if(7&b){if(!player1Alt){var f=e-player1Pixel;f<0?f+=160:f>=160&&(f-=160);var g=playerScanOffsetsShape[160*(7&c)+f],h=playerScanOffsetsShape[160*d+f];h!==g&&(player1Enabled&&changeAtClockPlus(2),player1Alt=player1Pixel>=80?1:2,player1LineSpritePointer+=40,player1AltFrom=f,player1AltLength=playerCopyLengthPerShape[d],192&g?player1AltCopyOffset=191&g:clock<HBLANK_DURATION&&hMoveHitBlank?player1AltCopyOffset=128:(player1AltCopyOffset=playerScanStartPerShape[d]+g*playerPixelSizePerShape[d]+(1&f),player1AltLength-=(192&h?0:h)*playerPixelSizePerShape[d]))}player1UpdateSprite(2)}if(55&b){if(!missile1Alt&&(f=e-missile1Pixel,f<0?f+=160:f>=160&&(f-=160),g=missileScanOffsetsShape[160*((48&c)>>1|7&c)+f],h=missileScanOffsetsShape[160*((48&a)>>1|d)+f],h!==g)){missile1Enabled&&changeAtClockPlus(2),missile1Alt=missile1Pixel>=80?1:2,missile1LineSpritePointer+=40,missile1AltFrom=f;var i=(48&a)>>4;
missile1AltLength=4+(1<<i),192&g?missile1AltCopyOffset=191&g:clock<HBLANK_DURATION&&hMoveHitBlank?missile1AltCopyOffset=128:(missile1AltCopyOffset=4+(g<<i)+(1&f),missile1AltLength-=(192&h?0:h)<<i)}missile1UpdateSprite(2)}}}function player1SetSprite(a){debug&&debugPixel(DEBUG_P1_GR_COLOR),GRP1d!==a&&(GRP1d=a,VDELP1||player1UpdateSprite(1)),GRP0!==GRP0d&&(GRP0=GRP0d,VDELP0&&player0UpdateSprite(1)),ENABL!==ENABLd&&(ENABL=ENABLd,VDELBL&&changeAtClockPlus(1),ballSetEnabled(ENABL))}function player1UpdateSprite(a){var b=VDELP1?GRP1:GRP1d;if(b){var c=((REFP1<<11|b<<3|7&NUSIZ1)<<6)+(player1Alt?40:0);player1Enabled&&player1LineSpritePointer===c||(changeAtClockPlus(a),player1LineSpritePointer=c,player1Alt&&player1DefineAlt()),player1Enabled||(player1Enabled=!0,augmentCollisionsPossible())}else player1Enabled&&(changeAtClockPlus(a),player1Enabled=!1,collisionsPossible&=P1C)}function missile0UpdateSprite(a){var b=(((48&NUSIZ0)>>1|7&NUSIZ0)<<6)+(missile0Alt?20:0);missile0LineSpritePointer!==b&&(missile0Enabled?(changeAtClockPlus(a),missile0LineSpritePointer=b,missile0Alt&&missile0DefineAlt()):missile0LineSpritePointer=b)}function missile0SetEnabled(a){a?(missile0Enabled=!0,augmentCollisionsPossible(),missile0Alt&&missile0DefineAlt()):(missile0Enabled=!1,collisionsPossible&=M0C)}function missile0SetResetToPlayer(a){RESMP0!==(2&a)&&(ENAM0?(changeAtClock(),missile0SetEnabled(!(RESMP0=2&a))):RESMP0=2&a,RESMP0||(missile0Pixel=player0Pixel+missileCenterOffsetsPerPlayerSize[7&NUSIZ0],missile0Pixel>=160&&(missile0Pixel-=160)))}function missile1UpdateSprite(a){var b=(((48&NUSIZ1)>>1|7&NUSIZ1)<<6)+(missile1Alt?40:0);missile1LineSpritePointer!==b&&(missile1Enabled?(changeAtClockPlus(a),missile1LineSpritePointer=b,missile1Alt&&missile1DefineAlt()):missile1LineSpritePointer=b)}function missile1SetEnabled(a){a?(missile1Enabled=!0,augmentCollisionsPossible(),missile1Alt&&missile1DefineAlt()):(missile1Enabled=!1,collisionsPossible&=M1C)}function missile1SetResetToPlayer(a){RESMP1!==(2&a)&&(ENAM1?(changeAtClock(),missile1SetEnabled(!(RESMP1=2&a))):RESMP1=2&a,RESMP1||(missile1Pixel=player1Pixel+missileCenterOffsetsPerPlayerSize[7&NUSIZ1],missile1Pixel>=160&&(missile1Pixel-=160)))}function player0DefineAlt(){var a=player0AltFrom<<16|player0AltLength<<8|player0AltCopyOffset,b=player0LineSpritePointer-20>>6;if(player0AltControl[b]!==a){for(var c=player0LineSpritePointer-20,d=0;d<20;++d)playerLineSprites[player0LineSpritePointer+d]=playerLineSprites[c+d];var e=player0AltFrom;if(128&player0AltCopyOffset)for(var f=0;f<player0AltLength;++f)playerLineSprites[player0LineSpritePointer+(e>>3)]&=~(1<<(7&e)),++e>=160&&(e-=160);else{c-=objectsLineSpritePointerDeltaToSingleCopy[7&NUSIZ0];for(var g=player0AltCopyOffset,h=player0AltCopyOffset+player0AltLength;g<h;++g)playerLineSprites[c+(g>>3)]>>(7&g)&1?playerLineSprites[player0LineSpritePointer+(e>>3)]|=1<<(7&e):playerLineSprites[player0LineSpritePointer+(e>>3)]&=~(1<<(7&e)),++e>=160&&(e-=160)}player0AltControl[b]=a}}function player1DefineAlt(){var a=player1AltFrom<<16|player1AltLength<<8|player1AltCopyOffset,b=player1LineSpritePointer-40>>6;if(player1AltControl[b]!==a){for(var c=player1LineSpritePointer-40,d=0;d<20;++d)playerLineSprites[player1LineSpritePointer+d]=playerLineSprites[c+d];var e=player1AltFrom;if(128&player1AltCopyOffset)for(var f=0;f<player1AltLength;++f)playerLineSprites[player1LineSpritePointer+(e>>3)]&=~(1<<(7&e)),++e>=160&&(e-=160);else{c-=objectsLineSpritePointerDeltaToSingleCopy[7&NUSIZ1];for(var g=player1AltCopyOffset,h=player1AltCopyOffset+player1AltLength;g<h;++g)playerLineSprites[c+(g>>3)]>>(7&g)&1?playerLineSprites[player1LineSpritePointer+(e>>3)]|=1<<(7&e):playerLineSprites[player1LineSpritePointer+(e>>3)]&=~(1<<(7&e)),++e>=160&&(e-=160)}player1AltControl[b]=a}}function missile0DefineAlt(){var a=missile0AltFrom<<16|missile0AltLength<<8|missile0AltCopyOffset,b=missile0LineSpritePointer-20>>6;if(missile0AltControl[b]!==a){for(var c=missile0LineSpritePointer-20,d=0;d<20;++d)missileBallLineSprites[missile0LineSpritePointer+d]=missileBallLineSprites[c+d];var e=missile0AltFrom;if(128&missile0AltCopyOffset)for(var f=0;f<missile0AltLength;++f)missileBallLineSprites[missile0LineSpritePointer+(e>>3)]&=~(1<<(7&e)),++e>=160&&(e-=160);else{c-=objectsLineSpritePointerDeltaToSingleCopy[7&NUSIZ0];for(var g=missile0AltCopyOffset,h=missile0AltCopyOffset+missile0AltLength;g<h;++g)missileBallLineSprites[c+(g>>3)]>>(7&g)&1?missileBallLineSprites[missile0LineSpritePointer+(e>>3)]|=1<<(7&e):missileBallLineSprites[missile0LineSpritePointer+(e>>3)]&=~(1<<(7&e)),++e>=160&&(e-=160)}missile0AltControl[b]=a}}function mis
Download .txt
gitextract_3gk_afnw/

├── .gitignore
├── README.md
├── doc/
│   └── README.md
├── gruntfile.js
├── license.txt
├── package.json
├── release/
│   └── stable/
│       ├── 4.0/
│       │   ├── embedded/
│       │   │   ├── index.html
│       │   │   └── javatari.js
│       │   └── standalone/
│       │       ├── cache.manifest
│       │       ├── index.html
│       │       └── manifest.webapp
│       ├── 5.0/
│       │   ├── embedded/
│       │   │   ├── index.html
│       │   │   └── javatari.js
│       │   └── standalone/
│       │       ├── cache.manifest
│       │       ├── index.html
│       │       └── manifest.webapp
│       └── old/
│           ├── index.html
│           └── javatari/
│               └── javatari.js
├── src/
│   ├── main/
│   │   ├── Configurator.js
│   │   ├── Javatari.js
│   │   ├── Launcher.js
│   │   ├── atari/
│   │   │   ├── audio/
│   │   │   │   └── AudioSignal.js
│   │   │   ├── cartridge/
│   │   │   │   ├── Cartridge.js
│   │   │   │   ├── CartridgeCreator.js
│   │   │   │   ├── CartridgeDatabase.js
│   │   │   │   ├── CartridgeDatabaseUncompressed.js
│   │   │   │   ├── CartridgeFormats.js
│   │   │   │   ├── ROM.js
│   │   │   │   └── formats/
│   │   │   │       ├── Cartridge10K_DPCa.js
│   │   │   │       ├── Cartridge16K_E7.js
│   │   │   │       ├── Cartridge24K_28K_32K_FA2.js
│   │   │   │       ├── Cartridge2K_CV.js
│   │   │   │       ├── Cartridge4K.js
│   │   │   │       ├── Cartridge64K_F0.js
│   │   │   │       ├── Cartridge64K_X07.js
│   │   │   │       ├── Cartridge8K_0840.js
│   │   │   │       ├── Cartridge8K_256K_SB.js
│   │   │   │       ├── Cartridge8K_512K_3E.js
│   │   │   │       ├── Cartridge8K_512K_3F.js
│   │   │   │       ├── Cartridge8K_64K_AR.js
│   │   │   │       ├── Cartridge8K_E0.js
│   │   │   │       ├── Cartridge8K_FE.js
│   │   │   │       ├── Cartridge8K_UA.js
│   │   │   │       ├── CartridgeBankedByBusMonitoring.js
│   │   │   │       └── CartridgeBankedByMaskedRange.js
│   │   │   ├── console/
│   │   │   │   ├── AtariConsole.js
│   │   │   │   └── Bus.js
│   │   │   ├── controls/
│   │   │   │   ├── ConsoleControls.js
│   │   │   │   └── JoystickButtons.js
│   │   │   ├── cpu/
│   │   │   │   ├── M6502.js
│   │   │   │   └── Ram64K.js
│   │   │   ├── pia/
│   │   │   │   ├── Pia.js
│   │   │   │   └── Ram.js
│   │   │   ├── tia/
│   │   │   │   ├── Tia.js
│   │   │   │   ├── TiaAudio.js
│   │   │   │   ├── TiaAudioChannel.js
│   │   │   │   └── TiaPalettes.js
│   │   │   └── video/
│   │   │       ├── VideoSignal.js
│   │   │       └── VideoStandard.js
│   │   ├── images/
│   │   │   ├── Images.js
│   │   │   └── originals/
│   │   │       ├── Controllers.xcf
│   │   │       ├── IconSprites.xcf
│   │   │       ├── LogoIcon.xcf
│   │   │       ├── LogoJS.xcf
│   │   │       ├── LogoSiteBar.xcf
│   │   │       └── Panel.xcf
│   │   ├── room/
│   │   │   ├── Room.js
│   │   │   ├── clock/
│   │   │   │   └── Clock.js
│   │   │   ├── controls/
│   │   │   │   ├── DOMConsoleControls.js
│   │   │   │   ├── DOMKeys.js
│   │   │   │   ├── DOMPeripheralControls.js
│   │   │   │   ├── DOMTouchControls.js
│   │   │   │   ├── GamepadButtons.js
│   │   │   │   ├── GamepadConsoleControls.js
│   │   │   │   ├── PeripheralControls.js
│   │   │   │   └── TouchControls.js
│   │   │   ├── files/
│   │   │   │   ├── FileDownloader.js
│   │   │   │   ├── FileLoader.js
│   │   │   │   └── RecentStoredROMs.js
│   │   │   ├── netplay/
│   │   │   │   ├── NetClient.js
│   │   │   │   └── NetServer.js
│   │   │   ├── savestate/
│   │   │   │   └── LocalStorageSaveStateMedia.js
│   │   │   ├── screen/
│   │   │   │   ├── CanvasDisplay.js
│   │   │   │   ├── ConsolePanel.js
│   │   │   │   ├── FullScreenSetup.js
│   │   │   │   ├── Monitor.js
│   │   │   │   ├── ScreenGUI.es5.js
│   │   │   │   ├── dialogs/
│   │   │   │   │   ├── CartridgeFormatDialog.js
│   │   │   │   │   ├── NetPlayDialog.js
│   │   │   │   │   ├── QuickOptionsDialog.js
│   │   │   │   │   ├── RecentROMsDialog.js
│   │   │   │   │   └── SaveStateDialog.js
│   │   │   │   ├── es6/
│   │   │   │   │   ├── ScreenGUI.js
│   │   │   │   │   └── SettingsGUI.js
│   │   │   │   └── settings/
│   │   │   │       ├── Settings.js
│   │   │   │       └── SettingsGUI.es5.js
│   │   │   └── speaker/
│   │   │       └── WebAudioSpeaker.js
│   │   ├── userprefs/
│   │   │   ├── UserPreferences.js
│   │   │   └── UserROMFormats.js
│   │   └── util/
│   │       ├── EmbeddedFiles.js
│   │       ├── MD5.js
│   │       ├── MultiDownloader.js
│   │       ├── MultiFileReader.js
│   │       ├── Util.js
│   │       └── ZIP.js
│   └── runtime/
│       ├── embedded/
│       │   └── index.html
│       ├── images/
│       │   └── EmbeddedImages.js
│       └── standalone/
│           ├── cache.manifest
│           ├── index.base.html
│           ├── index.part1.html
│           ├── index.part2.html
│           └── manifest.webapp
└── test/
    ├── index.html
    └── manifest.webapp
Download .txt
SYMBOL INDEX (1465 symbols across 55 files)

FILE: release/stable/4.0/embedded/javatari.js
  function onUpdateReady (line 55) | function onUpdateReady(){alert("A new version is available!\nJavatari wi...
  function a (line 55) | function a(a,b){return a.name<b.name?-1:a.name>b.name?1:0}
  function b (line 55) | function b(a){return a.stopPropagation(),a.cancelable&&a.preventDefault(...
  function d (line 56) | function d(a){return c(a),b(a)}
  function d (line 56) | function d(a){return c(a),b(a)}
  function d (line 56) | function d(a){if(("touchstart"!==a.type||!a.target.jtNeedsUIG)&&("touche...
  function b (line 56) | function b(a){var b=(a>>>0).toString(16);return"00000000".substr(0,8-b.l...
  function c (line 56) | function c(a){for(var b=[],c=0;c<a.length;c++)b=b.concat(k(a[c]));return b}
  function d (line 56) | function d(a){for(var b=[],c=0;c<8;c++)b.push(255&a),a>>>=8;return b}
  function e (line 56) | function e(a,b){return a<<b&4294967295|a>>>32-b}
  function f (line 56) | function f(a,b,c){return a&b|~a&c}
  function g (line 56) | function g(a,b,c){return c&a|~c&b}
  function h (line 56) | function h(a,b,c){return a^b^c}
  function i (line 56) | function i(a,b,c){return b^(a|~c)}
  function j (line 56) | function j(a,b){return a[b+3]<<24|a[b+2]<<16|a[b+1]<<8|a[b]}
  function k (line 56) | function k(a){for(var b=[],c=0;c<a.length;c++)if(a.charCodeAt(c)<=127)b....
  function l (line 56) | function l(a,c,d,e){for(var f="",g=0,h=0,i=3;i>=0;i--)h=arguments[i],g=2...
  function m (line 56) | function m(a){for(var b=new Array(a.length),c=0;c<a.length;c++)b[c]=a[c]...
  function n (line 56) | function n(a,b){return 4294967295&a+b}
  function o (line 56) | function o(){function a(a,b,c,d){var f=v;v=u,u=t,t=n(t,e(n(s,n(a,n(b,c))...
  function e (line 56) | function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&re...
  function c (line 57) | function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,...
  function c (line 57) | function c(){this.data=null,this.length=0,this.index=0}
  function c (line 57) | function c(a,b){return this instanceof c?(this.files={},this.comment=nul...
  function c (line 57) | function c(a){this.data=a,this.length=this.data.length,this.index=0}
  function c (line 58) | function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),th...
  function c (line 59) | function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}
  function d (line 59) | function d(a){return a}
  function e (line 59) | function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);retu...
  function f (line 59) | function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{...
  function g (line 59) | function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}
  function c (line 59) | function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}
  function c (line 60) | function c(a,b){this.options=a,this.loadOptions=b}
  function d (line 60) | function d(a,b){var c=new s(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 60) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function f (line 60) | function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}
  function d (line 61) | function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 61) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function d (line 61) | function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return Strin...
  function c (line 61) | function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c...
  function c (line 61) | function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a...
  function d (line 61) | function d(a,b,c,d){var f=e,g=d+c;a^=-1;for(var h=d;g>h;h++)a=a>>>8^f[25...
  function d (line 61) | function d(a,b){return a.msg=G[b],b}
  function e (line 61) | function e(a){return(a<<1)-(a>4?9:0)}
  function f (line 61) | function f(a){for(var b=a.length;--b>=0;)a[b]=0}
  function g (line 61) | function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0...
  function h (line 61) | function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a....
  function i (line 61) | function i(a,b){a.pending_buf[a.pending++]=b}
  function j (line 61) | function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pen...
  function k (line 61) | function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_...
  function l (line 61) | function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_lengt...
  function m (line 61) | function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead...
  function n (line 62) | function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf...
  function o (line 62) | function o(a,b){for(var c,d;;){if(a.lookahead<ja){if(m(a),a.lookahead<ja...
  function p (line 62) | function p(a,b){for(var c,d,e;;){if(a.lookahead<ja){if(m(a),a.lookahead<...
  function q (line 62) | function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ia){if(m(a...
  function r (line 62) | function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead))...
  function s (line 62) | function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.le...
  function t (line 62) | function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pen...
  function u (line 62) | function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_t...
  function v (line 62) | function v(a){var b=u(a);return b===M&&s(a.state),b}
  function w (line 62) | function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M...
  function x (line 62) | function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,...
  function y (line 62) | function y(a,b){return x(a,b,Y,$,_,W)}
  function z (line 62) | function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;...
  function A (line 63) | function A(a){var b;return a&&a.state?(b=a.state.status,b!==la&&b!==ma&&...
  function c (line 63) | function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=...
  function d (line 63) | function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<...
  function e (line 63) | function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this....
  function f (line 63) | function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=...
  function g (line 63) | function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.w...
  function h (line 63) | function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(...
  function i (line 63) | function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,...
  function j (line 63) | function j(a){return i(a,ra)}
  function k (line 63) | function k(a){if(sa){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;...
  function l (line 63) | function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<...
  function m (line 63) | function m(a,b){
  function n (line 65) | function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b...
  function o (line 65) | function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?F:(c.h...
  function d (line 65) | function d(a){for(var b=a.length;--b>=0;)a[b]=0}
  function e (line 65) | function e(a){return 256>a?ga[a]:ga[256+(a>>>7)]}
  function f (line 65) | function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending...
  function g (line 65) | function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi...
  function h (line 65) | function h(a,b,c){g(a,c[2*b],c[2*b+1])}
  function i (line 65) | function i(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}
  function j (line 65) | function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a....
  function k (line 65) | function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc....
  function l (line 65) | function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g...
  function m (line 65) | function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ia...
  function n (line 65) | function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a...
  function o (line 65) | function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a....
  function p (line 65) | function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a....
  function q (line 65) | function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<...
  function r (line 65) | function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_le...
  function s (line 65) | function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do d=a.pending_buf[a...
  function t (line 65) | function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.sta...
  function u (line 65) | function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3)...
  function v (line 65) | function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3)...
  function w (line 65) | function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtr...
  function x (line 66) | function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e...
  function y (line 66) | function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a....
  function z (line 66) | function z(a){pa||(m(),pa=!0),a.l_desc=new oa(a.dyn_ltree,ka),a.d_desc=n...
  function A (line 66) | function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}
  function B (line 66) | function B(a){g(a,K<<1,3),h(a,X,ea),j(a)}
  function C (line 66) | function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm...
  function D (line 66) | function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a...
  function c (line 66) | function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_i...
  function e (line 66) | function e(a){if(a){var b=a.url.trim().split(/\s*\|\s*/);a.filesToLoad=b...
  function f (line 66) | function f(a,b,c){jt.Util.log("Reading Embedded file: "+c);var d=jt.Embe...
  function g (line 66) | function g(a,b,c,e){var f=k(c)?l(c):c,g=new XMLHttpRequest;g.open("GET",...
  function h (line 66) | function h(a,b,c){a.filesContent[b]=c,--a.filesToLoad>0||(a.success=!0,a...
  function i (line 66) | function i(a,b){a.success=!1,a.error=b;var d="Could not load file: "+a.u...
  function j (line 66) | function j(){if(!q){for(var d=0;d<a.length;d++)if(a[d]&&void 0===a[d].su...
  function k (line 66) | function k(a){return a&&(0===a.indexOf("http:")||0===a.indexOf("https:"))}
  function l (line 66) | function l(a){return(Javatari.PROXY_DOWNLOADER||"")+a}
  function m (line 66) | function m(){Javatari.room.isLoading||(p=window.setTimeout(function(){p=...
  function n (line 66) | function n(){p&&(window.clearTimeout(p),p=null),o&&(o=!1,Javatari.room.s...
  function e (line 66) | function e(a){if(a){jt.Util.log("Reading file: "+a.name);var b=new FileR...
  function f (line 66) | function f(){if(!g){for(var d=0;d<a.length;d++)if(a[d]&&void 0===a[d].su...
  function e (line 66) | function e(){if(n>0){if(p<=0)return void(n=0);g(),--n,--p}}
  function f (line 66) | function f(){var a=s*Javatari.AUDIO_SIGNAL_BUFFER_RATIO+k*Javatari.AUDIO...
  function g (line 66) | function g(){r[l]=b.nextSample()*d,++l>=o&&(l=0)}
  function h (line 66) | function h(){r[l]=0,++l>=o&&(l=0)}
  function i (line 66) | function i(a,b){if(b)for(var c=a;c>0;c-=1)h();else for(var d=a;d>0;d-=1)...
  function a (line 67) | function a(){return Jb(function(){Cb(Ba>127),Ba=Ba<<1&255,zb(Ba),Ab(Ba)})}
  function b (line 67) | function b(){return Jb(function(){Ja=0})}
  function c (line 67) | function c(){return Jb(function(){Ga=0})}
  function d (line 67) | function d(){return Jb(function(){Ha=0})}
  function e (line 67) | function e(){return Jb(function(){Fa=0})}
  function f (line 67) | function f(){return Jb(function(){Ca=Ca-1&255,zb(Ca),Ab(Ca)})}
  function g (line 67) | function g(){return Jb(function(){Da=Da-1&255,zb(Da),Ab(Da)})}
  function h (line 67) | function h(){return Jb(function(){Ca=Ca+1&255,zb(Ca),Ab(Ca)})}
  function i (line 67) | function i(){return Jb(function(){Da=Da+1&255,zb(Da),Ab(Da)})}
  function j (line 67) | function j(){return Jb(function(){Ja=1&Ba,Ba>>>=1,zb(Ba),Ea=0})}
  function k (line 67) | function k(){return Jb(function(){})}
  function l (line 67) | function l(){return Jb(function(){var a=Ba>127;Ba=255&(Ba<<1|Ja),Cb(a),z...
  function m (line 67) | function m(){return Jb(function(){var a=1&Ba;Ba=Ba>>>1|Ja<<7,Cb(a),zb(Ba...
  function n (line 67) | function n(){return Jb(function(){Ja=1})}
  function o (line 67) | function o(){return Jb(function(){Ga=1})}
  function p (line 67) | function p(){return Jb(function(){Ha=1})}
  function q (line 67) | function q(){return Jb(function(){Ca=Ba,zb(Ca),Ab(Ca)})}
  function r (line 67) | function r(){return Jb(function(){Da=Ba,zb(Da),Ab(Da)})}
  function s (line 67) | function s(){return Jb(function(){Ca=Aa,zb(Ca),Ab(Ca)})}
  function t (line 67) | function t(){return Jb(function(){Ba=Ca,zb(Ba),Ab(Ba)})}
  function u (line 67) | function u(){return Jb(function(){Aa=Ca})}
  function v (line 67) | function v(){return Jb(function(){Ba=Da,zb(Ba),Ab(Ba)})}
  function w (line 67) | function w(){return[_a,function(){Ib("KIL/HLT/JAM")},function(){Ka--}]}
  function x (line 67) | function x(a){return a(function(){Ib("NOP/DOP")})}
  function y (line 67) | function y(a){return a(function(){if(Ga){var a=Ma,b=(15&Ba)+(15&a)+Ja;b>...
  function z (line 67) | function z(a){return a(function(){Ba&=Ma,zb(Ba),Ab(Ba)})}
  function A (line 67) | function A(a){return a(function(){var a=Ma;zb(Ba&a),Bb(64&a),Ab(a)})}
  function B (line 67) | function B(a){return a(function(){var a=Ba-Ma&255;Cb(Ba>=Ma),zb(a),Ab(a)})}
  function C (line 67) | function C(a){return a(function(){var a=Ca-Ma&255;Cb(Ca>=Ma),zb(a),Ab(a)})}
  function D (line 67) | function D(a){return a(function(){var a=Da-Ma&255;Cb(Da>=Ma),zb(a),Ab(a)})}
  function E (line 67) | function E(a){return a(function(){Ba^=Ma,zb(Ba),Ab(Ba)})}
  function F (line 67) | function F(a){return a(function(){Ba=Ma,zb(Ba),Ab(Ba)})}
  function G (line 67) | function G(a){return a(function(){Ca=Ma,zb(Ca),Ab(Ca)})}
  function H (line 67) | function H(a){return a(function(){Da=Ma,zb(Da),Ab(Da)})}
  function I (line 67) | function I(a){return a(function(){Ba|=Ma,zb(Ba),Ab(Ba)})}
  function J (line 67) | function J(a){return a(function(){if(Ga){var a=Ma,b=(15&Ba)-(15&a)-(1-Ja...
  function K (line 67) | function K(a){return a(function(){Ib("ANC"),Ba&=Ma,zb(Ba),Ea=Ja=128&Ba?1...
  function L (line 67) | function L(a){return a(function(){Ib("ANE")})}
  function M (line 67) | function M(a){return a(function(){Ib("ARR");var a=Ba&Ma,b=Ja?128:0;a=a>>...
  function N (line 67) | function N(a){return a(function(){Ib("ASR");var a=Ba&Ma;Ja=1&a,a>>>=1,Ba...
  function O (line 67) | function O(a){return a(function(){Ib("LAS");var a=Aa&Ma;Ba=a,Ca=a,Aa=a,z...
  function P (line 67) | function P(a){return a(function(){Ib("LAX");var a=Ma;Ba=a,Ca=a,zb(a),Ab(...
  function Q (line 67) | function Q(a){return a(function(){Ib("LXA");var a=Ba&Ma;Ba=a,Ca=a,zb(a),...
  function R (line 67) | function R(a){return a(function(){Ib("SBX");var a=Ba&Ca,b=Ma,c=a-b&255;C...
  function S (line 67) | function S(a){return a(function(){Ma=Ba})}
  function T (line 67) | function T(a){return a(function(){Ma=Ca})}
  function U (line 67) | function U(a){return a(function(){Ma=Da})}
  function V (line 67) | function V(a){return a(function(){Ib("SAX"),Ma=Ba&Ca})}
  function W (line 67) | function W(a){return a(function(){Ib("SHA"),Ma=Ba&Ca&(Oa>>>8)+1&255})}
  function X (line 67) | function X(a){return a(function(){Ib("SHS");var a=Ba&Ca;Aa=a,Ma=a&(Oa>>>...
  function Y (line 67) | function Y(a){return a(function(){Ib("SHX"),Ma=Ca&(Oa>>>8)+1&255})}
  function Z (line 67) | function Z(a){return a(function(){Ib("SHY"),Ma=Da&(Oa>>>8)+1&255})}
  function $ (line 67) | function $(a){return a(function(){Cb(Ma>127);var a=Ma<<1&255;Ma=a,zb(a),...
  function _ (line 67) | function _(a){return a(function(){var a=Ma-1&255;Ma=a,zb(a),Ab(a)})}
  function aa (line 67) | function aa(a){return a(function(){var a=Ma+1&255;Ma=a,zb(a),Ab(a)})}
  function ba (line 67) | function ba(a){return a(function(){Ja=1&Ma,Ma>>>=1,zb(Ma),Ea=0})}
  function ca (line 67) | function ca(a){return a(function(){var a=Ma>127,b=255&(Ma<<1|Ja);Ma=b,Cb...
  function da (line 67) | function da(a){return a(function(){var a=1&Ma,b=Ma>>>1|Ja<<7;Ma=b,Cb(a),...
  function ea (line 67) | function ea(a){return a(function(){Ib("DCP");var a=Ma-1&255;Ma=a,a=Ba-a,...
  function fa (line 67) | function fa(a){return a(function(){if(Ib("ISB"),Ma=Ma+1&255,Ga){var a=Ma...
  function ga (line 67) | function ga(a){return a(function(){Ib("RLA");var a=Ma,b=Ja;Cb(128&a),a=2...
  function ha (line 67) | function ha(a){return a(function(){Ib("RRA");var a=Ma,b=Ja?128:0;if(Cb(1...
  function ia (line 67) | function ia(a){return a(function(){Ib("SLO");var a=Ma;Cb(128&a),a=a<<1&2...
  function ja (line 67) | function ja(a){return a(function(){Ib("SRE");var a=Ma;Cb(1&a),a>>>=1,Ma=...
  function ka (line 67) | function ka(){return[_a,bb,function(){Fb(Ba)},ab]}
  function la (line 67) | function la(){return[_a,bb,function(){Fb(Gb())},ab]}
  function ma (line 67) | function ma(){return[_a,bb,Eb,function(){Ba=Db(),zb(Ba),Ab(Ba)},ab]}
  function na (line 67) | function na(){return[_a,bb,Eb,function(){Hb(Db())},ab]}
  function oa (line 67) | function oa(){return[_a,db,Eb,function(){Fb(za>>>8&255)},function(){Fb(2...
  function pa (line 67) | function pa(){return[_a,sb,function(){va.debug&&va.breakpoint("BRK "+Ma)...
  function qa (line 67) | function qa(){return[_a,bb,Eb,function(){Hb(Db())},function(){Na=Db()},f...
  function ra (line 67) | function ra(){return[_a,bb,Eb,function(){Na=Db()},function(){Na|=Db()<<8...
  function sa (line 67) | function sa(){return[_a,db,eb,function(){za=Na,ab()}]}
  function ta (line 67) | function ta(){return[_a,pb,qb,jb,function(){rb(),kb()},function(){za=Oa,...
  function ua (line 67) | function ua(a,b){var c;return c=a===Za?function(){return Ia===b}:a===Xa?...
  function a (line 69) | function a(){for(var a=b.length-1;a>=0;a--)b[a]=256*Math.random()|0}
  function a (line 70) | function a(){e||(e=new jt.AudioSignal("TiaAudio",c,k,j)),d.connectAudioS...
  function b (line 70) | function b(){e&&d.disconnectAudioSignal(e)}
  function init (line 70) | function init(){generateObjectsLineSprites(),generateObjectsCopiesOffset...
  function renderLineTo (line 70) | function renderLineTo(a){var b,c=a>LINE_WIDTH?LINE_WIDTH:a;if(vBlankOn)f...
  function changeAt (line 70) | function changeAt(a){vBlankOn||(a>renderClock&&((changeClock>=0||changeC...
  function changeAtClock (line 70) | function changeAtClock(){changeAt(clock)}
  function changeAtClockPlus (line 70) | function changeAtClockPlus(a){changeAt(clock+a)}
  function changePlayfieldAtClock (line 70) | function changePlayfieldAtClock(){if(debug&&debugPixel(DEBUG_PF_GR_COLOR...
  function changeVBlankAtClockPlus1 (line 70) | function changeVBlankAtClockPlus1(){var a=clock+1;a>renderClock&&((chang...
  function updateToClock (line 70) | function updateToClock(){vBlankOn||clock>renderClock&&((changeClock>=0||...
  function augmentCollisionsPossible (line 70) | function augmentCollisionsPossible(){collisionsPossible=65534,player0Ena...
  function playfieldUpdateSprite (line 70) | function playfieldUpdateSprite(){playfieldPatternL=PF2<<12|jt.Util.rever...
  function playfieldUpdateSpriteR (line 70) | function playfieldUpdateSpriteR(){playfieldPatternR=playfieldReflected?j...
  function ballSetEnabled (line 70) | function ballSetEnabled(a){a?(ballEnabled=!0,augmentCollisionsPossible()...
  function player0SetShape (line 70) | function player0SetShape(a){if(NUSIZ0!==a){var b=NUSIZ0^a,c=NUSIZ0;NUSIZ...
  function player0SetSprite (line 70) | function player0SetSprite(a){debug&&debugPixel(DEBUG_P0_GR_COLOR),GRP0d!...
  function player0UpdateSprite (line 70) | function player0UpdateSprite(a){var b=VDELP0?GRP0:GRP0d;if(b){var c=((RE...
  function player1SetShape (line 70) | function player1SetShape(a){if(NUSIZ1!==a){var b=NUSIZ1^a,c=NUSIZ1;NUSIZ...
  function player1SetSprite (line 71) | function player1SetSprite(a){debug&&debugPixel(DEBUG_P1_GR_COLOR),GRP1d!...
  function player1UpdateSprite (line 71) | function player1UpdateSprite(a){var b=VDELP1?GRP1:GRP1d;if(b){var c=((RE...
  function missile0UpdateSprite (line 71) | function missile0UpdateSprite(a){var b=(((48&NUSIZ0)>>1|7&NUSIZ0)<<6)+(m...
  function missile0SetEnabled (line 71) | function missile0SetEnabled(a){a?(missile0Enabled=!0,augmentCollisionsPo...
  function missile0SetResetToPlayer (line 71) | function missile0SetResetToPlayer(a){RESMP0!==(2&a)&&(ENAM0?(changeAtClo...
  function missile1UpdateSprite (line 71) | function missile1UpdateSprite(a){var b=(((48&NUSIZ1)>>1|7&NUSIZ1)<<6)+(m...
  function missile1SetEnabled (line 71) | function missile1SetEnabled(a){a?(missile1Enabled=!0,augmentCollisionsPo...
  function missile1SetResetToPlayer (line 71) | function missile1SetResetToPlayer(a){RESMP1!==(2&a)&&(ENAM1?(changeAtClo...
  function player0DefineAlt (line 71) | function player0DefineAlt(){var a=player0AltFrom<<16|player0AltLength<<8...
  function player1DefineAlt (line 71) | function player1DefineAlt(){var a=player1AltFrom<<16|player1AltLength<<8...
  function missile0DefineAlt (line 71) | function missile0DefineAlt(){var a=missile0AltFrom<<16|missile0AltLength...
  function missile1DefineAlt (line 71) | function missile1DefineAlt(){var a=missile1AltFrom<<16|missile1AltLength...
  function getRESxPixel (line 71) | function getRESxPixel(){if(clock>=HBLANK_DURATION+(hMoveHitBlank?7:0))re...
  function checkLateHMOVE (line 71) | function checkLateHMOVE(){hMoveLateHit?(hMoveLateHit=!1,hMoveHitBlank=hM...
  function updateExtendedHBLANK (line 71) | function updateExtendedHBLANK(){hMoveHitBlank!==(linePixels[HBLANK_DURAT...
  function endObjectsAltStatusMidLine (line 71) | function endObjectsAltStatusMidLine(){1===player0Alt&&(player0Enabled&&c...
  function endObjectsAltStatusEndOfLine (line 71) | function endObjectsAltStatusEndOfLine(){2===player0Alt&&(player0Alt=0,pl...
  function vSyncSet (line 71) | function vSyncSet(a){debug?(debugPixel(VSYNC_COLOR),changeAtClock(),vSyn...
  function generateObjectsLineSprites (line 71) | function generateObjectsLineSprites(){function a(a,b,c){for(var d=0;d<8;...
  function generateObjectsCopiesOffsets (line 72) | function generateObjectsCopiesOffsets(){var a=new Uint8Array(40);a[0]=0,...
  function e (line 75) | function e(e){f=a,g=b,h=c,i=d,f.connectBus(e),g.connectBus(e),h.connectB...
  function init (line 75) | function init(){mainComponentsCreate(),socketsCreate(),self.setDefaults()}
  function videoFrame (line 75) | function videoFrame(){userPaused&&userPauseMoreFrames--<=0||(videoStanda...
  function vSynchToggleMode (line 75) | function vSynchToggleMode(){return vSynchMode===-1?void self.showOSD("V-...
  function updateVideoSynchronization (line 75) | function updateVideoSynchronization(){videoPulldown=1===vSynchMode?video...
  function mainVideoClockUpdateSpeed (line 75) | function mainVideoClockUpdateSpeed(){var a=videoPulldown.frequency;mainV...
  function CartridgeSocket (line 75) | function CartridgeSocket(){this.insert=function(a,b){b&&self.powerIsOn&&...
  function ConsoleControlsSocket (line 75) | function ConsoleControlsSocket(){this.setDefaults=function(){self.setDef...
  function SaveStateSocket (line 75) | function SaveStateSocket(){this.connectMedia=function(b){a=b},this.getMe...
  function AudioSocket (line 75) | function AudioSocket(){this.connectMonitor=function(b){a=b;for(var d=c.l...
  function c (line 78) | function c(c){c.rom=a,c.format=b,d=new Array(4096);for(var e=a.content.l...
  function c (line 78) | function c(c){c.rom=a,c.format=b,e=new Array(4096);for(var d=a.content.l...
  function f (line 78) | function f(f){f.rom=a,f.format=b,h=a.content;var g=h.length/q;i=c,j=i+g-...
  function c (line 78) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 78) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 78) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 78) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 78) | function c(c){c.rom=a,c.format=b,m=a.content}
  function d (line 79) | function d(d){d.rom=a,d.format=b,n=a.content,p=c||0,q=p;var e=(n.length-...
  function c (line 79) | function c(c){c.rom=a,c.format=b,d=a.content,e=(d.length-i)/i-1,f=d.leng...
  function c (line 79) | function c(c){c.rom=a,c.format=b,e=a.content,f=(e.length-m)/m-1,g=e.leng...
  function c (line 79) | function c(c){c.rom=a,c.format=b,d=a.content,e=d.length/h-1}
  function c (line 79) | function c(c){c.rom=a,c.format=b,e=jt.Util.arrayFill(new Array(4*M)),o()}
  function c (line 80) | function c(c){c.rom=a,c.format=b,d=a.content}
  function c (line 80) | function c(c){c.rom=a,c.format=b,d=a.content}
  function c (line 80) | function c(c){c.rom=a,c.format=b,d=a.content}
  function a (line 82) | function a(){if(!e){try{e=JSON.parse(localStorage.javataristoredromsdata...
  function b (line 82) | function b(){d=[],localStorage.javataristoredromsicatalog=JSON.stringify...
  function b (line 82) | function b(a,b,d,e,f,g,h){for(var i=0;i<a.length;i++)if(c(a[i],b,d,e,f,g...
  function c (line 82) | function c(a,b,e,f,g,h,i,j){try{i&&!a.content&&(a.content=a.asUint8Array...
  function d (line 82) | function d(a,b,c,d,e,f,g){if(c=c||w.AUTO,(c===w.STATE||c===w.AUTO)&&m.lo...
  function e (line 82) | function e(a){if(a.returnValue=!1,a.preventDefault(),a.stopPropagation()...
  function f (line 82) | function f(a){a.returnValue=!1,a.preventDefault(),a.stopPropagation(),a....
  function g (line 82) | function g(a){if(a.returnValue=!1,a.preventDefault(),a.stopPropagation()...
  function h (line 82) | function h(a){jt.Util.message("Could not load file(s):\n\n"+a+"\n")}
  function i (line 82) | function i(){n=document.createElement("input"),n.id="jt-file-loader-inpu...
  function a (line 82) | function a(){if("NONE"===c)return alert("Unfortunately file saving in We...
  function b (line 82) | function b(){c=jt.Util.isIOSDevice()?jt.Util.isBrowserStandaloneMode()?"...
  function b (line 83) | function b(a,b){this.index=a,this.update=function(b){return c=b[a],!!c},...
  function b (line 84) | function b(){v.classList.toggle("jt-poweroff",!I),v.classList.toggle("jt...
  function c (line 84) | function c(){var a=z>0;document.documentElement.classList.toggle("jt-tou...
  function d (line 84) | function d(a){if(jt.Util.blockEvent(a),null===D){void 0===t&&i();var b=a...
  function e (line 84) | function e(a){jt.Util.blockEvent(a),null!==D&&(D=null,h(-1))}
  function f (line 84) | function f(a){if(jt.Util.blockEvent(a),null!==D)for(var b=a.changedTouch...
  function g (line 84) | function g(a,b){var c=-1,d=a-t,e=b-u,f=Math.sqrt(d*d+e*e);f>F&&(c=(1-Mat...
  function h (line 84) | function h(b){if(E!==b){b>=0&&a.hapticFeedback();var c=!1,d=!1,e=!1,f=!1...
  function i (line 84) | function i(){var a=C.getBoundingClientRect();F=.14*(a.right-a.left)|0,t=...
  function j (line 84) | function j(a){jt.Util.blockEvent(a),l(a.target.jtControl,!0)}
  function k (line 84) | function k(a){jt.Util.blockEvent(a),l(a.target.jtControl,!1)}
  function l (line 84) | function l(b,c){b&&(c&&a.hapticFeedback(),a.processKey(w[b].c,c))}
  function m (line 84) | function m(b){jt.Util.blockEvent(b),a.hapticFeedback(),r.controlStateCha...
  function n (line 84) | function n(b){jt.Util.blockEvent(b),a.hapticFeedback(),r.controlStateCha...
  function o (line 84) | function o(b){jt.Util.blockEvent(b),J||(a.hapticFeedback(),r.controlStat...
  function p (line 84) | function p(){H.reset(),t=u=void 0,D=null,h(-1)}
  function q (line 84) | function q(){this.reset=function(){this.portValue=63},this.reset()}
  function c (line 84) | function c(){function a(a){var c=document.createElement("div");c.classLi...
  function g (line 84) | function g(a,b){var c=document.createElement("div");c.id="jt-touch-"+b,c...
  function b (line 84) | function b(){l=new jt.GamepadConsoleControls(g),m=new jt.DOMTouchControl...
  function c (line 84) | function c(a){B=a,C=B?60/F[B]|0:0,E=C/2|0,D=0}
  function d (line 84) | function d(a,b){a.returnValue=!1,a.preventDefault(),a.stopPropagation();...
  function e (line 84) | function e(a,b){y&&(a=o(a),p(a,b))||b!==u[a]&&(h.controlStateChanged(a,b...
  function f (line 84) | function f(){i.controlsModeStateUpdate()}
  function b (line 87) | function b(){n(),m(),e.setVideoStandard(H)}
  function c (line 87) | function c(a){var b=a<.5?.5:a>2.5?2.5:a;return Math.round(10*b)/10}
  function d (line 87) | function d(a){var b=a<.5?.5:a;return Math.round(10*b)/10}
  function c (line 87) | function c(){k(),l(),p()}
  function d (line 87) | function d(b){jt.Util.blockEvent(b),I||(r.hapticFeedbackOnTouch(b),a.clo...
  function e (line 87) | function e(a){jt.Util.blockEvent(a),a.target.jtPressed=!1,I||(r.hapticFe...
  function f (line 87) | function f(a){a.target.jtPressed&&e(a)}
  function g (line 87) | function g(b){r.hapticFeedbackOnTouch(b),a.closeAllOverlays(),s.controlA...
  function init (line 87) | function init(){jt.Util.insertCSS(jt.ScreenGUI.css()),delete jt.ScreenGU...
  function consolePanelUpdateForOrientation (line 87) | function consolePanelUpdateForOrientation(){
  function setConsolePanelActive (line 88) | function setConsolePanelActive(a){consolePanelActive!==a&&(consolePanelA...
  function hideOSD (line 88) | function hideOSD(){osd.style.transition="all 0.15s linear",osd.style.top...
  function releaseControllersOnLostFocus (line 88) | function releaseControllersOnLostFocus(){consoleControlsSocket.releaseCo...
  function hideCursorAndBar (line 88) | function hideCursorAndBar(){hideCursor(),hideBar(),cursorHideFrameCountd...
  function showCursorAndBar (line 88) | function showCursorAndBar(a){showCursor(),!a&&mousePointerLocked||showBa...
  function showCursor (line 88) | function showCursor(){cursorShowing||(fsElement.style.cursor=cursorType,...
  function hideCursor (line 88) | function hideCursor(){cursorShowing&&(fsElement.style.cursor="none",curs...
  function fullscreenByAPIChanged (line 88) | function fullscreenByAPIChanged(){var a=isFullscreen,b=isFullScreenByAPI...
  function isFullScreenByAPI (line 88) | function isFullScreenByAPI(){return!!document[fullScreenAPIQueryProp]}
  function enterFullScreenByAPI (line 88) | function enterFullScreenByAPI(){if(fullscreenAPIEnterMethod)try{fullscre...
  function exitFullScreenByAPI (line 88) | function exitFullScreenByAPI(){if(fullScreenAPIExitMethod)try{fullScreen...
  function updateScale (line 88) | function updateScale(){var a=Math.round(targetWidth*scaleY*aspectX*2),b=...
  function updateBarWidth (line 88) | function updateBarWidth(a){var b=buttonsBarDesiredWidth>0?buttonsBarDesi...
  function updateConsolePanelScale (line 88) | function updateConsolePanelScale(a){var b=consolePanel.updateScale(a,isF...
  function updateCanvasContentSize (line 88) | function updateCanvasContentSize(){var a=crtFilterEffective>0?CANVAS_SIZ...
  function setCRTFilter (line 88) | function setCRTFilter(a){crtFilter=a,crtFilterEffective=crtFilter===-2?n...
  function crtFilterAutoValue (line 88) | function crtFilterAutoValue(){return isMobileDevice&&!isIOSDevice&&"FIRE...
  function setCRTMode (line 88) | function setCRTMode(a){crtMode=a,crtModeEffective=crtMode===-1?crtModeAu...
  function crtModeAutoValue (line 88) | function crtModeAutoValue(){return 0}
  function updateLogo (line 88) | function updateLogo(){signalIsOn||(updateLogoScale(),showCursorAndBar(!0...
  function updateLoading (line 88) | function updateLoading(){var a=isLoading?"block":"none";logoLoadingIcon....
  function createCanvasContext (line 88) | function createCanvasContext(){canvasContext=canvas.getContext("2d",{alp...
  function setImageComposition (line 88) | function setImageComposition(){crtModeEffective>0&&!debugMode?(canvasCon...
  function setImageSmoothing (line 88) | function setImageSmoothing(){if(canvas.style.imageRendering=0===crtFilte...
  function suppressContextMenu (line 88) | function suppressContextMenu(a){a.addEventListener("contextmenu",jt.Util...
  function preventDrag (line 88) | function preventDrag(a){a.ondragstart=jt.Util.blockEvent}
  function setupMain (line 88) | function setupMain(){switch(mainElement.innerHTML=jt.ScreenGUI.html(),ma...
  function setupMainEvents (line 88) | function setupMainEvents(){(isMobileDevice?canvasOuter:fsElement).addEve...
  function setupBar (line 88) | function setupBar(){buttonsBar=document.getElementById("jt-bar"),buttons...
  function addBarButton (line 89) | function addBarButton(a,b,c,d,e,f,g,h){var i=document.createElement("div...
  function barButtonTapOrMousedown (line 89) | function barButtonTapOrMousedown(a,b){if(!logoMessageActive){consoleCont...
  function barButtonLongTouchStart (line 89) | function barButtonLongTouchStart(a){barButtonLongTouchTarget=a.target,ba...
  function barButtonLongTouchCancel (line 89) | function barButtonLongTouchCancel(){barButtonLongTouchSelectTimeout&&(cl...
  function barButtonHoverOver (line 89) | function barButtonHoverOver(a,b){barMenuActive&&a.jtMenu&&barMenuActive!...
  function barButtonMouseLeft (line 89) | function barButtonMouseLeft(){barConsoleControlPressed&&(cursorHideFrame...
  function barButtonTouchEndOrMouseUp (line 89) | function barButtonTouchEndOrMouseUp(a){if(!logoMessageActive)return barC...
  function barMenuItemTapOrMouseDown (line 89) | function barMenuItemTapOrMouseDown(a,b){barMenuItemSetActive(a,"touchsta...
  function barMenuItemHoverOver (line 89) | function barMenuItemHoverOver(a,b){barMenuItemSetActive(a,"touchmove"===...
  function barMenuItemHoverOut (line 89) | function barMenuItemHoverOut(){barMenuItemSetActive(null)}
  function barMenuItemTouchEndOrMouseUp (line 89) | function barMenuItemTouchEndOrMouseUp(a){logoMessageActive||!barMenuItem...
  function barMenuItemFireActive (line 89) | function barMenuItemFireActive(a,b){var c=barMenuItemActive.jtMenuOption...
  function barMenuItemSetActive (line 89) | function barMenuItemSetActive(a,b){a!==barMenuItemActive&&(barMenuItemAc...
  function barElementTapOrMouseDown (line 89) | function barElementTapOrMouseDown(a){cursorHideFrameCountdown=CURSOR_HID...
  function barElementTouchMove (line 89) | function barElementTouchMove(a){jt.Util.blockEvent(a);var b=a.changedTou...
  function barElementTouchEndOrMouseUp (line 89) | function barElementTouchEndOrMouseUp(a){cursorHideFrameCountdown=CURSOR_...
  function setupFullscreen (line 89) | function setupFullscreen(){fullscreenAPIEnterMethod=fsElement.requestFul...
  function setEnterFullscreenByAPIOnFirstTouch (line 89) | function setEnterFullscreenByAPIOnFirstTouch(){if(fullscreenAPIEnterMeth...
  function setFullscreenState (line 89) | function setFullscreenState(a){isFullscreen=a,a?(setViewport(),document....
  function tryToFixSafariBugOnFullScreenChange (line 90) | function tryToFixSafariBugOnFullScreenChange(){var a=document.getElement...
  function showBar (line 90) | function showBar(){buttonsBar.classList.remove("jt-hidden")}
  function hideBar (line 90) | function hideBar(){!BAR_AUTO_HIDE&&!isFullscreen||barMenuActive||console...
  function showBarMenu (line 90) | function showBarMenu(a,b){if(a&&barMenuActive!==a){if(!barMenu)return se...
  function refreshBarMenu (line 90) | function refreshBarMenu(a){barMenu.jtTitle.innerHTML=a.jtTitle,barMenu.j...
  function hideBarMenu (line 90) | function hideBarMenu(){barMenuActive&&(barMenuActive=null,barMenu.style....
  function setupBarMenu (line 90) | function setupBarMenu(){barMenu=document.createElement("div"),barMenu.id...
  function closeAllOverlays (line 90) | function closeAllOverlays(){hideBarMenu(),saveStateDialog&&saveStateDial...
  function showLogoMessage (line 90) | function showLogoMessage(a,b,c,d){consolePanel.setLogoMessageActive(!0),...
  function updateLogoScale (line 90) | function updateLogoScale(){var a=canvasOuter.clientWidth,b=Math.min(a/jt...
  function setScrollMessage (line 90) | function setScrollMessage(a){console.error("Scroll Message: "+a),fsEleme...
  function readjustAll (line 90) | function readjustAll(a){if(isReadjustScreeSizeChanged(a)){if(isFullscree...
  function isReadjustScreeSizeChanged (line 90) | function isReadjustScreeSizeChanged(a){var b=mainElement.parentElement.c...
  function displayOptimalScaleY (line 90) | function displayOptimalScaleY(a,b){var c=2*aspectX,d=b/targetHeight;retu...
  function setViewport (line 90) | function setViewport(){if(isMobileDevice){if(void 0===viewPortOriginalCo...
  function restoreViewport (line 90) | function restoreViewport(){if(isMobileDevice){if(!viewPortOriginalTag&&v...
  function setPageVisibilityHandling (line 90) | function setPageVisibilityHandling(){function a(){logoMessageActive||(do...
  function b (line 91) | function b(){self.setFullscreen(!0),a()}
  function e (line 92) | function e(){j.style.height=""+(42+33*(l.length+1))+"px";for(var a=0;a<1...
  function f (line 92) | function f(){for(var a=0;a<n.length;++a)n[a].classList.toggle("jt-select...
  function g (line 92) | function g(){j=document.createElement("div"),j.id="jt-recent-roms",j.cla...
  function h (line 92) | function h(){function a(){i.hide(!1)}function b(){i.hide(!0)}jt.Util.onT...
  function e (line 92) | function e(){l.textContent="Select Slot to "+(m?"Save":"Load");for(var a...
  function f (line 92) | function f(){for(var a=0;a<o.length;++a)o[a].classList.toggle("jt-select...
  function g (line 92) | function g(){j=document.createElement("div"),j.id="jt-savestate",j.class...
  function h (line 92) | function h(){function a(){i.hide(!1)}function b(){i.hide(!0)}jt.Util.onT...
  function d (line 92) | function d(){for(var a=0;a<i.length;++a){var d=i[a],e=d.peripheral?c.get...
  function e (line 92) | function e(){h=document.createElement("div"),h.id="jt-quick-options",h.t...
  function f (line 92) | function f(){jt.Util.onTapOrMouseDownWithBlock(h,function(a){if(a.target...
  function c (line 93) | function c(){jt.Util.insertCSS(jt.SettingsGUI.css()),a.insertAdjacentHTM...
  function d (line 93) | function d(){function a(b,c){c(b);for(var d=b.childNodes,e=0;e<d.length;...
  function e (line 93) | function e(){jt.Util.onTapOrMouseDownWithBlock(j,function(){j.focus()}),...
  function f (line 94) | function f(){i["jt-browserinfo"].innerHTML=navigator.userAgent}
  function g (line 94) | function g(){var a=b.isPaddleMode(),c=b.isP1ControlsMode();i["jt-ports-p...
  function h (line 94) | function h(a,b){var c=jt.DOMKeys.codeForKeyboardEvent(a);return b&&c===w...
  function b (line 94) | function b(){return jt.Util.isMobileDevice()?"CHROME"!==jt.Util.browserI...
  function c (line 94) | function c(){return"SAFARI"===jt.Util.browserInfo().name||jt.Util.isIOSD...
  function d (line 94) | function d(){!m||k.state&&"suspended"!==k.state||(a.addEventListener("to...
  function e (line 94) | function e(){if(m){n.length=j.length,o.length=j.length;for(var a=0;a<j.l...
  function f (line 94) | function f(a){for(var b=a.outputBuffer.getChannelData(0),c=b.length,d=c-...
  function a (line 95) | function a(){k()}
  function c (line 95) | function c(){f(),g()}
  function d (line 95) | function d(a){var b=Javatari.AUTO_POWER_ON_DELAY;b>=0&&JavatariFullScree...
  function e (line 95) | function e(){b&&(h.console.getCartridgeSocket().inserted()?h.console.use...
  function f (line 96) | function f(){h.peripheralControls=new jt.DOMPeripheralControls,h.console...
  function g (line 96) | function g(){h.console=new jt.AtariConsole,h.stateMedia.connect(h.consol...
  function a (line 101) | function a(){for(var a,b=(window.location.search||"").split("+").join(" ...
  function b (line 101) | function b(){Javatari.AUTO_POWER_ON_DELAY|=0,Javatari.CARTRIDGE_CHANGE_D...
  function a (line 101) | function a(a){Javatari.start&&Javatari.AUTO_START&&(a||b&&0===c)&&Javata...

FILE: release/stable/5.0/embedded/javatari.js
  function onUpdateReady (line 64) | function onUpdateReady(){alert("A new version is available!\nJavatari wi...
  function a (line 64) | function a(a,b){return a.name<b.name?-1:a.name>b.name?1:0}
  function b (line 64) | function b(a){return a.stopPropagation(),a.cancelable&&a.preventDefault(...
  function d (line 65) | function d(a){return c(a),b(a)}
  function d (line 65) | function d(a){return c(a),b(a)}
  function d (line 65) | function d(a){if("touchend"===a.type&&!a.target.jtNeedsUIG)return b(a);v...
  function b (line 65) | function b(a){var b=(a>>>0).toString(16);return"00000000".substr(0,8-b.l...
  function c (line 65) | function c(a){for(var b=[],c=0;c<8;c++)b.push(255&a),a>>>=8;return b}
  function d (line 65) | function d(a,b){return a<<b&4294967295|a>>>32-b}
  function e (line 65) | function e(a,b,c){return a&b|~a&c}
  function f (line 65) | function f(a,b,c){return c&a|~c&b}
  function g (line 65) | function g(a,b,c){return a^b^c}
  function h (line 65) | function h(a,b,c){return b^(a|~c)}
  function i (line 65) | function i(a,b){return a[b+3]<<24|a[b+2]<<16|a[b+1]<<8|a[b]}
  function j (line 65) | function j(a){for(var b=[],c=0;c<a.length;c++)if(a.charCodeAt(c)<=127)b....
  function k (line 65) | function k(a,c,d,e){for(var f="",g=0,h=0,i=3;i>=0;i--)h=arguments[i],g=2...
  function l (line 65) | function l(a){for(var b=new Array(a.length),c=0;c<a.length;c++)b[c]=a[c]...
  function m (line 65) | function m(a,b){return 4294967295&a+b}
  function a (line 65) | function a(a,b,c,e){var f=v;v=u,u=t,t=m(t,d(m(s,m(a,m(b,c))),e)),s=f}
  function e (line 65) | function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&re...
  function c (line 66) | function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,...
  function c (line 66) | function c(){this.data=null,this.length=0,this.index=0}
  function c (line 66) | function c(a,b){return this instanceof c?(this.files={},this.comment=nul...
  function c (line 67) | function c(a){this.data=a,this.length=this.data.length,this.index=0}
  function c (line 67) | function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),th...
  function c (line 68) | function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}
  function d (line 68) | function d(a){return a}
  function e (line 68) | function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);retu...
  function f (line 68) | function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{...
  function g (line 68) | function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}
  function c (line 68) | function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}
  function c (line 69) | function c(a,b){this.options=a,this.loadOptions=b}
  function d (line 69) | function d(a,b){var c=new l(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 69) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function f (line 69) | function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}
  function d (line 70) | function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 70) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function d (line 70) | function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return Strin...
  function c (line 70) | function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c...
  function c (line 70) | function c(a,b,c,e){var f=d,g=e+c;a^=-1;for(var h=e;g>h;h++)a=a>>>8^f[25...
  function d (line 70) | function d(a,b){return a.msg=G[b],b}
  function e (line 70) | function e(a){return(a<<1)-(a>4?9:0)}
  function f (line 70) | function f(a){for(var b=a.length;--b>=0;)a[b]=0}
  function g (line 70) | function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0...
  function h (line 70) | function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a....
  function i (line 70) | function i(a,b){a.pending_buf[a.pending++]=b}
  function j (line 70) | function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pen...
  function k (line 70) | function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_...
  function l (line 70) | function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_lengt...
  function m (line 71) | function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead...
  function n (line 71) | function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf...
  function o (line 71) | function o(a,b){for(var c,d;;){if(a.lookahead<ha){if(m(a),a.lookahead<ha...
  function p (line 71) | function p(a,b){for(var c,d,e;;){if(a.lookahead<ha){if(m(a),a.lookahead<...
  function q (line 71) | function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ga){if(m(a...
  function r (line 71) | function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead))...
  function s (line 71) | function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.le...
  function t (line 71) | function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pen...
  function u (line 71) | function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_t...
  function v (line 71) | function v(a){var b=u(a);return b===M&&s(a.state),b}
  function w (line 71) | function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M...
  function x (line 71) | function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,...
  function y (line 72) | function y(a,b){return x(a,b,Y,$,_,W)}
  function z (line 72) | function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;...
  function A (line 72) | function A(a){var b;return a&&a.state?(b=a.state.status,b!==ja&&b!==ka&&...
  function c (line 72) | function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=...
  function d (line 72) | function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<...
  function e (line 72) | function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this....
  function f (line 72) | function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=...
  function g (line 72) | function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.w...
  function h (line 72) | function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=1...
  function i (line 72) | function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,...
  function j (line 73) | function j(a){return i(a,qa)}
  function k (line 73) | function k(a){if(ra){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;...
  function l (line 73) | function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<...
  function m (line 73) | function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,oa,pa,qa,ra,sa,ta,ua,va,wa,x...
  function n (line 74) | function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b...
  function o (line 74) | function o(a,b){var c;return a&&a.state?(c=a.state,0==(2&c.wrap)?F:(c.he...
  function d (line 74) | function d(a){for(var b=a.length;--b>=0;)a[b]=0}
  function e (line 74) | function e(a){return 256>a?da[a]:da[256+(a>>>7)]}
  function f (line 74) | function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending...
  function g (line 74) | function g(a,b,c){a.bi_valid>T-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi...
  function h (line 74) | function h(a,b,c){g(a,c[2*b],c[2*b+1])}
  function i (line 74) | function i(a,b){var c=0;do{c|=1&a,a>>>=1,c<<=1}while(--b>0);return c>>>1}
  function j (line 74) | function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a....
  function k (line 74) | function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc....
  function l (line 74) | function l(a,b,c){var d,e,f=new Array(S+1),g=0;for(d=1;S>=d;d++)f[d]=g=g...
  function m (line 74) | function m(){var a,b,c,d,e,f=new Array(S+1);for(c=0,d=0;M-1>d;d++)for(fa...
  function n (line 74) | function n(a){var b;for(b=0;O>b;b++)a.dyn_ltree[2*b]=0;for(b=0;P>b;b++)a...
  function o (line 74) | function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a....
  function p (line 74) | function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a....
  function q (line 74) | function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<...
  function r (line 74) | function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_le...
  function s (line 74) | function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do{d=a.pending_buf[a...
  function t (line 74) | function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.sta...
  function u (line 75) | function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3)...
  function v (line 75) | function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3)...
  function w (line 75) | function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtr...
  function x (line 75) | function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e...
  function y (line 75) | function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a....
  function z (line 75) | function z(a){ma||(m(),ma=!0),a.l_desc=new la(a.dyn_ltree,ha),a.d_desc=n...
  function A (line 75) | function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}
  function B (line 75) | function B(a){g(a,K<<1,3),h(a,V,ba),j(a)}
  function C (line 75) | function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm...
  function D (line 75) | function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a...
  function c (line 75) | function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_i...
  function e (line 75) | function e(a){if(a){var b=a.url.trim().split(/\s*\|\s*/);a.filesToLoad=b...
  function f (line 75) | function f(a,b,c){jt.Util.log("Reading Embedded file: "+c);var d=jt.Embe...
  function g (line 75) | function g(a,b,c,e){var f=k(c)?l(c):c,g=new XMLHttpRequest;g.open("GET",...
  function h (line 75) | function h(a,b,c){a.filesContent[b]=c,--a.filesToLoad>0||(a.success=!0,a...
  function i (line 75) | function i(a,b){a.success=!1,a.error=b;var d="Could not load file: "+a.u...
  function j (line 75) | function j(){if(!q){for(var d=0;d<a.length;d++)if(a[d]&&void 0===a[d].su...
  function k (line 75) | function k(a){return a&&(0===a.indexOf("http:")||0===a.indexOf("https:"))}
  function l (line 75) | function l(a){return Javatari.PROXY_SERVER_ADDRESS?"https://"+Javatari.P...
  function m (line 75) | function m(){Javatari.room.isLoading||(p=window.setTimeout(function(){p=...
  function n (line 75) | function n(){p&&(window.clearTimeout(p),p=null),o&&(o=!1,Javatari.room.s...
  function e (line 75) | function e(a){if(a){jt.Util.log("Reading file: "+a.name);var b=new FileR...
  function f (line 75) | function f(){if(!g){for(var d=0;d<a.length;d++)if(a[d]&&void 0===a[d].su...
  function e (line 76) | function e(){if(n>0){if(p<=0)return void(n=0);g(),--n,--p}}
  function f (line 76) | function f(){var a=s*Javatari.AUDIO_SIGNAL_BUFFER_RATIO+k*Javatari.AUDIO...
  function g (line 76) | function g(){r[l]=b.nextSample()*d,++l>=o&&(l=0)}
  function h (line 76) | function h(){r[l]=0,++l>=o&&(l=0)}
  function i (line 76) | function i(a,b){if(b)for(var c=a;c>0;c-=1)h();else for(var d=a;d>0;d-=1)...
  function a (line 76) | function a(){return[ja,function(){Ta("KIL/HLT/JAM")},function(){X--}]}
  function b (line 76) | function b(a){return a(function(){Ta("NOP/DOP")})}
  function c (line 76) | function c(a){return a(function(){if(T){var a=Z,b=(15&O)+(15&a)+W;b>9&&(...
  function d (line 76) | function d(a){return a(function(){O&=Z,Ka(O),La(O)})}
  function e (line 76) | function e(a){return a(function(){var a=Z;Ka(O&a),Ma(64&a),La(a)})}
  function f (line 76) | function f(a){return a(function(){var a=O-Z&255;Na(O>=Z),Ka(a),La(a)})}
  function g (line 76) | function g(a){return a(function(){var a=P-Z&255;Na(P>=Z),Ka(a),La(a)})}
  function h (line 76) | function h(a){return a(function(){var a=Q-Z&255;Na(Q>=Z),Ka(a),La(a)})}
  function i (line 76) | function i(a){return a(function(){O^=Z,Ka(O),La(O)})}
  function j (line 76) | function j(a){return a(function(){O=Z,Ka(O),La(O)})}
  function k (line 76) | function k(a){return a(function(){P=Z,Ka(P),La(P)})}
  function l (line 76) | function l(a){return a(function(){Q=Z,Ka(Q),La(Q)})}
  function m (line 76) | function m(a){return a(function(){O|=Z,Ka(O),La(O)})}
  function n (line 76) | function n(a){return a(function(){if(T){var a=Z,b=(15&O)-(15&a)-(1-W),c=...
  function o (line 76) | function o(a){return a(function(){Ta("ANC"),O&=Z,Ka(O),R=W=128&O?1:0})}
  function p (line 76) | function p(a){return a(function(){Ta("LAX");var a=Z;O=a,P=a,Ka(a),La(a)})}
  function q (line 76) | function q(a){return a(function(){Z=O})}
  function r (line 76) | function r(a){return a(function(){Z=P})}
  function s (line 76) | function s(a){return a(function(){Z=Q})}
  function t (line 76) | function t(a){return a(function(){Ta("SAX"),Z=O&P})}
  function u (line 76) | function u(a){return a(function(){Ta("SHA"),Z=O&P&1+(_>>>8)&255})}
  function v (line 76) | function v(a){return a(function(){Na(Z>127);var a=Z<<1&255;Z=a,Ka(a),La(...
  function w (line 76) | function w(a){return a(function(){var a=Z-1&255;Z=a,Ka(a),La(a)})}
  function x (line 76) | function x(a){return a(function(){var a=Z+1&255;Z=a,Ka(a),La(a)})}
  function y (line 76) | function y(a){return a(function(){W=1&Z,Z>>>=1,Ka(Z),R=0})}
  function z (line 76) | function z(a){return a(function(){var a=Z>127,b=255&(Z<<1|W);Z=b,Na(a),K...
  function A (line 76) | function A(a){return a(function(){var a=1&Z,b=Z>>>1|W<<7;Z=b,Na(a),Ka(b)...
  function B (line 76) | function B(a){return a(function(){Ta("DCP");var a=Z-1&255;Z=a,a=O-a,Na(a...
  function C (line 76) | function C(a){return a(function(){if(Ta("ISB"),Z=Z+1&255,T){var a=Z,b=(1...
  function D (line 76) | function D(a){return a(function(){Ta("RLA");var a=Z,b=W;Na(128&a),a=255&...
  function E (line 76) | function E(a){return a(function(){Ta("RRA");var a=Z,b=W?128:0;if(Na(1&a)...
  function F (line 76) | function F(a){return a(function(){Ta("SLO");var a=Z;Na(128&a),a=a<<1&255...
  function G (line 76) | function G(a){return a(function(){Ta("SRE");var a=Z;Na(1&a),a>>>=1,Z=a,a...
  function H (line 76) | function H(a,b){var c;return c=a===ha?function(){return V===b}:a===ga?fu...
  function a (line 79) | function a(){e||(e=new jt.AudioSignal("TiaAudio",c,k,j)),d.connectAudioS...
  function b (line 79) | function b(){e&&d.disconnectAudioSignal(e)}
  function init (line 79) | function init(){generateObjectsLineSprites(),generateObjectsCopiesOffset...
  function renderLineTo (line 79) | function renderLineTo(a){var b,c=a>LINE_WIDTH?LINE_WIDTH:a;if(vBlankOn)f...
  function changeAt (line 79) | function changeAt(a){vBlankOn||(a>renderClock&&((changeClock>=0||changeC...
  function changeAtClock (line 79) | function changeAtClock(){changeAt(clock)}
  function changeAtClockPlus (line 79) | function changeAtClockPlus(a){changeAt(clock+a)}
  function changePlayfieldAtClock (line 79) | function changePlayfieldAtClock(){if(debug&&debugPixel(DEBUG_PF_GR_COLOR...
  function changeVBlankAtClockPlus1 (line 79) | function changeVBlankAtClockPlus1(){var a=clock+1;a>renderClock&&((chang...
  function updateToClock (line 79) | function updateToClock(){vBlankOn||clock>renderClock&&((changeClock>=0||...
  function augmentCollisionsPossible (line 79) | function augmentCollisionsPossible(){collisionsPossible=65534,player0Ena...
  function playfieldUpdateSprite (line 79) | function playfieldUpdateSprite(){playfieldPatternL=PF2<<12|jt.Util.rever...
  function playfieldUpdateSpriteR (line 79) | function playfieldUpdateSpriteR(){playfieldPatternR=playfieldReflected?j...
  function ballSetEnabled (line 79) | function ballSetEnabled(a){a?(ballEnabled=!0,augmentCollisionsPossible()...
  function player0SetShape (line 79) | function player0SetShape(a){if(NUSIZ0!==a){var b=NUSIZ0^a,c=NUSIZ0;NUSIZ...
  function player0SetSprite (line 80) | function player0SetSprite(a){debug&&debugPixel(DEBUG_P0_GR_COLOR),GRP0d!...
  function player0UpdateSprite (line 80) | function player0UpdateSprite(a){var b=VDELP0?GRP0:GRP0d;if(b){var c=((RE...
  function player1SetShape (line 80) | function player1SetShape(a){if(NUSIZ1!==a){var b=NUSIZ1^a,c=NUSIZ1;NUSIZ...
  function player1SetSprite (line 80) | function player1SetSprite(a){debug&&debugPixel(DEBUG_P1_GR_COLOR),GRP1d!...
  function player1UpdateSprite (line 80) | function player1UpdateSprite(a){var b=VDELP1?GRP1:GRP1d;if(b){var c=((RE...
  function missile0UpdateSprite (line 80) | function missile0UpdateSprite(a){var b=(((48&NUSIZ0)>>1|7&NUSIZ0)<<6)+(m...
  function missile0SetEnabled (line 80) | function missile0SetEnabled(a){a?(missile0Enabled=!0,augmentCollisionsPo...
  function missile0SetResetToPlayer (line 80) | function missile0SetResetToPlayer(a){RESMP0!==(2&a)&&(ENAM0?(changeAtClo...
  function missile1UpdateSprite (line 80) | function missile1UpdateSprite(a){var b=(((48&NUSIZ1)>>1|7&NUSIZ1)<<6)+(m...
  function missile1SetEnabled (line 80) | function missile1SetEnabled(a){a?(missile1Enabled=!0,augmentCollisionsPo...
  function missile1SetResetToPlayer (line 80) | function missile1SetResetToPlayer(a){RESMP1!==(2&a)&&(ENAM1?(changeAtClo...
  function player0DefineAlt (line 80) | function player0DefineAlt(){var a=player0AltFrom<<16|player0AltLength<<8...
  function player1DefineAlt (line 80) | function player1DefineAlt(){var a=player1AltFrom<<16|player1AltLength<<8...
  function missile0DefineAlt (line 80) | function missile0DefineAlt(){var a=missile0AltFrom<<16|missile0AltLength...
  function missile1DefineAlt (line 80) | function missile1DefineAlt(){var a=missile1AltFrom<<16|missile1AltLength...
  function getRESxPixel (line 80) | function getRESxPixel(){if(clock>=HBLANK_DURATION+(hMoveHitBlank?7:0))re...
  function checkLateHMOVE (line 81) | function checkLateHMOVE(){hMoveLateHit?(hMoveLateHit=!1,hMoveHitBlank=hM...
  function updateExtendedHBLANK (line 81) | function updateExtendedHBLANK(){hMoveHitBlank!==(linePixels[HBLANK_DURAT...
  function endObjectsAltStatusMidLine (line 81) | function endObjectsAltStatusMidLine(){1===player0Alt&&(player0Enabled&&c...
  function endObjectsAltStatusEndOfLine (line 81) | function endObjectsAltStatusEndOfLine(){2===player0Alt&&(player0Alt=0,pl...
  function vSyncSet (line 81) | function vSyncSet(a){debug?(debugPixel(VSYNC_COLOR),changeAtClock(),vSyn...
  function generateObjectsLineSprites (line 81) | function generateObjectsLineSprites(){function a(a,b,c){for(var d=0;d<8;...
  function generateObjectsCopiesOffsets (line 81) | function generateObjectsCopiesOffsets(){var a=new Uint8Array(40);a[0]=0,...
  function init (line 84) | function init(){mainComponentsCreate(),socketsCreate()}
  function videoFrame (line 84) | function videoFrame(){userPaused&&userPauseMoreFrames--<=0||(videoStanda...
  function vSynchToggleMode (line 84) | function vSynchToggleMode(){if(-1===vSynchMode)return void self.showOSD(...
  function showVideoStandardMessage (line 84) | function showVideoStandardMessage(){self.showOSD((videoStandardIsAuto?"A...
  function updateVideoSynchronization (line 84) | function updateVideoSynchronization(){videoPulldown=1===vSynchMode?video...
  function setDefaults (line 84) | function setDefaults(){setVideoStandardAuto(!0),speedControl=1,alternate...
  function videoClockUpdateSpeed (line 84) | function videoClockUpdateSpeed(){videoClockSocket.setVSynch(1===vSynchMo...
  function VideoClockSocket (line 84) | function VideoClockSocket(){this.connectClock=function(b){a=b},this.getV...
  function CartridgeSocket (line 84) | function CartridgeSocket(){this.insert=function(a,b){b&&self.powerIsOn&&...
  function ConsoleControlsSocket (line 84) | function ConsoleControlsSocket(){this.connectControls=function(b){a=b},t...
  function SaveStateSocket (line 85) | function SaveStateSocket(){this.connectMedia=function(b){a=b},this.getMe...
  function AudioSocket (line 85) | function AudioSocket(){this.connectMonitor=function(b){a=b;for(var d=c.l...
  function b (line 92) | function b(){vSynchNativeFrequency=-1,jt.Util.error("Could not detect vi...
  function a (line 92) | function a(){if(!e){try{e=JSON.parse(localStorage.javataristoredromsdata...
  function b (line 92) | function b(){d=[],localStorage.javataristoredromsicatalog=JSON.stringify...
  function d (line 92) | function d(a,b,c,d,f,g,h){for(var i=0;i<a.length;i++)if(e(a[i],b,c,d,f,g...
  function e (line 92) | function e(a,b,c,d,g,h,i,j){try{i&&!a.content&&(a.content=a.asUint8Array...
  function f (line 92) | function f(a,b,c,d,e,f,g){if(((c=c||y.AUTO)===y.STATE||c===y.AUTO)&&o.lo...
  function g (line 92) | function g(a){if(a.returnValue=!1,a.preventDefault(),a.stopPropagation()...
  function h (line 92) | function h(a){a.returnValue=!1,a.preventDefault(),a.stopPropagation(),
  function i (line 93) | function i(a){if(a.returnValue=!1,a.preventDefault(),a.stopPropagation()...
  function j (line 93) | function j(a){jt.Util.message("Could not load file(s):\n\n"+a+"\n")}
  function k (line 93) | function k(){p=document.createElement("input"),p.id="jt-file-loader-inpu...
  function a (line 93) | function a(){if("NONE"===c)return alert("Unfortunately file saving in We...
  function b (line 93) | function b(){"NONE"!==(c=jt.Util.isIOSDevice()?jt.Util.isBrowserStandalo...
  function b (line 94) | function b(a,b){this.index=a,this.update=function(b){return!!(c=b[a])},t...
  function b (line 94) | function b(){w.classList.toggle("jt-poweroff",!J),w.classList.toggle("jt...
  function c (line 94) | function c(){var a=A>0;document.documentElement.classList.toggle("jt-tou...
  function d (line 94) | function d(a){if(jt.Util.blockEvent(a),null===E){void 0===u&&i();var b=a...
  function e (line 94) | function e(a){jt.Util.blockEvent(a),null!==E&&(E=null,h(-1))}
  function f (line 94) | function f(a){if(jt.Util.blockEvent(a),
  function g (line 95) | function g(a,b){var c=-1,d=a-u,e=b-v;Math.sqrt(d*d+e*e)>G&&(c=(1-Math.at...
  function h (line 95) | function h(b){if(F!==b){b>=0&&a.hapticFeedback();var c=!1,d=!1,e=!1,f=!1...
  function i (line 95) | function i(){var a=D.getBoundingClientRect();G=.14*(a.right-a.left)|0,u=...
  function j (line 95) | function j(a){jt.Util.blockEvent(a),l(a.target.jtControl,!0)}
  function k (line 95) | function k(a){jt.Util.blockEvent(a),l(a.target.jtControl,!1)}
  function l (line 95) | function l(b,c){b&&(c&&a.hapticFeedback(),a.processKey(x[b].c,c))}
  function m (line 95) | function m(b){jt.Util.blockEvent(b),a.hapticFeedback(),a.processControlS...
  function n (line 95) | function n(b){jt.Util.blockEvent(b),a.processControlState(J?jt.ConsoleCo...
  function o (line 95) | function o(b){jt.Util.blockEvent(b),a.processControlState(K?jt.ConsoleCo...
  function p (line 95) | function p(b){jt.Util.blockEvent(b),a.processControlState(K?jt.ConsoleCo...
  function q (line 95) | function q(){I.reset(),u=v=void 0,E=null,h(-1)}
  function r (line 95) | function r(){this.reset=function(){this.portValue=63},this.reset()}
  function c (line 95) | function c(a,b){var c=document.createElement("div");c.id="jt-touch-"+b,c...
  function a (line 95) | function a(a){var c=document.createElement("div");c.classList.add("jt-to...
  function c (line 95) | function c(a){E=a,F=E?60/I[E]|0:0,H=F/2|0,G=0}
  function d (line 95) | function d(a,b){a.returnValue=!1,a.preventDefault(),a.stopPropagation();...
  function e (line 95) | function e(b,c){if(!B||(b=l(b),!m(b,c))){if(2===a.netPlayMode&&Ca.has(b)...
  function f (line 95) | function f(a,b){q.controlStateChanged(a,b)}
  function g (line 95) | function g(b,c){R.push(b+(c+10)),2!==a.netPlayMode&&h(b,c)}
  function h (line 95) | function h(a,b){q.controlValueChanged(a,b)}
  function i (line 95) | function i(){r.controlsModeStateUpdate()}
  function b (line 99) | function b(a){var b=a<.5?.5:a>2.5?2.5:a;return Math.round(10*b)/10}
  function c (line 99) | function c(a){var b=a<.5?.5:a;return Math.round(10*b)/10}
  function c (line 99) | function c(){k(),l(),q()}
  function d (line 99) | function d(b){jt.Util.blockEvent(b),J||(s.hapticFeedbackOnTouch(b),a.clo...
  function e (line 99) | function e(a){jt.Util.blockEvent(a),a.target.jtPressed=!1,J||(s.hapticFe...
  function f (line 99) | function f(a){a.target.jtPressed&&e(a)}
  function g (line 99) | function g(b,c,d){d||s.hapticFeedbackOnTouch(b),c||(a.closeAllOverlays()...
  function init (line 99) | function init(){jt.Util.insertCSS(jt.ScreenGUI.css()),delete jt.ScreenGU...
  function consolePanelUpdateForOrientation (line 100) | function consolePanelUpdateForOrientation(){setConsolePanelActive(isFull...
  function setConsolePanelActive (line 100) | function setConsolePanelActive(a){consolePanelActive!==a&&(consolePanelA...
  function hideOSD (line 100) | function hideOSD(){osd.style.transition="all 0.15s linear",osd.style.top...
  function releaseControllersOnLostFocus (line 100) | function releaseControllersOnLostFocus(){consoleControlsSocket.releaseCo...
  function hideCursorAndBar (line 100) | function hideCursorAndBar(){hideCursor(),hideBar(),cursorHideFrameCountd...
  function showCursorAndBar (line 100) | function showCursorAndBar(a){showCursor(),!a&&mousePointerLocked||showBa...
  function showCursor (line 100) | function showCursor(){cursorShowing||(fsElement.style.cursor=cursorType,...
  function hideCursor (line 100) | function hideCursor(){cursorShowing&&(fsElement.style.cursor="none",curs...
  function fullscreenByAPIChanged (line 100) | function fullscreenByAPIChanged(){var a=isFullscreen,b=isFullScreenByAPI...
  function isFullScreenByAPI (line 100) | function isFullScreenByAPI(){return!!document[fullScreenAPIQueryProp]}
  function enterFullScreenByAPI (line 100) | function enterFullScreenByAPI(){if(fullscreenAPIEnterMethod)try{fullscre...
  function exitFullScreenByAPI (line 100) | function exitFullScreenByAPI(){if(fullScreenAPIExitMethod)try{fullScreen...
  function updateScale (line 100) | function updateScale(){var a=Math.round(targetWidth*scaleY*aspectX*2),b=...
  function updateBarWidth (line 100) | function updateBarWidth(a){var b=buttonsBarDesiredWidth>0?buttonsBarDesi...
  function updateConsolePanelScale (line 100) | function updateConsolePanelScale(a){var b=consolePanel.updateScale(a,isF...
  function updateCanvasContentSize (line 100) | function updateCanvasContentSize(){var a=crtFilterEffective>0?CANVAS_SIZ...
  function setCRTFilter (line 100) | function setCRTFilter(a){crtFilter=a,crtFilterEffective=-2===crtFilter?n...
  function crtFilterAutoValue (line 100) | function crtFilterAutoValue(){return isMobileDevice&&!isIOSDevice&&"FIRE...
  function setCRTMode (line 100) | function setCRTMode(a){crtMode=a,crtModeEffective=-1===crtMode?crtModeAu...
  function crtModeAutoValue (line 100) | function crtModeAutoValue(){return isMobileDevice?0:1}
  function updateLogo (line 100) | function updateLogo(){signalIsOn||(updateLogoScale(),showCursorAndBar(!0...
  function updateLoading (line 100) | function updateLoading(){var a=isLoading?"block":"none";logoLoadingIcon....
  function createCanvasContext (line 100) | function createCanvasContext(){canvasContext=canvas.getContext("2d",{alp...
  function setImageComposition (line 100) | function setImageComposition(){crtModeEffective>0&&!debugMode?(canvasCon...
  function setImageSmoothing (line 100) | function setImageSmoothing(){if(canvas.style.imageRendering=0===crtFilte...
  function suppressContextMenu (line 100) | function suppressContextMenu(a){a.addEventListener("contextmenu",jt.Util...
  function preventDrag (line 100) | function preventDrag(a){a.ondragstart=jt.Util.blockEvent}
  function setupMain (line 100) | function setupMain(){switch(mainElement.innerHTML=jt.ScreenGUI.html(),ma...
  function setupMainEvents (line 100) | function setupMainEvents(){(isMobileDevice?canvasOuter:fsElement).addEve...
  function setupBar (line 100) | function setupBar(){buttonsBar=document.getElementById("jt-bar"),buttons...
  function addBarButton (line 101) | function addBarButton(a,b,c,d,e,f,g,h){var i=document.createElement("div...
  function barButtonTapOrMousedown (line 101) | function barButtonTapOrMousedown(a,b,c,d){if(d||consoleControls.hapticFe...
  function barButtonLongTouchStart (line 101) | function barButtonLongTouchStart(a){barButtonLongTouchTarget=a.target,ba...
  function barButtonLongTouchCancel (line 101) | function barButtonLongTouchCancel(){barButtonLongTouchSelectTimeout&&(cl...
  function barButtonHoverOver (line 101) | function barButtonHoverOver(a,b){barMenuActive&&a.jtMenu&&barMenuActive!...
  function barButtonMouseLeft (line 101) | function barButtonMouseLeft(){barConsoleControlPressed&&(cursorHideFrame...
  function barButtonTouchEndOrMouseUp (line 101) | function barButtonTouchEndOrMouseUp(a){if(!logoMessageActive)return barC...
  function barMenuItemTapOrMouseDown (line 101) | function barMenuItemTapOrMouseDown(a,b,c){c||barMenuItemSetActive(a,"tou...
  function barMenuItemHoverOver (line 101) | function barMenuItemHoverOver(a,b){barMenuItemSetActive(a,"touchmove"===...
  function barMenuItemHoverOut (line 101) | function barMenuItemHoverOut(){barMenuItemSetActive(null)}
  function barMenuItemTouchEndOrMouseUp (line 101) | function barMenuItemTouchEndOrMouseUp(a){logoMessageActive||!barMenuItem...
  function barMenuItemFireActive (line 101) | function barMenuItemFireActive(a,b){var c=barMenuItemActive.jtMenuOption...
  function barMenuItemSetActive (line 101) | function barMenuItemSetActive(a,b){a!==barMenuItemActive&&(barMenuItemAc...
  function barElementTapOrMouseDown (line 101) | function barElementTapOrMouseDown(a,b,c){cursorHideFrameCountdown=CURSOR...
  function barElementTouchMove (line 101) | function barElementTouchMove(a){jt.Util.blockEvent(a);var b=a.changedTou...
  function barElementTouchEndOrMouseUp (line 101) | function barElementTouchEndOrMouseUp(a){cursorHideFrameCountdown=CURSOR_...
  function setupFullscreen (line 101) | function setupFullscreen(){fullscreenAPIEnterMethod=fsElement.requestFul...
  function setEnterFullscreenByAPIOnFirstTouch (line 101) | function setEnterFullscreenByAPIOnFirstTouch(){if(fullscreenAPIEnterMeth...
  function setFullscreenState (line 102) | function setFullscreenState(a){isFullscreen=a,a?(setViewport(),document....
  function tryToFixSafariBugOnFullScreenChange (line 102) | function tryToFixSafariBugOnFullScreenChange(){var a=document.getElement...
  function showBar (line 102) | function showBar(){buttonsBar.classList.remove("jt-hidden")}
  function hideBar (line 102) | function hideBar(){!BAR_AUTO_HIDE&&!isFullscreen||barMenuActive||console...
  function showBarMenu (line 102) | function showBarMenu(a,b){if(a&&barMenuActive!==a){if(!barMenu)return se...
  function refreshBarMenu (line 102) | function refreshBarMenu(a){barMenu.jtTitle.innerHTML=a.jtTitle,barMenu.j...
  function hideBarMenu (line 102) | function hideBarMenu(){barMenuActive&&(barMenuActive=null,barMenu.style....
  function setupBarMenu (line 102) | function setupBarMenu(){barMenu=document.createElement("div"),barMenu.id...
  function closeAllOverlays (line 102) | function closeAllOverlays(){hideBarMenu(),saveStateDialog&&saveStateDial...
  function showLogoMessage (line 102) | function showLogoMessage(a,b,c,d){consolePanel.setLogoMessageActive(!0),...
  function updateLogoScale (line 102) | function updateLogoScale(){var a=canvasOuter.clientWidth,b=Math.min(a/jt...
  function setScrollMessage (line 102) | function setScrollMessage(a){console.error("Scroll Message: "+a),fsEleme...
  function readjustAll (line 102) | function readjustAll(a){if(isReadjustScreeSizeChanged(a)){if(isFullscree...
  function isReadjustScreeSizeChanged (line 102) | function isReadjustScreeSizeChanged(a){var b=mainElement.parentElement.c...
  function displayOptimalScaleY (line 102) | function displayOptimalScaleY(a,b){var c=2*aspectX,d=b/targetHeight;retu...
  function setViewport (line 102) | function setViewport(){if(isMobileDevice){if(void 0===viewPortOriginalCo...
  function restoreViewport (line 102) | function restoreViewport(){if(isMobileDevice){if(!viewPortOriginalTag&&v...
  function setPageVisibilityHandling (line 102) | function setPageVisibilityHandling(){function a(){logoMessageActive||(do...
  function b (line 103) | function b(){self.setFullscreen(!0),a()}
  function e (line 104) | function e(){j.style.height=42+33*(l.length+1)+"px";for(var a=0;a<11;++a...
  function f (line 104) | function f(){for(var a=0;a<n.length;++a)n[a].classList.toggle("jt-select...
  function g (line 104) | function g(){j=document.createElement("div"),j.id="jt-recent-roms",j.cla...
  function h (line 104) | function h(){function a(){i.hide(!1)}function b(){i.hide(!0)}jt.Util.onT...
  function e (line 104) | function e(){l.textContent="Select Slot to "+(m?"Save":"Load");for(var a...
  function f (line 104) | function f(){for(var a=0;a<o.length;++a)o[a].classList.toggle("jt-select...
  function g (line 104) | function g(){j=document.createElement("div"),j.id="jt-savestate",j.class...
  function h (line 104) | function h(){function a(){i.hide(!1)}function b(){i.hide(!0)}jt.Util.onT...
  function e (line 105) | function e(){for(var a=0;a<j.length;++a){var b=j[a],e=b.peripheral?d.get...
  function f (line 105) | function f(){i=document.createElement("div"),i.id="jt-quick-options",i.t...
  function g (line 105) | function g(){jt.Util.onTapOrMouseDownWithBlock(i,function(a){if(a.target...
  function c (line 105) | function c(){switch(a.netPlayMode){case 0:o.textContent="STANDALONE",m.t...
  function d (line 105) | function d(){r.value=u.netPlaySessionName,s.value=u.netPlayNick}
  function e (line 105) | function e(){return jt.Util.browserCurrentURL()+"?JOIN="+a.netController...
  function f (line 105) | function f(b){var c=b.target;if(!c.disabled){jt.DOMConsoleControls.hapti...
  function g (line 105) | function g(){j=document.createElement("div"),j.id="jt-netplay",j.tabInde...
  function h (line 105) | function h(){function b(a){var b=a.target,c=b.value;return!c||c.match(/^...
  function e (line 105) | function e(){q=0,
  function f (line 106) | function f(){for(var a,b=0;b<r.length;++b)b===q?(a=s[b],a.classList.add(...
  function g (line 106) | function g(){n.textContent=v?u?"YES":"NO":"- -",n.classList.toggle("jt-s...
  function h (line 106) | function h(){l=document.createElement("div"),l.id="jt-cartridge-format",...
  function i (line 106) | function i(){function a(){j.hide(!1)}function b(){j.hide(!0)}function c(...
  function c (line 108) | function c(){jt.Util.insertCSS(jt.SettingsGUI.css()),a.insertAdjacentHTM...
  function d (line 108) | function d(){function a(b,c){c(b);for(var d=b.childNodes,e=0;e<d.length;...
  function e (line 108) | function e(){jt.Util.onTapOrMouseDownWithBlock(j,function(){j.focus()}),
  function f (line 109) | function f(){i["jt-browserinfo"].innerHTML=navigator.userAgent}
  function g (line 109) | function g(){var a=b.isPaddleMode(),c=b.isP1ControlsMode();i["jt-ports-p...
  function h (line 109) | function h(a,b){var c=jt.DOMKeys.codeForKeyboardEvent(a);if(b&&c===w)ret...
  function b (line 109) | function b(){return jt.Util.isMobileDevice()?"CHROME"!==jt.Util.browserI...
  function c (line 109) | function c(){return"SAFARI"===jt.Util.browserInfo().name||jt.Util.isIOSD...
  function d (line 109) | function d(){function b(){a.removeEventListener("touchend",b,!0),a.remov...
  function e (line 109) | function e(){if(m){n.length=j.length,o.length=j.length;for(var a=0;a<j.l...
  function f (line 109) | function f(a){for(var b=a.outputBuffer.getChannelData(0),c=b.length,d=c-...
  function b (line 110) | function b(){return 2===a.netPlayMode}
  function b (line 111) | function b(){void 0===v&&(v=setInterval(p,3e4));var a={sessionControl:"c...
  function c (line 111) | function c(){r.stopSession(!0,v?"NetPlay Session stopped: Connection los...
  function d (line 111) | function d(a){var b=JSON.parse(a.data);if(b.javatariUpdate)return o(b.ja...
  function e (line 111) | function e(b){try{w=JSON.parse(b.queriedVariables.RTC_CONFIG||"{}")}catc...
  function f (line 111) | function f(b){var c={nick:b.clientNick,justJoined:!0,wsOnly:D||!!b.wsOnl...
  function g (line 111) | function g(a){var b=C[a.clientNick];b&&n(b,!0,!1,'NetPlay client "'+b.ni...
  function h (line 111) | function h(a){var b=C[a.fromClientNick];b&&(jt.Util.log("Client SDP from...
  function i (line 111) | function i(a,b){jt.Util.log("Client "+a.nick+" dataChannel open"),a.data...
  function j (line 111) | function j(a,b){jt.Util.error("NetPlay Client "+a.nick+" dataChannel clo...
  function k (line 111) | function k(a,b){o(JSON.parse(b.data))}
  function l (line 111) | function l(a,b){jt.Util.error("NetPlay Client "+a.nick+" RTC error:",b),...
  function m (line 111) | function m(){for(var a in C)n(C[a],!1)}
  function n (line 111) | function n(b,c,d,e){c&&(a.showOSD(e||'NetPlay client "'+b.nick+'" left',...
  function o (line 111) | function o(a){a.c&&z.netServerProcessControlsChanges(a.c)}
  function p (line 111) | function p(){try{s.send('{ "sessionControl": "keep-alive" }')}catch(a){j...
  function q (line 111) | function q(a,b){var c=b.length;if(c<E)return a.send(b);for(var d=0,e=0;;...
  function b (line 111) | function b(){void 0===v&&(v=setInterval(n,3e4)),q.send(JSON.stringify({s...
  function c (line 111) | function c(){p.leaveSession(!0,v?"NetPlay session ended: Connection lost...
  function d (line 111) | function d(a){var b=JSON.parse(a.data);if(b.javatariUpdate)return m(JSON...
  function e (line 111) | function e(a){if(r=a.sessionID,t=a.clientNick,D=B||a.wsOnly,C=!0,D)retur...
  function f (line 111) | function f(){a.showOSD('NetPlay Session "'+r+'" joined as "'+t+'"',!0),j...
  function g (line 111) | function g(a){x.setRemoteDescription(new RTCSessionDescription(a.serverS...
  function h (line 111) | function h(a){E=!0,F="",f()}
  function i (line 111) | function i(a){jt.Util.error("NetPlay dataChannel closed"),p.leaveSession...
  function j (line 111) | function j(a){var b=o(a);b&&m(JSON.parse(b))}
  function k (line 111) | function k(a){jt.Util.error("NetPlay RTC error:",a),p.leaveSession(!0,"N...
  function l (line 111) | function l(){y&&(y.onpen=y.onclose=y.onmessage=void 0,y.close(),y=void 0...
  function m (line 111) | function m(b){b.s?(z.loadState(b.s),C&&(a.consoleControls.setP1ControlsA...
  function n (line 112) | function n(){try{q.send('{ "sessionControl": "keep-alive" }')}catch(a){j...
  function o (line 112) | function o(a){var b=a.data,c=b.substr(0,8);return c!==G&&c!==H?(F="",b):...
  function c (line 112) | function c(a){var b=Javatari.AUTO_POWER_ON_DELAY;b>=0&&JavatariFullScree...
  function d (line 112) | function d(){b&&(h.console.getCartridgeSocket().inserted()?h.console.use...
  function e (line 112) | function e(){h.mainVideoClock=new jt.Clock(h.mainVideoClockPulse)}
  function f (line 112) | function f(){h.peripheralControls=new jt.DOMPeripheralControls(h),h.cons...
  function g (line 112) | function g(){h.console=new jt.AtariConsole,h.mainVideoClock.connect(h.co...
  function a (line 120) | function a(a){Javatari.start&&Javatari.AUTO_START&&(a||b&&0===c)&&Javata...

FILE: release/stable/old/javatari/javatari.js
  function a (line 29) | function a(){return Jb(function(){Cb(Ba>127),Ba=Ba<<1&255,zb(Ba),Ab(Ba)})}
  function b (line 29) | function b(){return Jb(function(){Ja=0})}
  function c (line 29) | function c(){return Jb(function(){Ga=0})}
  function d (line 29) | function d(){return Jb(function(){Ha=0})}
  function e (line 29) | function e(){return Jb(function(){Fa=0})}
  function f (line 29) | function f(){return Jb(function(){Ca=Ca-1&255,zb(Ca),Ab(Ca)})}
  function g (line 29) | function g(){return Jb(function(){Da=Da-1&255,zb(Da),Ab(Da)})}
  function h (line 29) | function h(){return Jb(function(){Ca=Ca+1&255,zb(Ca),Ab(Ca)})}
  function i (line 29) | function i(){return Jb(function(){Da=Da+1&255,zb(Da),Ab(Da)})}
  function j (line 29) | function j(){return Jb(function(){Ja=1&Ba,Ba>>>=1,zb(Ba),Ea=0})}
  function k (line 29) | function k(){return Jb(function(){})}
  function l (line 29) | function l(){return Jb(function(){var a=Ba>127;Ba=255&(Ba<<1|Ja),Cb(a),z...
  function m (line 29) | function m(){return Jb(function(){var a=1&Ba;Ba=Ba>>>1|Ja<<7,Cb(a),zb(Ba...
  function n (line 29) | function n(){return Jb(function(){Ja=1})}
  function o (line 29) | function o(){return Jb(function(){Ga=1})}
  function p (line 29) | function p(){return Jb(function(){Ha=1})}
  function q (line 29) | function q(){return Jb(function(){Ca=Ba,zb(Ca),Ab(Ca)})}
  function r (line 29) | function r(){return Jb(function(){Da=Ba,zb(Da),Ab(Da)})}
  function s (line 29) | function s(){return Jb(function(){Ca=Aa,zb(Ca),Ab(Ca)})}
  function t (line 29) | function t(){return Jb(function(){Ba=Ca,zb(Ba),Ab(Ba)})}
  function u (line 29) | function u(){return Jb(function(){Aa=Ca})}
  function v (line 29) | function v(){return Jb(function(){Ba=Da,zb(Ba),Ab(Ba)})}
  function w (line 29) | function w(){return[_a,function(){Ib("KIL/HLT/JAM")},function(){Ka--}]}
  function x (line 29) | function x(a){return a(function(){Ib("NOP/DOP")})}
  function y (line 29) | function y(a){return a(function(){if(Ga){var a=Ma,b=(15&Ba)+(15&a)+Ja;b>...
  function z (line 29) | function z(a){return a(function(){Ba&=Ma,zb(Ba),Ab(Ba)})}
  function A (line 29) | function A(a){return a(function(){var a=Ma;zb(Ba&a),Bb(64&a),Ab(a)})}
  function B (line 29) | function B(a){return a(function(){var a=Ba-Ma&255;Cb(Ba>=Ma),zb(a),Ab(a)})}
  function C (line 29) | function C(a){return a(function(){var a=Ca-Ma&255;Cb(Ca>=Ma),zb(a),Ab(a)})}
  function D (line 29) | function D(a){return a(function(){var a=Da-Ma&255;Cb(Da>=Ma),zb(a),Ab(a)})}
  function E (line 29) | function E(a){return a(function(){Ba^=Ma,zb(Ba),Ab(Ba)})}
  function F (line 29) | function F(a){return a(function(){Ba=Ma,zb(Ba),Ab(Ba)})}
  function G (line 29) | function G(a){return a(function(){Ca=Ma,zb(Ca),Ab(Ca)})}
  function H (line 29) | function H(a){return a(function(){Da=Ma,zb(Da),Ab(Da)})}
  function I (line 29) | function I(a){return a(function(){Ba|=Ma,zb(Ba),Ab(Ba)})}
  function J (line 29) | function J(a){return a(function(){if(Ga){var a=Ma,b=(15&Ba)-(15&a)-(1-Ja...
  function K (line 29) | function K(a){return a(function(){Ib("ANC"),Ba&=Ma,zb(Ba),Ea=Ja=128&Ba?1...
  function L (line 29) | function L(a){return a(function(){Ib("ANE")})}
  function M (line 29) | function M(a){return a(function(){Ib("ARR");var a=Ba&Ma,b=Ja?128:0;a=a>>...
  function N (line 29) | function N(a){return a(function(){Ib("ASR");var a=Ba&Ma;Ja=1&a,a>>>=1,Ba...
  function O (line 29) | function O(a){return a(function(){Ib("LAS");var a=Aa&Ma;Ba=a,Ca=a,Aa=a,z...
  function P (line 29) | function P(a){return a(function(){Ib("LAX");var a=Ma;Ba=a,Ca=a,zb(a),Ab(...
  function Q (line 29) | function Q(a){return a(function(){Ib("LXA");var a=Ba&Ma;Ba=a,Ca=a,zb(a),...
  function R (line 29) | function R(a){return a(function(){Ib("SBX");var a=Ba&Ca,b=Ma,c=a-b&255;C...
  function S (line 29) | function S(a){return a(function(){Ma=Ba})}
  function T (line 29) | function T(a){return a(function(){Ma=Ca})}
  function U (line 29) | function U(a){return a(function(){Ma=Da})}
  function V (line 29) | function V(a){return a(function(){Ib("SAX"),Ma=Ba&Ca})}
  function W (line 29) | function W(a){return a(function(){Ib("SHA"),Ma=Ba&Ca&(Oa>>>8)+1&255})}
  function X (line 29) | function X(a){return a(function(){Ib("SHS");var a=Ba&Ca;Aa=a,Ma=a&(Oa>>>...
  function Y (line 29) | function Y(a){return a(function(){Ib("SHX"),Ma=Ca&(Oa>>>8)+1&255})}
  function Z (line 29) | function Z(a){return a(function(){Ib("SHY"),Ma=Da&(Oa>>>8)+1&255})}
  function $ (line 29) | function $(a){return a(function(){Cb(Ma>127);var a=Ma<<1&255;Ma=a,zb(a),...
  function _ (line 29) | function _(a){return a(function(){var a=Ma-1&255;Ma=a,zb(a),Ab(a)})}
  function aa (line 29) | function aa(a){return a(function(){var a=Ma+1&255;Ma=a,zb(a),Ab(a)})}
  function ba (line 29) | function ba(a){return a(function(){Ja=1&Ma,Ma>>>=1,zb(Ma),Ea=0})}
  function ca (line 29) | function ca(a){return a(function(){var a=Ma>127,b=255&(Ma<<1|Ja);Ma=b,Cb...
  function da (line 29) | function da(a){return a(function(){var a=1&Ma,b=Ma>>>1|Ja<<7;Ma=b,Cb(a),...
  function ea (line 29) | function ea(a){return a(function(){Ib("DCP");var a=Ma-1&255;Ma=a,a=Ba-a,...
  function fa (line 29) | function fa(a){return a(function(){if(Ib("ISB"),Ma=Ma+1&255,Ga){var a=Ma...
  function ga (line 29) | function ga(a){return a(function(){Ib("RLA");var a=Ma,b=Ja;Cb(128&a),a=2...
  function ha (line 29) | function ha(a){return a(function(){Ib("RRA");var a=Ma,b=Ja?128:0;if(Cb(1...
  function ia (line 29) | function ia(a){return a(function(){Ib("SLO");var a=Ma;Cb(128&a),a=a<<1&2...
  function ja (line 29) | function ja(a){return a(function(){Ib("SRE");var a=Ma;Cb(1&a),a>>>=1,Ma=...
  function ka (line 29) | function ka(){return[_a,bb,function(){Fb(Ba)},ab]}
  function la (line 29) | function la(){return[_a,bb,function(){Fb(Gb())},ab]}
  function ma (line 29) | function ma(){return[_a,bb,Eb,function(){Ba=Db(),zb(Ba),Ab(Ba)},ab]}
  function na (line 29) | function na(){return[_a,bb,Eb,function(){Hb(Db())},ab]}
  function oa (line 29) | function oa(){return[_a,db,Eb,function(){Fb(za>>>8&255)},function(){Fb(2...
  function pa (line 29) | function pa(){return[_a,sb,function(){va.debug&&va.breakpoint("BRK "+Ma)...
  function qa (line 29) | function qa(){
  function ra (line 30) | function ra(){return[_a,bb,Eb,function(){Na=Db()},function(){Na|=Db()<<8...
  function sa (line 30) | function sa(){return[_a,db,eb,function(){za=Na,ab()}]}
  function ta (line 30) | function ta(){return[_a,pb,qb,jb,function(){rb(),kb()},function(){za=Oa,...
  function ua (line 30) | function ua(a,b){var c;return c=a===Za?function(){return Ia===b}:a===Xa?...
  function a (line 31) | function a(){for(var a=b.length-1;a>=0;a--)b[a]=256*Math.random()|0}
  function e (line 33) | function e(e){f=a,g=b,h=c,i=d,f.connectBus(e),g.connectBus(e),h.connectB...
  function c (line 34) | function c(){e(b||p)}
  function a (line 34) | function a(){u(),v(),k()}
  function b (line 34) | function b(){this.insert=function(a,b){b&&e.powerIsOn&&e.powerOff(),h(a)...
  function c (line 34) | function c(){this.connectControls=function(b){a=b},this.cartridgeInserte...
  function d (line 34) | function d(){this.connectMedia=function(b){a=b},this.getMedia=function()...
  function c (line 66) | function c(c){c.rom=a,c.format=b,d=new Array(4096);for(var e=a.content.l...
  function c (line 66) | function c(c){c.rom=a,c.format=b,e=new Array(4096);for(var d=a.content.l...
  function f (line 66) | function f(f){f.rom=a,f.format=b,h=a.content;var g=h.length/q;i=c,j=i+g-...
  function c (line 66) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 66) | function c(c){c.rom=a,
  function c (line 67) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 67) | function c(c){c.rom=a,c.format=b,e=a.content}
  function c (line 67) | function c(c){c.rom=a,c.format=b,m=a.content}
  function d (line 67) | function d(d){d.rom=a,d.format=b,n=a.content,p=c||0,q=p;var e=(n.length-...
  function c (line 68) | function c(c){c.rom=a,c.format=b,d=a.content,e=(d.length-i)/i-1,f=d.leng...
  function c (line 68) | function c(c){c.rom=a,c.format=b,e=a.content,f=(e.length-m)/m-1,g=e.leng...
  function c (line 68) | function c(c){c.rom=a,c.format=b,d=a.content,e=d.length/h-1}
  function c (line 68) | function c(c){c.rom=a,c.format=b,e=jt.Util.arrayFill(new Array(4*M)),o()}
  function c (line 68) | function c(c){c.rom=a,c.format=b,d=a.content}
  function c (line 68) | function c(c){c.rom=a,c.format=b,d=a.content}
  function c (line 68) | function c(c){c.rom=a,c.format=b,d=a.content}
  function b (line 70) | function b(a){var b=(a>>>0).toString(16);return"00000000".substr(0,8-b.l...
  function c (line 70) | function c(a){for(var b=[],c=0;c<a.length;c++)b=b.concat(k(a[c]));return b}
  function d (line 70) | function d(a){for(var b=[],c=0;c<8;c++)b.push(255&a),a>>>=8;return b}
  function e (line 70) | function e(a,b){return a<<b&4294967295|a>>>32-b}
  function f (line 70) | function f(a,b,c){return a&b|~a&c}
  function g (line 70) | function g(a,b,c){return c&a|~c&b}
  function h (line 70) | function h(a,b,c){return a^b^c}
  function i (line 70) | function i(a,b,c){return b^(a|~c)}
  function j (line 70) | function j(a,b){return a[b+3]<<24|a[b+2]<<16|a[b+1]<<8|a[b]}
  function k (line 70) | function k(a){for(var b=[],c=0;c<a.length;c++)if(a.charCodeAt(c)<=127)b....
  function l (line 70) | function l(a,c,d,e){for(var f="",g=0,h=0,i=3;i>=0;i--)h=arguments[i],g=2...
  function m (line 70) | function m(a){for(var b=new Array(a.length),c=0;c<a.length;c++)b[c]=a[c]...
  function n (line 70) | function n(a,b){return 4294967295&a+b}
  function o (line 70) | function o(){function a(a,b,c,d){var f=v;v=u,u=t,t=n(t,e(n(s,n(a,n(b,c))...
  function e (line 71) | function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&re...
  function c (line 71) | function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,...
  function c (line 71) | function c(){this.data=null,this.length=0,this.index=0}
  function c (line 71) | function c(a,b){return this instanceof c?(this.files={},this.comment=nul...
  function c (line 72) | function c(a){this.data=a,this.length=this.data.length,this.index=0}
  function c (line 72) | function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),
  function c (line 73) | function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}
  function d (line 73) | function d(a){return a}
  function e (line 73) | function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);retu...
  function f (line 73) | function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{...
  function g (line 73) | function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}
  function c (line 73) | function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}
  function c (line 74) | function c(a,b){this.options=a,this.loadOptions=b}
  function d (line 74) | function d(a,b){var c=new s(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 74) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function f (line 74) | function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}
  function d (line 75) | function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 75) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function d (line 75) | function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return Strin...
  function c (line 75) | function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c...
  function c (line 75) | function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a...
  function d (line 75) | function d(a,b,c,d){var f=e,g=d+c;a^=-1;for(var h=d;g>h;h++)a=a>>>8^f[25...
  function d (line 75) | function d(a,b){return a.msg=G[b],b}
  function e (line 75) | function e(a){return(a<<1)-(a>4?9:0)}
  function f (line 75) | function f(a){for(var b=a.length;--b>=0;)a[b]=0}
  function g (line 75) | function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0...
  function h (line 75) | function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a....
  function i (line 75) | function i(a,b){a.pending_buf[a.pending++]=b}
  function j (line 75) | function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pen...
  function k (line 75) | function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),
  function l (line 76) | function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_lengt...
  function m (line 76) | function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead...
  function n (line 76) | function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf...
  function o (line 76) | function o(a,b){for(var c,d;;){if(a.lookahead<ja){if(m(a),a.lookahead<ja...
  function p (line 76) | function p(a,b){for(var c,d,e;;){if(a.lookahead<ja){if(m(a),a.lookahead<...
  function q (line 76) | function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ia){if(m(a...
  function r (line 76) | function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead))...
  function s (line 76) | function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.le...
  function t (line 76) | function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pen...
  function u (line 76) | function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_t...
  function v (line 76) | function v(a){var b=u(a);return b===M&&s(a.state),b}
  function w (line 76) | function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M...
  function x (line 76) | function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,...
  function y (line 77) | function y(a,b){return x(a,b,Y,$,_,W)}
  function z (line 77) | function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;...
  function A (line 77) | function A(a){var b;return a&&a.state?(b=a.state.status,b!==la&&b!==ma&&...
  function c (line 77) | function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=...
  function d (line 77) | function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<...
  function e (line 77) | function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this....
  function f (line 77) | function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=...
  function g (line 78) | function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.w...
  function h (line 78) | function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(...
  function i (line 78) | function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,...
  function j (line 78) | function j(a){return i(a,ra)}
  function k (line 78) | function k(a){if(sa){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;...
  function l (line 78) | function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<...
  function m (line 78) | function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,oa,pa,qa,ra,sa,ta,ua,va,wa,x...
  function n (line 79) | function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b...
  function o (line 79) | function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?F:(c.h...
  function d (line 79) | function d(a){for(var b=a.length;--b>=0;)a[b]=0}
  function e (line 79) | function e(a){return 256>a?ga[a]:ga[256+(a>>>7)]}
  function f (line 79) | function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending...
  function g (line 79) | function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi...
  function h (line 79) | function h(a,b,c){g(a,c[2*b],c[2*b+1])}
  function i (line 79) | function i(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}
  function j (line 79) | function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a....
  function k (line 79) | function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc....
  function l (line 79) | function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g...
  function m (line 79) | function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ia...
  function n (line 79) | function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a...
  function o (line 79) | function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a....
  function p (line 79) | function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a....
  function q (line 79) | function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<...
  function r (line 79) | function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_le...
  function s (line 79) | function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do d=a.pending_buf[a...
  function t (line 79) | function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.sta...
  function u (line 80) | function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3)...
  function v (line 80) | function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3)...
  function w (line 80) | function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtr...
  function x (line 80) | function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e...
  function y (line 80) | function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a....
  function z (line 80) | function z(a){pa||(m(),pa=!0),a.l_desc=new oa(a.dyn_ltree,ka),a.d_desc=n...
  function A (line 80) | function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}
  function B (line 80) | function B(a){g(a,K<<1,3),h(a,X,ea),j(a)}
  function C (line 80) | function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm...
  function D (line 80) | function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a...
  function c (line 80) | function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_i...
  function b (line 80) | function b(a,b){this.index=a,this.update=function(b){return c=b[a],!!c},...
  function a (line 81) | function a(){n=new jt.GamepadConsoleControls(b),j()}
  function b (line 82) | function b(){e()}
  function a (line 82) | function a(a){v(),e(jt.VideoStandard.NTSC),j(),C=new jt.DOMMonitorContro...
  function b (line 83) | function b(a){J(),C(),I(),D(),H(),i=h.getContext("2d"),c=new jt.Monitor,...
  function b (line 84) | function b(){f(),g(),l()}
  function b (line 85) | function b(a,c){c(a);for(var d=a.childNodes,e=0;e<d.length;e++)b(d[e],c)}
  function d (line 87) | function d(){g(),h()}
  function a (line 87) | function a(){document.hidden?e.speaker.mute():e.speaker.play()}
  function a (line 87) | function a(a){Javatari.start&&Javatari.AUTO_START!==!1&&(a||d&&0===e)&&J...

FILE: src/main/Configurator.js
  function parseURLParams (line 31) | function parseURLParams() {
  function normalizeParameterTypes (line 44) | function normalizeParameterTypes() {

FILE: src/main/Launcher.js
  function tryStart (line 76) | function tryStart(bypass) {
  function onUpdateReady (line 104) | function onUpdateReady() {

FILE: src/main/atari/audio/AudioSignal.js
  function audioClockPulse (line 66) | function audioClockPulse() {
  function updateBufferSize (line 92) | function updateBufferSize() {
  function generateNextSample (line 104) | function generateNextSample() {
  function generateNextSampleMute (line 109) | function generateNextSampleMute() {
  function generateMissingSamples (line 114) | function generateMissingSamples(quant, mute) {

FILE: src/main/atari/cartridge/formats/Cartridge10K_DPCa.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge16K_E7.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge24K_28K_32K_FA2.js
  function init (line 11) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge2K_CV.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge4K.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge64K_F0.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge64K_X07.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_0840.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_256K_SB.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_512K_3E.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_512K_3F.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_64K_AR.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_E0.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_FE.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/Cartridge8K_UA.js
  function init (line 8) | function init(self) {

FILE: src/main/atari/cartridge/formats/CartridgeBankedByMaskedRange.js
  function init (line 12) | function init(self) {

FILE: src/main/atari/console/AtariConsole.js
  function init (line 8) | function init() {
  function videoFrame (line 97) | function videoFrame() {
  function vSynchToggleMode (line 145) | function vSynchToggleMode() {
  function showVideoStandardMessage (line 179) | function showVideoStandardMessage() {
  function updateVideoSynchronization (line 226) | function updateVideoSynchronization() {
  function setDefaults (line 292) | function setDefaults() {
  function videoClockUpdateSpeed (line 301) | function videoClockUpdateSpeed() {
  function VideoClockSocket (line 472) | function VideoClockSocket() {
  function CartridgeSocket (line 491) | function CartridgeSocket() {
  function ConsoleControlsSocket (line 523) | function ConsoleControlsSocket() {
  function SaveStateSocket (line 585) | function SaveStateSocket() {
  function AudioSocket (line 660) | function AudioSocket() {

FILE: src/main/atari/console/Bus.js
  function init (line 6) | function init(self) {

FILE: src/main/atari/cpu/M6502.js
  function newASL_ACC (line 916) | function newASL_ACC() {
  function newCLC (line 925) | function newCLC() {
  function newCLD (line 931) | function newCLD() {
  function newCLI (line 937) | function newCLI() {
  function newCLV (line 943) | function newCLV() {
  function newDEX (line 949) | function newDEX() {
  function newDEY (line 957) | function newDEY() {
  function newINX (line 965) | function newINX() {
  function newINY (line 973) | function newINY() {
  function newLSR_ACC (line 981) | function newLSR_ACC() {
  function newNOP (line 990) | function newNOP() {
  function newROL_ACC (line 996) | function newROL_ACC() {
  function newROR_ACC (line 1006) | function newROR_ACC() {
  function newSEC (line 1016) | function newSEC() {
  function newSED (line 1022) | function newSED() {
  function newSEI (line 1028) | function newSEI() {
  function newTAX (line 1034) | function newTAX() {
  function newTAY (line 1042) | function newTAY() {
  function newTSX (line 1050) | function newTSX() {
  function newTXA (line 1058) | function newTXA() {
  function newTXS (line 1066) | function newTXS() {
  function newTYA (line 1072) | function newTYA() {
  function newuKIL (line 1080) | function newuKIL() {
  function newuNOP (line 1092) | function newuNOP(addressing) {
  function newADC (line 1102) | function newADC(addressing) {
  function newAND (line 1126) | function newAND(addressing) {
  function newBIT (line 1134) | function newBIT(addressing) {
  function newCMP (line 1143) | function newCMP(addressing) {
  function newCPX (line 1152) | function newCPX(addressing) {
  function newCPY (line 1161) | function newCPY(addressing) {
  function newEOR (line 1170) | function newEOR(addressing) {
  function newLDA (line 1178) | function newLDA(addressing) {
  function newLDX (line 1186) | function newLDX(addressing) {
  function newLDY (line 1194) | function newLDY(addressing) {
  function newORA (line 1202) | function newORA(addressing) {
  function newSBC (line 1210) | function newSBC(addressing) {
  function newuANC (line 1236) | function newuANC(addressing) {
  function newuANE (line 1245) | function newuANE(addressing) {
  function newuARR (line 1252) | function newuARR(addressing) {
  function newuASR (line 1270) | function newuASR(addressing) {
  function newuLAS (line 1282) | function newuLAS(addressing) {
  function newuLAX (line 1294) | function newuLAX(addressing) {
  function newuLXA (line 1305) | function newuLXA(addressing) {
  function newuSBX (line 1318) | function newuSBX(addressing) {
  function newSTA (line 1334) | function newSTA(addressing) {
  function newSTX (line 1340) | function newSTX(addressing) {
  function newSTY (line 1346) | function newSTY(addressing) {
  function newuSAX (line 1352) | function newuSAX(addressing) {
  function newuSHA (line 1360) | function newuSHA(addressing) {
  function newuSHS (line 1368) | function newuSHS(addressing) {
  function newuSHX (line 1378) | function newuSHX(addressing) {
  function newuSHY (line 1386) | function newuSHY(addressing) {
  function newASL (line 1397) | function newASL(addressing) {
  function newDEC (line 1407) | function newDEC(addressing) {
  function newINC (line 1416) | function newINC(addressing) {
  function newLSR (line 1425) | function newLSR(addressing) {
  function newROL (line 1434) | function newROL(addressing) {
  function newROR (line 1445) | function newROR(addressing) {
  function newuDCP (line 1456) | function newuDCP(addressing) {
  function newuISB (line 1468) | function newuISB(addressing) {
  function newuRLA (line 1496) | function newuRLA(addressing) {
  function newuRRA (line 1510) | function newuRRA(addressing) {
  function newuSLO (line 1541) | function newuSLO(addressing) {
  function newuSRE (line 1555) | function newuSRE(addressing) {
  function mewPHA (line 1572) | function mewPHA() {
  function newPHP (line 1581) | function newPHP() {
  function newPLA (line 1590) | function newPLA() {
  function newPLP (line 1604) | function newPLP() {
  function newJSR (line 1614) | function newJSR() {
  function newBRK (line 1626) | function newBRK() {
  function newRTI (line 1642) | function newRTI() {
  function newRTS (line 1654) | function newRTS() {
  function newJMP_ABS (line 1666) | function newJMP_ABS() {
  function newJMP_IND (line 1675) | function newJMP_IND() {
  function newBxx (line 1689) | function newBxx(reg, cond) {

FILE: src/main/atari/pia/Ram.js
  function init (line 6) | function init() {

FILE: src/main/atari/tia/Tia.js
  function init (line 13) | function init() {
  function renderLineTo (line 202) | function renderLineTo(endClock) {
  function changeAt (line 296) | function changeAt(atClock) {
  function changeAtClock (line 306) | function changeAtClock() {
  function changeAtClockPlus (line 310) | function changeAtClockPlus(add) {
  function changePlayfieldAtClock (line 314) | function changePlayfieldAtClock() {
  function changeVBlankAtClockPlus1 (line 324) | function changeVBlankAtClockPlus1() {
  function updateToClock (line 333) | function updateToClock() {    // does not trigger change
  function augmentCollisionsPossible (line 369) | function augmentCollisionsPossible() {
  function playfieldUpdateSprite (line 413) | function playfieldUpdateSprite() {
  function playfieldUpdateSpriteR (line 418) | function playfieldUpdateSpriteR() {
  function ballSetEnabled (line 427) | function ballSetEnabled(boo) {
  function player0SetShape (line 435) | function player0SetShape(i) {
  function player0SetSprite (line 499) | function player0SetSprite(i) {
  function player0UpdateSprite (line 511) | function player0UpdateSprite(clockPlus) {
  function player1SetShape (line 531) | function player1SetShape(i) {
  function player1SetSprite (line 590) | function player1SetSprite(i) {
  function player1UpdateSprite (line 607) | function player1UpdateSprite(clockPlus) {
  function missile0UpdateSprite (line 627) | function missile0UpdateSprite(clockPlus) {
  function missile0SetEnabled (line 639) | function missile0SetEnabled(boo) {
  function missile0SetResetToPlayer (line 648) | function missile0SetResetToPlayer(i) {
  function missile1UpdateSprite (line 662) | function missile1UpdateSprite(clockPlus) {
  function missile1SetEnabled (line 674) | function missile1SetEnabled(boo) {
  function missile1SetResetToPlayer (line 683) | function missile1SetResetToPlayer(i) {
  function player0DefineAlt (line 725) | function player0DefineAlt() {
  function player1DefineAlt (line 781) | function player1DefineAlt() {
  function missile0DefineAlt (line 836) | function missile0DefineAlt() {
  function missile1DefineAlt (line 891) | function missile1DefineAlt() {
  function getRESxPixel (line 983) | function getRESxPixel() {
  function checkLateHMOVE (line 1003) | function checkLateHMOVE() {
  function updateExtendedHBLANK (line 1012) | function updateExtendedHBLANK() {
  function endObjectsAltStatusMidLine (line 1026) | function endObjectsAltStatusMidLine() {
  function endObjectsAltStatusEndOfLine (line 1033) | function endObjectsAltStatusEndOfLine() {
  function vSyncSet (line 1040) | function vSyncSet(i) {
  function generateObjectsLineSprites (line 1140) | function generateObjectsLineSprites() {
  function generateObjectsCopiesOffsets (line 1216) | function generateObjectsCopiesOffsets() {

FILE: src/main/atari/tia/TiaAudio.js
  function connectAudio (line 58) | function connectAudio() {
  function disconnectAudio (line 63) | function disconnectAudio() {

FILE: src/main/room/Room.js
  function init (line 8) | function init() {
  function afterPowerONDelay (line 120) | function afterPowerONDelay(func) {
  function consolePowerOnStartAction (line 128) | function consolePowerOnStartAction() {
  function buildMainClock (line 134) | function buildMainClock() {
  function buildPeripherals (line 139) | function buildPeripherals() {
  function buildAndPlugConsole (line 157) | function buildAndPlugConsole() {

FILE: src/main/room/clock/Clock.js
  function giveUp (line 149) | function giveUp() {

FILE: src/main/room/controls/DOMConsoleControls.js
  function init (line 8) | function init() {
  function setTurboFireSpeed (line 125) | function setTurboFireSpeed(speed) {
  function processKeyEvent (line 229) | function processKeyEvent(e, press) {
  function processControlState (line 264) | function processControlState(control, press) {
  function applyControlState (line 286) | function applyControlState(control, press) {
  function processControlValue (line 290) | function processControlValue(control, value) {
  function applyControlValue (line 301) | function applyControlValue(control, value) {
  function fireModeStateUpdate (line 380) | function fireModeStateUpdate() {

FILE: src/main/room/controls/DOMPeripheralControls.js
  function init (line 8) | function init() {

FILE: src/main/room/controls/DOMTouchControls.js
  function createDirectional (line 112) | function createDirectional() {
  function createButton (line 132) | function createButton(group, name) {
  function updateSpeedControls (line 156) | function updateSpeedControls() {
  function updateVisuals (line 161) | function updateVisuals() {
  function dirTouchStart (line 168) | function dirTouchStart(e) {
  function dirTouchEnd (line 178) | function dirTouchEnd(e) {
  function dirTouchMove (line 186) | function dirTouchMove(e) {
  function updateDirMovement (line 199) | function updateDirMovement(newX, newY) {
  function setCurrentDirection (line 212) | function setCurrentDirection(newDir) {
  function setDirTouchCenter (line 236) | function setDirTouchCenter() {
  function buttonTouchStart (line 243) | function buttonTouchStart(e) {
  function buttonTouchEnd (line 248) | function buttonTouchEnd(e) {
  function processButtonTouch (line 253) | function processButtonTouch(control, press) {
  function pauseTouchStart (line 260) | function pauseTouchStart(e) {
  function pauseTouchEnd (line 266) | function pauseTouchEnd(e) {
  function fastTouchStart (line 271) | function fastTouchStart(e) {
  function fastTouchEnd (line 276) | function fastTouchEnd(e) {
  function resetStates (line 281) | function resetStates() {
  function JoystickState (line 317) | function JoystickState() {

FILE: src/main/room/controls/GamepadConsoleControls.js
  function Joystick (line 246) | function Joystick(index, prefs) {

FILE: src/main/room/files/FileDownloader.js
  function checkNone (line 59) | function checkNone() {
  function setup (line 66) | function setup() {

FILE: src/main/room/files/FileLoader.js
  function tryLoadFilesAsMedia (line 151) | function tryLoadFilesAsMedia(files, openType, port, altPower, asExpansio...
  function tryLoadFileAsSingleMedia (line 158) | function tryLoadFileAsSingleMedia(file, openType, port, altPower, asExpa...
  function tryLoadContentAsSingleMedia (line 183) | function tryLoadContentAsSingleMedia(name, content, openType, port, altP...
  function onFileInputChange (line 200) | function onFileInputChange(e) {
  function onDragOver (line 231) | function onDragOver(e) {
  function onDrop (line 248) | function onDrop(e) {
  function showError (line 285) | function showError(message) {
  function createFileInputElement (line 289) | function createFileInputElement() {

FILE: src/main/room/files/RecentStoredROMs.js
  function getStoredROMs (line 52) | function getStoredROMs() {
  function initStore (line 64) | function initStore() {

FILE: src/main/room/netplay/NetClient.js
  function onSessionServerConnected (line 73) | function onSessionServerConnected() {
  function onSessionServerDisconnected (line 83) | function onSessionServerDisconnected() {
  function onSessionMessage (line 87) | function onSessionMessage(event) {
  function onSessionJoined (line 112) | function onSessionJoined(message) {
  function enterNetClientMode (line 142) | function enterNetClientMode() {
  function onServerSDP (line 150) | function onServerSDP(message) {
  function onDataChannelOpen (line 157) | function onDataChannelOpen(event) {
  function onDataChannelClose (line 163) | function onDataChannelClose(event) {
  function onDataChannelMessage (line 168) | function onDataChannelMessage(event) {
  function onRTCError (line 173) | function onRTCError(error) {
  function stopRTC (line 178) | function stopRTC() {
  function onServerNetUpdate (line 191) | function onServerNetUpdate(netUpdate) {
  function keepAlive (line 224) | function keepAlive() {
  function receiveFromDataChannel (line 234) | function receiveFromDataChannel(event) {

FILE: src/main/room/netplay/NetServer.js
  function onSessionServerConnected (line 110) | function onSessionServerConnected() {
  function onSessionServerDisconnected (line 119) | function onSessionServerDisconnected() {
  function onSessionMessage (line 123) | function onSessionMessage(event) {
  function onSessionCreated (line 151) | function onSessionCreated(message) {
  function onClientJoined (line 167) | function onClientJoined(message) {
  function onClientLeft (line 201) | function onClientLeft(message) {
  function onClientSDP (line 208) | function onClientSDP(message) {
  function onDataChannelOpen (line 218) | function onDataChannelOpen(client, event) {
  function onDataChannelClose (line 224) | function onDataChannelClose(client, event) {
  function onDataChannelMessage (line 229) | function onDataChannelMessage(client, event) {
  function onRTCError (line 233) | function onRTCError(client, error) {
  function dropAllClients (line 238) | function dropAllClients() {
  function dropClient (line 243) | function dropClient(client, showMessage, wasError, userMessage) {
  function onClientNetUpdate (line 260) | function onClientNetUpdate(netUpdate) {
  function keepAlive (line 268) | function keepAlive() {
  function sendToDataChannel (line 278) | function sendToDataChannel(dataChannel, data) {

FILE: src/main/room/savestate/LocalStorageSaveStateMedia.js
  function checkDenyNetPlayOperation (line 119) | function checkDenyNetPlayOperation() {

FILE: src/main/room/screen/CanvasDisplay.js
  function init (line 11) | function init() {
  function startActionInFullScreen (line 71) | function startActionInFullScreen() {
  function consolePanelUpdateForOrientation (line 178) | function consolePanelUpdateForOrientation() {
  function setConsolePanelActive (line 182) | function setConsolePanelActive(active) {
  function hideOSD (line 266) | function hideOSD() {
  function releaseControllersOnLostFocus (line 405) | function releaseControllersOnLostFocus() {
  function hideCursorAndBar (line 409) | function hideCursorAndBar() {
  function showCursorAndBar (line 415) | function showCursorAndBar(forceBar) {
  function showCursor (line 421) | function showCursor() {
  function hideCursor (line 428) | function hideCursor() {
  function fullscreenByAPIChanged (line 435) | function fullscreenByAPIChanged() {
  function isFullScreenByAPI (line 459) | function isFullScreenByAPI() {
  function enterFullScreenByAPI (line 463) | function enterFullScreenByAPI() {
  function exitFullScreenByAPI (line 471) | function exitFullScreenByAPI() {
  function updateScale (line 480) | function updateScale() {
  function updateBarWidth (line 491) | function updateBarWidth(canvasWidth) {
  function updateConsolePanelScale (line 497) | function updateConsolePanelScale(maxWidth) {
  function updateCanvasContentSize (line 504) | function updateCanvasContentSize() {
  function setCRTFilter (line 511) | function setCRTFilter(level) {
  function crtFilterAutoValue (line 517) | function crtFilterAutoValue() {
  function setCRTMode (line 524) | function setCRTMode(mode) {
  function crtModeAutoValue (line 530) | function crtModeAutoValue() {
  function updateLogo (line 534) | function updateLogo() {
  function updateLoading (line 543) | function updateLoading() {
  function createCanvasContext (line 549) | function createCanvasContext() {
  function setImageComposition (line 556) | function setImageComposition() {
  function setImageSmoothing (line 566) | function setImageSmoothing() {
  function suppressContextMenu (line 581) | function suppressContextMenu(element) {
  function preventDrag (line 585) | function preventDrag(element) {
  function setupMain (line 589) | function setupMain() {
  function setupMainEvents (line 631) | function setupMainEvents() {
  function setupBar (line 661) | function setupBar() {
  function addBarButton (line 732) | function addBarButton(id, bx, by, tooltip, control, isConsoleControl, me...
  function barButtonTapOrMousedown (line 759) | function barButtonTapOrMousedown(elem, e, uigStart, uigEnd) {
  function barButtonLongTouchStart (line 810) | function barButtonLongTouchStart(e) {
  function barButtonLongTouchCancel (line 824) | function barButtonLongTouchCancel() {
  function barButtonHoverOver (line 831) | function barButtonHoverOver(elem, e) {
  function barButtonMouseLeft (line 838) | function barButtonMouseLeft() {
  function barButtonTouchEndOrMouseUp (line 846) | function barButtonTouchEndOrMouseUp(e) {
  function barMenuItemTapOrMouseDown (line 859) | function barMenuItemTapOrMouseDown(elem, e, uigEnd) {
  function barMenuItemHoverOver (line 864) | function barMenuItemHoverOver(elem, e) {
  function barMenuItemHoverOut (line 868) | function barMenuItemHoverOut() {
  function barMenuItemTouchEndOrMouseUp (line 872) | function barMenuItemTouchEndOrMouseUp(e) {
  function barMenuItemFireActive (line 878) | function barMenuItemFireActive(secSlot, altPower) {
  function barMenuItemSetActive (line 892) | function barMenuItemSetActive(element, haptic) {
  function barElementTapOrMouseDown (line 903) | function barElementTapOrMouseDown(e, uigStart, uigEnd) {
  function barElementTouchMove (line 911) | function barElementTouchMove(e) {
  function barElementTouchEndOrMouseUp (line 922) | function barElementTouchEndOrMouseUp(e) {
  function setupFullscreen (line 931) | function setupFullscreen() {
  function setEnterFullscreenByAPIOnFirstTouch (line 960) | function setEnterFullscreenByAPIOnFirstTouch() {
  function setFullscreenState (line 974) | function setFullscreenState(mode) {
  function tryToFixSafariBugOnFullScreenChange (line 995) | function tryToFixSafariBugOnFullScreenChange() {
  function showBar (line 1007) | function showBar() {
  function hideBar (line 1011) | function hideBar() {
  function showBarMenu (line 1018) | function showBarMenu(menu, select) {
  function refreshBarMenu (line 1054) | function refreshBarMenu(menu) {
  function hideBarMenu (line 1120) | function hideBarMenu() {
  function setupBarMenu (line 1129) | function setupBarMenu() {
  function closeAllOverlays (line 1186) | function closeAllOverlays() {
  function showLogoMessage (line 1197) | function showLogoMessage(mes, button, higherButton, afterAction) {
  function updateLogoScale (line 1226) | function updateLogoScale() {
  function setScrollMessage (line 1235) | function setScrollMessage(state) {
  function readjustAll (line 1248) | function readjustAll(force) {
  function isReadjustScreeSizeChanged (line 1274) | function isReadjustScreeSizeChanged(force) {
  function displayOptimalScaleY (line 1289) | function displayOptimalScaleY(maxWidth, maxHeight) {
  function setViewport (line 1297) | function setViewport() {
  function restoreViewport (line 1317) | function restoreViewport() {
  function setPageVisibilityHandling (line 1331) | function setPageVisibilityHandling() {

FILE: src/main/room/screen/ConsolePanel.js
  function create (line 51) | function create() {
  function switchPressed (line 140) | function switchPressed(e) {
  function switchReleased (line 149) | function switchReleased(e) {
  function switchLeft (line 157) | function switchLeft(e) {
  function cartridgeButtonPressed (line 168) | function cartridgeButtonPressed(e, uigStart, uigEnd) {

FILE: src/main/room/screen/Monitor.js
  function init (line 8) | function init() {
  function normalizeAspectX (line 291) | function normalizeAspectX(aspectX) {
  function normalizeScaleY (line 296) | function normalizeScaleY(scaleY) {

FILE: src/main/room/screen/dialogs/CartridgeFormatDialog.js
  function refreshList (line 48) | function refreshList() {
  function refreshListSelection (line 70) | function refreshListSelection() {
  function refreshSaveFormat (line 88) | function refreshSaveFormat() {
  function create (line 93) | function create() {
  function setupEvents (line 137) | function setupEvents() {

FILE: src/main/room/screen/dialogs/NetPlayDialog.js
  function refresh (line 46) | function refresh() {
  function refreshPreferencesData (line 113) | function refreshPreferencesData() {
  function getSessionLink (line 118) | function getSessionLink() {
  function performCommand (line 122) | function performCommand(e) {
  function create (line 157) | function create() {
  function setupEvents (line 230) | function setupEvents() {

FILE: src/main/room/screen/dialogs/QuickOptionsDialog.js
  function refresh (line 38) | function refresh() {
  function create (line 49) | function create() {
  function setupEvents (line 92) | function setupEvents() {

FILE: src/main/room/screen/dialogs/RecentROMsDialog.js
  function refreshList (line 45) | function refreshList() {
  function refreshListSelection (line 60) | function refreshListSelection() {
  function create (line 65) | function create() {
  function setupEvents (line 93) | function setupEvents() {

FILE: src/main/room/screen/dialogs/SaveStateDialog.js
  function refreshList (line 38) | function refreshList() {
  function refreshListSelection (line 49) | function refreshListSelection() {
  function create (line 54) | function create() {
  function setupEvents (line 87) | function setupEvents() {

FILE: src/main/room/screen/settings/Settings.js
  function create (line 96) | function create() {
  function setFields (line 110) | function setFields() {
  function setEvents (line 123) | function setEvents() {
  function refreshAboutPage (line 169) | function refreshAboutPage() {
  function refreshPortsPage (line 173) | function refreshPortsPage() {
  function processKeyEvent (line 218) | function processKeyEvent(e, press) {

FILE: src/main/room/speaker/WebAudioSpeaker.js
  function determineAutoBufferBaseSize (line 76) | function determineAutoBufferBaseSize() {
  function determineBrowserDefaultBufferBaseSize (line 85) | function determineBrowserDefaultBufferBaseSize() {
  function registerUnlockOnTouchIfNeeded (line 121) | function registerUnlockOnTouchIfNeeded() {
  function updateResamplingFactors (line 153) | function updateResamplingFactors() {
  function onAudioProcess (line 166) | function onAudioProcess(event) {

FILE: src/main/util/MD5.js
  function to_zerofilled_hex (line 5) | function to_zerofilled_hex(n) {
  function chars_to_bytes (line 11) | function chars_to_bytes(ac) {
  function int64_to_bytes (line 21) | function int64_to_bytes(num) {
  function rol (line 31) | function rol(num, places) {
  function fF (line 36) | function fF(b, c, d) {
  function fG (line 40) | function fG(b, c, d) {
  function fH (line 44) | function fH(b, c, d) {
  function fI (line 48) | function fI(b, c, d) {
  function bytes_to_int32 (line 53) | function bytes_to_int32(arr, off) {
  function str_to_bytes (line 64) | function str_to_bytes(str) {
  function int128le_to_hex (line 80) | function int128le_to_hex(a, b, c, d) {
  function typed_to_plain (line 102) | function typed_to_plain(tarr) {
  function _add (line 149) | function _add(n1, n2) {
  function do_digest (line 156) | function do_digest() {

FILE: src/main/util/MultiDownloader.js
  function load (line 14) | function load(urlSpec) {
  function getEmbedded (line 29) | function getEmbedded(urlSpec, f, url) {
  function getHTTP (line 36) | function getHTTP(urlSpec, f, url, remote) {
  function loadSuccess (line 56) | function loadSuccess(urlSpec, f, content) {
  function loadError (line 66) | function loadError(urlSpec, error) {
  function checkFinish (line 78) | function checkFinish() {
  function isRemote (line 98) | function isRemote(url) {
  function proxyze (line 102) | function proxyze(url) {
  function scheduleLoadingIcon (line 106) | function scheduleLoadingIcon() {
  function cancelLoadingIcon (line 116) | function cancelLoadingIcon() {

FILE: src/main/util/MultiFileReader.js
  function load (line 24) | function load(file) {
  function checkFinish (line 42) | function checkFinish() {

FILE: src/main/util/Util.js
  function sortByName (line 352) | function sortByName(a, b) {
  function onTapOrMouseDown (line 430) | function onTapOrMouseDown(e) {
  function onTapOrMouseUp (line 438) | function onTapOrMouseUp(e) {
  function onTapOrMouseDownUIG (line 447) | function onTapOrMouseDownUIG(e) {
  function blockEvent (line 459) | function blockEvent(e) {

FILE: src/main/util/ZIP.js
  function e (line 11) | function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&re...
  function c (line 11) | function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,...
  function c (line 11) | function c(){this.data=null,this.length=0,this.index=0}
  function c (line 11) | function c(a,b){return this instanceof c?(this.files={},this.comment=nul...
  function c (line 11) | function c(a){this.data=a,this.length=this.data.length,this.index=0}
  function c (line 11) | function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),th...
  function c (line 11) | function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}
  function d (line 11) | function d(a){return a}
  function e (line 11) | function e(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);retu...
  function f (line 11) | function f(a){var b=65536,d=[],e=a.length,f=c.getTypeOf(a),g=0,h=!0;try{...
  function g (line 11) | function g(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}
  function c (line 11) | function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}
  function c (line 11) | function c(a,b){this.options=a,this.loadOptions=b}
  function d (line 11) | function d(a,b){var c=new s(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 11) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function f (line 11) | function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}
  function d (line 12) | function d(a,b){var c=new m(b);if(c.push(a,!0),c.err)throw c.msg;return ...
  function e (line 12) | function e(a,b){return b=b||{},b.raw=!0,d(a,b)}
  function d (line 12) | function d(a,b){if(65537>b&&(a.subarray&&g||!a.subarray&&f))return Strin...
  function c (line 12) | function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c...
  function c (line 12) | function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a...
  function d (line 12) | function d(a,b,c,d){var f=e,g=d+c;a=-1^a;for(var h=d;g>h;h++)a=a>>>8^f[2...
  function d (line 12) | function d(a,b){return a.msg=G[b],b}
  function e (line 12) | function e(a){return(a<<1)-(a>4?9:0)}
  function f (line 12) | function f(a){for(var b=a.length;--b>=0;)a[b]=0}
  function g (line 12) | function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0...
  function h (line 12) | function h(a,b){D._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a....
  function i (line 12) | function i(a,b){a.pending_buf[a.pending++]=b}
  function j (line 12) | function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pen...
  function k (line 12) | function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_...
  function l (line 12) | function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_lengt...
  function m (line 12) | function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead...
  function n (line 12) | function n(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf...
  function o (line 12) | function o(a,b){for(var c,d;;){if(a.lookahead<jb){if(m(a),a.lookahead<jb...
  function p (line 12) | function p(a,b){for(var c,d,e;;){if(a.lookahead<jb){if(m(a),a.lookahead<...
  function q (line 12) | function q(a,b){for(var c,d,e,f,g=a.window;;){if(a.lookahead<=ib){if(m(a...
  function r (line 12) | function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead))...
  function s (line 12) | function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=B[a.le...
  function t (line 12) | function t(){this.strm=null,this.status=0,this.pending_buf=null,this.pen...
  function u (line 12) | function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_t...
  function v (line 12) | function v(a){var b=u(a);return b===M&&s(a.state),b}
  function w (line 12) | function w(a,b){return a&&a.state?2!==a.state.wrap?O:(a.state.gzhead=b,M...
  function x (line 12) | function x(a,b,c,e,f,g){if(!a)return O;var h=1;if(b===R&&(b=6),0>e?(h=0,...
  function y (line 12) | function y(a,b){return x(a,b,Y,$,_,W)}
  function z (line 12) | function z(a,b){var c,h,k,l;if(!a||!a.state||b>L||0>b)return a?d(a,O):O;...
  function A (line 12) | function A(a){var b;return a&&a.state?(b=a.state.status,b!==lb&&b!==mb&&...
  function c (line 12) | function c(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=...
  function d (line 12) | function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<...
  function e (line 12) | function e(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this....
  function f (line 12) | function f(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=...
  function g (line 12) | function g(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.w...
  function h (line 12) | function h(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(...
  function i (line 12) | function i(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=h(a,...
  function j (line 12) | function j(a){return i(a,rb)}
  function k (line 12) | function k(a){if(sb){var b;for(p=new r.Buf32(512),q=new r.Buf32(32),b=0;...
  function l (line 12) | function l(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<<...
  function m (line 12) | function m(a,b){var c,e,f,g,h,i,j,m,n,o,p,q,ob,pb,qb,rb,sb,tb,ub,vb,wb,x...
  function n (line 13) | function n(a){if(!a||!a.state)return F;var b=a.state;return b.window&&(b...
  function o (line 13) | function o(a,b){var c;return a&&a.state?(c=a.state,0===(2&c.wrap)?F:(c.h...
  function d (line 13) | function d(a){for(var b=a.length;--b>=0;)a[b]=0}
  function e (line 13) | function e(a){return 256>a?gb[a]:gb[256+(a>>>7)]}
  function f (line 13) | function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending...
  function g (line 13) | function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<<a.bi_valid&65535,f(a,a.bi...
  function h (line 13) | function h(a,b,c){g(a,c[2*b],c[2*b+1])}
  function i (line 13) | function i(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}
  function j (line 13) | function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a....
  function k (line 13) | function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc....
  function l (line 13) | function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g...
  function m (line 13) | function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ib...
  function n (line 13) | function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a...
  function o (line 13) | function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a....
  function p (line 13) | function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a....
  function q (line 13) | function q(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<...
  function r (line 13) | function r(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_le...
  function s (line 13) | function s(a,b,c){var d,f,i,j,k=0;if(0!==a.last_lit)do d=a.pending_buf[a...
  function t (line 13) | function t(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.sta...
  function u (line 13) | function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3)...
  function v (line 13) | function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3)...
  function w (line 13) | function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtr...
  function x (line 13) | function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e...
  function y (line 13) | function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a....
  function z (line 13) | function z(a){pb||(m(),pb=!0),a.l_desc=new ob(a.dyn_ltree,kb),a.d_desc=n...
  function A (line 13) | function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}
  function B (line 13) | function B(a){g(a,K<<1,3),h(a,X,eb),j(a)}
  function C (line 13) | function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm...
  function D (line 13) | function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a...
  function c (line 13) | function c(){this.input=null,this.next_in=0,this.avail_in=0,this.total_i...
Condensed preview — 114 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4,751K chars).
[
  {
    "path": ".gitignore",
    "chars": 32,
    "preview": ".idea/\r\nnode_modules/\r\ntemp/\r\n\r\n"
  },
  {
    "path": "README.md",
    "chars": 10009,
    "preview": "# Javatari\n\n**Javatari** is a new cross platform Atari 2600 emulator designed for the Web.\n\nIt's great for displaying ga"
  },
  {
    "path": "doc/README.md",
    "chars": 10009,
    "preview": "# Javatari\n\n**Javatari** is a new cross platform Atari 2600 emulator designed for the Web.\n\nIt's great for displaying ga"
  },
  {
    "path": "gruntfile.js",
    "chars": 8553,
    "preview": "module.exports = function (grunt) {\n\n    grunt.initConfig({\n        pkg: grunt.file.readJSON(\"package.json\"),\n\n        c"
  },
  {
    "path": "license.txt",
    "chars": 34521,
    "preview": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C)"
  },
  {
    "path": "package.json",
    "chars": 277,
    "preview": "{\n  \"name\": \"Javatari\",\n  \"title\": \"Javatari - The online Atari 2600 emulator\",\n  \"version\": \"5.0.4\",\n  \"devDependencies"
  },
  {
    "path": "release/stable/4.0/embedded/index.html",
    "chars": 476,
    "preview": "<!DOCTYPE html>\n<html>\n\n    <head lang=\"en\">\n\n        <meta charset=\"UTF-8\">\n        <title>Javatari</title>\n        <me"
  },
  {
    "path": "release/stable/4.0/embedded/javatari.js",
    "chars": 631311,
    "preview": "// Javatari version 4.0\n// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Main "
  },
  {
    "path": "release/stable/4.0/standalone/cache.manifest",
    "chars": 127,
    "preview": "CACHE MANIFEST\n# Version 4.0.001\n# Stable\n\nCACHE:\nmanifest.webapp\nimages/logo-icon192.png\nimages/logo-icon512.png\n\nNETWO"
  },
  {
    "path": "release/stable/4.0/standalone/index.html",
    "chars": 672613,
    "preview": "<!DOCTYPE html>\n<html manifest=\"cache.manifest\">\n\n    <head lang=\"en\">\n\n        <meta charset=\"UTF-8\">\n        <meta nam"
  },
  {
    "path": "release/stable/4.0/standalone/manifest.webapp",
    "chars": 371,
    "preview": "{\n  \"name\": \"Javatari\",\n  \"description\": \"Javatari - The online Atari 2600 emulator\",\n  \"display\": \"standalone\",\n  \"back"
  },
  {
    "path": "release/stable/5.0/embedded/index.html",
    "chars": 493,
    "preview": "<!DOCTYPE html>\n<html>\n\n    <head lang=\"en\">\n\n        <meta charset=\"UTF-8\">\n        <title>Javatari</title>\n        <me"
  },
  {
    "path": "release/stable/5.0/embedded/javatari.js",
    "chars": 668731,
    "preview": "// Javatari version 5.0.4\n// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Mai"
  },
  {
    "path": "release/stable/5.0/standalone/cache.manifest",
    "chars": 125,
    "preview": "CACHE MANIFEST\n# Version 5.0.4\n# Stable\n\nCACHE:\nmanifest.webapp\nimages/logo-icon192.png\nimages/logo-icon512.png\n\nNETWORK"
  },
  {
    "path": "release/stable/5.0/standalone/index.html",
    "chars": 710376,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\" translate=\"no\" class=\"notranslate\" manifest=\"cache.manifest\">\n\n    <head lang=\"en\">\n\n   "
  },
  {
    "path": "release/stable/5.0/standalone/manifest.webapp",
    "chars": 371,
    "preview": "{\n  \"name\": \"Javatari\",\n  \"description\": \"Javatari - The online Atari 2600 emulator\",\n  \"display\": \"standalone\",\n  \"back"
  },
  {
    "path": "release/stable/old/index.html",
    "chars": 545,
    "preview": "<!DOCTYPE html>\n<html>\n\n    <head lang=\"en\">\n        <meta charset=\"UTF-8\">\n        <title>Javatari.js</title>\n    </hea"
  },
  {
    "path": "release/stable/old/javatari/javatari.js",
    "chars": 470141,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Main Emulator parameters.\n// "
  },
  {
    "path": "src/main/Configurator.js",
    "chars": 5604,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Configurator = {\n\n    applyCo"
  },
  {
    "path": "src/main/Javatari.js",
    "chars": 4146,
    "preview": "// Javatari version 5.0.4\n// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Mai"
  },
  {
    "path": "src/main/Launcher.js",
    "chars": 3971,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\nJavatari.start = function (conso"
  },
  {
    "path": "src/main/atari/audio/AudioSignal.js",
    "chars": 4472,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.AudioSignal = function(name, "
  },
  {
    "path": "src/main/atari/cartridge/Cartridge.js",
    "chars": 1261,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Cartridge = function() {\n\"use"
  },
  {
    "path": "src/main/atari/cartridge/CartridgeCreator.js",
    "chars": 11721,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.CartridgeCreatorImpl = functi"
  },
  {
    "path": "src/main/atari/cartridge/CartridgeDatabase.js",
    "chars": 132359,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n// Many thanks to ROM Hunter for "
  },
  {
    "path": "src/main/atari/cartridge/CartridgeDatabaseUncompressed.js",
    "chars": 257419,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n// Many thanks to ROM Hunter for "
  },
  {
    "path": "src/main/atari/cartridge/CartridgeFormats.js",
    "chars": 11909,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.CartridgeFormats = {\n\n    \"4K"
  },
  {
    "path": "src/main/atari/cartridge/ROM.js",
    "chars": 848,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.ROM = function(source, conten"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge10K_DPCa.js",
    "chars": 10399,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K + 2K \"DPCa\""
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge16K_E7.js",
    "chars": 3963,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 16K \"E7\" M-Net"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge24K_28K_32K_FA2.js",
    "chars": 6293,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 24K/28K/32K \"F"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge2K_CV.js",
    "chars": 2238,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 2K \"CV\" Commav"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge4K.js",
    "chars": 1525,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 4K unbanked fo"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge64K_F0.js",
    "chars": 2079,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 64K \"F0\" Dynac"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge64K_X07.js",
    "chars": 2125,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 64K \"X07\" Atar"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_0840.js",
    "chars": 1891,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K \"0840\" Econ"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_256K_SB.js",
    "chars": 1920,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K-256K \"SB\" S"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_512K_3E.js",
    "chars": 4024,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K-512K \"3E\" T"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_512K_3F.js",
    "chars": 2541,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K-512K \"Enhan"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_64K_AR.js",
    "chars": 13242,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the n * 8448 byte "
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_E0.js",
    "chars": 3218,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K \"E0\" Parker"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_FE.js",
    "chars": 2063,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K \"FE\" Robota"
  },
  {
    "path": "src/main/atari/cartridge/formats/Cartridge8K_UA.js",
    "chars": 1836,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements the 8K \"UA\" UA Lim"
  },
  {
    "path": "src/main/atari/cartridge/formats/CartridgeBankedByBusMonitoring.js",
    "chars": 811,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Implements generic bank switc"
  },
  {
    "path": "src/main/atari/cartridge/formats/CartridgeBankedByMaskedRange.js",
    "chars": 4095,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n/**\n * Implements the simple ban"
  },
  {
    "path": "src/main/atari/console/AtariConsole.js",
    "chars": 25288,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.AtariConsole = function(mainV"
  },
  {
    "path": "src/main/atari/console/Bus.js",
    "chars": 3075,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Bus = function(pCpu, pTia, pP"
  },
  {
    "path": "src/main/atari/controls/ConsoleControls.js",
    "chars": 1654,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.ConsoleControls = {\n\n    // C"
  },
  {
    "path": "src/main/atari/controls/JoystickButtons.js",
    "chars": 935,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.JoystickButtons = {\n\n    // R"
  },
  {
    "path": "src/main/atari/cpu/M6502.js",
    "chars": 60364,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.M6502 = function() {\n\"use str"
  },
  {
    "path": "src/main/atari/cpu/Ram64K.js",
    "chars": 618,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Ram64K = function(data) {\n\"us"
  },
  {
    "path": "src/main/atari/pia/Pia.js",
    "chars": 8518,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Pia = function() {\n\"use stric"
  },
  {
    "path": "src/main/atari/pia/Ram.js",
    "chars": 1729,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Ram = function() {\n\"use stric"
  },
  {
    "path": "src/main/atari/tia/Tia.js",
    "chars": 75926,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// TODO NUSIZ during scan with H"
  },
  {
    "path": "src/main/atari/tia/TiaAudio.js",
    "chars": 1965,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.TiaAudio = function() {\n\"use "
  },
  {
    "path": "src/main/atari/tia/TiaAudioChannel.js",
    "chars": 5046,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.TiaAudioChannel = function() "
  },
  {
    "path": "src/main/atari/tia/TiaPalettes.js",
    "chars": 7185,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n(function() {\n\"use strict\";\n\n   "
  },
  {
    "path": "src/main/atari/video/VideoSignal.js",
    "chars": 879,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.VideoSignal = function() {\n\"u"
  },
  {
    "path": "src/main/atari/video/VideoStandard.js",
    "chars": 3852,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.VideoStandard = {\n    NTSC: {"
  },
  {
    "path": "src/main/images/Images.js",
    "chars": 573,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Images = {\n\n    embedded: fal"
  },
  {
    "path": "src/main/room/Room.js",
    "chars": 8078,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Room = function(screenElement"
  },
  {
    "path": "src/main/room/clock/Clock.js",
    "chars": 5777,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Clock Pulse generator. Intend"
  },
  {
    "path": "src/main/room/controls/DOMConsoleControls.js",
    "chars": 29373,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.DOMConsoleControls = function"
  },
  {
    "path": "src/main/room/controls/DOMKeys.js",
    "chars": 9063,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// General, immutable info about"
  },
  {
    "path": "src/main/room/controls/DOMPeripheralControls.js",
    "chars": 12452,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.DOMPeripheralControls = funct"
  },
  {
    "path": "src/main/room/controls/DOMTouchControls.js",
    "chars": 11119,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.DOMTouchControls = function(c"
  },
  {
    "path": "src/main/room/controls/GamepadButtons.js",
    "chars": 810,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// General, immutable info about"
  },
  {
    "path": "src/main/room/controls/GamepadConsoleControls.js",
    "chars": 12057,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.GamepadConsoleControls = func"
  },
  {
    "path": "src/main/room/controls/PeripheralControls.js",
    "chars": 1314,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.PeripheralControls = {\n\n    S"
  },
  {
    "path": "src/main/room/controls/TouchControls.js",
    "chars": 266,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// General, immutable info about"
  },
  {
    "path": "src/main/room/files/FileDownloader.js",
    "chars": 3069,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.FileDownloader = function() {"
  },
  {
    "path": "src/main/room/files/FileLoader.js",
    "chars": 13093,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.FileLoader = function(room, r"
  },
  {
    "path": "src/main/room/files/RecentStoredROMs.js",
    "chars": 2765,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.RecentStoredROMs = function()"
  },
  {
    "path": "src/main/room/netplay/NetClient.js",
    "chars": 10063,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.NetClient = function(room) {\n"
  },
  {
    "path": "src/main/room/netplay/NetServer.js",
    "chars": 11609,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.NetServer = function(room) {\n"
  },
  {
    "path": "src/main/room/savestate/LocalStorageSaveStateMedia.js",
    "chars": 3860,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.LocalStorageSaveStateMedia = "
  },
  {
    "path": "src/main/room/screen/CanvasDisplay.js",
    "chars": 58119,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// TODO Remove \"Center\" rounding"
  },
  {
    "path": "src/main/room/screen/ConsolePanel.js",
    "chars": 10078,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.ConsolePanel = function(scree"
  },
  {
    "path": "src/main/room/screen/FullScreenSetup.js",
    "chars": 1423,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\nJavatariFullScreenSetup = {\n    "
  },
  {
    "path": "src/main/room/screen/Monitor.js",
    "chars": 12555,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Monitor = function(display) {"
  },
  {
    "path": "src/main/room/screen/ScreenGUI.es5.js",
    "chars": 31085,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.ScreenGUI = jt.Util.isMobileD"
  },
  {
    "path": "src/main/room/screen/dialogs/CartridgeFormatDialog.js",
    "chars": 8067,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.CartridgeFormatDialog = funct"
  },
  {
    "path": "src/main/room/screen/dialogs/NetPlayDialog.js",
    "chars": 11059,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.NetPlayDialog = function(room"
  },
  {
    "path": "src/main/room/screen/dialogs/QuickOptionsDialog.js",
    "chars": 4604,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.QuickOptionsDialog = function"
  },
  {
    "path": "src/main/room/screen/dialogs/RecentROMsDialog.js",
    "chars": 4704,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.RecentROMsDialog = function(m"
  },
  {
    "path": "src/main/room/screen/dialogs/SaveStateDialog.js",
    "chars": 5493,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.SaveStateDialog = function(ma"
  },
  {
    "path": "src/main/room/screen/es6/ScreenGUI.js",
    "chars": 35793,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.ScreenGUI = jt.Util.isMobileD"
  },
  {
    "path": "src/main/room/screen/es6/SettingsGUI.js",
    "chars": 31346,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// HTML and CSS data for Setting"
  },
  {
    "path": "src/main/room/screen/settings/Settings.js",
    "chars": 10929,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.SettingsDialog = function(par"
  },
  {
    "path": "src/main/room/screen/settings/SettingsGUI.es5.js",
    "chars": 18264,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// HTML and CSS data for Setting"
  },
  {
    "path": "src/main/room/speaker/WebAudioSpeaker.js",
    "chars": 9574,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\n// Accepts multiple AudioSignals"
  },
  {
    "path": "src/main/userprefs/UserPreferences.js",
    "chars": 4333,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\nJavatari.userPreferences = { };\n"
  },
  {
    "path": "src/main/userprefs/UserROMFormats.js",
    "chars": 652,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\nJavatari.userROMFormats = {\n\n   "
  },
  {
    "path": "src/main/util/EmbeddedFiles.js",
    "chars": 1024,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.EmbeddedFiles = {\n\n    get: f"
  },
  {
    "path": "src/main/util/MD5.js",
    "chars": 12238,
    "preview": "jt.MD5 = function(data) {\n\"use strict\";\n\n    // convert number to (unsigned) 32 bit hex, zero filled string\n    function"
  },
  {
    "path": "src/main/util/MultiDownloader.js",
    "chars": 4565,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.MultiDownloader = function (u"
  },
  {
    "path": "src/main/util/MultiFileReader.js",
    "chars": 2063,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.MultiFileReader = function (f"
  },
  {
    "path": "src/main/util/Util.js",
    "chars": 19452,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Util = new function() {\n\"use "
  },
  {
    "path": "src/main/util/ZIP.js",
    "chars": 75489,
    "preview": "/*!\nJSZip - A Javascript class for generating and reading zip files\n<http://stuartk.com/jszip>\n\n(c) 2009-2014 Stuart Kni"
  },
  {
    "path": "src/runtime/embedded/index.html",
    "chars": 493,
    "preview": "<!DOCTYPE html>\n<html>\n\n    <head lang=\"en\">\n\n        <meta charset=\"UTF-8\">\n        <title>Javatari</title>\n        <me"
  },
  {
    "path": "src/runtime/images/EmbeddedImages.js",
    "chars": 141303,
    "preview": "// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.\n\njt.Images.embedded = true;\n\njt.I"
  },
  {
    "path": "src/runtime/standalone/cache.manifest",
    "chars": 125,
    "preview": "CACHE MANIFEST\n# Version 5.0.4\n# Stable\n\nCACHE:\nmanifest.webapp\nimages/logo-icon192.png\nimages/logo-icon512.png\n\nNETWORK"
  },
  {
    "path": "src/runtime/standalone/index.base.html",
    "chars": 41643,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\" translate=\"no\" class=\"notranslate\" manifest=\"cache.manifest\">\n\n    <head lang=\"en\">\n\n   "
  },
  {
    "path": "src/runtime/standalone/index.part1.html",
    "chars": 21008,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\" translate=\"no\" class=\"notranslate\" manifest=\"cache.manifest\">\n\n    <head lang=\"en\">\n\n   "
  },
  {
    "path": "src/runtime/standalone/index.part2.html",
    "chars": 20635,
    "preview": "        </script>\n\n        <div id=\"topbar\">\n            <div class=\"container\">\n                <a id=\"logo\" style=\"bac"
  },
  {
    "path": "src/runtime/standalone/manifest.webapp",
    "chars": 371,
    "preview": "{\n  \"name\": \"Javatari\",\n  \"description\": \"Javatari - The online Atari 2600 emulator\",\n  \"display\": \"standalone\",\n  \"back"
  },
  {
    "path": "test/index.html",
    "chars": 7716,
    "preview": "<!DOCTYPE html>\n<html>\n\n    <head lang=\"en\">\n\n        <!-- DEBUG 4 -->\n        <!--<script src=\"http://10.42.10.141:9090"
  },
  {
    "path": "test/manifest.webapp",
    "chars": 412,
    "preview": "{\n  \"name\": \"Javatari\",\n  \"description\": \"Javatari - The online Atari 2600 emulator (test)\",\n  \"start_url\": \".\",\n  \"disp"
  }
]

// ... and 6 more files (download for full content)

About this extraction

This page contains the full source code of the ppeccin/javatari.js GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 114 files (4.4 MB), approximately 1.2M tokens, and a symbol index with 1465 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!