{"version":3,"file":"js/iframeResizer.min.js","sources":["iframeResizer.js"],"names":["addEventListener","obj","evt","func","window","attachEvent","setupRequestAnimationFrame","x","vendors","length","requestAnimationFrame","log","msg","settings","console","msgId","page","iFrameListener","event","resizeIFrame","resize","setSize","messageData","setPagePosition","resizedCallback","syncResize","closeIFrame","iframe","iframeID","id","parentNode","removeChild","closedCallback","processMsg","data","substr","msgIdLen","split","document","getElementById","height","width","type","ensureInRange","Dimension","max","Number","min","dimension","toLowerCase","size","Error","isMessageFromIFrame","origin","remoteHost","src","slice","join","checkOrigin","isMessageForUs","isMessageFromMetaParent","retCode","true","false","forwardMsgFromIFrame","msgBody","indexOf","msgHeaderLen","messageCallback","message","checkIFrameExists","scrollRequestFromChild","pagePosition","y","actionMsg","resetIFrame","initCallback","firstRun","getPagePosition","undefined","pageXOffset","documentElement","scrollLeft","pageYOffset","scrollTop","scrollTo","reset","trigger","setDimension","style","sizeHeight","sizeWidth","doNotSync","calleeMsg","contentWindow","postMessage","setupIFrame","setLimits","addStyle","Infinity","ensureHasId","count","setScrolling","scrolling","overflow","setupBodyMarginValues","bodyMargin","bodyMarginV1","createOutgoingMsg","interval","enablePublicMethods","autoResize","heightCalculationMethod","bodyBackground","bodyPadding","tolerance","init","fr","resetRequiredMethods","this","checkOptions","options","TypeError","createNativePublicFunction","element","tagName","toUpperCase","call","processOptions","option","defaults","hasOwnProperty","selecter","Array","prototype","forEach","querySelectorAll","createJQueryPublicMethod","$","fn","iFrameResize","extend","filter","each","end","msgHeader","scroll","bodyScroll","documentElementScroll","maxHeight","maxWidth","minHeight","minWidth","jQuery","define","amd"],"mappings":";;;;;;;CAOC,WACG,YAwCH,SAASA,GAAiBC,EAAIC,EAAIC,GAC7B,oBAAsBC,QACzBH,EAAID,iBAAiBE,EAAIC,GAAM,GACrB,eAAiBC,SAC3BH,EAAII,YAAY,KAAKH,EAAIC,GAI3B,QAASG,KACR,GAECC,GADAC,GAAW,MAAO,SAAU,IAAK,KAIlC,KAAKD,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