// ES6 feature detection (function () { window.isES6 = false; try { new Function([ "// Arrow functions", "() => {};", "", "// Class support", "class __ES6FeatureDetectionTest {}", "", "// Object initializer property and method shorthands", "let es6a = true;", "let es6b = {", " es6a,", " es6c() { return true; },", " es6d: [1, 2, 3],", "};", "", "// Object destructuring", "let { es6c, es6d } = es6b;", "", "// Spread operator", "let es6e = [...es6d, 4];", "", "// Ternary operator", "let es6f = es6a ? 'ternary' : 'no ternary';", "", "// Nullish coalescing", "es6a ??= 10;", ].join("\n"))(); window.isES6 = true; } catch (e) {} })(); const hamburgerComponent = { template: `