vendor: 4,766 bytes, line 1
1!function(e){if("undefined"!=typeof window){var n,i=0,t=!1,o=!1,r="message".length,a="[iFrameSizer]",s=a.length,d=null,c=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},l=null,m={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(){I("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,i){j(i,e)})).end()}):F("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof define&&define.amd?define([],B):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=B()),window.iFrameResize=window.iFrameResize||B()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,i){e.addEventListener(n,i,!1)}function p(e,n,i){e.removeEventListener(n,i,!1)}function b(e){return a+"["+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 y(e){return f[e]?f[e].log:t}function v(e,n){M("log",e,n,y(e))}function F(e,n){M("info",e,n,y(e))}function I(e,n){M("warn",e,n,!0)}function M(e,n,i,t){!0===t&&"object"==typeof window.console&&console[e](b(n),i)}function x(e){function n(){i("Height"),i("Width"),W((function(){N(x),E(z),m("onResized",x)}),x,"init")}function i(e){var n=Number(f[z]["max"+e]),i=Number(f[z]["min"+e]),t=e.toLowerCase(),o=Number(x[t]);v(z,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,v(z,"Set "+t+" to min value")),o>n&&(o=n,v(z,"Set "+t+" to max value")),x[t]=""+o}function t(e){return M.substr(M.indexOf(":")+r+e)}function o(e,n){var i,t,o;i=function(){var i,t;H("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),t=x.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},t=32,g[o=n]||(g[o]=setTimeout((function(){g[o]=null,i()}),t))}function c(e){var n=e.getBoundingClientRect();return R(z),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function u(e){var n=e?c(x.iframe):{x:0,y:0},i={x:Number(x.width)+n.x,y:Number(x.height)+n.y};v(z,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):I(z,"Unable to scroll to requested position, window.parentIFrame not found"):(d=i,l(),v(z,"--"))}function l(){!1!==m("onScroll",d)?E(z):T()}function m(e,n){return k(z,e,n)}var h,b,y,M=e.data,x={},z=null;"[iFrameResizerChild]Ready"===M?function(){for(var e in f)H("iFrame requested init",S(e),document.getElementById(e),e)}():a===(""+M).substr(0,s)&&M.substr(s).split(":")[0]in f?(y=M.substr(s).split(":"),x={iframe:f[y[0]]&&f[y[0]].iframe,id:y[0],height:y[1],width:y[2],type:y[3]},z=x.id,f[z]&&(f[z].loaded=!0),(b=x.type in{true:1,false:1,undefined:1})&&v(z,"Ignoring init message from meta parent page"),!b&&function(e){var n=!0;return f[e]||(n=!1,I(x.type+" No settings for "+e+". Message was: "+M)),n}(z)&&(v(z,"Received: "+M),h=!0,null===x.iframe&&(I(z,"IFrame ("+x.id+") not found"),h=!1),h&&function(){var n,i=e.origin,t=f[z]&&f[z].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(v(z,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(n=f[z]&&f[z].remoteHost,v(z,"Checking connection is from: "+n),i===n)))throw new Error("Unexpected message received from: "+i+" for "+x.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(f[z]&&f[z].firstRun&&f[z]&&(f[z].firstRun=!1),x.type){case"close"
1:O(x.iframe);break;case"message":s=t(6),v(z,"onMessage passed: {iframe: "+x.iframe.id+", message: "+s+"}"),m("onMessage",{iframe:x.iframe,message:JSON.parse(s)}),v(z,"--");break;case"autoResize":f[z].autoResize=JSON.parse(t(9));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(f[z]&&f[z].iframe,z),function(){function e(e,t){function r(){f[i]?o(f[i].iframe,i):n()}["scroll","resize"].forEach((function(n){v(i,e+n+" listener for sendPageInfo"),t(window,n,r)}))}function n(){e("Remove ",p)}var i=z;e("Add ",w),f[i]&&(f[i].stopPageInfo=n)}();break;case"pageInfoStop":f[z]&&f[z].stopPageInfo&&(f[z].stopPageInfo(),delete f[z].stopPageInfo);break;case"inPageLink":i=t(9).split("#")[1]||"",r=decodeURIComponent(i),(a=document.getElementById(r)||document.getElementsByName(r)[0])?(e=c(a),v(z,"Moving to in page link (#"+i+") at x: "+e.x+" y: "+e.y),d={x:e.x,y:e.y},l(),v(z,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):v(z,"In page link #"+i+" not found and window.parentIFrame not found"):v(z,"In page link #"+i+" not found");break;case"reset":C(x);break;case"init":n(),m("onInit",x.iframe);break;default:n()}var e,i,r,a,s}())):F(z,"Ignored: "+M)}function k(e,n,i){var t=null,o=null;if(f[e]){if("function"!=typeof(t=f[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function z(e){var n=e.id;delete f[n]}function O(e){var n=e.id;if(!1!==k(n,"onClose",n)){v(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){I(e)}k(n,"onClosed",n),v(n,"--"),z(e)}else v(n,"Close iframe cancelled by onClose event")}function R(n){null===d&&v(n,"Get page position: "+(d={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+d.y)}function E(e){null!==d&&(window.scrollTo(d.x,d.y),v(e,"Set page position: "+d.x+","+d.y),T())}function T(){d=null}function C(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),W((function(){N(e),H("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function n(n){o||"0"!==e[n]||(o=!0,v(t,"Hidden iFrame detected, creating visibility listener"),function(){function e(){function e(e){function n(n){return"0px"===(f[e]&&f[e].iframe.style[n])}function i(e){return null!==e.offsetParent}f[e]&&i(f[e].iframe)&&(n("height")||n("width"))&&H("Visibility change","resize",f[e].iframe,e)}Object.keys(f).forEach((function(n){e(f[n])}))}function n(n){v("window","Mutation observed: "+n[0].target+" "+n[0].type),P(e,16)}function i(){var e=document.querySelector("body"),i={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new t(n).observe(e,i)}var t=h();t&&i()}())}function i(i){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",v(e.id,"IFrame ("+t+") "+n+" set to "+e[n]+"px")):v("undefined","messageData id not set")}(i),n(i)}var t=e.iframe.id;f[t]&&(f[t].sizeHeight&&i("height"),f[t].sizeWidth&&i("width"))}function W(e,n,i){i!==n.type&&c?(v(n.id,"Requesting animation frame"),c(e)):e()}function H(e,n,i,t,o){var r,s=!1;t=t||i.id,f[t]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(r=f[t]&&f[t].targetOrigin,v(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+r),i.contentWindow.postMessage(a+n,r)):I(t,"["+e+"] IFrame("+t+") not found"),o&&f[t]&&f[t].warningTimeout&&(f[t].msgTimeout=setTimeout((function(){!f[t]||f[t].loaded||s||(s=!0,I(t,"IFrame has not responded within "+f[t].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."))}),f[t].warningTimeout)))}function S(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod}function j(n,o){function r(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],I(d,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var a,s,d=function(e){var r;return""===e&&(n.id=(r=o&&o.id||m.id+i++,null!==document.getElementById(r)&&(r+=i++),e=r),t=(o||{}).log,v(e,"Added missing iframe ID: "+e+" ("+n.src+")")),e}(n.id);d in f&&"iFrameResizer"in n?I(d,"Ignored iFrame, already setup."):(!function(e){var i;e=e||{},f[d]={firstRun:!0,iframe:n,remoteHost:n.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(r,e),function(e){for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&(f[d][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:m[n])}(e),f[d]&&(f[d].targetOrigin=!0===f[d].checkOrigin?""===(i=f[d].remoteHost)||"file://"===i?"*":i:"*")}(o),function(){switch(v(d,"IFrame scrolling "+(f[d]&&f[d].scrolling?"enabled":"disabled")+" for "+d),n.style.overflow=!1===(f[d]&&f[d].scrolling)?"hidden":"auto",f[d]&&f[d].scrolling){case"omit":break;case!0:n.scrolling="yes";break;case!1:n.scrolling="no";break;default:n.scrolling=f[d]?f[d].scrolling:"no"}}(),function(){function e(e){1/0!==f[d][e]&&0!==f[d][e]&&(n.style[e]=f[d][e]+"px",v(d,"Set "+e+" = "+f[d][e]+"px"))}function i(e){if(f[d]["min"+e]>f[d]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}i("Height"),i("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(f[d]&&f[d].bodyMargin)&&"0"!==(f[d]&&f[d].bodyMargin)||(f[d].bodyMarginV1=f[d].bodyMargin,f[d].bodyMargin=f[d].bodyMargin+"px"),a=S(d),(s=h())&&function(e){n.parentNode&&new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes
1).forEach((function(e){e===n&&O(n)}))}))})).observe(n.parentNode,{childList:!0})}(s),w(n,"load",(function(){var i,t;H("iFrame.onload",a,n,e,!0),i=f[d]&&f[d].firstRun,t=f[d]&&f[d].heightCalculationMethod in u,!i&&t&&C({iframe:n,height:0,width:0,type:"init"})})),H("init",a,n,e,!0),f[d]&&(f[d].iframe.iFrameResizer={close:O.bind(null,f[d].iframe),removeListeners:z.bind(null,f[d].iframe),resize:H.bind(null,"Window resize","resize",f[d].iframe),moveToAnchor:function(e){H("Move to anchor","moveToAnchor:"+e,f[d].iframe,d)},sendMessage:function(e){H("Send Message","message:"+(e=JSON.stringify(e)),f[d].iframe,d)}}))}function P(e,n){null===l&&(l=setTimeout((function(){l=null,e()}),n))}function A(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visiblity change"),P((function(){L("Tab Visable","resize")}),16))}function L(e,n){Object.keys(f).forEach((function(i){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(i)&&H(e,n,document.getElementById(i),i)}))}function q(){w(window,"message",x),w(window,"resize",(function(){var e;v("window","Trigger event: "+(e="resize")),P((function(){L("Window "+e,"resize")}),16)})),w(document,"visibilitychange",A),w(document,"-webkit-visibilitychange",A)}function B(){function n(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),j(n,e),i.push(n))}var i;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!c;e+=1)c=window[n[e]+"RequestAnimationFrame"];c||v("setup","RequestAnimationFrame not supported")}(),q(),function(t,o){switch(i=[],function(e){e&&e.enablePublicMethods&&I("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(t),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,t));break;case"object":n(t,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return i}}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.