Give – Donation Plugin and Fundraising Platform - Version 2.9.3

Version Description

Download this release

Release Info

Developer dlocc
Plugin Icon 128x128 Give – Donation Plugin and Fundraising Platform
Version 2.9.3
Comparing to
See all releases

Code changes from version 2.9.2 to 2.9.3

.distignore DELETED
@@ -1,47 +0,0 @@
1
- /.git
2
- .gitignore
3
-
4
- /.idea
5
- /.github
6
-
7
- /tests
8
- /node_modules
9
- /assets/src
10
- /vendor/bin
11
- /vendor/composer/installers
12
-
13
- .scrutinizer.yml
14
- .travis.yml
15
- .editorconfig
16
- .babelrc
17
- .jscrsrc
18
- .jshintrc
19
- .eslintignore
20
- .eslintrc
21
- .eslintrc.json
22
- .prettierrc.json
23
- .prettierignore
24
- .stylelintrc.json
25
- .huskyrc.json
26
- .lintstagedrc.json
27
-
28
- sample-data/wordpress.sql
29
- sample-data/sample-data.numbers
30
- bower.json
31
- composer.json
32
- composer.lock
33
- package.json
34
- package-lock.json
35
- phpunit.xml
36
- phpunit.xml.dist
37
- CHANGELOG.md
38
- README.md
39
- readme.md
40
- phpcs.ruleset.xml
41
- CONTRIBUTING.md
42
- CODE_OF_CONDUCT.md
43
- contributing.md
44
- postcss.config.js
45
- webpack.config.js
46
- docker-compose.yml
47
- wp-textdomain.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.storybook/main.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- stories: [ // Custom loading order.
3
- '../src/Views/Admin/Pages/templates/setup-page/stories/examples.stories.js',
4
- '../src/Views/Admin/Pages/templates/setup-page/stories/components.stories.js',
5
- '../src/Views/Admin/Pages/templates/setup-page/stories/items.stories.js',
6
- '../src/Views/Admin/Pages/templates/setup-page/stories/components.stories.js',
7
- '../src/Views/Admin/Pages/templates/setup-page/stories/icons.stories.js',
8
- '../src/Views/Admin/Pages/templates/setup-page/stories/**/*.stories.js', // Catchall
9
- ],
10
- addons: [
11
- '@storybook/addon-a11y/register',
12
- ],
13
- };
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.storybook/preview-body.html DELETED
@@ -1,36 +0,0 @@
1
- <script src="https://kit.fontawesome.com/ce5bca3576.js" crossorigin="anonymous"></script>
2
- <style>
3
- body {
4
- background-color: #F1F1F1;
5
- }
6
-
7
- /* Text meant only for screen readers. */
8
- .screen-reader-text {
9
- border: 0;
10
- clip: rect(1px, 1px, 1px, 1px);
11
- clip-path: inset(50%);
12
- height: 1px;
13
- margin: -1px;
14
- overflow: hidden;
15
- padding: 0;
16
- position: absolute;
17
- width: 1px;
18
- word-wrap: normal !important;
19
- }
20
- .screen-reader-text:focus {
21
- background-color: #eee;
22
- clip: auto !important;
23
- clip-path: none;
24
- color: #444;
25
- display: block;
26
- font-size: 1em;
27
- height: auto;
28
- left: 5px;
29
- line-height: normal;
30
- padding: 15px 23px 14px;
31
- text-decoration: none;
32
- top: 5px;
33
- width: auto;
34
- z-index: 100000; /* Above WP toolbar. */
35
- }
36
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.stylelintignore DELETED
@@ -1,2 +0,0 @@
1
- assets/src/css/icons
2
- src/Views/Form/Themes/Sequoia/assets/css/icons
 
 
assets/dist/js/admin.js CHANGED
@@ -12,7 +12,7 @@
12
  * Full details and documentation:
13
  * http://openexchangerates.github.io/accounting.js/
14
  */
