/*! For license information please see mail.3754.baaa0783d7bbb6712f31.js.LICENSE.txt */ (globalThis.webpackChunkf7cloud_mail=globalThis.webpackChunkf7cloud_mail||[]).push([[3731,3754,7607],{55113(e){e.exports=function(){"use strict";const e="5.5.8",t="iframeResizer",r=":",n="autoResize",i="init",a="iframeReady",o="load",s="message",c="onload",u="pageInfo",l="parentInfo",T="reset",h="resize",p="scroll",d="\n",A="child",f="parent",E="string",D="object",m="function",S="undefined",R="auto",g="none",N="both",F="vertical",O="horizontal",y="[iFrameSizer]",b=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),v=Object.freeze({[c]:1,[i]:1,[a]:1}),M="expanded",Y="collapsed",I=Object.freeze({[M]:1,[Y]:1}),_="Use of the old name will be removed in a future version of iframe-resizer.",w="font-weight: normal;",L=w+"font-style: italic;",B="default",Z=Object.freeze({assert:!0,error:!0,warn:!0}),C={expand:!1,defaultEvent:void 0,event:void 0,label:"AutoConsoleGroup",showTime:!0},x={profile:0,profileEnd:0,timeStamp:0,trace:0},U=Object.assign(console),{fromEntries:P,keys:G}=Object,k=e=>[e,U[e]],H=e=>t=>[t,function(r){e[t]=r}],V=(e,t)=>P(G(e).map(t)),j=!(typeof window>"u"||"function"!=typeof window.matchMedia)&&window.matchMedia("(prefers-color-scheme: dark)").matches,z=j?"color: #A9C7FB;":"color: #135CD2;",q=j?"color: #E3E3E3;":"color: #1F1F1F;",Q=Object.hasOwn||((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),W={br:"\n",rb:"",bb:"",b:"",i:"",u:"","/":""},$=Object.keys(W),J=new RegExp(`<(${$.join("|")})>`,"gi"),K=(e,t)=>W[t]??"",X=e=>t=>e(typeof t===E?window.chrome?t.replace(J,K):(e=>e.replaceAll("
",d).replaceAll(/<\/?[^>]+>/gi,""))(t):t),ee={},te=(re=function(e={}){const t={},r={},n=[],i={...C,expand:!e.collapsed||C.expanded,...e};let a="";function o(){n.length=0,a=""}function s(){delete i.event,o()}function c(){if(0!==n.length){U[n.some(([e])=>e in Z)||i.expand?"group":"groupCollapsed"](`%c${i.label}%c ${(e=>{const t=e.event||e.defaultEvent;return t?`${t}`:""})(i)} %c${i.showTime?a:""}`,w,"font-weight: bold;",L);for(const[e,...t]of n)U.assert(e in U,`Unknown console method: ${e}`),e in U&&U[e](...t);U.groupEnd(),s()}else s()}function u(){""===a&&(a=function(){const e=new Date,t=(t,r)=>e[t]().toString().padStart(r,"0");return`@ ${t("getHours",2)}:${t("getMinutes",2)}:${t("getSeconds",2)}.${t("getMilliseconds",3)}`}(),queueMicrotask(()=>queueMicrotask(c)))}function l(e,...t){0===n.length&&u(),n.push([e,...t])}function T(e=B,...r){t[e]?l("log",`${e}: ${performance.now()-t[e]} ms`,...r):l("timeLog",e,...r)}return{...V(i,H(i)),...V(console,e=>[e,(...t)=>l(e,...t)]),...V(x,k),assert:function(e,...t){!0!==e&&l("assert",e,...t)},count:function(e=B){r[e]?r[e]+=1:r[e]=1,l("log",`${e}: ${r[e]}`)},countReset:function(e=B){delete r[e]},endAutoGroup:c,errorBoundary:e=>(...t)=>{let r;try{r=e(...t)}catch(e){if(!Error.prototype.isPrototypeOf(e))throw e;l("error",e),c()}return r},event:function(e){u(),i.event=e},purge:o,time:function(e=B){u(),t[e]=performance.now()},timeEnd:function(e=B){T(e),delete t[e]},timeLog:T,touch:u}},re?.__esModule?re.default:re);var re;let ne=!0;const ie=te({expand:!1,label:f}),ae=e=>window.top===window.self?`parent(${e})`:`nested parent(${e})`,oe=e=>(t,...r)=>ee[t]?ee[t].console[e](...r):ie[e](...r);const se=(e,...t)=>!0===(e=>ee[e]?ee[e].log:ne)(e)?oe("log")(e,...t):null,ce=oe("warn"),ue=oe("error"),le=oe("event"),Te=oe("purge"),he=oe("endAutoGroup"),pe=oe("errorBoundary"),de=X(e=>e),Ae=(e,...r)=>ee[e]?ee[e].console.warn(...r.map(de)):queueMicrotask(()=>{const n=X((e=>(...r)=>[`${t}(${e})`,...r].join(" "))(e));console?.warn(...r.map(n))}),fe=(e=>(t,r="renamed to")=>(n,i,a="",o="")=>e(o,`Deprecated ${t}(${n.replace("()","")})\n\nThe ${n} ${t.toLowerCase()} has been ${r} ${i}. ${a}Use of the old ${t.toLowerCase()} will be removed in a future version of iframe-resizer.`))(Ae),Ee=fe("Function"),De=fe("Option"),me=(e,t,r,n)=>e.addEventListener(t,r,n||!1),Se=(e,t,r)=>e.removeEventListener(t,r,!1),Re=e=>{if(!e)return"";let t=-559038744,r=1103547984;for(let n,i=0;i>>15,1935289751),r^=Math.imul(r^t>>>15,3405138345),t^=r>>>16,r^=t>>>16,(2097152*(r>>>0)+(t>>>11)).toString(36)},ge=e=>e.replace(/[A-Za-z]/g,e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26)),Ne=["spjluzl","rlf","clyzpvu"],Fe=["Puchspk Spjluzl Rlf","Tpzzpun Spjluzl Rlf","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.Jvttlyjphs SpjluzlMvy jvttlyjphs bzl,

pmyhtl-ylzpgly ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.Vwlu Zvbyjl SpjluzlPm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol spjluzl rlf pu

pmyhtl-ylzpgly vwapvuz av NWSc3.Mvy tvyl pumvythapvu wslhzl zll: oaawz://pmyhtl-ylzpgly.jvt/nws","NWSc3 Spjluzl ClyzpvuAopz clyzpvu vm

pmyhtl-ylzpgly pz ilpun bzlk bukly aol alytz vm aol NWS C3 spjluzl. Aopz spjluzl hssvdz fvb av bzl

pmyhtl-ylzpgly pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.Mvy tvyl pumvythapvu cpzpa oaawz://pmyhtl-ylzpgly.jvt/wypjpun.","Zvsv spjluzl kvlz uva zbwwvya jyvzz-kvthpuAv bzl

pmyhtl-ylzpgly dpao jyvzz kvthpu pmyhtlz fvb ullk lpaoly aol Wyvmlzzpvuhs vy Ibzpulzz spjluzlz. Mvy klahpsz vu bwnyhkl wypjpun wslhzl jvuahja pumv@pmyhtl-ylzpgly.jvt.","Pu whnl spurpun ylxbpylz h Wyvmlzzpvuhs vy Ibzpulzz spjluzl. Wslhzl zll oaawz://pmyhtl-ylzpgly.jvt/wypjpun mvy tvyl klahpsz."],Oe=["NWSc3","zvsv","wyv","ibzpulzz","vlt"],ye=Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map((e,t)=>[e,Math.max(0,t-1)])),be=e=>ge(Fe[e]),ve=e=>{const t=e[ge(Ne[0])]||e[ge(Ne[1])]||e[ge(Ne[2])];if(!t)return-1;const r=t.split("-");let n=function(e=""){let t=-2;const r=Re(ge(e));return r in ye&&(t=ye[r]),t}(r[0]);return 0===n||(e=>e[2]===Re(e[0]+e[1]))(r)||(n=-2),n};const Me={},Ye=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:F,firstRun:!0,inPageLinks:!1,heightCalculationMethod:R,id:"iFrameResizer",log:!1,logExpand:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,waitForLoad:!1,warningTimeout:5e3,widthCalculationMethod:R,onBeforeClose:()=>!0,onAfterClose(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:e=>{typeof ee[e.id].onInit===m&&(De("init()","onReady()","",e.id),ee[e.id].onInit(e))},onResized(){},onScroll:()=>!0}),Ie={position:null,version:e};function _e(t){function a(){Pe(Z),xe(U),_("onResized",Z)}function c(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function d(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}const A=e=>L.slice(L.indexOf(r)+7+e),D=(e,t)=>(r,n)=>{const i={};var a,o;a=function(){ke(`${r} (${e})`,`${e}:${t()}`,n)},i[o=n]||(a(),i[o]=requestAnimationFrame(()=>{i[o]=null}))},m=(e,t)=>()=>{let r=!1;const n=t=>()=>{ee[u]?r&&r!==t||(e(t,u),r=t,requestAnimationFrame(()=>{r=!1})):c()},i=n(p),a=n("resize window");function s(e,t){t(window,p,i),t(window,h,a)}function c(){le(u,`stop${t}`),s(0,Se),l.disconnect(),T.disconnect(),Se(ee[u].iframe,o,c)}const u=U,l=new ResizeObserver(n("pageObserver")),T=new ResizeObserver(n("iframeObserver"));ee[u]&&(ee[u][`stop${t}`]=c,me(ee[u].iframe,o,c),s(0,me),l.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),T.observe(ee[u].iframe,{attributes:!0,childList:!1,subtree:!1}))},S=e=>()=>{e in ee[U]&&(ee[U][e](),delete ee[U][e])},R=D(u,function(){const e=document.body.getBoundingClientRect(),t=Z.iframe.getBoundingClientRect(),{scrollY:r,scrollX:n,innerHeight:i,innerWidth:a}=window,{clientHeight:o,clientWidth:s}=document.documentElement;return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(o,i||0),clientWidth:Math.max(s,a||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:r,scrollLeft:n,documentHeight:o,documentWidth:s,windowHeight:i,windowWidth:a})}),g=D(l,function(){const{iframe:e}=Z,{scrollWidth:t,scrollHeight:r}=document.documentElement,{width:n,height:i,offsetLeft:a,offsetTop:o,pageLeft:s,pageTop:c,scale:u}=window.visualViewport;return JSON.stringify({iframe:e.getBoundingClientRect(),document:{scrollWidth:t,scrollHeight:r},viewport:{width:n,height:i,offsetLeft:a,offsetTop:o,pageLeft:s,pageTop:c,scale:u}})}),N=m(R,"PageInfo"),F=m(g,"ParentInfo"),O=S("stopPageInfo"),b=S("stopParentInfo");function v(e){const t=e.getBoundingClientRect();return Ze(),{x:Number(t.left)+Number(Ie.position.x),y:Number(t.top)+Number(Ie.position.y)}}function M(e){const t=e?v(Z.iframe):{x:0,y:0};se(U,`Reposition requested (offset x:%c${t.x}%c y:%c${t.y})`,z,q,z);const r=((e,t)=>({x:e.width+t.x,y:e.height+t.y}))(Z,t),n=window.parentIframe||window.parentIFrame;n?function(t,r){setTimeout(()=>t["scrollTo"+(e?"Offset":"")](r.x,r.y))}(n,r):function(e){Ie.position=e,Y(U)}(r)}function Y(e){const{x:t,y:r}=Ie.position,n=ee[e]?.iframe;!1!==_("onScroll",{iframe:n,top:r,left:t,x:t,y:r})?xe(e):Ce()}function I(e){let t={};if(0===Z.width&&0===Z.height){const e=A(9).split(r);t={x:e[1],y:e[0]}}else t={x:Z.width,y:Z.height};_(e,{iframe:Z.iframe,screenX:Number(t.x),screenY:Number(t.y),type:Z.type})}const _=(e,t)=>we(U,e,t);function w(){const{height:t,iframe:r,msg:o,type:c,width:h}=Z;switch(ee[U]?.firstRun&&ee[U]&&(ze(U,Z.mode),ee[U].firstRun=!1),c){case"close":Be(r);break;case s:d=A(6),_("onMessage",{iframe:Z.iframe,message:JSON.parse(d)});break;case"mouseenter":I("onMouseEnter");break;case"mouseleave":I("onMouseLeave");break;case"beforeUnload":se(U,"Ready state reset"),ee[U].initialised=!1;break;case n:ee[U].autoResize=JSON.parse(A(9));break;case"scrollBy":!function(){const e=Z.width,t=Z.height,r=window.parentIframe||window.parentIFrame||window;se(U,`scrollBy: x: %c${e}%c y: %c${t}`,z,q,z),r.scrollBy(e,t)}();break;case"scrollTo":M(!1);break;case"scrollToOffset":M(!0);break;case u:N();break;case l:F();break;case"pageInfoStop":O();break;case"parentInfoStop":b();break;case"inPageLink":!function(e){const t=e.split("#")[1]||"",r=decodeURIComponent(t);let n=document.getElementById(r)||document.getElementsByName(r)[0];n?function(){const e=v(n);se(U,`Moving to in page link: %c#${t}`,z),Ie.position={x:e.x,y:e.y},Y(U),window.location.hash=t}():window.top!==window.self&&function(){const e=window.parentIframe||window.parentIFrame;e&&e.moveToAnchor(t)}()}(A(9));break;case"title":!function(e,t){ee[t]?.syncTitle&&(ee[t].iframe.title=e,se(t,`Set iframe title attribute: %c${e}`,z))}(o,U);break;case T:Ue(Z);break;case i:a(),function(e){try{ee[e].sameOrigin=!!ee[e]?.iframe?.contentWindow?.iframeChildListener}catch(t){ee[e].sameOrigin=!1}}(U),(p=o)!==e&&(void 0!==p||Ae(U,"Legacy version detected in iframe\n\nDetected legacy version of child page script. It is recommended to update the page in the iframe to use @iframe-resizer/child.\n\nSee https://iframe-resizer.com/setup/#child-page-setup for more details.\n")),ee[U].initialised=!0,_("onReady",r);break;default:if(0===h&&0===t)return void ce(U,`Unsupported message received (${c}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(0===h||0===t)return;if(document.hidden)return;a()}var p,d}let L=t.data;if("[iFrameResizerChild]Ready"===L)return B=t.source,void Object.values(ee).forEach((e=>({initChild:t,postMessageTarget:r})=>{e===r&&t()})(B));var B;if(!(e=>y===`${e}`.slice(0,13)&&e.slice(13).split(r)[0]in ee)(L)){if(typeof L!==E)return;return void le(f,"ignoredMessage")}const Z=function(e){const t=e.slice(13).split(r),n=t[1]?Number(t[1]):0,i=ee[t[0]]?.iframe,a=getComputedStyle(i),o={iframe:i,id:t[0],height:n+c(a)+d(a),width:Number(t[2]),type:t[3],msg:t[4]};return t[5]&&(o.mode=t[5]),o}(L),{id:C,type:x}=Z,U=C;U?(le(U,x),pe(U,function(e){(function(e){if(!ee[e])throw new Error(`${Z.type} No settings for ${e}. Message was: ${L}`)})(U),Z.type in{true:1,false:1,undefined:1}||(null!==Z.iframe||(ce(U,`The iframe (${Z.id}) was not found.`),0))&&function(){const{origin:e,sameOrigin:r}=t;if(r)return!0;let n=ee[U]?.checkOrigin;if(n&&"null"!=`${e}`&&!(n.constructor===Array?function(){let t=0,r=!1;for(;t{setTimeout(()=>e(...t),0)})(n,r)}return i}function Le(e){const{id:t}=e;delete ee[t],delete e.iframeResizer}function Be(e){const{id:t}=e;if(!1!==we(t,"onBeforeClose",t)){try{e.parentNode&&e.remove()}catch(e){ce(t,e)}we(t,"onAfterClose",t),Le(e)}}function Ze(e){null===Ie.position&&(Ie.position={x:window.scrollX,y:window.scrollY})}function Ce(){Ie.position=null}function xe(e){null!==Ie.position&&(window.scrollTo(Ie.position.x,Ie.position.y),se(e,`Set page position: %c${Ie.position.x}%c, %c${Ie.position.y}`,z,q,z),Ce())}function Ue(e){Ze(e.id),Pe(e),ke(T,T,e.id)}function Pe(e){function t(t){const n=`${e[t]}px`;e.iframe.style[t]=n,se(r,`Set ${t}: %c${n}`,z)}const{id:r}=e,{sizeHeight:n,sizeWidth:i}=ee[r];n&&t("height"),i&&t("width")}const Ge=e=>e.split(r).filter((e,t)=>19!==t).join(r);function ke(e,t,r){function n(n){const i=e in v?Ge(t):t;se(r,n,z,q,z),se(r,`Message data: %c${i}`,z)}le(r,e),ee[r]&&(ee[r]?.postMessageTarget?function(){const{iframe:i,postMessageTarget:a,sameOrigin:o,targetOrigin:s}=ee[r];if(o)try{return i.contentWindow.iframeChildListener(y+t),void n(`Sending message to iframe %c${r}%c via same origin%c`)}catch(t){e in v?ee[r].sameOrigin=!1:ce(r,"Same origin messaging failed, falling back to postMessage")}n(`Sending message to iframe: %c${r}%c targetOrigin: %c${s}`),a.postMessage(y+t,s)}():ce(r,`Iframe(${r}) not found`))}let He=0,Ve=!1,je=!1;function ze(t,r=-3){if(Ve)return;const n=Math.max(ee[t].mode,r);if(n>ee[t].mode&&(ee[t].mode=n),n<0)throw Te(t),ee[t].vAdvised||Ae(t||"Parent",`${be(n+2)}${be(2)}`),ee[t].vAdvised=!0,be(n+2).replace(/<\/?[a-z][^>]*>|<\/>/gi,"");n>0&&je||function(e,t){queueMicrotask(()=>console.info(`%ciframe-resizer ${e}`,ne||t<1?"font-weight: bold;":w))}(`v${e} (${(e=>ge(Oe[e]))(n)})`,n),n<1&&Ae("Parent",be(3)),Ve=!0}const qe=e=>u=>{function l(e,t){const r=r=>()=>{if(!ee[e])return;const{firstRun:n,iframe:a}=ee[e];ke(r,t,e),(e=>e===i)(r)&&(e=>"lazy"===e.loading)(a)||function(e,t){const r=t[e],{msgTimeout:n,warningTimeout:i}=r;i&&(n&&clearTimeout(n),r.msgTimeout=setTimeout(function(){const r=t[e];void 0!==r&&((e=>{e.msgTimeout=void 0})(r),function(e){const{initialised:t}=e;return t&&(e.initialisedFirstPage=!0),t}(r)||function(e){const{checkOrigin:t,iframe:{id:r,src:n,sandbox:i},initialisedFirstPage:a,waitForLoad:o,warningTimeout:s}=e,c=(e=>{try{return new URL(e).origin}catch(e){return null}})(n);le(r,"noResponse"),Ae(r,`No response from iframe\n\nThe iframe (${r}) has not responded within ${s/1e3} seconds. Check @iframe-resizer/child package has been loaded in the iframe.\n${t&&c?`\nThe checkOrigin option is currently enabled. If the iframe redirects away from ${c}, then the connection to the iframe may be blocked by the browser. To disable this option, set checkOrigin to false or an array of allowed origins. See https://iframe-resizer.com/checkorigin for more information.\n`:""}${o&&!a?"\nThe waitForLoad option is currently set to true. If the iframe loads before iframe-resizer runs, this option will prevent iframe-resizer initialising. To disable this option, set waitForLoad to false.\n":""}${(e=>typeof e===D&&e.length>0&&!(e.contains("allow-scripts")&&e.contains("allow-same-origin")))(i)?"\nThe iframe has the sandbox attribute, please ensure it contains both the allow-same-origin and allow-scripts values.\n":""}\nThis 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.\n`)}(r))},i))}(e,ee),n||ee[S]?.heightCalculationMethod in b&&Ue({iframe:u,height:1,width:1,type:i})},{iframe:n}=ee[e];ee[e].initChild=r(a),function(e,t){me(e,o,()=>setTimeout(t,1))}(n,r(c)),function(e,t){const{iframe:r,waitForLoad:n}=ee[e];!0!==n&&((e=>{const{src:t,srcdoc:r}=e;return!r&&(null==t||""===t||"about:blank"===t)})(r)?setTimeout(()=>{le(e,"noContent"),se(e,"No content detected in the iframe, delaying initialisation")}):setTimeout(t))}(e,r(i))}function T(e){return e?(("sizeWidth"in e||"sizeHeight"in e||n in e)&&Ae(S,`Deprecated Option\n\nThe sizeWidth, sizeHeight and autoResize options have been replaced with new direction option which expects values of ${F}, ${O}, ${N} or ${g}.\n`),e):{}}function p(e){const t=ee[e]?.iframe?.title;return""===t||void 0===t}function f(e,t){Q(ee[S],e)&&(Ae(S,`Deprecated option\n\nThe ${e} option has been renamed to ${t}. ${_}`),ee[S][t]=ee[S][e],delete ee[S][e])}const m=e=>Q(e,"onMouseEnter")||Q(e,"onMouseLeave");const S=function(t){if(t&&typeof t!==E)throw new TypeError("Invalid id for iFrame. Expected String");return""!==t&&t||(t=function(){let t=e?.id||Ye.id+He++;return null!==document.getElementById(t)&&(t+=He++),t}(),u.id=t,le(t,"assignId")),t}(u.id);if(typeof e!==D)throw new TypeError("Options is not an object");return function(e){const{search:t}=window.location;t.includes("ifrlog")&&(e.log=Y,e.logExpand=t.includes("ifrlog=expanded"))}(e),function(e,t){const r=Q(t,"log"),n=typeof t.log===E,i=r?!!n||t.log:Ye.log;Q(t,"logExpand")||(t.logExpand=r&&n?t.log===M:Ye.logExpand),function(e){-1===e?.log&&(e.log=!1,je=!0)}(t),function({enabled:e,expand:t,iframeId:r}){const n=te({expand:t,label:ae(r)});ne=e,ee[r]||(ee[r]={console:n})}({enabled:i,expand:t.logExpand,iframeId:e}),n&&!(t.log in I)&&ue(e,'Invalid value for options.log: Accepted values are "expanded" and "collapsed"'),t.log=i}(S,e),pe(S,function(e){t in u?ce(S,`Ignored iframe (${S}), already setup.`):(function(e){var t,r;ee[S]={...ee[S],iframe:u,remoteHost:u?.src.split("/").slice(0,3).join("/"),...Ye,...T(e),mouseEvents:m(e),mode:ve(e),syncTitle:p(S)},f("offset","offsetSize"),f("onClose","onBeforeClose"),f("onClosed","onAfterClose"),le(S,"setup"),function(){const{direction:e}=ee[S];switch(e){case F:break;case O:ee[S].sizeHeight=!1;case N:ee[S].sizeWidth=!0;break;case g:ee[S].sizeWidth=!1,ee[S].sizeHeight=!1,ee[S].autoResize=!1;break;default:throw new TypeError(S,`Direction value of "${e}" is not valid`)}}(),(t=e?.offsetSize||e?.offset)&&(ee[S].direction===F?ee[S].offsetHeight=t:ee[S].offsetWidth=t),ee[S].warningTimeout||se(S,"warningTimeout:%c disabled",z),null===ee[S].postMessageTarget&&(ee[S].postMessageTarget=u.contentWindow),ee[S].targetOrigin=!0===ee[S].checkOrigin?""===(r=ee[S].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*"}(e),function(e){if(!0===Me[e])return!1;const t=document.querySelectorAll(`iframe#${CSS.escape(e)}`);if(t.length<=1)return!0;Me[e]=!0;const r=Array.from(t).flatMap(e=>[d,e,d]);Ae(e,`Duplicate ID attributes detected\n\nThe ${e} ID is not unique. Having multiple iframes on the same page with the same ID causes problems with communication between the iframe and parent page. Please ensure that the ID of each iframe has a unique value.\n\nFound ${t.length} iframes with the ${e} ID:`,...r,d)}(S),function(){if(Ve)return;const{mode:e}=ee[S];-1!==e&&ze(S,e)}(),We(),function(){switch(u.style.overflow=!1===ee[S]?.scrolling?"hidden":R,ee[S]?.scrolling){case"omit":break;case!0:u.scrolling="yes";break;case!1:u.scrolling="no";break;default:u.scrolling=ee[S]?ee[S].scrolling:"no"}}(),function(){const{bodyMargin:e}=ee[S];"number"!=typeof e&&"0"!==e||(ee[S].bodyMargin=`${e}px`)}(),l(S,function(e){const{autoResize:t,bodyBackground:n,bodyMargin:i,bodyPadding:a,heightCalculationMethod:o,inPageLinks:s,license:c,log:u,logExpand:l,mouseEvents:T,offsetHeight:h,offsetWidth:p,mode:d,sizeHeight:f,sizeWidth:E,tolerance:D,widthCalculationMethod:m}=ee[e];return[e,"8",E,u,"32",!0,t,i,o,n,a,D,s,A,m,T,h,p,f,c,Ie.version,d,"",l].join(r)}(S)),function(){if(ee[S]){const{iframe:e}=ee[S],t={close:Be.bind(null,e),disconnect:Le.bind(null,e),removeListeners(){Ae(S,`Deprecated Method Name\n\nThe removeListeners() method has been renamed to disconnect(). ${_}\n`),this.disconnect()},resize(){Ae(S,"Deprecated Method\n\nUse of the resize() method from the parent page is deprecated and will be removed in a future version of iframe-resizer. As their are no longer any edge cases that require triggering a resize from the parent page, it is recommended to remove this method from your code."),ke.bind(null,"Window resize",h,S)},moveToAnchor(e){((e,t)=>{if(typeof e!==t)throw new TypeError(`moveToAnchor(anchor) anchor is not a ${r=t,r.charAt(0).toUpperCase()+r.slice(1)}`);var r})(e,E),ke("Move to anchor",`moveToAnchor:${e}`,S)},sendMessage(e){e=JSON.stringify(e),ke(s,`${s}:${e}`,S)}};e.iframeResizer=t,e.iFrameResizer=t}}(),he(S))})(e),u?.iframeResizer};function Qe(){!0!==document.hidden&&((e,t)=>{Object.values(ee).filter(({autoResize:e,firstRun:t})=>e&&!t).forEach(({iframe:e})=>ke("tabVisible",t,e.id))})(0,h)}const We=(e=>{let t=!1;return function(){return t?void 0:(t=!0,Reflect.apply(e,this,arguments))}})(()=>{me(window,s,_e),me(document,"visibilitychange",Qe),window.iframeParentListener=e=>setTimeout(()=>_e({data:e,sameOrigin:!0}))}),$e=`[${t}] `,Je=function(){function e(e){switch(!0){case!e:throw new TypeError(`${$e}iframe is not defined`);case!e.tagName:throw new TypeError(`${$e}Not a valid DOM element`);case"IFRAME"!==e.tagName.toUpperCase():throw new TypeError(`${$e}Expected