!function(t){function e(n){if(o)return o.exports;var r=o={exports:{},id:n,loaded:!1};return t.call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var o={};return e.m=t,e.c=o,e.p=“”,e(0)}({0:function(t,e,o){“use strict”;function n(t){return t&&t.__esModule?t:{“default”:t}}function r(t,e){return console.error(e.stack),{description:t.description,error:e.message}}function i(t){return new Promise(function(e,o){var n=setTimeout(function(){o(new Error(“Async callback was not invoked within timeout.”))},3e3),r=function(){clearTimeout(n),e()};t®})}var c=o(25),l=n©,a=o(27),u=n(a);window.happo={defined:{},fdefined:[],errors:,define:function(t,e,o){if(this.defined)throw new Error('Error while defining “'t'”: Duplicate description detected’);this.defined={description:t,func:e,options:o||{}}},fdefine:function(t,e,o){this.define(t,e,o),this.fdefined.push(t)},getAllExamples:function(){var t=this,e=this.fdefined.length?this.fdefined:Object.keys(this.defined);return e.map(function(e){var o=t.defined;return{description:o.description,options:o.options}})},cleanOutElement:function(){},renderExample:function(t,e){var o=this,n=this.defined;try{if(!n)throw new Error('No example found with description “'t'”');for(;document.body.firstChild;)document.body.firstChild instanceof Element&&this.cleanOutElement(document.body.firstChild),document.body.removeChild(document.body.firstChild);var c=n.func;if(c.length)i©.then(function(){o.processExample(n).then(e)(e)})[“catch”](function(t){e(r(n,t))});else{var l=c();l instanceof Promise?l.then(function(){o.processExample(n).then(e)(e)})[“catch”](function(t){e(r(n,t))}):this.processExample(n).then(e)(e)}}catch(a){e(r(n,a))}},getRootNodes:function(){return document.body.children},processExample:function(t){var e=this;return new Promise(function(o,n){(0,u)().then(function(){try{var i=e.getRootNodes(),c=(0,l)(i),a=c.height,u=c.left,d=c.top,f=c.width;o({description:t.description,height:a,left:u,top:d,width:f})}catch(s){n(r(t,s))}})[“catch”](function(e){n(r(t,e))})})}},window.addEventListener(“load”,function(){var t=window.location.search.match(/description=(*)/);if(t){var e=decodeURIComponent(t);window.happo.renderExample(e,function(){})}}),window.alert=function(t){console.log(“`window.alert` called”,t)},window.confirm=function(t){return console.log(“`window.confirm` called”,t),!0},window.prompt=function(t,e){return console.log(“`window.prompt` called”,t,e),null},window.onerror=function(t,e,o){window.happo.errors.push({message:t,url:e,lineNumber:o})}},25:function(t,e,o){“use strict”;function n(t){return t&&t.__esModule?t:{“default”:t}}function r(t,e){return void 0===t?e:Math.min(t,e)}function i(t,e){(0,a)(t);var o=t.getBoundingClientRect();e.bottom=Math.max(e.bottom,o.bottom),e.left=r(e.left,o.left),e.right=Math.max(e.right,o.right),e.top=r(e.top,o.top);for(var n=0;n,e)}function c(t){for(var e={bottom:0,left:void 0,right:0,top:void 0},o=0;o<t.length;o++){var n=t;i(n,e);var r=window.getComputedStyle(n);e.bottom+=parseFloat(r.getPropertyValue(“margin-bottom”)),e.left-=parseFloat(r.getPropertyValue(“margin-left”)),e.right+=parseFloat(r.getPropertyValue(“margin-right”)),e.top-=parseFloat(r.getPropertyValue(“margin-top”))}return e.bottom=Math.ceil(e.bottom),e.left=Math.floor(e.left),e.right=Math.ceil(e.right),e.top=Math.floor(e.top),e.left=Math.max(e.left,0),e.top=Math.max(e.top,0),e.width=e.right-e.left,e.height=e.bottom-e.top,e}Object.defineProperty(e,“__esModule”,{value:!0}),e=c;var l=o(26),a=n(l)},26:function(t,e){“use strict”;function o(t){return“auto”===t||“scroll”===t}function n(t){var e=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth;if(e){var n=window.getComputedStyle(t);(o(n.getPropertyValue(“overflow-y”))||o(n.getPropertyValue(“overflow-x”))||o(n.getPropertyValue(“overflow”)))&&(t.style.cssText+=“overflow: hidden !important”)}}Object.defineProperty(e,“__esModule”,{value:!0}),e=n},27:function(t,e){“use strict”;function o(t){return new Promise(function(e,o){var n=new Image;n.onerror=function(){return o(new Error(“Failed to load image with url ”+t))},n.onload=e,n.src=t})}function n(){return new Promise(function(t,e){var n=Array.prototype.slice.call(document.querySelectorAll(“img”)).map(function(t){return t.src}).filter(Boolean).map(function(t){return o(t)});0===n.length&&t(),Promise.all(n).then(function(){requestAnimationFrame(function(){requestAnimationFrame(function(){t()})})})[“catch”](e)})}Object.defineProperty(e,“__esModule”,{value:!0}),e=n}});