(()=>{function pe(){"use strict";function e(o,p,g){"addEventListener"in window?o.addEventListener(p,g,!1):"attachEvent"in window&&o.attachEvent("on"+p,g)}function i(){var o,p=["moz","webkit","o","ms"];for(o=0;o
v)throw new Error("Value for min"+u+" can not be greater than max"+u);n(" Checking "+z+" is in range "+N+"-"+v),N>$&&($=N,n(" Set "+z+" to min value")),$>v&&($=v,n(" Set "+z+" to max value")),w[z]=""+$}function B(){var u=w.iframe.src;!u&&w.iframe.getAttribute("data-src")&&(u=w.iframe.getAttribute("data-src"));var v=o.origin,N=u.split("/").slice(0,3).join("/");if(l.checkOrigin&&(n(" Checking connection is from: "+N),""+v!="null"&&v!==N))throw new Error("Unexpected message received from: "+v+" for "+w.iframe.id+". Message was: "+o.data+". This error can be disabled by adding the checkOrigin: false option.");return!0}function S(){return U===(""+H).substr(0,T)}function G(){var u=w.type in{true:1,false:1};return u&&n(" Ignoring init message from meta parent page"),u}function I(u){return H.substr(H.indexOf(":")+ie+u)}function C(u){n(" MessageCallback passed: {iframe: "+w.iframe.id+", message: "+u+"}"),l.messageCallback({iframe:w.iframe,message:JSON.parse(u)}),n(" --")}function ue(){if(w.iframe===null)throw new Error("iFrame ("+w.id+") does not exist on "+O);return!0}function se(u){var v=u.getBoundingClientRect();return a(),{x:parseInt(v.left,10)+parseInt(h.x,10),y:parseInt(v.top,10)+parseInt(h.y,10)}}function le(u){function v(){h=$,ce(),n(" --")}function N(){return{x:Number(w.width)+z.x,y:Number(w.height)+z.y}}var z=u?se(w.iframe):{x:0,y:0},$=N();n(" Reposition requested from iFrame (offset x:"+z.x+" y:"+z.y+")"),window.top!==window.self?window.parentIFrame?u?parentIFrame.scrollToOffset($.x,$.y):parentIFrame.scrollTo(w.width,w.height):c(" Unable to scroll to requested position, window.parentIFrame not found"):v()}function ce(){l.scrollCallback(h)!==!1&&m()}function ge(u){function v(ye){var K=se(ye);n(" Moving to in page link (#"+N+") at x: "+K.x+" y: "+K.y),h={x:K.x,y:K.y},ce(),n(" --")}var N=u.split("#")[1]||"",z=decodeURIComponent(N),$=document.getElementById(z)||document.getElementsByName(z)[0];window.top!==window.self?window.parentIFrame?parentIFrame.moveToAnchor(N):n(" In page link #"+N+" not found and window.parentIFrame not found"):$?v($):n(" In page link #"+N+" not found")}function he(){switch(w.type){case"close":g(w.iframe),l.resizedCallback(w);break;case"message":C(I(6));break;case"scrollTo":le(!1);break;case"scrollToOffset":le(!0);break;case"inPageLink":ge(I(9));break;case"reset":d(w);break;case"init":p(),l.initCallback(w.iframe);break;default:p()}}var H=o.data,w={};S()&&(n(" Received: "+H),w=x(),!G()&&ue()&&B()&&(he(),D=!1))}function a(){h===null&&(h={x:window.pageXOffset!==void 0?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==void 0?window.pageYOffset:document.documentElement.scrollTop},n(" Get page position: "+h.x+","+h.y))}function m(){h!==null&&(window.scrollTo(h.x,h.y),n(" Set page position: "+h.x+","+h.y),h=null)}function d(o){function p(){s(o),A("reset","reset",o.iframe)}n(" Size reset requested by "+(o.type==="init"?"host page":"iFrame")),a(),k(p,o,"init")}function s(o){function p(g){o.iframe.style[g]=o[g]+"px",n(" IFrame ("+o.iframe.id+") "+g+" set to "+o[g]+"px")}l.sizeHeight&&p("height"),l.sizeWidth&&p("width")}function k(o,p,g){g!==p.type&&E?(n(" Requesting animation frame"),E(o)):o()}function A(o,p,g){n("["+o+"] Sending msg to iframe ("+p+")"),g.contentWindow.postMessage(U+p,"*")}function R(){function o(){function I(C){1/0!==l[C]&&l[C]!==0&&(S.style[C]=l[C]+"px",n(" Set "+C+" = "+l[C]+"px"))}I("maxHeight"),I("minHeight"),I("maxWidth"),I("minWidth")}function p(I){return I===""&&(S.id=I="iFrameResizer"+ee++,n(" Added missing iframe ID: "+I+" ("+S.src+")")),I}function g(){n(" IFrame scrolling "+(l.scrolling?"enabled":"disabled")+" for "+G),S.style.overflow=l.scrolling===!1?"hidden":"auto",S.scrolling=l.scrolling===!1?"no":"yes"}function x(){(typeof l.bodyMargin=="number"||l.bodyMargin==="0")&&(l.bodyMarginV1=l.bodyMargin,l.bodyMargin=""+l.bodyMargin+"px")}function F(){return G+":"+l.bodyMarginV1+":"+l.sizeWidth+":"+l.log+":"+l.interval+":"+l.enablePublicMethods+":"+l.autoResize+":"+l.bodyMargin+":"+l.heightCalculationMethod+":"+l.bodyBackground+":"+l.bodyPadding+":"+l.tolerance}function B(I){e(S,"load",function(){var C=D;A("iFrame.onload",I,S),!C&&l.heightCalculationMethod in Y&&d({iframe:S,height:0,width:0,type:"init"})}),A("init",I,S)}var S=this,G=p(S.id);g(),o(),x(),B(F())}function Z(o){if(typeof o!="object")throw new TypeError("Options is not an object.")}function j(o){o=o||{},Z(o);for(var p in y)y.hasOwnProperty(p)&&(l[p]=o.hasOwnProperty(p)?o[p]:y[p])}function q(){function o(p){if(!p.tagName)throw new TypeError("Object is not a valid DOM element");if(p.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected