!function(e){var n={};function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(n){return e[n]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/packs/",t(t.s=144)}({132:function(e,n,t){var i,o,r;function a(e){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(t){if("undefined"!==typeof window){var c,s=0,d=!1,u=!1,l="message".length,f="[iFrameSizer]",m=f.length,g=null,p=window.requestAnimationFrame,h={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},w={},b=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){O("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},v={};window.jQuery&&((c=window.jQuery).fn?c.fn.iFrameResize||(c.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){A(t,e)})).end()}):F("","Unable to bind to jQuery, it is not fully loaded.")),o=[],(r="function"===typeof(i=Q)?i.apply(n,o):i)===t||(e.exports=r),window.iFrameResize=window.iFrameResize||Q()}function E(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function T(e,n,t){e.addEventListener(n,t,!1)}function x(e,n,t){e.removeEventListener(n,t,!1)}function S(e){return f+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}function M(e){return w[e]?w[e].log:d}function I(e,n){N("log",e,n,M(e))}function F(e,n){N("info",e,n,M(e))}function O(e,n){N("warn",e,n,!0)}function N(e,n,t,i){!0===i&&"object"===a(window.console)&&console[e](S(n),t)}function k(e){function n(){o("Height"),o("Width"),P((function(){H(N),C(k),u("onResized",N)}),N,"init")}function t(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var n=Number(w[k]["max"+e]),t=Number(w[k]["min"+e]),i=e.toLowerCase(),o=Number(N[i]);I(k,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,I(k,"Set "+i+" to min value")),o>n&&(o=n,I(k,"Set "+i+" to max value")),N[i]=""+o}function r(e){return M.substr(M.indexOf(":")+l+e)}function a(e,n){var t,i,o;t=function(){var t,i;B("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=N.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},i=32,v[o=n]||(v[o]=setTimeout((function(){v[o]=null,t()}),i))}function c(e){var n=e.getBoundingClientRect();return R(k),{x:Math.floor(Number(n.left)+Number(g.x)),y:Math.floor(Number(n.top)+Number(g.y))}}function s(e){var n=e?c(N.iframe):{x:0,y:0},t={x:Number(N.width)+n.x,y:Number(N.height)+n.y};I(k,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):O(k,"Unable to scroll to requested position, window.parentIFrame not found"):(g=t,d(),I(k,"--"))}function d(){!1!==u("onScroll",g)?C(k):j()}function u(e,n){return z(k,e,n)}var p,h,b,y,E,S,M=e.data,N={},k=null;"[iFrameResizerChild]Ready"===M?function(){for(var e in w)B("iFrame requested init",L(e),w[e].iframe,e)}():f===(""+M).substr(0,m)&&M.substr(m).split(":")[0]in w?(b=M.substr(m).split(":"),y=b[1]?parseInt(b[1],10):0,E=w[b[0]]&&w[b[0]].iframe,S=getComputedStyle(E),N={iframe:E,id:b[0],height:y+t(S)+i(S),width:b[2],type:b[3]},k=N.id,w[k]&&(w[k].loaded=!0),(h=N.type in{true:1,false:1,undefined:1})&&I(k,"Ignoring init message from meta parent page"),!h&&function(e){var n=!0;return w[e]||(n=!1,O(N.type+" No settings for "+e+". Message was: "+M)),n}(k)&&(I(k,"Received: "+M),p=!0,null===N.iframe&&(O(k,"IFrame ("+N.id+") not found"),p=!1),p&&function(){var n,t=e.origin,i=w[k]&&w[k].checkOrigin;if(i&&""+t!=="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(I(k,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(n=w[k]&&w[k].remoteHost,I(k,"Checking connection is from: "+n),t===n)))throw new Error("Unexpected message received from: "+t+" for "+N.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(w[k]&&w[k].firstRun&&w[k]&&(w[k].firstRun=!1),N.type){case"close":_(N.iframe);break;case"message":f=r(6),I(k,"onMessage passed: {iframe: "+N.iframe.id+", message: "+f+"}"),u("onMessage",{iframe:N.iframe,message:JSON.parse(f)}),I(k,"--");break;case"autoResize":w[k].autoResize=JSON.parse(r(9));break;case"scrollTo":s(!1);break;case"scrollToOffset":s(!0);break;case"pageInfo":a(w[k]&&w[k].iframe,k),function(){function e(e,i){function o(){w[t]?a(w[t].iframe,t):n()}["scroll","resize"].forEach((function(n){I(t,e+n+" listener for sendPageInfo"),i(window,n,o)}))}function n(){e("Remove ",x)}var t=k;e("Add ",T),w[t]&&(w[t].stopPageInfo=n)}();break;case"pageInfoStop":w[k]&&w[k].stopPageInfo&&(w[k].stopPageInfo(),delete w[k].stopPageInfo);break;case"inPageLink":e=r(9),i=e.split("#")[1]||"",o=decodeURIComponent(i),(l=document.getElementById(o)||document.getElementsByName(o)[0])?(t=c(l),I(k,"Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),g={x:t.x,y:t.y},d(),I(k,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):I(k,"In page link #"+i+" not found and window.parentIFrame not found"):I(k,"In page link #"+i+" not found");break;case"reset":V(N);break;case"init":n(),u("onInit",N.iframe);break;default:n()}var e,t,i,o,l,f}())):F(k,"Ignored: "+M)}function z(e,n,t){var i=null,o=null;if(w[e]){if("function"!==typeof(i=w[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function W(e){var n=e.id;delete w[n]}function _(e){var n=e.id;if(!1!==z(n,"onClose",n)){I(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(t){O(t)}z(n,"onClosed",n),I(n,"--"),W(e)}else I(n,"Close iframe cancelled by onClose event")}function R(e){null===g&&I(e,"Get page position: "+(g={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+g.y)}function C(e){null!==g&&(window.scrollTo(g.x,g.y),I(e,"Set page position: "+g.x+","+g.y),j())}function j(){g=null}function V(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),P((function(){H(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function H(e){function n(n){u||"0"!==e[n]||(u=!0,I(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(w).forEach((function(e){!function(e){function n(n){return"0px"===(w[e]&&w[e].iframe.style[n])}w[e]&&null!==w[e].iframe.offsetParent&&(n("height")||n("width"))&&B("Visibility change","resize",w[e].iframe,e)}(e)}))}function n(n){I("window","Mutation observed: "+n[0].target+" "+n[0].type),q(e,16)}var t=E();t&&(i=document.querySelector("body"),new t(n).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var i}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",I(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):I("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;w[i]&&(w[i].sizeHeight&&t("height"),w[i].sizeWidth&&t("width"))}function P(e,n,t){t!==n.type&&p&&!window.jasmine?(I(n.id,"Requesting animation frame"),p(e)):e()}function B(e,n,t,i,o){var r,a=!1;i=i||t.id,w[i]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(r=w[i]&&w[i].targetOrigin,I(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+r),t.contentWindow.postMessage(f+n,r)):O(i,"["+e+"] IFrame("+i+") not found"),o&&w[i]&&w[i].warningTimeout&&(w[i].msgTimeout=setTimeout((function(){!w[i]||w[i].loaded||a||(a=!0,O(i,"IFrame has not responded within "+w[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),w[i].warningTimeout)))}function L(e){return e+":"+w[e].bodyMarginV1+":"+w[e].sizeWidth+":"+w[e].log+":"+w[e].interval+":"+w[e].enablePublicMethods+":"+w[e].autoResize+":"+w[e].bodyMargin+":"+w[e].heightCalculationMethod+":"+w[e].bodyBackground+":"+w[e].bodyPadding+":"+w[e].tolerance+":"+w[e].inPageLinks+":"+w[e].resizeFrom+":"+w[e].widthCalculationMethod}function A(e,n){function i(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],O(c,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var o,r,c=function(t){var i;return""===t&&(e.id=(i=n&&n.id||y.id+s++,null!==document.getElementById(i)&&(i+=s++),t=i),d=(n||{}).log,I(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);c in w&&"iFrameResizer"in e?O(c,"Ignored iFrame, already setup."):(!function(n){var t;n=n||{},w[c]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!==a(e))throw new TypeError("Options is not an object")}(n),Object.keys(n).forEach(i,n),function(e){for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&(w[c][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:y[n])}(n),w[c]&&(w[c].targetOrigin=!0===w[c].checkOrigin?""===(t=w[c].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*")}(n),function(){switch(I(c,"IFrame scrolling "+(w[c]&&w[c].scrolling?"enabled":"disabled")+" for "+c),e.style.overflow=!1===(w[c]&&w[c].scrolling)?"hidden":"auto",w[c]&&w[c].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=w[c]?w[c].scrolling:"no"}}(),function(){function n(n){1/0!==w[c][n]&&0!==w[c][n]&&(e.style[n]=w[c][n]+"px",I(c,"Set "+n+" = "+w[c][n]+"px"))}function t(e){if(w[c]["min"+e]>w[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!==typeof(w[c]&&w[c].bodyMargin)&&"0"!==(w[c]&&w[c].bodyMargin)||(w[c].bodyMarginV1=w[c].bodyMargin,w[c].bodyMargin=w[c].bodyMargin+"px"),o=L(c),(r=E())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&_(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),T(e,"load",(function(){var n,i;B("iFrame.onload",o,e,t,!0),n=w[c]&&w[c].firstRun,i=w[c]&&w[c].heightCalculationMethod in h,!n&&i&&V({iframe:e,height:0,width:0,type:"init"})})),B("init",o,e,t,!0),w[c]&&(w[c].iframe.iFrameResizer={close:_.bind(null,w[c].iframe),removeListeners:W.bind(null,w[c].iframe),resize:B.bind(null,"Window resize","resize",w[c].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,w[c].iframe,c)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),w[c].iframe,c)}}))}function q(e,n){null===b&&(b=setTimeout((function(){b=null,e()}),n))}function U(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),q((function(){D("Tab Visable","resize")}),16))}function D(e,n){Object.keys(w).forEach((function(t){(function(e){return w[e]&&"parent"===w[e].resizeFrom&&w[e].autoResize&&!w[e].firstRun})(t)&&B(e,n,w[t].iframe,t)}))}function J(){T(window,"message",k),T(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),q((function(){D("Window "+e,"resize")}),16)})),T(document,"visibilitychange",U),T(document,"-webkit-visibilitychange",U)}function Q(){function e(e,t){t&&(!function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),A(t,e),n.push(t))}var n;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!p;e+=1)p=window[n[e]+"RequestAnimationFrame"];p||I("setup","RequestAnimationFrame not supported")}(),J(),function(i,o){switch(n=[],function(e){e&&e.enablePublicMethods&&O("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),a(o)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(t,i));break;case"object":e(i,o);break;default:throw new TypeError("Unexpected data type ("+a(o)+")")}return n}}}()},144:function(e,n,t){"use strict";t.r(n);var i=t(132);window.VETT_NEWS_EMBED=function(e){var n={frameHost:"https://cx.vettnews.com",insertStyles:!0,insertSpinner:!0,debug:!1,name:null,custom_id:null,initialize:function(e){n.log("initializing widget");var t=n.createCorrection(e);i({checkOrigin:!1},t)},log:function(e){n.debug&&console.log("[VETT_NEWS widget embed] "+e)},createContainer:function(t){var i=e.getElementById(t);return i||n.log("container not found"),i.id="VETT_NEWS_correction_container",i},createFrame:function(){var t=e.createElement("iframe");t.scrolling="no",t.id="VETT_NEWS_correction";var i=e.URL,o=encodeURI(i)+"&name="+(n.name?n.name:"")+"&custom_id="+(n.custom_id?n.custom_id:"");return t.src=n.frameHost+"/public_correction_requests/new?url="+o,t},createSpinner:function(){var n=e.createElement("img");return n.className="VETT_NEWS-spinner",n.id="VETT_NEWS_correction_spinner",n},createStyleTag:function(){var n=e.head||e.getElementsByTagName("head")[0],t=e.createElement("style");t.type="text/css";var i=" #VETT_NEWS_correction { border: none; width: 100%; height: 350px; }  #VETT_NEWS_correction_container { text-align: center; }  #VETT_NEWS_correction_container, #VETT_NEWS_correction_container iframe { min-height: 0px; }  #VETT_NEWS_correction_spinner { height: 32px; top: 12px; position: relative; } ";t.styleSheet?t.styleSheet.cssText=i:t.appendChild(e.createTextNode(i)),n.appendChild(t)},createCorrection:function(e){var t,i=n.createContainer(e);if(t=n.createFrame(),n.insertStyles&&n.createStyleTag(),n.insertSpinner){var o=n.createSpinner();window.addEventListener("message",(function(e){n.log("window received message: "+e.data),"fans-timeline-loaded"===e.data&&(o.style.display="none",n.log("loaded; removing loading indicator"))})),i.insertBefore(o,i.firstChild)}return o.parentNode.insertBefore(t,o.nextSibling),t}};return n}(document),"function"===typeof window.onVettNewsEmbedLoad?window.onVettNewsEmbedLoad():window.VETT_NEWS_EMBED.log("no function window.onVettNewsEmbedLoad found")}});
//# sourceMappingURL=vett_news_embed-6df3dbf8c7ccdb7220f0.js.map