parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"tG4k":[function(require,module,exports) {
var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var o=new Uint8Array(16);module.exports=function(){return e(o),o}}else{var r=new Array(16);module.exports=function(){for(var e,o=0;o<16;o++)0==(3&o)&&(e=4294967296*Math.random()),r[o]=e>>>((3&o)<<3)&255;return r}}
},{}],"NxCc":[function(require,module,exports) {
for(var r=[],o=0;o<256;++o)r[o]=(o+256).toString(16).substr(1);function t(o,t){var n=t||0,u=r;return[u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],"-",u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]],u[o[n++]]].join("")}module.exports=t;
},{}],"A0Zv":[function(require,module,exports) {
var r=require("./lib/rng"),n=require("./lib/bytesToUuid");function e(e,i,u){var a=i&&u||0;"string"==typeof e&&(i="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||r)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,i)for(var o=0;o<16;++o)i[a+o]=l[o];return i||n(l)}module.exports=e;
},{"./lib/rng":"tG4k","./lib/bytesToUuid":"NxCc"}],"i38W":[function(require,module,exports) {
"use strict";var e=t(require("uuid/v4"));function t(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",i=arguments.length>3?arguments[3]:void 0,o={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},r=window.pageYOffset,a="now"in window.performance?performance.now():(new Date).getTime(),u=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),d=window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight,c="number"==typeof e?e:e.offsetTop,l=Math.round(u-c<d?u-d:c);if("requestAnimationFrame"in window==!1)return window.scroll(0,l),void(i&&i());!function e(){var u="now"in window.performance?performance.now():(new Date).getTime(),d=Math.min(1,(u-a)/t),c=o[n](d);window.scroll(0,Math.ceil(c*(l-r)+r)),Math.ceil(window.pageYOffset)!==l?requestAnimationFrame(e):i&&i()}()}Math.easeInOutQuad=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t};var a=!1;function u(){if(!a){a=!0;var e=document.querySelector("head"),t=document.createElement("style");e.appendChild(t),t.type="text/css",t.innerHTML="\n\tiframe.--animate {\n\t\ttransition: 0.2s height;\n\t\twill-change: height;\n\t}\n\t"}}var d=function(){function e(t){var i=this;n(this,e),this.iframe=t,window.addEventListener("scroll",function(e){return i.update()},!1),window.addEventListener("resize",function(e){return i.update()},!1),window.addEventListener("orientationchange",function(e){return i.update()},!1),this.update()}return o(e,[{key:"update",value:function(){var e={cmd:"dimensions",dimensions:{width:window.innerWidth,height:window.innerHeight,scrollX:window.scrollX,scrollY:window.scrollY}};this.iframe._boundingClientRect=this.iframe.getBoundingClientRect(),this.iframe.contentWindow.postMessage(e,"*")}}]),e}();function c(){try{throw new Error}catch(C){var t=C.stack.match(/(https?\:\/\/[^\s]+\.js)/);if(!t)return;var n=t[1],i=document.createElement("a");i.setAttribute("href",n);var o=i.protocol+"//"+i.hostname+(i.port&&!~["80","443",80,443].indexOf(i.port)?":"+i.port:""),a=document.querySelectorAll("[data-freddiemac-chart]"),c={},l=0;for(l=0;l<a.length;l++){var s=a[l];if(!s.querySelector("iframe")){var f=document.createElement("iframe"),m=s.getAttribute("data-freddiemac-chart"),w=[],h=[].filter.call(s.attributes,function(e){return/^data-/.test(e.name)}),g=0;for(g=0;g<h.length;g++){var p=h[g],v=p.name.replace(/^data\-/,"").replace(/-(\w)/,function(e){return e[1].toUpperCase()});w.push(v+"="+encodeURIComponent(p.value))}var b=(0,e.default)();w.push("_id="+b),f.setAttribute("src",n.replace(/common\/embed.*$/,m+"/embed.html?"+w.join("&"))),f.setAttribute("scrolling","no"),f.setAttribute("style","width:1px;min-width: 100%;border: 0;height:300px;display: block;"),s.appendChild(f),f._boundingClientRect=f.getBoundingClientRect(),c[b]=f,u()}}function y(e){var t=null;for(t in c){var n=c[t];n._boundingClientRect||(n._boundingClientRect=n.getBoundingClientRect()),n.contentWindow.postMessage({cmd:e.type,event:{pageX:e.pageX,pageY:e.pageY,scrollX:window.scrollX,scrollY:window.scrollY},boundingClientRect:n._boundingClientRect,x:n._boundingClientRect.x+window.scrollX,y:n._boundingClientRect.y+window.scrollY},"*")}}window.addEventListener("message",function(e){if(o===e.origin){var t=e.data;if(t&&t.id&&c[t.id]){var n=c[t.id];if("height"==t.event&&t.data.height)n.classList.add("--animate"),n.addEventListener("transitionend",function(){this.classList.remove("--animate")},{once:!0}),n.style.height=t.data.height+"px";else if("scroll"==t.event&&t.data.scrollTo>-1){var i=n.getBoundingClientRect();r(t.data.scrollTo+i.top+(void 0===window.scrollY?window.pageYOffset:window.scrollY),400,"easeInOutQuad")}else"watchDimensions"==t.event&&new d(n)}}}),window.addEventListener("mouseup",y,!1),window.addEventListener("mousedown",y,!1),window.addEventListener("mousemove",y,!1)}}"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c);
},{"uuid/v4":"A0Zv"}]},{},["i38W"], null)
//# sourceMappingURL=/embed.js.map