View file File name : donationFormEmbedInside.js Content :(()=>{var e={9860:e=>{!function(t){if("undefined"!=typeof window){var n=!0,o=10,i="",r=0,a="",u=null,c="",s=!1,d={resize:1,click:1},l=128,f=!0,m=1,h="bodyOffset",g=h,p=!0,v="",y={},w=32,b=null,T=!1,E=!1,O="[iFrameSizer]",M=O.length,S="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},N="child",A=!0,x=window.parent,C="*",z=0,k=!1,R=null,L=16,F=1,P="scroll",D=P,j=window,q=function(){ae("onMessage function not defined")},H=function(){},W=function(){},B={height:function(){return ae("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ae("Custom width calculation function not defined"),document.body.scrollWidth}},J={},U=!1;try{var V=Object.create({},{passive:{get:function(){U=!0}}});window.addEventListener("test",te,V),window.removeEventListener("test",te,V)}catch(R){}var X,Y,K,Q,_,G,Z={bodyOffset:function(){return document.body.offsetHeight+ve("marginTop")+ve("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return B.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,we(Z))},min:function(){return Math.min.apply(null,we(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),ye("bottom",Te()))},taggedElement:function(){return be("bottom","data-iframe-height")}},$={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return B.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max($.bodyScroll(),$.documentElementScroll())},max:function(){return Math.max.apply(null,we($))},min:function(){return Math.min.apply(null,we($))},rightMostElement:function(){return ye("right",Te())},taggedElement:function(){return be("right","data-iframe-width")}},ee=(X=Ee,_=null,G=0,function(){var e=Date.now(),t=L-(e-(G=G||e));return Y=this,K=arguments,t<=0||L<t?(_&&(clearTimeout(_),_=null),G=e,Q=X.apply(Y,K),_||(Y=K=null)):_=_||setTimeout(Oe,t),Q});ne(window,"message",(function(t){var n={init:function(){v=t.data,x=t.source,ue(),f=!1,setTimeout((function(){p=!1}),l)},reset:function(){p?re("Page reset ignored by init"):(re("Page size reset by host page"),Ie("resetPage"))},resize:function(){Me("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();re("PageInfoFromParent called from parent: "+e),W(JSON.parse(e)),re(" --")},message:function(){var e=i();re("onMessage called from parent: "+e),q(JSON.parse(e)),re(" --")}};function o(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}O===(""+t.data).substr(0,M)&&(!1===f?function(){var i=o();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||ae("Unexpected message ("+t.data+")")}():r()?n.init():re('Ignored message of type "'+o()+'". Received before initialization.'))})),ne(window,"readystatechange",xe),xe()}function te(){}function ne(e,t,n,o){e.addEventListener(t,n,!!U&&(o||{}))}function oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ie(e){return O+"["+S+"] "+e}function re(e){T&&"object"==typeof window.console&&console.log(ie(e))}function ae(e){"object"==typeof window.console&&console.warn(ie(e))}function ue(){function e(e){return"true"===e}var o;function d(e){Ae(0,0,e.type,e.screenY+":"+e.screenX)}function f(e,t){re("Add event listener: "+t),ne(window.document,e,d)}o=v.substr(M).split(":"),S=o[0],r=t!==o[1]?Number(o[1]):r,s=t!==o[2]?e(o[2]):s,T=t!==o[3]?e(o[3]):T,w=t!==o[4]?Number(o[4]):w,n=t!==o[6]?e(o[6]):n,a=o[7],g=t!==o[8]?o[8]:g,i=o[9],c=o[10],z=t!==o[11]?Number(o[11]):z,y.enable=t!==o[12]&&e(o[12]),N=t!==o[13]?o[13]:N,D=t!==o[14]?o[14]:D,E=t!==o[15]?Boolean(o[15]):E,re("Initialising iFrame ("+window.location.href+")"),function(){function e(e,t){return"function"==typeof e&&(re("Setup custom "+t+"CalcMethod"),B[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(function(){var e=window.iFrameResizer;re("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ce,e),q="onMessage"in e?e.onMessage:q,H="onReady"in e?e.onReady:H,C="targetOrigin"in e?e.targetOrigin:C,g="heightCalculationMethod"in e?e.heightCalculationMethod:g,D="widthCalculationMethod"in e?e.widthCalculationMethod:D}(),g=e(g,"height"),D=e(D,"width")),re("TargetOrigin for parent set to: "+C)}(),t===a&&(a=r+"px"),se("margin",function(e,t){return-1!==t.indexOf("-")&&(ae("Negative CSS value ignored for margin"),t=""),t}(0,a)),se("background",i),se("padding",c),(o=document.createElement("div")).style.clear="both",o.style.display="block",o.style.height="0",document.body.appendChild(o),me(),he(),document.documentElement.style.height="",document.body.style.height="",re('HTML & body height set to "auto"'),re("Enable public methods"),j.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,ge()):!1===e&&!0===n&&(n=!1,le("remove"),null!==u&&u.disconnect(),clearInterval(b)),Ae(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ae(0,0,"close")},getId:function(){return S},getPageInfo:function(e){"function"==typeof e?(W=e,Ae(0,0,"pageInfo")):(W=function(){},Ae(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){Ne("parentIFrame.reset")},scrollTo:function(e,t){Ae(t,e,"scrollTo")},scrollToOffset:function(e,t){Ae(t,e,"scrollToOffset")},sendMessage:function(e,t){Ae(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){g=e,me()},setWidthCalculationMethod:function(e){D=e,he()},setTargetOrigin:function(e){re("Set targetOrigin: "+e),C=e},size:function(e,t){Me("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},!0===E&&(f("mouseenter","Mouse Enter"),f("mouseleave","Mouse Leave")),ge(),y=function(){function e(e){var n,o=e.split("#")[1]||e,i=(e=decodeURIComponent(o),document.getElementById(e)||document.getElementsByName(e)[0]);t!==i?(n=function(e){var n=e.getBoundingClientRect();return e={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop},{x:parseInt(n.left,10)+parseInt(e.x,10),y:parseInt(n.top,10)+parseInt(e.y,10)}}(n=i),re("Moving to in page link (#"+o+") at x: "+n.x+" y: "+n.y),Ae(n.y,n.x,"scrollToOffset")):(re("In page link (#"+o+") not found in iFrame, so sending to parent"),Ae(0,0,"inPageLink","#"+o))}function n(){var t=window.location.hash,n=window.location.href;""!==t&&"#"!==t&&e(n)}return y.enable?Array.prototype.forEach&&document.querySelectorAll?(re("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(t){"#"!==t.getAttribute("href")&&ne(t,"click",(function(t){t.preventDefault(),e(this.getAttribute("href"))}))})),ne(window,"hashchange",n),setTimeout(n,l)):ae("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):re("In page linking not enabled"),{findTarget:e}}(),Me("init","Init message from host page"),H()}function ce(e){var t=e.split("Callback");2===t.length&&(this[t="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1)]=this[e],delete this[e],ae("Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version."))}function se(e,n){t!==n&&""!==n&&"null"!==n&&re("Body "+e+' set to "'+(document.body.style[e]=n)+'"')}function de(e){var t={add:function(t){function n(){Me(e.eventName,e.eventType)}J[t]=n,ne(window,t,n,{passive:!0})},remove:function(e){var t=J[e];delete J[e],window.removeEventListener(e,t,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),re(oe(e.method)+" event listener: "+e.eventType)}function le(e){de({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),de({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),de({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),de({method:e,eventType:"Input",eventName:"input"}),de({method:e,eventType:"Mouse Up",eventName:"mouseup"}),de({method:e,eventType:"Mouse Down",eventName:"mousedown"}),de({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),de({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),de({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),de({method:e,eventType:"Touch Start",eventName:"touchstart"}),de({method:e,eventType:"Touch End",eventName:"touchend"}),de({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),de({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),de({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),de({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===N&&de({method:e,eventType:"IFrame Resized",eventName:"resize"})}function fe(e,t,n,o){return t!==e&&(e in n||(ae(e+" is not a valid option for "+o+"CalculationMethod."),e=t),re(o+' calculation method set to "'+e+'"')),e}function me(){g=fe(g,h,Z,"height")}function he(){D=fe(D,P,$,"width")}function ge(){var e;!0===n?(le("add"),e=w<0,window.MutationObserver||window.WebKitMutationObserver?e?pe():u=function(){function e(e){function t(e){!1===e.complete&&(re("Attach listeners to "+e.src),e.addEventListener("load",o,!1),e.addEventListener("error",i,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){re("Remove listeners from "+e.src),e.removeEventListener("load",o,!1),e.removeEventListener("error",i,!1),a.splice(a.indexOf(e),1)}function n(e,n,o){t(e.target),Me(n,o+": "+e.target.src)}function o(e){n(e,"imageLoad","Image loaded")}function i(e){n(e,"imageLoadFailed","Image load failed")}function r(t){Me("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],u=window.MutationObserver||window.WebKitMutationObserver,c=function(){var e=document.querySelector("body");return c=new u(r),re("Create body MutationObserver"),c.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),c}();return{disconnect:function(){"disconnect"in c&&(re("Disconnect body MutationObserver"),c.disconnect(),a.forEach(t))}}}():(re("MutationObserver not supported in this browser!"),pe())):re("Auto Resize disabled")}function pe(){0!==w&&(re("setInterval: "+w+"ms"),b=setInterval((function(){Me("interval","setInterval: "+w)}),Math.abs(w)))}function ve(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,o)}function ye(e,t){for(var n,o=t.length,i=0,r=oe(e),a=Date.now(),u=0;u<o;u++)i<(n=t[u].getBoundingClientRect()[e]+ve("margin"+r,t[u]))&&(i=n);return a=Date.now()-a,re("Parsed "+o+" HTML elements"),re("Element position calculated in "+a+"ms"),L/2<a&&re("Event throttle increased to "+(L=2*a)+"ms"),i}function we(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function be(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ae("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ye(e,n)}function Te(){return document.querySelectorAll("body *")}function Ee(e,n,o,i){var r,a;function u(e,t){return!(Math.abs(e-t)<=z)}r=t!==o?o:Z[g](),a=t!==i?i:$[D](),u(m,r)||s&&u(F,a)||"init"===e?(Se(),Ae(m=r,F=a,e)):e in{init:1,interval:1,size:1}||!(g in I||s&&D in I)?e in{interval:1}||re("No change in size detected"):Ne(n)}function Oe(){G=Date.now(),_=null,Q=X.apply(Y,K),_||(Y=K=null)}function Me(e,t,n,o){k&&e in d?re("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||re("Trigger event: "+t),("init"===e?Ee:ee)(e,t,n,o))}function Se(){k||(k=!0,re("Trigger event lock on")),clearTimeout(R),R=setTimeout((function(){k=!1,re("Trigger event lock off"),re("--")}),l)}function Ie(e){m=Z[g](),F=$[D](),Ae(m,F,e)}function Ne(e){var t=g;g=h,re("Reset trigger event: "+e),Se(),Ie("reset"),g=t}function Ae(e,n,o,i,r){var a;!0===A&&(t===r?r=C:re("Message targetOrigin: "+r),re("Sending message to host page ("+(a=S+":"+e+":"+n+":"+o+(t!==i?":"+i:""))+")"),x.postMessage(O+a,r))}function xe(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(9860)})()})();