@jaak.ai/stamps 2.0.0-dev.19 → 2.0.0-dev.21

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.
@@ -27,6 +27,7 @@ export class JaakStamps {
27
27
  isDetectionPaused = false;
28
28
  isLoading = false;
29
29
  isModelPreloaded = false;
30
+ isMaskReady = false;
30
31
  videoRef;
31
32
  canvasRef;
32
33
  session;
@@ -50,8 +51,8 @@ export class JaakStamps {
50
51
  MODEL_PATH = "https://storage.googleapis.com/jaak-static/web/component/stamps/detector-nano.onnx";
51
52
  INPUT_SIZE = 320;
52
53
  CONFIDENCE_THRESHOLD = 0.6;
53
- MASK_WIDTH = 280;
54
- MASK_HEIGHT = 176;
54
+ // ISO/IEC 7810 ID-1 standard dimensions (85.60mm x 53.98mm)
55
+ ID1_ASPECT_RATIO = 85.60 / 53.98; // 1.5863320574...
55
56
  debugLog(...args) {
56
57
  if (this.debug) {
57
58
  console.log(...args);
@@ -85,6 +86,91 @@ export class JaakStamps {
85
86
  }
86
87
  // Initialize canvas pool for better performance
87
88
  this.initializeCanvasPool();
89
+ this.setupResizeObserver();
90
+ }
91
+ setupResizeObserver() {
92
+ if ('ResizeObserver' in window && this.canvasRef) {
93
+ const resizeObserver = new ResizeObserver(() => {
94
+ this.handleResize();
95
+ });
96
+ resizeObserver.observe(this.canvasRef.parentElement);
97
+ }
98
+ }
99
+ handleResize() {
100
+ if (this.canvasRef) {
101
+ const container = this.canvasRef.parentElement;
102
+ const rect = container.getBoundingClientRect();
103
+ // Set canvas size to match container
104
+ this.canvasRef.width = rect.width;
105
+ this.canvasRef.height = rect.height;
106
+ // Update mask positioning based on container and video dimensions
107
+ this.updateMaskDimensions(rect);
108
+ this.debugLog('📐 Canvas resized:', { width: rect.width, height: rect.height });
109
+ }
110
+ }
111
+ updateMaskDimensions(containerRect) {
112
+ if (!this.videoRef)
113
+ return;
114
+ const videoWidth = this.videoRef.videoWidth;
115
+ const videoHeight = this.videoRef.videoHeight;
116
+ if (videoWidth === 0 || videoHeight === 0)
117
+ return;
118
+ // Calculate video aspect ratio and container aspect ratio
119
+ const videoAspectRatio = videoWidth / videoHeight;
120
+ const containerAspectRatio = containerRect.width / containerRect.height;
121
+ // Determine how video fits in container (letterboxed or pillarboxed)
122
+ let displayedVideoWidth, displayedVideoHeight;
123
+ let videoOffsetX = 0, videoOffsetY = 0;
124
+ if (videoAspectRatio > containerAspectRatio) {
125
+ // Video is wider - letterboxed (black bars top/bottom)
126
+ displayedVideoWidth = containerRect.width;
127
+ displayedVideoHeight = containerRect.width / videoAspectRatio;
128
+ videoOffsetY = (containerRect.height - displayedVideoHeight) / 2;
129
+ }
130
+ else {
131
+ // Video is taller - pillarboxed (black bars left/right)
132
+ displayedVideoHeight = containerRect.height;
133
+ displayedVideoWidth = containerRect.height * videoAspectRatio;
134
+ videoOffsetX = (containerRect.width - displayedVideoWidth) / 2;
135
+ }
136
+ // Calculate maximum possible mask size while preserving exact ID-1 aspect ratio
137
+ // Determine the limiting dimension based on video orientation and ID-1 proportions
138
+ // Calculate what would be the max width if limited by video height
139
+ const maxWidthByHeight = displayedVideoHeight * this.ID1_ASPECT_RATIO;
140
+ let maskWidthInVideo, maskHeightInVideo;
141
+ if (maxWidthByHeight <= displayedVideoWidth) {
142
+ // Video height is the limiting factor
143
+ maskHeightInVideo = displayedVideoHeight * 0.9; // Use 90% of available height
144
+ maskWidthInVideo = maskHeightInVideo * this.ID1_ASPECT_RATIO;
145
+ }
146
+ else {
147
+ // Video width is the limiting factor
148
+ maskWidthInVideo = displayedVideoWidth * 0.9; // Use 90% of available width
149
+ maskHeightInVideo = maskWidthInVideo / this.ID1_ASPECT_RATIO;
150
+ }
151
+ // Convert to percentages of the container
152
+ const maskWidthPercent = (maskWidthInVideo / containerRect.width) * 100;
153
+ const maskHeightPercent = (maskHeightInVideo / containerRect.height) * 100;
154
+ // Calculate the center position of the displayed video area
155
+ const videoCenterX = videoOffsetX + (displayedVideoWidth / 2);
156
+ const videoCenterY = videoOffsetY + (displayedVideoHeight / 2);
157
+ // Convert to percentages of the container
158
+ const videoCenterXPercent = (videoCenterX / containerRect.width) * 100;
159
+ const videoCenterYPercent = (videoCenterY / containerRect.height) * 100;
160
+ // Update CSS custom properties for mask sizing and positioning
161
+ this.el.style.setProperty('--mask-width', `${maskWidthPercent}%`);
162
+ this.el.style.setProperty('--mask-height', `${maskHeightPercent}%`);
163
+ this.el.style.setProperty('--mask-center-x', `${videoCenterXPercent}%`);
164
+ this.el.style.setProperty('--mask-center-y', `${videoCenterYPercent}%`);
165
+ // Mark mask as ready now that dimensions are calculated
166
+ this.isMaskReady = true;
167
+ this.debugLog('🎯 Mask dimensions updated:', {
168
+ video: { width: videoWidth, height: videoHeight },
169
+ displayed: { width: displayedVideoWidth, height: displayedVideoHeight },
170
+ mask: { widthPercent: maskWidthPercent, heightPercent: maskHeightPercent },
171
+ center: { x: videoCenterXPercent, y: videoCenterYPercent },
172
+ offset: { x: videoOffsetX, y: videoOffsetY }
173
+ });
88
174
  }
89
175
  initializeCanvasPool() {
90
176
  // Preprocess canvas - reused for every inference
@@ -216,14 +302,60 @@ export class JaakStamps {
216
302
  this.isModelPreloaded = false;
217
303
  this.debugLog('🧹 Canvas pool cleaned up');
218
304
  }
305
+ async getMaxResolution() {
306
+ try {
307
+ // Primero obtén un stream básico para acceder a las capacidades
308
+ const tempStream = await navigator.mediaDevices.getUserMedia({
309
+ video: { facingMode: "environment" }
310
+ });
311
+ const videoTrack = tempStream.getVideoTracks()[0];
312
+ const capabilities = videoTrack.getCapabilities();
313
+ // Detener el stream temporal
314
+ tempStream.getTracks().forEach(track => track.stop());
315
+ // Construir restricciones con resolución optimizada para tablets
316
+ const constraints = {
317
+ facingMode: "environment"
318
+ };
319
+ if (capabilities.width && capabilities.height) {
320
+ // Limitar resolución máxima para tablets para evitar problemas de rendimiento
321
+ const maxWidth = Math.min(capabilities.width.max, 1920);
322
+ const maxHeight = Math.min(capabilities.height.max, 1080);
323
+ // Para tablets, usar resolución moderada en lugar de máxima
324
+ const isTablet = /iPad|Android/i.test(navigator.userAgent) && window.innerWidth >= 768;
325
+ if (isTablet) {
326
+ constraints.width = { ideal: Math.min(maxWidth, 1280) };
327
+ constraints.height = { ideal: Math.min(maxHeight, 720) };
328
+ }
329
+ else {
330
+ constraints.width = { ideal: maxWidth };
331
+ constraints.height = { ideal: maxHeight };
332
+ }
333
+ this.debugLog('📐 Resolution capabilities:', {
334
+ maxWidth: capabilities.width.max,
335
+ maxHeight: capabilities.height.max,
336
+ selectedWidth: constraints.width.ideal,
337
+ selectedHeight: constraints.height.ideal,
338
+ isTablet
339
+ });
340
+ }
341
+ return constraints;
342
+ }
343
+ catch (err) {
344
+ this.debugLog('⚠️ Could not get capabilities, using fallback');
345
+ // Fallback optimizado para tablets
346
+ const isTablet = /iPad|Android/i.test(navigator.userAgent) && window.innerWidth >= 768;
347
+ return {
348
+ facingMode: "environment",
349
+ width: { ideal: isTablet ? 1280 : 1920 },
350
+ height: { ideal: isTablet ? 720 : 1080 }
351
+ };
352
+ }
353
+ }
219
354
  async setupCamera() {
220
355
  try {
356
+ const constraints = await this.getMaxResolution();
221
357
  const stream = await navigator.mediaDevices.getUserMedia({
222
- video: {
223
- width: { exact: 640 },
224
- height: { exact: 640 },
225
- facingMode: "environment"
226
- },
358
+ video: constraints,
227
359
  audio: false
228
360
  });
229
361
  if (this.videoRef) {
@@ -238,6 +370,12 @@ export class JaakStamps {
238
370
  this.videoRef.onloadedmetadata = async () => {
239
371
  await this.videoRef.play();
240
372
  this.isVideoActive = true;
373
+ // Update mask dimensions once video is loaded
374
+ if (this.canvasRef) {
375
+ const container = this.canvasRef.parentElement;
376
+ const rect = container.getBoundingClientRect();
377
+ this.updateMaskDimensions(rect);
378
+ }
241
379
  resolve();
242
380
  };
243
381
  });
@@ -415,13 +553,57 @@ export class JaakStamps {
415
553
  return isCentered && isGoodSize;
416
554
  }
417
555
  checkSideAlignment(box) {
418
- // Obtener las coordenadas del marco de referencia (máscara)
556
+ if (!this.videoRef)
557
+ return { top: false, right: false, bottom: false, left: false };
558
+ // Get video dimensions to calculate actual mask boundaries in model space
559
+ const videoWidth = this.videoRef.videoWidth;
560
+ const videoHeight = this.videoRef.videoHeight;
561
+ if (videoWidth === 0 || videoHeight === 0) {
562
+ return { top: false, right: false, bottom: false, left: false };
563
+ }
564
+ // Calculate video aspect ratio
565
+ const videoAspectRatio = videoWidth / videoHeight;
566
+ // The model sees video stretched to 320x320, but we need to calculate where
567
+ // the mask should be in this distorted space to match the visual mask
568
+ // In the visual display, we calculate mask size based on the limiting dimension
569
+ // We need to replicate this logic but account for the distortion in model space
570
+ // Calculate the "display" dimensions (what the visual mask calculations use)
571
+ const containerAspectRatio = 1; // Assume square container for simplicity
572
+ let displayedVideoWidth, displayedVideoHeight;
573
+ if (videoAspectRatio > containerAspectRatio) {
574
+ // Video is wider - letterboxed in display
575
+ displayedVideoWidth = this.INPUT_SIZE;
576
+ displayedVideoHeight = this.INPUT_SIZE / videoAspectRatio;
577
+ }
578
+ else {
579
+ // Video is taller - pillarboxed in display
580
+ displayedVideoHeight = this.INPUT_SIZE;
581
+ displayedVideoWidth = this.INPUT_SIZE * videoAspectRatio;
582
+ }
583
+ // Calculate mask dimensions using the same logic as updateMaskDimensions
584
+ const maxWidthByHeight = displayedVideoHeight * this.ID1_ASPECT_RATIO;
585
+ let visualMaskWidth, visualMaskHeight;
586
+ if (maxWidthByHeight <= displayedVideoWidth) {
587
+ // Video height is the limiting factor
588
+ visualMaskHeight = displayedVideoHeight * 0.9;
589
+ visualMaskWidth = visualMaskHeight * this.ID1_ASPECT_RATIO;
590
+ }
591
+ else {
592
+ // Video width is the limiting factor
593
+ visualMaskWidth = displayedVideoWidth * 0.9;
594
+ visualMaskHeight = visualMaskWidth / this.ID1_ASPECT_RATIO;
595
+ }
596
+ // Now map these visual mask dimensions to the distorted model space
597
+ // The model stretches video to 320x320, so we need to apply the inverse transformation
598
+ const modelMaskWidth = visualMaskWidth * (this.INPUT_SIZE / displayedVideoWidth);
599
+ const modelMaskHeight = visualMaskHeight * (this.INPUT_SIZE / displayedVideoHeight);
600
+ // Calculate mask boundaries in model coordinate system (always centered in 320x320)
419
601
  const maskCenterX = this.INPUT_SIZE / 2;
420
602
  const maskCenterY = this.INPUT_SIZE / 2;
421
- const maskLeft = maskCenterX - (this.MASK_WIDTH / 2);
422
- const maskRight = maskCenterX + (this.MASK_WIDTH / 2);
423
- const maskTop = maskCenterY - (this.MASK_HEIGHT / 2);
424
- const maskBottom = maskCenterY + (this.MASK_HEIGHT / 2);
603
+ const maskLeft = maskCenterX - (modelMaskWidth / 2);
604
+ const maskRight = maskCenterX + (modelMaskWidth / 2);
605
+ const maskTop = maskCenterY - (modelMaskHeight / 2);
606
+ const maskBottom = maskCenterY + (modelMaskHeight / 2);
425
607
  // Obtener las coordenadas del documento detectado
426
608
  let docLeft = box.x;
427
609
  let docRight = box.x + box.w;
@@ -518,12 +700,45 @@ export class JaakStamps {
518
700
  }
519
701
  }
520
702
  drawDetections(ctx, boxes) {
521
- // Scale factor to convert from model coordinates (320x320) to canvas coordinates (640x640)
522
- const scale = this.canvasRef.width / this.INPUT_SIZE;
703
+ if (!this.videoRef)
704
+ return;
705
+ // Get video and container dimensions
706
+ const videoWidth = this.videoRef.videoWidth;
707
+ const videoHeight = this.videoRef.videoHeight;
708
+ const containerWidth = this.canvasRef.width;
709
+ const containerHeight = this.canvasRef.height;
710
+ if (videoWidth === 0 || videoHeight === 0)
711
+ return;
712
+ // Calculate video aspect ratio and container aspect ratio
713
+ const videoAspectRatio = videoWidth / videoHeight;
714
+ const containerAspectRatio = containerWidth / containerHeight;
715
+ // Determine how video fits in container (same logic as updateMaskDimensions)
716
+ let displayedVideoWidth, displayedVideoHeight;
717
+ let videoOffsetX = 0, videoOffsetY = 0;
718
+ if (videoAspectRatio > containerAspectRatio) {
719
+ // Video is wider - letterboxed (black bars top/bottom)
720
+ displayedVideoWidth = containerWidth;
721
+ displayedVideoHeight = containerWidth / videoAspectRatio;
722
+ videoOffsetY = (containerHeight - displayedVideoHeight) / 2;
723
+ }
724
+ else {
725
+ // Video is taller - pillarboxed (black bars left/right)
726
+ displayedVideoHeight = containerHeight;
727
+ displayedVideoWidth = containerHeight * videoAspectRatio;
728
+ videoOffsetX = (containerWidth - displayedVideoWidth) / 2;
729
+ }
730
+ // Scale factor from model coordinates (320x320) to displayed video area
731
+ const scaleX = displayedVideoWidth / this.INPUT_SIZE;
732
+ const scaleY = displayedVideoHeight / this.INPUT_SIZE;
523
733
  boxes.forEach(det => {
734
+ // Convert model coordinates to displayed video coordinates
735
+ const x = det.x * scaleX + videoOffsetX;
736
+ const y = det.y * scaleY + videoOffsetY;
737
+ const w = det.w * scaleX;
738
+ const h = det.h * scaleY;
524
739
  ctx.strokeStyle = "#32406C";
525
740
  ctx.lineWidth = 2;
526
- ctx.strokeRect(det.x * scale, det.y * scale, det.w * scale, det.h * scale);
741
+ ctx.strokeRect(x, y, w, h);
527
742
  });
528
743
  }
529
744
  takeScreenshot() {
@@ -689,7 +904,7 @@ export class JaakStamps {
689
904
  this.cleanup();
690
905
  }
691
906
  render() {
692
- return (h("div", { key: '788a458497c2303875f8accea1e0cc579379ff94', class: "detector-container" }, h("div", { key: 'ed491d2fb8399f7236ab492a100932518455be79', class: "video-container" }, h("video", { key: '8187f838c75776432dc48db4cd9bfe4ee350830d', ref: el => this.videoRef = el, width: "640", height: "640", autoplay: true, muted: true, playsinline: true, class: this.shouldMirrorVideo ? 'mirror' : '', style: { display: this.isVideoActive ? 'block' : 'none' } }), h("canvas", { key: '8cc31c45881d4f23c56c5ed246c9e59e30e0a782', ref: el => this.canvasRef = el, width: "640", height: "640", class: this.shouldMirrorVideo ? 'mirror' : '' }), h("div", { key: '54441a535098860601a7ef4f1b31a0d2a40a911b', class: "overlay-mask" }, h("div", { key: 'f9272bcb85c849e3b3170a0062c43e64359f112d', class: "card-outline" }, h("div", { key: '8a260667206ce2fecac262f2b5e81d0ebdccbb3c', class: "side side-top" }), h("div", { key: 'c9c0d25087aa8332027815829fc7bbd937f0596b', class: "side side-right" }), h("div", { key: '39394f06936ff01a525c83343ec05e6161611899', class: "side side-bottom" }), h("div", { key: '11799336a4b6f72d6042c02206626d947422ef0f', class: "side side-left" }), h("div", { key: '93d5636f85514d3fff76415ed806e6845c6e7fe3', class: "corner corner-tl" }), h("div", { key: '3bfc09f919744d1d04dcb0c08fb923879dc217c9', class: "corner corner-tr" }), h("div", { key: '6d9fa1395a606960597bed65301679dcd12fc8bb', class: "corner corner-bl" }), h("div", { key: '4819402bd891c4a8d581e1e10449850b3a580e96', class: "corner corner-br" }), !this.showFlipAnimation && !this.showSuccessAnimation && (h("div", { key: '26a57343cfccea003c3edc65c5c53ac97b16de53', class: "guide-text" }, this.statusMessage))), this.captureStep === 'back' && !this.showFlipAnimation && !this.showSuccessAnimation && (h("button", { key: '641d63e9f9e76fa81b2f770a1036b337f54a2c23', class: "skip-button", onClick: () => this.skipBackCapture(), type: "button" }, "Saltar reverso"))), this.isCapturing && (h("div", { key: 'e7ab12f7ad092d233e19de5bc7a3e424b6bc70c3', class: "capture-animation" })), this.showFlipAnimation && (h("div", { key: 'dddbe58a92172e9ab1e7002a3b4310d8e552926f', class: "flip-animation" }, h("div", { key: 'c2f49ee888573d873d67e8d4871bb6b1d8f2bc8d', class: "id-card-icon" }), h("div", { key: '6e71e7a9a3a85bb4f9252955ea220e64a25ae479', class: "flip-text" }, "\u00A1Voltea tu identificaci\u00F3n!"))), this.showSuccessAnimation && (h("div", { key: 'c9d8fd42711764ea197c7d13ef3d90e34b559e64', class: "success-animation" }, h("div", { key: '50dd978c2c501b53591346d75dac018006f42992', class: "check-icon" }), h("div", { key: 'ad25bc5811d435ceb7a1e9791cd3fc5dbd5c5227', class: "success-text" }, "\u00A1Proceso completado!"))), this.isLoading && (h("div", { key: '9ac52c0754d165f8141989b17398a89b21790976', class: "loading-overlay" }, h("div", { key: 'ccffac3b53db3ac4beddbf43ee8cff693e29fd73', class: "loading-spinner" }), h("div", { key: '708c4aad55e18be3fc77fe3f169430475dce7ee1', class: "loading-text" }, this.statusMessage))), h("div", { key: 'e0addbcea4b176772de10a608c6de4242da2a7f3', class: "watermark" }, h("img", { key: 'd3d2a989a01e2a64a100ccdc43a027f969d4b8b1', src: "https://storage.googleapis.com/jaak-static/commons/powered-by-jaak.png", alt: "Powered by Jaak" })))));
907
+ return (h("div", { key: 'b63a5966ee08d4de7b5d8a10dbf248150e8620ec', class: "detector-container" }, h("div", { key: '1c62d540a1802a758b90a543edfdc364123ae950', class: "video-container" }, h("video", { key: '18e066e0005c3b287983ebb29c9e4aa147eaaf8d', ref: el => this.videoRef = el, autoplay: true, muted: true, playsinline: true, class: this.shouldMirrorVideo ? 'mirror' : '', style: { display: this.isVideoActive ? 'block' : 'none' } }), h("canvas", { key: '43cd238e38a5a2ff9c140800ac686580a7ca33b9', ref: el => this.canvasRef = el, class: this.shouldMirrorVideo ? 'mirror' : '' }), this.isMaskReady && (h("div", { key: 'f43db67b9d1ef47264092694c3ab8afa9925e258', class: "overlay-mask" }, h("div", { key: 'ac60d94edc4cfa6ccf91ba6e04d2be6e4368be97', class: "card-outline" }, h("div", { key: 'de6aca9bbfe778890adf4c69e8525a114c37f6d4', class: "side side-top" }), h("div", { key: '7ce7b1e2215b01ea5d714b8ecc988361e384b6f7', class: "side side-right" }), h("div", { key: 'b79a68f68facb42ca139d6a2bc8e1e6d7133872d', class: "side side-bottom" }), h("div", { key: '81d90c4a08cfc2267cec195a3b342c87bb1d07d0', class: "side side-left" }), h("div", { key: 'c93c83abb8e17a5cb9c1bd53b2e1239ef50c7bf4', class: "corner corner-tl" }), h("div", { key: '81ca7cf2aab7026e851bd226843a6db5807315d5', class: "corner corner-tr" }), h("div", { key: 'c451fe226ac15023ee9799443060f1da620cb3b3', class: "corner corner-bl" }), h("div", { key: '7c3e2b2a21bd37144fe6b4d5df67df625dc12103', class: "corner corner-br" }), !this.showFlipAnimation && !this.showSuccessAnimation && (h("div", { key: '74ab171b64bdf0e1269845b4fcd9bf8e2caf891d', class: "guide-text" }, this.statusMessage))), this.captureStep === 'back' && !this.showFlipAnimation && !this.showSuccessAnimation && (h("button", { key: '2b2b9387ce8b023acf0d65c7f7b3480211f7cb2d', class: "skip-button", onClick: () => this.skipBackCapture(), type: "button" }, "Saltar reverso")))), this.isCapturing && (h("div", { key: 'eabd88499f52098f79e434afcce73acb2727c411', class: "capture-animation" })), this.showFlipAnimation && (h("div", { key: '9affe6040a39260747db98db2b68a103fb719fbb', class: "flip-animation" }, h("div", { key: '8b25f3688a16f4b070664237a093122a6720edfb', class: "id-card-icon" }), h("div", { key: '805b11cfb4d06a25e02370b06f6cf15f0f0cf6b5', class: "flip-text" }, "\u00A1Voltea tu identificaci\u00F3n!"))), this.showSuccessAnimation && (h("div", { key: 'cba337b6fef8b919425566c0c9c5de797d42c4c8', class: "success-animation" }, h("div", { key: '4a88df3f9285757b489b030ba985d720a8a3badf', class: "check-icon" }), h("div", { key: 'a0bdd89c2c6274330ba66a6b6bba86ab6c725979', class: "success-text" }, "\u00A1Proceso completado!"))), this.isLoading && (h("div", { key: '564fc1333b0fb69102e26ac1da4e77786a9bc7a3', class: "loading-overlay" }, h("div", { key: '283e4a6315a39b26203e19a13f35389bc1870a0f', class: "loading-spinner" }), h("div", { key: '7e4f00a1fcee1bbf29d74c8be35a72aba2c1041a', class: "loading-text" }, this.statusMessage))), h("div", { key: '6cbe1fea1c4a7d3cb25cd34ee04becb5fa538dfd', class: "watermark" }, h("img", { key: '1bd4157b7f74753570ddf48682acf419a6de03ea', src: "https://storage.googleapis.com/jaak-static/commons/powered-by-jaak.png", alt: "Powered by Jaak" })))));
693
908
  }
694
909
  static get is() { return "jaak-stamps"; }
695
910
  static get encapsulation() { return "shadow"; }
@@ -765,7 +980,8 @@ export class JaakStamps {
765
980
  "sideAlignment": {},
766
981
  "isDetectionPaused": {},
767
982
  "isLoading": {},
768
- "isModelPreloaded": {}
983
+ "isModelPreloaded": {},
984
+ "isMaskReady": {}
769
985
  };
770
986
  }
771
987
  static get events() {