15
- !function(n,i){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},r=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function d(e){return e&&"[object Object]"===s.call(e)}function u(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var i,o,a=[];if(!e)return a;if(r&&e.map===r)return e.map(t,n);for(i=0,o=e.length;i<o;i++)a[i]=t.call(n,e[i],i,e);return a}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=o.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?o.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m=o.unformat=o.parse=function(e,t){if(c(e))return f(e,(function(e){return m(e,t)}));if("number"==typeof(e=e||0))return e;t=t||o.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(i)?0:i},g=o.toFixed=function(e,t){t=h(t,o.settings.number.precision);var n=Math.pow(10,t);return(Math.round(o.unformat(e)*n)/n).toFixed(t)},v=o.formatNumber=o.format=function(e,t,n,i){if(c(e))return f(e,(function(e){return v(e,t,n,i)}));e=m(e);var r=u(d(t)?t:{precision:t,thousand:n,decimal:i},o.settings.number),a=h(r.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+r.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r.thousand)+(a?r.decimal+g(Math.abs(e),a).split(".")[1]:"")},_=o.formatMoney=function(e,t,n,i,r,a){if(c(e))return f(e,(function(e){return _(e,t,n,i,r,a)}));e=m(e);var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,n,i,r,a){if(!e)return[];var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),g=p(s.format),_=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,y=f(e,(function(e,t){if(c(e))return o.formatColumn(e,s);var n=((e=m(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(y,(function(e,t){return l(e)&&e.length<b?_?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=o),t.accounting=o}()},320:function(e,t,n){var i=n(321);t.iframeResize=i,t.iframeResizer=i,t.iframeResizerContentWindow=n(322)},321:function(e,t,n){var i,o,r;!function(n){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,d="message".length,u="[iFrameSizer]",f=u.length,h=null,p=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},v=null,_={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(){j("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){D(n,e)})).end()}):T("","Unable to bind to jQuery, it is not fully loaded.")),o=[],void 0===(r="function"==typeof(i=H)?i.apply(t,o):i)||(e.exports=r),window.iFrameResize=window.iFrameResize||H()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return u+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function C(e){return g[e]?g[e].log:l}function S(e,t){E("log",e,t,C(e))}function T(e,t){E("info",e,t,C(e))}function j(e,t){E("warn",e,t,!0)}function E(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](k(t),n)}function I(e){function t(){o("Height"),o("Width"),q((function(){N(y),P(k),p("onResized",y)}),y,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var t=Number(g[k]["max"+e]),n=Number(g[k]["min"+e]),i=e.toLowerCase(),o=Number(y[i]);S(k,"Checking "+i+" is in range "+n+"-"+t),o<n&&(o=n,S(k,"Set "+i+" to min value")),o>t&&(o=t,S(k,"Set "+i+" to max value")),y[i]=""+o}function r(e){return _.substr(_.indexOf(":")+d+e)}function a(e,t){var n,i,o;n=function(){var n,i;F("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=y.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,b[o=t]||(b[o]=setTimeout((function(){b[o]=null,n()}),i))}function s(e){var t=e.getBoundingClientRect();return O(k),{x:Math.floor(Number(t.left)+Number(h.x)),y:Math.floor(Number(t.top)+Number(h.y))}}function l(e){var t=e?s(y.iframe):{x:0,y:0},n={x:Number(y.width)+t.x,y:Number(y.height)+t.y};S(k,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):j(k,"Unable to scroll to requested position, window.parentIFrame not found"):(h=n,c(),S(k,"--"))}function c(){!1!==p("onScroll",h)?P(k):L()}function p(e,t){return G(k,e,t)}var m,v,_=e.data,y={},k=null;"[iFrameResizerChild]Ready"===_?function(){for(var e in g)F("iFrame requested init",W(e),g[e].iframe,e)}():u===(""+_).substr(0,f)&&_.substr(f).split(":")[0]in g?(y=function(){var e=_.substr(f).split(":"),t=e[1]?parseInt(e[1],10):0,o=g[e[0]]&&g[e[0]].iframe,r=getComputedStyle(o);return{iframe:o,id:e[0],height:t+n(r)+i(r),width:e[2],type:e[3]}}(),k=y.id,g[k]&&(g[k].loaded=!0),(v=y.type in{true:1,false:1,undefined:1})&&S(k,"Ignoring init message from meta parent page"),!v&&function(e){var t=!0;return g[e]||(t=!1,j(y.type+" No settings for "+e+". Message was: "+_)),t}(k)&&(S(k,"Received: "+_),m=!0,null===y.iframe&&(j(k,"IFrame ("+y.id+") not found"),m=!1),m&&function(){var t,n=e.origin,i=g[k]&&g[k].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(S(k,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=g[k]&&g[k].remoteHost,S(k,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+y.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(g[k]&&g[k].firstRun&&g[k]&&(g[k].firstRun=!1),y.type){case"close":A(y.iframe);break;case"message":e=r(6),S(k,"onMessage passed: {iframe: "+y.iframe.id+", message: "+e+"}"),p("onMessage",{iframe:y.iframe,message:JSON.parse(e)}),S(k,"--");break;case"autoResize":g[k].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":a(g[k]&&g[k].iframe,k),function(){function e(e,i){function o(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){S(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",x)}var n=k;e("Add ",w),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[k]&&g[k].stopPageInfo&&(g[k].stopPageInfo(),delete g[k].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",i=decodeURIComponent(n),o=document.getElementById(i)||document.getElementsByName(i)[0];o?(t=s(o),S(k,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),h={x:t.x,y:t.y},c(),S(k,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):S(k,"In page link #"+n+" not found and window.parentIFrame not found"):S(k,"In page link #"+n+" not found")}(r(9));break;case"reset":z(y);break;case"init":t(),p("onInit",y.iframe);break;default:t()}var e}())):T(k,"Ignored: "+_)}function G(e,t,n){var i=null,o=null;if(g[e]){if("function"!=typeof(i=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=i(n)}return o}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==G(t,"onClose",t)){S(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){j(e)}G(t,"onClosed",t),S(t,"--"),M(e)}else S(t,"Close iframe cancelled by onClose event")}function O(e){null===h&&S(e,"Get page position: "+(h={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function P(e){null!==h&&(window.scrollTo(h.x,h.y),S(e,"Set page position: "+h.x+","+h.y),L())}function L(){h=null}function z(e){S(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),q((function(){N(e),F("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){c||"0"!==e[t]||(c=!0,S(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(g).forEach((function(e){!function(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}g[e]&&null!==g[e].iframe.offsetParent&&(t("height")||t("width"))&&F("Visibility change","resize",g[e].iframe,e)}(e)}))}function t(t){S("window","Mutation observed: "+t[0].target+" "+t[0].type),Q(e,16)}var n=y();n&&(i=document.querySelector("body"),new n(t).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var i}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",S(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):S("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;g[i]&&(g[i].sizeHeight&&n("height"),g[i].sizeWidth&&n("width"))}function q(e,t,n){n!==t.type&&p&&!window.jasmine?(S(t.id,"Requesting animation frame"),p(e)):e()}function F(e,t,n,i,o){var r,a=!1;i=i||n.id,g[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=g[i]&&g[i].targetOrigin,S(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(u+t,r)):j(i,"["+e+"] IFrame("+i+") not found"),o&&g[i]&&g[i].warningTimeout&&(g[i].msgTimeout=setTimeout((function(){!g[i]||g[i].loaded||a||(a=!0,j(i,"IFrame has not responded within "+g[i].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."))}),g[i].warningTimeout)))}function W(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod}function D(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],j(r,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i,o,r=function(n){var i;return""===n&&(e.id=(i=t&&t.id||_.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),l=(t||{}).log,S(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);r in g&&"iFrameResizer"in e?j(r,"Ignored iFrame, already setup."):(!function(t){var i;t=t||{},g[r]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in _)Object.prototype.hasOwnProperty.call(_,t)&&(g[r][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:_[t])}(t),g[r]&&(g[r].targetOrigin=!0===g[r].checkOrigin?""===(i=g[r].remoteHost)||null!==i.match(/^(about:blank|javascript:|file:\/\/)/)?"*":i:"*")}(t),function(){switch(S(r,"IFrame scrolling "+(g[r]&&g[r].scrolling?"enabled":"disabled")+" for "+r),e.style.overflow=!1===(g[r]&&g[r].scrolling)?"hidden":"auto",g[r]&&g[r].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[r]?g[r].scrolling:"no"}}(),function(){function t(t){1/0!==g[r][t]&&0!==g[r][t]&&(e.style[t]=g[r][t]+"px",S(r,"Set "+t+" = "+g[r][t]+"px"))}function n(e){if(g[r]["min"+e]>g[r]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[r]&&g[r].bodyMargin)&&"0"!==(g[r]&&g[r].bodyMargin)||(g[r].bodyMarginV1=g[r].bodyMargin,g[r].bodyMargin=g[r].bodyMargin+"px"),i=W(r),(o=y())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),w(e,"load",(function(){var t,n;F("iFrame.onload",i,e,void 0,!0),t=g[r]&&g[r].firstRun,n=g[r]&&g[r].heightCalculationMethod in m,!t&&n&&z({iframe:e,height:0,width:0,type:"init"})})),F("init",i,e,void 0,!0),g[r]&&(g[r].iframe.iFrameResizer={close:A.bind(null,g[r].iframe),removeListeners:M.bind(null,g[r].iframe),resize:F.bind(null,"Window resize","resize",g[r].iframe),moveToAnchor:function(e){F("Move to anchor","moveToAnchor:"+e,g[r].iframe,r)},sendMessage:function(e){F("Send Message","message:"+(e=JSON.stringify(e)),g[r].iframe,r)}}))}function Q(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function V(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visiblity change"),Q((function(){R("Tab Visable","resize")}),16))}function R(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&F(e,t,g[n].iframe,n)}))}function B(){w(window,"message",I),w(window,"resize",(function(){var e;S("window","Trigger event: "+(e="resize")),Q((function(){R("Window "+e,"resize")}),16)})),w(document,"visibilitychange",V),w(document,"-webkit-visibilitychange",V)}function H(){function e(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+">")}(),D(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"];p?p=p.bind(window):S("setup","RequestAnimationFrame not supported")}(),B(),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&j("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(void 0,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return t}}}()},322:function(e,t,n){!function(t){if("undefined"!=typeof window){var n=!0,i="",o=0,r="",a=null,s="",l=!1,c={resize:1,click:1},d=!0,u=1,f="bodyOffset",h=!0,p="",m={},g=32,v=null,_=!1,b="[iFrameSizer]",y=b.length,w="",x={max:1,min:1,bodyScroll:1,documentElementScroll:1},k="child",C=window.parent,S="*",T=0,j=!1,E=null,I=16,G=1,M="scroll",A=window,O=function(){ne("onMessage function not defined")},P=function(){},L=function(){},z={height:function(){return ne("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ne("Custom width calculation function not defined"),document.body.scrollWidth}},N={},q=!1;try{var F=Object.create({},{passive:{get:function(){q=!0}}});window.addEventListener("test",K,F),window.removeEventListener("test",K,F)}catch(e){}var W,D,Q,V,R,B,H,U=Date.now||function(){return(new Date).getTime()},Y={bodyOffset:function(){return document.body.offsetHeight+he("marginTop")+he("marginBottom")},offset:function(){return Y.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return z.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,me(Y))},min:function(){return Math.min.apply(null,me(Y))},grow:function(){return Y.max()},lowestElement:function(){return Math.max(Y.bodyOffset()||Y.documentElementOffset(),pe("bottom",ve()))},taggedElement:function(){return ge("bottom","data-iframe-height")}},J={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return z.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(J.bodyScroll(),J.documentElementScroll())},max:function(){return Math.max.apply(null,me(J))},min:function(){return Math.min.apply(null,me(J))},rightMostElement:function(){return pe("right",ve())},taggedElement:function(){return ge("right","data-iframe-width")}},X=(W=_e,R=null,B=0,H=function(){B=U(),R=null,V=W.apply(D,Q),R||(D=Q=null)},function(){var e=U();B||(B=e);var t=I-(e-B);return D=this,Q=arguments,t<=0||t>I?(R&&(clearTimeout(R),R=null),B=e,V=W.apply(D,Q),R||(D=Q=null)):R||(R=setTimeout(H,t)),V});$(window,"message",(function(t){var n={init:function(){p=t.data,C=t.source,ie(),d=!1,setTimeout((function(){h=!1}),128)},reset:function(){h?te("Page reset ignored by init"):(te("Page size reset by host page"),we("resetPage"))},resize:function(){be("resizeParent","Parent window requested size check")},moveToAnchor:function(){m.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();te("PageInfoFromParent called from parent: "+e),L(JSON.parse(e)),te(" --")},message:function(){var e=o();te("onMessage called from parent: "+e),O(JSON.parse(e)),te(" --")}};function i(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var o=i();o in n?n[o]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||ne("Unexpected message ("+t.data+")")}b===(""+t.data).substr(0,y)&&(!1===d?a():r()?n.init():te('Ignored message of type "'+i()+'". Received before initialization.'))})),$(window,"readystatechange",Ce),Ce()}function K(){}function $(e,t,n,i){e.addEventListener(t,n,!!q&&(i||{}))}function Z(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ee(e){return b+"["+w+"] "+e}function te(e){_&&"object"==typeof window.console&&console.log(ee(e))}function ne(e){"object"==typeof window.console&&console.warn(ee(e))}function ie(){var e;!function(){function e(e){return"true"===e}var t=p.substr(y).split(":");w=t[0],o=void 0!==t[1]?Number(t[1]):o,l=void 0!==t[2]?e(t[2]):l,_=void 0!==t[3]?e(t[3]):_,g=void 0!==t[4]?Number(t[4]):g,n=void 0!==t[6]?e(t[6]):n,r=t[7],f=void 0!==t[8]?t[8]:f,i=t[9],s=t[10],T=void 0!==t[11]?Number(t[11]):T,m.enable=void 0!==t[12]&&e(t[12]),k=void 0!==t[13]?t[13]:k,M=void 0!==t[14]?t[14]:M}(),te("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(te("Setup custom "+t+"CalcMethod"),z[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(!function(){var e=window.iFrameResizer;te("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(oe,e),O="onMessage"in e?e.onMessage:O,P="onReady"in e?e.onReady:P,S="targetOrigin"in e?e.targetOrigin:S,f="heightCalculationMethod"in e?e.heightCalculationMethod:f,M="widthCalculationMethod"in e?e.widthCalculationMethod:M}(),f=e(f,"height"),M=e(M,"width"));te("TargetOrigin for parent set to: "+S)}(),function(){void 0===r&&(r=o+"px");re("margin",function(e,t){-1!==t.indexOf("-")&&(ne("Negative CSS value ignored for "+e),t="");return t}("margin",r))}(),re("background",i),re("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),ce(),de(),document.documentElement.style.height="",document.body.style.height="",te('HTML & body height set to "auto"'),te("Enable public methods"),A.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,ue()):!1===e&&!0===n&&(n=!1,se("remove"),null!==a&&a.disconnect(),clearInterval(v)),ke(0,0,"autoResize",JSON.stringify(n)),n},close:function(){ke(0,0,"close")},getId:function(){return w},getPageInfo:function(e){"function"==typeof e?(L=e,ke(0,0,"pageInfo")):(L=function(){},ke(0,0,"pageInfoStop"))},moveToAnchor:function(e){m.findTarget(e)},reset:function(){xe("parentIFrame.reset")},scrollTo:function(e,t){ke(t,e,"scrollTo")},scrollToOffset:function(e,t){ke(t,e,"scrollToOffset")},sendMessage:function(e,t){ke(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){f=e,ce()},setWidthCalculationMethod:function(e){M=e,de()},setTargetOrigin:function(e){te("Set targetOrigin: "+e),S=e},size:function(e,t){be("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},ue(),m=function(){function e(e){var t=e.getBoundingClientRect(),n={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function t(t){var n=t.split("#")[1]||t,i=decodeURIComponent(n),o=document.getElementById(i)||document.getElementsByName(i)[0];void 0!==o?function(t){var i=e(t);te("Moving to in page link (#"+n+") at x: "+i.x+" y: "+i.y),ke(i.y,i.x,"scrollToOffset")}(o):(te("In page link (#"+n+") not found in iFrame, so sending to parent"),ke(0,0,"inPageLink","#"+n))}function n(){""!==location.hash&&"#"!==location.hash&&t(location.href)}m.enable?Array.prototype.forEach&&document.querySelectorAll?(te("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(e){"#"!==e.getAttribute("href")&&$(e,"click",(function(e){e.preventDefault(),t(this.getAttribute("href"))}))})),$(window,"hashchange",n),setTimeout(n,128)):ne("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):te("In page linking not enabled");return{findTarget:t}}(),be("init","Init message from host page"),P()}function oe(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ne("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function re(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style[e]=t,te("Body "+e+' set to "'+t+'"'))}function ae(e){var t={add:function(t){function n(){be(e.eventName,e.eventType)}N[t]=n,$(window,t,n,{passive:!0})},remove:function(e){var t,n,i,o=N[e];delete N[e],t=window,n=e,i=o,t.removeEventListener(n,i,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),te(Z(e.method)+" event listener: "+e.eventType)}function se(e){ae({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ae({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ae({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ae({method:e,eventType:"Input",eventName:"input"}),ae({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ae({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ae({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ae({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ae({method:e,eventType:"Touch Start",eventName:"touchstart"}),ae({method:e,eventType:"Touch End",eventName:"touchend"}),ae({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ae({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ae({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ae({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===k&&ae({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,i){return t!==e&&(e in n||(ne(e+" is not a valid option for "+i+"CalculationMethod."),e=t),te(i+' calculation method set to "'+e+'"')),e}function ce(){f=le(f,"bodyOffset",Y,"height")}function de(){M=le(M,"scroll",J,"width")}function ue(){var e;!0===n?(se("add"),e=0>g,window.MutationObserver||window.WebKitMutationObserver?e?fe():a=function(){function e(e){function t(e){!1===e.complete&&(te("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",o,!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){te("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",o,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,i){t(e.target),be(n,i+": "+e.target.src,void 0,void 0)}function i(e){n(e,"imageLoad","Image loaded")}function o(e){n(e,"imageLoadFailed","Image load failed")}function r(t){be("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],s=window.MutationObserver||window.WebKitMutationObserver,l=function(){var e=document.querySelector("body");return l=new s(r),te("Create body MutationObserver"),l.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),l}();return{disconnect:function(){"disconnect"in l&&(te("Disconnect body MutationObserver"),l.disconnect(),a.forEach(t))}}}():(te("MutationObserver not supported in this browser!"),fe())):te("Auto Resize disabled")}function fe(){0!==g&&(te("setInterval: "+g+"ms"),v=setInterval((function(){be("interval","setInterval: "+g)}),Math.abs(g)))}function he(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function pe(e,t){for(var n=t.length,i=0,o=0,r=Z(e),a=U(),s=0;s<n;s++)(i=t[s].getBoundingClientRect()[e]+he("margin"+r,t[s]))>o&&(o=i);return a=U()-a,te("Parsed "+n+" HTML elements"),te("Element position calculated in "+a+"ms"),function(e){e>I/2&&te("Event throttle increased to "+(I=2*e)+"ms")}(a),o}function me(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ge(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ne("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),pe(e,n)}function ve(){return document.querySelectorAll("body *")}function _e(e,t,n,i){var o,r;!function(){function e(e,t){return!(Math.abs(e-t)<=T)}return o=void 0!==n?n:Y[f](),r=void 0!==i?i:J[M](),e(u,o)||l&&e(G,r)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(f in x||l&&M in x)?xe(t):e in{interval:1}||te("No change in size detected"):(ye(),ke(u=o,G=r,e))}function be(e,t,n,i){j&&e in c?te("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||te("Trigger event: "+t),"init"===e?_e(e,t,n,i):X(e,t,n,i))}function ye(){j||(j=!0,te("Trigger event lock on")),clearTimeout(E),E=setTimeout((function(){j=!1,te("Trigger event lock off"),te("--")}),128)}function we(e){u=Y[f](),G=J[M](),ke(u,G,e)}function xe(e){var t=f;f="bodyOffset",te("Reset trigger event: "+e),ye(),we("reset"),f=t}function ke(e,t,n,i,o){var r;void 0===o?o=S:te("Message targetOrigin: "+o),te("Sending message to host page ("+(r=w+":"+e+":"+t+":"+n+(void 0!==i?":"+i:""))+")"),C.postMessage(b+r,o)}function Ce(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},323:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var i=n.next("span.give-hint-tooltip-js");if(!i.length){var o=t.label.length?t.label:n.data("hint-aria-label");if(!o.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+o+'"></span>'),(i=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?i.addClass("hint--always"):"hide"===e&&i.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),i=[],o=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(i=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(i=i.join(" "),t.removeClass(i),t.append('<i class="'+i+'"></i>'))),t.addClass("hint--top"),15<o?t.addClass("hint--large"):7<o&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,i){n(i=i instanceof jQuery?i:e(i))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},324:function(e,t,n){e.exports=n(325)},325:function(e,t,n){var i=n(326),o=n(327),r=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(r)?e:i(e)}function l(e){var t=o.stringify(function(e){var t={},n={protocol:1,format:1};for(var i in e)n[i]||(t[i]=e[i]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var i="//www.gravatar.com/avatar/";t&&t.cdn?(i=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(i=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var o=l(t);return i+s(e)+o},profile_url:function(e,t,n){var i=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)o=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var o=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var r=l(t);return o+s(e)+"."+i+r}}},326:function(e,t,n){var i;!function(o){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(l=o)|s>>>32-l,n);var s,l}function s(e,t,n,i,o,r,s){return a(t&n|~t&i,e,t,o,r,s)}function l(e,t,n,i,o,r,s){return a(t&i|n&~i,e,t,o,r,s)}function c(e,t,n,i,o,r,s){return a(t^n^i,e,t,o,r,s)}function d(e,t,n,i,o,r,s){return a(n^(t|~i),e,t,o,r,s)}function u(e,t){var n,i,o,a,u;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,h=-271733879,p=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)i=f,o=h,a=p,u=m,f=s(f,h,p,m,e[n],7,-680876936),m=s(m,f,h,p,e[n+1],12,-389564586),p=s(p,m,f,h,e[n+2],17,606105819),h=s(h,p,m,f,e[n+3],22,-1044525330),f=s(f,h,p,m,e[n+4],7,-176418897),m=s(m,f,h,p,e[n+5],12,1200080426),p=s(p,m,f,h,e[n+6],17,-1473231341),h=s(h,p,m,f,e[n+7],22,-45705983),f=s(f,h,p,m,e[n+8],7,1770035416),m=s(m,f,h,p,e[n+9],12,-1958414417),p=s(p,m,f,h,e[n+10],17,-42063),h=s(h,p,m,f,e[n+11],22,-1990404162),f=s(f,h,p,m,e[n+12],7,1804603682),m=s(m,f,h,p,e[n+13],12,-40341101),p=s(p,m,f,h,e[n+14],17,-1502002290),f=l(f,h=s(h,p,m,f,e[n+15],22,1236535329),p,m,e[n+1],5,-165796510),m=l(m,f,h,p,e[n+6],9,-1069501632),p=l(p,m,f,h,e[n+11],14,643717713),h=l(h,p,m,f,e[n],20,-373897302),f=l(f,h,p,m,e[n+5],5,-701558691),m=l(m,f,h,p,e[n+10],9,38016083),p=l(p,m,f,h,e[n+15],14,-660478335),h=l(h,p,m,f,e[n+4],20,-405537848),f=l(f,h,p,m,e[n+9],5,568446438),m=l(m,f,h,p,e[n+14],9,-1019803690),p=l(p,m,f,h,e[n+3],14,-187363961),h=l(h,p,m,f,e[n+8],20,1163531501),f=l(f,h,p,m,e[n+13],5,-1444681467),m=l(m,f,h,p,e[n+2],9,-51403784),p=l(p,m,f,h,e[n+7],14,1735328473),f=c(f,h=l(h,p,m,f,e[n+12],20,-1926607734),p,m,e[n+5],4,-378558),m=c(m,f,h,p,e[n+8],11,-2022574463),p=c(p,m,f,h,e[n+11],16,1839030562),h=c(h,p,m,f,e[n+14],23,-35309556),f=c(f,h,p,m,e[n+1],4,-1530992060),m=c(m,f,h,p,e[n+4],11,1272893353),p=c(p,m,f,h,e[n+7],16,-155497632),h=c(h,p,m,f,e[n+10],23,-1094730640),f=c(f,h,p,m,e[n+13],4,681279174),m=c(m,f,h,p,e[n],11,-358537222),p=c(p,m,f,h,e[n+3],16,-722521979),h=c(h,p,m,f,e[n+6],23,76029189),f=c(f,h,p,m,e[n+9],4,-640364487),m=c(m,f,h,p,e[n+12],11,-421815835),p=c(p,m,f,h,e[n+15],16,530742520),f=d(f,h=c(h,p,m,f,e[n+2],23,-995338651),p,m,e[n],6,-198630844),m=d(m,f,h,p,e[n+7],10,1126891415),p=d(p,m,f,h,e[n+14],15,-1416354905),h=d(h,p,m,f,e[n+5],21,-57434055),f=d(f,h,p,m,e[n+12],6,1700485571),m=d(m,f,h,p,e[n+3],10,-1894986606),p=d(p,m,f,h,e[n+10],15,-1051523),h=d(h,p,m,f,e[n+1],21,-2054922799),f=d(f,h,p,m,e[n+8],6,1873313359),m=d(m,f,h,p,e[n+15],10,-30611744),p=d(p,m,f,h,e[n+6],15,-1560198380),h=d(h,p,m,f,e[n+13],21,1309151649),f=d(f,h,p,m,e[n+4],6,-145523070),m=d(m,f,h,p,e[n+11],10,-1120210379),p=d(p,m,f,h,e[n+2],15,718787259),h=d(h,p,m,f,e[n+9],21,-343485551),f=r(f,i),h=r(h,o),p=r(p,a),m=r(m,u);return[f,h,p,m]}function f(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return i}function m(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(u(h(e),8*e.length))}(m(e))}function v(e,t){return function(e,t){var n,i,o=h(e),r=[],a=[];for(r[15]=a[15]=void 0,o.length>16&&(o=u(o,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^o[n],a[n]=1549556828^o[n];return i=u(r.concat(h(t)),512+8*t.length),f(u(a.concat(i),640))}(m(e),m(t))}function _(e,t,n){return t?n?v(t,e):p(v(t,e)):n?g(e):p(g(e))}void 0===(i=function(){return _}.call(t,n,t,e))||(e.exports=i)}()},327:function(e,t,n){"use strict";t.decode=t.parse=n(328),t.encode=t.stringify=n(329)},328:function(e,t,n){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;r&&"number"==typeof r.maxKeys&&(l=r.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var d=0;d<c;++d){var u,f,h,p,m=e[d].replace(s,"%20"),g=m.indexOf(n);g>=0?(u=m.substr(0,g),f=m.substr(g+1)):(u=m,f=""),h=decodeURIComponent(u),p=decodeURIComponent(f),i(a,h)?o(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},329:function(e,t,n){"use strict";var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),(function(a){var s=encodeURIComponent(i(a))+n;return o(e[a])?r(e[a],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[a]))})).join(t):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},36:function(e,t){function n(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var a=e.apply(t,i);function s(e){n(a,o,r,s,l,"next",e)}function l(e){n(a,o,r,s,l,"throw",e)}s(void 0)}))}}},38:function(e,t,n){"use strict";var i,o={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,i,o;if(n=i=o="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},i="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(i,"</span></button>"):"","</p</div>")}}},r=n(21),a=n.n(r),s=n(36),l={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},c={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){l.fn.showOverlay(e)},hideProcessingState:function(){l.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?t:{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,i){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==i&&!i.length)return!1;switch(e){case"attr":n.attr(i,t);break;default:n.data(i,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);var o=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),o)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===o&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return o=t.price_id,!1})),-1===o&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),o.length&&o.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),i=e.data("price-id");if(void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),o=n.hasClass("give-display-modal"),r=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||r?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(i=n.n(s)()(a.a.mark((function e(t){var n,i,o,r=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=r.length>1&&void 0!==r[1]?r[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return i=e.sent,e.next=9,i.text();case 9:return o=e.sent,e.abrupt("return",o.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),o=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),o.payment("formatCardExpiry"))}))}}}},d={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},u={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,i=n.innerHeight/2-126,o=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(i,",left=").concat(o))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(i))}}},f={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)f[e[t]].init&&f[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:f.form.fn.getInfo("decimal_separator",n),thousand:f.form.fn.getInfo("thousands_separator",n),precision:f.form.fn.getInfo("number_decimals",n),currency:f.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,r=accounting.formatNumber(e,{precision:i.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(r=(r=accounting.unformat(r,".").toString()).toString()).indexOf(".")>0&&(a=r.substring(r.indexOf("."),r.length)),s=(r=Math.floor(r).toString()).substring(r.length-3),""!==(l=r.substring(0,r.length-3))&&(s=i.thousand+s),o=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,o)+(c.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?f.cache["form_"+f.form.fn.getInfo("form-id",n)][e]=t:f.cache[e]=t},getCache:function(e,t){var n,i=f.cache["form_"+f.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==i?i[e]:"":f.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(i=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},i)).loadingAnimation?'<span class="is-active spinner"></span>':"",r=null!==i.loadingText?i.loadingText:f.fn.getGlobalVar("loader_translation").updating;return!1===i.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=o.length?"give-has-spinner":"",t=(t+=r.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((r+o).trim(),"</div></div>"),null===i.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var i=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),r=o.length;r-- >0;)-1!==o[r].lastIndexOf(i,0)&&o.splice(r,1);return n[0]+(o.length>0?"?"+o.join("&"):"")}return e}},cache:{}};f.notice=o,f.form=c,f.donor=d,f.util=l,f.share=u;t.a=f},42:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},487:function(e,t,n){
16
  /*!
17
  * clipboard.js v2.0.6
18
  * https://clipboardjs.com/
12
  * Full details and documentation:
13
  * http://openexchangerates.github.io/accounting.js/
14
  */
15
+ !function(n,i){var o={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},r=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function d(e){return e&&"[object Object]"===s.call(e)}function u(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var i,o,a=[];if(!e)return a;if(r&&e.map===r)return e.map(t,n);for(i=0,o=e.length;i<o;i++)a[i]=t.call(n,e[i],i,e);return a}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=o.settings.currency.format;return"function"==typeof e&&(e=e()),l(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?o.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m=o.unformat=o.parse=function(e,t){if(c(e))return f(e,(function(e){return m(e,t)}));if("number"==typeof(e=e||0))return e;t=t||o.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(i)?0:i},g=o.toFixed=function(e,t){t=h(t,o.settings.number.precision);var n=Math.pow(10,t);return(Math.round(o.unformat(e)*n)/n).toFixed(t)},v=o.formatNumber=o.format=function(e,t,n,i){if(c(e))return f(e,(function(e){return v(e,t,n,i)}));e=m(e);var r=u(d(t)?t:{precision:t,thousand:n,decimal:i},o.settings.number),a=h(r.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",p=l.length>3?l.length%3:0;return s+(p?l.substr(0,p)+r.thousand:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r.thousand)+(a?r.decimal+g(Math.abs(e),a).split(".")[1]:"")},_=o.formatMoney=function(e,t,n,i,r,a){if(c(e))return f(e,(function(e){return _(e,t,n,i,r,a)}));e=m(e);var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),l=p(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal))};o.formatColumn=function(e,t,n,i,r,a){if(!e)return[];var s=u(d(t)?t:{symbol:t,precision:n,thousand:i,decimal:r,format:a},o.settings.currency),g=p(s.format),_=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,y=f(e,(function(e,t){if(c(e))return o.formatColumn(e,s);var n=((e=m(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",v(Math.abs(e),h(s.precision),s.thousand,s.decimal));return n.length>b&&(b=n.length),n}));return f(y,(function(e,t){return l(e)&&e.length<b?_?e.replace(s.symbol,s.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=o),t.accounting=o}()},320:function(e,t,n){var i=n(321);t.iframeResize=i,t.iframeResizer=i,t.iframeResizerContentWindow=n(322)},321:function(e,t,n){var i,o,r;!function(n){if("undefined"!=typeof window){var a,s=0,l=!1,c=!1,d="message".length,u="[iFrameSizer]",f=u.length,h=null,p=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},v=null,_={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(){j("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){D(n,e)})).end()}):T("","Unable to bind to jQuery, it is not fully loaded.")),o=[],void 0===(r="function"==typeof(i=H)?i.apply(t,o):i)||(e.exports=r),window.iFrameResize=window.iFrameResize||H()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return u+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function C(e){return g[e]?g[e].log:l}function S(e,t){E("log",e,t,C(e))}function T(e,t){E("info",e,t,C(e))}function j(e,t){E("warn",e,t,!0)}function E(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](k(t),n)}function I(e){function t(){o("Height"),o("Width"),q((function(){N(y),P(k),p("onResized",y)}),y,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var t=Number(g[k]["max"+e]),n=Number(g[k]["min"+e]),i=e.toLowerCase(),o=Number(y[i]);S(k,"Checking "+i+" is in range "+n+"-"+t),o<n&&(o=n,S(k,"Set "+i+" to min value")),o>t&&(o=t,S(k,"Set "+i+" to max value")),y[i]=""+o}function r(e){return _.substr(_.indexOf(":")+d+e)}function a(e,t){var n,i,o;n=function(){var n,i;F("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=y.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,b[o=t]||(b[o]=setTimeout((function(){b[o]=null,n()}),i))}function s(e){var t=e.getBoundingClientRect();return O(k),{x:Math.floor(Number(t.left)+Number(h.x)),y:Math.floor(Number(t.top)+Number(h.y))}}function l(e){var t=e?s(y.iframe):{x:0,y:0},n={x:Number(y.width)+t.x,y:Number(y.height)+t.y};S(k,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):j(k,"Unable to scroll to requested position, window.parentIFrame not found"):(h=n,c(),S(k,"--"))}function c(){!1!==p("onScroll",h)?P(k):L()}function p(e,t){return G(k,e,t)}var m,v,_=e.data,y={},k=null;"[iFrameResizerChild]Ready"===_?function(){for(var e in g)F("iFrame requested init",W(e),g[e].iframe,e)}():u===(""+_).substr(0,f)&&_.substr(f).split(":")[0]in g?(y=function(){var e=_.substr(f).split(":"),t=e[1]?parseInt(e[1],10):0,o=g[e[0]]&&g[e[0]].iframe,r=getComputedStyle(o);return{iframe:o,id:e[0],height:t+n(r)+i(r),width:e[2],type:e[3]}}(),k=y.id,g[k]&&(g[k].loaded=!0),(v=y.type in{true:1,false:1,undefined:1})&&S(k,"Ignoring init message from meta parent page"),!v&&function(e){var t=!0;return g[e]||(t=!1,j(y.type+" No settings for "+e+". Message was: "+_)),t}(k)&&(S(k,"Received: "+_),m=!0,null===y.iframe&&(j(k,"IFrame ("+y.id+") not found"),m=!1),m&&function(){var t,n=e.origin,i=g[k]&&g[k].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for(S(k,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=g[k]&&g[k].remoteHost,S(k,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+y.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(g[k]&&g[k].firstRun&&g[k]&&(g[k].firstRun=!1),y.type){case"close":A(y.iframe);break;case"message":e=r(6),S(k,"onMessage passed: {iframe: "+y.iframe.id+", message: "+e+"}"),p("onMessage",{iframe:y.iframe,message:JSON.parse(e)}),S(k,"--");break;case"autoResize":g[k].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":a(g[k]&&g[k].iframe,k),function(){function e(e,i){function o(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){S(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",x)}var n=k;e("Add ",w),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[k]&&g[k].stopPageInfo&&(g[k].stopPageInfo(),delete g[k].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",i=decodeURIComponent(n),o=document.getElementById(i)||document.getElementsByName(i)[0];o?(t=s(o),S(k,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),h={x:t.x,y:t.y},c(),S(k,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):S(k,"In page link #"+n+" not found and window.parentIFrame not found"):S(k,"In page link #"+n+" not found")}(r(9));break;case"reset":z(y);break;case"init":t(),p("onInit",y.iframe);break;default:t()}var e}())):T(k,"Ignored: "+_)}function G(e,t,n){var i=null,o=null;if(g[e]){if("function"!=typeof(i=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=i(n)}return o}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==G(t,"onClose",t)){S(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){j(e)}G(t,"onClosed",t),S(t,"--"),M(e)}else S(t,"Close iframe cancelled by onClose event")}function O(e){null===h&&S(e,"Get page position: "+(h={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function P(e){null!==h&&(window.scrollTo(h.x,h.y),S(e,"Set page position: "+h.x+","+h.y),L())}function L(){h=null}function z(e){S(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),O(e.id),q((function(){N(e),F("reset","reset",e.iframe,e.id)}),e,"reset")}function N(e){function t(t){c||"0"!==e[t]||(c=!0,S(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(g).forEach((function(e){!function(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}g[e]&&null!==g[e].iframe.offsetParent&&(t("height")||t("width"))&&F("Visibility change","resize",g[e].iframe,e)}(e)}))}function t(t){S("window","Mutation observed: "+t[0].target+" "+t[0].type),Q(e,16)}var n=y();n&&(i=document.querySelector("body"),new n(t).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var i}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",S(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):S("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;g[i]&&(g[i].sizeHeight&&n("height"),g[i].sizeWidth&&n("width"))}function q(e,t,n){n!==t.type&&p&&!window.jasmine?(S(t.id,"Requesting animation frame"),p(e)):e()}function F(e,t,n,i,o){var r,a=!1;i=i||n.id,g[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=g[i]&&g[i].targetOrigin,S(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(u+t,r)):j(i,"["+e+"] IFrame("+i+") not found"),o&&g[i]&&g[i].warningTimeout&&(g[i].msgTimeout=setTimeout((function(){!g[i]||g[i].loaded||a||(a=!0,j(i,"IFrame has not responded within "+g[i].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."))}),g[i].warningTimeout)))}function W(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod}function D(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],j(r,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i,o,r=function(n){var i;return""===n&&(e.id=(i=t&&t.id||_.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),l=(t||{}).log,S(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);r in g&&"iFrameResizer"in e?j(r,"Ignored iFrame, already setup."):(!function(t){var i;t=t||{},g[r]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in _)Object.prototype.hasOwnProperty.call(_,t)&&(g[r][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:_[t])}(t),g[r]&&(g[r].targetOrigin=!0===g[r].checkOrigin?""===(i=g[r].remoteHost)||null!==i.match(/^(about:blank|javascript:|file:\/\/)/)?"*":i:"*")}(t),function(){switch(S(r,"IFrame scrolling "+(g[r]&&g[r].scrolling?"enabled":"disabled")+" for "+r),e.style.overflow=!1===(g[r]&&g[r].scrolling)?"hidden":"auto",g[r]&&g[r].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[r]?g[r].scrolling:"no"}}(),function(){function t(t){1/0!==g[r][t]&&0!==g[r][t]&&(e.style[t]=g[r][t]+"px",S(r,"Set "+t+" = "+g[r][t]+"px"))}function n(e){if(g[r]["min"+e]>g[r]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[r]&&g[r].bodyMargin)&&"0"!==(g[r]&&g[r].bodyMargin)||(g[r].bodyMarginV1=g[r].bodyMargin,g[r].bodyMargin=g[r].bodyMargin+"px"),i=W(r),(o=y())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),w(e,"load",(function(){var t,n;F("iFrame.onload",i,e,void 0,!0),t=g[r]&&g[r].firstRun,n=g[r]&&g[r].heightCalculationMethod in m,!t&&n&&z({iframe:e,height:0,width:0,type:"init"})})),F("init",i,e,void 0,!0),g[r]&&(g[r].iframe.iFrameResizer={close:A.bind(null,g[r].iframe),removeListeners:M.bind(null,g[r].iframe),resize:F.bind(null,"Window resize","resize",g[r].iframe),moveToAnchor:function(e){F("Move to anchor","moveToAnchor:"+e,g[r].iframe,r)},sendMessage:function(e){F("Send Message","message:"+(e=JSON.stringify(e)),g[r].iframe,r)}}))}function Q(e,t){null===v&&(v=setTimeout((function(){v=null,e()}),t))}function V(){"hidden"!==document.visibilityState&&(S("document","Trigger event: Visiblity change"),Q((function(){R("Tab Visable","resize")}),16))}function R(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&F(e,t,g[n].iframe,n)}))}function B(){w(window,"message",I),w(window,"resize",(function(){var e;S("window","Trigger event: "+(e="resize")),Q((function(){R("Window "+e,"resize")}),16)})),w(document,"visibilitychange",V),w(document,"-webkit-visibilitychange",V)}function H(){function e(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+">")}(),D(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!p;e+=1)p=window[t[e]+"RequestAnimationFrame"];p?p=p.bind(window):S("setup","RequestAnimationFrame not supported")}(),B(),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&j("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(void 0,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return t}}}()},322:function(e,t,n){!function(t){if("undefined"!=typeof window){var n=!0,i="",o=0,r="",a=null,s="",l=!1,c={resize:1,click:1},d=!0,u=1,f="bodyOffset",h=!0,p="",m={},g=32,v=null,_=!1,b="[iFrameSizer]",y=b.length,w="",x={max:1,min:1,bodyScroll:1,documentElementScroll:1},k="child",C=window.parent,S="*",T=0,j=!1,E=null,I=16,G=1,M="scroll",A=window,O=function(){ne("onMessage function not defined")},P=function(){},L=function(){},z={height:function(){return ne("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ne("Custom width calculation function not defined"),document.body.scrollWidth}},N={},q=!1;try{var F=Object.create({},{passive:{get:function(){q=!0}}});window.addEventListener("test",K,F),window.removeEventListener("test",K,F)}catch(e){}var W,D,Q,V,R,B,H,U=Date.now||function(){return(new Date).getTime()},Y={bodyOffset:function(){return document.body.offsetHeight+he("marginTop")+he("marginBottom")},offset:function(){return Y.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return z.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,me(Y))},min:function(){return Math.min.apply(null,me(Y))},grow:function(){return Y.max()},lowestElement:function(){return Math.max(Y.bodyOffset()||Y.documentElementOffset(),pe("bottom",ve()))},taggedElement:function(){return ge("bottom","data-iframe-height")}},J={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return z.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(J.bodyScroll(),J.documentElementScroll())},max:function(){return Math.max.apply(null,me(J))},min:function(){return Math.min.apply(null,me(J))},rightMostElement:function(){return pe("right",ve())},taggedElement:function(){return ge("right","data-iframe-width")}},X=(W=_e,R=null,B=0,H=function(){B=U(),R=null,V=W.apply(D,Q),R||(D=Q=null)},function(){var e=U();B||(B=e);var t=I-(e-B);return D=this,Q=arguments,t<=0||t>I?(R&&(clearTimeout(R),R=null),B=e,V=W.apply(D,Q),R||(D=Q=null)):R||(R=setTimeout(H,t)),V});$(window,"message",(function(t){var n={init:function(){p=t.data,C=t.source,ie(),d=!1,setTimeout((function(){h=!1}),128)},reset:function(){h?te("Page reset ignored by init"):(te("Page size reset by host page"),we("resetPage"))},resize:function(){be("resizeParent","Parent window requested size check")},moveToAnchor:function(){m.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=o();te("PageInfoFromParent called from parent: "+e),L(JSON.parse(e)),te(" --")},message:function(){var e=o();te("onMessage called from parent: "+e),O(JSON.parse(e)),te(" --")}};function i(){return t.data.split("]")[1].split(":")[0]}function o(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var o=i();o in n?n[o]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||ne("Unexpected message ("+t.data+")")}b===(""+t.data).substr(0,y)&&(!1===d?a():r()?n.init():te('Ignored message of type "'+i()+'". Received before initialization.'))})),$(window,"readystatechange",Ce),Ce()}function K(){}function $(e,t,n,i){e.addEventListener(t,n,!!q&&(i||{}))}function Z(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ee(e){return b+"["+w+"] "+e}function te(e){_&&"object"==typeof window.console&&console.log(ee(e))}function ne(e){"object"==typeof window.console&&console.warn(ee(e))}function ie(){var e;!function(){function e(e){return"true"===e}var t=p.substr(y).split(":");w=t[0],o=void 0!==t[1]?Number(t[1]):o,l=void 0!==t[2]?e(t[2]):l,_=void 0!==t[3]?e(t[3]):_,g=void 0!==t[4]?Number(t[4]):g,n=void 0!==t[6]?e(t[6]):n,r=t[7],f=void 0!==t[8]?t[8]:f,i=t[9],s=t[10],T=void 0!==t[11]?Number(t[11]):T,m.enable=void 0!==t[12]&&e(t[12]),k=void 0!==t[13]?t[13]:k,M=void 0!==t[14]?t[14]:M}(),te("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(te("Setup custom "+t+"CalcMethod"),z[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(!function(){var e=window.iFrameResizer;te("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(oe,e),O="onMessage"in e?e.onMessage:O,P="onReady"in e?e.onReady:P,S="targetOrigin"in e?e.targetOrigin:S,f="heightCalculationMethod"in e?e.heightCalculationMethod:f,M="widthCalculationMethod"in e?e.widthCalculationMethod:M}(),f=e(f,"height"),M=e(M,"width"));te("TargetOrigin for parent set to: "+S)}(),function(){void 0===r&&(r=o+"px");re("margin",function(e,t){-1!==t.indexOf("-")&&(ne("Negative CSS value ignored for "+e),t="");return t}("margin",r))}(),re("background",i),re("padding",s),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),ce(),de(),document.documentElement.style.height="",document.body.style.height="",te('HTML & body height set to "auto"'),te("Enable public methods"),A.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,ue()):!1===e&&!0===n&&(n=!1,se("remove"),null!==a&&a.disconnect(),clearInterval(v)),ke(0,0,"autoResize",JSON.stringify(n)),n},close:function(){ke(0,0,"close")},getId:function(){return w},getPageInfo:function(e){"function"==typeof e?(L=e,ke(0,0,"pageInfo")):(L=function(){},ke(0,0,"pageInfoStop"))},moveToAnchor:function(e){m.findTarget(e)},reset:function(){xe("parentIFrame.reset")},scrollTo:function(e,t){ke(t,e,"scrollTo")},scrollToOffset:function(e,t){ke(t,e,"scrollToOffset")},sendMessage:function(e,t){ke(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){f=e,ce()},setWidthCalculationMethod:function(e){M=e,de()},setTargetOrigin:function(e){te("Set targetOrigin: "+e),S=e},size:function(e,t){be("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},ue(),m=function(){function e(e){var t=e.getBoundingClientRect(),n={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function t(t){var n=t.split("#")[1]||t,i=decodeURIComponent(n),o=document.getElementById(i)||document.getElementsByName(i)[0];void 0!==o?function(t){var i=e(t);te("Moving to in page link (#"+n+") at x: "+i.x+" y: "+i.y),ke(i.y,i.x,"scrollToOffset")}(o):(te("In page link (#"+n+") not found in iFrame, so sending to parent"),ke(0,0,"inPageLink","#"+n))}function n(){""!==location.hash&&"#"!==location.hash&&t(location.href)}m.enable?Array.prototype.forEach&&document.querySelectorAll?(te("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(e){"#"!==e.getAttribute("href")&&$(e,"click",(function(e){e.preventDefault(),t(this.getAttribute("href"))}))})),$(window,"hashchange",n),setTimeout(n,128)):ne("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):te("In page linking not enabled");return{findTarget:t}}(),be("init","Init message from host page"),P()}function oe(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ne("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function re(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style[e]=t,te("Body "+e+' set to "'+t+'"'))}function ae(e){var t={add:function(t){function n(){be(e.eventName,e.eventType)}N[t]=n,$(window,t,n,{passive:!0})},remove:function(e){var t,n,i,o=N[e];delete N[e],t=window,n=e,i=o,t.removeEventListener(n,i,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),te(Z(e.method)+" event listener: "+e.eventType)}function se(e){ae({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ae({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ae({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ae({method:e,eventType:"Input",eventName:"input"}),ae({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ae({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ae({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ae({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ae({method:e,eventType:"Touch Start",eventName:"touchstart"}),ae({method:e,eventType:"Touch End",eventName:"touchend"}),ae({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ae({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ae({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ae({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===k&&ae({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,i){return t!==e&&(e in n||(ne(e+" is not a valid option for "+i+"CalculationMethod."),e=t),te(i+' calculation method set to "'+e+'"')),e}function ce(){f=le(f,"bodyOffset",Y,"height")}function de(){M=le(M,"scroll",J,"width")}function ue(){var e;!0===n?(se("add"),e=0>g,window.MutationObserver||window.WebKitMutationObserver?e?fe():a=function(){function e(e){function t(e){!1===e.complete&&(te("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",o,!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){te("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",o,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,i){t(e.target),be(n,i+": "+e.target.src,void 0,void 0)}function i(e){n(e,"imageLoad","Image loaded")}function o(e){n(e,"imageLoadFailed","Image load failed")}function r(t){be("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],s=window.MutationObserver||window.WebKitMutationObserver,l=function(){var e=document.querySelector("body");return l=new s(r),te("Create body MutationObserver"),l.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),l}();return{disconnect:function(){"disconnect"in l&&(te("Disconnect body MutationObserver"),l.disconnect(),a.forEach(t))}}}():(te("MutationObserver not supported in this browser!"),fe())):te("Auto Resize disabled")}function fe(){0!==g&&(te("setInterval: "+g+"ms"),v=setInterval((function(){be("interval","setInterval: "+g)}),Math.abs(g)))}function he(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function pe(e,t){for(var n=t.length,i=0,o=0,r=Z(e),a=U(),s=0;s<n;s++)(i=t[s].getBoundingClientRect()[e]+he("margin"+r,t[s]))>o&&(o=i);return a=U()-a,te("Parsed "+n+" HTML elements"),te("Element position calculated in "+a+"ms"),function(e){e>I/2&&te("Event throttle increased to "+(I=2*e)+"ms")}(a),o}function me(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ge(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ne("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),pe(e,n)}function ve(){return document.querySelectorAll("body *")}function _e(e,t,n,i){var o,r;!function(){function e(e,t){return!(Math.abs(e-t)<=T)}return o=void 0!==n?n:Y[f](),r=void 0!==i?i:J[M](),e(u,o)||l&&e(G,r)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(f in x||l&&M in x)?xe(t):e in{interval:1}||te("No change in size detected"):(ye(),ke(u=o,G=r,e))}function be(e,t,n,i){j&&e in c?te("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||te("Trigger event: "+t),"init"===e?_e(e,t,n,i):X(e,t,n,i))}function ye(){j||(j=!0,te("Trigger event lock on")),clearTimeout(E),E=setTimeout((function(){j=!1,te("Trigger event lock off"),te("--")}),128)}function we(e){u=Y[f](),G=J[M](),ke(u,G,e)}function xe(e){var t=f;f="bodyOffset",te("Reset trigger event: "+e),ye(),we("reset"),f=t}function ke(e,t,n,i,o){var r;void 0===o?o=S:te("Message targetOrigin: "+o),te("Sending message to host page ("+(r=w+":"+e+":"+t+":"+n+(void 0!==i?":"+i:""))+")"),C.postMessage(b+r,o)}function Ce(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},323:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var i=n.next("span.give-hint-tooltip-js");if(!i.length){var o=t.label.length?t.label:n.data("hint-aria-label");if(!o.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+o+'"></span>'),(i=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?i.addClass("hint--always"):"hide"===e&&i.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),i=[],o=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(i=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(i=i.join(" "),t.removeClass(i),t.append('<i class="'+i+'"></i>'))),t.addClass("hint--top"),15<o?t.addClass("hint--large"):7<o&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,i){n(i=i instanceof jQuery?i:e(i))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},324:function(e,t,n){e.exports=n(325)},325:function(e,t,n){var i=n(326),o=n(327),r=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function s(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(r)?e:i(e)}function l(e){var t=o.stringify(function(e){var t={},n={protocol:1,format:1};for(var i in e)n[i]||(t[i]=e[i]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var i="//www.gravatar.com/avatar/";t&&t.cdn?(i=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(i=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var o=l(t);return i+s(e)+o},profile_url:function(e,t,n){var i=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)o=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var o=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var r=l(t);return o+s(e)+"."+i+r}}},326:function(e,t,n){var i;!function(o){"use strict";function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(l=o)|s>>>32-l,n);var s,l}function s(e,t,n,i,o,r,s){return a(t&n|~t&i,e,t,o,r,s)}function l(e,t,n,i,o,r,s){return a(t&i|n&~i,e,t,o,r,s)}function c(e,t,n,i,o,r,s){return a(t^n^i,e,t,o,r,s)}function d(e,t,n,i,o,r,s){return a(n^(t|~i),e,t,o,r,s)}function u(e,t){var n,i,o,a,u;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,h=-271733879,p=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)i=f,o=h,a=p,u=m,f=s(f,h,p,m,e[n],7,-680876936),m=s(m,f,h,p,e[n+1],12,-389564586),p=s(p,m,f,h,e[n+2],17,606105819),h=s(h,p,m,f,e[n+3],22,-1044525330),f=s(f,h,p,m,e[n+4],7,-176418897),m=s(m,f,h,p,e[n+5],12,1200080426),p=s(p,m,f,h,e[n+6],17,-1473231341),h=s(h,p,m,f,e[n+7],22,-45705983),f=s(f,h,p,m,e[n+8],7,1770035416),m=s(m,f,h,p,e[n+9],12,-1958414417),p=s(p,m,f,h,e[n+10],17,-42063),h=s(h,p,m,f,e[n+11],22,-1990404162),f=s(f,h,p,m,e[n+12],7,1804603682),m=s(m,f,h,p,e[n+13],12,-40341101),p=s(p,m,f,h,e[n+14],17,-1502002290),f=l(f,h=s(h,p,m,f,e[n+15],22,1236535329),p,m,e[n+1],5,-165796510),m=l(m,f,h,p,e[n+6],9,-1069501632),p=l(p,m,f,h,e[n+11],14,643717713),h=l(h,p,m,f,e[n],20,-373897302),f=l(f,h,p,m,e[n+5],5,-701558691),m=l(m,f,h,p,e[n+10],9,38016083),p=l(p,m,f,h,e[n+15],14,-660478335),h=l(h,p,m,f,e[n+4],20,-405537848),f=l(f,h,p,m,e[n+9],5,568446438),m=l(m,f,h,p,e[n+14],9,-1019803690),p=l(p,m,f,h,e[n+3],14,-187363961),h=l(h,p,m,f,e[n+8],20,1163531501),f=l(f,h,p,m,e[n+13],5,-1444681467),m=l(m,f,h,p,e[n+2],9,-51403784),p=l(p,m,f,h,e[n+7],14,1735328473),f=c(f,h=l(h,p,m,f,e[n+12],20,-1926607734),p,m,e[n+5],4,-378558),m=c(m,f,h,p,e[n+8],11,-2022574463),p=c(p,m,f,h,e[n+11],16,1839030562),h=c(h,p,m,f,e[n+14],23,-35309556),f=c(f,h,p,m,e[n+1],4,-1530992060),m=c(m,f,h,p,e[n+4],11,1272893353),p=c(p,m,f,h,e[n+7],16,-155497632),h=c(h,p,m,f,e[n+10],23,-1094730640),f=c(f,h,p,m,e[n+13],4,681279174),m=c(m,f,h,p,e[n],11,-358537222),p=c(p,m,f,h,e[n+3],16,-722521979),h=c(h,p,m,f,e[n+6],23,76029189),f=c(f,h,p,m,e[n+9],4,-640364487),m=c(m,f,h,p,e[n+12],11,-421815835),p=c(p,m,f,h,e[n+15],16,530742520),f=d(f,h=c(h,p,m,f,e[n+2],23,-995338651),p,m,e[n],6,-198630844),m=d(m,f,h,p,e[n+7],10,1126891415),p=d(p,m,f,h,e[n+14],15,-1416354905),h=d(h,p,m,f,e[n+5],21,-57434055),f=d(f,h,p,m,e[n+12],6,1700485571),m=d(m,f,h,p,e[n+3],10,-1894986606),p=d(p,m,f,h,e[n+10],15,-1051523),h=d(h,p,m,f,e[n+1],21,-2054922799),f=d(f,h,p,m,e[n+8],6,1873313359),m=d(m,f,h,p,e[n+15],10,-30611744),p=d(p,m,f,h,e[n+6],15,-1560198380),h=d(h,p,m,f,e[n+13],21,1309151649),f=d(f,h,p,m,e[n+4],6,-145523070),m=d(m,f,h,p,e[n+11],10,-1120210379),p=d(p,m,f,h,e[n+2],15,718787259),h=d(h,p,m,f,e[n+9],21,-343485551),f=r(f,i),h=r(h,o),p=r(p,a),m=r(m,u);return[f,h,p,m]}function f(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function h(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function p(e){var t,n,i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return i}function m(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(u(h(e),8*e.length))}(m(e))}function v(e,t){return function(e,t){var n,i,o=h(e),r=[],a=[];for(r[15]=a[15]=void 0,o.length>16&&(o=u(o,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^o[n],a[n]=1549556828^o[n];return i=u(r.concat(h(t)),512+8*t.length),f(u(a.concat(i),640))}(m(e),m(t))}function _(e,t,n){return t?n?v(t,e):p(v(t,e)):n?g(e):p(g(e))}void 0===(i=function(){return _}.call(t,n,t,e))||(e.exports=i)}()},327:function(e,t,n){"use strict";t.decode=t.parse=n(328),t.encode=t.stringify=n(329)},328:function(e,t,n){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;r&&"number"==typeof r.maxKeys&&(l=r.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var d=0;d<c;++d){var u,f,h,p,m=e[d].replace(s,"%20"),g=m.indexOf(n);g>=0?(u=m.substr(0,g),f=m.substr(g+1)):(u=m,f=""),h=decodeURIComponent(u),p=decodeURIComponent(f),i(a,h)?o(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},329:function(e,t,n){"use strict";var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),(function(a){var s=encodeURIComponent(i(a))+n;return o(e[a])?r(e[a],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[a]))})).join(t):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},36:function(e,t){function n(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var a=e.apply(t,i);function s(e){n(a,o,r,s,l,"next",e)}function l(e){n(a,o,r,s,l,"throw",e)}s(void 0)}))}}},38:function(e,t,n){"use strict";var i,o={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,i,o;if(n=i=o="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},i="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(i,"</span></button>"):"","</p</div>")}}},r=n(21),a=n.n(r),s=n(36),l={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},c={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){l.fn.showOverlay(e)},hideProcessingState:function(){l.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,i){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==i&&!i.length)return!1;switch(e){case"attr":n.attr(i,t);break;default:n.data(i,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);var o=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),o)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===o&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return o=t.price_id,!1})),-1===o&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),o.length&&o.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),i=e.data("price-id");if(void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),o=n.hasClass("give-display-modal"),r=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||r?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(i=n.n(s)()(a.a.mark((function e(t){var n,i,o,r=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=r.length>1&&void 0!==r[1]?r[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return i=e.sent,e.next=9,i.text();case 9:return o=e.sent,e.abrupt("return",o.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),o=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),o.payment("formatCardExpiry"))}))}}}},d={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},u={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,i=n.innerHeight/2-126,o=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(i,",left=").concat(o))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(i))}}},f={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)f[e[t]].init&&f[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:f.form.fn.getInfo("decimal_separator",n),thousand:f.form.fn.getInfo("thousands_separator",n),precision:f.form.fn.getInfo("number_decimals",n),currency:f.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,r=accounting.formatNumber(e,{precision:i.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(r=(r=accounting.unformat(r,".").toString()).toString()).indexOf(".")>0&&(a=r.substring(r.indexOf("."),r.length)),s=(r=Math.floor(r).toString()).substring(r.length-3),""!==(l=r.substring(0,r.length-3))&&(s=i.thousand+s),o=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,o)+(c.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?f.cache["form_"+f.form.fn.getInfo("form-id",n)][e]=t:f.cache[e]=t},getCache:function(e,t){var n,i=f.cache["form_"+f.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==i?i[e]:"":f.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(i=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},i)).loadingAnimation?'<span class="is-active spinner"></span>':"",r=null!==i.loadingText?i.loadingText:f.fn.getGlobalVar("loader_translation").updating;return!1===i.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=o.length?"give-has-spinner":"",t=(t+=r.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((r+o).trim(),"</div></div>"),null===i.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var i=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),r=o.length;r-- >0;)-1!==o[r].lastIndexOf(i,0)&&o.splice(r,1);return n[0]+(o.length>0?"?"+o.join("&"):"")}return e}},cache:{}};f.notice=o,f.form=c,f.donor=d,f.util=l,f.share=u;t.a=f},42:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},487:function(e,t,n){
16
  /*!
17
  * clipboard.js v2.0.6
18
  * https://clipboardjs.com/
assets/dist/js/give-stripe.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=498)}({10:function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},498:function(e,t,r){e.exports=r(887)},8:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},887:function(e,t,r){"use strict";r.r(t);var n=r(8),i=r.n(n),a=r(10),l=r.n(a),o=function(){function e(t){i()(this,e),t&&(this.formElement=t,this.publishableKey=t.getAttribute("data-publishable-key"),this.accountId=t.getAttribute("data-account")?t.getAttribute("data-account"):"",this.idPrefix=t.getAttribute("data-id")?t.getAttribute("data-id"):"",this.locale=give_stripe_vars.preferred_locale,this.fieldsFormat=give_stripe_vars.cc_fields_format,this.isMounted=!1,this.fontStyles=[],0!==Object.keys(give_stripe_vars.element_font_styles).length&&this.fontStyles.push(give_stripe_vars.element_font_styles))}return l()(e,[{key:"setupStripeElement",value:function(){var e={};return 0!==this.accountId.trim().length&&(e={stripeAccount:this.accountId}),Stripe(this.publishableKey,e)}},{key:"getElements",value:function(e){var t={locale:this.locale};return this.fontStyles.length>0&&(t={fonts:this.fontStyles,locale:this.locale}),e.elements(t)}},{key:"createElement",value:function(e,t){var r=[],n=this.getElementsToMountOn(),i={style:this.getElementStyles(),classes:this.getElementClasses()};return n.forEach((function(t,n){"card"===t[0]?i.hidePostalCode=!!give_stripe_vars.checkout_address:"cardNumber"===t[0]?i.placeholder=give_stripe_vars.card_number_placeholder_text:"cardCvc"===t[0]?i.placeholder=give_stripe_vars.card_cvc_placeholder_text:delete i.placeholder,r.push(e.create(t[0],i))})),"cardNumber"===n[0][0]&&r[0].addEventListener("change",(function(e){var r="diners"===e.brand?"dinersclub":e.brand;t.querySelector(".card-type").className="card-type "+r})),r}},{key:"destroyElement",value:function(e){e.forEach((function(e,t){e.destroy()}))}},{key:"getElementStyles",value:function(){return{base:give_stripe_vars.element_base_styles,complete:give_stripe_vars.element_complete_styles,empty:give_stripe_vars.element_empty_styles,invalid:give_stripe_vars.element_invalid_styles}}},{key:"getElementClasses",value:function(){return{focus:"focus",empty:"empty",invalid:"invalid"}}},{key:"getElementsToMountOn",value:function(){var e={cardNumber:"#give-card-number-field-".concat(this.idPrefix),cardCvc:"#give-card-cvc-field-".concat(this.idPrefix),cardExpiry:"#give-card-expiration-field-".concat(this.idPrefix)};return"single"===this.fieldsFormat&&(e={card:"#give-stripe-single-cc-fields-".concat(this.idPrefix)}),Object.entries(e)}},{key:"mountElement",value:function(e){var t=this.getElementsToMountOn();Array.from(e).forEach((function(e,r){e.mount(t[r][1])}))}},{key:"unMountElement",value:function(e){var t=this.getElementsToMountOn();Array.from(e).forEach((function(e,r){e.unmount(t[r][1])}))}},{key:"createPaymentMethod",value:function(e,t,r){var n={};if(n.name=e.querySelector('input[name="card_name"]').value,!give_stripe_vars.stripe_card_update){var i=e.querySelector('input[name="give_first"]').value,a=e.querySelector('input[name="give_last"]').value,l=e.querySelector('input[name="give_email"]').value;n.name="".concat(i," ").concat(a),n.email=l,e.querySelector("[id^=give-purchase-button]").setAttribute("disabled","disabled")}if(give_stripe_vars.checkout_address&&!give_stripe_vars.stripe_card_update){var o=e.querySelector(".card-address").value,u=e.querySelector(".card-address-2").value,c=e.querySelector(".card-city").value,s=e.querySelector(".card_state").value,d=e.querySelector(".card-zip").value,v=e.querySelector(".billing-country").value;n.address={line1:o||"",line2:u||"",city:c||"",state:s||"",postal_code:d||"",country:v||""}}t.createPaymentMethod({type:"card",card:r[0],billing_details:n}).then((function(t){if(t.error){var r=jQuery(e),n='<div class="give_errors"><p class="give_error">'.concat(t.error.message,"</p></div>"),i=e.getAttribute("data-id");return Give.form.fn.resetDonationButton(r),void(e.querySelector("#give-stripe-payment-errors-".concat(i)).innerHTML=n)}e.querySelector('input[name="give_stripe_payment_method"]').value=t.paymentMethod.id,e.submit()}))}},{key:"triggerStripeModal",value:function(e,t,r,n){var i=e.querySelector('input[name="give-form-id-prefix"]'),a=e.querySelector("#give-stripe-checkout-modal-donate-button-".concat(i.value)),l=e.querySelector('input[name="card_name"]'),o={};n.forEach((function(e){o.cardName=!1,e.addEventListener("ready",(function(e){o[e.elementType]=!1,o.cardName="card"===e.elementType})),e.addEventListener("change",(function(e){o[e.elementType]=e.complete,Object.values(o).every((function(e){return!0===e}))?a.removeAttribute("disabled"):a.setAttribute("disabled","disabled")}))})),null!==l&&l.addEventListener("keyup",(function(e){o.cardName=""!==e.target.value,Object.values(o).every((function(e){return!0===e}))?a.removeAttribute("disabled"):a.setAttribute("disabled","disabled")})),null!==a&&a.addEventListener("click",(function(i){var l=i.target,o=l.nextElementSibling;a.getAttribute("data-is_legacy_form")?(l.value=give_global_vars.purchase_loading,o.style.display="inline-block"):(l.value="",o.classList.add("sequoia-loader"),o.classList.add("spinning"),o.classList.remove("give-loading-animation")),t.createPaymentMethod(e,r,n),i.preventDefault()}))}}]),e}();document.addEventListener("DOMContentLoaded",(function(e){Array.from(document.querySelectorAll(".give-form-wrap")).forEach((function(e){var t=e.querySelector(".give-form");if(null!==t&&t.getAttribute("data-publishable-key")){var r=t.querySelector('input[name="give-gateway"]'),n=give_stripe_vars.hasOwnProperty("stripe_card_update")&&parseInt(give_stripe_vars.stripe_card_update),i=t.querySelector('input[name="give-form-id-prefix"]'),a=new o(t),l=a.setupStripeElement(),u=a.getElements(l),c=Give.form.fn.getInfo("stripe-checkout-type"),s=r?r.value:"",d=c&&"modal"===c.value,v=r&&"stripe_checkout"===s&&d,p=a.createElement(u,t);(n||"stripe"===s||v)&&a.mountElement(p),document.addEventListener("give_gateway_loaded",(function(e){var r=e.detail.selectedGateway,n=a.getElements(l);p=a.createElement(n,t),"stripe"===r||v?a.mountElement(p):a.unMountElement(p),v&&a.triggerStripeModal(t,a,l,p)})),v&&a.triggerStripeModal(t,a,l,p),t.onsubmit=function(e){if((n||"stripe"===s)&&(a.createPaymentMethod(t,l,p),e.preventDefault()),v){var r=t.querySelector(".give-stripe-checkout-modal"),o=r.querySelector(".give-stripe-checkout-donation-amount"),u=r.querySelector(".give-stripe-checkout-donor-email"),c=t.querySelector(".give-final-total-amount").textContent,d=t.querySelector('input[name="give_email"]').value,m=t.querySelector('input[name="give_validate_stripe_payment_fields"]');r.classList.add("give-stripe-checkout-show-modal"),null!==o&&(o.innerHTML=c),null!==u&&(u.innerHTML=d),m.setAttribute("value","1");var f=t.querySelector(".give-stripe-checkout-modal-close");null!==f&&f.addEventListener("click",(function(e){t.querySelector("#give-stripe-checkout-modal-".concat(i.value)).classList.remove("give-stripe-checkout-show-modal");var r=t.querySelector(".give-submit");null!==r&&(r.value=r.getAttribute("data-before-validation-label"),r.nextElementSibling.style.display="none",r.removeAttribute("disabled"),t.querySelector('input[name="give_validate_stripe_payment_fields"]').setAttribute("value","0")),e.preventDefault()})),e.preventDefault()}}}}))}))}});
1
+ !function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=498)}({10:function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e}},498:function(e,t,r){e.exports=r(887)},8:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},887:function(e,t,r){"use strict";r.r(t);var a=r(8),n=r.n(a),i=r(10),l=r.n(i),o=function(){function e(t){n()(this,e),t&&(this.formElement=t,this.publishableKey=t.getAttribute("data-publishable-key"),this.accountId=t.getAttribute("data-account")?t.getAttribute("data-account"):"",this.idPrefix=t.getAttribute("data-id")?t.getAttribute("data-id"):"",this.locale=give_stripe_vars.preferred_locale,this.fieldsFormat=give_stripe_vars.cc_fields_format,this.isMounted=!1,this.fontStyles=[],0!==Object.keys(give_stripe_vars.element_font_styles).length&&this.fontStyles.push(give_stripe_vars.element_font_styles))}return l()(e,[{key:"setupStripeElement",value:function(){var e={};return 0!==this.accountId.trim().length&&(e={stripeAccount:this.accountId}),Stripe(this.publishableKey,e)}},{key:"getElements",value:function(e){var t={locale:this.locale};return this.fontStyles.length>0&&(t={fonts:this.fontStyles,locale:this.locale}),e.elements(t)}},{key:"createElement",value:function(e,t){var r=[],a=this.getElementsToMountOn(),n={style:this.getElementStyles(),classes:this.getElementClasses()};return a.forEach((function(t,a){"card"===t[0]?n.hidePostalCode=!!give_stripe_vars.checkout_address:"cardNumber"===t[0]?n.placeholder=give_stripe_vars.card_number_placeholder_text:"cardCvc"===t[0]?n.placeholder=give_stripe_vars.card_cvc_placeholder_text:delete n.placeholder,r.push(e.create(t[0],n))})),"cardNumber"===a[0][0]&&r[0].addEventListener("change",(function(e){var r="diners"===e.brand?"dinersclub":e.brand;t.querySelector(".card-type").className="card-type "+r})),r}},{key:"destroyElement",value:function(e){e.forEach((function(e,t){e.destroy()}))}},{key:"getElementStyles",value:function(){return{base:give_stripe_vars.element_base_styles,complete:give_stripe_vars.element_complete_styles,empty:give_stripe_vars.element_empty_styles,invalid:give_stripe_vars.element_invalid_styles}}},{key:"getElementClasses",value:function(){return{focus:"focus",empty:"empty",invalid:"invalid"}}},{key:"getElementsToMountOn",value:function(){var e={cardNumber:"#give-card-number-field-".concat(this.idPrefix),cardCvc:"#give-card-cvc-field-".concat(this.idPrefix),cardExpiry:"#give-card-expiration-field-".concat(this.idPrefix)};return"single"===this.fieldsFormat&&(e={card:"#give-stripe-single-cc-fields-".concat(this.idPrefix)}),Object.entries(e)}},{key:"mountElement",value:function(e){var t=this.getElementsToMountOn();Array.from(e).forEach((function(e,r){e.mount(t[r][1])}))}},{key:"unMountElement",value:function(e){var t=this.getElementsToMountOn();Array.from(e).forEach((function(e,r){e.unmount(t[r][1])}))}},{key:"createPaymentMethod",value:function(e,t,r){var a={};if(a.name=e.querySelector('input[name="card_name"]').value,!give_stripe_vars.stripe_card_update){var n=e.querySelector('input[name="give_first"]').value,i=e.querySelector('input[name="give_last"]').value,l=e.querySelector('input[name="give_email"]').value;a.name="".concat(n," ").concat(i),a.email=l,e.querySelector("[id^=give-purchase-button]").setAttribute("disabled","disabled")}if(give_stripe_vars.checkout_address&&!give_stripe_vars.stripe_card_update){var o=e.querySelector(".card-address").value,u=e.querySelector(".card-address-2").value,c=e.querySelector(".card-city").value,s=e.querySelector(".card_state").value,d=e.querySelector(".card-zip").value,v=e.querySelector(".billing-country").value;a.address={line1:o||"",line2:u||"",city:c||"",state:s||"",postal_code:d||"",country:v||""}}t.createPaymentMethod({type:"card",card:r[0],billing_details:a}).then((function(t){if(t.error){var r=jQuery(e),a='<div class="give_errors"><p class="give_error">'.concat(t.error.message,"</p></div>"),n=e.getAttribute("data-id");return Give.form.fn.resetDonationButton(r),void(e.querySelector("#give-stripe-payment-errors-".concat(n)).innerHTML=a)}e.querySelector('input[name="give_stripe_payment_method"]').value=t.paymentMethod.id,e.submit()}))}},{key:"triggerStripeModal",value:function(e,t,r,a){var n=e.querySelector('input[name="give-form-id-prefix"]'),i=e.querySelector("#give-stripe-checkout-modal-donate-button-".concat(n.value)),l=e.querySelector('input[name="card_name"]'),o={};a.forEach((function(e){o.cardName=!1,e.addEventListener("ready",(function(e){o[e.elementType]=!1,o.cardName="card"===e.elementType})),e.addEventListener("change",(function(e){o[e.elementType]=e.complete,Object.values(o).every((function(e){return!0===e}))?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled")}))})),null!==l&&l.addEventListener("keyup",(function(e){o.cardName=""!==e.target.value,Object.values(o).every((function(e){return!0===e}))?i.removeAttribute("disabled"):i.setAttribute("disabled","disabled")})),null!==i&&i.addEventListener("click",(function(n){var l=n.target,o=l.nextElementSibling;i.getAttribute("data-is_legacy_form")?(l.value=give_global_vars.purchase_loading,o.style.display="inline-block"):(l.value="",o.classList.add("sequoia-loader"),o.classList.add("spinning"),o.classList.remove("give-loading-animation")),t.createPaymentMethod(e,r,a),n.preventDefault()}))}}]),e}();document.addEventListener("DOMContentLoaded",(function(e){Array.from(document.querySelectorAll(".give-form-wrap")).forEach((function(e){var t=e.querySelector(".give-form");if(null!==t&&t.getAttribute("data-publishable-key")){var r=give_stripe_vars.hasOwnProperty("stripe_card_update")&&parseInt(give_stripe_vars.stripe_card_update),a=t.querySelector('input[name="give-form-id-prefix"]'),n=new o(t),i=n.setupStripeElement(),l=n.getElements(i),u=n.createElement(l,t),c=Give.form.fn.getInfo("stripe-checkout-type",t);d(!1),document.addEventListener("give_gateway_loaded",d),t.onsubmit=function(e){var l=s(),o=l.selectedGatewayId,c=l.isStripeModalCheckoutGateway;if((r||"stripe"===o)&&(n.createPaymentMethod(t,i,u),e.preventDefault()),c){var d=t.querySelector(".give-stripe-checkout-modal"),v=d.querySelector(".give-stripe-checkout-donation-amount"),p=d.querySelector(".give-stripe-checkout-donor-email"),f=t.querySelector(".give-final-total-amount").textContent,m=t.querySelector('input[name="give_email"]').value,y=t.querySelector('input[name="give_validate_stripe_payment_fields"]');d.classList.add("give-stripe-checkout-show-modal"),null!==v&&(v.innerHTML=f),null!==p&&(p.innerHTML=m),y.setAttribute("value","1");var g=t.querySelector(".give-stripe-checkout-modal-close");null!==g&&g.addEventListener("click",(function(e){t.querySelector("#give-stripe-checkout-modal-".concat(a.value)).classList.remove("give-stripe-checkout-show-modal");var r=t.querySelector(".give-submit");null!==r&&(r.value=r.getAttribute("data-before-validation-label"),r.nextElementSibling.style.display="none",r.removeAttribute("disabled"),t.querySelector('input[name="give_validate_stripe_payment_fields"]').setAttribute("value","0")),e.preventDefault()})),e.preventDefault()}}}function s(){var e=t.querySelector('input[name="give-gateway"]'),r=e?e.value:"",a="modal"===c;return{formGateway:e,selectedGatewayId:r,isCheckoutTypeModal:a,isStripeModalCheckoutGateway:e&&"stripe_checkout"===r&&a}}function d(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=s(),a=r.selectedGatewayId,l=r.isStripeModalCheckoutGateway;"stripe"===a||l?n.mountElement(u):e&&n.unMountElement(u),l&&n.triggerStripeModal(t,n,i,u)}}))}))}});
assets/dist/js/give.js CHANGED
@@ -12,7 +12,7 @@
12
  * Full details and documentation:
13
  * http://openexchangerates.github.io/accounting.js/
14
  */
15
- !function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,u=Object.prototype.toString;function c(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function s(e){return a?a(e):"[object Array]"===u.call(e)}function l(e){return e&&"[object Object]"===u.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function p(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function m(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),c(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:c(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(s(e))return f(e,(function(e){return v(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=p(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(s(e))return f(e,(function(e){return h(e,t,n,r)}));e=v(e);var o=d(l(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=p(o.precision),u=e<0?"-":"",c=parseInt(g(Math.abs(e||0),a),10)+"",m=c.length>3?c.length%3:0;return u+(m?c.substr(0,m)+o.thousand:"")+c.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(s(e))return f(e,(function(e){return y(e,t,n,r,o,a)}));e=v(e);var u=d(l(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),c=m(u.format);return(e>0?c.pos:e<0?c.neg:c.zero).replace("%s",u.symbol).replace("%v",h(Math.abs(e),p(u.precision),u.thousand,u.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var u=d(l(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=m(u.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,w=f(e,(function(e,t){if(s(e))return i.formatColumn(e,u);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",u.symbol).replace("%v",h(Math.abs(e),p(u.precision),u.thousand,u.decimal));return n.length>b&&(b=n.length),n}));return f(w,(function(e,t){return c(e)&&e.length<b?y?e.replace(u.symbol,u.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=i),t.accounting=i}()},320:function(e,t,n){var r=n(321);t.iframeResize=r,t.iframeResizer=r,t.iframeResizerContentWindow=n(322)},321:function(e,t,n){var r,i,o;!function(n){if("undefined"!=typeof window){var a,u=0,c=!1,s=!1,l="message".length,d="[iFrameSizer]",f=d.length,p=null,m=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,y={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(){S("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){q(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),i=[],void 0===(o="function"==typeof(r=H)?r.apply(t,i):r)||(e.exports=o),window.iFrameResize=window.iFrameResize||H()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function _(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function C(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function k(e){return g[e]?g[e].log:c}function I(e,t){j("log",e,t,k(e))}function E(e,t){j("info",e,t,k(e))}function S(e,t){j("warn",e,t,!0)}function j(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](C(t),n)}function O(e){function t(){i("Height"),i("Width"),F((function(){z(O),N(M),m("onResized",O)}),O,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function r(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function i(e){var t=Number(g[M]["max"+e]),n=Number(g[M]["min"+e]),r=e.toLowerCase(),i=Number(O[r]);I(M,"Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,I(M,"Set "+r+" to min value")),i>t&&(i=t,I(M,"Set "+r+" to max value")),O[r]=""+i}function o(e){return j.substr(j.indexOf(":")+l+e)}function a(e,t){var n,r,i;n=function(){var n,r;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=O.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},r=32,b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),r))}function u(e){var t=e.getBoundingClientRect();return L(M),{x:Math.floor(Number(t.left)+Number(p.x)),y:Math.floor(Number(t.top)+Number(p.y))}}function c(e){var t=e?u(O.iframe):{x:0,y:0},n={x:Number(O.width)+t.x,y:Number(O.height)+t.y};I(M,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):S(M,"Unable to scroll to requested position, window.parentIFrame not found"):(p=n,s(),I(M,"--"))}function s(){!1!==m("onScroll",p)?N(M):G()}function m(e,t){return T(M,e,t)}var v,h,y,w,C,k,j=e.data,O={},M=null;"[iFrameResizerChild]Ready"===j?function(){for(var e in g)B("iFrame requested init",R(e),g[e].iframe,e)}():d===(""+j).substr(0,f)&&j.substr(f).split(":")[0]in g?(y=j.substr(f).split(":"),w=y[1]?parseInt(y[1],10):0,C=g[y[0]]&&g[y[0]].iframe,k=getComputedStyle(C),O={iframe:C,id:y[0],height:w+n(k)+r(k),width:y[2],type:y[3]},M=O.id,g[M]&&(g[M].loaded=!0),(h=O.type in{true:1,false:1,undefined:1})&&I(M,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return g[e]||(t=!1,S(O.type+" No settings for "+e+". Message was: "+j)),t}(M)&&(I(M,"Received: "+j),v=!0,null===O.iframe&&(S(M,"IFrame ("+O.id+") not found"),v=!1),v&&function(){var t,n=e.origin,r=g[M]&&g[M].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(M,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=g[M]&&g[M].remoteHost,I(M,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+O.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(g[M]&&g[M].firstRun&&g[M]&&(g[M].firstRun=!1),O.type){case"close":A(O.iframe);break;case"message":e=o(6),I(M,"onMessage passed: {iframe: "+O.iframe.id+", message: "+e+"}"),m("onMessage",{iframe:O.iframe,message:JSON.parse(e)}),I(M,"--");break;case"autoResize":g[M].autoResize=JSON.parse(o(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":a(g[M]&&g[M].iframe,M),function(){function e(e,r){function i(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){I(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",x)}var n=M;e("Add ",_),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[M]&&g[M].stopPageInfo&&(g[M].stopPageInfo(),delete g[M].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",r=decodeURIComponent(n),i=document.getElementById(r)||document.getElementsByName(r)[0];i?(t=u(i),I(M,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),p={x:t.x,y:t.y},s(),I(M,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):I(M,"In page link #"+n+" not found and window.parentIFrame not found"):I(M,"In page link #"+n+" not found")}(o(9));break;case"reset":P(O);break;case"init":t(),m("onInit",O.iframe);break;default:t()}var e}())):E(M,"Ignored: "+j)}function T(e,t,n){var r=null,i=null;if(g[e]){if("function"!=typeof(r=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=r(n)}return i}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==T(t,"onClose",t)){I(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){S(e)}T(t,"onClosed",t),I(t,"--"),M(e)}else I(t,"Close iframe cancelled by onClose event")}function L(e){null===p&&I(e,"Get page position: "+(p={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+p.y)}function N(e){null!==p&&(window.scrollTo(p.x,p.y),I(e,"Set page position: "+p.x+","+p.y),G())}function G(){p=null}function P(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),L(e.id),F((function(){z(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function z(e){function t(t){s||"0"!==e[t]||(s=!0,I(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(g).forEach((function(e){!function(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}g[e]&&null!==g[e].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",g[e].iframe,e)}(e)}))}function t(t){I("window","Mutation observed: "+t[0].target+" "+t[0].type),D(e,16)}var n=w();n&&(r=document.querySelector("body"),new n(t).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",I(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):I("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;g[r]&&(g[r].sizeHeight&&n("height"),g[r].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&m&&!window.jasmine?(I(t.id,"Requesting animation frame"),m(e)):e()}function B(e,t,n,r,i){var o,a=!1;r=r||n.id,g[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=g[r]&&g[r].targetOrigin,I(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(d+t,o)):S(r,"["+e+"] IFrame("+r+") not found"),i&&g[r]&&g[r].warningTimeout&&(g[r].msgTimeout=setTimeout((function(){!g[r]||g[r].loaded||a||(a=!0,S(r,"IFrame has not responded within "+g[r].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."))}),g[r].warningTimeout)))}function R(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod}function q(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],S(o,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var r,i,o=function(n){var r;return""===n&&(e.id=(r=t&&t.id||y.id+u++,null!==document.getElementById(r)&&(r+=u++),n=r),c=(t||{}).log,I(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);o in g&&"iFrameResizer"in e?S(o,"Ignored iFrame, already setup."):(!function(t){var r;t=t||{},g[o]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(g[o][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),g[o]&&(g[o].targetOrigin=!0===g[o].checkOrigin?""===(r=g[o].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(I(o,"IFrame scrolling "+(g[o]&&g[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(g[o]&&g[o].scrolling)?"hidden":"auto",g[o]&&g[o].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[o]?g[o].scrolling:"no"}}(),function(){function t(t){1/0!==g[o][t]&&0!==g[o][t]&&(e.style[t]=g[o][t]+"px",I(o,"Set "+t+" = "+g[o][t]+"px"))}function n(e){if(g[o]["min"+e]>g[o]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[o]&&g[o].bodyMargin)&&"0"!==(g[o]&&g[o].bodyMargin)||(g[o].bodyMarginV1=g[o].bodyMargin,g[o].bodyMargin=g[o].bodyMargin+"px"),r=R(o),(i=w())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),_(e,"load",(function(){var t,n;B("iFrame.onload",r,e,void 0,!0),t=g[o]&&g[o].firstRun,n=g[o]&&g[o].heightCalculationMethod in v,!t&&n&&P({iframe:e,height:0,width:0,type:"init"})})),B("init",r,e,void 0,!0),g[o]&&(g[o].iframe.iFrameResizer={close:A.bind(null,g[o].iframe),removeListeners:M.bind(null,g[o].iframe),resize:B.bind(null,"Window resize","resize",g[o].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,g[o].iframe,o)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),g[o].iframe,o)}}))}function D(e,t){null===h&&(h=setTimeout((function(){h=null,e()}),t))}function Q(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),D((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&B(e,t,g[n].iframe,n)}))}function V(){_(window,"message",O),_(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),D((function(){U("Window "+e,"resize")}),16)})),_(document,"visibilitychange",Q),_(document,"-webkit-visibilitychange",Q)}function H(){function e(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+">")}(),q(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!m;e+=1)m=window[t[e]+"RequestAnimationFrame"];m?m=m.bind(window):I("setup","RequestAnimationFrame not supported")}(),V(),function(n,r){switch(t=[],function(e){e&&e.enablePublicMethods&&S("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(void 0,n));break;case"object":e(n,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return t}}}()},322:function(e,t,n){!function(t){if("undefined"!=typeof window){var n=!0,r="",i=0,o="",a=null,u="",c=!1,s={resize:1,click:1},l=!0,d=1,f="bodyOffset",p=!0,m="",v={},g=32,h=null,y=!1,b="[iFrameSizer]",w=b.length,_="",x={max:1,min:1,bodyScroll:1,documentElementScroll:1},C="child",k=window.parent,I="*",E=0,S=!1,j=null,O=16,T=1,M="scroll",A=window,L=function(){ne("onMessage function not defined")},N=function(){},G=function(){},P={height:function(){return ne("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ne("Custom width calculation function not defined"),document.body.scrollWidth}},z={},F=!1;try{var B=Object.create({},{passive:{get:function(){F=!0}}});window.addEventListener("test",J,B),window.removeEventListener("test",J,B)}catch(e){}var R,q,D,Q,U,V,H,W=Date.now||function(){return(new Date).getTime()},$={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return $.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return P.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ve($))},min:function(){return Math.min.apply(null,ve($))},grow:function(){return $.max()},lowestElement:function(){return Math.max($.bodyOffset()||$.documentElementOffset(),me("bottom",he()))},taggedElement:function(){return ge("bottom","data-iframe-height")}},K={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return P.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(K.bodyScroll(),K.documentElementScroll())},max:function(){return Math.max.apply(null,ve(K))},min:function(){return Math.min.apply(null,ve(K))},rightMostElement:function(){return me("right",he())},taggedElement:function(){return ge("right","data-iframe-width")}},Y=(R=ye,U=null,V=0,H=function(){V=W(),U=null,Q=R.apply(q,D),U||(q=D=null)},function(){var e=W();V||(V=e);var t=O-(e-V);return q=this,D=arguments,t<=0||t>O?(U&&(clearTimeout(U),U=null),V=e,Q=R.apply(q,D),U||(q=D=null)):U||(U=setTimeout(H,t)),Q});Z(window,"message",(function(t){var n={init:function(){m=t.data,k=t.source,re(),l=!1,setTimeout((function(){p=!1}),128)},reset:function(){p?te("Page reset ignored by init"):(te("Page size reset by host page"),_e("resetPage"))},resize:function(){be("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();te("PageInfoFromParent called from parent: "+e),G(JSON.parse(e)),te(" --")},message:function(){var e=i();te("onMessage called from parent: "+e),L(JSON.parse(e)),te(" --")}};function r(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function o(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var i=r();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||o()||ne("Unexpected message ("+t.data+")")}b===(""+t.data).substr(0,w)&&(!1===l?a():o()?n.init():te('Ignored message of type "'+r()+'". Received before initialization.'))})),Z(window,"readystatechange",ke),ke()}function J(){}function Z(e,t,n,r){e.addEventListener(t,n,!!F&&(r||{}))}function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ee(e){return b+"["+_+"] "+e}function te(e){y&&"object"==typeof window.console&&console.log(ee(e))}function ne(e){"object"==typeof window.console&&console.warn(ee(e))}function re(){var e;!function(){function e(e){return"true"===e}var t=m.substr(w).split(":");_=t[0],i=void 0!==t[1]?Number(t[1]):i,c=void 0!==t[2]?e(t[2]):c,y=void 0!==t[3]?e(t[3]):y,g=void 0!==t[4]?Number(t[4]):g,n=void 0!==t[6]?e(t[6]):n,o=t[7],f=void 0!==t[8]?t[8]:f,r=t[9],u=t[10],E=void 0!==t[11]?Number(t[11]):E,v.enable=void 0!==t[12]&&e(t[12]),C=void 0!==t[13]?t[13]:C,M=void 0!==t[14]?t[14]:M}(),te("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(te("Setup custom "+t+"CalcMethod"),P[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t=window.iFrameResizer,te("Reading data from page: "+JSON.stringify(t)),Object.keys(t).forEach(ie,t),L="onMessage"in t?t.onMessage:L,N="onReady"in t?t.onReady:N,I="targetOrigin"in t?t.targetOrigin:I,f="heightCalculationMethod"in t?t.heightCalculationMethod:f,M="widthCalculationMethod"in t?t.widthCalculationMethod:M,f=e(f,"height"),M=e(M,"width"));var t;te("TargetOrigin for parent set to: "+I)}(),function(){void 0===o&&(o=i+"px");oe("margin",function(e,t){-1!==t.indexOf("-")&&(ne("Negative CSS value ignored for "+e),t="");return t}("margin",o))}(),oe("background",r),oe("padding",u),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),se(),le(),document.documentElement.style.height="",document.body.style.height="",te('HTML & body height set to "auto"'),te("Enable public methods"),A.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,de()):!1===e&&!0===n&&(n=!1,ue("remove"),null!==a&&a.disconnect(),clearInterval(h)),Ce(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ce(0,0,"close")},getId:function(){return _},getPageInfo:function(e){"function"==typeof e?(G=e,Ce(0,0,"pageInfo")):(G=function(){},Ce(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){xe("parentIFrame.reset")},scrollTo:function(e,t){Ce(t,e,"scrollTo")},scrollToOffset:function(e,t){Ce(t,e,"scrollToOffset")},sendMessage:function(e,t){Ce(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){f=e,se()},setWidthCalculationMethod:function(e){M=e,le()},setTargetOrigin:function(e){te("Set targetOrigin: "+e),I=e},size:function(e,t){be("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},de(),v=function(){function e(e){var t=e.getBoundingClientRect(),n={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function t(t){var n=t.split("#")[1]||t,r=decodeURIComponent(n),i=document.getElementById(r)||document.getElementsByName(r)[0];void 0!==i?function(t){var r=e(t);te("Moving to in page link (#"+n+") at x: "+r.x+" y: "+r.y),Ce(r.y,r.x,"scrollToOffset")}(i):(te("In page link (#"+n+") not found in iFrame, so sending to parent"),Ce(0,0,"inPageLink","#"+n))}function n(){""!==location.hash&&"#"!==location.hash&&t(location.href)}v.enable?Array.prototype.forEach&&document.querySelectorAll?(te("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(e){"#"!==e.getAttribute("href")&&Z(e,"click",(function(e){e.preventDefault(),t(this.getAttribute("href"))}))})),Z(window,"hashchange",n),setTimeout(n,128)):ne("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):te("In page linking not enabled");return{findTarget:t}}(),be("init","Init message from host page"),N()}function ie(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ne("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function oe(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style[e]=t,te("Body "+e+' set to "'+t+'"'))}function ae(e){var t={add:function(t){function n(){be(e.eventName,e.eventType)}z[t]=n,Z(window,t,n,{passive:!0})},remove:function(e){var t,n,r,i=z[e];delete z[e],t=window,n=e,r=i,t.removeEventListener(n,r,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),te(X(e.method)+" event listener: "+e.eventType)}function ue(e){ae({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ae({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ae({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ae({method:e,eventType:"Input",eventName:"input"}),ae({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ae({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ae({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ae({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ae({method:e,eventType:"Touch Start",eventName:"touchstart"}),ae({method:e,eventType:"Touch End",eventName:"touchend"}),ae({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ae({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ae({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ae({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===C&&ae({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ce(e,t,n,r){return t!==e&&(e in n||(ne(e+" is not a valid option for "+r+"CalculationMethod."),e=t),te(r+' calculation method set to "'+e+'"')),e}function se(){f=ce(f,"bodyOffset",$,"height")}function le(){M=ce(M,"scroll",K,"width")}function de(){var e;!0===n?(ue("add"),e=0>g,window.MutationObserver||window.WebKitMutationObserver?e?fe():a=function(){function e(e){function t(e){!1===e.complete&&(te("Attach listeners to "+e.src),e.addEventListener("load",r,!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){te("Remove listeners from "+e.src),e.removeEventListener("load",r,!1),e.removeEventListener("error",i,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,r){t(e.target),be(n,r+": "+e.target.src,void 0,void 0)}function r(e){n(e,"imageLoad","Image loaded")}function i(e){n(e,"imageLoadFailed","Image load failed")}function o(t){be("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(o),te("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&&(te("Disconnect body MutationObserver"),c.disconnect(),a.forEach(t))}}}():(te("MutationObserver not supported in this browser!"),fe())):te("Auto Resize disabled")}function fe(){0!==g&&(te("setInterval: "+g+"ms"),h=setInterval((function(){be("interval","setInterval: "+g)}),Math.abs(g)))}function pe(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function me(e,t){for(var n=t.length,r=0,i=0,o=X(e),a=W(),u=0;u<n;u++)(r=t[u].getBoundingClientRect()[e]+pe("margin"+o,t[u]))>i&&(i=r);return a=W()-a,te("Parsed "+n+" HTML elements"),te("Element position calculated in "+a+"ms"),function(e){e>O/2&&te("Event throttle increased to "+(O=2*e)+"ms")}(a),i}function ve(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ge(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ne("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),me(e,n)}function he(){return document.querySelectorAll("body *")}function ye(e,t,n,r){var i,o;!function(){function e(e,t){return!(Math.abs(e-t)<=E)}return i=void 0!==n?n:$[f](),o=void 0!==r?r:K[M](),e(d,i)||c&&e(T,o)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(f in x||c&&M in x)?xe(t):e in{interval:1}||te("No change in size detected"):(we(),Ce(d=i,T=o,e))}function be(e,t,n,r){S&&e in s?te("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||te("Trigger event: "+t),"init"===e?ye(e,t,n,r):Y(e,t,n,r))}function we(){S||(S=!0,te("Trigger event lock on")),clearTimeout(j),j=setTimeout((function(){S=!1,te("Trigger event lock off"),te("--")}),128)}function _e(e){d=$[f](),T=K[M](),Ce(d,T,e)}function xe(e){var t=f;f="bodyOffset",te("Reset trigger event: "+e),we(),_e("reset"),f=t}function Ce(e,t,n,r,i){var o;void 0===i?i=I:te("Message targetOrigin: "+i),te("Sending message to host page ("+(o=_+":"+e+":"+t+":"+n+(void 0!==r?":"+r:""))+")"),k.postMessage(b+o,i)}function ke(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},323:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,r){n(r=r instanceof jQuery?r:e(r))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},324:function(e,t,n){e.exports=n(325)},325:function(e,t,n){var r=n(326),i=n(327),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function u(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function c(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=c(t);return r+u(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=c(t);return i+u(e)+"."+r+o}}},326:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((u=o(o(t,e),o(r,a)))<<(c=i)|u>>>32-c,n);var u,c}function u(e,t,n,r,i,o,u){return a(t&n|~t&r,e,t,i,o,u)}function c(e,t,n,r,i,o,u){return a(t&r|n&~r,e,t,i,o,u)}function s(e,t,n,r,i,o,u){return a(t^n^r,e,t,i,o,u)}function l(e,t,n,r,i,o,u){return a(n^(t|~r),e,t,i,o,u)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,p=-271733879,m=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=f,i=p,a=m,d=v,f=u(f,p,m,v,e[n],7,-680876936),v=u(v,f,p,m,e[n+1],12,-389564586),m=u(m,v,f,p,e[n+2],17,606105819),p=u(p,m,v,f,e[n+3],22,-1044525330),f=u(f,p,m,v,e[n+4],7,-176418897),v=u(v,f,p,m,e[n+5],12,1200080426),m=u(m,v,f,p,e[n+6],17,-1473231341),p=u(p,m,v,f,e[n+7],22,-45705983),f=u(f,p,m,v,e[n+8],7,1770035416),v=u(v,f,p,m,e[n+9],12,-1958414417),m=u(m,v,f,p,e[n+10],17,-42063),p=u(p,m,v,f,e[n+11],22,-1990404162),f=u(f,p,m,v,e[n+12],7,1804603682),v=u(v,f,p,m,e[n+13],12,-40341101),m=u(m,v,f,p,e[n+14],17,-1502002290),f=c(f,p=u(p,m,v,f,e[n+15],22,1236535329),m,v,e[n+1],5,-165796510),v=c(v,f,p,m,e[n+6],9,-1069501632),m=c(m,v,f,p,e[n+11],14,643717713),p=c(p,m,v,f,e[n],20,-373897302),f=c(f,p,m,v,e[n+5],5,-701558691),v=c(v,f,p,m,e[n+10],9,38016083),m=c(m,v,f,p,e[n+15],14,-660478335),p=c(p,m,v,f,e[n+4],20,-405537848),f=c(f,p,m,v,e[n+9],5,568446438),v=c(v,f,p,m,e[n+14],9,-1019803690),m=c(m,v,f,p,e[n+3],14,-187363961),p=c(p,m,v,f,e[n+8],20,1163531501),f=c(f,p,m,v,e[n+13],5,-1444681467),v=c(v,f,p,m,e[n+2],9,-51403784),m=c(m,v,f,p,e[n+7],14,1735328473),f=s(f,p=c(p,m,v,f,e[n+12],20,-1926607734),m,v,e[n+5],4,-378558),v=s(v,f,p,m,e[n+8],11,-2022574463),m=s(m,v,f,p,e[n+11],16,1839030562),p=s(p,m,v,f,e[n+14],23,-35309556),f=s(f,p,m,v,e[n+1],4,-1530992060),v=s(v,f,p,m,e[n+4],11,1272893353),m=s(m,v,f,p,e[n+7],16,-155497632),p=s(p,m,v,f,e[n+10],23,-1094730640),f=s(f,p,m,v,e[n+13],4,681279174),v=s(v,f,p,m,e[n],11,-358537222),m=s(m,v,f,p,e[n+3],16,-722521979),p=s(p,m,v,f,e[n+6],23,76029189),f=s(f,p,m,v,e[n+9],4,-640364487),v=s(v,f,p,m,e[n+12],11,-421815835),m=s(m,v,f,p,e[n+15],16,530742520),f=l(f,p=s(p,m,v,f,e[n+2],23,-995338651),m,v,e[n],6,-198630844),v=l(v,f,p,m,e[n+7],10,1126891415),m=l(m,v,f,p,e[n+14],15,-1416354905),p=l(p,m,v,f,e[n+5],21,-57434055),f=l(f,p,m,v,e[n+12],6,1700485571),v=l(v,f,p,m,e[n+3],10,-1894986606),m=l(m,v,f,p,e[n+10],15,-1051523),p=l(p,m,v,f,e[n+1],21,-2054922799),f=l(f,p,m,v,e[n+8],6,1873313359),v=l(v,f,p,m,e[n+15],10,-30611744),m=l(m,v,f,p,e[n+6],15,-1560198380),p=l(p,m,v,f,e[n+13],21,1309151649),f=l(f,p,m,v,e[n+4],6,-145523070),v=l(v,f,p,m,e[n+11],10,-1120210379),m=l(m,v,f,p,e[n+2],15,718787259),p=l(p,m,v,f,e[n+9],21,-343485551),f=o(f,r),p=o(p,i),m=o(m,a),v=o(v,d);return[f,p,m,v]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(d(p(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(p(t)),512+8*t.length),f(d(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):m(h(t,e)):n?g(e):m(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},327:function(e,t,n){"use strict";t.decode=t.parse=n(328),t.encode=t.stringify=n(329)},328:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var l=0;l<s;++l){var d,f,p,m,v=e[l].replace(u,"%20"),g=v.indexOf(n);g>=0?(d=v.substr(0,g),f=v.substr(g+1)):(d=v,f=""),p=decodeURIComponent(d),m=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},329:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var u=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return u+encodeURIComponent(r(e))})).join(t):u+encodeURIComponent(r(e[a]))})).join(t):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},36:function(e,t){function n(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function u(e){n(a,i,o,u,c,"next",e)}function c(e){n(a,i,o,u,c,"throw",e)}u(void 0)}))}}},38:function(e,t,n){"use strict";var r,i={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}},o=n(21),a=n.n(o),u=n(36),c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},s={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?t:{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var u=Give.fn.getParameterByName("level-id"),c=r.find('*[data-price-id="'+u+'"]');c.length>0&&this.autoSetMultiLevel(c),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(r=n.n(u)()(a.a.mark((function e(t){var n,r,i,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}},l={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},d={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(r))}}},f={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)f[e[t]].init&&f[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:f.form.fn.getInfo("decimal_separator",n),thousand:f.form.fn.getInfo("thousands_separator",n),precision:f.form.fn.getInfo("number_decimals",n),currency:f.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=accounting.formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",u="",c="",s="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),u=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(u=r.thousand+u),i=(s=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+u+a).lastIndexOf("."),e=s=s.slice(0,i)+(s.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?f.cache["form_"+f.form.fn.getInfo("form-id",n)][e]=t:f.cache[e]=t},getCache:function(e,t){var n,r=f.cache["form_"+f.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":f.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:f.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e}},cache:{}};f.notice=i,f.form=s,f.donor=l,f.util=c,f.share=d;t.a=f},387:function(e,t,n){var r;
16
  /*!
17
  * Float Labels
18
  * @version: 3.3.9
12
  * Full details and documentation:
13
  * http://openexchangerates.github.io/accounting.js/
14
  */
15
+ !function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,u=Object.prototype.toString;function c(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function s(e){return a?a(e):"[object Array]"===u.call(e)}function l(e){return e&&"[object Object]"===u.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function p(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function m(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),c(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:c(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(s(e))return f(e,(function(e){return v(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=p(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(s(e))return f(e,(function(e){return h(e,t,n,r)}));e=v(e);var o=d(l(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=p(o.precision),u=e<0?"-":"",c=parseInt(g(Math.abs(e||0),a),10)+"",m=c.length>3?c.length%3:0;return u+(m?c.substr(0,m)+o.thousand:"")+c.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(s(e))return f(e,(function(e){return y(e,t,n,r,o,a)}));e=v(e);var u=d(l(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),c=m(u.format);return(e>0?c.pos:e<0?c.neg:c.zero).replace("%s",u.symbol).replace("%v",h(Math.abs(e),p(u.precision),u.thousand,u.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var u=d(l(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=m(u.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,w=f(e,(function(e,t){if(s(e))return i.formatColumn(e,u);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",u.symbol).replace("%v",h(Math.abs(e),p(u.precision),u.thousand,u.decimal));return n.length>b&&(b=n.length),n}));return f(w,(function(e,t){return c(e)&&e.length<b?y?e.replace(u.symbol,u.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=i),t.accounting=i}()},320:function(e,t,n){var r=n(321);t.iframeResize=r,t.iframeResizer=r,t.iframeResizerContentWindow=n(322)},321:function(e,t,n){var r,i,o;!function(n){if("undefined"!=typeof window){var a,u=0,c=!1,s=!1,l="message".length,d="[iFrameSizer]",f=d.length,p=null,m=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,y={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(){S("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){q(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),i=[],void 0===(o="function"==typeof(r=H)?r.apply(t,i):r)||(e.exports=o),window.iFrameResize=window.iFrameResize||H()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function _(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function C(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function k(e){return g[e]?g[e].log:c}function I(e,t){j("log",e,t,k(e))}function E(e,t){j("info",e,t,k(e))}function S(e,t){j("warn",e,t,!0)}function j(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](C(t),n)}function O(e){function t(){i("Height"),i("Width"),F((function(){z(O),N(M),m("onResized",O)}),O,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function r(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function i(e){var t=Number(g[M]["max"+e]),n=Number(g[M]["min"+e]),r=e.toLowerCase(),i=Number(O[r]);I(M,"Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,I(M,"Set "+r+" to min value")),i>t&&(i=t,I(M,"Set "+r+" to max value")),O[r]=""+i}function o(e){return j.substr(j.indexOf(":")+l+e)}function a(e,t){var n,r,i;n=function(){var n,r;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=O.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},r=32,b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),r))}function u(e){var t=e.getBoundingClientRect();return L(M),{x:Math.floor(Number(t.left)+Number(p.x)),y:Math.floor(Number(t.top)+Number(p.y))}}function c(e){var t=e?u(O.iframe):{x:0,y:0},n={x:Number(O.width)+t.x,y:Number(O.height)+t.y};I(M,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):S(M,"Unable to scroll to requested position, window.parentIFrame not found"):(p=n,s(),I(M,"--"))}function s(){!1!==m("onScroll",p)?N(M):G()}function m(e,t){return T(M,e,t)}var v,h,y,w,C,k,j=e.data,O={},M=null;"[iFrameResizerChild]Ready"===j?function(){for(var e in g)B("iFrame requested init",R(e),g[e].iframe,e)}():d===(""+j).substr(0,f)&&j.substr(f).split(":")[0]in g?(y=j.substr(f).split(":"),w=y[1]?parseInt(y[1],10):0,C=g[y[0]]&&g[y[0]].iframe,k=getComputedStyle(C),O={iframe:C,id:y[0],height:w+n(k)+r(k),width:y[2],type:y[3]},M=O.id,g[M]&&(g[M].loaded=!0),(h=O.type in{true:1,false:1,undefined:1})&&I(M,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return g[e]||(t=!1,S(O.type+" No settings for "+e+". Message was: "+j)),t}(M)&&(I(M,"Received: "+j),v=!0,null===O.iframe&&(S(M,"IFrame ("+O.id+") not found"),v=!1),v&&function(){var t,n=e.origin,r=g[M]&&g[M].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(M,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=g[M]&&g[M].remoteHost,I(M,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+O.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(g[M]&&g[M].firstRun&&g[M]&&(g[M].firstRun=!1),O.type){case"close":A(O.iframe);break;case"message":e=o(6),I(M,"onMessage passed: {iframe: "+O.iframe.id+", message: "+e+"}"),m("onMessage",{iframe:O.iframe,message:JSON.parse(e)}),I(M,"--");break;case"autoResize":g[M].autoResize=JSON.parse(o(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":a(g[M]&&g[M].iframe,M),function(){function e(e,r){function i(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){I(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",x)}var n=M;e("Add ",_),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[M]&&g[M].stopPageInfo&&(g[M].stopPageInfo(),delete g[M].stopPageInfo);break;case"inPageLink":!function(e){var t,n=e.split("#")[1]||"",r=decodeURIComponent(n),i=document.getElementById(r)||document.getElementsByName(r)[0];i?(t=u(i),I(M,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),p={x:t.x,y:t.y},s(),I(M,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):I(M,"In page link #"+n+" not found and window.parentIFrame not found"):I(M,"In page link #"+n+" not found")}(o(9));break;case"reset":P(O);break;case"init":t(),m("onInit",O.iframe);break;default:t()}var e}())):E(M,"Ignored: "+j)}function T(e,t,n){var r=null,i=null;if(g[e]){if("function"!=typeof(r=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=r(n)}return i}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==T(t,"onClose",t)){I(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){S(e)}T(t,"onClosed",t),I(t,"--"),M(e)}else I(t,"Close iframe cancelled by onClose event")}function L(e){null===p&&I(e,"Get page position: "+(p={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+p.y)}function N(e){null!==p&&(window.scrollTo(p.x,p.y),I(e,"Set page position: "+p.x+","+p.y),G())}function G(){p=null}function P(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),L(e.id),F((function(){z(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function z(e){function t(t){s||"0"!==e[t]||(s=!0,I(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(g).forEach((function(e){!function(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}g[e]&&null!==g[e].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",g[e].iframe,e)}(e)}))}function t(t){I("window","Mutation observed: "+t[0].target+" "+t[0].type),D(e,16)}var n=w();n&&(r=document.querySelector("body"),new n(t).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",I(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):I("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;g[r]&&(g[r].sizeHeight&&n("height"),g[r].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&m&&!window.jasmine?(I(t.id,"Requesting animation frame"),m(e)):e()}function B(e,t,n,r,i){var o,a=!1;r=r||n.id,g[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=g[r]&&g[r].targetOrigin,I(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(d+t,o)):S(r,"["+e+"] IFrame("+r+") not found"),i&&g[r]&&g[r].warningTimeout&&(g[r].msgTimeout=setTimeout((function(){!g[r]||g[r].loaded||a||(a=!0,S(r,"IFrame has not responded within "+g[r].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."))}),g[r].warningTimeout)))}function R(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod}function q(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],S(o,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var r,i,o=function(n){var r;return""===n&&(e.id=(r=t&&t.id||y.id+u++,null!==document.getElementById(r)&&(r+=u++),n=r),c=(t||{}).log,I(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);o in g&&"iFrameResizer"in e?S(o,"Ignored iFrame, already setup."):(!function(t){var r;t=t||{},g[o]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(g[o][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),g[o]&&(g[o].targetOrigin=!0===g[o].checkOrigin?""===(r=g[o].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(I(o,"IFrame scrolling "+(g[o]&&g[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(g[o]&&g[o].scrolling)?"hidden":"auto",g[o]&&g[o].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[o]?g[o].scrolling:"no"}}(),function(){function t(t){1/0!==g[o][t]&&0!==g[o][t]&&(e.style[t]=g[o][t]+"px",I(o,"Set "+t+" = "+g[o][t]+"px"))}function n(e){if(g[o]["min"+e]>g[o]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[o]&&g[o].bodyMargin)&&"0"!==(g[o]&&g[o].bodyMargin)||(g[o].bodyMarginV1=g[o].bodyMargin,g[o].bodyMargin=g[o].bodyMargin+"px"),r=R(o),(i=w())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),_(e,"load",(function(){var t,n;B("iFrame.onload",r,e,void 0,!0),t=g[o]&&g[o].firstRun,n=g[o]&&g[o].heightCalculationMethod in v,!t&&n&&P({iframe:e,height:0,width:0,type:"init"})})),B("init",r,e,void 0,!0),g[o]&&(g[o].iframe.iFrameResizer={close:A.bind(null,g[o].iframe),removeListeners:M.bind(null,g[o].iframe),resize:B.bind(null,"Window resize","resize",g[o].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,g[o].iframe,o)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),g[o].iframe,o)}}))}function D(e,t){null===h&&(h=setTimeout((function(){h=null,e()}),t))}function Q(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),D((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&B(e,t,g[n].iframe,n)}))}function V(){_(window,"message",O),_(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),D((function(){U("Window "+e,"resize")}),16)})),_(document,"visibilitychange",Q),_(document,"-webkit-visibilitychange",Q)}function H(){function e(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+">")}(),q(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!m;e+=1)m=window[t[e]+"RequestAnimationFrame"];m?m=m.bind(window):I("setup","RequestAnimationFrame not supported")}(),V(),function(n,r){switch(t=[],function(e){e&&e.enablePublicMethods&&S("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(void 0,n));break;case"object":e(n,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return t}}}()},322:function(e,t,n){!function(t){if("undefined"!=typeof window){var n=!0,r="",i=0,o="",a=null,u="",c=!1,s={resize:1,click:1},l=!0,d=1,f="bodyOffset",p=!0,m="",v={},g=32,h=null,y=!1,b="[iFrameSizer]",w=b.length,_="",x={max:1,min:1,bodyScroll:1,documentElementScroll:1},C="child",k=window.parent,I="*",E=0,S=!1,j=null,O=16,T=1,M="scroll",A=window,L=function(){ne("onMessage function not defined")},N=function(){},G=function(){},P={height:function(){return ne("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ne("Custom width calculation function not defined"),document.body.scrollWidth}},z={},F=!1;try{var B=Object.create({},{passive:{get:function(){F=!0}}});window.addEventListener("test",J,B),window.removeEventListener("test",J,B)}catch(e){}var R,q,D,Q,U,V,H,W=Date.now||function(){return(new Date).getTime()},$={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return $.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return P.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ve($))},min:function(){return Math.min.apply(null,ve($))},grow:function(){return $.max()},lowestElement:function(){return Math.max($.bodyOffset()||$.documentElementOffset(),me("bottom",he()))},taggedElement:function(){return ge("bottom","data-iframe-height")}},K={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return P.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(K.bodyScroll(),K.documentElementScroll())},max:function(){return Math.max.apply(null,ve(K))},min:function(){return Math.min.apply(null,ve(K))},rightMostElement:function(){return me("right",he())},taggedElement:function(){return ge("right","data-iframe-width")}},Y=(R=ye,U=null,V=0,H=function(){V=W(),U=null,Q=R.apply(q,D),U||(q=D=null)},function(){var e=W();V||(V=e);var t=O-(e-V);return q=this,D=arguments,t<=0||t>O?(U&&(clearTimeout(U),U=null),V=e,Q=R.apply(q,D),U||(q=D=null)):U||(U=setTimeout(H,t)),Q});Z(window,"message",(function(t){var n={init:function(){m=t.data,k=t.source,re(),l=!1,setTimeout((function(){p=!1}),128)},reset:function(){p?te("Page reset ignored by init"):(te("Page size reset by host page"),_e("resetPage"))},resize:function(){be("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();te("PageInfoFromParent called from parent: "+e),G(JSON.parse(e)),te(" --")},message:function(){var e=i();te("onMessage called from parent: "+e),L(JSON.parse(e)),te(" --")}};function r(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function o(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var i=r();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||o()||ne("Unexpected message ("+t.data+")")}b===(""+t.data).substr(0,w)&&(!1===l?a():o()?n.init():te('Ignored message of type "'+r()+'". Received before initialization.'))})),Z(window,"readystatechange",ke),ke()}function J(){}function Z(e,t,n,r){e.addEventListener(t,n,!!F&&(r||{}))}function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ee(e){return b+"["+_+"] "+e}function te(e){y&&"object"==typeof window.console&&console.log(ee(e))}function ne(e){"object"==typeof window.console&&console.warn(ee(e))}function re(){var e;!function(){function e(e){return"true"===e}var t=m.substr(w).split(":");_=t[0],i=void 0!==t[1]?Number(t[1]):i,c=void 0!==t[2]?e(t[2]):c,y=void 0!==t[3]?e(t[3]):y,g=void 0!==t[4]?Number(t[4]):g,n=void 0!==t[6]?e(t[6]):n,o=t[7],f=void 0!==t[8]?t[8]:f,r=t[9],u=t[10],E=void 0!==t[11]?Number(t[11]):E,v.enable=void 0!==t[12]&&e(t[12]),C=void 0!==t[13]?t[13]:C,M=void 0!==t[14]?t[14]:M}(),te("Initialising iFrame ("+location.href+")"),function(){function e(e,t){return"function"==typeof e&&(te("Setup custom "+t+"CalcMethod"),P[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t=window.iFrameResizer,te("Reading data from page: "+JSON.stringify(t)),Object.keys(t).forEach(ie,t),L="onMessage"in t?t.onMessage:L,N="onReady"in t?t.onReady:N,I="targetOrigin"in t?t.targetOrigin:I,f="heightCalculationMethod"in t?t.heightCalculationMethod:f,M="widthCalculationMethod"in t?t.widthCalculationMethod:M,f=e(f,"height"),M=e(M,"width"));var t;te("TargetOrigin for parent set to: "+I)}(),function(){void 0===o&&(o=i+"px");oe("margin",function(e,t){-1!==t.indexOf("-")&&(ne("Negative CSS value ignored for "+e),t="");return t}("margin",o))}(),oe("background",r),oe("padding",u),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),se(),le(),document.documentElement.style.height="",document.body.style.height="",te('HTML & body height set to "auto"'),te("Enable public methods"),A.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,de()):!1===e&&!0===n&&(n=!1,ue("remove"),null!==a&&a.disconnect(),clearInterval(h)),Ce(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Ce(0,0,"close")},getId:function(){return _},getPageInfo:function(e){"function"==typeof e?(G=e,Ce(0,0,"pageInfo")):(G=function(){},Ce(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){xe("parentIFrame.reset")},scrollTo:function(e,t){Ce(t,e,"scrollTo")},scrollToOffset:function(e,t){Ce(t,e,"scrollToOffset")},sendMessage:function(e,t){Ce(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){f=e,se()},setWidthCalculationMethod:function(e){M=e,le()},setTargetOrigin:function(e){te("Set targetOrigin: "+e),I=e},size:function(e,t){be("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},de(),v=function(){function e(e){var t=e.getBoundingClientRect(),n={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function t(t){var n=t.split("#")[1]||t,r=decodeURIComponent(n),i=document.getElementById(r)||document.getElementsByName(r)[0];void 0!==i?function(t){var r=e(t);te("Moving to in page link (#"+n+") at x: "+r.x+" y: "+r.y),Ce(r.y,r.x,"scrollToOffset")}(i):(te("In page link (#"+n+") not found in iFrame, so sending to parent"),Ce(0,0,"inPageLink","#"+n))}function n(){""!==location.hash&&"#"!==location.hash&&t(location.href)}v.enable?Array.prototype.forEach&&document.querySelectorAll?(te("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(e){"#"!==e.getAttribute("href")&&Z(e,"click",(function(e){e.preventDefault(),t(this.getAttribute("href"))}))})),Z(window,"hashchange",n),setTimeout(n,128)):ne("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):te("In page linking not enabled");return{findTarget:t}}(),be("init","Init message from host page"),N()}function ie(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ne("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function oe(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style[e]=t,te("Body "+e+' set to "'+t+'"'))}function ae(e){var t={add:function(t){function n(){be(e.eventName,e.eventType)}z[t]=n,Z(window,t,n,{passive:!0})},remove:function(e){var t,n,r,i=z[e];delete z[e],t=window,n=e,r=i,t.removeEventListener(n,r,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),te(X(e.method)+" event listener: "+e.eventType)}function ue(e){ae({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ae({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ae({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ae({method:e,eventType:"Input",eventName:"input"}),ae({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ae({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ae({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ae({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ae({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ae({method:e,eventType:"Touch Start",eventName:"touchstart"}),ae({method:e,eventType:"Touch End",eventName:"touchend"}),ae({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ae({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ae({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ae({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===C&&ae({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ce(e,t,n,r){return t!==e&&(e in n||(ne(e+" is not a valid option for "+r+"CalculationMethod."),e=t),te(r+' calculation method set to "'+e+'"')),e}function se(){f=ce(f,"bodyOffset",$,"height")}function le(){M=ce(M,"scroll",K,"width")}function de(){var e;!0===n?(ue("add"),e=0>g,window.MutationObserver||window.WebKitMutationObserver?e?fe():a=function(){function e(e){function t(e){!1===e.complete&&(te("Attach listeners to "+e.src),e.addEventListener("load",r,!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){te("Remove listeners from "+e.src),e.removeEventListener("load",r,!1),e.removeEventListener("error",i,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,r){t(e.target),be(n,r+": "+e.target.src,void 0,void 0)}function r(e){n(e,"imageLoad","Image loaded")}function i(e){n(e,"imageLoadFailed","Image load failed")}function o(t){be("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(o),te("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&&(te("Disconnect body MutationObserver"),c.disconnect(),a.forEach(t))}}}():(te("MutationObserver not supported in this browser!"),fe())):te("Auto Resize disabled")}function fe(){0!==g&&(te("setInterval: "+g+"ms"),h=setInterval((function(){be("interval","setInterval: "+g)}),Math.abs(g)))}function pe(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function me(e,t){for(var n=t.length,r=0,i=0,o=X(e),a=W(),u=0;u<n;u++)(r=t[u].getBoundingClientRect()[e]+pe("margin"+o,t[u]))>i&&(i=r);return a=W()-a,te("Parsed "+n+" HTML elements"),te("Element position calculated in "+a+"ms"),function(e){e>O/2&&te("Event throttle increased to "+(O=2*e)+"ms")}(a),i}function ve(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ge(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ne("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),me(e,n)}function he(){return document.querySelectorAll("body *")}function ye(e,t,n,r){var i,o;!function(){function e(e,t){return!(Math.abs(e-t)<=E)}return i=void 0!==n?n:$[f](),o=void 0!==r?r:K[M](),e(d,i)||c&&e(T,o)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(f in x||c&&M in x)?xe(t):e in{interval:1}||te("No change in size detected"):(we(),Ce(d=i,T=o,e))}function be(e,t,n,r){S&&e in s?te("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||te("Trigger event: "+t),"init"===e?ye(e,t,n,r):Y(e,t,n,r))}function we(){S||(S=!0,te("Trigger event lock on")),clearTimeout(j),j=setTimeout((function(){S=!1,te("Trigger event lock off"),te("--")}),128)}function _e(e){d=$[f](),T=K[M](),Ce(d,T,e)}function xe(e){var t=f;f="bodyOffset",te("Reset trigger event: "+e),we(),_e("reset"),f=t}function Ce(e,t,n,r,i){var o;void 0===i?i=I:te("Message targetOrigin: "+i),te("Sending message to host page ("+(o=_+":"+e+":"+t+":"+n+(void 0!==r?":"+r:""))+")"),k.postMessage(b+o,i)}function ke(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},323:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,r){n(r=r instanceof jQuery?r:e(r))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},324:function(e,t,n){e.exports=n(325)},325:function(e,t,n){var r=n(326),i=n(327),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function u(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function c(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=c(t);return r+u(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=c(t);return i+u(e)+"."+r+o}}},326:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((u=o(o(t,e),o(r,a)))<<(c=i)|u>>>32-c,n);var u,c}function u(e,t,n,r,i,o,u){return a(t&n|~t&r,e,t,i,o,u)}function c(e,t,n,r,i,o,u){return a(t&r|n&~r,e,t,i,o,u)}function s(e,t,n,r,i,o,u){return a(t^n^r,e,t,i,o,u)}function l(e,t,n,r,i,o,u){return a(n^(t|~r),e,t,i,o,u)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,p=-271733879,m=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=f,i=p,a=m,d=v,f=u(f,p,m,v,e[n],7,-680876936),v=u(v,f,p,m,e[n+1],12,-389564586),m=u(m,v,f,p,e[n+2],17,606105819),p=u(p,m,v,f,e[n+3],22,-1044525330),f=u(f,p,m,v,e[n+4],7,-176418897),v=u(v,f,p,m,e[n+5],12,1200080426),m=u(m,v,f,p,e[n+6],17,-1473231341),p=u(p,m,v,f,e[n+7],22,-45705983),f=u(f,p,m,v,e[n+8],7,1770035416),v=u(v,f,p,m,e[n+9],12,-1958414417),m=u(m,v,f,p,e[n+10],17,-42063),p=u(p,m,v,f,e[n+11],22,-1990404162),f=u(f,p,m,v,e[n+12],7,1804603682),v=u(v,f,p,m,e[n+13],12,-40341101),m=u(m,v,f,p,e[n+14],17,-1502002290),f=c(f,p=u(p,m,v,f,e[n+15],22,1236535329),m,v,e[n+1],5,-165796510),v=c(v,f,p,m,e[n+6],9,-1069501632),m=c(m,v,f,p,e[n+11],14,643717713),p=c(p,m,v,f,e[n],20,-373897302),f=c(f,p,m,v,e[n+5],5,-701558691),v=c(v,f,p,m,e[n+10],9,38016083),m=c(m,v,f,p,e[n+15],14,-660478335),p=c(p,m,v,f,e[n+4],20,-405537848),f=c(f,p,m,v,e[n+9],5,568446438),v=c(v,f,p,m,e[n+14],9,-1019803690),m=c(m,v,f,p,e[n+3],14,-187363961),p=c(p,m,v,f,e[n+8],20,1163531501),f=c(f,p,m,v,e[n+13],5,-1444681467),v=c(v,f,p,m,e[n+2],9,-51403784),m=c(m,v,f,p,e[n+7],14,1735328473),f=s(f,p=c(p,m,v,f,e[n+12],20,-1926607734),m,v,e[n+5],4,-378558),v=s(v,f,p,m,e[n+8],11,-2022574463),m=s(m,v,f,p,e[n+11],16,1839030562),p=s(p,m,v,f,e[n+14],23,-35309556),f=s(f,p,m,v,e[n+1],4,-1530992060),v=s(v,f,p,m,e[n+4],11,1272893353),m=s(m,v,f,p,e[n+7],16,-155497632),p=s(p,m,v,f,e[n+10],23,-1094730640),f=s(f,p,m,v,e[n+13],4,681279174),v=s(v,f,p,m,e[n],11,-358537222),m=s(m,v,f,p,e[n+3],16,-722521979),p=s(p,m,v,f,e[n+6],23,76029189),f=s(f,p,m,v,e[n+9],4,-640364487),v=s(v,f,p,m,e[n+12],11,-421815835),m=s(m,v,f,p,e[n+15],16,530742520),f=l(f,p=s(p,m,v,f,e[n+2],23,-995338651),m,v,e[n],6,-198630844),v=l(v,f,p,m,e[n+7],10,1126891415),m=l(m,v,f,p,e[n+14],15,-1416354905),p=l(p,m,v,f,e[n+5],21,-57434055),f=l(f,p,m,v,e[n+12],6,1700485571),v=l(v,f,p,m,e[n+3],10,-1894986606),m=l(m,v,f,p,e[n+10],15,-1051523),p=l(p,m,v,f,e[n+1],21,-2054922799),f=l(f,p,m,v,e[n+8],6,1873313359),v=l(v,f,p,m,e[n+15],10,-30611744),m=l(m,v,f,p,e[n+6],15,-1560198380),p=l(p,m,v,f,e[n+13],21,1309151649),f=l(f,p,m,v,e[n+4],6,-145523070),v=l(v,f,p,m,e[n+11],10,-1120210379),m=l(m,v,f,p,e[n+2],15,718787259),p=l(p,m,v,f,e[n+9],21,-343485551),f=o(f,r),p=o(p,i),m=o(m,a),v=o(v,d);return[f,p,m,v]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(d(p(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(p(t)),512+8*t.length),f(d(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):m(h(t,e)):n?g(e):m(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},327:function(e,t,n){"use strict";t.decode=t.parse=n(328),t.encode=t.stringify=n(329)},328:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var l=0;l<s;++l){var d,f,p,m,v=e[l].replace(u,"%20"),g=v.indexOf(n);g>=0?(d=v.substr(0,g),f=v.substr(g+1)):(d=v,f=""),p=decodeURIComponent(d),m=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},329:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var u=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return u+encodeURIComponent(r(e))})).join(t):u+encodeURIComponent(r(e[a]))})).join(t):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},36:function(e,t){function n(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function u(e){n(a,i,o,u,c,"next",e)}function c(e){n(a,i,o,u,c,"throw",e)}u(void 0)}))}}},38:function(e,t,n){"use strict";var r,i={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}},o=n(21),a=n.n(o),u=n(36),c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},s={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var u=Give.fn.getParameterByName("level-id"),c=r.find('*[data-price-id="'+u+'"]');c.length>0&&this.autoSetMultiLevel(c),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(r=n.n(u)()(a.a.mark((function e(t){var n,r,i,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}},l={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},d={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(r))}}},f={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)f[e[t]].init&&f[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:f.form.fn.getInfo("decimal_separator",n),thousand:f.form.fn.getInfo("thousands_separator",n),precision:f.form.fn.getInfo("number_decimals",n),currency:f.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=accounting.formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",u="",c="",s="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),u=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(u=r.thousand+u),i=(s=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+u+a).lastIndexOf("."),e=s=s.slice(0,i)+(s.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?f.cache["form_"+f.form.fn.getInfo("form-id",n)][e]=t:f.cache[e]=t},getCache:function(e,t){var n,r=f.cache["form_"+f.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":f.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:f.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e}},cache:{}};f.notice=i,f.form=s,f.donor=l,f.util=c,f.share=d;t.a=f},387:function(e,t,n){var r;
16
  /*!
17
  * Float Labels
18
  * @version: 3.3.9
give.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
- * Version: 2.9.2
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
@@ -250,7 +250,7 @@ final class Give {
250
  private function setup_constants() {
251
  // Plugin version.
252
  if ( ! defined( 'GIVE_VERSION' ) ) {
253
- define( 'GIVE_VERSION', '2.9.2' );
254
  }
255
 
256
  // Plugin Root File.
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
+ * Version: 2.9.3
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
250
  private function setup_constants() {
251
  // Plugin version.
252
  if ( ! defined( 'GIVE_VERSION' ) ) {
253
+ define( 'GIVE_VERSION', '2.9.3' );
254
  }
255
 
256
  // Plugin Root File.
phpcs.xml.dist DELETED
@@ -1,68 +0,0 @@
1
- <?xml version="1.0"?>
2
- <ruleset name="GiveWP Coding Standards">
3
- <description>We love clean code for GiveWP. This will let us enforce that easily.</description>
4
-
5
- <!--
6
- #############################################################################
7
- COMMAND LINE ARGUMENTS
8
- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
9
- #############################################################################
10
- -->
11
-
12
- <file>.</file>
13
-
14
- <!-- Exclude directories we don't want checked. -->
15
- <exclude-pattern>/assets/*</exclude-pattern>
16
- <exclude-pattern>/includes/libraries/*</exclude-pattern>
17
- <exclude-pattern>/languages/*</exclude-pattern>
18
- <exclude-pattern>/sample-data/*</exclude-pattern>
19
- <exclude-pattern>/tests/*</exclude-pattern>
20
-
21
- <!-- Exclude directories related to external dependencies. -->
22
- <exclude-pattern>/node_modules/*</exclude-pattern>
23
- <exclude-pattern>/vendor/*</exclude-pattern>
24
-
25
- <!-- Show progress, show the error codes for each message (source). -->
26
- <arg value="ps"/>
27
-
28
- <!-- Only check PHP files. -->
29
- <arg name="extensions" value="php"/>
30
-
31
- <!-- Strip the filepaths down to the relevant bit. -->
32
- <arg name="basepath" value="./"/>
33
-
34
- <!-- Check up to 8 files simultaneously. -->
35
- <arg name="parallel" value="8"/>
36
-
37
- <!-- Show colourized output. -->
38
- <arg name="colors"/>
39
-
40
-
41
- <!--
42
- #############################################################################
43
- USE THE WPCS AND THE PHPCOMPATIBILITYWP RULESETS
44
- #############################################################################
45
- -->
46
-
47
- <!-- Bring in WP rules. -->
48
- <rule ref="WordPress-Core">
49
- <exclude name="WordPress.Files.FileName.InvalidClassFileName" />
50
- <exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
51
- <exclude name="Generic.Arrays.DisallowShortArraySyntax" />
52
- </rule>
53
-
54
- <rule ref="Generic.Arrays.DisallowLongArraySyntax.Found">
55
- <type>warning</type>
56
- </rule>
57
-
58
- <rule ref="WordPress.WP.I18n">
59
- <properties>
60
- <property name="text_domain" type="array" value="give"/>
61
- </properties>
62
- </rule>
63
-
64
- <!-- Test for code compatibility with PHP 5.6 and higher. -->
65
- <config name="testVersion" value="5.6-"/>
66
- <rule ref="PHPCompatibilityWP"/>
67
-
68
- </ruleset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: donation, fundraising, crowdfunding, givewp, give
5
  Requires at least: 4.9
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 2.9.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -51,7 +51,7 @@ Find out more:
51
 
52
  = Who Uses GiveWP? =
53
 
54
- With more than 90,000+ active installs of GiveWP, we hear more and more success stories from nonprofit organizations using GiveWP. Causes are using GiveWP to raise millions of dollars per year. Check out some of our [GiveWP Stories](https://go.givewp.com/stories) and [Case Studies](https://go.givewp.com/case-studies) for details about their success.
55
 
56
  = Why Use GiveWP for Donations? =
57
 
@@ -86,13 +86,13 @@ GiveWP comes with several payment gateway options:
86
 
87
  GiveWP's goal is to "Democratize Generosity." We want to make it easy for *everyone* to raise funds online. The money you raise using GiveWP is yours to support your cause. Period. We are supported through the sale of [premium GiveWP add-ons](https://go.givewp.com/addons "View all of GiveWP's Premium Add-ons"). Add-ons enable advanced features that enable you to extend the functionality of GiveWP.
88
 
89
- Must-Have Add-ons for GiveWP:
90
 
91
  * Recurring Donations
92
- * Form Field Manager
93
- * Fee Recovery
94
- * Tributes
95
- * PDF Receipts
96
  * Funds & Designations
97
 
98
  [View all of GiveWP's Add-ons](https://go.givewp.com/addons "View all GiveWP add-ons") to discover all the ways you can further enhance and extend GiveWP.
@@ -213,30 +213,29 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
213
 
214
  == Screenshots ==
215
 
216
- 1. This is an example of a simple, yet powerful, donation form that allows the user to input a custom amount.
217
 
218
- 2. Creating powerful donation forms is easy with GiveWP. Simply install the plugin, create a new donation form, set the desired giving options, and publish!
219
 
220
- 3. Donation form fields can appear within a modal window (as shown here), be revealed with a nice sliding animation, or display entirely on the page (default).
221
 
222
- 4. GiveWP makes the donation process simple and easy for your donors. This helps maximize conversion rates and further empower your cause.
223
 
224
- 5. The multi-level donation amount functionality allows you to set different giving levels for your donors to choose from. In addition, you can allow donors to specify custom donation amounts and even set donation goals.
225
 
226
- 6. The admin view of a donation form with multi-level amounts configured. GiveWP's flexible options allow you to control whether the amounts output as radio buttons, a select field, or input buttons.
227
 
228
- 7. Don't need donation levels? No problem. You can set a default amount and allow your donor's to configure a custom donation amount to create a simple, yet powerful, donation form.
229
 
230
- 8. In-depth donation reports allow you to track just how much your cause has raised over time. You can even export the data to CSV or PDF formats.
231
-
232
- 9. Extend GiveWP with a robust suite of powerful [Add-ons](https://go.givewp.com/addons "View all GiveWP Add-ons"). Accept recurring donations, credit cards, add custom form fields, and more!
233
-
234
- 10. GiveWP is thoroughly [documented](https://go.givewp.com/docs "Visit the GiveWP documentation") to help you get started quickly and learn basic to advanced features and functionalities.
235
-
236
- 11. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
237
 
238
  == Changelog ==
239
 
 
 
 
 
 
240
  = 2.9.2: November 9th, 2020 =
241
  * New: Added a method for manually triggering migrations to re-attempt failed migrations
242
  * Fixed: Resolved an issue when creating donations for currencies with different decimal ranges
@@ -314,19 +313,19 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
314
 
315
  = 2.7.1: June 30th, 2020 =
316
  * Fix: Resolved an issue with the 2.7.0 releasing causing the Form Grid shortcode to not render due to a PHP fatal error. [#4877](https://github.com/impress-org/givewp/issues/4877)
317
- * Fix: Updated a JavaScript version to the latest to prevent browser caching from causing the Reports widgets to not function until a hard browser refresh. [#4876](https://github.com/impress-org/givewp/pull/4876)
318
 
319
  = 2.7.0: June 29th, 2020 =
320
  * New: We're excited to announce a new way to create your donation forms called "Form Templates". The first template is allows you to create a highly customizable multi-step donation form where you control all the text, colors, and images in place. Be sure to update to the latest version of your add-ons for full compatibility. [Read more about Form Templates](https://go.givewp.com/wpgivewp27)
321
  * New: Multiple Stripe Account is here! Now you can connect to multiple Stripe accounts and set them per donation form. That means organizations, like charities with chapters or schools with clubs that need to raise money online, can create different forms to accept donations through separate Stripe accounts. [Read more about Stripe Multi-Accounts](http://docs.givewp.com/stripe-free)
322
  * New: Our Gutenberg blocks' UI was improved so they are have a better user experience.
323
- * Tweak: Previous to this release we were packaging two TCPDF packages for backwards compatibility reason. We removed one of the packages and now are relying on the composer package. This means that you'll need to be running the PDF Receipts version add-on at 2.3.4 or higher for compatibility. [#4656](https://github.com/impress-org/givewp/pull/4656)
324
  * Fix: If you install GiveWP and didn't configure anything there would be a JavaScript error on the frontend if Stripe is not connected but enabled, which it is by default for new installs. [#4709](https://github.com/impress-org/givewp/pull/4709)
325
  * Fix: Improved how reports are rounding percentages so that the trend comparisons are more accurate. [#4766](https://github.com/impress-org/givewp/issues/4766)
326
- * Fix: Monaco doesn't have states so don't display or require a state field when that country is selected. [#4773](https://github.com/impress-org/givewp/pull/4773)
327
  * Fix: Properly internationalized a tooltip in Stripe so translations properly display. [#4677](https://github.com/impress-org/givewp/pull/4677)
328
  * Fix: The "Add-ons" like on the plugin activation welcome screen was broken. [#4843](https://github.com/impress-org/givewp/pull/4843)
329
- * Fix: Resolved a caching conflict with WP Rocket that was preventing donation forms from being cached properly. [#4546](https://github.com/impress-org/givewp/pull/4546)
330
  * Fix: Prevented a fatal error that could occur on the Donor profile screen in WP-Admin when the Stripe add-on is active but no Stripe payment gateways are enabled. [#4787](https://github.com/impress-org/givewp/pull/4787)
331
 
332
  = 2.6.3: May 19th, 2020 =
@@ -361,8 +360,8 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
361
  * New: The Akismet SPAM feature has been improved with logs for admins to better understand why an email has been flagged as SPAM as well as a new Whitelist setting for them to allow email addresses to bypass the check. [#4110](https://github.com/impress-org/givewp/issues/4110)
362
  * Fix: Resolved an issue with the "Recalculate Income Amount and Donation Counts for a Form" not accurately recalculating when using Currency Switcher add-on. [#4447](https://github.com/impress-org/givewp/issues/4447)
363
  * Fix: Resolved an issue with large databases with more than 13,000 donors receiving a fatal error when viewing the donor's list screen. [#4444](https://github.com/impress-org/givewp/issues/4444)
364
- * Tweak: You can now activate any plugin within the GiveWP Licenses tab. This resolves an issue with "this plugin does not have a valid header" error admins were receiving. [#4443](https://github.com/impress-org/givewp/issues/4443)
365
- * Tweak: Updated the `[give_login]` shortcode text output to "Username or Email Address" to match WP's login. Note: you have been able to always log in using email but now the text accurately reflects that. [#4434](https://github.com/impress-org/givewp/issues/4434)
366
 
367
  = 2.5.13: January 15th, 2020 =
368
  * Fix: Resolved an issue when using button mode of multiple donation buttons appearing incorrectly within shortcodes, blocks, and widgets. [#4379](https://github.com/impress-org/givewp/issues/4379)
@@ -859,7 +858,7 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
859
  This version contains a database upgrade that improves performance by migrating donation meta to a new revenue table. Please ensure you have a backup in place prior to updating and be sure to update GiveWP Core and then your GiveWP Add-ons to the latest versions for maximum compatibility.
860
 
861
  = 2.7.0 =
862
- This version contains a database upgrade for donation forms and Stripe. Please ensure you have a backup in place prior to updating and be sure to update GiveWP Core and then your GiveWP Add-ons to the latest versions for maximum compatibility.
863
 
864
  = 2.1.3 =
865
  This version contains a database cleanup routine to delete donation payment meta that is not attached to any payment. For instance, if you deleted a payment the metadata associated with it still remained prior to this version. With this upgrade the orphaned data will be removed.
5
  Requires at least: 4.9
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 2.9.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
51
 
52
  = Who Uses GiveWP? =
53
 
54
+ With more than 100,000+ active installs of GiveWP, we hear more and more success stories from nonprofit organizations using GiveWP. Causes are using GiveWP to raise millions of dollars per year. Check out some of our [GiveWP Stories](https://go.givewp.com/stories) and [Case Studies](https://go.givewp.com/case-studies) for details about their success.
55
 
56
  = Why Use GiveWP for Donations? =
57
 
86
 
87
  GiveWP's goal is to "Democratize Generosity." We want to make it easy for *everyone* to raise funds online. The money you raise using GiveWP is yours to support your cause. Period. We are supported through the sale of [premium GiveWP add-ons](https://go.givewp.com/addons "View all of GiveWP's Premium Add-ons"). Add-ons enable advanced features that enable you to extend the functionality of GiveWP.
88
 
89
+ Must-Have Add-ons for GiveWP:
90
 
91
  * Recurring Donations
92
+ * Form Field Manager
93
+ * Fee Recovery
94
+ * Tributes
95
+ * PDF Receipts
96
  * Funds & Designations
97
 
98
  [View all of GiveWP's Add-ons](https://go.givewp.com/addons "View all GiveWP add-ons") to discover all the ways you can further enhance and extend GiveWP.
213
 
214
  == Screenshots ==
215
 
216
+ 1. Creating powerful donation forms is easy with GiveWP. Simply install the plugin, create a new donation form, set the desired giving options, and publish!
217
 
218
+ 2. Customizing your donation forms is easy and intuitive with customization options for any fundraising campaign.
219
 
220
+ 3. Display you donation forms within a responsive grid on any page to make it easy for your visitors to choose a giving option.
221
 
222
+ 4. Show of your donor's generosity with our customizable Donor Wall block and shortcode.
223
 
224
+ 5. Manage your donors and receive key insights to maximize your fundraising efforts.
225
 
226
+ 6. Extend GiveWP with a robust suite of powerful [Add-ons](https://go.givewp.com/addons "View all GiveWP Add-ons"). Accept recurring donations, credit cards, add custom form fields, and more!
227
 
228
+ 7. GiveWP is thoroughly [documented](https://go.givewp.com/docs "Visit the GiveWP documentation") to help you get started quickly and learn basic to advanced features and functionalities.
229
 
230
+ 8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
 
 
 
 
 
 
231
 
232
  == Changelog ==
233
 
234
+ = 2.9.3: November 17th, 2020 =
235
+ * Fixed: Stripe Credit Card donations now work when it is not the default gateway
236
+ * Fixed: Stripe Checkout Modal are working again as well
237
+ * Fixed: A MigrationRunner warning no longer displays on fresh installs and sites upgrading from 2.8.0
238
+
239
  = 2.9.2: November 9th, 2020 =
240
  * New: Added a method for manually triggering migrations to re-attempt failed migrations
241
  * Fixed: Resolved an issue when creating donations for currencies with different decimal ranges
313
 
314
  = 2.7.1: June 30th, 2020 =
315
  * Fix: Resolved an issue with the 2.7.0 releasing causing the Form Grid shortcode to not render due to a PHP fatal error. [#4877](https://github.com/impress-org/givewp/issues/4877)
316
+ * Fix: Updated a JavaScript version to the latest to prevent browser caching from causing the Reports widgets to not function until a hard browser refresh. [#4876](https://github.com/impress-org/givewp/pull/4876)
317
 
318
  = 2.7.0: June 29th, 2020 =
319
  * New: We're excited to announce a new way to create your donation forms called "Form Templates". The first template is allows you to create a highly customizable multi-step donation form where you control all the text, colors, and images in place. Be sure to update to the latest version of your add-ons for full compatibility. [Read more about Form Templates](https://go.givewp.com/wpgivewp27)
320
  * New: Multiple Stripe Account is here! Now you can connect to multiple Stripe accounts and set them per donation form. That means organizations, like charities with chapters or schools with clubs that need to raise money online, can create different forms to accept donations through separate Stripe accounts. [Read more about Stripe Multi-Accounts](http://docs.givewp.com/stripe-free)
321
  * New: Our Gutenberg blocks' UI was improved so they are have a better user experience.
322
+ * Tweak: Previous to this release we were packaging two TCPDF packages for backwards compatibility reason. We removed one of the packages and now are relying on the composer package. This means that you'll need to be running the PDF Receipts version add-on at 2.3.4 or higher for compatibility. [#4656](https://github.com/impress-org/givewp/pull/4656)
323
  * Fix: If you install GiveWP and didn't configure anything there would be a JavaScript error on the frontend if Stripe is not connected but enabled, which it is by default for new installs. [#4709](https://github.com/impress-org/givewp/pull/4709)
324
  * Fix: Improved how reports are rounding percentages so that the trend comparisons are more accurate. [#4766](https://github.com/impress-org/givewp/issues/4766)
325
+ * Fix: Monaco doesn't have states so don't display or require a state field when that country is selected. [#4773](https://github.com/impress-org/givewp/pull/4773)
326
  * Fix: Properly internationalized a tooltip in Stripe so translations properly display. [#4677](https://github.com/impress-org/givewp/pull/4677)
327
  * Fix: The "Add-ons" like on the plugin activation welcome screen was broken. [#4843](https://github.com/impress-org/givewp/pull/4843)
328
+ * Fix: Resolved a caching conflict with WP Rocket that was preventing donation forms from being cached properly. [#4546](https://github.com/impress-org/givewp/pull/4546)
329
  * Fix: Prevented a fatal error that could occur on the Donor profile screen in WP-Admin when the Stripe add-on is active but no Stripe payment gateways are enabled. [#4787](https://github.com/impress-org/givewp/pull/4787)
330
 
331
  = 2.6.3: May 19th, 2020 =
360
  * New: The Akismet SPAM feature has been improved with logs for admins to better understand why an email has been flagged as SPAM as well as a new Whitelist setting for them to allow email addresses to bypass the check. [#4110](https://github.com/impress-org/givewp/issues/4110)
361
  * Fix: Resolved an issue with the "Recalculate Income Amount and Donation Counts for a Form" not accurately recalculating when using Currency Switcher add-on. [#4447](https://github.com/impress-org/givewp/issues/4447)
362
  * Fix: Resolved an issue with large databases with more than 13,000 donors receiving a fatal error when viewing the donor's list screen. [#4444](https://github.com/impress-org/givewp/issues/4444)
363
+ * Tweak: You can now activate any plugin within the GiveWP Licenses tab. This resolves an issue with "this plugin does not have a valid header" error admins were receiving. [#4443](https://github.com/impress-org/givewp/issues/4443)
364
+ * Tweak: Updated the `[give_login]` shortcode text output to "Username or Email Address" to match WP's login. Note: you have been able to always log in using email but now the text accurately reflects that. [#4434](https://github.com/impress-org/givewp/issues/4434)
365
 
366
  = 2.5.13: January 15th, 2020 =
367
  * Fix: Resolved an issue when using button mode of multiple donation buttons appearing incorrectly within shortcodes, blocks, and widgets. [#4379](https://github.com/impress-org/givewp/issues/4379)
858
  This version contains a database upgrade that improves performance by migrating donation meta to a new revenue table. Please ensure you have a backup in place prior to updating and be sure to update GiveWP Core and then your GiveWP Add-ons to the latest versions for maximum compatibility.
859
 
860
  = 2.7.0 =
861
+ This version contains a database upgrade for donation forms and Stripe. Please ensure you have a backup in place prior to updating and be sure to update GiveWP Core and then your GiveWP Add-ons to the latest versions for maximum compatibility.
862
 
863
  = 2.1.3 =
864
  This version contains a database cleanup routine to delete donation payment meta that is not attached to any payment. For instance, if you deleted a payment the metadata associated with it still remained prior to this version. With this upgrade the orphaned data will be removed.
src/Framework/Migrations/MigrationsRunner.php CHANGED
@@ -41,7 +41,7 @@ class MigrationsRunner {
41
  public function __construct( MigrationsRegister $migrationRegister ) {
42
  $this->migrationRegister = $migrationRegister;
43
 
44
- $this->completedMigrations = get_option( self::MIGRATION_OPTION );
45
  }
46
 
47
  /**
41
  public function __construct( MigrationsRegister $migrationRegister ) {
42
  $this->migrationRegister = $migrationRegister;
43
 
44
+ $this->completedMigrations = get_option( self::MIGRATION_OPTION, [] );
45
  }
46
 
47
  /**
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitbc1e4b1f839682997c922614e42f48ae::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitf7b9e71440a86dd9e05c154d9bd1bd24::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -14,12 +14,12 @@ class InstalledVersions
14
  private static $installed = array (
15
  'root' =>
16
  array (
17
- 'pretty_version' => '2.9.2',
18
- 'version' => '2.9.2.0',
19
  'aliases' =>
20
  array (
21
  ),
22
- 'reference' => '33473beaad61464757eb049a7300de54333fa107',
23
  'name' => 'impress-org/give',
24
  ),
25
  'versions' =>
@@ -35,12 +35,12 @@ private static $installed = array (
35
  ),
36
  'impress-org/give' =>
37
  array (
38
- 'pretty_version' => '2.9.2',
39
- 'version' => '2.9.2.0',
40
  'aliases' =>
41
  array (
42
  ),
43
- 'reference' => '33473beaad61464757eb049a7300de54333fa107',
44
  ),
45
  'paypal/paypal-checkout-sdk' =>
46
  array (
14
  private static $installed = array (
15
  'root' =>
16
  array (
17
+ 'pretty_version' => '2.9.3',
18
+ 'version' => '2.9.3.0',
19
  'aliases' =>
20
  array (
21
  ),
22
+ 'reference' => '64f4fd9ec34ed680f3f96a7aa980a5aee46b253f',
23
  'name' => 'impress-org/give',
24
  ),
25
  'versions' =>
35
  ),
36
  'impress-org/give' =>
37
  array (
38
+ 'pretty_version' => '2.9.3',
39
+ 'version' => '2.9.3.0',
40
  'aliases' =>
41
  array (
42
  ),
43
+ 'reference' => '64f4fd9ec34ed680f3f96a7aa980a5aee46b253f',
44
  ),
45
  'paypal/paypal-checkout-sdk' =>
46
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitbc1e4b1f839682997c922614e42f48ae
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitbc1e4b1f839682997c922614e42f48ae
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitbc1e4b1f839682997c922614e42f48ae', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInitbc1e4b1f839682997c922614e42f48ae', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitbc1e4b1f839682997c922614e42f48ae::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitf7b9e71440a86dd9e05c154d9bd1bd24
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInitf7b9e71440a86dd9e05c154d9bd1bd24', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInitf7b9e71440a86dd9e05c154d9bd1bd24', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInitf7b9e71440a86dd9e05c154d9bd1bd24::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitbc1e4b1f839682997c922614e42f48ae
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
@@ -75,9 +75,9 @@ class ComposerStaticInitbc1e4b1f839682997c922614e42f48ae
75
  public static function getInitializer(ClassLoader $loader)
76
  {
77
  return \Closure::bind(function () use ($loader) {
78
- $loader->prefixLengthsPsr4 = ComposerStaticInitbc1e4b1f839682997c922614e42f48ae::$prefixLengthsPsr4;
79
- $loader->prefixDirsPsr4 = ComposerStaticInitbc1e4b1f839682997c922614e42f48ae::$prefixDirsPsr4;
80
- $loader->classMap = ComposerStaticInitbc1e4b1f839682997c922614e42f48ae::$classMap;
81
 
82
  }, null, ClassLoader::class);
83
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf7b9e71440a86dd9e05c154d9bd1bd24
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
75
  public static function getInitializer(ClassLoader $loader)
76
  {
77
  return \Closure::bind(function () use ($loader) {
78
+ $loader->prefixLengthsPsr4 = ComposerStaticInitf7b9e71440a86dd9e05c154d9bd1bd24::$prefixLengthsPsr4;
79
+ $loader->prefixDirsPsr4 = ComposerStaticInitf7b9e71440a86dd9e05c154d9bd1bd24::$prefixDirsPsr4;
80
+ $loader->classMap = ComposerStaticInitf7b9e71440a86dd9e05c154d9bd1bd24::$classMap;
81
 
82
  }, null, ClassLoader::class);
83
  }
vendor/composer/installed.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => '2.9.2',
5
- 'version' => '2.9.2.0',
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '33473beaad61464757eb049a7300de54333fa107',
10
  'name' => 'impress-org/give',
11
  ),
12
  'versions' =>
@@ -22,12 +22,12 @@
22
  ),
23
  'impress-org/give' =>
24
  array (
25
- 'pretty_version' => '2.9.2',
26
- 'version' => '2.9.2.0',
27
  'aliases' =>
28
  array (
29
  ),
30
- 'reference' => '33473beaad61464757eb049a7300de54333fa107',
31
  ),
32
  'paypal/paypal-checkout-sdk' =>
33
  array (
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => '2.9.3',
5
+ 'version' => '2.9.3.0',
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '64f4fd9ec34ed680f3f96a7aa980a5aee46b253f',
10
  'name' => 'impress-org/give',
11
  ),
12
  'versions' =>
22
  ),
23
  'impress-org/give' =>
24
  array (
25
+ 'pretty_version' => '2.9.3',
26
+ 'version' => '2.9.3.0',
27
  'aliases' =>
28
  array (
29
  ),
30
+ 'reference' => '64f4fd9ec34ed680f3f96a7aa980a5aee46b253f',
31
  ),
32
  'paypal/paypal-checkout-sdk' =>
33
  array (