1import{a as xt,b as kt,c as Rt}from"/build/_shared/chunk-ZGZDICRQ.js";import{b as Ot}from"/build/_shared/chunk-I7M7XLFX.js";import{b as Ct}from"/build/_shared/chunk-ZN4GSPDU.js";import{a as Tt,c as It,d as $t}from"/build/_shared/chunk-Y7QHBGMK.js";import{a as Yt}from"/build/_shared/chunk-WA77X3DN.js";import{a as Qt}from"/build/_shared/chunk-XDJM4OE7.js";import"/build/_shared/chunk-VXXU7DUA.js";import{a as _t}from"/build/_shared/chunk-5OUGZNV4.js";import{a as Gt}from"/build/_shared/chunk-RZUMHWOZ.js";import{c as Et}from"/build/_shared/chunk-4VC3QXG5.js";import"/build/_shared/chunk-XJOD3PKR.js";import{a as rt}from"/build/_shared/chunk-CCXUG7EA.js";import{b as Ft}from"/build/_shared/chunk-XG7VCJHW.js";import"/build/_shared/chunk-BWJJ7KE5.js";import"/build/_shared/chunk-BOFLYQ3G.js";import"/build/_shared/chunk-GLNX7PBK.js";import"/build/_shared/chunk-WNYMBWMF.js";import{f as Mt}from"/build/_shared/chunk-HGY3FHMJ.js";import"/build/_shared/chunk-QXZHEXFA.js";import"/build/_shared/chunk-ZWW24JP5.js";import"/build/_shared/chunk-EIOGUGV2.js";import"/build/_shared/chunk-JHYR5QDS.js";import"/build/_shared/chunk-IWXKJYOV.js";import"/build/_shared/chunk-4V5XVBRQ.js";import{h as ht,s as pt}from"/build/_shared/chunk-BTADOTLT.js";import{Y as yt,pa as bt,qa as vt,t as wt}from"/build/_shared/chunk-FES3B5QL.js";import{g as ge}from"/build/_shared/chunk-XC7SPKRF.js";import{a as Se}from"/build/_shared/chunk-G3QUQOKW.js";import{a as ot}from"/build/_shared/chunk-F3RAJA4O.js";import"/build/_shared/chunk-O5OXJSFQ.js";import{b as Ge,e as D}from"/build/_shared/chunk-O3BUCIVF.js";var St=Ge((fn,zt)=>{zt.exports={}});var Pt=Ge((ln,Lt)=>{Lt.exports={}});var At=Ge((dn,Ze)=>{console.info(` 2IFRAME-RESIZER 3 4Iframe-Resizer 5 is now available via the following two packages: 5 6 * @iframe-resizer/parent 7 * @iframe-resizer/child 8 9Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. 10 11Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. 12 13Please see https://iframe-resizer.com/upgrade for more details. 14`);(function(f){if(typeof window>"u")return;var x=0,C,q=!1,U=!1,S="message",Z=S.length,J="[iFrameSizer]",O=J.length,N=null,G=window.requestAnimationFrame,Qe=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),n={},he=null,L=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!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(){V("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function Pe(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function re(t,o,d){t.addEventListener(o,d,!1)}function pe(t,o,d){t.removeEventListener(o,d,!1)}function ae(){var t=["moz","webkit","o","ms"],o;for(o=0;o<t.length&&!G;o+=1)G=window[t[o]+"RequestAnimationFrame"];G?G=G.bind(window):h("setup","RequestAnimationFrame not supported")}function Ye(t){var o="Host page: "+t;return window.top!==window.self&&(o=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),o}function Ae(t){return J+"["+Ye(t)+"]"}function Me(t){return n[t]?n[t].log:q}function h(t,o){Fe("log",t,o,Me(t))}function Ne(t,o){Fe("info",t,o,Me(t))}function V(t,o){Fe("warn",t,o,!0)}function Fe(t,o,d,u){u===!0&&typeof window.console=="object"&&console[t](Ae(o),d)}function He(t){function o(){function a(){me(v),we(l),fe("onResized",v)}p("Height"),p("Width"),De(a,v,"init")}function d(){var a=X.slice(O).split(":"),m=a[1]?parseInt(a[1],10):0,M=n[a[0]]&&n[a[0]].iframe,y=getComputedStyle(M);return{iframe:M,id:a[0],height:m+u(y)+w(y),width:a[2],type:a[3]}}function u(a){if(a.boxSizing!=="border-box")return 0;var m=a.paddingTop?parseInt(a.paddingTop,10):0,M=a.paddingBottom?parseInt(a.paddingBottom,10):0;return m+M}function w(a){if(a.boxSizing!=="border-box")return 0;var m=a.borderTopWidth?parseInt(a.borderTopWidth,10):0,M=a.borderBottomWidth?parseInt(a.borderBottomWidth,10):0;return m+M}function p(a){var m=Number(n[l]["max"+a]),M=Number(n[l]["min"+a]),y=a.toLowerCase(),E=Number(v[y]);h(l,"Checking "+y+" is in range "+M+"-"+m),E<M&&(E=M,h(l,"Set "+y+" to min value")),E>m&&(E=m,h(l,"Set "+y+" to max value")),v[y]=""+E}function _(){function a(){function y(){var W=0,te=!1;for(h(l,"Checking connection is from allowed list of origins: "+M);W<M.length;W++)if(M[W]===m){te=!0;break}return te}function E(){var W=n[l]&&n[l].remoteHost;return h(l,"Checking connection is from: "+W),m===W}return M.constructor===Array?y():E()}var m=t.origin,M=n[l]&&n[l].checkOrigin;if(M&&""+m!="null"&&!a())throw new Error("Unexpected message received from: "+m+" for "+v.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function ce(){return J===(""+X).slice(0,O)&&X.slice(O).split(":")[0]in n}function Q(){var a=v.type in{true:1,false:1,undefined:1};return a&&h(l,"Ignoring init message from meta parent page"),a}function ee(a){return X.slice(X.indexOf(":")+Z+a)}function ie(a){h(l,"onMessage passed: {iframe: "+v.iframe.id+", message: "+a+"}"),fe("onMessage",{iframe:v.iframe,message:JSON.parse(a)}),h(l,"--")}function P(){var a=document.body.getBoundingClientRect(),m=v.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:m.height,iframeWidth:m.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(m.top-a.top,10),offsetLeft:parseInt(m.left-a.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function ve(a,m){function M(){k("Send Page Info","pageInfo:"+P(),a,m)}Ve(M,32,m)}function Ce(){function a(E,W){function te(){n[y]?ve(n[y].iframe,y):m()}["scroll","resize"].forEach(function(oe){h(y,E+oe+" listener for sendPageInfo"),W(window,oe,te)})}function m(){a("Remove ",pe)}function M(){a("Add ",re)}var y=l;M(),n[y]&&(n[y].stopPageInfo=m)}function Oe(){n[l]&&n[l].stopPageInfo&&(n[l].stopPageInfo(),delete n[l].stopPageInfo)}function xe(){var a=!0;return v.iframe===null&&(V(l,"IFrame ("+v.id+") not found"),a=!1),a}function s(a){var m=a.getBoundingClientRect();return Ee(l),{x:Math.floor(Number(m.left)+Number(N.x)),y:Math.floor(Number(m.top)+Number(N.y))}}function c(a){function m(){N=W,z(),h(l,"--")}function M(){return{x:Number(v.width)+E.x,y:Number(v.height)+E.y}}function y(){window.parentIFrame?window.parentIFrame["scrollTo"+(a?"Offset":"")](W.x,W.y):V(l,"Unable to scroll to requested position, window.parentIFrame not found")}var E=a?s(v.iframe):{x:0,y:0},W=M();h(l,"Reposition requested from iFrame (offset x:"+E.x+" y:"+E.y+")"),window.top===window.self?m():y()}function z(){fe("onScroll",N)===!1?je():we(l)}function H(a){function m(){var te=s(W);h(l,"Moving to in page link (#"+y+") at x: "+te.x+" y: "+te.y),N={x:te.x,y:te.y},z(),h(l,"--")}function M(){window.parentIFrame?window.parentIFrame.moveToAnchor(y):h(l,"In page link #"+y+" not found and window.parentIFrame not found")}var y=a.split("#")[1]||"",E=decodeURIComponent(y),W=document.getElementById(E)||document.getElementsByName(E)[0];W?m():window.top===window.self?h(l,"In page link #"+y+" not found"):M()}function Y(a){var m={};if(Number(v.width)===0&&Number(v.height)===0){var M=ee(9).split(":");m={x:M[1],y:M[0]}}
14else m={x:v.width,y:v.height};fe(a,{iframe:v.iframe,screenX:Number(m.x),screenY:Number(m.y),type:v.type})}function fe(a,m){return We(l,a,m)}function ke(){switch(n[l]&&n[l].firstRun&&Xe(),v.type){case"close":{se(v.iframe);break}case"message":{ie(ee(6));break}case"mouseenter":{Y("onMouseEnter");break}case"mouseleave":{Y("onMouseLeave");break}case"autoResize":{n[l].autoResize=JSON.parse(ee(9));break}case"scrollTo":{c(!1);break}case"scrollToOffset":{c(!0);break}case"pageInfo":{ve(n[l]&&n[l].iframe,l),Ce();break}case"pageInfoStop":{Oe();break}case"inPageLink":{H(ee(9));break}case"reset":{de(v);break}case"init":{o(),fe("onInit",v.iframe);break}default:Number(v.width)===0&&Number(v.height)===0?V("Unsupported message received ("+v.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):o()}}function Re(a){var m=!0;return n[a]||(m=!1,V(v.type+" No settings for "+a+". Message was: "+X)),m}function Je(){for(var a in n)k("iFrame requested init",_e(a),n[a].iframe,a)}function Xe(){n[l]&&(n[l].firstRun=!1)}var X=t.data,v={},l=null;X==="[iFrameResizerChild]Ready"?Je():ce()?(v=d(),l=v.id,n[l]&&(n[l].loaded=!0),!Q()&&Re(l)&&(h(l,"Received: "+X),xe()&&_()&&ke())):Ne(l,"Ignored: "+X)}function We(t,o,d){var u=null,w=null;if(n[t])if(u=n[t][o],typeof u=="function")w=u(d);else throw new TypeError(o+" on iFrame["+t+"] is not a function");return w}function Be(t){var o=t.id;delete n[o]}function se(t){var o=t.id;if(We(o,"onClose",o)===!1){h(o,"Close iframe cancelled by onClose event");return}h(o,"Removing iFrame: "+o);try{t.parentNode&&t.parentNode.removeChild(t)}catch(d){V(d)}We(o,"onClosed",o),h(o,"--"),Be(t),C&&(C.disconnect(),C=null)}function Ee(t){N===null&&(N={x:window.pageXOffset===f?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===f?document.documentElement.scrollTop:window.pageYOffset},h(t,"Get page position: "+N.x+","+N.y))}function we(t){N!==null&&(window.scrollTo(N.x,N.y),h(t,"Set page position: "+N.x+","+N.y),je())}function je(){N=null}function de(t){function o(){me(t),k("reset","reset",t.iframe,t.id)}h(t.id,"Size reset requested by "+(t.type==="init"?"host page":"iFrame")),Ee(t.id),De(o,t,"reset")}function me(t){function o(p){if(!t.id){h("undefined","messageData id not set");return}t.iframe.style[p]=t[p]+"px",h(t.id,"IFrame ("+w+") "+p+" set to "+t[p]+"px")}function d(p){!U&&t[p]==="0"&&(U=!0,h(w,"Hidden iFrame detected, creating visibility listener"),$e())}function u(p){o(p),d(p)}var w=t.iframe.id;n[w]&&(n[w].sizeHeight&&u("height"),n[w].sizeWidth&&u("width"))}function De(t,o,d){d!==o.type&&G&&!window.jasmine?(h(o.id,"Requesting animation frame"),G(t)):t()}function k(t,o,d,u,w){function p(){var ie=n[u]&&n[u].targetOrigin;h(u,"["+t+"] Sending msg to iframe["+u+"] ("+o+") targetOrigin: "+ie),d.contentWindow.postMessage(J+o,ie)}function _(){V(u,"["+t+"] IFrame("+u+") not found")}function ce(){d&&"contentWindow"in d&&d.contentWindow!==null?p():_()}function Q(){function ie(){n[u]&&!n[u].loaded&&!ee&&(ee=!0,V(u,"IFrame has not responded within "+n[u].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&&n[u]&&n[u].warningTimeout&&(n[u].msgTimeout=setTimeout(ie,n[u].warningTimeout))}var ee=!1;u=u||d.id,n[u]&&(ce(),Q())}function _e(t){return t+":"+n[t].bodyMarginV1+":"+n[t].sizeWidth+":"+n[t].log+":"+n[t].interval+":"+n[t].enablePublicMethods+":"+n[t].autoResize+":"+n[t].bodyMargin+":"+n[t].heightCalculationMethod+":"+n[t].bodyBackground+":"+n[t].bodyPadding+":"+n[t].tolerance+":"+n[t].inPageLinks+":"+n[t].resizeFrom+":"+n[t].widthCalculationMethod+":"+n[t].mouseEvents}function qe(t){return typeof t=="number"}function Te(t,o){function d(){function c(H){var Y=n[s][H];Y!==1/0&&Y!==0&&(t.style[H]=qe(Y)?Y+"px":Y,h(s,"Set "+H+" = "+t.style[H]))}function z(H){if(n[s]["min"+H]>n[s]["max"+H])throw new Error("Value for min"+H+" can not be greater than max"+H)}z("Height"),z("Width"),c("maxHeight"),c("minHeight"),c("maxWidth"),c("minWidth")}function u(){var c=o&&o.id||L.id+x++;return document.getElementById(c)!==null&&(c+=x++),c}function w(c){if(typeof c!="string")throw new TypeError("Invaild id for iFrame. Expected String");return c===""&&(t.id=c=u(),q=(o||{}).log,h(c,"Added missing iframe ID: "+c+" ("+t.src+")")),c}function p(){switch(h(s,"IFrame scrolling "+(n[s]&&n[s].scrolling?"enabled":"disabled")+" for "+s),t.style.overflow=(n[s]&&n[s].scrolling)===!1?"hidden":"auto",n[s]&&n[s].scrolling){case"omit":break;case!0:{t.scrolling="yes";break}case!1:{t.scrolling="no";break}default:t.scrolling=n[s]?n[s].scrolling:"no"}}function _(){(typeof(n[s]&&n[s].bodyMargin)=="number"||(n[s]&&n[s].bodyMargin)==="0")&&(n[s].bodyMarginV1=n[s].bodyMargin,n[s].bodyMargin=""+n[s].bodyMargin+"px")}function ce(){var c=n[s]&&n[s].firstRun,z=n[s]&&n[s].heightCalculationMethod in Qe;!c&&z&&de({iframe:t,height:0,width:0,type:"init"})}function Q(){n[s]&&(n[s].iframe.iFrameResizer={close:se.bind(null,n[s].iframe),removeListeners:Be.bind(null,n[s].iframe),resize:k.bind(null,"Window resize","resize",n[s].iframe),moveToAnchor:function(c){k("Move to anchor","moveToAnchor:"+c,n[s].iframe,s)},sendMessage:function(c){c=JSON.stringify(c),k("Send Message","message:"+c,n[s].iframe,s)}})}function ee(c){function z(){k("iFrame.onload",c,t,f,!0),ce()}function H(fe){if(!t.parentNode)return null;var ke=new fe(function(Re){Re.forEach(function(Je){var Xe=Array.prototype.slice.call(Je.removedNodes
14);Xe.forEach(function(X){X===t&&se(t)})})});return ke.observe(t.parentNode,{childList:!0}),ke}var Y=Pe();Y&&(C=H(Y)),re(t,"load",z),k("init",c,t,f,!0)}function ie(c){if(typeof c!="object")throw new TypeError("Options is not an object")}function P(c){for(var z in L)Object.prototype.hasOwnProperty.call(L,z)&&(n[s][z]=Object.prototype.hasOwnProperty.call(c,z)?c[z]:L[z])}function ve(c){return c===""||c.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":c}function Ce(c){var z=c.split("Callback");if(z.length===2){var H="on"+z[0].charAt(0).toUpperCase()+z[0].slice(1);this[H]=this[c],delete this[c],V(s,"Deprecated: '"+c+"' has been renamed '"+H+"'. The old method will be removed in the next major version.")}}function Oe(c){c=c||{},n[s]=Object.create(null),n[s].iframe=t,n[s].firstRun=!0,n[s].remoteHost=t.src&&t.src.split("/").slice(0,3).join("/"),ie(c),Object.keys(c).forEach(Ce,c),P(c),n[s]&&(n[s].targetOrigin=n[s].checkOrigin===!0?ve(n[s].remoteHost):"*")}function xe(){return s in n&&"iFrameResizer"in t}var s=w(t.id);xe()?V(s,"Ignored iFrame, already setup."):(Oe(o),p(),d(),_(),ee(_e(s)),Q())}function ye(t,o){he===null&&(he=setTimeout(function(){he=null,t()},o))}var be={};function Ve(t,o,d){be[d]||(be[d]=setTimeout(function(){be[d]=null,t()},o))}function $e(){function t(){function w(p){function _(Q){return(n[p]&&n[p].iframe.style[Q])==="0px"}function ce(Q){return Q.offsetParent!==null}n[p]&&ce(n[p].iframe)&&(_("height")||_("width"))&&k("Visibility change","resize",n[p].iframe,p)}Object.keys(n).forEach(function(p){w(p)})}function o(w){h("window","Mutation observed: "+w[0].target+" "+w[0].type),ye(t,16)}function d(){var w=document.querySelector("body"),p={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},_=new u(o);_.observe(w,p)}var u=Pe();u&&d()}function Ke(t){function o(){ue("Window "+t,"resize")}h("window","Trigger event: "+t),ye(o,16)}function Ue(){function t(){ue("Tab Visible","resize")}document.visibilityState!=="hidden"&&(h("document","Trigger event: Visibility change"),ye(t,16))}function ue(t,o){function d(u){return n[u]&&n[u].resizeFrom==="parent"&&n[u].autoResize&&!n[u].firstRun}Object.keys(n).forEach(function(u){d(u)&&k(t,o,n[u].iframe,u)})}function nt(){re(window,"message",He),re(window,"resize",function(){Ke("resize")}),re(document,"visibilitychange",Ue),re(document,"-webkit-visibilitychange",Ue)}function Ie(){function t(u,w){function p(){if(w.tagName){if(w.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+w.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}w&&(p(),Te(w,u),d.push(w))}function o(u){u&&u.enablePublicMethods&&V("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var d;return ae(),nt(),function(w,p){switch(d=[],o(w),typeof p){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(p||"iframe"),t.bind(f,w));break}case"object":{t(w,p);break}default:throw new TypeError("Unexpected data type ("+typeof p+")")}return d}}function it(t){t.fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(d){function u(w,p){Te(p,d)}return this.filter("iframe").each(u).end()}):Ne("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery!==f&&it(window.jQuery),typeof define=="function"&&define.amd?define([],Ie):typeof Ze=="object"&&typeof Ze.exports=="object"&&(Ze.exports=Ie()),window.iFrameResize=window.iFrameResize||Ie()})()});var Nt=Ge((mn,at)=>{(function(f){if(typeof window>"u")return;var x=!0,C=10,q="",U=0,S="",Z=null,J="",O=!1,N={resize:1,click:1},G=128,Qe=!0,n=1,he="bodyOffset",L=he,Pe=!0,re="",pe={},ae=32,Ye=null,Ae=!1,Me=!1,h="[iFrameSizer]",Ne=h.length,V="",Fe={max:1,min:1,bodyScroll:1,documentElementScroll:1},He="child",We=!0,Be=window.parent,se="*",Ee=0,we=!1,je=null,de=16,me=1,De="scroll",k=De,_e=window,qe=function(){d("onMessage function not defined")},Te=function(){},ye=function(){},be={height:function(){return d("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return d("Custom width calculation function not defined"),document.body.scrollWidth}},Ve={},$e=!1;function Ke(){}try{var Ue=Object.create({},{passive:{get:function(){$e=!0}}});window.addEventListener("test",Ke,Ue),window.removeEventListener("test",Ke,Ue)}catch{}function ue(e,i,r,g){e.addEventListener(i,r,$e?g||{}:!1)}function nt(e,i,r){e.removeEventListener(i,r,!1)}function Ie(e){return e.charAt(0).toUpperCase()+e.slice(1)}function it(e){var i,r,g,F=null,A=0,j=function(){A=Date.now(),F=null,g=e.apply(i,r),F||(i=r=null)};return function(){var B=Date.now();A||(A=B);var T=de-(B-A);return i=this,r=arguments,T<=0||T>de?(F&&(clearTimeout(F),F=null),A=B,g=e.apply(i,r),F||(i=r=null)):F||(F=setTimeout(j,T)),g}}function t(e){return h+"["+V+"] "+e}function o(e){Ae&&typeof window.console=="object"&&console.log(t(e))}function d(e){typeof window.console=="object"&&console.warn(t(e))}function u(){w(),o("Initialising iFrame ("+window.location.href+")"),_(),ee(),Q("background",q),Q("padding",J),H(),Oe(),xe(),ie(),ke(),fe(),s(),pe=Y(),oe("init","Init message from host page"),Te()}function w(){function e(r){return r==="true"}var i=re.slice(Ne).split(":");V=i[0],U=f===i[1]?U:Number(i[1]),O=f===i[2]?O:e(i[2]),Ae=f===i[3]?Ae:e(i[3]),ae=f===i[4]?ae:Number(i[4]),x=f===i[6]?x:e(i[6]),S=i[7],L=f===i[8]?L:i[8],q=i[9],J=i[10],Ee=f===i[11]?Ee:Number(i[11]),pe.enable=f===i[12]?!1:e(i[12]),He=f===i[13]?He:i[13],k=f===i[14]?k:i[14],Me=f===i[15]?Me
14:e(i[15])}function p(e){var i=e.split("Callback");if(i.length===2){var r="on"+i[0].charAt(0).toUpperCase()+i[0].slice(1);this[r]=this[e],delete this[e],d("Deprecated: '"+e+"' has been renamed '"+r+"'. The old method will be removed in the next major version.")}}function _(){function e(){var r=window.iFrameResizer;o("Reading data from page: "+JSON.stringify(r)),Object.keys(r).forEach(p,r),qe="onMessage"in r?r.onMessage:qe,Te="onReady"in r?r.onReady:Te,se="targetOrigin"in r?r.targetOrigin:se,L="heightCalculationMethod"in r?r.heightCalculationMethod:L,k="widthCalculationMethod"in r?r.widthCalculationMethod:k}function i(r,g){return typeof r=="function"&&(o("Setup custom "+g+"CalcMethod"),be[g]=r,r="custom"),r}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),L=i(L,"height"),k=i(k,"width")),o("TargetOrigin for parent set to: "+se)}function ce(e,i){return i.indexOf("-")!==-1&&(d("Negative CSS value ignored for "+e),i=""),i}function Q(e,i){f!==i&&i!==""&&i!=="null"&&(document.body.style[e]=i,o("Body "+e+' set to "'+i+'"'))}function ee(){f===S&&(S=U+"px"),Q("margin",ce("margin",S))}function ie(){document.documentElement.style.height="",document.body.style.height="",o('HTML & body height set to "auto"')}function P(e){var i={add:function(r){function g(){oe(e.eventName,e.eventType)}Ve[r]=g,ue(window,r,g,{passive:!0})},remove:function(r){var g=Ve[r];delete Ve[r],nt(window,r,g)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(i[e.method])):i[e.method](e.eventName),o(Ie(e.method)+" event listener: "+e.eventType)}function ve(e){P({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),P({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),P({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),P({method:e,eventType:"Input",eventName:"input"}),P({method:e,eventType:"Mouse Up",eventName:"mouseup"}),P({method:e,eventType:"Mouse Down",eventName:"mousedown"}),P({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),P({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),P({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),P({method:e,eventType:"Touch Start",eventName:"touchstart"}),P({method:e,eventType:"Touch End",eventName:"touchend"}),P({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),P({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),P({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),P({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),He==="child"&&P({method:e,eventType:"IFrame Resized",eventName:"resize"})}function Ce(e,i,r,g){return i!==e&&(e in r||(d(e+" is not a valid option for "+g+"CalculationMethod."),e=i),o(g+' calculation method set to "'+e+'"')),e}function Oe(){L=Ce(L,he,y,"height")}function xe(){k=Ce(k,De,E,"width")}function s(){x===!0?(ve("add"),Xe()):o("Auto Resize disabled")}function c(){Z!==null&&Z.disconnect()}function z(){ve("remove"),c(),clearInterval(Ye)}function H(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}function Y(){function e(){return{x:window.pageXOffset===f?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===f?document.documentElement.scrollTop:window.pageYOffset}}function i(T){var R=T.getBoundingClientRect(),I=e();return{x:parseInt(R.left,10)+parseInt(I.x,10),y:parseInt(R.top,10)+parseInt(I.y,10)}}function r(T){function R(ne){var ze=i(ne);o("Moving to in page link (#"+I+") at x: "+ze.x+" y: "+ze.y),$(ze.y,ze.x,"scrollToOffset")}var I=T.split("#")[1]||T,b=decodeURIComponent(I),K=document.getElementById(b)||document.getElementsByName(b)[0];f===K?(o("In page link (#"+I+") not found in iFrame, so sending to parent"),$(0,0,"inPageLink","#"+I)):R(K)}function g(){var T=window.location.hash,R=window.location.href;T!==""&&T!=="#"&&r(R)}function F(){function T(R){function I(b){b.preventDefault(),r(this.getAttribute("href"))}R.getAttribute("href")!=="#"&&ue(R,"click",I)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),T)}function A(){ue(window,"hashchange",g)}function j(){setTimeout(g,G)}function B(){Array.prototype.forEach&&document.querySelectorAll?(o("Setting up location.hash handlers"),F(),A(),j()):d("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return pe.enable?B():o("In page linking not enabled"),{findTarget:r}}function fe(){if(Me!==!0)return;function e(r){$(0,0,r.type,r.screenY+":"+r.screenX)}function i(r,g){o("Add event listener: "+g),ue(window.document,r,e)}i("mouseenter","Mouse Enter"),i("mouseleave","Mouse Leave")}function ke(){o("Enable public methods"),_e.parentIFrame={autoResize:function(i){return i===!0&&x===!1?(x=!0,s()):i===!1&&x===!0&&(x=!1,z()),$(0,0,"autoResize",JSON.stringify(x)),x},close:function(){$(0,0,"close")},getId:function(){return V},getPageInfo:function(i){typeof i=="function"?(ye=i,$(0,0,"pageInfo")):(ye=function(){},$(0,0,"pageInfoStop"))},moveToAnchor:function(i){pe.findTarget(i)},reset:function(){dt("parentIFrame.reset")},scrollTo:function(i,r){$(r,i,"scrollTo")},scrollToOffset:function(i,r){$(r,i,"scrollToOffset")},sendMessage:function(i,r){$(0,0,"message",JSON.stringify(i),r)},setHeightCalculationMethod:function(i){L=i,Oe()},setWidthCalculationMethod:function(i){k=i,xe()},setTargetOrigin:function(i){o("Set targetOrigin: "+i),se=i},size:function(i,r){var g=""+(i||"")+(r?","+r:"");oe("size","parentIFrame.size("+g+")",i,r)}}}function Re(){ae!==0&&(o("setInterval: "+ae+"ms"),Ye=setInterval(function(){oe("interval","setInterval: "+ae)},Math.abs(ae)))}function Je(){function e(b){function K(ne){ne.complete===!1&&(o("Attach listeners to "+ne.src),ne.addEventListener("load",F,!1),ne.addEventListener("error",A,!1),T.push(ne))}b.type==="attributes"&&b.attributeName==="src"?K(b.target):b.type==="childList"&&Array.prototype.forEach.call(b.target.querySelectorAll("img"),K)}function i(b){T.splice(T.indexOf(b),1)}function r(b){o("Remove listeners from "+b.src),b.removeEventListener("load",F,!1),b.removeEventListener("error",A,!1),i(b)}function g(b,K,ne){r(b.target),oe(K,ne+": "+b.target.src)}function F(b){g(b,"imageLoad","Image loaded")}function A(b){g(b,"imageLoadFailed","Image load failed")}function j(b){oe("mutationObserver","mutationObserver: "+b[0].target+" "+b[0].type),b.forEach(e)}function B(){var b=document.querySelector("body"),K={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return I=new R(j),o("Create body MutationObserver"),I.observe(b,K),I}var T=[],R=window.MutationObserver||window.WebKitMutationObserver,I=B();return{disconnect:function(){"disconnect"in I&&(o("Disconnect body MutationObserver"),I.disconnect(),T.forEach(r))}}}function Xe(){var e=0>ae;window.MutationObserver||window.WebKitMutationObserver?e?Re():Z=Je():(o("MutationObserver not supported in this browser!"),Re())}function X(e,i){var r=0;return i=i||document.body,r=document.defaultView.getComputedStyle(i,null),r=r===null?0:r[e],parseInt(r,C)}function v(e){e>de/2&&(de=2*e,o("Event throttle increased to "+de+"ms"))}function l(e,i){for(var r=i.length,g=0,F=0,A=Ie(e),j=Date.now(),B=0;B<r;B++)g=i[B].getBoundingClientRect()[e]+X("margin"+A,i[B]),g>F&&(F=g);return j=Date.now()-j,o("Parsed "+r+" HTML elements"),o("Element position calculated in "+j+"ms"),v(j),F}function a(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function m(e,i){function r(){return d("No tagged elements ("+i+") found on page"),document.querySelectorAll("body *")}var g=document.querySelectorAll("["+i+"]");return g.length===0&&r(),l(e,g)}function M(){return document.querySelectorAll("body *")}var y={bodyOffset:function(){return document.body.offsetHeight+X("marginTop")+X("marginBottom")},offset:function(){return y.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return be.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,a(y))},min:function(){return Math.min.apply(null,a(y))},grow:function(){return y.max()},lowestElement:function(){return Math.max(y.bodyOffset()||y.documentElementOffset(),l("bottom",M()))},taggedElement:function(){return m("bottom","data-iframe-height")}},E={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return be.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(E.bodyScroll(),E.documentElementScroll())},max:function(){return Math.max.apply(null,a(E))},min:function(){return Math.min.apply(null,a(E))},rightMostElement:function(){return l("right",M())}
14,taggedElement:function(){return m("right","data-iframe-width")}};function W(e,i,r,g){function F(){n=I,me=b,$(n,me,e)}function A(){function K(ne,ze){var Xt=Math.abs(ne-ze)<=Ee;return!Xt}return I=f===r?y[L]():r,b=f===g?E[k]():g,K(n,I)||O&&K(me,b)}function j(){return!(e in{init:1,interval:1,size:1})}function B(){return L in Fe||O&&k in Fe}function T(){o("No change in size detected")}function R(){j()&&B()?dt(i):e in{interval:1}||T()}var I,b;A()||e==="init"?(ft(),F()):R()}var te=it(W);function oe(e,i,r,g){function F(){e in{reset:1,resetPage:1,init:1}||o("Trigger event: "+i)}function A(){return we&&e in N}A()?o("Trigger event cancelled: "+e):(F(),e==="init"?W(e,i,r,g):te(e,i,r,g))}function ft(){we||(we=!0,o("Trigger event lock on")),clearTimeout(je),je=setTimeout(function(){we=!1,o("Trigger event lock off"),o("--")},G)}function lt(e){n=y[L](),me=E[k](),$(n,me,e)}function dt(e){var i=L;L=he,o("Reset trigger event: "+e),ft(),lt("reset"),L=i}function $(e,i,r,g,F){function A(){f===F?F=se:o("Message targetOrigin: "+F)}function j(){var B=e+":"+i,T=V+":"+B+":"+r+(f===g?"":":"+g);o("Sending message to host page ("+T+")"),Be.postMessage(h+T,F)}We===!0&&(A(),j())}function mt(e){var i={init:function(){re=e.data,Be=e.source,u(),Qe=!1,setTimeout(function(){Pe=!1},G)},reset:function(){Pe?o("Page reset ignored by init"):(o("Page size reset by host page"),lt("resetPage"))},resize:function(){oe("resizeParent","Parent window requested size check")},moveToAnchor:function(){pe.findTarget(F())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var I=F();o("PageInfoFromParent called from parent: "+I),ye(JSON.parse(I)),o(" --")},message:function(){var I=F();o("onMessage called from parent: "+I),qe(JSON.parse(I)),o(" --")}};function r(){return h===(""+e.data).slice(0,Ne)}function g(){return e.data.split("]")[1].split(":")[0]}function F(){return e.data.slice(e.data.indexOf(":")+1)}function A(){return!(typeof at<"u"&&at.exports)&&"iFrameResize"in window||window.jQuery!==f&&"iFrameResize"in window.jQuery.prototype}function j(){return e.data.split(":")[2]in{true:1,false:1}}function B(){var R=g();R in i?i[R]():!A()&&!j()&&d("Unexpected message ("+e.data+")")}function T(){Qe===!1?B():j()?i.init():o('Ignored message of type "'+g()+'". Received before initialization.')}r()&&T()}function gt(){document.readyState!=="loading"&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}"iframeResizer"in window||(window.iframeChildListener=function(e){mt({data:e,sameDomian:!0})},ue(window,"message",mt),ue(window,"readystatechange",gt),gt())})()});var Bt=Ge((gn,Wt)=>{var Ht=At();Wt.exports={iframeResize:Ht,iframeResizer:Ht,contentWindow:Nt()}});var Ut=D(Gt());var tt=D(ot());var Zt=D(Qt()),en=D(St()),tn=D(Pt()),nn=D(_t());var qt=D(ot());var et=D(ot()),jt=D(Bt());function Dt(f){let x=(0,et.useRef)(null);return(0,et.useEffect)(()=>{let C=x.current;if(!C)return;let{checkOrigin:q,heightCalculationMethod:U="lowestElement",log:S=!1,minHeight:Z=400}=f,J=(0,jt.iframeResizer)({log:S,minHeight:Z,checkOrigin:q,heightCalculationMethod:U,scrolling:!1},C);return()=>{J&&J.length>0&&J.forEach(O=>{O.iFrameResizer&&O.iFrameResizer.removeListeners()})}},[f]),x}var ut=D(Se()),st=400;function ct({merchantId:f}){let x=(0,qt.useMemo)(()=>({minHeight:st,checkOrigin:[Tt],log:!1,heightCalculationMethod:"lowestElement"}),[]),C=Dt(x),q=It({merchantId:f});return(0,ut.jsx)("div",{className:"appcard-coupons-iframe-container",style:{minHeight:`${st}px`},children:(0,ut.jsx)("iframe",{ref:C,id:"ac-iframe",name:"ac-iframe",src:q,title:"Ap
14pCard Coupons",scrolling:"no",style:{width:"1px",minWidth:"100%",minHeight:`${st}px`,overflow:"hidden",margin:0,padding:0,border:"none"}})})}var Le=D(Se()),Kt=()=>{let f=ge(`(max-width: ${rt.MOBILE})`),x=ge(`(max-width: ${rt.TABLET})`),C=ge("(max-width: 600px)"),q=ge("(min-width: 601px) and (max-width: 704px)"),U=ge("(min-width: 705px) and (max-width: 976px)"),S=ge("(min-width: 977px) and (max-width: 1224px)"),Z=ge("(min-width: 1225px)"),J=()=>f?1:x?2:3,O=6;return C&&(O=3),q&&(O=5),U&&(O=5),S&&(O=7),Z&&(O=9),(0,Le.jsxs)(wt,{p:"md",children:[(0,Le.jsx)(Ct,{}),(0,Le.jsx)(bt,{cols:J(),spacing:12,children:Array.from({length:O},(N,G)=>(0,Le.jsx)(vt,{h:"160px",w:"160px"},G))})]})},Vt=Kt;var on=D($t());var rn=D(Yt());var le=D(Se());function an(){return(0,le.jsx)(Vt,{})}var sn=()=>[{rel:"stylesheet",href:Ot},...kt(),...xt()],un=({data:f})=>{var C,q,U,S;return Et((C=f==null?void 0:f.metaData)==null?void 0:C.title,(q=f==null?void 0:f.metaData)==null?void 0:q.description,(U=f==null?void 0:f.metaData)==null?void 0:U.keywords,(S=f==null?void 0:f.metaData)==null?void 0:S.og_image)};function Jt(){let{setBaseBreadcrumb:f}=Mt(),{appCardMerchantId:x,couponCategories:C,useAppCardIframeCoupons:q}=pt();(0,tt.useEffect)(()=>{f()},[f]);let U=(0,tt.useMemo)(()=>{if(!(C!=null&&C.length))return[];let S=(C==null?void 0:C.map(O=>({id:O.id,displayName:O.displayName,imgUrl:O.imageUrl})))||[],Z=S.findIndex(O=>O.id==="*"),J=S.splice(Z,1)[0];return S.splice(0,0,J),S},[C]);return q&&x?(0,le.jsx)(ct,{merchantId:x}):(0,le.jsxs)(yt,{fluid:!0,m:0,p:0,children:[(0,le.jsx)("div",{className:"categories-container",children:(0,le.jsx)(Rt,{categoriesData:U,title:"Coupon Categories",onCategoryClick:S=>`/coupons/${encodeURIComponent(S)}`})}),(0,le.jsx)(ht,{})]})}function cn(){return(0,le.jsx)(Ft,{})}export{cn as ErrorBoundary,an as HydrateFallback,Jt as default,sn as links,un as meta};
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.