hmrc-frontend 5.31.0 → 5.33.0

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/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 5.31.0
1
+ 5.33.0
@@ -1,2 +1,2 @@
1
1
  .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;border:2px solid #0b0c0c;border-radius:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:0;width:100%}.autocomplete__input{background-color:rgba(0,0,0,0);position:relative}.autocomplete__hint{color:#b1b4b6;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{outline:3px solid #fd0;outline-offset:0;-webkit-box-shadow:inset 0 0 0 2px;box-shadow:inset 0 0 0 2px}.autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{-webkit-box-shadow:rgba(0,0,0,.256863) 0 2px 6px;box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}@media (-ms-high-contrast:active),(forced-colors:active){.autocomplete__menu{border-color:FieldText}.autocomplete__option{background-color:Field;color:FieldText}.autocomplete__option--focused,.autocomplete__option:hover{forced-color-adjust:none;background-color:SelectedItem;border-color:SelectedItem;color:SelectedItemText;outline-color:SelectedItemText}}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:16px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:19px;line-height:1.31579}}.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-family:sans-serif}}@media (min-width:40.0625em){.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-size:19px;font-size:1.1875rem;line-height:1.31579}}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__wrapper{font-size:14pt;line-height:1.15}}
2
- /*# sourceMappingURL=maps/accessible-autocomplete-5.31.0.css.map */
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-5.33.0.css.map */
@@ -1,8 +1,7 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
1
+ (function (factory) {
3
2
  typeof define === 'function' && define.amd ? define('HMRCAccessibleAutocomplete', factory) :
4
- (factory());
5
- }(this, (function () { 'use strict';
3
+ factory();
4
+ }(function () { 'use strict';
6
5
 
7
6
  function unwrapExports (x) {
8
7
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -1511,4 +1510,4 @@
1511
1510
  });
1512
1511
  }
1513
1512
 
1514
- })));
1513
+ }));
package/hmrc/all.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
3
  typeof define === 'function' && define.amd ? define('HMRCFrontend', factory) :
