@bigbinary/neeto-playwright-commons 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +191 -259
- package/index.cjs.js.map +1 -1
- package/index.js +69 -110
- package/index.js.map +1 -1
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -495,7 +495,7 @@ var concatty = function concatty(a, b) {
|
|
|
495
495
|
|
|
496
496
|
var slicy = function slicy(arrLike, offset) {
|
|
497
497
|
var arr = [];
|
|
498
|
-
for (var i = offset
|
|
498
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
499
499
|
arr[j] = arrLike[i];
|
|
500
500
|
}
|
|
501
501
|
return arr;
|
|
@@ -1802,8 +1802,6 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
1802
1802
|
return fn;
|
|
1803
1803
|
};
|
|
1804
1804
|
|
|
1805
|
-
callBind$1.exports;
|
|
1806
|
-
|
|
1807
1805
|
(function (module) {
|
|
1808
1806
|
|
|
1809
1807
|
var bind = functionBind;
|
|
@@ -6446,9 +6444,7 @@ function _onUpdateChild(doc, el, newChild) {
|
|
|
6446
6444
|
doc._inc++;
|
|
6447
6445
|
//update childNodes
|
|
6448
6446
|
var cs = el.childNodes;
|
|
6449
|
-
|
|
6450
|
-
cs[cs.length++] = newChild;
|
|
6451
|
-
} else {
|
|
6447
|
+
{
|
|
6452
6448
|
var child = el.firstChild;
|
|
6453
6449
|
var i = 0;
|
|
6454
6450
|
while (child) {
|
|
@@ -12256,7 +12252,6 @@ function requireCommon$1 () {
|
|
|
12256
12252
|
}
|
|
12257
12253
|
|
|
12258
12254
|
/* eslint-env browser */
|
|
12259
|
-
browser$1.exports;
|
|
12260
12255
|
|
|
12261
12256
|
var hasRequiredBrowser;
|
|
12262
12257
|
|
|
@@ -12695,7 +12690,6 @@ function requireSupportsColor () {
|
|
|
12695
12690
|
/**
|
|
12696
12691
|
* Module dependencies.
|
|
12697
12692
|
*/
|
|
12698
|
-
node.exports;
|
|
12699
12693
|
|
|
12700
12694
|
var hasRequiredNode;
|
|
12701
12695
|
|
|
@@ -13977,7 +13971,7 @@ var fs$c = {};
|
|
|
13977
13971
|
|
|
13978
13972
|
Object.defineProperty(fs$c, "__esModule", { value: true });
|
|
13979
13973
|
fs$c.createDirentFromStats = void 0;
|
|
13980
|
-
|
|
13974
|
+
let DirentFromStats$1 = class DirentFromStats {
|
|
13981
13975
|
constructor(name, stats) {
|
|
13982
13976
|
this.name = name;
|
|
13983
13977
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
@@ -13988,7 +13982,7 @@ class DirentFromStats$1 {
|
|
|
13988
13982
|
this.isSocket = stats.isSocket.bind(stats);
|
|
13989
13983
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
13990
13984
|
}
|
|
13991
|
-
}
|
|
13985
|
+
};
|
|
13992
13986
|
function createDirentFromStats$1(name, stats) {
|
|
13993
13987
|
return new DirentFromStats$1(name, stats);
|
|
13994
13988
|
}
|
|
@@ -18849,7 +18843,7 @@ var fs$a = {};
|
|
|
18849
18843
|
|
|
18850
18844
|
Object.defineProperty(settings$3, "__esModule", { value: true });
|
|
18851
18845
|
const fs$9 = fs$a;
|
|
18852
|
-
|
|
18846
|
+
let Settings$2 = class Settings {
|
|
18853
18847
|
constructor(_options = {}) {
|
|
18854
18848
|
this._options = _options;
|
|
18855
18849
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
@@ -18860,7 +18854,7 @@ class Settings$2 {
|
|
|
18860
18854
|
_getValue(option, value) {
|
|
18861
18855
|
return option !== null && option !== void 0 ? option : value;
|
|
18862
18856
|
}
|
|
18863
|
-
}
|
|
18857
|
+
};
|
|
18864
18858
|
settings$3.default = Settings$2;
|
|
18865
18859
|
|
|
18866
18860
|
Object.defineProperty(out$1, "__esModule", { value: true });
|
|
@@ -19204,7 +19198,7 @@ Object.defineProperty(settings$2, "__esModule", { value: true });
|
|
|
19204
19198
|
const path$4 = Path__default;
|
|
19205
19199
|
const fsStat$3 = out$1;
|
|
19206
19200
|
const fs$5 = fs$6;
|
|
19207
|
-
|
|
19201
|
+
let Settings$1 = class Settings {
|
|
19208
19202
|
constructor(_options = {}) {
|
|
19209
19203
|
this._options = _options;
|
|
19210
19204
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
@@ -19221,7 +19215,7 @@ class Settings$1 {
|
|
|
19221
19215
|
_getValue(option, value) {
|
|
19222
19216
|
return option !== null && option !== void 0 ? option : value;
|
|
19223
19217
|
}
|
|
19224
|
-
}
|
|
19218
|
+
};
|
|
19225
19219
|
settings$2.default = Settings$1;
|
|
19226
19220
|
|
|
19227
19221
|
Object.defineProperty(out$2, "__esModule", { value: true });
|
|
@@ -19612,13 +19606,13 @@ var reader$1 = {};
|
|
|
19612
19606
|
|
|
19613
19607
|
Object.defineProperty(reader$1, "__esModule", { value: true });
|
|
19614
19608
|
const common$3 = common$4;
|
|
19615
|
-
|
|
19609
|
+
let Reader$1 = class Reader {
|
|
19616
19610
|
constructor(_root, _settings) {
|
|
19617
19611
|
this._root = _root;
|
|
19618
19612
|
this._settings = _settings;
|
|
19619
19613
|
this._root = common$3.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator);
|
|
19620
19614
|
}
|
|
19621
|
-
}
|
|
19615
|
+
};
|
|
19622
19616
|
reader$1.default = Reader$1;
|
|
19623
19617
|
|
|
19624
19618
|
Object.defineProperty(async$4, "__esModule", { value: true });
|
|
@@ -19792,7 +19786,7 @@ Object.defineProperty(sync$2, "__esModule", { value: true });
|
|
|
19792
19786
|
const fsScandir$1 = out$2;
|
|
19793
19787
|
const common$1 = common$4;
|
|
19794
19788
|
const reader_1$3 = reader$1;
|
|
19795
|
-
|
|
19789
|
+
let SyncReader$3 = class SyncReader extends reader_1$3.default {
|
|
19796
19790
|
constructor() {
|
|
19797
19791
|
super(...arguments);
|
|
19798
19792
|
this._scandir = fsScandir$1.scandirSync;
|
|
@@ -19844,7 +19838,7 @@ class SyncReader$3 extends reader_1$3.default {
|
|
|
19844
19838
|
_pushToStorage(entry) {
|
|
19845
19839
|
this._storage.push(entry);
|
|
19846
19840
|
}
|
|
19847
|
-
}
|
|
19841
|
+
};
|
|
19848
19842
|
sync$2.default = SyncReader$3;
|
|
19849
19843
|
|
|
19850
19844
|
Object.defineProperty(sync$3, "__esModule", { value: true });
|
|
@@ -21248,6 +21242,8 @@ const KEYBOARD_SHORTCUTS_SELECTORS = {
|
|
|
21248
21242
|
};
|
|
21249
21243
|
|
|
21250
21244
|
/* eslint-disable playwright/no-raw-locators */
|
|
21245
|
+
/* eslint-disable playwright/require-top-level-describe */
|
|
21246
|
+
/* eslint-disable playwright/no-standalone-expect */
|
|
21251
21247
|
class HelpAndProfilePage {
|
|
21252
21248
|
constructor({ page, neetoPlaywrightUtilities, chatApiBaseURL, kbDocsBaseURL, changelogBaseURL, }) {
|
|
21253
21249
|
this.hoverOnBody = () => this.page.locator("body").hover();
|
|
@@ -27102,8 +27098,6 @@ conversions["RegExp"] = function (V, opts) {
|
|
|
27102
27098
|
|
|
27103
27099
|
var utils = {exports: {}};
|
|
27104
27100
|
|
|
27105
|
-
utils.exports;
|
|
27106
|
-
|
|
27107
27101
|
(function (module) {
|
|
27108
27102
|
|
|
27109
27103
|
module.exports.mixin = function mixin(target, source) {
|
|
@@ -104976,8 +104970,6 @@ tr46.toUnicode = function(domain_name, useSTD3) {
|
|
|
104976
104970
|
|
|
104977
104971
|
tr46.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
|
|
104978
104972
|
|
|
104979
|
-
urlStateMachine.exports;
|
|
104980
|
-
|
|
104981
104973
|
(function (module) {
|
|
104982
104974
|
const punycode = require$$0$5;
|
|
104983
104975
|
const tr46$1 = tr46;
|
|
@@ -106478,8 +106470,6 @@ URLImpl.implementation = class URLImpl {
|
|
|
106478
106470
|
}
|
|
106479
106471
|
};
|
|
106480
106472
|
|
|
106481
|
-
URL$2.exports;
|
|
106482
|
-
|
|
106483
106473
|
(function (module) {
|
|
106484
106474
|
|
|
106485
106475
|
const conversions = lib$6;
|
|
@@ -108457,18 +108447,16 @@ fetch$1.Promise = global.Promise;
|
|
|
108457
108447
|
|
|
108458
108448
|
var lib$5 = /*#__PURE__*/Object.freeze({
|
|
108459
108449
|
__proto__: null,
|
|
108460
|
-
|
|
108450
|
+
AbortError: AbortError,
|
|
108451
|
+
FetchError: FetchError,
|
|
108461
108452
|
Headers: Headers,
|
|
108462
108453
|
Request: Request,
|
|
108463
108454
|
Response: Response,
|
|
108464
|
-
|
|
108465
|
-
AbortError: AbortError
|
|
108455
|
+
default: fetch$1
|
|
108466
108456
|
});
|
|
108467
108457
|
|
|
108468
108458
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(lib$5);
|
|
108469
108459
|
|
|
108470
|
-
fetchNpmNode.exports;
|
|
108471
|
-
|
|
108472
108460
|
(function (module) {
|
|
108473
108461
|
|
|
108474
108462
|
var realFetch = require$$0;
|
|
@@ -108487,8 +108475,6 @@ fetchNpmNode.exports;
|
|
|
108487
108475
|
}
|
|
108488
108476
|
} (fetchNpmNode));
|
|
108489
108477
|
|
|
108490
|
-
fetchNpmNode.exports;
|
|
108491
|
-
|
|
108492
108478
|
var request$1 = ((_ref, cb) => {
|
|
108493
108479
|
let {
|
|
108494
108480
|
url,
|
|
@@ -108536,26 +108522,26 @@ const EDGE_CROP = 3;
|
|
|
108536
108522
|
var constants$7 = /*#__PURE__*/Object.freeze({
|
|
108537
108523
|
__proto__: null,
|
|
108538
108524
|
AUTO: AUTO,
|
|
108539
|
-
HORIZONTAL_ALIGN_LEFT: HORIZONTAL_ALIGN_LEFT,
|
|
108540
|
-
HORIZONTAL_ALIGN_CENTER: HORIZONTAL_ALIGN_CENTER,
|
|
108541
|
-
HORIZONTAL_ALIGN_RIGHT: HORIZONTAL_ALIGN_RIGHT,
|
|
108542
|
-
VERTICAL_ALIGN_TOP: VERTICAL_ALIGN_TOP,
|
|
108543
|
-
VERTICAL_ALIGN_MIDDLE: VERTICAL_ALIGN_MIDDLE,
|
|
108544
|
-
VERTICAL_ALIGN_BOTTOM: VERTICAL_ALIGN_BOTTOM,
|
|
108545
|
-
BLEND_SOURCE_OVER: BLEND_SOURCE_OVER,
|
|
108546
|
-
BLEND_DESTINATION_OVER: BLEND_DESTINATION_OVER,
|
|
108547
|
-
BLEND_MULTIPLY: BLEND_MULTIPLY,
|
|
108548
108525
|
BLEND_ADD: BLEND_ADD,
|
|
108549
|
-
BLEND_SCREEN: BLEND_SCREEN,
|
|
108550
|
-
BLEND_OVERLAY: BLEND_OVERLAY,
|
|
108551
108526
|
BLEND_DARKEN: BLEND_DARKEN,
|
|
108552
|
-
|
|
108553
|
-
BLEND_HARDLIGHT: BLEND_HARDLIGHT,
|
|
108527
|
+
BLEND_DESTINATION_OVER: BLEND_DESTINATION_OVER,
|
|
108554
108528
|
BLEND_DIFFERENCE: BLEND_DIFFERENCE,
|
|
108555
108529
|
BLEND_EXCLUSION: BLEND_EXCLUSION,
|
|
108530
|
+
BLEND_HARDLIGHT: BLEND_HARDLIGHT,
|
|
108531
|
+
BLEND_LIGHTEN: BLEND_LIGHTEN,
|
|
108532
|
+
BLEND_MULTIPLY: BLEND_MULTIPLY,
|
|
108533
|
+
BLEND_OVERLAY: BLEND_OVERLAY,
|
|
108534
|
+
BLEND_SCREEN: BLEND_SCREEN,
|
|
108535
|
+
BLEND_SOURCE_OVER: BLEND_SOURCE_OVER,
|
|
108536
|
+
EDGE_CROP: EDGE_CROP,
|
|
108556
108537
|
EDGE_EXTEND: EDGE_EXTEND,
|
|
108557
108538
|
EDGE_WRAP: EDGE_WRAP,
|
|
108558
|
-
|
|
108539
|
+
HORIZONTAL_ALIGN_CENTER: HORIZONTAL_ALIGN_CENTER,
|
|
108540
|
+
HORIZONTAL_ALIGN_LEFT: HORIZONTAL_ALIGN_LEFT,
|
|
108541
|
+
HORIZONTAL_ALIGN_RIGHT: HORIZONTAL_ALIGN_RIGHT,
|
|
108542
|
+
VERTICAL_ALIGN_BOTTOM: VERTICAL_ALIGN_BOTTOM,
|
|
108543
|
+
VERTICAL_ALIGN_MIDDLE: VERTICAL_ALIGN_MIDDLE,
|
|
108544
|
+
VERTICAL_ALIGN_TOP: VERTICAL_ALIGN_TOP
|
|
108559
108545
|
});
|
|
108560
108546
|
|
|
108561
108547
|
function srcOver(src, dst) {
|
|
@@ -108769,17 +108755,17 @@ function exclusion(src, dst) {
|
|
|
108769
108755
|
|
|
108770
108756
|
var compositeModes = /*#__PURE__*/Object.freeze({
|
|
108771
108757
|
__proto__: null,
|
|
108772
|
-
srcOver: srcOver,
|
|
108773
|
-
dstOver: dstOver,
|
|
108774
|
-
multiply: multiply,
|
|
108775
108758
|
add: add,
|
|
108776
|
-
screen: screen,
|
|
108777
|
-
overlay: overlay,
|
|
108778
108759
|
darken: darken,
|
|
108779
|
-
lighten: lighten,
|
|
108780
|
-
hardLight: hardLight,
|
|
108781
108760
|
difference: difference,
|
|
108782
|
-
|
|
108761
|
+
dstOver: dstOver,
|
|
108762
|
+
exclusion: exclusion,
|
|
108763
|
+
hardLight: hardLight,
|
|
108764
|
+
lighten: lighten,
|
|
108765
|
+
multiply: multiply,
|
|
108766
|
+
overlay: overlay,
|
|
108767
|
+
screen: screen,
|
|
108768
|
+
srcOver: srcOver
|
|
108783
108769
|
});
|
|
108784
108770
|
|
|
108785
108771
|
/**
|
|
@@ -113535,7 +113521,7 @@ const emptyBitmap = {
|
|
|
113535
113521
|
* @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap
|
|
113536
113522
|
*/
|
|
113537
113523
|
|
|
113538
|
-
|
|
113524
|
+
let Jimp$1 = class Jimp extends require$$0$4 {
|
|
113539
113525
|
// An object representing a bitmap in memory, comprising:
|
|
113540
113526
|
// - data: a buffer of the bitmap data
|
|
113541
113527
|
// - width: the width of the image in pixels
|
|
@@ -113556,7 +113542,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113556
113542
|
super();
|
|
113557
113543
|
_defineProperty(this, "bitmap", emptyBitmap);
|
|
113558
113544
|
_defineProperty(this, "_background", 0x00000000);
|
|
113559
|
-
_defineProperty(this, "_originalMime", Jimp
|
|
113545
|
+
_defineProperty(this, "_originalMime", Jimp.MIME_PNG);
|
|
113560
113546
|
_defineProperty(this, "_exif", null);
|
|
113561
113547
|
_defineProperty(this, "_rgba", true);
|
|
113562
113548
|
_defineProperty(this, "writeAsync", path => promisify(this.write, this, path));
|
|
@@ -113601,7 +113587,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113601
113587
|
|
|
113602
113588
|
// with a css color
|
|
113603
113589
|
if (typeof args[2] === "string") {
|
|
113604
|
-
this._background = Jimp
|
|
113590
|
+
this._background = Jimp.cssColorToHex(args[2]);
|
|
113605
113591
|
cb = args[3];
|
|
113606
113592
|
}
|
|
113607
113593
|
if (typeof cb === "undefined") {
|
|
@@ -113630,7 +113616,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113630
113616
|
}
|
|
113631
113617
|
this.parseBitmap(data, args[0].url, finish);
|
|
113632
113618
|
});
|
|
113633
|
-
} else if (args[0] instanceof Jimp
|
|
113619
|
+
} else if (args[0] instanceof Jimp) {
|
|
113634
113620
|
// clone an existing Jimp
|
|
113635
113621
|
const [original] = args;
|
|
113636
113622
|
cb = args[1];
|
|
@@ -113699,7 +113685,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113699
113685
|
cb = noop$1;
|
|
113700
113686
|
}
|
|
113701
113687
|
}
|
|
113702
|
-
const extraConstructor = Jimp
|
|
113688
|
+
const extraConstructor = Jimp.__extraConstructors.find(c => c.test(...args));
|
|
113703
113689
|
if (extraConstructor) {
|
|
113704
113690
|
new Promise((resolve, reject) => {
|
|
113705
113691
|
extraConstructor.run.call(this, resolve, reject, ...args);
|
|
@@ -113798,7 +113784,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113798
113784
|
* @returns {string} the MIME
|
|
113799
113785
|
*/
|
|
113800
113786
|
getMIME() {
|
|
113801
|
-
const mime = this._originalMime || Jimp
|
|
113787
|
+
const mime = this._originalMime || Jimp.MIME_PNG;
|
|
113802
113788
|
return mime;
|
|
113803
113789
|
}
|
|
113804
113790
|
|
|
@@ -113861,7 +113847,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113861
113847
|
* @returns {Jimp} this for chaining of methods
|
|
113862
113848
|
*/
|
|
113863
113849
|
getBase64(mime, cb) {
|
|
113864
|
-
if (mime === Jimp
|
|
113850
|
+
if (mime === Jimp.AUTO) {
|
|
113865
113851
|
// allow auto MIME detection
|
|
113866
113852
|
mime = this.getMIME();
|
|
113867
113853
|
}
|
|
@@ -113953,7 +113939,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113953
113939
|
edgeHandling = null;
|
|
113954
113940
|
}
|
|
113955
113941
|
if (!edgeHandling) {
|
|
113956
|
-
edgeHandling = Jimp
|
|
113942
|
+
edgeHandling = Jimp.EDGE_EXTEND;
|
|
113957
113943
|
}
|
|
113958
113944
|
if (typeof x !== "number" || typeof y !== "number") {
|
|
113959
113945
|
return throwError.call(this, "x and y must be numbers", cb);
|
|
@@ -113964,13 +113950,13 @@ class Jimp$1 extends require$$0$4 {
|
|
|
113964
113950
|
y = Math.round(y);
|
|
113965
113951
|
xi = x;
|
|
113966
113952
|
yi = y;
|
|
113967
|
-
if (edgeHandling === Jimp
|
|
113953
|
+
if (edgeHandling === Jimp.EDGE_EXTEND) {
|
|
113968
113954
|
if (x < 0) xi = 0;
|
|
113969
113955
|
if (x >= this.bitmap.width) xi = this.bitmap.width - 1;
|
|
113970
113956
|
if (y < 0) yi = 0;
|
|
113971
113957
|
if (y >= this.bitmap.height) yi = this.bitmap.height - 1;
|
|
113972
113958
|
}
|
|
113973
|
-
if (edgeHandling === Jimp
|
|
113959
|
+
if (edgeHandling === Jimp.EDGE_WRAP) {
|
|
113974
113960
|
if (x < 0) {
|
|
113975
113961
|
xi = this.bitmap.width + x;
|
|
113976
113962
|
}
|
|
@@ -114068,7 +114054,7 @@ class Jimp$1 extends require$$0$4 {
|
|
|
114068
114054
|
}
|
|
114069
114055
|
return scanIterator(this, x, y, w, h);
|
|
114070
114056
|
}
|
|
114071
|
-
}
|
|
114057
|
+
};
|
|
114072
114058
|
function addConstants(constants) {
|
|
114073
114059
|
let jimpInstance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Jimp$1;
|
|
114074
114060
|
Object.entries(constants).forEach(_ref => {
|
|
@@ -115192,7 +115178,6 @@ var encoder$1 = {exports: {}};
|
|
|
115192
115178
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
115193
115179
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
115194
115180
|
*/
|
|
115195
|
-
encoder$1.exports;
|
|
115196
115181
|
|
|
115197
115182
|
(function (module) {
|
|
115198
115183
|
|
|
@@ -115944,7 +115929,6 @@ var decoder$1 = {exports: {}};
|
|
|
115944
115929
|
|
|
115945
115930
|
/* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
|
115946
115931
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
|
115947
|
-
decoder$1.exports;
|
|
115948
115932
|
|
|
115949
115933
|
(function (module) {
|
|
115950
115934
|
/*
|
|
@@ -119068,8 +119052,6 @@ var pngSync = {};
|
|
|
119068
119052
|
|
|
119069
119053
|
var syncInflate = {exports: {}};
|
|
119070
119054
|
|
|
119071
|
-
syncInflate.exports;
|
|
119072
|
-
|
|
119073
119055
|
(function (module, exports) {
|
|
119074
119056
|
|
|
119075
119057
|
let assert = require$$0$6.ok;
|
|
@@ -119103,9 +119085,6 @@ syncInflate.exports;
|
|
|
119103
119085
|
}
|
|
119104
119086
|
|
|
119105
119087
|
function _close(engine, callback) {
|
|
119106
|
-
if (callback) {
|
|
119107
|
-
process.nextTick(callback);
|
|
119108
|
-
}
|
|
119109
119088
|
|
|
119110
119089
|
// Caller may invoke .close after a zlib error (which will null _handle).
|
|
119111
119090
|
if (!engine._handle) {
|
|
@@ -121132,7 +121111,7 @@ function requireTrees () {
|
|
|
121132
121111
|
{
|
|
121133
121112
|
bi_windup(s); /* align on byte boundary */
|
|
121134
121113
|
|
|
121135
|
-
|
|
121114
|
+
{
|
|
121136
121115
|
put_short(s, len);
|
|
121137
121116
|
put_short(s, ~len);
|
|
121138
121117
|
}
|
|
@@ -121630,7 +121609,7 @@ function requireTrees () {
|
|
|
121630
121609
|
//int last; /* one if this is the last block for a file */
|
|
121631
121610
|
{
|
|
121632
121611
|
send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */
|
|
121633
|
-
copy_block(s, buf, stored_len
|
|
121612
|
+
copy_block(s, buf, stored_len); /* with header */
|
|
121634
121613
|
}
|
|
121635
121614
|
|
|
121636
121615
|
|
|
@@ -127367,8 +127346,6 @@ function requirePako () {
|
|
|
127367
127346
|
return pako_1;
|
|
127368
127347
|
}
|
|
127369
127348
|
|
|
127370
|
-
UTIF.exports;
|
|
127371
|
-
|
|
127372
127349
|
(function (module) {
|
|
127373
127350
|
(function(){
|
|
127374
127351
|
var UTIF = {};
|
|
@@ -128045,7 +128022,7 @@ UTIF.exports;
|
|
|
128045
128022
|
//if (nbits < 0) return bitbuf = vbits = reset = 0;
|
|
128046
128023
|
if (nbits == 0 || vbits < 0) return 0;
|
|
128047
128024
|
while (!reset && vbits < nbits && (c = data[off++]) != -1 &&
|
|
128048
|
-
!(reset = zero_after_ff
|
|
128025
|
+
!(reset = zero_after_ff)) {
|
|
128049
128026
|
//console.log("byte read into c");
|
|
128050
128027
|
bitbuf = (bitbuf << 8) + c;
|
|
128051
128028
|
vbits += 8;
|
|
@@ -129828,7 +129805,7 @@ try { GifWriter_1 = omggif.GifWriter = GifWriter; GifReader_1 = omggif.GifReader
|
|
|
129828
129805
|
|
|
129829
129806
|
/** @class BitmapImage */
|
|
129830
129807
|
|
|
129831
|
-
|
|
129808
|
+
let BitmapImage$2 = class BitmapImage {
|
|
129832
129809
|
|
|
129833
129810
|
/**
|
|
129834
129811
|
* BitmapImage is a class that hold an RGBA (red, green, blue, alpha) representation of an image. It's shape is borrowed from the Jimp package to make it easy to transfer GIF image frames into Jimp and Jimp images into GIF image frames. Each instance has a `bitmap` property having the following properties:
|
|
@@ -129859,7 +129836,7 @@ class BitmapImage$2 {
|
|
|
129859
129836
|
}
|
|
129860
129837
|
const firstArg = args[0];
|
|
129861
129838
|
if (firstArg !== null && typeof firstArg === 'object') {
|
|
129862
|
-
if (firstArg instanceof BitmapImage
|
|
129839
|
+
if (firstArg instanceof BitmapImage) {
|
|
129863
129840
|
// copy a provided BitmapImage
|
|
129864
129841
|
const sourceBitmap = firstArg.bitmap;
|
|
129865
129842
|
this.bitmap = {
|
|
@@ -130040,10 +130017,10 @@ class BitmapImage$2 {
|
|
|
130040
130017
|
{
|
|
130041
130018
|
throw new GifError(`fillRGBA required for this reframing`);
|
|
130042
130019
|
}
|
|
130043
|
-
image = new BitmapImage
|
|
130020
|
+
image = new BitmapImage(width, height);
|
|
130044
130021
|
}
|
|
130045
130022
|
else {
|
|
130046
|
-
image = new BitmapImage
|
|
130023
|
+
image = new BitmapImage(width, height, fillRGBA);
|
|
130047
130024
|
}
|
|
130048
130025
|
this.blit(image, newX, newY, cropX, cropY, cropWidth, cropHeight);
|
|
130049
130026
|
this.bitmap = image.bitmap;
|
|
@@ -130131,7 +130108,7 @@ class BitmapImage$2 {
|
|
|
130131
130108
|
scanHandler(bi);
|
|
130132
130109
|
}
|
|
130133
130110
|
}
|
|
130134
|
-
}
|
|
130111
|
+
};
|
|
130135
130112
|
|
|
130136
130113
|
var bitmapimage = BitmapImage$2;
|
|
130137
130114
|
|
|
@@ -130139,7 +130116,7 @@ var gif$1 = {};
|
|
|
130139
130116
|
|
|
130140
130117
|
/** @class Gif */
|
|
130141
130118
|
|
|
130142
|
-
|
|
130119
|
+
let Gif$1 = class Gif {
|
|
130143
130120
|
|
|
130144
130121
|
// width - width of GIF in pixels
|
|
130145
130122
|
// height - height of GIF in pixels
|
|
@@ -130178,7 +130155,7 @@ class Gif$1 {
|
|
|
130178
130155
|
this.frames = frames;
|
|
130179
130156
|
this.buffer = buffer;
|
|
130180
130157
|
}
|
|
130181
|
-
}
|
|
130158
|
+
};
|
|
130182
130159
|
|
|
130183
130160
|
Gif$1.GlobalColorsPreferred = 0;
|
|
130184
130161
|
Gif$1.GlobalColorsOnly = 1;
|
|
@@ -130186,7 +130163,7 @@ Gif$1.LocalColorsOnly = 2;
|
|
|
130186
130163
|
|
|
130187
130164
|
/** @class GifError */
|
|
130188
130165
|
|
|
130189
|
-
|
|
130166
|
+
let GifError$2 = class GifError extends Error {
|
|
130190
130167
|
|
|
130191
130168
|
/**
|
|
130192
130169
|
* GifError is a class representing a GIF-related error
|
|
@@ -130200,7 +130177,7 @@ class GifError$2 extends Error {
|
|
|
130200
130177
|
this.stack = 'Gif' + messageOrError.stack;
|
|
130201
130178
|
}
|
|
130202
130179
|
}
|
|
130203
|
-
}
|
|
130180
|
+
};
|
|
130204
130181
|
|
|
130205
130182
|
gif$1.Gif = Gif$1;
|
|
130206
130183
|
gif$1.GifError = GifError$2;
|
|
@@ -130222,7 +130199,7 @@ var __export = (target, all) => {
|
|
|
130222
130199
|
var __reExport = (target, module2, copyDefault, desc) => {
|
|
130223
130200
|
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
130224
130201
|
for (let key of __getOwnPropNames(module2))
|
|
130225
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault
|
|
130202
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault))
|
|
130226
130203
|
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
130227
130204
|
}
|
|
130228
130205
|
return target;
|
|
@@ -132898,7 +132875,7 @@ const BitmapImage$1 = bitmapimage;
|
|
|
132898
132875
|
|
|
132899
132876
|
/** @class GifFrame */
|
|
132900
132877
|
|
|
132901
|
-
|
|
132878
|
+
let GifFrame$1 = class GifFrame extends BitmapImage$1 {
|
|
132902
132879
|
|
|
132903
132880
|
// xOffset - x offset of bitmap on GIF (defaults to 0)
|
|
132904
132881
|
// yOffset - y offset of bitmap on GIF (defaults to 0)
|
|
@@ -132932,7 +132909,7 @@ class GifFrame$1 extends BitmapImage$1 {
|
|
|
132932
132909
|
|
|
132933
132910
|
constructor(...args) {
|
|
132934
132911
|
super(...args);
|
|
132935
|
-
if (args[0] instanceof GifFrame
|
|
132912
|
+
if (args[0] instanceof GifFrame) {
|
|
132936
132913
|
// copy a provided GifFrame
|
|
132937
132914
|
const source = args[0];
|
|
132938
132915
|
this.xOffset = source.xOffset;
|
|
@@ -132950,7 +132927,7 @@ class GifFrame$1 extends BitmapImage$1 {
|
|
|
132950
132927
|
this.xOffset = options.xOffset || 0;
|
|
132951
132928
|
this.yOffset = options.yOffset || 0;
|
|
132952
132929
|
this.disposalMethod = (options.disposalMethod !== undefined ?
|
|
132953
|
-
options.disposalMethod : GifFrame
|
|
132930
|
+
options.disposalMethod : GifFrame.DisposeToBackgroundColor);
|
|
132954
132931
|
this.delayCentisecs = options.delayCentisecs || 8;
|
|
132955
132932
|
this.interlaced = options.interlaced || false;
|
|
132956
132933
|
}
|
|
@@ -132997,7 +132974,7 @@ class GifFrame$1 extends BitmapImage$1 {
|
|
|
132997
132974
|
}
|
|
132998
132975
|
return { colors, usesTransparency, indexCount };
|
|
132999
132976
|
}
|
|
133000
|
-
}
|
|
132977
|
+
};
|
|
133001
132978
|
|
|
133002
132979
|
GifFrame$1.DisposeToAnything = 0;
|
|
133003
132980
|
GifFrame$1.DisposeNothing = 1;
|
|
@@ -134213,23 +134190,6 @@ function colorFn(actions, cb) {
|
|
|
134213
134190
|
}
|
|
134214
134191
|
return this;
|
|
134215
134192
|
}
|
|
134216
|
-
Object.freeze({
|
|
134217
|
-
LIGHTEN: "lighten",
|
|
134218
|
-
BRIGHTEN: "brighten",
|
|
134219
|
-
DARKEN: "darken",
|
|
134220
|
-
DESATURATE: "desaturate",
|
|
134221
|
-
SATURATE: "saturate",
|
|
134222
|
-
GREYSCALE: "greyscale",
|
|
134223
|
-
SPIN: "spin",
|
|
134224
|
-
HUE: "hue",
|
|
134225
|
-
MIX: "mix",
|
|
134226
|
-
TINT: "tint",
|
|
134227
|
-
SHADE: "shade",
|
|
134228
|
-
XOR: "xor",
|
|
134229
|
-
RED: "red",
|
|
134230
|
-
GREEN: "green",
|
|
134231
|
-
BLUE: "blue"
|
|
134232
|
-
});
|
|
134233
134193
|
var color = (() => ({
|
|
134234
134194
|
/**
|
|
134235
134195
|
* Adjusts the brightness of the image
|
|
@@ -134687,6 +134647,7 @@ var cover = (() => ({
|
|
|
134687
134647
|
}));
|
|
134688
134648
|
|
|
134689
134649
|
/* eslint-disable no-labels */
|
|
134650
|
+
|
|
134690
134651
|
function pluginCrop(event) {
|
|
134691
134652
|
/**
|
|
134692
134653
|
* Crops the image at a given point to a give size
|
|
@@ -146487,8 +146448,6 @@ var Jimp = configure({
|
|
|
146487
146448
|
|
|
146488
146449
|
var jsQR$1 = {exports: {}};
|
|
146489
146450
|
|
|
146490
|
-
jsQR$1.exports;
|
|
146491
|
-
|
|
146492
146451
|
(function (module, exports) {
|
|
146493
146452
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
146494
146453
|
module.exports = factory();
|
|
@@ -156559,7 +156518,7 @@ jsQR$1.exports;
|
|
|
156559
156518
|
/***/ })
|
|
156560
156519
|
/******/ ])["default"];
|
|
156561
156520
|
});
|
|
156562
|
-
} (jsQR$1
|
|
156521
|
+
} (jsQR$1));
|
|
156563
156522
|
|
|
156564
156523
|
var jsQRExports = jsQR$1.exports;
|
|
156565
156524
|
var jsQR = /*@__PURE__*/getDefaultExportFromCjs(jsQRExports);
|