!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