4
- (global.HMRCFrontend = factory());
5
- }(this, (function () { 'use strict';
4
+ (global = global || self, global.HMRCFrontend = factory());
5
+ }(this, function () { 'use strict';
6
6
 
7
7
  function ownKeys(object, enumerableOnly) {
8
8
  var keys = Object.keys(object);
@@ -85,354 +85,7 @@
85
85
  return typeof key === "symbol" ? key : String(key);
86
86
  }
87
87
 
88
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
89
-
90
- function createCommonjsModule(fn, module) {
91
- return module = { exports: {} }, fn(module, module.exports), module.exports;
92
- }
93
-
94
- var defineProperty = createCommonjsModule(function (module, exports) {
95
- (function (global, factory) {
96
- factory();
97
- })(commonjsGlobal, function () {
98
-
99
- // @ts-nocheck
100
- (function (undefined) {
101
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Object/defineProperty/detect.js
102
- var detect =
103
- // In IE8, defineProperty could only act on DOM elements, so full support
104
- // for the feature requires the ability to set a property on an arbitrary object
105
- 'defineProperty' in Object && function () {
106
- try {
107
- var a = {};
108
- Object.defineProperty(a, 'test', {
109
- value: 42
110
- });
111
- return true;
112
- } catch (e) {
113
- return false;
114
- }
115
- }();
116
- if (detect) return;
117
-
118
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Object.defineProperty&flags=always
119
- (function (nativeDefineProperty) {
120
- var supportsAccessors = Object.prototype.hasOwnProperty('__defineGetter__');
121
- var ERR_ACCESSORS_NOT_SUPPORTED = 'Getters & setters cannot be defined on this javascript engine';
122
- var ERR_VALUE_ACCESSORS = 'A property cannot both have accessors and be writable or have a value';
123
- Object.defineProperty = function defineProperty(object, property, descriptor) {
124
- // Where native support exists, assume it
125
- if (nativeDefineProperty && (object === window || object === document || object === Element.prototype || object instanceof Element)) {
126
- return nativeDefineProperty(object, property, descriptor);
127
- }
128
- if (object === null || !(object instanceof Object || typeof object === 'object')) {
129
- throw new TypeError('Object.defineProperty called on non-object');
130
- }
131
- if (!(descriptor instanceof Object)) {
132
- throw new TypeError('Property description must be an object');
133
- }
134
- var propertyString = String(property);
135
- var hasValueOrWritable = 'value' in descriptor || 'writable' in descriptor;
136
- var getterType = 'get' in descriptor && typeof descriptor.get;
137
- var setterType = 'set' in descriptor && typeof descriptor.set;
138
-
139
- // handle descriptor.get
140
- if (getterType) {
141
- if (getterType !== 'function') {
142
- throw new TypeError('Getter must be a function');
143
- }
144
- if (!supportsAccessors) {
145
- throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
146
- }
147
- if (hasValueOrWritable) {
148
- throw new TypeError(ERR_VALUE_ACCESSORS);
149
- }
150
- Object.__defineGetter__.call(object, propertyString, descriptor.get);
151
- } else {
152
- object[propertyString] = descriptor.value;
153
- }
154
-
155
- // handle descriptor.set
156
- if (setterType) {
157
- if (setterType !== 'function') {
158
- throw new TypeError('Setter must be a function');
159
- }
160
- if (!supportsAccessors) {
161
- throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
162
- }
163
- if (hasValueOrWritable) {
164
- throw new TypeError(ERR_VALUE_ACCESSORS);
165
- }
166
- Object.__defineSetter__.call(object, propertyString, descriptor.set);
167
- }
168
-
169
- // OK to define value unconditionally - if a getter has been specified as well, an error would be thrown above
170
- if ('value' in descriptor) {
171
- object[propertyString] = descriptor.value;
172
- }
173
- return object;
174
- };
175
- })(Object.defineProperty);
176
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof commonjsGlobal && commonjsGlobal || {});
177
- });
178
- });
179
-
180
- var bind = createCommonjsModule(function (module, exports) {
181
- (function (global, factory) {
182
- factory();
183
- })(commonjsGlobal, function () {
184
-
185
- // @ts-nocheck
186
- (function (undefined) {
187
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Object/defineProperty/detect.js
188
- var detect =
189
- // In IE8, defineProperty could only act on DOM elements, so full support
190
- // for the feature requires the ability to set a property on an arbitrary object
191
- 'defineProperty' in Object && function () {
192
- try {
193
- var a = {};
194
- Object.defineProperty(a, 'test', {
195
- value: 42
196
- });
197
- return true;
198
- } catch (e) {
199
- return false;
200
- }
201
- }();
202
- if (detect) return;
203
-
204
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Object.defineProperty&flags=always
205
- (function (nativeDefineProperty) {
206
- var supportsAccessors = Object.prototype.hasOwnProperty('__defineGetter__');
207
- var ERR_ACCESSORS_NOT_SUPPORTED = 'Getters & setters cannot be defined on this javascript engine';
208
- var ERR_VALUE_ACCESSORS = 'A property cannot both have accessors and be writable or have a value';
209
- Object.defineProperty = function defineProperty(object, property, descriptor) {
210
- // Where native support exists, assume it
211
- if (nativeDefineProperty && (object === window || object === document || object === Element.prototype || object instanceof Element)) {
212
- return nativeDefineProperty(object, property, descriptor);
213
- }
214
- if (object === null || !(object instanceof Object || typeof object === 'object')) {
215
- throw new TypeError('Object.defineProperty called on non-object');
216
- }
217
- if (!(descriptor instanceof Object)) {
218
- throw new TypeError('Property description must be an object');
219
- }
220
- var propertyString = String(property);
221
- var hasValueOrWritable = 'value' in descriptor || 'writable' in descriptor;
222
- var getterType = 'get' in descriptor && typeof descriptor.get;
223
- var setterType = 'set' in descriptor && typeof descriptor.set;
224
-
225
- // handle descriptor.get
226
- if (getterType) {
227
- if (getterType !== 'function') {
228
- throw new TypeError('Getter must be a function');
229
- }
230
- if (!supportsAccessors) {
231
- throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
232
- }
233
- if (hasValueOrWritable) {
234
- throw new TypeError(ERR_VALUE_ACCESSORS);
235
- }
236
- Object.__defineGetter__.call(object, propertyString, descriptor.get);
237
- } else {
238
- object[propertyString] = descriptor.value;
239
- }
240
-
241
- // handle descriptor.set
242
- if (setterType) {
243
- if (setterType !== 'function') {
244
- throw new TypeError('Setter must be a function');
245
- }
246
- if (!supportsAccessors) {
247
- throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);
248
- }
249
- if (hasValueOrWritable) {
250
- throw new TypeError(ERR_VALUE_ACCESSORS);
251
- }
252
- Object.__defineSetter__.call(object, propertyString, descriptor.set);
253
- }
254
-
255
- // OK to define value unconditionally - if a getter has been specified as well, an error would be thrown above
256
- if ('value' in descriptor) {
257
- object[propertyString] = descriptor.value;
258
- }
259
- return object;
260
- };
261
- })(Object.defineProperty);
262
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof commonjsGlobal && commonjsGlobal || {});
263
-
264
- // @ts-nocheck
265
-
266
- (function (undefined) {
267
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Function/prototype/bind/detect.js
268
- var detect = ('bind' in Function.prototype);
269
- if (detect) return;
270
-
271
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Function.prototype.bind&flags=always
272
- Object.defineProperty(Function.prototype, 'bind', {
273
- value: function bind(that) {
274
- // .length is 1
275
- // add necessary es5-shim utilities
276
- var $Array = Array;
277
- var $Object = Object;
278
- var ObjectPrototype = $Object.prototype;
279
- var ArrayPrototype = $Array.prototype;
280
- var Empty = function Empty() {};
281
- var to_string = ObjectPrototype.toString;
282
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
283
- var isCallable; /* inlined from https://npmjs.com/is-callable */
284
- var fnToStr = Function.prototype.toString,
285
- tryFunctionObject = function tryFunctionObject(value) {
286
- try {
287
- fnToStr.call(value);
288
- return true;
289
- } catch (e) {
290
- return false;
291
- }
292
- },
293
- fnClass = '[object Function]',
294
- genClass = '[object GeneratorFunction]';
295
- isCallable = function isCallable(value) {
296
- if (typeof value !== 'function') {
297
- return false;
298
- }
299
- if (hasToStringTag) {
300
- return tryFunctionObject(value);
301
- }
302
- var strClass = to_string.call(value);
303
- return strClass === fnClass || strClass === genClass;
304
- };
305
- var array_slice = ArrayPrototype.slice;
306
- var array_concat = ArrayPrototype.concat;
307
- var array_push = ArrayPrototype.push;
308
- var max = Math.max;
309
- // /add necessary es5-shim utilities
310
-
311
- // 1. Let Target be the this value.
312
- var target = this;
313
- // 2. If IsCallable(Target) is false, throw a TypeError exception.
314
- if (!isCallable(target)) {
315
- throw new TypeError('Function.prototype.bind called on incompatible ' + target);
316
- }
317
- // 3. Let A be a new (possibly empty) internal list of all of the
318
- // argument values provided after thisArg (arg1, arg2 etc), in order.
319
- // XXX slicedArgs will stand in for "A" if used
320
- var args = array_slice.call(arguments, 1); // for normal call
321
- // 4. Let F be a new native ECMAScript object.
322
- // 11. Set the [[Prototype]] internal property of F to the standard
323
- // built-in Function prototype object as specified in 15.3.3.1.
324
- // 12. Set the [[Call]] internal property of F as described in
325
- // 15.3.4.5.1.
326
- // 13. Set the [[Construct]] internal property of F as described in
327
- // 15.3.4.5.2.
328
- // 14. Set the [[HasInstance]] internal property of F as described in
329
- // 15.3.4.5.3.
330
- var bound;
331
- var binder = function () {
332
- if (this instanceof bound) {
333
- // 15.3.4.5.2 [[Construct]]
334
- // When the [[Construct]] internal method of a function object,
335
- // F that was created using the bind function is called with a
336
- // list of arguments ExtraArgs, the following steps are taken:
337
- // 1. Let target be the value of F's [[TargetFunction]]
338
- // internal property.
339
- // 2. If target has no [[Construct]] internal method, a
340
- // TypeError exception is thrown.
341
- // 3. Let boundArgs be the value of F's [[BoundArgs]] internal
342
- // property.
343
- // 4. Let args be a new list containing the same values as the
344
- // list boundArgs in the same order followed by the same
345
- // values as the list ExtraArgs in the same order.
346
- // 5. Return the result of calling the [[Construct]] internal
347
- // method of target providing args as the arguments.
348
-
349
- var result = target.apply(this, array_concat.call(args, array_slice.call(arguments)));
350
- if ($Object(result) === result) {
351
- return result;
352
- }
353
- return this;
354
- } else {
355
- // 15.3.4.5.1 [[Call]]
356
- // When the [[Call]] internal method of a function object, F,
357
- // which was created using the bind function is called with a
358
- // this value and a list of arguments ExtraArgs, the following
359
- // steps are taken:
360
- // 1. Let boundArgs be the value of F's [[BoundArgs]] internal
361
- // property.
362
- // 2. Let boundThis be the value of F's [[BoundThis]] internal
363
- // property.
364
- // 3. Let target be the value of F's [[TargetFunction]] internal
365
- // property.
366
- // 4. Let args be a new list containing the same values as the
367
- // list boundArgs in the same order followed by the same
368
- // values as the list ExtraArgs in the same order.
369
- // 5. Return the result of calling the [[Call]] internal method
370
- // of target providing boundThis as the this value and
371
- // providing args as the arguments.
372
-
373
- // equiv: target.call(this, ...boundArgs, ...args)
374
- return target.apply(that, array_concat.call(args, array_slice.call(arguments)));
375
- }
376
- };
377
-
378
- // 15. If the [[Class]] internal property of Target is "Function", then
379
- // a. Let L be the length property of Target minus the length of A.
380
- // b. Set the length own property of F to either 0 or L, whichever is
381
- // larger.
382
- // 16. Else set the length own property of F to 0.
383
-
384
- var boundLength = max(0, target.length - args.length);
385
-
386
- // 17. Set the attributes of the length own property of F to the values
387
- // specified in 15.3.5.1.
388
- var boundArgs = [];
389
- for (var i = 0; i < boundLength; i++) {
390
- array_push.call(boundArgs, '$' + i);
391
- }
392
-
393
- // XXX Build a dynamic function with desired amount of arguments is the only
394
- // way to set the length property of a function.
395
- // In environments where Content Security Policies enabled (Chrome extensions,
396
- // for ex.) all use of eval or Function costructor throws an exception.
397
- // However in all of these environments Function.prototype.bind exists
398
- // and so this code will never be executed.
399
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this, arguments); }')(binder);
400
- if (target.prototype) {
401
- Empty.prototype = target.prototype;
402
- bound.prototype = new Empty();
403
- // Clean up dangling references.
404
- Empty.prototype = null;
405
- }
406
-
407
- // TODO
408
- // 18. Set the [[Extensible]] internal property of F to true.
409
-
410
- // TODO
411
- // 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3).
412
- // 20. Call the [[DefineOwnProperty]] internal method of F with
413
- // arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]:
414
- // thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
415
- // false.
416
- // 21. Call the [[DefineOwnProperty]] internal method of F with
417
- // arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
418
- // [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false},
419
- // and false.
420
-
421
- // TODO
422
- // NOTE Function objects created using Function.prototype.bind do not
423
- // have a prototype property or the [[Code]], [[FormalParameters]], and
424
- // [[Scope]] internal properties.
425
- // XXX can't delete prototype in pure-js.
426
-
427
- // 22. Return F.
428
- return bound;
429
- }
430
- });
431
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof commonjsGlobal && commonjsGlobal || {});
432
- });
433
- });
434
-
435
- (function (undefined) {
88
+ (function (undefined$1) {
436
89
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/Object/getOwnPropertyDescriptor/detect.js
437
90
  var detect = 'getOwnPropertyDescriptor' in Object && typeof Object.getOwnPropertyDescriptor === 'function' && function () {
438
91
  try {
@@ -541,163 +194,7 @@
541
194
  })();
542
195
  }).call('object' === (typeof window === "undefined" ? "undefined" : _typeof(window)) && window || 'object' === (typeof self === "undefined" ? "undefined" : _typeof(self)) && self || 'object' === (typeof global === "undefined" ? "undefined" : _typeof(global)) && global || {});
543
196
 
544
- var Document$1 = createCommonjsModule(function (module, exports) {
545
- (function (global, factory) {
546
- factory();
547
- })(commonjsGlobal, function () {
548
-
549
- // @ts-nocheck
550
- (function (undefined) {
551
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Document/detect.js
552
- var detect = ("Document" in this);
553
- if (detect) return;
554
-
555
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Document&flags=always
556
- if (typeof WorkerGlobalScope === "undefined" && typeof importScripts !== "function") {
557
- if (this.HTMLDocument) {
558
- // IE8
559
-
560
- // HTMLDocument is an extension of Document. If the browser has HTMLDocument but not Document, the former will suffice as an alias for the latter.
561
- this.Document = this.HTMLDocument;
562
- } else {
563
- // Create an empty function to act as the missing constructor for the document object, attach the document object as its prototype. The function needs to be anonymous else it is hoisted and causes the feature detect to prematurely pass, preventing the assignments below being made.
564
- this.Document = this.HTMLDocument = document.constructor = new Function('return function Document() {}')();
565
- this.Document.prototype = document;
566
- }
567
- }
568
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof commonjsGlobal && commonjsGlobal || {});
569
- });
570
- });
571
-
572
- var Element_1 = createCommonjsModule(function (module, exports) {
573
- (function (global, factory) {
574
- factory();
575
- })(commonjsGlobal, function () {
576
-
577
- // @ts-nocheck
578
- (function (undefined) {
579
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Document/detect.js
580
- var detect = ("Document" in this);
581
- if (detect) return;
582
-
583
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Document&flags=always
584
- if (typeof WorkerGlobalScope === "undefined" && typeof importScripts !== "function") {
585
- if (this.HTMLDocument) {
586
- // IE8
587
-
588
- // HTMLDocument is an extension of Document. If the browser has HTMLDocument but not Document, the former will suffice as an alias for the latter.
589
- this.Document = this.HTMLDocument;
590
- } else {
591
- // Create an empty function to act as the missing constructor for the document object, attach the document object as its prototype. The function needs to be anonymous else it is hoisted and causes the feature detect to prematurely pass, preventing the assignments below being made.
592
- this.Document = this.HTMLDocument = document.constructor = new Function('return function Document() {}')();
593
- this.Document.prototype = document;
594
- }
595
- }
596
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof commonjsGlobal && commonjsGlobal || {});
597
-
598
- // @ts-nocheck
599
-
600
- (function (undefined) {
601
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Element/detect.js
602
- var detect = 'Element' in this && 'HTMLElement' in this;
603
- if (detect) return;
604
-
605
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Element&flags=always
606
- (function () {
607
- // IE8
608
- if (window.Element && !window.HTMLElement) {
609
- window.HTMLElement = window.Element;
610
- return;
611
- }
612
-
613
- // create Element constructor
614
- window.Element = window.HTMLElement = new Function('return function Element() {}')();
615
-
616
- // generate sandboxed iframe
617
- var vbody = document.appendChild(document.createElement('body'));
618
- var frame = vbody.appendChild(document.createElement('iframe'));
619
-
620
- // use sandboxed iframe to replicate Element functionality
621
- var frameDocument = frame.contentWindow.document;
622
- var prototype = Element.prototype = frameDocument.appendChild(frameDocument.createElement('*'));
623
- var cache = {};
624
-
625
- // polyfill Element.prototype on an element
626
- var shiv = function (element, deep) {
627
- var childNodes = element.childNodes || [],
628
- index = -1,
629
- key,
630
- value,
631
- childNode;
632
- if (element.nodeType === 1 && element.constructor !== Element) {
633
- element.constructor = Element;
634
- for (key in cache) {
635
- value = cache[key];
636
- element[key] = value;
637
- }
638
- }
639
- while (childNode = deep && childNodes[++index]) {
640
- shiv(childNode, deep);
641
- }
642
- return element;
643
- };
644
- var elements = document.getElementsByTagName('*');
645
- var nativeCreateElement = document.createElement;
646
- var interval;
647
- var loopLimit = 100;
648
- prototype.attachEvent('onpropertychange', function (event) {
649
- var propertyName = event.propertyName,
650
- nonValue = !cache.hasOwnProperty(propertyName),
651
- newValue = prototype[propertyName],
652
- oldValue = cache[propertyName],
653
- index = -1,
654
- element;
655
- while (element = elements[++index]) {
656
- if (element.nodeType === 1) {
657
- if (nonValue || element[propertyName] === oldValue) {
658
- element[propertyName] = newValue;
659
- }
660
- }
661
- }
662
- cache[propertyName] = newValue;
663
- });
664
- prototype.constructor = Element;
665
- if (!prototype.hasAttribute) {
666
- // <Element>.hasAttribute
667
- prototype.hasAttribute = function hasAttribute(name) {
668
- return this.getAttribute(name) !== null;
669
- };
670
- }
671
-
672
- // Apply Element prototype to the pre-existing DOM as soon as the body element appears.
673
- function bodyCheck() {
674
- if (!loopLimit--) clearTimeout(interval);
675
- if (document.body && !document.body.prototype && /(complete|interactive)/.test(document.readyState)) {
676
- shiv(document, true);
677
- if (interval && document.body.prototype) clearTimeout(interval);
678
- return !!document.body.prototype;
679
- }
680
- return false;
681
- }
682
- if (!bodyCheck()) {
683
- document.onreadystatechange = bodyCheck;
684
- interval = setInterval(bodyCheck, 25);
685
- }
686
-
687
- // Apply to any new elements created after load
688
- document.createElement = function createElement(nodeName) {
689
- var element = nativeCreateElement(String(nodeName).toLowerCase());
690
- return shiv(element);
691
- };
692
-
693
- // remove sandboxed iframe
694
- document.removeChild(vbody);
695
- })();
696
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof commonjsGlobal && commonjsGlobal || {});
697
- });
698
- });
699
-
700
- (function (undefined) {
197
+ (function (undefined$1) {
701
198
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/document/querySelector/detect.js
702
199
  var detect = 'document' in this && 'querySelector' in this.document;
703
200
  if (detect) return;
@@ -744,7 +241,7 @@
744
241
  })();
745
242
  }).call('object' === (typeof window === "undefined" ? "undefined" : _typeof(window)) && window || 'object' === (typeof self === "undefined" ? "undefined" : _typeof(self)) && self || 'object' === (typeof global === "undefined" ? "undefined" : _typeof(global)) && global || {});
746
243
 
747
- (function (undefined) {
244
+ (function (undefined$1) {
748
245
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/Element/prototype/dataset/detect.js
749
246
  (function () {
750
247
  if (!document.documentElement.dataset) {
@@ -929,7 +426,7 @@
929
426
  }
930
427
  };
931
428
 
932
- (function (undefined) {
429
+ (function (undefined$1) {
933
430
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/987630a085e29226da16b5dc542042c687560191/polyfills/Array/prototype/forEach/detect.js
934
431
  var detect = ('forEach' in Array.prototype);
935
432
  if (detect) return;
@@ -937,7 +434,7 @@
937
434
  // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Array.prototype.forEach&flags=always
938
435
  (function () {
939
436
  Array.prototype.forEach = function forEach(callback) {
940
- if (this === undefined || this === null) {
437
+ if (this === undefined$1 || this === null) {
941
438
  throw new TypeError(this + " is not an object");
942
439
  }
943
440
  if (typeof callback !== "function") {
@@ -957,7 +454,7 @@
957
454
  })();
958
455
  }).call('object' === (typeof window === "undefined" ? "undefined" : _typeof(window)) && window || 'object' === (typeof self === "undefined" ? "undefined" : _typeof(self)) && self || 'object' === (typeof global === "undefined" ? "undefined" : _typeof(global)) && global || {});
959
456
 
960
- (function (undefined) {
457
+ (function (undefined$1) {
961
458
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/987630a085e29226da16b5dc542042c687560191/polyfills/Object/keys/detect.js
962
459
  var detect = 'keys' in Object && function () {
963
460
  // Safari 5.0 bug where Object.keys doesn't work with arguments
@@ -1053,7 +550,7 @@
1053
550
  var isArguments = isArgumentsObject(object);
1054
551
  var isString = toStr.call(object) === "[object String]";
1055
552
  var theKeys = [];
1056
- if (object === undefined || object === null) {
553
+ if (object === undefined$1 || object === null) {
1057
554
  throw new TypeError("Cannot convert undefined or null to object");
1058
555
  }
1059
556
  var skipProto = hasProtoEnumBug && isFunction;
@@ -1086,7 +583,7 @@
1086
583
  }();
1087
584
  }).call("object" === (typeof window === "undefined" ? "undefined" : _typeof(window)) && window || "object" === (typeof self === "undefined" ? "undefined" : _typeof(self)) && self || "object" === (typeof global === "undefined" ? "undefined" : _typeof(global)) && global || {});
1088
585
 
1089
- (function (undefined) {
586
+ (function (undefined$1) {
1090
587
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/987630a085e29226da16b5dc542042c687560191/polyfills/Object/assign/detect.js
1091
588
  var detect = ('assign' in Object);
1092
589
  if (detect) return;
@@ -1095,7 +592,7 @@
1095
592
  (function () {
1096
593
  // 7.1.13 ToObject ( argument )
1097
594
  function toObject(argument) {
1098
- if (argument === null || argument === undefined) {
595
+ if (argument === null || argument === undefined$1) {
1099
596
  throw new TypeError('Cannot call method on ' + argument);
1100
597
  }
1101
598
  return Object(argument);
@@ -1126,7 +623,7 @@
1126
623
  for (index1 = 0; index1 < sources.length; index1++) {
1127
624
  var nextSource = sources[index1];
1128
625
  // 4a. If nextSource is undefined or null, let keys be a new empty List.
1129
- if (nextSource === undefined || nextSource === null) {
626
+ if (nextSource === undefined$1 || nextSource === null) {
1130
627
  keys = [];
1131
628
  // 4b. Else,
1132
629
  } else {
@@ -1147,7 +644,7 @@
1147
644
  // 4ci. Let desc be ? from.[[GetOwnProperty]](nextKey).
1148
645
  var desc = Object.getOwnPropertyDescriptor(from, nextKey);
1149
646
  // 4cii. If desc is not undefined and desc.[[Enumerable]] is true, then
1150
- if (desc !== undefined && desc.enumerable) {
647
+ if (desc !== undefined$1 && desc.enumerable) {
1151
648
  // 4cii1. Let propValue be ? Get(from, nextKey).
1152
649
  var propValue = from[nextKey];
1153
650
  // 4cii2. Perform ? Set(to, nextKey, propValue, true).
@@ -1162,7 +659,7 @@
1162
659
  })();
1163
660
  }).call('object' === (typeof window === "undefined" ? "undefined" : _typeof(window)) && window || 'object' === (typeof self === "undefined" ? "undefined" : _typeof(self)) && self || 'object' === (typeof global === "undefined" ? "undefined" : _typeof(global)) && global || {});
1164
661
 
1165
- (function (undefined) {
662
+ (function (undefined$1) {
1166
663
  // Detection from https://github.com/Financial-Times/polyfill-library/blob/987630a085e29226da16b5dc542042c687560191/polyfills/Date/now/detect.js
1167
664
  var detect = 'Date' in this && 'now' in this.Date && 'getTime' in this.Date.prototype;
1168
665
  if (detect) return;
@@ -1724,4 +1221,4 @@
1724
1221
 
1725
1222
  return all;
1726
1223
 
1727
- })));
1224
+ }));