source: trip-planner-front/node_modules/primeng/esm2020/inputmask/inputmask.mjs

Last change on this file was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 73.0 KB
Line 
1/*
2 Port of jQuery MaskedInput by DigitalBush as a Native Angular2 Component in Typescript without jQuery
3 https://github.com/digitalBush/jquery.maskedinput/
4
5 Copyright (c) 2007-2014 Josh Bush (digitalbush.com)
6
7 Permission is hereby granted, free of charge, to any person
8 obtaining a copy of this software and associated documentation
9 files (the "Software"), to deal in the Software without
10 restriction, including without limitation the rights to use,
11 copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the
13 Software is furnished to do so, subject to the following
14 conditions:
15
16 The above copyright notice and this permission notice shall be
17 included in all copies or substantial portions of the Software.
18
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
21 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 OTHER DEALINGS IN THE SOFTWARE.
27*/
28import { NgModule, Component, Input, forwardRef, Output, EventEmitter, ViewChild, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
29import { CommonModule } from '@angular/common';
30import { DomHandler } from 'primeng/dom';
31import { InputTextModule } from 'primeng/inputtext';
32import { NG_VALUE_ACCESSOR } from '@angular/forms';
33import * as i0 from "@angular/core";
34import * as i1 from "primeng/inputtext";
35import * as i2 from "@angular/common";
36export const INPUTMASK_VALUE_ACCESSOR = {
37 provide: NG_VALUE_ACCESSOR,
38 useExisting: forwardRef(() => InputMask),
39 multi: true
40};
41export class InputMask {
42 constructor(el, cd) {
43 this.el = el;
44 this.cd = cd;
45 this.type = 'text';
46 this.slotChar = '_';
47 this.autoClear = true;
48 this.characterPattern = '[A-Za-z]';
49 this.onComplete = new EventEmitter();
50 this.onFocus = new EventEmitter();
51 this.onBlur = new EventEmitter();
52 this.onInput = new EventEmitter();
53 this.onKeydown = new EventEmitter();
54 this.onModelChange = () => { };
55 this.onModelTouched = () => { };
56 }
57 ngOnInit() {
58 let ua = DomHandler.getUserAgent();
59 this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
60 this.initMask();
61 }
62 get mask() {
63 return this._mask;
64 }
65 set mask(val) {
66 this._mask = val;
67 this.initMask();
68 this.writeValue('');
69 this.onModelChange(this.value);
70 }
71 initMask() {
72 this.tests = [];
73 this.partialPosition = this.mask.length;
74 this.len = this.mask.length;
75 this.firstNonMaskPos = null;
76 this.defs = {
77 '9': '[0-9]',
78 'a': this.characterPattern,
79 '*': `${this.characterPattern}|[0-9]`
80 };
81 let maskTokens = this.mask.split('');
82 for (let i = 0; i < maskTokens.length; i++) {
83 let c = maskTokens[i];
84 if (c == '?') {
85 this.len--;
86 this.partialPosition = i;
87 }
88 else if (this.defs[c]) {
89 this.tests.push(new RegExp(this.defs[c]));
90 if (this.firstNonMaskPos === null) {
91 this.firstNonMaskPos = this.tests.length - 1;
92 }
93 if (i < this.partialPosition) {
94 this.lastRequiredNonMaskPos = this.tests.length - 1;
95 }
96 }
97 else {
98 this.tests.push(null);
99 }
100 }
101 this.buffer = [];
102 for (let i = 0; i < maskTokens.length; i++) {
103 let c = maskTokens[i];
104 if (c != '?') {
105 if (this.defs[c])
106 this.buffer.push(this.getPlaceholder(i));
107 else
108 this.buffer.push(c);
109 }
110 }
111 this.defaultBuffer = this.buffer.join('');
112 }
113 writeValue(value) {
114 this.value = value;
115 if (this.inputViewChild && this.inputViewChild.nativeElement) {
116 if (this.value == undefined || this.value == null)
117 this.inputViewChild.nativeElement.value = '';
118 else
119 this.inputViewChild.nativeElement.value = this.value;
120 this.checkVal();
121 this.focusText = this.inputViewChild.nativeElement.value;
122 this.updateFilledState();
123 }
124 }
125 registerOnChange(fn) {
126 this.onModelChange = fn;
127 }
128 registerOnTouched(fn) {
129 this.onModelTouched = fn;
130 }
131 setDisabledState(val) {
132 this.disabled = val;
133 this.cd.markForCheck();
134 }
135 caret(first, last) {
136 let range, begin, end;
137 if (!this.inputViewChild.nativeElement.offsetParent || this.inputViewChild.nativeElement !== this.inputViewChild.nativeElement.ownerDocument.activeElement) {
138 return;
139 }
140 if (typeof first == 'number') {
141 begin = first;
142 end = (typeof last === 'number') ? last : begin;
143 if (this.inputViewChild.nativeElement.setSelectionRange) {
144 this.inputViewChild.nativeElement.setSelectionRange(begin, end);
145 }
146 else if (this.inputViewChild.nativeElement['createTextRange']) {
147 range = this.inputViewChild.nativeElement['createTextRange']();
148 range.collapse(true);
149 range.moveEnd('character', end);
150 range.moveStart('character', begin);
151 range.select();
152 }
153 }
154 else {
155 if (this.inputViewChild.nativeElement.setSelectionRange) {
156 begin = this.inputViewChild.nativeElement.selectionStart;
157 end = this.inputViewChild.nativeElement.selectionEnd;
158 }
159 else if (document['selection'] && document['selection'].createRange) {
160 range = document['selection'].createRange();
161 begin = 0 - range.duplicate().moveStart('character', -100000);
162 end = begin + range.text.length;
163 }
164 return { begin: begin, end: end };
165 }
166 }
167 isCompleted() {
168 let completed;
169 for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) {
170 if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) {
171 return false;
172 }
173 }
174 return true;
175 }
176 getPlaceholder(i) {
177 if (i < this.slotChar.length) {
178 return this.slotChar.charAt(i);
179 }
180 return this.slotChar.charAt(0);
181 }
182 seekNext(pos) {
183 while (++pos < this.len && !this.tests[pos])
184 ;
185 return pos;
186 }
187 seekPrev(pos) {
188 while (--pos >= 0 && !this.tests[pos])
189 ;
190 return pos;
191 }
192 shiftL(begin, end) {
193 let i, j;
194 if (begin < 0) {
195 return;
196 }
197 for (i = begin, j = this.seekNext(end); i < this.len; i++) {
198 if (this.tests[i]) {
199 if (j < this.len && this.tests[i].test(this.buffer[j])) {
200 this.buffer[i] = this.buffer[j];
201 this.buffer[j] = this.getPlaceholder(j);
202 }
203 else {
204 break;
205 }
206 j = this.seekNext(j);
207 }
208 }
209 this.writeBuffer();
210 this.caret(Math.max(this.firstNonMaskPos, begin));
211 }
212 shiftR(pos) {
213 let i, c, j, t;
214 for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) {
215 if (this.tests[i]) {
216 j = this.seekNext(i);
217 t = this.buffer[i];
218 this.buffer[i] = c;
219 if (j < this.len && this.tests[j].test(t)) {
220 c = t;
221 }
222 else {
223 break;
224 }
225 }
226 }
227 }
228 handleAndroidInput(e) {
229 var curVal = this.inputViewChild.nativeElement.value;
230 var pos = this.caret();
231 if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
232 // a deletion or backspace happened
233 this.checkVal(true);
234 while (pos.begin > 0 && !this.tests[pos.begin - 1])
235 pos.begin--;
236 if (pos.begin === 0) {
237 while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin])
238 pos.begin++;
239 }
240 setTimeout(() => {
241 this.caret(pos.begin, pos.begin);
242 this.updateModel(e);
243 if (this.isCompleted()) {
244 this.onComplete.emit();
245 }
246 }, 0);
247 }
248 else {
249 this.checkVal(true);
250 while (pos.begin < this.len && !this.tests[pos.begin])
251 pos.begin++;
252 setTimeout(() => {
253 this.caret(pos.begin, pos.begin);
254 this.updateModel(e);
255 if (this.isCompleted()) {
256 this.onComplete.emit();
257 }
258 }, 0);
259 }
260 }
261 onInputBlur(e) {
262 this.focused = false;
263 this.onModelTouched();
264 this.checkVal();
265 this.updateFilledState();
266 this.onBlur.emit(e);
267 if (this.inputViewChild.nativeElement.value != this.focusText || this.inputViewChild.nativeElement.value != this.value) {
268 this.updateModel(e);
269 let event = document.createEvent('HTMLEvents');
270 event.initEvent('change', true, false);
271 this.inputViewChild.nativeElement.dispatchEvent(event);
272 }
273 }
274 onInputKeydown(e) {
275 if (this.readonly) {
276 return;
277 }
278 let k = e.which || e.keyCode, pos, begin, end;
279 let iPhone = /iphone/i.test(DomHandler.getUserAgent());
280 this.oldVal = this.inputViewChild.nativeElement.value;
281 this.onKeydown.emit(e);
282 //backspace, delete, and escape get special treatment
283 if (k === 8 || k === 46 || (iPhone && k === 127)) {
284 pos = this.caret();
285 begin = pos.begin;
286 end = pos.end;
287 if (end - begin === 0) {
288 begin = k !== 46 ? this.seekPrev(begin) : (end = this.seekNext(begin - 1));
289 end = k === 46 ? this.seekNext(end) : end;
290 }
291 this.clearBuffer(begin, end);
292 this.shiftL(begin, end - 1);
293 this.updateModel(e);
294 this.onInput.emit(e);
295 e.preventDefault();
296 }
297 else if (k === 13) { // enter
298 this.onInputBlur(e);
299 this.updateModel(e);
300 }
301 else if (k === 27) { // escape
302 this.inputViewChild.nativeElement.value = this.focusText;
303 this.caret(0, this.checkVal());
304 this.updateModel(e);
305 e.preventDefault();
306 }
307 }
308 onKeyPress(e) {
309 if (this.readonly) {
310 return;
311 }
312 var k = e.which || e.keyCode, pos = this.caret(), p, c, next, completed;
313 if (e.ctrlKey || e.altKey || e.metaKey || k < 32 || (k > 34 && k < 41)) { //Ignore
314 return;
315 }
316 else if (k && k !== 13) {
317 if (pos.end - pos.begin !== 0) {
318 this.clearBuffer(pos.begin, pos.end);
319 this.shiftL(pos.begin, pos.end - 1);
320 }
321 p = this.seekNext(pos.begin - 1);
322 if (p < this.len) {
323 c = String.fromCharCode(k);
324 if (this.tests[p].test(c)) {
325 this.shiftR(p);
326 this.buffer[p] = c;
327 this.writeBuffer();
328 next = this.seekNext(p);
329 if (/android/i.test(DomHandler.getUserAgent())) {
330 //Path for CSP Violation on FireFox OS 1.1
331 let proxy = () => {
332 this.caret(next);
333 };
334 setTimeout(proxy, 0);
335 }
336 else {
337 this.caret(next);
338 }
339 if (pos.begin <= this.lastRequiredNonMaskPos) {
340 completed = this.isCompleted();
341 }
342 this.onInput.emit(e);
343 }
344 }
345 e.preventDefault();
346 }
347 this.updateModel(e);
348 this.updateFilledState();
349 if (completed) {
350 this.onComplete.emit();
351 }
352 }
353 clearBuffer(start, end) {
354 let i;
355 for (i = start; i < end && i < this.len; i++) {
356 if (this.tests[i]) {
357 this.buffer[i] = this.getPlaceholder(i);
358 }
359 }
360 }
361 writeBuffer() {
362 this.inputViewChild.nativeElement.value = this.buffer.join('');
363 }
364 checkVal(allow) {
365 //try to place characters where they belong
366 let test = this.inputViewChild.nativeElement.value, lastMatch = -1, i, c, pos;
367 for (i = 0, pos = 0; i < this.len; i++) {
368 if (this.tests[i]) {
369 this.buffer[i] = this.getPlaceholder(i);
370 while (pos++ < test.length) {
371 c = test.charAt(pos - 1);
372 if (this.tests[i].test(c)) {
373 this.buffer[i] = c;
374 lastMatch = i;
375 break;
376 }
377 }
378 if (pos > test.length) {
379 this.clearBuffer(i + 1, this.len);
380 break;
381 }
382 }
383 else {
384 if (this.buffer[i] === test.charAt(pos)) {
385 pos++;
386 }
387 if (i < this.partialPosition) {
388 lastMatch = i;
389 }
390 }
391 }
392 if (allow) {
393 this.writeBuffer();
394 }
395 else if (lastMatch + 1 < this.partialPosition) {
396 if (this.autoClear || this.buffer.join('') === this.defaultBuffer) {
397 // Invalid value. Remove it and replace it with the
398 // mask, which is the default behavior.
399 if (this.inputViewChild.nativeElement.value)
400 this.inputViewChild.nativeElement.value = '';
401 this.clearBuffer(0, this.len);
402 }
403 else {
404 // Invalid value, but we opt to show the value to the
405 // user and allow them to correct their mistake.
406 this.writeBuffer();
407 }
408 }
409 else {
410 this.writeBuffer();
411 this.inputViewChild.nativeElement.value = this.inputViewChild.nativeElement.value.substring(0, lastMatch + 1);
412 }
413 return (this.partialPosition ? i : this.firstNonMaskPos);
414 }
415 onInputFocus(event) {
416 if (this.readonly) {
417 return;
418 }
419 this.focused = true;
420 clearTimeout(this.caretTimeoutId);
421 let pos;
422 this.focusText = this.inputViewChild.nativeElement.value;
423 pos = this.checkVal();
424 this.caretTimeoutId = setTimeout(() => {
425 if (this.inputViewChild.nativeElement !== this.inputViewChild.nativeElement.ownerDocument.activeElement) {
426 return;
427 }
428 this.writeBuffer();
429 if (pos == this.mask.replace("?", "").length) {
430 this.caret(0, pos);
431 }
432 else {
433 this.caret(pos);
434 }
435 }, 10);
436 this.onFocus.emit(event);
437 }
438 onInputChange(event) {
439 if (this.androidChrome)
440 this.handleAndroidInput(event);
441 else
442 this.handleInputChange(event);
443 this.onInput.emit(event);
444 }
445 handleInputChange(event) {
446 if (this.readonly) {
447 return;
448 }
449 setTimeout(() => {
450 var pos = this.checkVal(true);
451 this.caret(pos);
452 this.updateModel(event);
453 if (this.isCompleted()) {
454 this.onComplete.emit();
455 }
456 }, 0);
457 }
458 getUnmaskedValue() {
459 let unmaskedBuffer = [];
460 for (let i = 0; i < this.buffer.length; i++) {
461 let c = this.buffer[i];
462 if (this.tests[i] && c != this.getPlaceholder(i)) {
463 unmaskedBuffer.push(c);
464 }
465 }
466 return unmaskedBuffer.join('');
467 }
468 updateModel(e) {
469 const updatedValue = this.unmask ? this.getUnmaskedValue() : e.target.value;
470 if (updatedValue !== null || updatedValue !== undefined) {
471 this.value = updatedValue;
472 this.onModelChange(this.value);
473 }
474 }
475 updateFilledState() {
476 this.filled = this.inputViewChild.nativeElement && this.inputViewChild.nativeElement.value != '';
477 }
478 focus() {
479 this.inputViewChild.nativeElement.focus();
480 }
481 ngOnDestroy() {
482 }
483}
484InputMask.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InputMask, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
485InputMask.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: InputMask, selector: "p-inputMask", inputs: { type: "type", slotChar: "slotChar", autoClear: "autoClear", style: "style", inputId: "inputId", styleClass: "styleClass", placeholder: "placeholder", size: "size", maxlength: "maxlength", tabindex: "tabindex", title: "title", ariaLabel: "ariaLabel", ariaRequired: "ariaRequired", disabled: "disabled", readonly: "readonly", unmask: "unmask", name: "name", required: "required", characterPattern: "characterPattern", autoFocus: "autoFocus", autocomplete: "autocomplete", mask: "mask" }, outputs: { onComplete: "onComplete", onFocus: "onFocus", onBlur: "onBlur", onInput: "onInput", onKeydown: "onKeydown" }, host: { properties: { "class.p-inputwrapper-filled": "filled", "class.p-inputwrapper-focus": "focused" }, classAttribute: "p-element" }, providers: [INPUTMASK_VALUE_ACCESSOR], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: `<input #input pInputText class="p-inputmask" [attr.id]="inputId" [attr.type]="type" [attr.name]="name" [ngStyle]="style" [ngClass]="styleClass" [attr.placeholder]="placeholder" [attr.title]="title"
486 [attr.size]="size" [attr.autocomplete]="autocomplete" [attr.maxlength]="maxlength" [attr.tabindex]="tabindex" [attr.aria-label]="ariaLabel" [attr.aria-required]="ariaRequired" [disabled]="disabled" [readonly]="readonly" [attr.required]="required"
487 (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" (keydown)="onInputKeydown($event)" (keypress)="onKeyPress($event)" [attr.autofocus]="autoFocus"
488 (input)="onInputChange($event)" (paste)="handleInputChange($event)">`, isInline: true, directives: [{ type: i1.InputText, selector: "[pInputText]" }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
489i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InputMask, decorators: [{
490 type: Component,
491 args: [{
492 selector: 'p-inputMask',
493 template: `<input #input pInputText class="p-inputmask" [attr.id]="inputId" [attr.type]="type" [attr.name]="name" [ngStyle]="style" [ngClass]="styleClass" [attr.placeholder]="placeholder" [attr.title]="title"
494 [attr.size]="size" [attr.autocomplete]="autocomplete" [attr.maxlength]="maxlength" [attr.tabindex]="tabindex" [attr.aria-label]="ariaLabel" [attr.aria-required]="ariaRequired" [disabled]="disabled" [readonly]="readonly" [attr.required]="required"
495 (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" (keydown)="onInputKeydown($event)" (keypress)="onKeyPress($event)" [attr.autofocus]="autoFocus"
496 (input)="onInputChange($event)" (paste)="handleInputChange($event)">`,
497 host: {
498 'class': 'p-element',
499 '[class.p-inputwrapper-filled]': 'filled',
500 '[class.p-inputwrapper-focus]': 'focused'
501 },
502 providers: [INPUTMASK_VALUE_ACCESSOR],
503 changeDetection: ChangeDetectionStrategy.OnPush,
504 encapsulation: ViewEncapsulation.None
505 }]
506 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { type: [{
507 type: Input
508 }], slotChar: [{
509 type: Input
510 }], autoClear: [{
511 type: Input
512 }], style: [{
513 type: Input
514 }], inputId: [{
515 type: Input
516 }], styleClass: [{
517 type: Input
518 }], placeholder: [{
519 type: Input
520 }], size: [{
521 type: Input
522 }], maxlength: [{
523 type: Input
524 }], tabindex: [{
525 type: Input
526 }], title: [{
527 type: Input
528 }], ariaLabel: [{
529 type: Input
530 }], ariaRequired: [{
531 type: Input
532 }], disabled: [{
533 type: Input
534 }], readonly: [{
535 type: Input
536 }], unmask: [{
537 type: Input
538 }], name: [{
539 type: Input
540 }], required: [{
541 type: Input
542 }], characterPattern: [{
543 type: Input
544 }], autoFocus: [{
545 type: Input
546 }], autocomplete: [{
547 type: Input
548 }], inputViewChild: [{
549 type: ViewChild,
550 args: ['input', { static: true }]
551 }], onComplete: [{
552 type: Output
553 }], onFocus: [{
554 type: Output
555 }], onBlur: [{
556 type: Output
557 }], onInput: [{
558 type: Output
559 }], onKeydown: [{
560 type: Output
561 }], mask: [{
562 type: Input
563 }] } });
564export class InputMaskModule {
565}
566InputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
567InputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InputMaskModule, declarations: [InputMask], imports: [CommonModule, InputTextModule], exports: [InputMask] });
568InputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InputMaskModule, imports: [[CommonModule, InputTextModule]] });
569i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: InputMaskModule, decorators: [{
570 type: NgModule,
571 args: [{
572 imports: [CommonModule, InputTextModule],
573 exports: [InputMask],
574 declarations: [InputMask]
575 }]
576 }] });
577//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXRtYXNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL2lucHV0bWFzay9pbnB1dG1hc2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0VBMEJFO0FBQ0YsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQTZCLEtBQUssRUFBQyxVQUFVLEVBQUMsTUFBTSxFQUFDLFlBQVksRUFBQyxTQUFTLEVBQUMsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQW9CLE1BQU0sZUFBZSxDQUFDO0FBQzFMLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sYUFBYSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFB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MgPj0gMCAmJiAhdGhpcy50ZXN0c1twb3NdKTtcbiAgICAgICAgcmV0dXJuIHBvcztcbiAgICB9XG5cbiAgICBzaGlmdEwoYmVnaW46bnVtYmVyLGVuZDpudW1iZXIpIHtcbiAgICAgICAgbGV0IGksIGo7XG5cbiAgICAgICAgaWYgKGJlZ2luPDApIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGZvciAoaSA9IGJlZ2luLCBqID0gdGhpcy5zZWVrTmV4dChlbmQpOyBpIDwgdGhpcy5sZW47IGkrKykge1xuICAgICAgICAgICAgaWYgKHRoaXMudGVzdHNbaV0pIHtcbiAgICAgICAgICAgICAgICBpZiAoaiA8IHRoaXMubGVuICYmIHRoaXMudGVzdHNbaV0udGVzdCh0aGlzLmJ1ZmZlcltqXSkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5idWZmZXJbaV0gPSB0aGlzLmJ1ZmZlcltqXTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5idWZmZXJbal0gPSB0aGlzLmdldFBsYWNlaG9sZGVyKGopO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGogPSB0aGlzLnNlZWtOZXh0KGopO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMud3JpdGVCdWZmZXIoKTtcbiAgICAgICAgdGhpcy5jYXJldChNYXRoLm1heCh0aGlzLmZpcnN0Tm9uTWFza1BvcywgYmVnaW4pKTtcbiAgICB9XG5cbiAgICBzaGlmdFIocG9zKSB7XG4gICAgICAgIGxldCBpLCBjLCBqLCB0O1xuXG4gICAgICAgIGZvciAoaSA9IHBvcywgYyA9IHRoaXMuZ2V0UGxhY2Vob2xkZXIocG9zKTsgaSA8IHRoaXMubGVuOyBpKyspIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnRlc3RzW2ldKSB7XG4gICAgICAgICAgICAgICAgaiA9IHRoaXMuc2Vla05leHQoaSk7XG4gICAgICAgICAgICAgICAgdCA9IHRoaXMuYnVmZmVyW2ldO1xuICAgICAgICAgICAgICAgIHRoaXMuYnVmZmVyW2ldID0gYztcbiAgICAgICAgICAgICAgICBpZiAoaiA8IHRoaXMubGVuICYmIHRoaXMudGVzdHNbal0udGVzdCh0KSkge1xuICAgICAgICAgICAgICAgICAgICBjID0gdDtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBoYW5kbGVBbmRyb2lkSW5wdXQoZSkge1xuICAgICAgICB2YXIgY3VyVmFsID0gdGhpcy5pbnB1dFZpZXdDaGlsZC5uYXRpdmVFbGVtZW50LnZhbHVlO1xuICAgICAgICB2YXIgcG9zID0gdGhpcy5jYXJldCgpO1xuICAgICAgICBpZiAodGhpcy5vbGRWYWwgJiYgdGhpcy5vbGRWYWwubGVuZ3RoICYmIHRoaXMub2xkVmFsLmxlbmd0aCA+IGN1clZhbC5sZW5ndGggKSB7XG4gICAgICAgICAgICAvLyBhIGRlbGV0aW9uIG9yIGJhY2tzcGFjZSBoYXBwZW5lZFxuICAgICAgICAgICAgdGhpcy5jaGVja1ZhbCh0cnVlKTtcbiAgICAgICAgICAgIHdoaWxlIChwb3MuYmVnaW4gPiAwICYmICF0aGlzLnRlc3RzW3Bvcy5iZWdpbi0xXSlcbiAgICAgICAgICAgICAgICAgIHBvcy5iZWdpbi0tO1xuICAgICAgICAgICAgaWYgKHBvcy5iZWdpbiA9PT0gMClcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgIHdoaWxlIChwb3MuYmVnaW4gPCB0aGlzLmZpcnN0Tm9uTWFza1BvcyAmJiAhdGhpcy50ZXN0c1twb3MuYmVnaW5dKVxuICAgICAgICAgICAgICAgICAgcG9zLmJlZ2luKys7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuY2FyZXQocG9zLmJlZ2luLCBwb3MuYmVnaW4pO1xuICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlTW9kZWwoZSk7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNDb21wbGV0ZWQoKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLm9uQ29tcGxldGUuZW1pdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sIDApO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5jaGVja1ZhbCh0cnVlKTtcbiAgICAgICAgICAgIHdoaWxlIChwb3MuYmVnaW4gPCB0aGlzLmxlbiAmJiAhdGhpcy50ZXN0c1twb3MuYmVnaW5dKVxuICAgICAgICAgICAgICAgIHBvcy5iZWdpbisrO1xuXG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmNhcmV0KHBvcy5iZWdpbiwgcG9zLmJlZ2luKTtcbiAgICAgICAgICAgICAgICB0aGlzLnVwZGF0ZU1vZGVsKGUpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmlzQ29tcGxldGVkKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vbkNvbXBsZXRlLmVtaXQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LCAwKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uSW5wdXRCbHVyKGUpIHtcbiAgICAgICAgdGhpcy5mb2N1c2VkID0gZmFsc2U7XG4gICAgICAgIHRoaXMub25Nb2RlbFRvdWNoZWQoKTtcbiAgICAgICAgdGhpcy5jaGVja1ZhbCgpO1xuICAgICAgICB0aGlzLnVwZGF0ZUZpbGxlZFN0YXRlK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JldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uS2V5UHJlc3MoZSkge1xuICAgICAgICBpZiAodGhpcy5yZWFkb25seSl7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB2YXIgayA9IGUud2hpY2ggfHwgZS5rZXlDb2RlLFxuICAgICAgICAgICAgcG9zID0gdGhpcy5jYXJldCgpLFxuICAgICAgICAgICAgcCxcbiAgICAgICAgICAgIGMsXG4gICAgICAgICAgICBuZXh0LFxuICAgICAgICAgICAgY29tcGxldGVkO1xuXG4gICAgICAgIGlmIChlLmN0cmxLZXkgfHwgZS5hbHRLZXkgfHwgZS5tZXRhS2V5IHx8IGsgPCAzMiAgfHwgKGsgPiAzNCAmJiBrIDwgNDEpKSB7Ly9JZ25vcmVcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfSBlbHNlIGlmICggayAmJiBrICE9PSAxMyApIHtcbiAgICAgICAgICAgIGlmIChwb3MuZW5kIC0gcG9zLmJlZ2luICE9PSAwKXtcbiAgICAgICAgICAgICAgICB0aGlzLmNsZWFyQnVmZmVyKHBvcy5iZWdpbiwgcG9zLmVuZCk7XG4gICAgICAgICAgICAgICAgdGhpcy5zaGlmdEwocG9zLmJlZ2luLCBwb3MuZW5kLTEpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBwID0gdGhpcy5zZWVrTmV4dChwb3MuYmVnaW4gLSAxKTtcbiAgICAgICAgICAgIGlmIChwIDwgdGhpcy5sZW4pIHtcbiAgICAgICAgICAgICAgICBjID0gU3RyaW5nLmZyb21DaGFyQ29kZShrKTtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy50ZXN0c1twXS50ZXN0KGMpKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2hpZnRSKHApO1xuXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYnVmZmVyW3BdID0gYztcbiAgICAgICAgICAgICAgICAgICAgdGhpcy53cml0ZUJ1ZmZlcigpO1xuICAgICAgICAgICAgICAgICAgICBuZXh0ID0gdGhpcy5zZWVrTmV4dChwKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoL2FuZHJvaWQvaS50ZXN0KERvbUhhbmRsZXIuZ2V0VXNlckFnZW50KCkpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvL1BhdGggZm9yIENTUCBWaW9sYXRpb24gb24gRmlyZUZveCBPUyAxLjFcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBwcm94eSA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNhcmV0KG5leHQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgc2V0VGltZW91dChwcm94eSwwKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2FyZXQobmV4dCk7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBpZiAocG9zLmJlZ2luIDw9IHRoaXMubGFzdFJlcXVpcmVkTm9uTWFza1Bvcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29tcGxldGVkID0gdGhpcy5pc0NvbXBsZXRlZCgpO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vbklucHV0LmVtaXQoZSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy51cGRhdGVNb2RlbChlKTtcblxuICAgICAgICB0aGlzLnVwZGF0ZUZpbGxlZFN0YXRlKCk7XG5cbiAgICAgICAgaWYgKGNvbXBsZXRlZCkge1xuICAgICAgICAgICAgdGhpcy5vbkNvbXBsZXRlLmVtaXQoK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ICAgaWYgKHRoaXMudGVzdHNbaV0udGVzdChjKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5idWZmZXJbaV0gPSBjO1xuICAgICAgICAgICAgICAgICAgICAgICAgbGFzdE1hdGNoID0gaTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChwb3MgPiB0ZXN0Lmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNsZWFyQnVmZmVyKGkgKyAxLCB0aGlzLmxlbik7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuYnVmZmVyW2ldID09PSB0ZXN0LmNoYXJBdChwb3MpKSB7XG4gICAgICAgICAgICAgICAgICAgIHBvcysrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoIGkgPCB0aGlzLnBhcnRpYWxQb3NpdGlvbil7XG4gICAgICAgICAgICAgICAgICAgIGxhc3RNYXRjaCA9IGk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChhbGxvdykge1xuICAgICAgICAgICAgdGhpcy53cml0ZUJ1ZmZlcigpO1xuICAgICAgICB9IGVsc2UgaWYgKGxhc3RNYXRjaCArIDEgPCB0aGlzLnBhcnRpYWxQb3NpdGlvbikge1xuICAgICAgICAgICAgaWYgKHRoaXMuYXV0b0NsZWFyIHx8IHRoaXMuYnVmZmVyLmpvaW4oJycpID09PSB0aGlzLmRlZmF1bHRCdWZmZXIpIHtcbiAgICAgICAgICAgICAgICAvLyBJbnZhbGlkIHZhbHVlLiBSZW1vdmUgaXQgYW5kIHJlcGxhY2UgaXQgd2l0aCB0aGVcbiAgICAgICAgICAgICA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ICAgICAgICBpZiAodGhpcy5yZWFkb25seSl7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgIHZhciBwb3MgPSB0aGlzLmNoZWNrVmFsKHRydWUpO1xuICAgICAgICAgICAgdGhpcy5jYXJldChwb3MpO1xuICAgICAgICAgICAgdGhpcy51cGRhdGVNb2RlbChldmVudCk7XG4gICAgICAgICAgICBpZiAodGhpcy5pc0NvbXBsZXRlZCgpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vbkNvbXBsZXRlLmVtaXQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSwgMCk7XG4gICAgfVxuXG4gICAgZ2V0VW5tYXNrZWRWYWx1ZSgpIHtcbiAgICAgICAgbGV0IHVubWFza2VkQnVmZmVyID0gW107XG4gICAgICAgIGZvcihsZXQgaSA9IDA7IGkgPCB0aGlzLmJ1ZmZlci5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgbGV0IGMgPSB0aGlzLmJ1ZmZlcltpXTtcbiAgICAgICAgICAgIGlmICh0aGlzLnRlc3RzW2ldICYmIGMgIT0gdGhpcy5nZXRQbGFjZWhvbGRlcihpKSkge1xuICAgICAgICAgICAgICAgIHVubWFza2VkQnVmZmVyLnB1c2goYyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdW5tYXNrZWRCdWZmZXIuam9pbignJyk7XG4gICAgfVxuXG4gICAgdXBkYXRlTW9kZWwoZSkge1xuICAgICAgICBjb25zdCB1cGRhdGVkVmFsdWUgPSB0aGlzLnVubWFzayA/IHRoaXMuZ2V0VW5tYXNrZWRWYWx1ZSgpIDogZS50YXJnZXQudmFsdWU7XG4gICAgICAgIGlmICh1cGRhdGVkVmFsdWUgIT09IG51bGwgfHwgdXBkYXRlZFZhbHVlICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRoaXMudmFsdWUgPSB1cGRhdGVkVmFsdWU7XG4gICAgICAgICAgICB0aGlzLm9uTW9kZWxDaGFuZ2UodGhpcy52YWx1ZSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1cGRhdGVGaWxsZWRTdGF0ZSgpIHtcbiAgICAgICAgdGhpcy5maWxsZWQgPSB0aGlzLmlucHV0Vmlld0NoaWxkLm5hdGl2ZUVsZW1lbnQgJiYgdGhpcy5pbnB1dFZpZXdDaGlsZC5uYXRpdmVFbGVtZW50LnZhbHVlICE9ICcnO1xuICAgIH1cblxuICAgIGZvY3VzKCkge1xuICAgICAgICB0aGlzLmlucHV0Vmlld0NoaWxkLm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpIHtcblxuICAgIH1cbn1cblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLElucHV0VGV4dE1vZHVsZV0sXG4gICAgZXhwb3J0czogW0lucHV0TWFza10sXG4gICAgZGVjbGFyYXRpb25zOiBbSW5wdXRNYXNrXVxufSlcbmV4cG9ydCBjbGFzcyBJbnB1dE1hc2tNb2R1bGUgeyB9XG4iXX0=
Note: See TracBrowser for help on using the repository browser.