SPB Git forge

spb/admin-ka

Public
41commits 1branches 0releases
172.9 MBsize
maindefault branch
19 days agolast push
JavaScript 65.5% Python 17.8% CSS 13% HTML 3.7%
4.0 KB · 51 lines javascript
Raw Blame History
1"use strict";23function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }4Object.defineProperty(exports, "__esModule", {5  value: true6});7exports["default"] = void 0;8var _tight = _interopRequireDefault(require("./tight.js"));9function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }10function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }11function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }12function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }13function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }14function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }15function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }16function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }17function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }18function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }19function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }20function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }21function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*22 * noVNC: HTML5 VNC client23 * Copyright (C) 2019 The noVNC authors24 * Licensed under MPL 2.0 (see LICENSE.txt)25 *26 * See README.md for usage and integration instructions.27 *28 */29var TightPNGDecoder = exports["default"] = /*#__PURE__*/function (_TightDecoder) {30  function TightPNGDecoder() {31    _classCallCheck(this, TightPNGDecoder);32    return _callSuper(this, TightPNGDecoder, arguments);33  }34  _inherits(TightPNGDecoder, _TightDecoder);35  return _createClass(TightPNGDecoder, [{36    key: "_pngRect",37    value: function _pngRect(x, y, width, height, sock, display, depth) {38      var data = this._readData(sock);39      if (data === null) {40        return false;41      }42      display.imageRect(x, y, width, height, "image/png", data);43      return true;44    }45  }, {46    key: "_basicRect",47    value: function _basicRect(ctl, x, y, width, height, sock, display, depth) {48      throw new Error("BasicCompression received in TightPNG rect");49    }50  }]);51}(_tight["default"]);