diff --git a/CHANGELOG.txt b/CHANGELOG.txt index eedeed70..2a6af639 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,47 @@ ------------------------------------- - 7.1-2 + 7.2-4 2026-11-16 +------------------------------------- +Fix settings dialogue failing to load with a second network adapter attached +https://github.com/phpvirtualbox/phpvirtualbox/issues/389 + +Fix content-type in POST requests to application/json +https://github.com/phpvirtualbox/phpvirtualbox/issues/388 + +------------------------------------- + 7.2-3 2026-04-05 +------------------------------------- +Update jQuery to 4.0.0 and jQuery-UI to 1.14.2 +Update jQuery plugins to the latest versions +Fix deprecated jQuery usage +Fix dialogs buttons not updating + +------------------------------------- + 7.2-2 2025-11-01 +------------------------------------- +Disable Page Fusion feature +https://github.com/phpvirtualbox/phpvirtualbox/issues/363 + +Add VRDP Security Method selection to the Remote Display settings +https://github.com/phpvirtualbox/phpvirtualbox/issues/366 + +Remove the Console tab with the old Flash and Java RDP and VNC clients +https://github.com/phpvirtualbox/phpvirtualbox/issues/367 + +Fix NVRAM related issues +https://github.com/phpvirtualbox/phpvirtualbox/issues/364 +https://github.com/phpvirtualbox/phpvirtualbox/issues/369 + +Fix USB Device Filters related issues +https://github.com/phpvirtualbox/phpvirtualbox/issues/371 + +------------------------------------- + 7.2-1 2025-09-01 +------------------------------------- +Add Virtualbox 7.2 support +https://github.com/phpvirtualbox/phpvirtualbox/issues/360 + +------------------------------------- + 7.1-2 2025-04-29 ------------------------------------- Fixed https://github.com/phpvirtualbox/phpvirtualbox/issues/350 Clonig VMs causes an error - Vm clonig is unuseable in phpvirtualbox diff --git a/README.md b/README.md index 238bd2d5..6bd0fdab 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,33 @@ # About -April 2025 - -Project adopted by Anonie Muss. Updated from https://github.com/studnitskiy/phpvirtualbox where -it had been modified to work with VirtualBox 7.1. Thanks to studnitskiy for his work, and now that -he is a member of the github project, I hope he will continue to contribute. +Web interface for Oracle VirtualBox (https://www.virtualbox.org/) ## Roadmap -- [ ] ~~Use Guacamole instead of Flash RDP client~~ Not possible without some gateway server -- [ ] Ensure feature parity with VirtualBox 7.1 minus Oracle Cloud features -- [x] PHP 8.4 compatibility -- [x] jQuery and jQuery UI updates -- [ ] Create a release process where javascript and CSS are minified and releses do not contain unnecessary build artifacts -- [ ] UI parity with VirtualBox 7.1 minus Oracle Cloud features +- Ensure feature parity with VirtualBox 7.2 minus Oracle Cloud features +- PHP 8.4 compatibility +- jQuery and jQuery UI updates + +## Project history and credits + +October 2025 -## History +VirtualBox 7.2 support and various bugfixes. + +April 2025 + +Project adopted by Anonie Muss. Updated from https://github.com/studnitskiy/phpvirtualbox. October 2024 VirtualBox 7.1 support for x86 hosts only, no ARM hosts support. -I've basically made it stop complaining and allow my existing environment to work. -Minimally tested with PHP 8.2 (PHP-FPM + nginx). - -Original text follows -This repository is a continuation of phpVirtualBox, which is no longer supported by the official authors (last commit on thier repository was sent on Jan 27, 2021 - written on Jan 18, 2023). -Right now (from 2022), this software is updated by *[Bartek Sz.](https://github.com/BartekSz95)* and various contributors (see https://github.com/BartekSz95/phpvirtualbox/graphs/contributors). +2022 updated by *[Bartek Sz.](https://github.com/BartekSz95)* and various contributors. -phpVirtualBox was from 2017 to 2021 maintained by Smart Guide Pty Ltd (tudor at smartguide dot com dot au) with support from various contributors. +2017-2021 maintained by Smart Guide Pty Ltd (tudor at smartguide dot com dot au) with support from various contributors. -Originally Copyright © 2010-2015 by Ian Moore (imoore76 at yahoo dot com). +2010-2015 created and maintained by Ian Moore (imoore76 at yahoo dot com). FREE, WITHOUT WARRANTY: @@ -49,11 +45,11 @@ possession. - Webserver (eg. Apache HTTPD, nginx) -- VirtualBox 7.1.x +- VirtualBox 7.2.x # Installation from ZIP file -1) Download ZIP file from GitHub project site: https://github.com/phpvirtualbox/phpvirtualbox/archive/master.zip. +1) Download ZIP file from the project site on GitHub - use Code > Download ZIP. 2) Unzip the ZIP file into a folder accessible by your web server. 3) Rename config.php-example to config.php and edit as needed. diff --git a/config.php-example b/config.php-example index e84bf8b2..4351bbd6 100644 --- a/config.php-example +++ b/config.php-example @@ -56,9 +56,6 @@ var $servers = array( // Disable authentication #var $noAuth = true; -// Host / ip to use for console connections -#var $consoleHost = '192.168.1.40'; - // Disable "preview" box #var $noPreview = true; @@ -160,13 +157,6 @@ var $hostMemInfoRefreshInterval = 5; /* Disable any of phpVirtualBox's main tabs */ #var $disableTabVMSnapshots = true; // Snapshots tab -#var $disableTabVMConsole = true; // Console tab - -/* Screen resolutions for console tab */ -var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900'); - -/* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */ -var $consoleKeyboardLayout = 'EN'; /* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */ var $nicMax = 4; diff --git a/endpoints/api.php b/endpoints/api.php index da5afd01..45f9c696 100644 --- a/endpoints/api.php +++ b/endpoints/api.php @@ -57,8 +57,8 @@ } /* Check for PHP version */ - if (!version_compare(PHP_VERSION, '5.2.0', '>=')) { - throw new Exception('phpVirtualBox requires PHP >= 5.2.0, but this server is running version '. PHP_VERSION .'. Please upgrade PHP.'); + if (!version_compare(PHP_VERSION, '8.1.0', '>=')) { + throw new Exception('phpVirtualBox requires PHP >= 8.1.0, but this server is running version '. PHP_VERSION .'. Please upgrade PHP.'); } # Only valid function chars diff --git a/endpoints/lib/config.php b/endpoints/lib/config.php index 5700d150..e48dffec 100644 --- a/endpoints/lib/config.php +++ b/endpoints/lib/config.php @@ -14,7 +14,7 @@ /* * This version of phpVirtualBox */ -define('PHPVBOX_VER', '7.1-1'); +define('PHPVBOX_VER', '7.2-4'); class phpVBoxConfigClass { @@ -63,12 +63,6 @@ class phpVBoxConfigClass { */ var $browserLocal = false; - /** - * List of console resolutions available on console tab - * @var array - */ - var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900'); - /** * Maximum number of NICs displayed per VM * @var integer @@ -160,7 +154,6 @@ function __construct() { foreach(get_object_vars($c) as $k => $v) { // Safety checks if($k == 'browserRestrictFiles' && !is_array($v)) continue; - if($k == 'consoleResolutions' && !is_array($v)) continue; if($k == 'browserRestrictFolders' && !is_array($v)) continue; $this->$k = $v; } @@ -204,10 +197,6 @@ function __construct() { // phpvirtualbox installation $this->setKey(); - // legacy rdpHost setting - if(!empty($this->rdpHost) && empty($this->consoleHost)) - $this->consoleHost = $this->rdpHost; - // Ensure authlib is set if(empty($this->authLib)) $this->authLib = 'Builtin'; // include interface diff --git a/endpoints/lib/vboxServiceWrappers.php b/endpoints/lib/vboxServiceWrappers.php index 08314e94..ad298e2c 100644 --- a/endpoints/lib/vboxServiceWrappers.php +++ b/endpoints/lib/vboxServiceWrappers.php @@ -1,7 +1,7 @@ $methodName($value); else - throw new Exception("Attribute does not exist $attr"); + throw new Exception("Attribute does not exist"); } public function __get($attr) @@ -56,7 +56,7 @@ public function __get($attr) if (method_exists($this, $methodName)) return $this->$methodName(); else - throw new Exception("Attribute does not exist $attr"); + throw new Exception("Attribute does not exist"); } public function getHandle() @@ -148,7 +148,7 @@ public function offsetGet($offset): mixed /** Iterator Functions **/ public function rewind(): void { - $_ = reset($this->_objects); + reset($this->_objects); } public function current(): mixed @@ -161,10 +161,9 @@ public function key(): int|null|string return key($this->_objects); } - //#[ReturnTypeWillChange] public function next(): void { - $_ = next($this->_objects); + next($this->_objects); } public function valid(): bool @@ -236,7 +235,7 @@ public function __construct($connection, $handle) public function __toString() { - return (string)$this->NameMap[$this->_handle]; + return (string)$this->NameMap[$this->_handle ?? '']; } } @@ -251,6 +250,44 @@ abstract class VBox_EnumCollection extends VBox_Collection class VirtualBox_COM_result_codes { + const VBOX_E_OBJECT_NOT_FOUND = 0x80BB0001; + + const VBOX_E_INVALID_VM_STATE = 0x80BB0002; + + const VBOX_E_VM_ERROR = 0x80BB0003; + + const VBOX_E_FILE_ERROR = 0x80BB0004; + + const VBOX_E_IPRT_ERROR = 0x80BB0005; + + const VBOX_E_PDM_ERROR = 0x80BB0006; + + const VBOX_E_INVALID_OBJECT_STATE = 0x80BB0007; + + const VBOX_E_HOST_ERROR = 0x80BB0008; + + const VBOX_E_NOT_SUPPORTED = 0x80BB0009; + + const VBOX_E_XML_ERROR = 0x80BB000A; + + const VBOX_E_INVALID_SESSION_STATE = 0x80BB000B; + + const VBOX_E_OBJECT_IN_USE = 0x80BB000C; + + const VBOX_E_PASSWORD_INCORRECT = 0x80BB000D; + + const VBOX_E_MAXIMUM_REACHED = 0x80BB000E; + + const VBOX_E_GSTCTL_GUEST_ERROR = 0x80BB000F; + + const VBOX_E_TIMEOUT = 0x80BB0010; + + const VBOX_E_DND_ERROR = 0x80BB0011; + + const VBOX_E_PLATFORM_ARCH_NOT_SUPPORTED = 0x80BB0012; + + const VBOX_E_RECORDING_ERROR = 0x80BB0013; + } /** @@ -566,6 +603,98 @@ public function getLocalMappings() return (array)$response->returnval; } + public function getLocalhostReachable() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getLocalhostReachable', array((array)$request)); + return (bool)$response->returnval; + } + + public function setLocalhostReachable($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->localhostReachable = $value; + } + else + { + $request->localhostReachable = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setLocalhostReachable', array((array)$request)); + } + + public function getForwardBroadcast() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getForwardBroadcast', array((array)$request)); + return (bool)$response->returnval; + } + + public function setForwardBroadcast($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->forwardBroadcast = $value; + } + else + { + $request->forwardBroadcast = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setForwardBroadcast', array((array)$request)); + } + + public function getNatMTU() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getNatMTU', array((array)$request)); + return (float)$response->returnval; + } + + public function setNatMTU($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->natMTU = $value; + } + else + { + $request->natMTU = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setNatMTU', array((array)$request)); + } + + public function getNatMRU() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATNetwork_getNatMRU', array((array)$request)); + return (float)$response->returnval; + } + + public function setNatMRU($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->natMRU = $value; + } + else + { + $request->natMRU = $value->handle; + } + $this->connection->__soapCall('INATNetwork_setNatMRU', array((array)$request)); + } + public function getLoopbackIp6() { $request = new stdClass(); @@ -1844,6 +1973,24 @@ public function findProgressById($arg_id) return new IProgress ($this->connection, $response->returnval); } + public function getTrackedObject($arg_trObjId) + { + $request = new stdClass(); + $request->_this = $this->handle; + $request->trObjId = $arg_trObjId; + $response = $this->connection->__soapCall('IVirtualBox_getTrackedObject', array((array)$request)); + return array(new VBox_ManagedObject ($this->connection, $response->pIface), new TrackedObjectState ($this->connection, $response->state), (float)$response->creationTime, (float)$response->deletionTime); + } + + public function getTrackedObjectIds($arg_name) + { + $request = new stdClass(); + $request->_this = $this->handle; + $request->name = $arg_name; + $response = $this->connection->__soapCall('IVirtualBox_getTrackedObjectIds', array((array)$request)); + return (array)$response->returnval; + } + public function getVersion() { $request = new stdClass(); @@ -2838,6 +2985,14 @@ public function setInstallGuestAdditions($value) $this->connection->__soapCall('IUnattended_setInstallGuestAdditions', array((array)$request)); } + public function getProductKeyRequired() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('IUnattended_getProductKeyRequired', array((array)$request)); + return (bool)$response->returnval; + } + public function getValidationKitIsoPath() { $request = new stdClass(); @@ -4387,6 +4542,37 @@ public function start() return new IProgress ($this->connection, $response->returnval); } + public function resume() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('IRecordingSettings_resume', array((array)$request)); + return ; + } + + public function getPaused() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('IRecordingSettings_getPaused', array((array)$request)); + return (bool)$response->returnval; + } + + public function setPaused($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->paused = $value; + } + else + { + $request->paused = $value->handle; + } + $this->connection->__soapCall('IRecordingSettings_setPaused', array((array)$request)); + } + public function getEnabled() { $request = new stdClass(); @@ -5036,13 +5222,24 @@ class IPlatformX86Collection extends VBox_ManagedObjectCollection class IPlatformARM extends VBox_ManagedObject { - public function getMidlDoesNotLikeEmptyInterfaces() + public function getCPUProperty($arg_property) { $request = new stdClass(); $request->_this = $this->handle; - $response = $this->connection->__soapCall('IPlatformARM_getMidlDoesNotLikeEmptyInterfaces', array((array)$request)); + $request->property = $arg_property; + $response = $this->connection->__soapCall('IPlatformARM_getCPUProperty', array((array)$request)); return (bool)$response->returnval; } + + public function setCPUProperty($arg_property, $arg_value) + { + $request = new stdClass(); + $request->_this = $this->handle; + $request->property = $arg_property; + $request->value = $arg_value; + $response = $this->connection->__soapCall('IPlatformARM_setCPUProperty', array((array)$request)); + return ; + } } /** @@ -16593,6 +16790,121 @@ public function setLocalhostReachable($value) } $this->connection->__soapCall('INATEngine_setLocalhostReachable', array((array)$request)); } + + public function getForwardBroadcast() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getForwardBroadcast', array((array)$request)); + return (bool)$response->returnval; + } + + public function setForwardBroadcast($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->forwardBroadcast = $value; + } + else + { + $request->forwardBroadcast = $value->handle; + } + $this->connection->__soapCall('INATEngine_setForwardBroadcast', array((array)$request)); + } + + public function getEnableTFTP() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getEnableTFTP', array((array)$request)); + return (bool)$response->returnval; + } + + public function setEnableTFTP($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->enableTFTP = $value; + } + else + { + $request->enableTFTP = $value->handle; + } + $this->connection->__soapCall('INATEngine_setEnableTFTP', array((array)$request)); + } + + public function getNatMRU() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getNatMRU', array((array)$request)); + return (float)$response->returnval; + } + + public function setNatMRU($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->natMRU = $value; + } + else + { + $request->natMRU = $value->handle; + } + $this->connection->__soapCall('INATEngine_setNatMRU', array((array)$request)); + } + + public function getIPv6Enabled() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getIPv6Enabled', array((array)$request)); + return (bool)$response->returnval; + } + + public function setIPv6Enabled($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->IPv6Enabled = $value; + } + else + { + $request->IPv6Enabled = $value->handle; + } + $this->connection->__soapCall('INATEngine_setIPv6Enabled', array((array)$request)); + } + + public function getIPv6Prefix() + { + $request = new stdClass(); + $request->_this = $this->handle; + $response = $this->connection->__soapCall('INATEngine_getIPv6Prefix', array((array)$request)); + return (string)$response->returnval; + } + + public function setIPv6Prefix($value) + { + $request = new stdClass(); + $request->_this = $this->handle; + if (is_null($value) || is_scalar($value)) + { + $request->IPv6Prefix = $value; + } + else + { + $request->IPv6Prefix = $value->handle; + } + $this->connection->__soapCall('INATEngine_setIPv6Prefix', array((array)$request)); + } } /** @@ -18724,12 +19036,12 @@ class IVRDEServerInfoChangedEventCollection extends VBox_ManagedObjectCollection class IRecordingStateChangedEvent extends IEvent { - public function getEnabled() + public function getState() { $request = new stdClass(); $request->_this = $this->handle; - $response = $this->connection->__soapCall('IRecordingStateChangedEvent_getEnabled', array((array)$request)); - return (bool)$response->returnval; + $response = $this->connection->__soapCall('IRecordingStateChangedEvent_getState', array((array)$request)); + return new RecordingState ($this->connection, $response->returnval); } public function getError() @@ -21921,7 +22233,6 @@ class IGuestOSType extends VBox_Struct protected $recommendedRAM; protected $recommendedGraphicsController; protected $recommendedVRAM; - protected $recommended2DVideoAcceleration; protected $recommended3DAcceleration; protected $recommendedHDD; protected $adapterType; @@ -21965,7 +22276,6 @@ public function __construct($connection, $values) $this->recommendedRAM = $values->recommendedRAM; $this->recommendedGraphicsController = $values->recommendedGraphicsController; $this->recommendedVRAM = $values->recommendedVRAM; - $this->recommended2DVideoAcceleration = $values->recommended2DVideoAcceleration; $this->recommended3DAcceleration = $values->recommended3DAcceleration; $this->recommendedHDD = $values->recommendedHDD; $this->adapterType = $values->adapterType; @@ -22043,10 +22353,6 @@ public function getRecommendedVRAM() { return (float)$this->recommendedVRAM; } - public function getRecommended2DVideoAcceleration() - { - return (bool)$this->recommended2DVideoAcceleration; - } public function getRecommended3DAcceleration() { return (bool)$this->recommended3DAcceleration; @@ -22320,8 +22626,8 @@ class IMediumAttachmentCollection extends VBox_StructCollection */ class SettingsVersion extends VBox_Enum { - public $NameMap = array(0 => 'Null', 1 => 'v1_0', 2 => 'v1_1', 3 => 'v1_2', 4 => 'v1_3pre', 5 => 'v1_3', 6 => 'v1_4', 7 => 'v1_5', 8 => 'v1_6', 9 => 'v1_7', 10 => 'v1_8', 11 => 'v1_9', 12 => 'v1_10', 13 => 'v1_11', 14 => 'v1_12', 15 => 'v1_13', 16 => 'v1_14', 17 => 'v1_15', 18 => 'v1_16', 19 => 'v1_17', 20 => 'v1_18', 21 => 'v1_19', 22 => 'v1_20', 99999 => 'Future'); - public $ValueMap = array('Null' => 0, 'v1_0' => 1, 'v1_1' => 2, 'v1_2' => 3, 'v1_3pre' => 4, 'v1_3' => 5, 'v1_4' => 6, 'v1_5' => 7, 'v1_6' => 8, 'v1_7' => 9, 'v1_8' => 10, 'v1_9' => 11, 'v1_10' => 12, 'v1_11' => 13, 'v1_12' => 14, 'v1_13' => 15, 'v1_14' => 16, 'v1_15' => 17, 'v1_16' => 18, 'v1_17' => 19, 'v1_18' => 20, 'v1_19' => 21, 'v1_20' => 22, 'Future' => 99999); + public $NameMap = array(0 => 'Null', 1 => 'v1_0', 2 => 'v1_1', 3 => 'v1_2', 4 => 'v1_3pre', 5 => 'v1_3', 6 => 'v1_4', 7 => 'v1_5', 8 => 'v1_6', 9 => 'v1_7', 10 => 'v1_8', 11 => 'v1_9', 12 => 'v1_10', 13 => 'v1_11', 14 => 'v1_12', 15 => 'v1_13', 16 => 'v1_14', 17 => 'v1_15', 18 => 'v1_16', 19 => 'v1_17', 20 => 'v1_18', 21 => 'v1_19', 22 => 'v1_20', 23 => 'v1_21', 99999 => 'Future'); + public $ValueMap = array('Null' => 0, 'v1_0' => 1, 'v1_1' => 2, 'v1_2' => 3, 'v1_3pre' => 4, 'v1_3' => 5, 'v1_4' => 6, 'v1_5' => 7, 'v1_6' => 8, 'v1_7' => 9, 'v1_8' => 10, 'v1_9' => 11, 'v1_10' => 12, 'v1_11' => 13, 'v1_12' => 14, 'v1_13' => 15, 'v1_14' => 16, 'v1_15' => 17, 'v1_16' => 18, 'v1_17' => 19, 'v1_18' => 20, 'v1_19' => 21, 'v1_20' => 22, 'v1_21' => 23, 'Future' => 99999); } /** @@ -22434,6 +22740,23 @@ class CPUPropertyTypeX86Collection extends VBox_EnumCollection protected $_interfaceName = "CPUPropertyTypeX86"; } +/** + * Generated VBoxWebService ENUM + */ +class CPUPropertyTypeARM extends VBox_Enum +{ + public $NameMap = array(0 => 'Null', 1 => 'HWVirt', 2 => 'GICITS'); + public $ValueMap = array('Null' => 0, 'HWVirt' => 1, 'GICITS' => 2); +} + +/** + * Generated VBoxWebService Enum Collection + */ +class CPUPropertyTypeARMCollection extends VBox_EnumCollection +{ + protected $_interfaceName = "CPUPropertyTypeARM"; +} + /** * Generated VBoxWebService ENUM */ @@ -22740,6 +23063,23 @@ class PartitionTypeCollection extends VBox_EnumCollection protected $_interfaceName = "PartitionType"; } +/** + * Generated VBoxWebService ENUM + */ +class TrackedObjectState extends VBox_Enum +{ + public $NameMap = array(0 => 'None', 1 => 'Alive', 2 => 'Deleted', 3 => 'Invalid'); + public $ValueMap = array('None' => 0, 'Alive' => 1, 'Deleted' => 2, 'Invalid' => 3); +} + +/** + * Generated VBoxWebService Enum Collection + */ +class TrackedObjectStateCollection extends VBox_EnumCollection +{ + protected $_interfaceName = "TrackedObjectState"; +} + /** * Generated VBoxWebService ENUM */ @@ -22881,8 +23221,8 @@ class CertificateVersionCollection extends VBox_EnumCollection */ class VirtualSystemDescriptionType extends VBox_Enum { - public $NameMap = array(1 => 'Ignore', 2 => 'OS', 3 => 'Name', 4 => 'Product', 5 => 'Vendor', 6 => 'Version', 7 => 'ProductUrl', 8 => 'VendorUrl', 9 => 'Description', 10 => 'License', 11 => 'Miscellaneous', 12 => 'CPU', 13 => 'Memory', 14 => 'HardDiskControllerIDE', 15 => 'HardDiskControllerSATA', 16 => 'HardDiskControllerSCSI', 17 => 'HardDiskControllerSAS', 18 => 'HardDiskImage', 19 => 'Floppy', 20 => 'CDROM', 21 => 'NetworkAdapter', 22 => 'USBController', 23 => 'SoundCard', 24 => 'SettingsFile', 25 => 'BaseFolder', 26 => 'PrimaryGroup', 27 => 'CloudInstanceShape', 28 => 'CloudDomain', 29 => 'CloudBootDiskSize', 30 => 'CloudBucket', 31 => 'CloudOCIVCN', 32 => 'CloudPublicIP', 33 => 'CloudProfileName', 34 => 'CloudOCISubnet', 35 => 'CloudKeepObject', 36 => 'CloudLaunchInstance', 37 => 'CloudInstanceId', 38 => 'CloudImageId', 39 => 'CloudInstanceState', 40 => 'CloudImageState', 41 => 'CloudInstanceDisplayName', 42 => 'CloudImageDisplayName', 43 => 'CloudOCILaunchMode', 44 => 'CloudPrivateIP', 45 => 'CloudBootVolumeId', 46 => 'CloudOCIVCNCompartment', 47 => 'CloudOCISubnetCompartment', 48 => 'CloudPublicSSHKey', 49 => 'BootingFirmware', 50 => 'CloudInitScriptPath', 51 => 'CloudCompartmentId', 52 => 'CloudShapeCpus', 53 => 'CloudShapeMemory', 54 => 'CloudInstanceMetadata', 55 => 'CloudInstanceFreeFormTags', 56 => 'CloudImageFreeFormTags', 60 => 'HardDiskControllerVirtioSCSI', 61 => 'HardDiskControllerNVMe'); - public $ValueMap = array('Ignore' => 1, 'OS' => 2, 'Name' => 3, 'Product' => 4, 'Vendor' => 5, 'Version' => 6, 'ProductUrl' => 7, 'VendorUrl' => 8, 'Description' => 9, 'License' => 10, 'Miscellaneous' => 11, 'CPU' => 12, 'Memory' => 13, 'HardDiskControllerIDE' => 14, 'HardDiskControllerSATA' => 15, 'HardDiskControllerSCSI' => 16, 'HardDiskControllerSAS' => 17, 'HardDiskImage' => 18, 'Floppy' => 19, 'CDROM' => 20, 'NetworkAdapter' => 21, 'USBController' => 22, 'SoundCard' => 23, 'SettingsFile' => 24, 'BaseFolder' => 25, 'PrimaryGroup' => 26, 'CloudInstanceShape' => 27, 'CloudDomain' => 28, 'CloudBootDiskSize' => 29, 'CloudBucket' => 30, 'CloudOCIVCN' => 31, 'CloudPublicIP' => 32, 'CloudProfileName' => 33, 'CloudOCISubnet' => 34, 'CloudKeepObject' => 35, 'CloudLaunchInstance' => 36, 'CloudInstanceId' => 37, 'CloudImageId' => 38, 'CloudInstanceState' => 39, 'CloudImageState' => 40, 'CloudInstanceDisplayName' => 41, 'CloudImageDisplayName' => 42, 'CloudOCILaunchMode' => 43, 'CloudPrivateIP' => 44, 'CloudBootVolumeId' => 45, 'CloudOCIVCNCompartment' => 46, 'CloudOCISubnetCompartment' => 47, 'CloudPublicSSHKey' => 48, 'BootingFirmware' => 49, 'CloudInitScriptPath' => 50, 'CloudCompartmentId' => 51, 'CloudShapeCpus' => 52, 'CloudShapeMemory' => 53, 'CloudInstanceMetadata' => 54, 'CloudInstanceFreeFormTags' => 55, 'CloudImageFreeFormTags' => 56, 'HardDiskControllerVirtioSCSI' => 60, 'HardDiskControllerNVMe' => 61); + public $NameMap = array(1 => 'Ignore', 2 => 'OS', 3 => 'Name', 4 => 'Product', 5 => 'Vendor', 6 => 'Version', 7 => 'ProductUrl', 8 => 'VendorUrl', 9 => 'Description', 10 => 'License', 11 => 'Miscellaneous', 12 => 'CPU', 13 => 'Memory', 14 => 'HardDiskControllerIDE', 15 => 'HardDiskControllerSATA', 16 => 'HardDiskControllerSCSI', 17 => 'HardDiskControllerSAS', 18 => 'HardDiskImage', 19 => 'Floppy', 20 => 'CDROM', 21 => 'NetworkAdapter', 22 => 'USBController', 23 => 'SoundCard', 24 => 'SettingsFile', 25 => 'BaseFolder', 26 => 'PrimaryGroup', 27 => 'CloudInstanceShape', 28 => 'CloudDomain', 29 => 'CloudBootDiskSize', 30 => 'CloudBucket', 31 => 'CloudOCIVCN', 32 => 'CloudPublicIP', 33 => 'CloudProfileName', 34 => 'CloudOCISubnet', 35 => 'CloudKeepObject', 36 => 'CloudLaunchInstance', 37 => 'CloudInstanceId', 38 => 'CloudImageId', 39 => 'CloudInstanceState', 40 => 'CloudImageState', 41 => 'CloudInstanceDisplayName', 42 => 'CloudImageDisplayName', 43 => 'CloudOCILaunchMode', 44 => 'CloudPrivateIP', 45 => 'CloudBootVolumeId', 46 => 'CloudOCIVCNCompartment', 47 => 'CloudOCISubnetCompartment', 48 => 'CloudPublicSSHKey', 49 => 'BootingFirmware', 50 => 'CloudInitScriptPath', 51 => 'CloudCompartmentId', 52 => 'CloudShapeCpus', 53 => 'CloudShapeMemory', 54 => 'CloudInstanceMetadata', 55 => 'CloudInstanceFreeFormTags', 56 => 'CloudImageFreeFormTags', 60 => 'HardDiskControllerVirtioSCSI', 61 => 'HardDiskControllerNVMe', 0x8000 => 'NVRAM'); + public $ValueMap = array('Ignore' => 1, 'OS' => 2, 'Name' => 3, 'Product' => 4, 'Vendor' => 5, 'Version' => 6, 'ProductUrl' => 7, 'VendorUrl' => 8, 'Description' => 9, 'License' => 10, 'Miscellaneous' => 11, 'CPU' => 12, 'Memory' => 13, 'HardDiskControllerIDE' => 14, 'HardDiskControllerSATA' => 15, 'HardDiskControllerSCSI' => 16, 'HardDiskControllerSAS' => 17, 'HardDiskImage' => 18, 'Floppy' => 19, 'CDROM' => 20, 'NetworkAdapter' => 21, 'USBController' => 22, 'SoundCard' => 23, 'SettingsFile' => 24, 'BaseFolder' => 25, 'PrimaryGroup' => 26, 'CloudInstanceShape' => 27, 'CloudDomain' => 28, 'CloudBootDiskSize' => 29, 'CloudBucket' => 30, 'CloudOCIVCN' => 31, 'CloudPublicIP' => 32, 'CloudProfileName' => 33, 'CloudOCISubnet' => 34, 'CloudKeepObject' => 35, 'CloudLaunchInstance' => 36, 'CloudInstanceId' => 37, 'CloudImageId' => 38, 'CloudInstanceState' => 39, 'CloudImageState' => 40, 'CloudInstanceDisplayName' => 41, 'CloudImageDisplayName' => 42, 'CloudOCILaunchMode' => 43, 'CloudPrivateIP' => 44, 'CloudBootVolumeId' => 45, 'CloudOCIVCNCompartment' => 46, 'CloudOCISubnetCompartment' => 47, 'CloudPublicSSHKey' => 48, 'BootingFirmware' => 49, 'CloudInitScriptPath' => 50, 'CloudCompartmentId' => 51, 'CloudShapeCpus' => 52, 'CloudShapeMemory' => 53, 'CloudInstanceMetadata' => 54, 'CloudInstanceFreeFormTags' => 55, 'CloudImageFreeFormTags' => 56, 'HardDiskControllerVirtioSCSI' => 60, 'HardDiskControllerNVMe' => 61, 'NVRAM' => 0x8000); } /** @@ -23046,6 +23386,23 @@ class RecordingRateControlModeCollection extends VBox_EnumCollection protected $_interfaceName = "RecordingRateControlMode"; } +/** + * Generated VBoxWebService ENUM + */ +class RecordingState extends VBox_Enum +{ + public $NameMap = array(0 => 'Unknown', 1 => 'Initializing', 2 => 'Started', 3 => 'Paused', 4 => 'Resumed', 5 => 'Finalizing', 6 => 'Stopped', 7 => 'Canceled', 8 => 'LimitReached', 9 => 'Error'); + public $ValueMap = array('Unknown' => 0, 'Initializing' => 1, 'Started' => 2, 'Paused' => 3, 'Resumed' => 4, 'Finalizing' => 5, 'Stopped' => 6, 'Canceled' => 7, 'LimitReached' => 8, 'Error' => 9); +} + +/** + * Generated VBoxWebService Enum Collection + */ +class RecordingStateCollection extends VBox_EnumCollection +{ + protected $_interfaceName = "RecordingState"; +} + /** * Generated VBoxWebService ENUM */ @@ -23102,8 +23459,8 @@ class GraphicsControllerTypeCollection extends VBox_EnumCollection */ class GraphicsFeature extends VBox_Enum { - public $NameMap = array(0 => 'None', 1 => 'Acceleration2DVideo', 2 => 'Acceleration3D'); - public $ValueMap = array('None' => 0, 'Acceleration2DVideo' => 1, 'Acceleration3D' => 2); + public $NameMap = array(0 => 'None', 2 => 'Acceleration3D'); + public $ValueMap = array('None' => 0, 'Acceleration3D' => 2); } /** @@ -23272,8 +23629,8 @@ class HostNetworkInterfaceStatusCollection extends VBox_EnumCollection */ class HostNetworkInterfaceType extends VBox_Enum { - public $NameMap = array(1 => 'Bridged', 2 => 'HostOnly'); - public $ValueMap = array('Bridged' => 1, 'HostOnly' => 2); + public $NameMap = array(0 => 'Invalid', 1 => 'Bridged', 2 => 'HostOnly'); + public $ValueMap = array('Invalid' => 0, 'Bridged' => 1, 'HostOnly' => 2); } /** @@ -24224,8 +24581,8 @@ class NetworkAttachmentTypeCollection extends VBox_EnumCollection */ class NetworkAdapterType extends VBox_Enum { - public $NameMap = array(0 => 'Null', 1 => 'Am79C970A', 2 => 'Am79C973', 3 => 'I82540EM', 4 => 'I82543GC', 5 => 'I82545EM', 6 => 'Virtio', 7 => 'Am79C960', 8 => 'NE2000', 9 => 'NE1000', 10 => 'WD8013', 11 => 'WD8003', 12 => 'ELNK2', 13 => 'ELNK1'); - public $ValueMap = array('Null' => 0, 'Am79C970A' => 1, 'Am79C973' => 2, 'I82540EM' => 3, 'I82543GC' => 4, 'I82545EM' => 5, 'Virtio' => 6, 'Am79C960' => 7, 'NE2000' => 8, 'NE1000' => 9, 'WD8013' => 10, 'WD8003' => 11, 'ELNK2' => 12, 'ELNK1' => 13); + public $NameMap = array(0 => 'Null', 1 => 'Am79C970A', 2 => 'Am79C973', 3 => 'I82540EM', 4 => 'I82543GC', 5 => 'I82545EM', 6 => 'Virtio', 7 => 'Am79C960', 8 => 'NE2000', 9 => 'NE1000', 10 => 'WD8013', 11 => 'WD8003', 12 => 'ELNK2', 13 => 'ELNK1', 14 => 'UsbNet'); + public $ValueMap = array('Null' => 0, 'Am79C970A' => 1, 'Am79C973' => 2, 'I82540EM' => 3, 'I82543GC' => 4, 'I82545EM' => 5, 'Virtio' => 6, 'Am79C960' => 7, 'NE2000' => 8, 'NE1000' => 9, 'WD8013' => 10, 'WD8003' => 11, 'ELNK2' => 12, 'ELNK1' => 13, 'UsbNet' => 14); } /** diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index 3b12ef8e..a5c9d355 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -500,6 +500,7 @@ public function remote_getEvents($args) { 'enabled' => $vrde->enabled, 'ports' => $vrde->getVRDEProperty('TCP/Ports'), 'netAddress' => $vrde->getVRDEProperty('TCP/Address'), + 'SecurityMethod' => $vrde->getVRDEProperty('Security/Method'), 'VNCPassword' => $vrde->getVRDEProperty('VNCPassword'), 'authType' => (string)$vrde->authType, 'authTimeout' => $vrde->authTimeout @@ -1875,8 +1876,8 @@ public function remote_machineSave($args) { $m->Platform->X86->setCPUProperty('LongMode', ($guestOS->is64Bit ? 1 : 0)); } - /* secureBootEnabled reported incorrectly by vboxwebsrv $oldFirmware = (string)$m->FirmwareSettings->firmwareType; + /* secureBootEnabled reported incorrectly by vboxwebsrv $oldSecureBoot = ($oldFirmware != 'BIOS' && $m->nonVolatileStore->uefiVariableStore != null ? $m->nonVolatileStore->uefiVariableStore->secureBootEnabled : false); */ @@ -1891,12 +1892,12 @@ public function remote_machineSave($args) { $m->Platform->X86->setCPUProperty('LongMode', (strpos($args['OSTypeId'],'_64') > - 1 ? 1 : 0)); $m->trustedPlatformModule->type = $args['trustedPlatformModule']['type']; - /* secureBootEnabled reported incorrectly by vboxwebsrv if($oldFirmware == 'BIOS' && $args['firmwareType'] == 'EFI') { $m->nonVolatileStore->initUefiVariableStore(0); $m->nonVolatileStore->uefiVariableStore->enrollOraclePlatformKey(); $m->nonVolatileStore->uefiVariableStore->enrollDefaultMsSignatures(); } + /* secureBootEnabled reported incorrectly by vboxwebsrv if($args['firmwareType'] != 'BIOS' && $oldSecureBoot != (bool)$args['secureBootEnabled']) { $m->nonVolatileStore->uefiVariableStore->secureBootEnabled = (bool)$args['secureBootEnabled']; } @@ -1937,12 +1938,13 @@ public function remote_machineSave($args) { * Enables the page sharing code. * @remarks This must match GMMR0Init; currently we only support page fusion on * all 64-bit hosts except Mac OS X */ - + /* Page Fusion does not work properly in VirtualBox 7.2 + * returns "Page fusion is only supported on 64-bit hosts" if($this->vbox->host->getProcessorFeature('LongMode')) { $m->pageFusionEnabled = $args['pageFusionEnabled']; } - + */ $m->Platform->X86->HPETEnabled = $args['HPETEnabled']; $m->setExtraData("VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled", $args['disableHostTimeSync']); $m->keyboardHIDType = $args['keyboardHIDType']; @@ -1961,7 +1963,6 @@ public function remote_machineSave($args) { $m->GraphicsAdapter->graphicsControllerType = $args['graphicsControllerType']; // Video - $m->GraphicsAdapter->setFeature("Acceleration2DVideo", $args['accelerate2DVideoEnabled']); $m->GraphicsAdapter->setFeature("Acceleration3D", $args['accelerate3DEnabled']); // VRDE settings @@ -1971,6 +1972,7 @@ public function remote_machineSave($args) { $m->VRDEServer->setVRDEProperty('TCP/Ports',$args['VRDEServer']['ports']); if(@$this->settings->enableAdvancedConfig) $m->VRDEServer->setVRDEProperty('TCP/Address',$args['VRDEServer']['netAddress']); + $m->VRDEServer->setVRDEProperty('Security/Method',$args['VRDEServer']['SecurityMethod']); $m->VRDEServer->setVRDEProperty('VNCPassword',$args['VRDEServer']['VNCPassword'] ? $args['VRDEServer']['VNCPassword'] : null); $m->VRDEServer->authType = ($args['VRDEServer']['authType'] ? $args['VRDEServer']['authType'] : 'Null'); $m->VRDEServer->authTimeout = $args['VRDEServer']['authTimeout']; @@ -2345,7 +2347,7 @@ public function remote_machineSave($args) { } // Exists in new? - if(count($args['USBDeviceFilters'][$i])) { + if($args['USBDeviceFilters'] && count($args['USBDeviceFilters'][$i])) { // Create filter $f = $m->USBDeviceFilters->createDeviceFilter($args['USBDeviceFilters'][$i]['name']); @@ -3714,6 +3716,7 @@ public function remote_machineGetRuntimeData($args) { 'enabled' => $vrde->enabled, 'ports' => $vrde->getVRDEProperty('TCP/Ports'), 'netAddress' => $vrde->getVRDEProperty('TCP/Address'), + 'SecurityMethod' => $vrde->getVRDEProperty('Security/Method'), 'VNCPassword' => $vrde->getVRDEProperty('VNCPassword'), 'authType' => (string)$vrde->authType, 'authTimeout' => $vrde->authTimeout, @@ -3860,6 +3863,9 @@ public function remote_machineCreate($args) { // Save and register $m->saveSettings(); + if((string)$m->FirmwareSettings->firmwareType == 'EFI') { + $m->nonVolatileStore->initUefiVariableStore(0); + } $this->vbox->registerMachine($m->handle); $vm = $m->id; $m->releaseRemote(); @@ -4278,7 +4284,6 @@ private function _machineGetDetails(&$m) { 'graphicsControllerType' => (string)$m->GraphicsAdapter->graphicsControllerType, 'pointingHIDType' => (string)$m->pointingHIDType, 'keyboardHIDType' => (string)$m->keyboardHIDType, - 'accelerate2DVideoEnabled' => $m->GraphicsAdapter->isFeatureEnabled("Acceleration2DVideo"), 'accelerate3DEnabled' => $m->GraphicsAdapter->isFeatureEnabled("Acceleration3D"), 'BIOSSettings' => array( 'ACPIEnabled' => $m->FirmwareSettings->ACPIEnabled, @@ -4293,11 +4298,13 @@ private function _machineGetDetails(&$m) { 'snapshotFolder' => $m->snapshotFolder, 'ClipboardMode' => (string)$m->ClipboardMode, 'monitorCount' => $m->GraphicsAdapter->monitorCount, - 'pageFusionEnabled' => $m->pageFusionEnabled, + // Page Fusion does not work properly in 7.2 + //'pageFusionEnabled' => $m->pageFusionEnabled, 'VRDEServer' => (!$m->VRDEServer ? null : array( 'enabled' => $m->VRDEServer->enabled, 'ports' => $m->VRDEServer->getVRDEProperty('TCP/Ports'), 'netAddress' => $m->VRDEServer->getVRDEProperty('TCP/Address'), + 'SecurityMethod' => $m->VRDEServer->getVRDEProperty('Security/Method'), 'VNCPassword' => $m->VRDEServer->getVRDEProperty('VNCPassword'), 'authType' => (string)$m->VRDEServer->authType, 'authTimeout' => $m->VRDEServer->authTimeout, diff --git a/endpoints/lib/vboxweb-7.1.wsdl b/endpoints/lib/vboxweb-7.2.wsdl similarity index 98% rename from endpoints/lib/vboxweb-7.1.wsdl rename to endpoints/lib/vboxweb-7.2.wsdl index 71502fcb..3bacb649 100644 --- a/endpoints/lib/vboxweb-7.1.wsdl +++ b/endpoints/lib/vboxweb-7.2.wsdl @@ -43,6 +43,7 @@ v1_18: 20 - v1_19: 21 - v1_20: 22 - + v1_21: 23 - Future: 99999 - --> @@ -70,6 +71,7 @@ + @@ -225,6 +227,18 @@ + + + + + + + + + + + + + + + + @@ -1163,6 +1192,7 @@ + + + + + + + + + + + + + + + - @@ -1496,11 +1550,13 @@ + @@ -2458,6 +2514,7 @@ WD8003: 11 - ELNK2: 12 - ELNK1: 13 - + UsbNet: 14 - --> @@ -2475,6 +2532,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5852,6 +6021,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6929,6 +7133,21 @@ + + + + + + + + + + + + + + + @@ -8833,6 +9052,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8922,6 +9169,19 @@ + + + + + + + + + + + + + @@ -9680,21 +9940,37 @@ - - + + + - + + + + + + + + + + + + + + + + @@ -21884,8 +22160,6 @@ - - @@ -26203,6 +26477,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -28342,18 +28756,18 @@ - - + + - + - + @@ -32231,6 +32645,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -33276,6 +33742,20 @@ + + + + + + + + + + + + + + + + + + + + @@ -34705,6 +35192,19 @@ messages for interface IRecordingSettings ************************************* --> + + + + + + + + + + + + + @@ -34746,6 +35246,13 @@ + + + + + + + - - - + + + + + + - - + + + + + + - @@ -42985,6 +43497,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -44311,12 +44888,12 @@ messages for interface IRecordingStateChangedEvent ************************************* --> - - - + + + - - + + @@ -46440,6 +47017,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -47362,6 +47987,18 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -48689,6 +49344,12 @@ + + + + + + - - - + + + + + + + + + @@ -54066,7 +54733,6 @@ - @@ -55953,6 +56619,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -57146,9 +57872,9 @@ operations in portType for interface IRecordingStateChangedEvent ************************************* --> - - - + + + @@ -59258,6 +59984,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -61494,6 +62340,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -64729,6 +65650,21 @@ + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + @@ -77720,7 +78671,6 @@ - @@ -82253,6 +83203,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -84688,7 +85788,7 @@ operations in portType for interface IRecordingStateChangedEvent ************************************* --> - + diff --git a/endpoints/lib/vboxwebService-7.1.wsdl b/endpoints/lib/vboxwebService-7.2.wsdl similarity index 91% rename from endpoints/lib/vboxwebService-7.1.wsdl rename to endpoints/lib/vboxwebService-7.2.wsdl index 0fb308f3..c4543c0e 100644 --- a/endpoints/lib/vboxwebService-7.1.wsdl +++ b/endpoints/lib/vboxwebService-7.2.wsdl @@ -5,7 +5,7 @@ Generator: src/VBox/Main/webservice/websrv-wsdl-service.xsl --> - + diff --git a/index.html b/index.html index b5052382..6c1281af 100644 --- a/index.html +++ b/index.html @@ -26,15 +26,11 @@ - - - - - - - - - + + + + + @@ -259,7 +255,7 @@ /* * Resize panes when the window changes sizes */ - $(window).resize(function(){ + $(window).on('resize', function(){ // Hide $('#vboxChooserResizePane').children().children().css({'display':'none'}); @@ -376,8 +372,8 @@ $('#vboxLogin').find('input[name=password]').val(''); $('#vboxLogin').dialog('open'); - if(!$('#vboxLogin').find('input[name=username]').val()) $('#vboxLogin').find('input[name=username]').focus(); - else $('#vboxLogin').find('input[name=password]').focus(); + if(!$('#vboxLogin').find('input[name=username]').val()) $('#vboxLogin').find('input[name=username]').trigger('focus'); + else $('#vboxLogin').find('input[name=password]').trigger('focus'); // Display error if we tried to log in if(tried) { @@ -412,7 +408,7 @@ if($.browser.webkit) heightadd = 5; else heightadd = 0; $('#vboxLogin').dialog({'closeOnEscape':false,'width':300,'height':'auto','buttons':buttons,'modal':true,'autoOpen':false,'classes':{'ui-dialog':'vboxDialogContent'},'title':' phpVirtualBox :: ' + trans('Log in','UIUsers')}); - $('#vboxLogin').find('input[name=username]').first().focus(); + $('#vboxLogin').find('input[name=username]').first().trigger('focus'); // Trick loader into not showing root pane again loader.hideRoot = false; diff --git a/js/chooser.js b/js/chooser.js index c754219f..5d5dedd2 100644 --- a/js/chooser.js +++ b/js/chooser.js @@ -90,7 +90,7 @@ var vboxChooser = { $(this).removeClass('vboxChooserDropTargetHoverRoot'); }); - $(window).resize(function(){ + $(window).on('resize', function(){ // Get anchor id and add / remove class var w = parseInt($(vboxChooser._anchor).innerWidth()); @@ -753,7 +753,7 @@ var vboxChooser = { }); // Open settings on dblclick - $(tbl).dblclick(function(){ + $(tbl).on('dblclick', function(){ if(vboxChooser._vmContextMenuObj.menuItems['settings'].enabled()) vboxChooser._vmContextMenuObj.menuItems['settings'].click(); }); @@ -1593,7 +1593,7 @@ var vboxChooser = { ) ); - $(el).children('div.vboxChooserGroupHeader').children('form').children('input').focus().select().blur(renameGroup); + $(el).children('div.vboxChooserGroupHeader').children('form').children('input').trigger('focus').trigger('select').on('blur', renameGroup); }, @@ -1885,7 +1885,7 @@ var vboxChooser = { ).append( $('
').addClass('vboxChooserGroupHeader').css({'display':(first ? 'none' : '')}) .attr({'title':gname}) - .dblclick(function() { + .on('dblclick', function() { // Already collapsed? var collapsed = $(this).closest('div.vboxChooserGroup').hasClass('vboxVMGroupCollapsed'); @@ -1950,18 +1950,18 @@ var vboxChooser = { ) .append( $('').addClass('vboxChooserGroupNameArrowLeft vboxChooserGroupNameArrowCollapse vboxArrowImage') - .mousedown(function(e){ + .on('mousedown', function(e){ e.stopPropagation(); e.preventDefault(); return false; - }).mouseup(function(){ + }).on('mouseup', function(){ $(this).closest('div.vboxChooserGroupHeader').trigger('dblclick'); }) ).append( $('').addClass('vboxChooserGroupNameArrowLeft vboxChooserGroupShowOnlyBack vboxArrowImage') - .click(function(e) { + .on('click', function(e) { e.stopPropagation(); e.preventDefault(); vboxChooser.showOnlyGroupElm(); @@ -1974,7 +1974,7 @@ var vboxChooser = { "" ).append( $('').addClass('vboxChooserGroupShowOnly vboxArrowImage') - .click(function(e){ + .on('click', function(e){ e.stopPropagation(); e.preventDefault(); vboxChooser.showOnlyGroupElm($(this).closest('div.vboxChooserGroup')); diff --git a/js/dialogs.js b/js/dialogs.js index 199dad52..2511517b 100644 --- a/js/dialogs.js +++ b/js/dialogs.js @@ -418,7 +418,7 @@ function vboxWizardNewVMDialog(vmgroup) { disk = $(self.form)[0].newVMDiskSelect.options[$(self.form)[0].newVMDiskSelect.selectedIndex].value; disk = vboxMedia.getMediumById(disk).location; } - var name = jQuery.trim($(self.form).find('[name=newVMName]').val()); + var name = String($(self.form).find('[name=newVMName]').val()).trim(); var ostype = $(self.form).find('[name=newVMOSType]').val(); var mem = parseInt($(self.form).find('[name=wizardNewVMSizeValue]').val()); @@ -451,7 +451,7 @@ function vboxWizardNewVMDialog(vmgroup) { }; // Name must exist - if(!jQuery.trim($(self.form).find('[name=newVMName]').val())) { + if(!String($(self.form).find('[name=newVMName]').val()).trim()) { $(self.form).find('[name=newVMName]').addClass('vboxRequired'); return; } @@ -485,7 +485,7 @@ function vboxWizardNewVMDialog(vmgroup) { // Recommended size var size = newVMOSTypesObj[$(self.form).find('[name=newVMOSType]').val()].recommendedHDD; - $.when(new vboxWizardNewHDDialog({'name':jQuery.trim($(self.form).find('[name=newVMName]').val()),'size':size,'group':vmgroup}).run()) + $.when(new vboxWizardNewHDDialog({'name':String($(self.form).find('[name=newVMName]').val()).trim(),'size':size,'group':vmgroup}).run()) .done(function(med){ $(self.form).find('[name=newVMDisk]').eq(2).trigger('click').prop('checked',true); @@ -571,7 +571,7 @@ function vboxWizardCloneVMDialog(args) { this.onFinish = function() { // Get parameters - var name = jQuery.trim($(self.form).find('[name=machineCloneName]').val()); + var name = String($(self.form).find('[name=machineCloneName]').val()).trim(); var src = self.args.vm.id; var snapshot = self.args.snapshot; var allNetcards = $(self.form).find('[name=vboxCloneReinitNetwork]').prop('checked'); @@ -968,7 +968,7 @@ function vboxWizardCopyHDDialog(suggested) { var fsplit = $(self.form).find('[name=newHardDiskSplit]').prop('checked') && vboxMedia.formatSupportsSplit(format); - var loc = jQuery.trim($(self.form).find('[name=wizardCopyHDLocation]').val()); + var loc = String($(self.form).find('[name=wizardCopyHDLocation]').val()).trim(); if(!loc) { $(self.form).find('[name=wizardCopyHDLocation]').addClass('vboxRequired'); return; @@ -1309,7 +1309,7 @@ function vboxVMsettingsDialog(vm,pane) { // Validate if(!vboxSettingsGeneralValidate()) { - $('#vboxSettingsMenuList').children('li:eq(0)').first().click(); + $('#vboxSettingsMenuList').children('li:eq(0)').first().trigger('click'); $('#vboxSettingsPane-General').tabs('option','active', 3); encMediaSettings.reject(); return encMediaSettings; @@ -1435,7 +1435,7 @@ function vboxVMsettingsDialog(vm,pane) { // Always run this .always(function(){ // No longer watch for changed VM settings - $('#vboxPane').unbind('vboxEvents',machineSettingsChanged); + $('#vboxPane').off('vboxEvents',machineSettingsChanged); }) @@ -1610,7 +1610,7 @@ function vboxSettingsDialog(title,panes,data,pane,icon,langContext,presave) { if(panes[i].disabled) continue; // Menu item - $('
  • ').html('
    '+trans(panes[i].label,langContext)+'
    ').data(panes[i]).click(function(){ + $('
  • ').html('
    '+trans(panes[i].label,langContext)+'
    ').data(panes[i]).on('click', function(){ $('#vboxSettingsTitle').html(trans($(this).data('label'),langContext)); @@ -1709,7 +1709,7 @@ function vboxSettingsDialog(title,panes,data,pane,icon,langContext,presave) { } i-=offset; if(i >= panes.length) i = 0; - $('#vboxSettingsMenuList').children('li:eq('+i+')').first().click().each(function(){ + $('#vboxSettingsMenuList').children('li:eq('+i+')').first().trigger('click').each(function(){ if(tab !== undefined) { // Check for out of scope tab tab = Math.min(($('#vboxSettingsPane-'+$(this).data('name')).children('ul').first().children().length-1), parseInt(tab)); diff --git a/js/jquery-3.7.1.min.js b/js/jquery-3.7.1.min.js deleted file mode 100644 index 7f37b5d9..00000000 --- a/js/jquery-3.7.1.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 00&&t-1 in e)}var y=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var r,i=(n=n||y).createElement("script");for(r in i.text=e,m)t&&t[r]&&(i[r]=t[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var b="4.0.0",w=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:b,constructor:T,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+E+")"+E+"*"),q=RegExp(E+"|>"),O=/[+~]/,L=y.documentElement,H=L.matches||L.msMatchesSelector;function P(){var e=[];function t(n,r){return e.push(n+" ")>T.expr.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function R(e){return e&&void 0!==e.getElementsByTagName&&e}var M="\\["+E+"*("+A+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+A+"))|)"+E+"*\\]",W=":("+A+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",$={ID:RegExp("^#("+A+")"),CLASS:RegExp("^\\.("+A+")"),TAG:RegExp("^("+A+"|[*])"),ATTR:RegExp("^"+M),PSEUDO:RegExp("^"+W),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i")},I=new RegExp(W),F=RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),B=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))};function _(e){return e.replace(F,B)}function U(e){T.error("Syntax error, unrecognized expression: "+e)}var X=RegExp("^"+E+"*,"+E+"*"),z=P();function Y(e,t){var n,r,i,o,a,s,u,l=z[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=T.expr.preFilter;while(a){for(o in(!n||(r=X.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=N.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(D," ")}),a=a.slice(n.length)),$)(r=T.expr.match[o].exec(a))&&(!u[o]||(r=u[o](r)))&&(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?U(e):z(e,s).slice(0)}function G(e){for(var t=0,n=e.length,r="";t1)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]),void 0!==n)?null===n||!1===n&&0!==t.toLowerCase().indexOf("aria-")?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=e.getAttribute(t))?void 0:r},attrHooks:{},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Q);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),k&&(T.attrHooks.type={set:function(e,t){if("radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}});var J=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function K(e,t){return t?"\0"===e?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(J,K)};var Z=n.sort,ee=n.splice;function et(e,t){if(e===t)return en=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)?e==y||e.ownerDocument==y&&T.contains(y,e)?-1:t==y||t.ownerDocument==y&&T.contains(y,t)?1:0:4&n?-1:1}T.uniqueSort=function(e){var t,n=[],r=0,i=0;if(en=!1,Z.call(e,et),en){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)ee.call(e,n[r],1)}return e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(i.apply(this)))};var en,er,ei,eo,ea,es,eu=0,el=0,ec=P(),ef=P(),ep=P(),ed=RegExp(E+"+","g"),eh=RegExp("^"+A+"$"),eg=T.extend({needsContext:RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},$),ev=/^(?:input|select|textarea|button)$/i,ey=/^h\d$/i,em=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ex=function(){eE()},eb=eS(function(e){return!0===e.disabled&&C(e,"fieldset")},{dir:"parentNode",next:"legend"});function ew(e,t,n,r){var i,o,s,u,l,c,f,p=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!r&&(eE(t),t=t||eo,es)){if(11!==d&&(l=em.exec(e))){if(i=l[1]){if(9===d)return(s=t.getElementById(i))&&a.call(n,s),n;else if(p&&(s=p.getElementById(i))&&T.contains(t,s))return a.call(n,s),n}else if(l[2])return a.apply(n,t.getElementsByTagName(e)),n;else if((i=l[3])&&t.getElementsByClassName)return a.apply(n,t.getElementsByClassName(i)),n}if(!ep[e+" "]&&(!S||!S.test(e))){if(f=e,p=t,1===d&&(q.test(e)||N.test(e))){((p=O.test(e)&&R(t.parentNode)||t)!=t||k)&&((u=t.getAttribute("id"))?u=T.escapeSelector(u):t.setAttribute("id",u=T.expando)),o=(c=Y(e)).length;while(o--)c[o]=(u?"#"+u:":scope")+" "+G(c[o]);f=c.join(",")}try{return a.apply(n,p.querySelectorAll(f)),n}catch(t){ep(e,!0)}finally{u===T.expando&&t.removeAttribute("id")}}}return eq(e.replace(D,"$1"),t,n,r)}function eT(e){return e[T.expando]=!0,e}function eC(e){return function(t){if("form"in t){if(t.parentNode&&!1===t.disabled){if("label"in t)if("label"in t.parentNode)return t.parentNode.disabled===e;else return t.disabled===e;return t.isDisabled===e||!e!==t.isDisabled&&eb(t)===e}return t.disabled===e}return"label"in t&&t.disabled===e}}function ej(e){return eT(function(t){return t*=1,eT(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function eE(e){var t,n=e?e.ownerDocument||e:y;n!=eo&&9===n.nodeType&&(ea=(eo=n).documentElement,es=!T.isXMLDoc(eo),k&&y!=eo&&(t=eo.defaultView)&&t.top!==t&&t.addEventListener("unload",ex))}for(er in ew.matches=function(e,t){return ew(e,null,null,t)},ew.matchesSelector=function(e,t){if(eE(e),es&&!ep[t+" "]&&(!S||!S.test(t)))try{return H.call(e,t)}catch(e){ep(t,!0)}return ew(t,eo,null,[e]).length>0},T.expr={cacheLength:50,createPseudo:eT,match:eg,find:{ID:function(e,t){if(void 0!==t.getElementById&&es){var n=t.getElementById(e);return n?[n]:[]}},TAG:function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},CLASS:function(e,t){if(void 0!==t.getElementsByClassName&&es)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=_(e[1]),e[3]=_(e[3]||e[4]||e[5]||""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||U(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&U(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&I.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{ID:function(e){var t=_(e);return function(e){return e.getAttribute("id")===t}},TAG:function(e){var t=_(e).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=ec[e+" "];return t||(t=RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&ec(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=T.attr(r,e);return null==i?"!="===t:!t||((i+="","="===t)?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(ed," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,m=!1;if(g){if(o){while(h){f=t;while(f=f[h])if(s?C(f,v):1===f.nodeType)return!1;d=h="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&y){m=(p=(l=(c=g[T.expando]||(g[T.expando]={}))[e]||[])[0]===eu&&l[1])&&l[2],f=p&&g.childNodes[p];while(f=++p&&f&&f[h]||(m=p=0)||d.pop())if(1===f.nodeType&&++m&&f===t){c[e]=[eu,p,m];break}}else if(y&&(m=p=(l=(c=t[T.expando]||(t[T.expando]={}))[e]||[])[0]===eu&&l[1]),!1===m){while(f=++p&&f&&f[h]||(m=p=0)||d.pop())if((s?C(f,v):1===f.nodeType)&&++m&&(y&&((c=f[T.expando]||(f[T.expando]={}))[e]=[eu,m]),f===t))break}return(m-=i)===r||m%r==0&&m/r>=0}}},PSEUDO:function(e,t){var n=T.expr.pseudos[e]||T.expr.setFilters[e.toLowerCase()]||U("unsupported pseudo: "+e);return n[T.expando]?n(t):n}},pseudos:{not:eT(function(e){var t=[],n=[],r=eN(e.replace(D,"$1"));return r[T.expando]?eT(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:eT(function(e){return function(t){return ew(e,t).length>0}}),contains:eT(function(e){return e=_(e),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}}),lang:eT(function(e){return eh.test(e||"")||U("unsupported lang: "+e),e=_(e).toLowerCase(),function(t){var n;do if(n=es?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===ea},focus:function(e){return e===eo.activeElement&&eo.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:eC(!1),disabled:eC(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return k&&e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.expr.pseudos.empty(e)},header:function(e){return ey.test(e.nodeName)},input:function(e){return ev.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){return C(e,"input")&&"text"===e.type},first:ej(function(){return[0]}),last:ej(function(e,t){return[t-1]}),eq:ej(function(e,t,n){return[n<0?n+t:n]}),even:ej(function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e}),gt:ej(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function eA(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s-1},l,!0),d=[function(e,t,r){var i=!u&&(r||t!=ei)||((n=t).nodeType?f(e,t,r):p(e,t,r));return n=null,i}];c-1&&(e[f]=!(u[f]=d))}}else h=eA(h===u?h.splice(y,h.length):h),o?o(null,u,h,c):a.apply(u,h)})}(c>1&&eD(d),c>1&&G(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(D,"$1"),r,c0,r=l.length>0,i=function(e,t,i,o,s){var c,f,p,d=0,h="0",g=e&&[],v=[],y=ei,m=e||r&&T.expr.find.TAG("*",s),x=eu+=null==y?1:Math.random()||.1;for(s&&(ei=t==eo||t||s);null!=(c=m[h]);h++){if(r&&c){f=0,t||c.ownerDocument==eo||(eE(c),i=!es);while(p=l[f++])if(p(c,t||eo,i)){a.call(o,c);break}s&&(eu=x)}n&&((c=!p&&c)&&d--,e&&g.push(c))}if(d+=h,n&&h!==d){f=0;while(p=u[f++])p(g,v,t,i);if(e){if(d>0)while(h--)g[h]||v[h]||(v[h]=j.call(o));v=eA(v)}a.apply(o,v),s&&!e&&v.length>0&&d+u.length>1&&T.uniqueSort(o)}return s&&(eu=x,ei=y),g},n?eT(i):i))).selector=e}return c}function eq(e,t,n,r){var i,o,s,u,l,c="function"==typeof e&&e,f=!r&&Y(e=c.selector||e);if(n=n||[],1===f.length){if((o=f[0]=f[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&es&&T.expr.relative[o[1].type]){if(!(t=(T.expr.find.ID(_(s.matches[0]),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=eg.needsContext.test(e)?0:o.length;while(i--){if(s=o[i],T.expr.relative[u=s.type])break;if((l=T.expr.find[u])&&(r=l(_(s.matches[0]),O.test(o[0].type)&&R(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&G(o)))return a.apply(n,r),n;break}}}return(c||eN(e,f))(r,t,!es,n,!t||O.test(e)&&R(t.parentNode)||t),n}function eO(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r}function eL(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}ek.prototype=T.expr.pseudos,T.expr.setFilters=new ek,eE(),T.find=ew,ew.compile=eN,ew.select=eq,ew.setDocument=eE,ew.tokenize=Y;var eH=T.expr.match.needsContext,eP=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function eR(e){return"<"===e[0]&&">"===e[e.length-1]&&e.length>=3}function eM(e,t,n){return"function"==typeof t?T.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?T.grep(e,function(e){return e===t!==n}):"string"!=typeof t?T.grep(e,function(e){return s.call(t,e)>-1!==n}):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return(n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType)?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(eM(this,e||[],!1))},not:function(e){return this.pushStack(eM(this,e||[],!0))},is:function(e){return!!eM(this,"string"==typeof e&&eH.test(e)?T(e):e||[],!1).length}});var eW,e$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t){var n,r;if(!e)return this;if(e.nodeType)return this[0]=e,this.length=1,this;if("function"==typeof e)return void 0!==eW.ready?eW.ready(e):e(T);if(eR(n=e+""))n=[null,e,null];else{if("string"!=typeof e)return T.makeArray(e,this);n=e$.exec(e)}if(n&&(n[1]||!t))if(!n[1])return(r=y.getElementById(n[2]))&&(this[0]=r,this.length=1),this;else{if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),eP.test(n[1])&&T.isPlainObject(t))for(n in t)"function"==typeof this[n]?this[n](t[n]):this.attr(n,t[n]);return this}return!t||t.jquery?(t||eW).find(e):this.constructor(t).find(e)}).prototype=T.fn,eW=T(y);var eI=/^(?:parents|prev(?:Until|All))/,eF={children:!0,contents:!0,next:!0,prev:!0};function eB(e,t){while((e=e[t])&&1!==e.nodeType);return e}function e_(e){return e}function eU(e){throw e}function eX(e,t,n,r){var i;try{e&&"function"==typeof(i=e.promise)?i.call(e).done(t).fail(n):e&&"function"==typeof(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n(e)}}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(T(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return eO(e,"parentNode")},parentsUntil:function(e,t,n){return eO(e,"parentNode",n)},next:function(e){return eB(e,"nextSibling")},prev:function(e){return eB(e,"previousSibling")},nextAll:function(e){return eO(e,"nextSibling")},prevAll:function(e){return eO(e,"previousSibling")},nextUntil:function(e,t,n){return eO(e,"nextSibling",n)},prevUntil:function(e,t,n){return eO(e,"previousSibling",n)},siblings:function(e){return eL((e.parentNode||{}).firstChild,e)},children:function(e){return eL(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(eF[e]||T.uniqueSort(i),eI.test(e)&&i.reverse()),this.pushStack(i)}}),T.Callbacks=function(e){e="string"==typeof e?(t=e,n={},T.each(t.match(Q)||[],function(e,t){n[t]=!0}),n):T.extend({},e);var t,n,r,i,o,a,s=[],u=[],l=-1,c=function(){for(a=a||e.once,o=r=!0;u.length;l=-1){i=u.shift();while(++l-1)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?T.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=i="",this},disabled:function(){return!s},lock:function(){return a=u=[],i||r||(s=i=""),this},locked:function(){return!!a},fireWith:function(e,t){return!a&&(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred(function(t){T.each(n,function(n,r){var i="function"==typeof e[r[4]]&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t=o&&(r!==eU&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(T.Deferred.getErrorHook&&(c.error=T.Deferred.getErrorHook()),e.setTimeout(c))}}return T.Deferred(function(e){n[0][3].add(a(0,e,"function"==typeof i?i:e_,e.notifyWith)),n[1][3].add(a(0,e,"function"==typeof t?t:e_)),n[2][3].add(a(0,e,"function"==typeof r?r:eU))}).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},o={};return T.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),a=T.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(eX(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||"function"==typeof(o[n]&&o[n].then)))return a.then();while(n--)eX(o[n],s(n),a.reject);return a.promise()}});var ez=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){t&&ez.test(t.name)&&e.console.warn("jQuery.Deferred exception",t,n)},T.readyException=function(t){e.setTimeout(function(){throw t})};var eY=T.Deferred();function eG(){y.removeEventListener("DOMContentLoaded",eG),e.removeEventListener("load",eG),T.ready()}T.fn.ready=function(e){return eY.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||eY.resolveWith(y,[T]))}}),T.ready.then=eY.then,"loading"!==y.readyState?e.setTimeout(T.ready):(y.addEventListener("DOMContentLoaded",eG),e.addEventListener("load",eG));var eV=/-([a-z])/g;function eQ(e,t){return t.toUpperCase()}function eJ(e){return e.replace(eV,eQ)}function eK(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function eZ(){this.expando=T.expando+eZ.uid++}eZ.uid=1,eZ.prototype={cache:function(e){var t=e[this.expando];return!t&&(t=Object.create(null),eK(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[eJ(t)]=n;else for(r in t)i[eJ(r)]=t[r];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][eJ(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(eJ):(t=eJ(t))in r?[t]:t.match(Q)||[]).length;while(n--)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var e0=new eZ,e1=new eZ,e2=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,e3=/[A-Z]/g;function e4(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(e3,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{i=n,n="true"===i||"false"!==i&&("null"===i?null:i===+i+""?+i:e2.test(i)?JSON.parse(i):i)}catch(e){}e1.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return e1.hasData(e)||e0.hasData(e)},data:function(e,t,n){return e1.access(e,t,n)},removeData:function(e,t){e1.remove(e,t)},_data:function(e,t,n){return e0.access(e,t,n)},_removeData:function(e,t){e0.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=e1.get(o),1===o.nodeType&&!e0.get(o,"hasDataAttrs"))){n=a.length;while(n--)a[n]&&0===(r=a[n].name).indexOf("data-")&&e4(o,r=eJ(r.slice(5)),i[r]);e0.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){e1.set(this,e)}):V(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=e1.get(o,e))||void 0!==(n=e4(o,e))?n:void 0;this.each(function(){e1.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){e1.remove(this,e)})}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=e0.get(e,t),n&&(!r||Array.isArray(n)?r=e0.set(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){T.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return e0.get(e,n)||e0.set(e,n,{empty:T.Callbacks("once memory").add(function(){e0.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(e,t){var n=2;return("string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,tc={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};function tf(e,t){var r;return(r=void 0!==e.getElementsByTagName?n.slice.call(e.getElementsByTagName(t||"*")):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t))?T.merge([e],r):r}tc.tbody=tc.tfoot=tc.colgroup=tc.caption=tc.thead,tc.th=tc.td;var tp=/^$|^module$|\/(?:java|ecma)script/i;function td(e,t){for(var n=0,r=e.length;n-1)s=s.appendChild(t.createElement(u[c]));s.innerHTML=T.htmlPrefilter(a),T.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(t.createTextNode(a));f.textContent="",d=0;while(a=p[d++]){if(i&&T.inArray(a,i)>-1){o&&o.push(a);continue}if(l=ts(a),s=tf(f.appendChild(a),"script"),l&&td(s),r){c=0;while(a=s[c++])tp.test(a.type||"")&&r.push(a)}}return f}function tv(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ty(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function tm(e,t,n,r){t=o(t);var i,a,s,u,l,c,f=0,p=e.length,d=p-1,h=t[0];if("function"==typeof h)return e.each(function(i){var o=e.eq(i);t[0]=h.call(this,i,o.html()),tm(o,t,n,r)});if(p&&(a=(i=tg(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(u=(s=T.map(tf(i,"script"),tv)).length;f=1)){for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(n=0,o=[],a={};n-1:T.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}}return l=this,u0&&td(a,!u&&tf(e,"script")),s},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(eK(n)){if(t=n[e0.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[e0.expando]=void 0}n[e1.expando]&&(n[e1.expando]=void 0)}}}),T.fn.extend({detach:function(e){return tD(this,e,!0)},remove:function(e){return tD(this,e)},text:function(e){return V(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return tm(this,arguments,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&tk(this,e).appendChild(e)})},prepend:function(){return tm(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=tk(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return tm(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return tm(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(tf(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return V(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!tE.test(e)&&!tc[(tl.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;nT.inArray(this,e)&&(T.cleanData(tf(this)),n&&n.replaceChild(t,this))},e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),T(i[s])[t](n),a.apply(r,n);return this.pushStack(r)}});var tA=RegExp("^("+e5+")(?!px)[a-z%]+$","i"),tN=/^--/;function tq(t){var n=t.ownerDocument.defaultView;return n||(n=e),n.getComputedStyle(t)}function tO(e,t,n){var r,i=tN.test(t);return(n=n||tq(e))&&(r=n.getPropertyValue(t)||n[t],i&&r&&(r=r.replace(D,"$1")||void 0),""!==r||ts(e)||(r=T.style(e,t))),void 0!==r?r+"":r}var tL=["Webkit","Moz","ms"],tH=y.createElement("div").style;function tP(e){return e in tH?e:function(e){var t=e[0].toUpperCase()+e.slice(1),n=tL.length;while(n--)if((e=tL[n]+t)in tH)return e}(e)||e}var tR,tM,tW=y.createElement("table");function t$(){if(tW&&tW.style){var t,n=y.createElement("col"),r=y.createElement("tr"),i=y.createElement("td");if(tW.style.cssText="position:absolute;left:-11111px;border-collapse:separate;border-spacing:0",r.style.cssText="box-sizing:content-box;border:1px solid;height:1px",i.style.cssText="height:9px;width:9px;padding:0",n.span=2,L.appendChild(tW).appendChild(n).parentNode.appendChild(r).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),0===tW.offsetWidth)return void L.removeChild(tW);t=e.getComputedStyle(r),tM=k||18===Math.round(parseFloat(e.getComputedStyle(n).width)),tR=Math.round(parseFloat(t.height)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))===r.offsetHeight,L.removeChild(tW),tW=null}}T.extend(d,{reliableTrDimensions:function(){return t$(),tR},reliableColDimensions:function(){return t$(),tM}});var tI={position:"absolute",visibility:"hidden",display:"block"},tF={letterSpacing:"0",fontWeight:"400"};function tB(e,t,n){var r=e9.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function t_(e,t,n,r,i,o){var a=+("width"===t),s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=T.css(e,n+e6[a],!0,i)),r?("content"===n&&(u-=T.css(e,"padding"+e6[a],!0,i)),"margin"!==n&&(u-=T.css(e,"border"+e6[a]+"Width",!0,i))):(u+=T.css(e,"padding"+e6[a],!0,i),"padding"!==n?u+=T.css(e,"border"+e6[a]+"Width",!0,i):s+=T.css(e,"border"+e6[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function tU(e,t,n){var r=tq(e),i=(k||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,a=tO(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(tA.test(a)){if(!n)return a;a="auto"}return("auto"===a||k&&i||!d.reliableColDimensions()&&C(e,"col")||!d.reliableTrDimensions()&&C(e,"tr"))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+t_(e,t,n||(i?"border":"content"),o,r,a)+"px"}function tX(e,t,n,r,i){return new tX.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ti(t),u=tN.test(t),l=e.style;if(u||(t=tP(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"==(o=typeof n)&&(i=e9.exec(n))&&i[1]&&(n=tn(e,t,i),o="number"),null!=n&&n==n)"number"===o&&(n+=i&&i[3]||(tt(s)?"px":"")),k&&""===n&&0===t.indexOf("background")&&(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n)}},css:function(e,t,n,r){var i,o,a,s=ti(t);return(tN.test(t)||(t=tP(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=tO(e,t,r)),"normal"===i&&t in tF&&(i=tF[t]),""===n||n)?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return"none"===T.css(e,"display")?function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r}(e,tI,function(){return tU(e,t,r)}):tU(e,t,r)},set:function(e,n,r){var i,o=tq(e),a=r&&"border-box"===T.css(e,"boxSizing",!1,o),s=r?t_(e,t,r,a,o):0;return s&&(i=e9.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),tB(e,n,s)}}}),T.each({margin:"",padding:"",border:"Width"},function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+e6[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=tB)}),T.fn.extend({css:function(e,t){return V(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=tq(e),i=t.length;a1)}}),T.Tween=tX,tX.prototype={constructor:tX,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(tt(n)?"px":"")},cur:function(){var e=tX.propHooks[this.prop];return e&&e.get?e.get(this):tX.propHooks._default.get(this)},run:function(e){var t,n=tX.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tX.propHooks._default.set(this),this}},tX.prototype.init.prototype=tX.prototype,tX.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1===e.elem.nodeType&&(T.cssHooks[e.prop]||null!=e.elem.style[tP(e.prop)])?T.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},T.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=tX.prototype.init,T.fx.step={};var tz,tY,tG=/^(?:toggle|show|hide)$/,tV=/queueHooks$/;function tQ(){return e.setTimeout(function(){tz=void 0}),tz=Date.now()}function tJ(e,t){var n,r=0,i={height:e};for(t=+!!t;r<4;r+=2-t)i["margin"+(n=e6[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function tK(e,t,n){for(var r,i=(tZ.tweeners[t]||[]).concat(tZ.tweeners["*"]),o=0,a=i.length;o1)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return(1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n)?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttribute("tabindex");return t?parseInt(t,10):t0.test(e.nodeName)||t1.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),k&&(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,n,r,i,o,a;return"function"==typeof e?this.each(function(t){T(this).addClass(e.call(this,t,t3(this)))}):(t=t4(e)).length?this.each(function(){if(r=t3(this),n=1===this.nodeType&&" "+t2(r)+" "){for(o=0;on.indexOf(" "+i+" ")&&(n+=i+" ");r!==(a=t2(n))&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,i,o,a;return"function"==typeof e?this.each(function(t){T(this).removeClass(e.call(this,t,t3(this)))}):arguments.length?(t=t4(e)).length?this.each(function(){if(r=t3(this),n=1===this.nodeType&&" "+t2(r)+" "){for(o=0;o-1)n=n.replace(" "+i+" "," ")}r!==(a=t2(n))&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o;return"function"==typeof e?this.each(function(n){T(this).toggleClass(e.call(this,n,t3(this),t),t)}):"boolean"==typeof t?t?this.addClass(e):this.removeClass(e):(n=t4(e)).length?this.each(function(){for(i=0,o=T(this);i-1)return!0;return!1}}),T.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length)return i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:null==(n=i.value)?"":n:void 0;return r="function"==typeof e,this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,function(e){return null==e?"":e+""})),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})}}),T.extend({valHooks:{select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k&&(T.valHooks.option={get:function(e){var t=e.getAttribute("value");return null!=t?t:t2(T.text(e))}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}}});var t5=/^(?:focusinfocus|focusoutblur)$/,t9=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(t,n,r,i){var o,a,s,u,l,f,p,d,h=[r||y],v=c.call(t,"type")?t.type:t,m=c.call(t,"namespace")?t.namespace.split("."):[];if((a=d=s=r=r||y,!(3===r.nodeType||8===r.nodeType||t5.test(v+T.event.triggered)))&&(v.indexOf(".")>-1&&(v=(m=v.split(".")).shift(),m.sort()),l=0>v.indexOf(":")&&"on"+v,(t=t[T.expando]?t:new T.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:T.makeArray(n,[t]),p=T.event.special[v]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!g(r)){for(u=p.delegateType||v,!t5.test(u+v)&&(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||y)&&h.push(s.defaultView||s.parentWindow||e)}o=0;while((a=h[o++])&&!t.isPropagationStopped())d=a,t.type=o>1?u:p.bindType||v,(f=(e0.get(a,"events")||Object.create(null))[t.type]&&e0.get(a,"handle"))&&f.apply(a,n),(f=l&&a[l])&&f.apply&&eK(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=v,!i&&!t.isDefaultPrevented()&&(!p._default||!1===p._default.apply(h.pop(),n))&&eK(r)&&l&&"function"==typeof r[v]&&!g(r)&&((s=r[l])&&(r[l]=null),T.event.triggered=v,t.isPropagationStopped()&&d.addEventListener(v,t9),r[v](),t.isPropagationStopped()&&d.removeEventListener(v,t9),T.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var t6=e.location,t8={guid:Date.now()},t7=/\?/;T.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=new e.DOMParser().parseFromString(t,"text/xml")}catch(e){}return r=n&&n.getElementsByTagName("parsererror")[0],(!n||r)&&T.error("Invalid XML: "+(r?T.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var ne=/\[\]$/,nt=/\r?\n/g,nn=/^(?:submit|button|image|reset|file)$/i,nr=/^(?:input|select|textarea|keygen)/i;T.param=function(e,t){var n,r=[],i=function(e,t){var n="function"==typeof t?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){i(this.name,this.value)});else for(n in e)!function e(t,n,r,i){var o;if(Array.isArray(n))T.each(n,function(n,o){r||ne.test(t)?i(t,o):e(t+"["+("object"==typeof o&&null!=o?n:"")+"]",o,r,i)});else if(r||"object"!==h(n))i(t,n);else for(o in n)e(t+"["+o+"]",n[o],r,i)}(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&nr.test(this.nodeName)&&!nn.test(e)&&(this.checked||!tx.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(nt,"\r\n")}}):{name:t.name,value:n.replace(nt,"\r\n")}}).get()}});var ni=/%20/g,no=/#.*$/,na=/([?&])_=[^&]*/,ns=/^(.*?):[ \t]*([^\r\n]*)$/mg,nu=/^(?:GET|HEAD)$/,nl=/^\/\//,nc={},nf={},np="*/".concat("*"),nd=y.createElement("a");function nh(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Q)||[];if("function"==typeof n)while(r=o[i++])"+"===r[0]?(e[r=r.slice(1)||"*"]=e[r]||[]).unshift(n):(e[r]=e[r]||[]).push(n)}}function ng(e,t,n,r){var i={},o=e===nf;function a(s){var u;return i[s]=!0,T.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function nv(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}nd.href=t6.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:t6.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(t6.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":np,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?nv(nv(e,T.ajaxSettings),t):nv(T.ajaxSettings,e)},ajaxPrefilter:nh(nc),ajaxTransport:nh(nf),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,a,s,u,l,c,f,p,d=T.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?T(h):T.event,v=T.Deferred(),m=T.Callbacks("once memory"),x=d.statusCode||{},b={},w={},C="canceled",j={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a){a={};while(t=ns.exec(o))a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(b[e=w[e.toLowerCase()]=w[e.toLowerCase()]||e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)j.always(e[j.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),E(0,t),this}};if(v.promise(j),d.url=((t||d.url||t6.href)+"").replace(nl,t6.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Q)||[""],null==d.crossDomain){u=y.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=nd.protocol+"//"+nd.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(ng(nc,d,n,j),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),l)return j;for(f in(c=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!nu.test(d.type),i=d.url.replace(no,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(ni,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(t7.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(na,"$1"),p=(t7.test(i)?"&":"?")+"_="+t8.guid+++p),d.url=i+p),d.ifModified&&(T.lastModified[i]&&j.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&j.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&j.setRequestHeader("Content-Type",d.contentType),j.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+np+"; q=0.01":""):d.accepts["*"]),d.headers)j.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,j,d)||l))return j.abort();if(C="abort",m.add(d.complete),j.done(d.success),j.fail(d.error),r=ng(nf,d,n,j)){if(j.readyState=1,c&&g.trigger("ajaxSend",[j,d]),l)return j;d.async&&d.timeout>0&&(s=e.setTimeout(function(){j.abort("timeout")},d.timeout));try{l=!1,r.send(b,E)}catch(e){if(l)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,a,u){var f,p,y,b,w,C=n;!l&&(l=!0,s&&e.clearTimeout(s),r=void 0,o=u||"",j.readyState=4*(t>0),f=t>=200&&t<300||304===t,a&&(b=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r){for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,j,a)),!f&&T.inArray("script",d.dataTypes)>-1&&0>T.inArray("json",d.dataTypes)&&(d.converters["text script"]=function(){}),b=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift()){if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o])){for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}}return{state:"success",data:t}}(d,b,j,f),f?(d.ifModified&&((w=j.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=w),(w=j.getResponseHeader("etag"))&&(T.etag[i]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,f=!(y=b.error))):(y=C,(t||!C)&&(C="error",t<0&&(t=0))),j.status=t,j.statusText=(n||C)+"",f?v.resolveWith(h,[p,C,j]):v.rejectWith(h,[j,C,y]),j.statusCode(x),x=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[j,d,f?p:y]),m.fireWith(h,[j,C]),c&&(g.trigger("ajaxComplete",[j,d]),--T.active||T.event.trigger("ajaxStop")))}return j},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,t){T[t]=function(e,n,r,i){return("function"==typeof n||null===n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,scriptAttrs:t.crossOrigin?{crossOrigin:t.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&("function"==typeof e&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return"function"==typeof e?this.each(function(t){T(this).wrapInner(e.call(this,t))}):this.each(function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t="function"==typeof e;return this.each(function(n){T(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){return new e.XMLHttpRequest};var ny={0:200};function nm(e){return e.scriptAttrs||!e.headers&&(e.crossDomain||e.async&&0>T.inArray("json",e.dataTypes))}T.ajaxTransport(function(e){var t;return{send:function(n,r){var i,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=o.onload=o.onerror=o.onabort=o.ontimeout=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(ny[o.status]||o.status,o.statusText,"text"===(o.responseType||"text")?{text:o.responseText}:{binary:o.response},o.getAllResponseHeaders()))}},o.onload=t(),o.onabort=o.onerror=o.ontimeout=t("error"),t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),nm(e)&&(e.type="GET")}),T.ajaxTransport("script",function(e){if(nm(e)){var t,n;return{send:function(r,i){t=T(" - - diff --git a/panes/tabVMConsoleRDP.html b/panes/tabVMConsoleRDP.html deleted file mode 100644 index 1c3dbe02..00000000 --- a/panes/tabVMConsoleRDP.html +++ /dev/null @@ -1,504 +0,0 @@ - - - - -
    -
    -
    - - - - - - - diff --git a/panes/tabVMConsoleVNC.html b/panes/tabVMConsoleVNC.html deleted file mode 100644 index 0e77c6f3..00000000 --- a/panes/tabVMConsoleVNC.html +++ /dev/null @@ -1,189 +0,0 @@ - -
    - Requested desktop size: - - -
    -
    -
    - \ No newline at end of file diff --git a/panes/tabVMDetails.html b/panes/tabVMDetails.html index 75f5a7df..a7784c82 100644 --- a/panes/tabVMDetails.html +++ b/panes/tabVMDetails.html @@ -410,13 +410,13 @@ .append( $('').attr({'style':'float:left;margin-right:3px','src':'images/vbox/'+section.icon,'class':'vboxDetailsSectionIcon'}) ).append( - $('').css({'float':'left'}).addClass((links ? 'vboxDetailsSectionLink' : '')).click(function(){ + $('').css({'float':'left'}).addClass((links ? 'vboxDetailsSectionLink' : '')).on('click', function(){ if($(this).hasClass('vboxDetailsSectionLink')) vboxVMsettingsDialog(data,section.settingsLink); }).html(title) ).append( $('').addClass('vboxArrowImage') - .click(function(){ $(this).parent().trigger("dblclick"); }) + .on('click', function(){ $(this).parent().trigger("dblclick"); }) ) ) ).disableSelection() @@ -440,7 +440,7 @@ var vboxDetailsSection = $('
    ') .attr({'class':'vboxDetailsBorder vboxVMDetailsBox'+sectionName+ ' vboxVMDetailsBox-vm-'+data.id,'id':'vboxDetailsSectionId-'+sectionName+'-'+data.id}) - .dblclick(__vboxDetailsSectionCollapse) + .on('dblclick', __vboxDetailsSectionCollapse) .hoverClass('vboxHover').disableSelection().data({'sectionName':sectionName}); if(vboxGetLocalDataItem("vboxSectionCollapse"+sectionName)) { @@ -458,7 +458,7 @@ var menu = section.contextMenu(); - $(vboxDetailsSection).mouseup({'vmid':data.id},function(e) { + $(vboxDetailsSection).on('mouseup', {'vmid':data.id}, function(e) { $('ul.contextMenu').hide(); @@ -510,7 +510,7 @@ $('').attr({'type':'button', 'value':trans('Refresh','UIVMLogViewer'), 'style':'background: url(images/vbox/refresh_16px.png) 2px 2px no-repeat; padding: 2px 2px 2px 18px; border: 1px solid #000; background-color: #eee;' - }).click({vmid:data.id},function(e){ + }).on('click', {vmid:data.id}, function(e){ var l = new vboxLoader(); @@ -723,7 +723,7 @@ /* Menu functionality */ -$("#vboxVMDetails").mouseup( function(e) { +$("#vboxVMDetails").on('mouseup', function(e) { $('ul.contextMenu').hide(); diff --git a/panes/tabVMSnapshots.html b/panes/tabVMSnapshots.html index 3b5ad748..4c39a0af 100644 --- a/panes/tabVMSnapshots.html +++ b/panes/tabVMSnapshots.html @@ -799,14 +799,14 @@ },vboxSnapshotContextMenu.menuClickCallback) // show details on dblclick - .dblclick(vboxSnapshotButtons[4].click).disableSelection() + .on('dblclick', vboxSnapshotButtons[4].click).disableSelection() // tool tip .tipped({'position':'mouse','delay':1500,'source':'

    '+$('

    ').text(s.name).html()+' ('+trans((s.online ? 'online)' : 'offline)'),'UISnapshotPane')+'

    '+ '

    '+ vboxDateTimeString(s.timeStamp, trans('Taken at %1','UISnapshotPane'), trans('Taken on %1','UISnapshotPane'))+'

    ' + (s.description ? '
    ' + $('
    ').text(s.description).html() : '')}) - ).addClass(currentId == s.id ? 'vboxSnapshotCurrent' : '').children('div.vboxListItem').first().click(function(){ + ).addClass(currentId == s.id ? 'vboxSnapshotCurrent' : '').children('div.vboxListItem').first().on('click', function(){ $('#vboxSnapshotList').find('div.vboxListItemSelected').first().removeClass('vboxListItemSelected'); $(this).addClass('vboxListItemSelected'); $('#vboxSnapshotList').trigger('select',$(this).parent()); @@ -837,7 +837,7 @@ menu: vboxSnapshotContextMenuCurrent.menuId(), clickthrough : true },vboxSnapshotContextMenuCurrent.menuClickCallback) - .click(function(){ + .on('click', function(){ $('#vboxSnapshotList').find('div.vboxListItemSelected').first().removeClass('vboxListItemSelected'); $(this).addClass('vboxListItemSelected'); $('#vboxSnapshotList').trigger('select',$(this).parent()); diff --git a/panes/tabs.html b/panes/tabs.html index 89af49bd..939dedcb 100644 --- a/panes/tabs.html +++ b/panes/tabs.html @@ -22,21 +22,13 @@ icon:'vm_settings' // Snapshots - },{ - name:'vboxTabVMSnapshots', - content:'tabVMSnapshots', - label:'Snapshots', - icon:'snapshot_take', - default_disabled: true - - // Console - },{ - name:'vboxTabVMConsole', - content:'tabVMConsole', - label:'Console', - icon:'vrdp', - default_disabled: true - } + }, { + name: 'vboxTabVMSnapshots', + content: 'tabVMSnapshots', + label: 'Snapshots', + icon: 'snapshot_take', + default_disabled: true + } ]; @@ -74,7 +66,7 @@ } // Add "click" functionality to each tab - $('#tablistMain').children().click(function(){ + $('#tablistMain').children().on('click', function(){ if(!$(this).hasClass('vboxDisabled')) tabsMain.showTab($(this).children().first().attr('href')); return false; diff --git a/panes/toolbar.html b/panes/toolbar.html index 5db1d3e5..1f80abd7 100644 --- a/panes/toolbar.html +++ b/panes/toolbar.html @@ -106,7 +106,7 @@ // add name vboxChooserSettingsMenu[i].name = i; var label = trans(vboxChooserSettingsMenu[i].label, 'UIActionPool'); - var li = $('
  • ').html(""+(label ? label : ' ')+""); + var li = $('
  • ').html(""+(label ? label : ' ')+""); if(i == 'storage') { $(li).attr({'style':'display:none','id':'vboxVMSettingsToolbarStorageHolder'}); } if(i == 'USB') { /* 'USB' menu */ @@ -289,7 +289,7 @@ $(menu).append($('
  • ').append( $('').addClass('vboxMenuAcceptClick') - .click(function(){if(!$(this).parent().hasClass('disabled')){$(this).children('input').click();}return false;}) + .on('click', function(){if(!$(this).parent().hasClass('disabled')){$(this).children('input').trigger('click');}return false;}) .append(cbox).append(' '+dname)).attr({'class':(avail ? '' : 'disabled')})); } diff --git a/panes/vmlogs.html b/panes/vmlogs.html index d575717e..1845139e 100644 --- a/panes/vmlogs.html +++ b/panes/vmlogs.html @@ -53,7 +53,7 @@ var frm = $('
    '); $(frm).height(pHeight); - $('