
/*! For license information please see 98d6b177a2f0.embed.js.LICENSE.txt */
(()=>{var e,t,n,i,o={"../../clickhouse/mapper/index.js":(e,t,n)=>{var i=n("../../clickhouse/mapper/clickhouseDictionary.json");e.exports={compressPayload:function(e){var t={};return Object.keys(i).forEach(function(n){var o=n,r=i[n];t[o]=e[r]}),t},expandPayload:function(e){var t={},n=["up"],o=Object.keys(e).filter(function(e){return-1===Object.keys(i).indexOf(e)&&!n.includes(e)});return o.length&&(t.UNMATCHED={},o.forEach(function(n){t.UNMATCHED[n]=e[n]}),t.invalid=!0),Object.keys(i).forEach(function(o){if(!n.includes(o)){var r=o,s=i[o];e[r]&&(t[s]=e[r])}}),t}}},"./src/helpers/parseHref.ts":(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var i=n("./src/helpers/parseQueryParams.ts");const o=/#([^?&]+)/;function r(e){if(!e)return null;if(!o.test(e))return null;const t=/(#.+?)$/.exec(e);if(!t)return null;const n=t[0],r=o.exec(n);if(!r)return null;const s=r[1],a=(0,i.U)(n),c={key:s};return Object.assign(c,a),c}},"./src/helpers/parseQueryParams.ts":(e,t,n)=>{"use strict";function i(e,t=!0){if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,s]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(s):i[r]=s}catch(e){console.error(e)}}return i}n.d(t,{U:()=>i})},"./src/serviceContainer/getFrontendContainer.ts":(e,t,n)=>{"use strict";n.d(t,{w:()=>o});class i{constructor(){this.providers=new Map,this.cache=new Map}get(e,t=!0){const n=this.providers.get(e);if(!n)throw new Error(`${String(e)} is not provided`);if(t&&this.cache.has(e))return this.cache.get(e);const i=n();return t?(this.cache.has(e)||this.cache.set(e,i),i):i}provide(e,t){return this.providers.has(e)?(console.warn(`14 ${String(e)}`),this):(this.providers.set(e,t),this)}}function o(){return window.FUN_SERVICE_CONTAINER||(window.FUN_SERVICE_CONTAINER=new i),window.FUN_SERVICE_CONTAINER}},"./src/shared/common/debug/Debug.ts":(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var i=n("../murmur/dist/murmur.js"),o=n("../fun-storage/dist/webpack/funCookiesKeys.js"),r=n("../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs");class s{constructor(e,t=null){this.codes=t,this.expose=void 0!==r.A.get(o.e.DEBUG),this.prefix=e}createInstance(e){return new s(e,this.codes)}stringToColor(e){const t=(0,i.A)(e);let n="#";for(let e=0;e<3;e++)n+=("00"+(t>>8*e&255).toString(16)).substr(-2);return n}log(e,...t){this.expose&&(e=this.prefix?`${this.prefix}:${e}`:e,console.groupCollapsed("%c"+(new Date).toISOString().slice(11,-1)+" %c"+e,"color:grey;","font-weight:700;color:white;border-radius: 2px;padding:2px 5px;background-color:"+this.stringToColor(e)),console.log(...t),console.groupEnd(),this.push(e,...t))}logCode(e,...t){const n=this.codes?this.codes[e]:String(e),i=t.map(e=>"number"!=typeof e?e:this.codes&&this.codes[e]||e);this.log(n,...i)}push(e,...t){const n=window;Array.isArray(n.FUN_DEBUG_LOGS)&&n.FUN_DEBUG_LOGS.push({name:e,content:t})}}},"./src/shared/common/embed/helpers.ts":(e,t,n)=>{"use strict";n.d(t,{Ru:()=>o,cH:()=>r,dy:()=>s,i:()=>a});const i=/#(.+?)(&|$)/;function o(e,t){let n=e;for(;;){if(t(n))return n;if(!n.parentNode)return;n=n.parentNode}}function r(e,t){if(e.getAttribute)return e.getAttribute("data-"+t)||void 0}function s(e){if(!e)return null;if(!i.test(e))return null;const t=/(#.+?)$/.exec(e);if(!t)return null;const n=t[0],o=i.exec(n);if(!o)return null;const r=o[1],s=function(e,t=!0){if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,s]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(s):i[r]=s}catch(e){console.error(e)}}return i}(n),a={key:r};return Object.assign(a,s),a}function a(e){const t=[];for(const[n,i]of e)t.push(`${encodeURIComponent(n)}=${encodeURIComponent(i)}`);return t.join("&")}},"./src/shared/types/embed/frontendEmbedService.ts":(e,t,n)=>{"use strict";var i;n.d(t,{i:()=>i}),function(e){e[e.BACKDROP=1]="BACKDROP",e[e.STATIC_CONFIG=2]="STATIC_CONFIG",e[e.KEYS_KEEPER=3]="KEYS_KEEPER",e[e.COLLECTOR=4]="COLLECTOR",e[e.RESOLVER=5]="RESOLVER",e[e.DEBUG=6]="DEBUG",e[e.TRACKING_URLS=7]="TRACKING_URLS",e[e.FUN_SESSION_STORAGE=8]="FUN_SESSION_STORAGE",e[e.EMBED_ELEMENTS_API=9]="EMBED_ELEMENTS_API",e[e.EMBED_CHECKOUT_API=10]="EMBED_CHECKOUT_API",e[e.EMBED_INTERNAL_API=11]="EMBED_INTERNAL_API",e[e.EMBED_FORMS_API=12]="EMBED_FORMS_API",e[e.EMBED_CONFIG=13]="EMBED_CONFIG",e[e.EMBED_TRACKER=14]="EMBED_TRACKER",e[e.FUN_EXPERIMENTS_STORAGE=15]="FUN_EXPERIMENTS_STORAGE",e[e.CHECKOUT=16]="CHECKOUT",e[e.EMBED_ELEMENTS_SERVICE=17]="EMBED_ELEMENTS_SERVICE",e[e.ELEMENTS_API=18]="ELEMENTS_API",e[e.EVENT_EMITTER=19]="EVENT_EMITTER",e[e.HTML_ELEMENT_STYLE_MANAGER=20]="HTML_ELEMENT_STYLE_MANAGER",e[e.FUN_TRACKER_STORAGE=21]="FUN_TRACKER_STORAGE",e[e.FUN_STAT_STORAGE=22]="FUN_STAT_STORAGE",e[e.FUN_COOKIES_MIGRATOR=23]="FUN_COOKIES_MIGRATOR",e[e.FUN_COOKIES_MANAGER=24]="FUN_COOKIES_MANAGER",e[e.USER_SESSION=25]="USER_SESSION",e[e.FUN_DEBUG_STORAGE=26]="FUN_DEBUG_STORAGE",e[e.SENTRY_CLIENT=27]="SENTRY_CLIENT",e[e.EXPERIMENTS_CONTROLLER=28]="EXPERIMENTS_CONTROLLER",e[e.CHECKOUT_SKELETON=29]="CHECKOUT_SKELETON",e[e.EMBED_ELEMENTS_URL_API=30]="EMBED_ELEMENTS_URL_API",e[e.CHECKOUT_STEPLESS=31]="CHECKOUT_STEPLESS",e[e.CONSENT_MANAGER_API=32]="CONSENT_MANAGER_API",e[e.GOALS_LOADER=33]="GOALS_LOADER"}(i||(i={}))},"../../node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js!../../node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./src/preloader/backdrop.css":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n("../../node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/runtime/sourceMaps.js"),o=n.n(i),r=n("../../node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/runtime/api.js"),s=n.n(r)()(o());s.push([e.id,".fun-widget-backdrop-holder {\n  left: 0 !important;\n  top: 0 !important;\n  bottom: 0 !important;\n  right: 0 !important;\n  width: 100% !important;\n  height: 100% !important;\n  display: block !important;\n  position: fixed !important;\n  z-index: 2147483646 !important;\n  transition: opacity 0.2s ease-in-out !important;\n  transform: translateZ(99px) !important;\n  animation: fun-widget-backdrop 0.2s ease-in-out !important;\n}\n\n.fun-widget-backdrop {\n  position: absolute !important;\n  left: 50% !important;\n  top: 50% !important;\n  animation:\n    fun-widget-backdrop-rotate 1.5s infinite linear,\n    fun-widget-backdrop-fadein 0.6s ease-in-out !important;\n  padding: 0 !important;\n  margin: -30px 0 0 -30px !important;\n  width: 60px !important;\n  min-width: 60px !important;\n  max-width: 60px !important;\n  height: 60px !important;\n  min-height: 60px !important;\n  max-height: 60px !important;\n  border-radius: 50% !important;\n  border: 4px solid !important;\n  border-color: #e3e3e3 #e3e3e3 #666666 #666666 !important;\n}\n\n@keyframes fun-widget-backdrop {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-fadein {\n  0% {\n    opacity: 0;\n  }\n  33% {\n    opacity: 0;\n  }\n  66% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-rotate {\n  0% {\n    rotate: 0deg;\n  }\n  100% {\n    rotate: 359deg;\n  }\n}\n","",{version:3,sources:["webpack://./src/preloader/backdrop.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,oBAAoB;EACpB,mBAAmB;EACnB,sBAAsB;EACtB,uBAAuB;EACvB,yBAAyB;EACzB,0BAA0B;EAC1B,8BAA8B;EAC9B,+CAA+C;EAC/C,sCAAsC;EACtC,0DAA0D;AAC5D;;AAEA;EACE,6BAA6B;EAC7B,oBAAoB;EACpB,mBAAmB;EACnB;;0DAEwD;EACxD,qBAAqB;EACrB,kCAAkC;EAClC,sBAAsB;EACtB,0BAA0B;EAC1B,0BAA0B;EAC1B,uBAAuB;EACvB,2BAA2B;EAC3B,2BAA2B;EAC3B,6BAA6B;EAC7B,4BAA4B;EAC5B,wDAAwD;AAC1D;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA;EACE;IACE,YAAY;EACd;EACA;IACE,cAAc;EAChB;AACF",sourcesContent:[".fun-widget-backdrop-holder {\n  left: 0 !important;\n  top: 0 !important;\n  bottom: 0 !important;\n  right: 0 !important;\n  width: 100% !important;\n  height: 100% !important;\n  display: block !important;\n  position: fixed !important;\n  z-index: 2147483646 !important;\n  transition: opacity 0.2s ease-in-out !important;\n  transform: translateZ(99px) !important;\n  animation: fun-widget-backdrop 0.2s ease-in-out !important;\n}\n\n.fun-widget-backdrop {\n  position: absolute !important;\n  left: 50% !important;\n  top: 50% !important;\n  animation:\n    fun-widget-backdrop-rotate 1.5s infinite linear,\n    fun-widget-backdrop-fadein 0.6s ease-in-out !important;\n  padding: 0 !important;\n  margin: -30px 0 0 -30px !important;\n  width: 60px !important;\n  min-width: 60px !important;\n  max-width: 60px !important;\n  height: 60px !important;\n  min-height: 60px !important;\n  max-height: 60px !important;\n  border-radius: 50% !important;\n  border: 4px solid !important;\n  border-color: #e3e3e3 #e3e3e3 #666666 #666666 !important;\n}\n\n@keyframes fun-widget-backdrop {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-fadein {\n  0% {\n    opacity: 0;\n  }\n  33% {\n    opacity: 0;\n  }\n  66% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n@keyframes fun-widget-backdrop-rotate {\n  0% {\n    rotate: 0deg;\n  }\n  100% {\n    rotate: 359deg;\n  }\n}\n"],sourceRoot:""}]);const a=s},"../../node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/runtime/api.js":e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);i&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},"../../node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/runtime/sourceMaps.js":e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),r="/*# ".concat(o," */");return[t].concat([r]).join("\n")}return[t].join("\n")}},"./src/preloader/backdrop.css":(e,t,n)=>{var i=n("../../node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js!../../node_modules/.pnpm/resolve-url-loader@5.0.0/node_modules/resolve-url-loader/index.js!./src/preloader/backdrop.css");i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},"../fun-storage/dist/webpack/funCookiesKeys.js":(e,t,n)=>{"use strict";var i;n.d(t,{e:()=>i}),function(e){e.SESSION="fundraiseup_session",e.FUNC="fundraiseup_func",e.PERFORMANCE="fundraiseup_stat",e.CONSENT="fundraiseup_consent",e.MARKETING="fundraiseup_mark",e.CID="fundraiseup_cid",e.DEBUG="fundraiseup_debug",e.EXPERIMENTS="fundraiseup_experiments",e.FUN_AB_STORAGE="fundraiseup_ab_test",e.DEV_MODE="developmentMode"}(i||(i={}))},"../murmur/dist/murmur.js":(e,t)=>{"use strict";t.A=function(e,t=0){let n,i,o,r,s,a,c,l;for(n=3&e.length,i=e.length-n,o=t,s=3432918353,a=461845907,l=0;l<i;)c=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*a+(((c>>>16)*a&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,r=5*(65535&o)+((5*(o>>>16)&65535)<<16)&4294967295,o=27492+(65535&r)+(((r>>>16)+58964&65535)<<16);switch(c=0,n){case 3:c^=(255&e.charCodeAt(l+2))<<16;break;case 2:c^=(255&e.charCodeAt(l+1))<<8;break;case 1:c^=255&e.charCodeAt(l),c=(65535&c)*s+(((c>>>16)*s&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(65535&c)*a+(((c>>>16)*a&65535)<<16)&4294967295,o^=c}return o^=e.length,o^=o>>>16,o=2246822507*(65535&o)+((2246822507*(o>>>16)&65535)<<16)&4294967295,o^=o>>>13,o=3266489909*(65535&o)+((3266489909*(o>>>16)&65535)<<16)&4294967295,o^=o>>>16,o>>>0}},"../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs":(e,t,n)=>{"use strict";function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}n.d(t,{A:()=>o});var o=function e(t,n){function o(e,o,r){if("undefined"!=typeof document){"number"==typeof(r=i({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in r)r[a]&&(s+="; "+a,!0!==r[a]&&(s+="="+r[a].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),s=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(i[a]=t.read(s,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){o(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},"../../clickhouse/mapper/clickhouseDictionary.json":e=>{"use strict";e.exports=JSON.parse('{"u":"URL","ck":"companyKey","cm":"checkoutCompanyKey","cd":"clientId","ct":"clientTime","cz":"clientTimeZone","lo":"clientLocale","ek":"elementKey","el":"elementLocale","er":"elementReminderKey","ey":"elementType","ep":"elementParams","et":"eventType","te":"customEventType","ev":"customEventData","ed":"elementData","eg":"eventTags","pv":"pageViewId","pl":"pageViewLifetime","r":"referer","rh":"resolutionHeight","rw":"resolutionWidth","t":"title","hl":"uaHistoryLength","wk":"widgetKey","wh":"windowHeight","wx":"windowScrollX","wy":"windowScrollY","ww":"windowWidth","cv":"checkoutViewId","ce":"checkoutError","co":"checkoutOpenTime","cl":"checkoutLifetime","cs":"checkoutScreen","sd":"checkoutScreenData","cc":"checkoutClickElement","cf":"checkoutFrequency","fp":"clickDOMPath","fh":"clickAHref","ft":"clickText","dk":"chargeCampaignKey","dd":"chargeKey","du":"chargeInUSDAmount","di":"chargeInDefaultCurrencyAmount","da":"chargeAmount","dc":"chargeCurrency","df":"chargeFeeCovered","dm":"chargePaymentMethod","dr":"chargeIsRecurring","dn":"chargeHasComment","dh":"chargeHasTribute","dg":"chargeGoal","st":"splitTestName","sv":"splitTestVariant","pm":"paymentMethod","ws":"widgetSession","lm":"livemode","fv":"funSnippetVersion","fe":"funEmbedRelease","vf":"isFundraiseupVisitor","lc":"checkoutLocale","cr":"checkoutIsRecurring","cy":"checkoutCurrency","ca":"checkoutAmount","cu":"checkoutInUSDAmount","yr":"checkoutCurrencyRate","fa":"checkoutDefaultAmount","cp":"checkoutPresets","ps":"pageScripts","ol":"clientOnLine","dt":"clientDoNotTrack","pr":"clientDevicePixelRatio","rm":"clientDeviceMemory","hc":"clientHardwareConcurrency","nt":"clientConnectionType","nd":"clientConnectionDownlink","nr":"clientConnectionRTT","ne":"clientConnectionEffectiveType","bc":"clientBatteryCharging","bt":"clientBatteryChargingTime","bd":"clientBatteryDischargingTime","bl":"clientBatteryLevel","de":"dataLayerEventName","dp":"dataLayerParams","fn":"pixelEventName","fs":"pixelEventData","gk":"fundraisingGroupKey","pk":"fundraisingPageKey","pc":"fundraisingPageCustomerKey","ec":"eventComment","ba":"uaIsInApp","uw":"uaWebdriver","rd":"duration","se":"source","sk":"supporterKey","ak":"agentKey","pu":"pointingDeviceIsUsed","fo":"donationType","cn":"clientCookieConsent","tt":"checkoutType","pi":"paymentIntentId","ds":"donationItems"}')}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.m=o,s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var o=Object.create(null);s.r(o);var r={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>r[e]=()=>n[e]);return r.default=()=>n,s.d(o,r),o},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+"."+{31:"58f89a13fbe8",604:"3ddf429a7c2a",707:"072ec6e1ef40"}[e]+"."+(707===e?"SplitTesting":e)+".js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i="@fundraiseup/embed:",s.l=(e,t,o,r)=>{if(n[e])n[e].push(t);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==i+o){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",i+o),a.src=e),n[e]=[t];var p=(t,i)=>{a.onerror=a.onload=null,clearTimeout(h);var o=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(i)),t)return t(i)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.p="https://static.fundraiseup.com/",(()=>{if(void 0!==s){var e=s.u,t=s.e,n={},i={};s.u=function(t){return e(t)+(n.hasOwnProperty(t)?"?"+n[t]:"")},s.e=function(o){return t(o).catch(function(t){var r=i.hasOwnProperty(o)?i[o]:3;if(r<1){var a=e(o);throw t.message="Loading chunk "+o+" failed after 3 retries.\n("+a+")",t.request=a,t}return new Promise(function(e){var t=3-r+1;setTimeout(function(){var a="cache-bust=true&retry-attempt="+t;n[o]=a,i[o]=r-1,e(s.e(o))},0)})})}}})(),(()=>{var e={722:0};s.f.j=(t,n)=>{var i=s.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise((n,o)=>i=e[t]=[n,o]);n.push(i[2]=o);var r=s.p+s.u(t),a=new Error;s.l(r,n=>{if(s.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+r+")",a.name="ChunkLoadError",a.type=o,a.request=r,i[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var i,o,[r,a,c]=n,l=0;if(r.some(t=>0!==e[t])){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);c&&c(s)}for(t&&t(n);l<r.length;l++)o=r[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.funEmbed=self.funEmbed||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=s("./src/shared/common/debug/Debug.ts");const t={};function n(e){return function(e){const i=t[e];if(i)return i;const o=new Promise(function(t,i){setTimeout(()=>{const o=window.document.createElement("script");o.type="text/javascript",o.charset="UTF-8",o.async=!0,o.onerror=function(e){i(e)},o.onload=function(){t(!0)},o.src=e,window.document.documentElement.appendChild(o),n._immedeatly&&t(!0)},0)});return t[e]=o,o}(e)}var i;n._immedeatly=!1,function(e){e.DUMMY_EXPERIMENT="DummyExperiment",e.CHECKOUT_BUNDLE_EXPERIMENT="CheckoutBundleExperiment",e.DONOR_PORTAL_TEST_EXPERIMENT="DonorPortalTestExperiment",e.CAMPAIGN_PAGE_TEST_EXPERIMENT="CampaignPageTestExperiment",e.EMBED_TEST_EXPERIMENT="EmbedTestExperiment",e.UPGRADE_LINKS_IN_INSTALLMENT_EMAILS_AI_V2_EXPERIMENT="UpgradeLinksInInstallmentEmailsAIv2Experiment",e.CHECKOUT_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT="CheckoutWithoutPreDonationUpsellExperiment",e.CAMPAIGN_PAGES_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT="CampaignPagesWithoutPreDonationUpsellExperiment",e.SMART_COVERING_FEE_CHECKOUT_V_2_EXPERIMENT="SmartCoveringFeeSuggestionCheckoutExperimentV2",e.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_2_EXPERIMENT="SmartCoveringFeeSuggestionCampaignPagesExperimentV2",e.AA_CHECKOUT_EXPERIMENT="AACheckoutExperiment",e.SMART_POST_DONATION_UPSELL_CHECKOUT_V_2_EXPERIMENT="SmartPostDonationUpsellCheckoutV2Experiment",e.SMART_POST_DONATION_UPSELL_CAMPAIGN_PAGES_V_2_EXPERIMENT="SmartPostDonationUpsellCampaignPagesV2Experiment",e.UPSELL_AMOUNTS_DATASET_MODAL_EXPERIMENT="UpsellAmountsDatasetModalExperiment",e.UPSELL_AMOUNTS_DATASET_PAGES_EXPERIMENT="UpsellAmountsDatasetPagesExperiment",e.UPGRADE_LINKS_PAGE_AI_V_2_EXPERIMENT="UpgradeLinksPageAIv2Experiment",e.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT="SteplessMobileCheckoutExperiment",e.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CHECKOUT_V_3_EXPERIMENT="CollectDatasetPostDonationUpsellAmountCheckoutV3Experiment",e.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CAMPAIGN_PAGES_V_3_EXPERIMENT="CollectDatasetPostDonationUpsellAmountCampaignPagesV3Experiment",e.SMART_PDU_CHECKOUT_V_3_EXPERIMENT="SmartPDUCheckoutV3Experiment",e.SMART_PDU_CAMPAIGN_PAGES_V_3_EXPERIMENT="SmartPDUCampaignPagesV3Experiment",e.RECURRING_FREQUENCY_HINT_CAMPAIGN_PAGES_EXPERIMENT="RecurringFrequencyHintCampaignPagesExperiment",e.RECURRING_FREQUENCY_HINT_CHECKOUT_DESKTOP_EXPERIMENT="RecurringFrequencyHintCheckoutDesktopExperiment",e.RECURRING_FREQUENCY_HINT_CHECKOUT_MOBILE_EXPERIMENT="RecurringFrequencyHintCheckoutMobileExperiment",e.CHECKOUT_STEPS_CAMPAIGN_PAGES_EXPERIMENT="CheckoutStepsCampaignPagesExperiment",e.CHECKOUT_STEPS_CHECKOUT_MODAL_EXPERIMENT="CheckoutStepsCheckoutModalExperiment",e.DONOR_RATING_CHECKOUT_EXPERIMENT="DonorRatingCheckoutExperiment",e.DONOR_RATING_CAMPAIGN_PAGES_EXPERIMENT="DonorRatingCampaignPagesExperiment",e.ML_DONATION_RETRY_V_3_EXPERIMENT="MlDonationRetryV3Experiment",e.AVERAGE_DONATION_HINT_EXPERIMENT="AverageDonationHintExperiment",e.AVERAGE_DONATION_HINT_CAMPAIGN_PAGES_EXPERIMENT="AverageDonationHintCampaignPagesExperiment",e.FAST_TRACK_CAMPAIGN_PAGES_EXPERIMENT="FastTrackCampaignPagesExperiment",e.SMART_COVERING_FEE_CHECKOUT_V_4_EXPERIMENT="SmartCoveringFeeCheckoutV4Experiment",e.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_4_EXPERIMENT="SmartCoveringFeeCampaignPagesV4Experiment",e.MULTIPLE_RECURRING_PLAN_CHECKOUT_EXPERIMENT="MultipleRecurringPlanCheckoutExperiment",e.MULTIPLE_RECURRING_PLAN_CAMPAIGN_PAGES_EXPERIMENT="MultipleRecurringPlanCampaignPagesExperiment",e.AMOUNT_PRESETS_CHECKOUT_V_5_EXPERIMENT="AmountPresetsCheckoutV5Experiment",e.AMOUNT_PRESETS_PAGES_V_5_EXPERIMENT="AmountPresetsPagesV5Experiment",e.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT="AmountPresetsDonationFormV5Experiment",e.DONATE_FROM_LOGIN_PAGE_EXPERIMENT="DonateFromLoginPageExperiment",e.STRIPE_LINK_CHECKOUT_EXPERIMENT="StripeLinkCheckoutExperiment",e.STRIPE_LINK_PAGES_EXPERIMENT="StripeLinkPagesExperiment",e.FEE_COVERAGE_SELECTION_MODAL_EXPERIMENT="FeeCoverageSelectionModalExperiment",e.FEE_COVERAGE_SELECTION_PAGES_EXPERIMENT="FeeCoverageSelectionPagesExperiment",e.DONATE_BY_VOICE_V2_MODAL_EXPERIMENT="DonateByVoiceV2ModalExperiment",e.DONATE_BY_VOICE_V2_PAGES_EXPERIMENT="DonateByVoiceV2PagesExperiment",e.DONOR_PORTAL_COLORFUL_DONATE_BUTTON_EXPERIMENT="DonorPortalColorfulDonateButtonExperiment",e.UPSELL_SCREEN_CAMPAIGN_PAGE_V_3_EXPERIMENT="UpsellScreenCampaingPageV3Experiment",e.LAPSED_DONOR_REENGAGEMENT_EXPERIMENT="LapsedDonorReengagementExperiment",e.SOFT_UPGRADE_LINKS_EXPERIMENT="SoftUpgradeLinksExperiment",e.PRE_DONATION_AMOUNTS_100_200_USD_PAGES_EXPERIMENT="PreDonationAmounts100200USDPagesExperiment",e.PRE_DONATION_AMOUNTS_100_200_USD_MODAL_EXPERIMENT="PreDonationAmounts100200USDModalExperiment",e.DONOR_PORTAL_DONATION_SHARING_BUTTON_EXPERIMENT="DonorPortalDonationSharingButtonExperiment"}(i||(i={}));const o={[i.DUMMY_EXPERIMENT]:"33802",[i.CHECKOUT_BUNDLE_EXPERIMENT]:"61172",[i.DONOR_PORTAL_TEST_EXPERIMENT]:"68092",[i.CAMPAIGN_PAGE_TEST_EXPERIMENT]:"68383",[i.EMBED_TEST_EXPERIMENT]:"65492",[i.CHECKOUT_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT]:"73814",[i.CAMPAIGN_PAGES_WITHOUT_PRE_DONATION_UPSELL_EXPERIMENT]:"73816",[i.SMART_COVERING_FEE_CHECKOUT_V_2_EXPERIMENT]:"82767-modal",[i.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_2_EXPERIMENT]:"82767-pages",[i.AA_CHECKOUT_EXPERIMENT]:"77715",[i.SMART_POST_DONATION_UPSELL_CHECKOUT_V_2_EXPERIMENT]:"79870-modal",[i.SMART_POST_DONATION_UPSELL_CAMPAIGN_PAGES_V_2_EXPERIMENT]:"79870-pages",[i.UPSELL_AMOUNTS_DATASET_MODAL_EXPERIMENT]:"87159-modal",[i.UPSELL_AMOUNTS_DATASET_PAGES_EXPERIMENT]:"87159-pages",[i.UPGRADE_LINKS_IN_INSTALLMENT_EMAILS_AI_V2_EXPERIMENT]:"87202",[i.UPGRADE_LINKS_PAGE_AI_V_2_EXPERIMENT]:"87190",[i.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT]:"60395",[i.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CHECKOUT_V_3_EXPERIMENT]:"89924-modal",[i.COLLECT_DATASET_POST_DONATION_UPSELL_AMOUNT_CAMPAIGN_PAGES_V_3_EXPERIMENT]:"89924-pages",[i.SMART_PDU_CHECKOUT_V_3_EXPERIMENT]:"89260-modal",[i.SMART_PDU_CAMPAIGN_PAGES_V_3_EXPERIMENT]:"89260-pages",[i.RECURRING_FREQUENCY_HINT_CAMPAIGN_PAGES_EXPERIMENT]:"59392-pages",[i.RECURRING_FREQUENCY_HINT_CHECKOUT_DESKTOP_EXPERIMENT]:"59392-desktop",[i.RECURRING_FREQUENCY_HINT_CHECKOUT_MOBILE_EXPERIMENT]:"59392-mobile",[i.CHECKOUT_STEPS_CAMPAIGN_PAGES_EXPERIMENT]:"133620-pages",[i.CHECKOUT_STEPS_CHECKOUT_MODAL_EXPERIMENT]:"133620-modal",[i.DONOR_RATING_CHECKOUT_EXPERIMENT]:"99706-modal",[i.DONOR_RATING_CAMPAIGN_PAGES_EXPERIMENT]:"99706-pages",[i.ML_DONATION_RETRY_V_3_EXPERIMENT]:"99145",[i.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT]:"115114-DF",[i.AVERAGE_DONATION_HINT_EXPERIMENT]:"101523-modal",[i.AVERAGE_DONATION_HINT_CAMPAIGN_PAGES_EXPERIMENT]:"101523-pages",[i.FAST_TRACK_CAMPAIGN_PAGES_EXPERIMENT]:"101284-pages",[i.SMART_COVERING_FEE_CAMPAIGN_PAGES_V_4_EXPERIMENT]:"113277-pages",[i.SMART_COVERING_FEE_CHECKOUT_V_4_EXPERIMENT]:"113277-modal",[i.MULTIPLE_RECURRING_PLAN_CHECKOUT_EXPERIMENT]:"114635-modal",[i.MULTIPLE_RECURRING_PLAN_CAMPAIGN_PAGES_EXPERIMENT]:"114635-pages",[i.AMOUNT_PRESETS_CHECKOUT_V_5_EXPERIMENT]:"115114-modal",[i.AMOUNT_PRESETS_PAGES_V_5_EXPERIMENT]:"115114-pages",[i.DONATE_FROM_LOGIN_PAGE_EXPERIMENT]:"124886",[i.DONOR_PORTAL_COLORFUL_DONATE_BUTTON_EXPERIMENT]:"120437",[i.STRIPE_LINK_CHECKOUT_EXPERIMENT]:"115596-modal",[i.STRIPE_LINK_PAGES_EXPERIMENT]:"115596-pages",[i.FEE_COVERAGE_SELECTION_MODAL_EXPERIMENT]:"101219-modal",[i.FEE_COVERAGE_SELECTION_PAGES_EXPERIMENT]:"101219-pages",[i.DONATE_BY_VOICE_V2_MODAL_EXPERIMENT]:"138976-modal",[i.DONATE_BY_VOICE_V2_PAGES_EXPERIMENT]:"138976-pages",[i.UPSELL_SCREEN_CAMPAIGN_PAGE_V_3_EXPERIMENT]:"118987",[i.LAPSED_DONOR_REENGAGEMENT_EXPERIMENT]:"120522",[i.SOFT_UPGRADE_LINKS_EXPERIMENT]:"124937",[i.PRE_DONATION_AMOUNTS_100_200_USD_PAGES_EXPERIMENT]:"135267-pages",[i.PRE_DONATION_AMOUNTS_100_200_USD_MODAL_EXPERIMENT]:"135267-modal",[i.DONOR_PORTAL_DONATION_SHARING_BUTTON_EXPERIMENT]:"119139"};var r,a,c,l,d,u,p,h,E,m,g,T,f,_,v,y,S,N,w,A,O,I,C,R,P,b,L,D,M,k,x,U,F,G,K,B,V,H,j,X,Y,z,W,$,q,J,Z,Q,ee,te,ne,ie,oe,re,se,ae,ce,le,de,ue,pe,he,Ee;Object.values(o),function(e){e.BILLING="billing",e.EMBED="embed",e.CAMPAIGN_PAGES="campaignPages",e.DONOR_PORTAL="donorPortal",e.EMAILS="emails"}(r||(r={})),function(e){e.CONTROL="control",e.TEST="test"}(a||(a={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(c||(c={})),function(e){e.CONTROL="control",e.TEST="test"}(l||(l={})),function(e){e.CONTROL="control",e.TEST="test"}(d||(d={})),function(e){e.CONTROL="control",e.TEST="test"}(u||(u={})),function(e){e.CONTROL="control",e.TEST="test"}(p||(p={})),function(e){e.CONTROL="control",e.TEST="test"}(h||(h={})),function(e){e.CONTROL="control",e.TEST="test"}(E||(E={})),function(e){e.CONTROL="control",e.TEST="test"}(m||(m={})),function(e){e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(g||(g={})),function(e){e.CONTROL="control",e.TEST="test"}(T||(T={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(f||(f={})),function(e){e.CONTROL="control",e.TEST="test"}(_||(_={})),function(e){e.CONTROL="control",e.TEST="test"}(v||(v={})),function(e){e.CONTROL="control",e.TEST="test"}(y||(y={})),function(e){e.CONTROL="control",e.TEST="test"}(S||(S={})),function(e){e.CONTROL="control",e.TEST="test"}(N||(N={})),function(e){e.CONTROL="control",e.TEST="test"}(w||(w={})),function(e){e.CONTROL="control",e.TEST="test"}(A||(A={})),function(e){e.CONTROL="control",e.TEST="test"}(O||(O={})),function(e){e.CONTROL="control",e.TEST="test"}(I||(I={})),function(e){e.CONTROL="control",e.TEST="test"}(C||(C={})),function(e){e.CONTROL="control",e.TEST="test"}(R||(R={})),function(e){e.CONTROL="control",e.TEST="test"}(P||(P={})),function(e){e.CONTROL="control",e.TEST="test"}(b||(b={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(L||(L={})),function(e){e.CONTROL="control",e.TEST="test"}(D||(D={})),function(e){e.CONTROL="control",e.TEST="test"}(M||(M={})),function(e){e.CONTROL="control",e.TEST="test"}(k||(k={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(x||(x={})),function(e){e.CONTROL="control",e.TEST="test"}(U||(U={})),function(e){e.CONTROL="control",e.TEST="test"}(F||(F={})),function(e){e.CONTROL="control",e.TEST="test"}(G||(G={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(K||(K={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(B||(B={})),function(e){e.CONTROL="control",e.TEST="test"}(V||(V={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3",e.TEST_4="test-4"}(H||(H={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3"}(j||(j={})),function(e){e.CONTROL="control",e.TEST="test"}(X||(X={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(Y||(Y={})),function(e){e.CONTROL="control",e.TEST="test"}(z||(z={})),function(e){e.CONTROL="control",e.TEST="test"}(W||(W={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}($||($={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2"}(q||(q={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3",e.TEST_4="test-4"}(J||(J={})),function(e){e.CONTROL="control",e.TEST_1="test-1",e.TEST_2="test-2",e.TEST_3="test-3",e.TEST_4="test-4"}(Z||(Z={})),function(e){e.CONTROL="control",e.TEST="test"}(Q||(Q={})),function(e){e.CONTROL="control",e.TEST="test"}(ee||(ee={})),function(e){e.CONTROL="control",e.TEST="test"}(te||(te={})),function(e){e.CONTROL="control",e.TEST="test"}(ne||(ne={})),function(e){e.CONTROL="control",e.TEST="test"}(ie||(ie={})),function(e){e.CONTROL="control",e.TEST="test"}(oe||(oe={})),function(e){e.CONTROL="control",e.TEST="test"}(re||(re={})),function(e){e.CONTROL="control",e.TEST="test"}(se||(se={})),function(e){e.CONTROL="control",e.TEST="test"}(ae||(ae={})),function(e){e.CONTROL="control",e.TEST="test"}(ce||(ce={})),function(e){e.CONTROL="control",e.TEST="test"}(le||(le={})),function(e){e.CONTROL="control",e.TEST="test"}(de||(de={})),function(e){e.CONTROL="control",e.TEST="test"}(ue||(ue={})),function(e){e.CONTROL="control",e.TEST="test"}(pe||(pe={})),function(e){e.AUSTRALIA="AU",e.AUSTRIA="AT",e.BELGIUM="BE",e.BRAZIL="BR",e.BULGARIA="BG",e.CANADA="CA",e.CROATIA="HR",e.CYPRUS="CY",e.CZECH_REPUBLIC="CZ",e.DENMARK="DK",e.ESTONIA="EE",e.FINLAND="FI",e.FRANCE="FR",e.GERMANY="DE",e.GREECE="GR",e.HONG_KONG="HK",e.HUNGARY="HU",e.INDIA="IN",e.INDONESIA="ID",e.IRELAND="IE",e.ITALY="IT",e.JAPAN="JP",e.LATVIA="LV",e.LITHUANIA="LT",e.LUXEMBOURG="LU",e.MALAYSIA="MY",e.MALTA="MT",e.MEXICO="MX",e.NETHERLANDS="NL",e.NEW_ZEALAND="NZ",e.NORWAY="NO",e.POLAND="PL",e.PORTUGAL="PT",e.ROMANIA="RO",e.SINGAPORE="SG",e.SLOVAKIA="SK",e.SLOVENIA="SI",e.SPAIN="ES",e.SWEDEN="SE",e.SWITZERLAND="CH",e.THAILAND="TH",e.UNITED_ARAB_EMIRATES="AE",e.UNITED_KINGDOM="GB",e.UNITED_STATES="US",e.GIBRALTAR="GI",e.LIECHTENSTEIN="LI",e.PHILIPPINES="PH",e.ISRAEL="IL"}(he||(he={})),function(e){e.V5_1="v5.1",e.V5_2="v5.2",e.V5_3="v5.3",e.V5_4="v5.4"}(Ee||(Ee={}));const me=/^E[A-Z\d]{7}$/;H.TEST_1,Ee.V5_1,H.TEST_2,Ee.V5_2,H.TEST_3,Ee.V5_3,H.TEST_4,Ee.V5_4;var ge,Te,fe,_e,ve,ye=s("./src/shared/types/embed/frontendEmbedService.ts");!function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(ge||(ge={})),function(e){e.type="type",e.recurring="recurring",e.amount="amount",e.modifyAmount="modifyAmount",e.designationId="designationId",e.fundraiser="fundraiser",e.modifyDesignation="modifyDesignation",e.firstName="firstName",e.lastName="lastName",e.email="email",e.fundraiseupLivemode="fundraiseupLivemode"}(Te||(Te={})),function(e){e.ELEMENTS="ELEMENTS",e.CHECKOUT="CHECKOUT"}(fe||(fe={})),function(e){e.REMINDER="reminder",e.DONATE_BUTTON="donateButton",e.STICKY_BUTTON="stickyButton",e.IMAGE_CARD="imageCard",e.TEXT_LINK="textLink",e.DONATION_FORM="donationForm",e.SIMPLE_FORM="simpleForm",e.GOAL_METER="goalMeter",e.STAT_COUNTER="statCounter",e.IMPACT_SLIDER="impactSlider",e.DONATION_LEVELS="donationLevels",e.BUTTON_GROUP="buttonGroup",e.FLOATING_BUTTON="floatingButton",e.MESSAGE_BAR="messageBar",e.TOP_SUPPORTERS="topSupporters",e.TOP_LOCATIONS="topLocations",e.SOCIAL_PROOF="socialProof",e.QR_CODE="qrCode",e.RECENT_DONATIONS="recentDonations",e.P2P_BUTTON="p2pButton",e.P2P_LINK="p2pLink",e.TOP_FUNDRAISERS="topFundraisers",e.DONOR_MAP="donorMap",e.LIGHTBOX="lightbox",e.FUNDRAISING_PAGE_LINK="fundraisingPageLink",e.FUNDRAISING_PAGE_INVITE_LINK="fundraisingPageInviteLink",e.LINK="link",e.DIRECT_LINK="direct",e.DEBUG_PANEL="debugPanel",e.TEST_MODE_PANEL="testModePanel",e.SPLIT_TESTING="splitTesting",e.JS_API="jsApi"}(_e||(_e={})),function(e){e.POPUP="POPUP",e.CHECKOUT="CHECKOUT",e.P2P_FORM="P2P_FORM"}(ve||(ve={}));const Se=[he.UNITED_KINGDOM,he.CANADA,he.GERMANY],Ne=e=>!Se.includes(e),we=(e,t)=>{const{disabledAccounts:n,enabledAccounts:i}=e;if(null==n?void 0:n.find(e=>e===t))return!1;const o=null==i?void 0:i.find(e=>e===t);return!((null==i?void 0:i.length)&&!o)};class Ae extends Error{constructor(e){super(`4 - ${e}`)}}class Oe extends Error{constructor(e){super(`6 - ${e}`)}}class Ie extends Error{constructor(e){super(`8 - ${e}`)}}class Ce extends Error{constructor(e){super(`5 - ${e}`)}}class Re extends Error{constructor(e){super(`9 - ${e}`)}}class Pe{constructor(e){this.excluded=!1,this.isInitialized=!1,this.isActive=!1;const{settings:t,companyKey:n,widgetKey:i,tracker:o,funStorage:r,user:s,parentCompanyKey:a,infrastructureParams:c,sentry:l,distribution:d,allowExperiments:u=!0}=e;this.sentry=l,this.companyKey=n,this.parentCompanyKey=a,this.widgetKey=i,this.tracker=o,this.funStorage=r,this.user=s,this.infrastructureParams=c;const{experimentId:p,name:h,disabledAccounts:E,enabledAccounts:m,enabled:g,enabledWidgets:T}=t;this.name=h,this.experimentId=p,this.disabledAccounts=E,this.enabledAccounts=m,this.enabledWidgets=T,this.disabledWidgets=t.disabledWidgets,this.settings=t,this.enabled=g,this.distribution=d;const f=Array.isArray(window.FUN_DISABLED_EXPERIMENTS)?window.FUN_DISABLED_EXPERIMENTS:[];this.globalDisabled=!u||window.FUN_DISABLE_EXPERIMENTS||-1!==f.indexOf(p)}get isExperimentEnabled(){return((e,t)=>{var n;if(!t)return!1;const{enabled:i,experimentId:o}=t,r=e.get(),s=r&&(null===(n=r.settings[o])||void 0===n?void 0:n.enabled);return i||Boolean(s)})(this.funStorage,this.settings)}getDebugPanelEnabled(){var e,t;const n=null===(e=this.funStorage.get())||void 0===e?void 0:e.settings;return Boolean(n&&(null===(t=n[this.experimentId])||void 0===t?void 0:t.enabled))}get active(){return this.isActive}get variantName(){return this.distribution.currentVariantName}get variantKey(){return this.distribution.currentVariantKey}start(e){if(!this.checkDisabled()&&(this.isInitialized=this.init(),this.isInitialized)){this.activate();const e=this.getTags();this.tracker.setEventTags(e)}}getTags(){const e=[this.experimentId,`${this.experimentId}-${this.variantName}`];return this.excluded&&e.push(`${this.experimentId}-exclusion`),e}isVariant(e){return this.variantKey===e}setVariant(e,t=!0){this.distribution.setVariant(e),this.excluded=t;const n=[this.experimentId];this.tracker.removeEventTags(n);const i=this.getTags();this.tracker.setEventTags(i)}restoreVariant(){this.distribution.previousVariantName&&this.setVariant(this.distribution.previousVariantName,!1)}exposure(){this.isActive&&this.tracker.customTrack({type:"testGroupExposed",data:{exclusion:this.excluded,experimentId:this.experimentId,variantName:this.variantName}})}init(){var e,t,n,i;const o=this.getDebugPanelVariant();if(o.variant&&o.enabled)return this.setVariant(o.variant),!0;if(o.enabled&&!o.variant&&(this.excluded=!0),!we(this.settings,this.companyKey))return!1;const r=null===(e=this.enabledWidgets)||void 0===e?void 0:e.find(e=>e===this.widgetKey);if((null===(t=this.enabledWidgets)||void 0===t?void 0:t.length)&&!r)return!1;const s=null===(n=this.disabledWidgets)||void 0===n?void 0:n.find(e=>e===this.widgetKey);return!((null===(i=this.disabledWidgets)||void 0===i?void 0:i.length)&&s||(this.distribution.initCurrentVariantName(),0))}activate(){this.isActive?this.sentry.captureException(new Ae(this.name)):this.isActive=!0}checkDisabled(){const e=this.getDebugPanelExperimentsSettings();if(e){const t=e[this.experimentId];if(t&&t.enabled)return!1}return!this.enabled||this.globalDisabled}getDebugPanelExperimentsSettings(){const e=this.funStorage.get();return"object"!=typeof e?(this.sentry.captureException(new Oe(e)),null):(null==e?void 0:e.settings)||null}getDebugPanelVariant(){var e;const t=null===(e=this.funStorage.get())||void 0===e?void 0:e.settings;if(!t)return{enabled:!1};const n=t[this.experimentId];return n&&(null==n?void 0:n.enabled)?{enabled:!0,variant:n.variant}:{enabled:!1}}}var be,Le,De,Me,ke,xe;(xe=be||(be={})).CARD="creditCard",xe.APPLE_PAY="applePay",xe.GOOGLE_PAY="googlePay",xe.CLICK_TO_PAY="clickToPay",xe.ACH="ach",xe.PLAID="plaid",xe.PAYPAL="paypal",xe.VENMO="venmo",xe.AU_BECS="auBecsDebit",xe.UK_BACS="ukBacs",xe.ACSS="acss",xe.SEPA="sepa",xe.IDEAL="ideal",xe.CRYPTO="crypto",xe.STOCK="stock",xe.US_BANK_ACCOUNT="usBankAccount",function(e){e.PAN_ONLY="PAN_ONLY",e.CRYPTOGRAM_3DS="CRYPTOGRAM_3DS"}(Le||(Le={})),function(e){e.AMEX="AMEX",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MASTERCARD="MASTERCARD",e.VISA="VISA"}(De||(De={})),function(e){e.FUNDRAISING_PAGE="fundraisingPage",e.REDIRECT="redirect",e.THANK_YOU_SCREEN="thankYouScreen"}(Me||(Me={})),function(e){e.NONE="none",e.GENERAL="general",e.CUSTOMIZED="customized"}(ke||(ke={}));const Ue=[be.CARD,be.APPLE_PAY,be.GOOGLE_PAY,be.PAYPAL,be.VENMO,be.US_BANK_ACCOUNT,be.CRYPTO];class Fe extends Pe{tryStart(e){this.isActive||this.canBeStarted(e)&&super.start()}canBeStarted({isMobile:e,company:t,resolveData:n}){const{campaign:i,company:o}=n;return!(!e||!Ne(t.country)||i.config.showMailing||i.config.showDouble||i.config.donationTypes.crypto.enabled||!(e=>{const t=Object.keys(e).filter(t=>e[t]);return!!t.length&&t.every(e=>Ue.includes(e))})(o.paymentOptions)||n.fundraisingPage||i.config.consent.type===ke.CUSTOMIZED)}get isTestGroup(){return this.isActive&&this.isVariant(C.TEST)}tryTrackStart(){this.isActive&&this.tracker.customTrack({type:"steplessCheckoutExperimentStarted",data:{variantName:this.variantName,exclusion:this.excluded}})}}var Ge;!function(e){e.IN_HONOR_MEMORY="inHonorMemory",e.DEDICATION="dedication"}(Ge||(Ge={}));const Ke=e=>"string"==typeof e&&""!==e.trim()?e:void 0,Be=e=>"no"!==e.fundraiseupLivemode&&("boolean"!=typeof window.fundraiseup_livemode||window.fundraiseup_livemode);function Ve(e,t){let n=t;return e.isWidgetCustomHash(t)&&(n=e.getWidgetKeyByCustomHash(t)||t),n.toUpperCase()}const He="pageView",je="pageLeave",Xe="customEvent",Ye="dataLayer",ze="fun_test";var We,$e,qe;!function(e){e.REMINDER="reminder",e.DONATE_BUTTON="donateButton",e.STICKY_BUTTON="stickyButton",e.IMAGE_CARD="imageCard",e.TEXT_LINK="textLink",e.DONATION_FORM="donationForm",e.SIMPLE_FORM="simpleForm",e.GOAL_METER="goalMeter",e.STAT_COUNTER="statCounter",e.IMPACT_SLIDER="impactSlider",e.DONATION_LEVELS="donationLevels",e.BUTTON_GROUP="buttonGroup",e.FLOATING_BUTTON="floatingButton",e.MESSAGE_BAR="messageBar",e.TOP_SUPPORTERS="topSupporters",e.TOP_LOCATIONS="topLocations",e.SOCIAL_PROOF="socialProof",e.QR_CODE="qrCode",e.RECENT_DONATIONS="recentDonations",e.P2P_BUTTON="p2pButton",e.P2P_LINK="p2pLink",e.TOP_FUNDRAISERS="topFundraisers",e.DONOR_MAP="donorMap",e.LIGHTBOX="lightbox",e.FUNDRAISING_PAGE_LINK="fundraisingPageLink",e.FUNDRAISING_PAGE_INVITE_LINK="fundraisingPageInviteLink",e.LINK="link",e.DIRECT_LINK="direct",e.DEBUG_PANEL="debugPanel",e.TEST_MODE_PANEL="testModePanel",e.SPLIT_TESTING="splitTesting",e.JS_API="jsApi"}(We||(We={}));class Je{constructor(){this.payload={}}merge(e){const t={};for(const n in e)t[n]=e[n];for(const e in this.payload)t[e]=this.payload[e];var n;!e.elementType||(n=e.elementType)&&Object.values(We).includes(n)||delete t.elementType,this.payload=t,e.eventComment&&this.mergeEventComment(e.eventComment)}validate(){return!(!this.payload.companyKey||8!==this.payload.companyKey.length||!this.payload.clientId||!this.eventType)}toObject(){const e={};for(const t in this.payload)e[t]=this.payload[t];return this.payload.eventComment&&(e.eventComment=JSON.stringify(this.payload.eventComment)),e.eventType=this.eventType,e}mergeEventComment(e){this.payload.eventComment||(this.payload.eventComment={}),Object.assign(this.payload.eventComment,e)}}class Ze extends Je{constructor(e){if(super(),this.payload={widgetKey:e.widgetKey,elementKey:e.elementKey,elementType:e.elementType,elementLocale:e.elementLocale,elementReminderKey:e.elementReminderKey,splitTestName:e.splitTestName,splitTestVariant:e.splitTestVariant,fundraisingPageKey:e.fundraisingPageKey,fundraisingPageCustomerKey:e.fundraisingPageCustomerKey,eventComment:e.eventComment},e.getElementTrackingData){const t=e.getElementTrackingData();t&&(this.payload.elementData=JSON.stringify(t))}else e.elementData&&(this.payload.elementData=JSON.stringify(e.elementData))}}class Qe extends Ze{get eventType(){return"elementOpenCheckout"}}class et extends Ze{constructor(e,t){super(e),t&&t.elementPartName&&this.merge({eventComment:{source:t.elementPartName}})}get eventType(){return"elementClick"}}class tt extends Je{constructor(e){super(),this.merge({customEventType:e.customEventType,customEventData:JSON.stringify(e.customEventData)})}get eventType(){return Xe}}function nt({tracker:e,keysKeeper:t,widgetKey:n,splitTestVariant:i,splitTestName:o,elementKey:r,elementType:s}){return e.track(new Qe({widgetKey:t?Ve(t,n):n,splitTestName:o,elementKey:r,elementType:s,splitTestVariant:i}))}!function(e){e.TOP_LEVEL_DOMAIN="topLevelDomain",e.INTENT="intent",e.MESSAGE_BAR="messageBar",e.SOCIAL_PROOF="socialProof",e.POPUP="popup",e.SESSION_AT="sessionAt",e.SESSION_PAGE="sessionPage",e.X_FACTOR="xFactor",e.LIGHTBOX="lightbox",e.LAST_SUCCESS_DONATION_AT="lastSuccessDonationAt",e.FLOATING_BUTTON_POPUP_SHOWN="floatingButtonPopupShown"}($e||($e={})),function(e){e.EN_US="en-US",e.EN_GB="en-GB",e.EN_CA="en-CA",e.FR_CA="fr-CA",e.FR_FR="fr-FR",e.ES="es",e.NL="nl",e.NO="no",e.DE="de",e.DE_X_INFORMAL="de-x-informal",e.FI_FI="fi-FI",e.AR_001="ar-001",e.SV="sv",e.IT="it",e.PT_PT="pt-PT",e.PT_BR="pt-BR",e.ZH_CN="zh-CN",e.ZH_TW="zh-TW",e.JA="ja",e.KO="ko",e.HU="hu",e.DA="da",e.RU_RU="ru-RU",e.ES_US="es-US",e.PL_PL="pl-PL"}(qe||(qe={}));const it=[qe.EN_US,qe.EN_GB,qe.EN_CA,qe.FR_CA,qe.FR_FR,qe.ES,qe.NL,qe.NO,qe.DE,qe.FI_FI,qe.SV,qe.IT,qe.PT_PT,qe.PT_BR,qe.AR_001,qe.ZH_CN,qe.ZH_TW,qe.JA,qe.KO,qe.HU,qe.DA,qe.ES_US,qe.PL_PL,qe.DE_X_INFORMAL,qe.RU_RU],ot=[qe.AR_001];var rt,st;function at(e,t,n){return e.replace(new RegExp(t,"g"),n)}function ct(e){return e.split("-")[0]}(st=rt||(rt={})).LTR="ltr",st.RTL="rtl";const lt={"&amp;":"&"};function dt(e){let t=e;for(const n in lt)Object.prototype.hasOwnProperty.call(lt,n)&&e.includes(n)&&(t=at(t,n,lt[n]));return t}function ut(e,t=!1){return!t&&function(e){return ot.includes(e)}(e)?rt.RTL:rt.LTR}function pt(e){const t=e.split("-");if(t.length<2)return!1;const n=t.indexOf("x");return-1===n||n>1}var ht=s("./src/shared/common/embed/helpers.ts");const Et="_lang";var mt;!function(e){e.URL="URL",e.WINDOW="WINDOW",e.URL_MATCHING="URL_MATCHING",e.BROWSER="BROWSER"}(mt||(mt={}));var gt,Tt,ft;class _t{constructor(e){this.checkoutTypes=e.checkoutTypes,this.donorPortalUrl=e.donorPortalUrl,this.window=e.window,this.campaignKey=e.campaignKey,this.customHash=e.customHash,this.hasBenefits=e.hasBenefits||!1}shouldRedirect(){var e,t;return!(!this.donorPortalUrl||!(null===(e=this.checkoutTypes)||void 0===e?void 0:e.campaignPage)||!this.hasBenefits&&(null===(t=this.checkoutTypes)||void 0===t?void 0:t.checkoutModal))}getCampaignPageUrl(){return this.donorPortalUrl?function(e,t){const n=new URL(`${e}/page/${t}`);return n.toString()}(this.donorPortalUrl,this.customHash||this.campaignKey):""}openCampaignPage(e){return t=this,n=void 0,o=function*(){const{searchParams:t,elementType:n,element:i,checkoutData:o,checkoutIntent:r,elementTitle:s,elementName:a}=e||{},c=this.getCampaignPageUrl();if(!c)return;const l=new URL(c),d=null!=t?t:new URLSearchParams;d.set("embedClientId",e.clientId),d.set("eventTags",e.tags.join(",")),n&&d.set("elementType",n),s&&d.set("elementTitle",s),a&&d.set("elementName",a),i&&d.set("element",i),(null==o?void 0:o.fundraiser)&&d.set("fundraiser",o.fundraiser),o&&d.set("elementCheckoutData",this.encodeCheckoutData(o)),r&&d.set("checkoutIntent",this.encodeCheckoutData(r)),this.donorPortalUrl===this.window.location.origin&&d.set("fromDonorPortal","1"),e.locale.source&&[mt.URL,mt.WINDOW].includes(e.locale.source)&&d.set(Et,e.locale.code);const u=l.toString(),p=(0,ht.i)(d),h=p?`?${p}`:"";(function(){const e=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent);return Boolean(e)})()&&(yield new Promise(e=>setTimeout(e,200))),this.window.location.href=`${u}${h}`},new((i=void 0)||(i=Promise))(function(e,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(s,a)}c((o=o.apply(t,n||[])).next())});var t,n,i,o}encodeCheckoutData(e){const t=JSON.stringify(e),n=encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(e,t)=>{const n=parseInt(t,16);return String.fromCharCode(n)});return btoa(n)}}!function(e){e[e.INTERNAL_API_INITIALIZED=1]="INTERNAL_API_INITIALIZED",e[e.INIT=2]="INIT",e[e.TRY_TO_OPEN_BY_DIRECT_LINK=3]="TRY_TO_OPEN_BY_DIRECT_LINK",e[e.TRY_TO_OPEN_BY_URL=4]="TRY_TO_OPEN_BY_URL",e[e.TRY_TO_OPEN_BY_ELEMENT_KEY_URL=5]="TRY_TO_OPEN_BY_ELEMENT_KEY_URL",e[e.TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL=6]="TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL",e[e.EMIT_EVENT=7]="EMIT_EVENT",e[e.GOT_ELEMENT_RESPONSE=8]="GOT_ELEMENT_RESPONSE",e[e.GOT_GLOBAL_ELEMENTS_RESPONSE=9]="GOT_GLOBAL_ELEMENTS_RESPONSE",e[e.TRY_TO_RENDER_NON_RENDERED_GLOBAL_ELEMENTS=10]="TRY_TO_RENDER_NON_RENDERED_GLOBAL_ELEMENTS",e[e.FIND_ELEMENTS=11]="FIND_ELEMENTS",e[e.EXTRACT_NODE_PARAMS=12]="EXTRACT_NODE_PARAMS",e[e.CREATE_ELEMENTS_PARAMS=13]="CREATE_ELEMENTS_PARAMS",e[e.RESOLVE_FUNDRAISING_PAGE=14]="RESOLVE_FUNDRAISING_PAGE",e[e.RESOLVE_KEYS=15]="RESOLVE_KEYS",e[e.EMPTY_RESOLVE_REQUEST=16]="EMPTY_RESOLVE_REQUEST",e[e.SEND_RESOLVE_REQUEST=17]="SEND_RESOLVE_REQUEST",e[e.GOT_RESOLVE_RESPONSE=18]="GOT_RESOLVE_RESPONSE",e[e.DOM_OBSERVER_INIT=19]="DOM_OBSERVER_INIT",e[e.CONSENT_API_INITIALIZED=20]="CONSENT_API_INITIALIZED",e[e.CONSENT_API_UPDATE=21]="CONSENT_API_UPDATE",e[e.CONSENT_API_DISABLED=22]="CONSENT_API_DISABLED",e[e.CONSENT_API_ERROR=23]="CONSENT_API_ERROR"}(gt||(gt={})),function(e){e.ONLY_CAMPAIGN_PAGES="onlyCampaignPages",e.ONLY_CHECKOUT_MODAL="onlyCheckoutModal",e.BOTH_TYPES="bothTypes"}(Tt||(Tt={})),function(e){e.WIDGET="widget",e.URL="url",e.NOWHERE="nowhere"}(ft||(ft={}));var vt=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})};const yt=(e,t,r,s,a,c,l,d,u,p,h,E,m,g,T)=>{let f=null;h.register(i.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT,Fe);const _=h.get(i.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT);let v=!1,y=null;const S=e=>!!(r.inactiveWidgets||[]).find(([t,n])=>t===e||n===e),N=t=>vt(void 0,void 0,void 0,function*(){return e.needResolve(t)?new Promise(e=>{setTimeout(e,600)}):Promise.resolve()}),w=(e,t,n,i,o)=>vt(void 0,void 0,void 0,function*(){try{yield Promise.all([C(e,t,n,i,o),N(t)])}catch(e){v=!1,F(),console.error(e)}}),A=(e,...t)=>vt(void 0,[e,...t],void 0,function*(e,t={},n){var i,o,s;if(v)return;const a=Be(r.queryParams||{}),l=Date.now();y=l;const d=null===(s=null===(o=null===(i=t.launcher)||void 0===i?void 0:i.checkoutInitialData)||void 0===o?void 0:o.campaign)||void 0===s?void 0:s.fundraiser,u=Ve(c,e),p=[u,d].filter(e=>Boolean(e));return B(p)?""===e&&d?((e,t,n,i)=>vt(void 0,void 0,void 0,function*(){v=!0,U("",t),yield w("",e,t,n,i)}))([d],a,t,l):((e,t,n,i,o,r,s)=>vt(void 0,void 0,void 0,function*(){S(e)?M(r,e):G(e)?yield R(e,i,s):(v=!0,U(e,n),yield w(e,t,n,i,o))}))(u,p,a,t,l,r.currentCompany,n):void 0}),O=(t,n,i)=>vt(void 0,void 0,void 0,function*(){var o;const r=yield e.resolveKeys({keys:t,livemode:n,externalQueryParams:i.queryParams});if(null===(o=null==r?void 0:r.campaign)||void 0===o?void 0:o.key){const e=r.campaign.key;if(r.forceCampaignPageOpen||G(e)){const t=new URLSearchParams(i.queryParams||{});return t.delete("form"),yield R(e,i,t),r}}return r}),I=e=>g().load({widgetKey:e,locale:r.locale.code,source:fe.CHECKOUT}),C=(e,n,i,o,s)=>vt(void 0,void 0,void 0,function*(){var a;const[h]=yield Promise.all([O(n,i,o)]),g=V(h)||H();_.tryTrackStart();const f=g?b:P,v=g?m:E;yield f(),d.emit("checkoutBeforeOpen",void 0);const y=yield v()(l,t,c,d,p,{resolvedConfig:h,trackingUrls:r.server.trackingUrls,currencyRates:r.data.currencyRates,env:r.server.env,pendingRequests:{goals:I(h.campaign.key)},paymentMethods:r.paymentMethods,livemode:r.livemode,isMobile:r.isMobile,isMobileSafari16:r.deviceData.isMobileSafari16,showcase:!1,externalParams:o,integrations:r.integrations,localeCode:r.locale.code,userMeta:null===(a=r.meta)||void 0===a?void 0:a.user,infrastructureQueryParams:null==r?void 0:r.queryParams,checkoutOpenTimestamp:s,htmlElementStyleManager:u,embedVersion:r.version,mainDomain:r.server.mainDomain,experimentsConfig:r.experimentsConfig,browserData:r.browserData,isDebugMode:r.isDebugMode,isFundraiseupVisitor:r.isFundraiseupVisitor,isAbTestMode:r.abTestDemoMode,steplessCheckoutExperimentVariant:_.variantName,steplessCheckoutExperimentExcluded:_.excluded,fromDonorPortal:r.fromDonorPortal,initialMarketingCookieConsent:T.getUserSessionConsent()});y&&D({checkoutApi:y,key:e,options:o,isLivemode:i})}),R=(e,t,n)=>vt(void 0,void 0,void 0,function*(){var i,o,s,a,c,d,u,p,h,E,m;const g=n||new URL(window.location.href).searchParams,T=new _t({donorPortalUrl:r.staticConfig.donorPortalUrl,window,campaignKey:e}),f=null===(s=null===(o=null===(i=t.launcher)||void 0===i?void 0:i.checkoutInitialData)||void 0===o?void 0:o.campaign)||void 0===s?void 0:s.fundraiser,_=f?{checkoutData:{fundraiser:f}}:void 0;yield T.openCampaignPage(Object.assign({elementType:null===(c=null===(a=null==t?void 0:t.launcher)||void 0===a?void 0:a.element)||void 0===c?void 0:c.type,elementTitle:null===(u=null===(d=null==t?void 0:t.launcher)||void 0===d?void 0:d.element)||void 0===u?void 0:u.title,elementName:null===(h=null===(p=null==t?void 0:t.launcher)||void 0===p?void 0:p.element)||void 0===h?void 0:h.name,element:null===(m=null===(E=null==t?void 0:t.launcher)||void 0===E?void 0:E.element)||void 0===m?void 0:m.key,checkoutIntent:null==t?void 0:t.intent,searchParams:g,clientId:l.clientId,tags:l.getTags(),locale:r.locale},_))}),P=()=>vt(void 0,void 0,void 0,function*(){const e=r.server.checkoutAssets.scripts.filter(e=>!(e.includes("checkout-rtl-styles")&&L()===rt.LTR||e.includes("checkout-styles")&&L()===rt.RTL));yield Promise.all(e.map(e=>n(e)))}),b=()=>vt(void 0,void 0,void 0,function*(){const e=r.server.checkoutSteplessAssets.scripts.filter(e=>!(e.includes("checkout-stepless-rtl-styles")&&L()===rt.LTR||e.includes("checkout-stepless-styles")&&L()===rt.RTL));yield Promise.all(e.map(e=>n(e)))}),L=()=>ut(r.locale.code),D=e=>{const{checkoutApi:t,key:n,options:i}=e;t.on("close",e=>{const{shouldReopen:t,tributeSelected:o}=e,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(e,["shouldReopen","tributeSelected"]);v=!1,k("checkoutClose",r),t?window.setTimeout(()=>{var e,t,r;const s=Object.assign(Object.assign({},i),{launcher:Object.assign(Object.assign({},i.launcher),{checkoutInitialData:Object.assign(Object.assign({},null===(e=i.launcher)||void 0===e?void 0:e.checkoutInitialData),{tribute:Object.assign(Object.assign({},null===(r=null===(t=i.launcher)||void 0===t?void 0:t.checkoutInitialData)||void 0===r?void 0:r.tribute),{isSelected:o})})})});A(n,s)},300):s.remove()}),t.on("checkoutIntent",e=>{k("checkoutIntent",e)}),t.on("donationComplete",e=>{k("donationComplete",e),x()});const o=t.getOpenParams();k("checkoutOpen",o),setTimeout(()=>{F()},150)},M=(e,t)=>{const n=e.disabledWidgets.redirectTo;if(n===ft.WIDGET)return S(e.disabledWidgets.widgetKey)?void s.remove(!0):void A(e.disabledWidgets.widgetKey);n===ft.URL&&window.location.assign(e.disabledWidgets.url),s.remove(!0),console.warn(`Campaign is not active | Widget ${t} is archived`)},k=(e,n)=>{t.logCode(gt.EMIT_EVENT,{event:e,payload:n}),setTimeout(()=>{try{d.emit(e,n)}catch(e){console.error(e)}},0)},x=()=>{p.setField($e.LAST_SUCCESS_DONATION_AT,Date.now())},U=(e,t)=>{const n=ut(r.locale.code)===rt.RTL;s.render({source:ve.CHECKOUT}),a.render({campaignKey:e,isMobile:r.isMobile,isLivemode:t,isRtl:n})},F=()=>{a.hide()},G=e=>!!K(e),K=e=>c.getCheckoutType(e)===Tt.ONLY_CAMPAIGN_PAGES,B=e=>e.some(e=>c.exists("WIDGET",e)||c.exists("FUNDRAISING_PAGE",e)),V=e=>(_.tryStart({isMobile:r.isMobile,company:r.currentCompany,resolveData:e}),_.isTestGroup),H=()=>r.server.env!==ge.PRODUCTION&&"true"===new URL(window.location.href).searchParams.get("stepless");return{getLatestStartOpenCheckoutTimestamp:()=>y,open:A,createShowcase:(e,n,i,o,s)=>(e.config.cryptoCurrencies=n,P().then(()=>{var n;return E()(l,t,c,d,p,{trackingUrls:r.server.trackingUrls,env:r.server.env,resolvedConfig:e,currencyRates:r.data.currencyRates,paymentMethods:r.paymentMethods,integrations:r.integrations,localeCode:r.locale.code,userMeta:null===(n=r.meta)||void 0===n?void 0:n.user,infrastructureQueryParams:null==r?void 0:r.queryParams,showcase:!0,isMobile:!1,isMobileSafari16:!1,livemode:!1,externalParams:{},checkoutOpenTimestamp:0,node:o,initialScreen:s,htmlElementStyleManager:u,embedVersion:r.version,mainDomain:r.server.mainDomain,experimentsConfig:{experiments:[]},browserData:r.browserData,isDebugMode:r.isDebugMode,isFundraiseupVisitor:r.isFundraiseupVisitor,isAbTestMode:r.abTestDemoMode,fromDonorPortal:r.fromDonorPortal},i)})),preloadCheckout:()=>{window.FUN_DISABLE_PRELOADING||(()=>{const e=r.experimentsConfig.experiments.find(e=>e.experimentId===o[i.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT]);return function(e,t,n,i){if(!i||!i.enabled)return!1;const o=we(i,e),r=Ne(t);return o&&n&&r}(r.currentCompany.key,r.currentCompany.country,r.isMobile,e)?()=>Promise.all([P(),b()]).then():P})()()},on:(e,t)=>{d.on(e,t)},emit:k,openCheckout:(e,t)=>{const{checkoutExternalParams:n,campaignPageSearchParams:i}=(e=>{var t,n,i,o,r,s,a,c,l,d,u;if(!e)return{checkoutExternalParams:{launcher:{element:{type:_e.JS_API}}}};const p=e.customFields,h=Ke(e.fundraiser),E=Ke(null===(t=e.donation)||void 0===t?void 0:t.recurring),m=Ke(null===(n=e.donation)||void 0===n?void 0:n.currency),g="number"==typeof(T=null===(i=e.donation)||void 0===i?void 0:i.amount)&&Number.isFinite(T)?T:void 0;var T;const f=null===(o=e.config)||void 0===o?void 0:o.modifyAmount,_=Ke(null===(s=null===(r=e.designations)||void 0===r?void 0:r[0])||void 0===s?void 0:s.id),v=null===(a=e.config)||void 0===a?void 0:a.modifyDesignation,y=Ke(null===(c=e.tribute)||void 0===c?void 0:c.honoree),S=Ke(null===(l=e.supporter)||void 0===l?void 0:l.firstName),N=Ke(null===(d=e.supporter)||void 0===d?void 0:d.lastName),w=Ke(null===(u=e.supporter)||void 0===u?void 0:u.email),A={queryParams:{fundraiser:h},launcher:{element:{type:_e.JS_API,customFields:p?Object.entries(p).map(([e,t])=>({name:e,value:t})):void 0},checkoutInitialData:{campaign:{fundraiser:h},donation:{frequency:E,currency:m,amount:void 0!==g?Math.round(100*g):void 0,isAmountEditable:f},designation:{id:_,isEditable:v},tribute:{inHonorOf:y,labelType:y?Ge.IN_HONOR_MEMORY:void 0},supporter:{firstName:S,lastName:N,email:w}}}},O=new URLSearchParams;if(h&&O.set("fundraiser",h),E&&O.set("recurring",E),m&&O.set("currency",m),void 0!==g&&O.set("amount",g.toString()),void 0!==f&&O.set("modifyAmount",f?"yes":"no"),_&&O.set("designationId",_),void 0!==v&&O.set("modifyDesignation",v?"yes":"no"),y&&O.set("tributeHonoree",y),S&&O.set("firstName",S),N&&O.set("lastName",N),w&&O.set("email",w),p)for(const[e,t]of Object.entries(p))O.set(e,t);return{checkoutExternalParams:A,campaignPageSearchParams:O}})(t);nt({tracker:l,widgetKey:e,keysKeeper:c,elementType:_e.JS_API,elementKey:"",splitTestName:"",splitTestVariant:""}),A(e,n,i)},setOpenedCheckoutElementId:e=>{f=e},getLastOpenedCheckoutElementId:()=>f}};class St{static isLocaleCode(e){return void 0!==e&&it.includes(e)}constructor(e,t,n,i,o,r,s){this.translationService=e,this.dateFormatter=t,this.currencyFormatter=n,this.numberFormatter=i,this.company=o,this.donateToPayTokens=r,this._locale=St.DEFAULT_LOCALE,this.availableLocales=s.availableLocales,this.locale=s.locale,this.company=o,this.donateToPayTokens=r,this.dateFormatter.intl=this}get locale(){return this._locale}get language(){return this.locale.split("-")[0]}getCurrencyFormat(){return this.currencyFormatter.getFormat()}setLocale(e){const t=this.locale;this.locale=e;const n=[this.translationService.changeLocale(this.locale)];return Promise.all(n).then(()=>this.locale).catch(e=>(this.locale=t,Promise.reject(e))).finally(()=>{this.dateFormatter.changeLocale(this.locale),this.currencyFormatter.changeLocale(this.locale),this.numberFormatter.changeLocale(this.locale)})}translate(e,t){const n=dt(this.translationService.translate(e,t));return this.replaceDonateToPay(e,n)}safeTranslate(e,t){const n=dt(this.translationService.safeTranslate(e,t));return this.replaceDonateToPay(e,n)}formatDate(e,t){return this.dateFormatter.format(e,t)}formatCurrency(e,t){return this.currencyFormatter.format(e,t)}formatAmount(e){return this.currencyFormatter.formatAmount(e)}formatSymbol(e,t){return this.currencyFormatter.formatCurrencySymbol(e,t)}formatNumber(e,t){return this.numberFormatter.format(e,t)}isLocaleAvailable(e){return this.availableLocales.some(t=>t===e)}replaceDonateToPay(e,t){if("AFJCHFEK"===this.company&&this.locale===qe.EN_US&&this.donateToPayTokens.includes(e)){const e={donation:"payment",Donation:"Payment",Donate:"Pay",donate:"pay",donating:"paying"};return t.replace(/donation|Donation|Donate|donate|donating/g,t=>e[t])}return t}set locale(e){this.isLocaleAvailable(e)?this._locale=e:this._locale=St.DEFAULT_LOCALE}}let Nt;function wt(e,t){if("test"===e)return At();const n=St.isLocaleCode(e);return{code:n?e:St.DEFAULT_LOCALE,source:n?t:void 0,isTest:!1}}function At(){return{code:St.DEFAULT_LOCALE,isTest:(void 0===Nt&&(Nt=!1),Nt)}}function Ot(e,t){return{code:e,source:t,isTest:!1}}var It;St.DEFAULT_LOCALE=qe.EN_US,function(e){e.DONOR="donor",e.EMBED="embed",e.TEST="test"}(It||(It={}));class Ct{static get(e){switch(e){case It.DONOR:return wt;case It.EMBED:return Ot;case It.TEST:return At;default:throw new Error(`13 ${e}`)}}}function Rt(e){const t="^"+e.replace(/([[\]{}()+?.^$|\\/])/g,"\\$1").replace(/\*/g,".*")+"$";return new RegExp(t)}const Pt=[qe.DE_X_INFORMAL],bt={[qe.DE]:qe.DE_X_INFORMAL},Lt={[qe.DE_X_INFORMAL]:qe.DE},Dt=["HRMEIGNS"];class Mt{static initializeUserLocales(e,t){return e.map(e=>this.initializeUserLocale(e,t))}static initializeUserLocale(e,t){const n=Dt.includes(t.companyKey);if(Pt.includes(e))return n?e:Lt[e];const i=bt[e];return i&&n?i:e}static getOriginalLocale(e){var t;return null!==(t=Lt[e])&&void 0!==t?t:null}static isPrivateUseLocale(e){return Pt.includes(e)}}class kt{constructor(e,t){this.locale=e,this.localizationConfig=t,this.next=null}setNext(e){this.next=e}handle(){return this.retrieveLocale()||(this.next?this.next.handle():null)}}class xt extends kt{retrieveLocale(){if(e=this.locale,!it.includes(e))return null;var e;if(this.localizationConfig.interfaceLocales.includes(this.locale))return this.locale;if(Mt.isPrivateUseLocale(this.locale)){const e=Mt.getOriginalLocale(this.locale);if(e&&this.localizationConfig.interfaceLocales.includes(e))return this.locale}return null}}class Ut extends kt{retrieveLocale(){var e;return(e=this.locale,this.localizationConfig.interfaceLocales.find(t=>ct(e)===ct(t)))||null}}class Ft extends kt{retrieveLocale(){return ct(this.locale)===ct(this.localizationConfig.defaultLocale)?this.localizationConfig.defaultLocale:null}}var Gt,Kt;!function(e){e.EN="en",e.ES="es",e.FR="fr",e.NL="nl",e.NO="no",e.DE="de",e.FI="fi",e.AR="ar",e.SV="sv",e.IT="it",e.PT="pt",e.ZH="zh",e.JA="ja",e.KO="ko",e.HU="hu",e.DA="da",e.RU="ru",e.PL="pl"}(Gt||(Gt={}));class Bt extends kt{retrieveLocale(){return ct(this.localizationConfig.defaultLocale)===Gt.EN?this.localizationConfig.defaultLocale:null}}class Vt extends kt{retrieveLocale(){return this.localizationConfig.interfaceLocales.find(e=>ct(e)===Gt.EN)||null}}!function(e){e.HA="ha",e.IU="iu",e.GD="gd",e.CY="cy",e.BR="br",e.SQ="sq",e.SC="sc",e.NB="nb",e.NN="nn",e.HY="hy",e.AZ="az",e.BE="be",e.CE="ce",e.ET="et",e.KK="kk",e.KY="ky",e.LV="lv",e.LT="lt",e.MN="mn",e.TG="tg",e.UK="uk",e.UZ="uz",e.EU="eu",e.CA="ca",e.GL="gl"}(Kt||(Kt={}));class Ht extends kt{retrieveLocale(){const e=Ht.fallbackLocales.get(this.locale);return e&&-1!==this.localizationConfig.interfaceLocales.indexOf(e)?e:null}}Ht.fallbackLocales=new Map([[Kt.HA,qe.AR_001],[Kt.IU,qe.EN_CA],[Kt.GD,qe.EN_GB],[Kt.CY,qe.EN_GB],[Kt.BR,qe.FR_FR],[Kt.SQ,qe.IT],[Kt.SC,qe.IT],[Kt.NB,qe.NO],[Kt.NN,qe.NO],[Kt.HY,qe.RU_RU],[Kt.AZ,qe.RU_RU],[Kt.BE,qe.RU_RU],[Kt.CE,qe.RU_RU],[Kt.ET,qe.RU_RU],[Kt.KK,qe.RU_RU],[Kt.KY,qe.RU_RU],[Kt.LV,qe.RU_RU],[Kt.LT,qe.RU_RU],[Kt.MN,qe.RU_RU],[Kt.TG,qe.RU_RU],[Kt.UK,qe.RU_RU],[Kt.UZ,qe.RU_RU],[Kt.EU,qe.ES],[Kt.CA,qe.ES],[Kt.GL,qe.ES]]);class jt extends kt{retrieveLocale(){return this.localizationConfig.defaultLocale}handle(){return this.retrieveLocale()}}function Xt(e,t,n){const i=new Ft(e,t),o=new xt(e,t),r=new Ut(e,t),s=new Ht(e,t),a=new Vt(e,t),c=new jt(e,t),l=new Bt(e,t);return o.setNext(i),i.setNext(r),r.setNext(s),n&&(s.setNext(l),l.setNext(a),a.setNext(c)),o}class Yt{constructor(e,t){this.locales=e,this.companyLocalizationConfig=t}getUILocale(){const e=new jt(this.locales[0]||"",this.companyLocalizationConfig);if(!this.locales.length)return e.handle();return function(e,t){if(!e.length)return null;for(let n=0;n<e.length;n++){const i=Xt(e[n],t,n===e.length-1).handle();if(i)return i}return null}(this.locales,this.companyLocalizationConfig)||e.handle()}}class zt{constructor(e){this.companyLocalizationSettings=e.companyLocalizationSettings,this.localeDetector=function(e){const t=e.currentUrl,n=e.queryParams,i=e.companyLocalizationSettings;return{detect:()=>{let o=n[Et],r=o?mt.URL:void 0;o||(o=e.window[Et],r=o?mt.WINDOW:void 0),!o&&i.matchURL&&(o=(()=>{let e;return i.urlRules.forEach(n=>{const i=Rt(n.url).test(t);!e&&i&&(e=n.locale)}),e})(),r=o?mt.URL_MATCHING:void 0),!o&&i.matchBrowserLocale&&(o=e.window.navigator.languages?[...e.window.navigator.languages]:e.window.navigator.language,r=o?mt.BROWSER:void 0);const s=(Array.isArray(o)?o:[o]).filter(Boolean);return{locale:Mt.initializeUserLocales(s,{companyKey:e.companyKey}),source:r}}}}({window:e.window,currentUrl:e.window.location.href,queryParams:e.queryParams,companyLocalizationSettings:e.companyLocalizationSettings,companyKey:e.companyKey})}getConfig(){const{source:e,locale:t}=this.localeDetector.detect();if(t.includes("test"))return Ct.get(It.TEST)();const n=(i=t).filter(e=>{if(!pt(e)){const t=ct(e);return!i.some(n=>n!==e&&ct(n)===t&&(pt(n)||n.includes("-")))}return!0});var i;const o=new Yt(n,this.companyLocalizationSettings).getUILocale(),r=t.includes(o)?e:void 0;return Ct.get(It.EMBED)(o,r)}}var Wt=s("../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs"),$t=s("../fun-storage/dist/webpack/funCookiesKeys.js"),qt=s("./src/helpers/parseQueryParams.ts");function Jt(){return"loading"!==document.readyState?Promise.resolve():new Promise(e=>{document.addEventListener("DOMContentLoaded",()=>e())})}const Zt=[_e.STICKY_BUTTON,_e.MESSAGE_BAR,_e.LIGHTBOX,_e.FLOATING_BUTTON];var Qt;!function(e){e.ALL="all",e.DESKTOP_ONLY="desktopOnly",e.MOBILE_ONLY="mobileOnly"}(Qt||(Qt={}));const en=["/","*"];function tn(e){let t=e.replace(/(\?.*)/,"").replace(/(#.*)/,"");const n=t.charAt(t.length-1);return-1===en.indexOf(n)&&(t+="/"),t}const nn=[_e.MESSAGE_BAR,_e.LIGHTBOX];const on=e=>{const t=document.createElement("link");t.rel="preload",t.as="script",t.href=e,document.head.appendChild(t);const n=document.createElement("script");n.src=e,n.async=!0,document.head.appendChild(n),n.onload=()=>{document.head.removeChild(t),document.head.removeChild(n)},n.onerror=()=>{document.head.removeChild(t),document.head.removeChild(n)}},rn="XFUNDEBUGPANEL";var sn=s("./src/serviceContainer/getFrontendContainer.ts");let an=null;function cn(){if(an)return Promise.resolve(an);const e=(0,sn.w)();return n(e.get(ye.i.STATIC_CONFIG).elementsApiScriptUrl).then(()=>(an=e.get(ye.i.ELEMENTS_API),an))}const ln=[_e.FUNDRAISING_PAGE_LINK,_e.FUNDRAISING_PAGE_INVITE_LINK,_e.LINK,_e.DIRECT_LINK,_e.DEBUG_PANEL,_e.TEST_MODE_PANEL,_e.SPLIT_TESTING,_e.JS_API];var dn=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})};function un(e,t,n,i,o,r,s,a){const c=i.server.elementsUrl,l=[],d=new Map,u=new Map;let p=[];const h=()=>{window.addEventListener("popstate",_),window.addEventListener("hashchange",_);const e=history.pushState,t=history.replaceState;history.pushState=function(...t){const n=e.apply(this,t);return _(),n},history.replaceState=function(...e){const n=t.apply(this,e);return _(),n}},E=()=>{const n=e.findElements();n.forEach(e=>{const t=d.get(e.key)||[];d.set(e.key,[...t,e]),m(e)});const i=n.map(({key:e})=>e);t.addFundraisersKeys(i),S(n),v(i)},m=e=>{const i=t.exists("WIDGET",e.key||"");if(e.type!==_e.LINK||!e.node||!i)return;const o=i=>{var s,a,c,l,d,u,p;null===(s=e.node)||void 0===s||s.removeEventListener("click",o);const h=i.target;if(h){const e=h.getAttribute("href");e&&function({tracker:e,href:t}){e.track(new tt({customEventType:"urlOpenCheckout",customEventData:{href:t}}))}({tracker:r,href:e})}if(!(null===(a=e.node)||void 0===a?void 0:a.__funElement)&&(i.preventDefault(),i.stopPropagation(),e.key)){const i={queryParams:e.queryParams};if(e.node){const{test:t,variant:n}=(null===(c=window.FUN.splitTesting)||void 0===c?void 0:c.inspect(e.node))||{};t&&n&&(i.launcher={element:{splitTestName:t,splitTestVariant:n}})}const o={tracker:r,widgetKey:e.key,keysKeeper:t,elementKey:"",elementType:_e.LINK,splitTestVariant:(null===(d=null===(l=i.launcher)||void 0===l?void 0:l.element)||void 0===d?void 0:d.splitTestVariant)||"",splitTestName:(null===(p=null===(u=i.launcher)||void 0===u?void 0:u.element)||void 0===p?void 0:p.splitTestName)||""};!function({tracker:e,keysKeeper:t,widgetKey:n,splitTestVariant:i,splitTestName:o,elementKey:r="",elementType:s=_e.LINK}){e.track(new et({widgetKey:t?Ve(t,n):n,elementKey:r,elementType:s,splitTestName:o,splitTestVariant:i}))}(o),nt(o),n.open(e.key,i).catch(e=>console.error(e))}};e.node.addEventListener("click",o)},g=(e,t)=>cn().then(o=>{var r,s;o.addElements({elements:null!==(r=null==t?void 0:t.elements)&&void 0!==r?r:[],nodes:e,globalElements:null!==(s=null==t?void 0:t.globalElements)&&void 0!==s?s:[]}).then(()=>{i.disablePreloading||n.preloadCheckout()})}),T=e=>dn(this,void 0,void 0,function*(){const t=s.getUrlParamsForElement(e),n=Object.assign(Object.assign({},e),{externalConfig:t,data:null});(function(e){return!ln.includes(e.type)})(e)&&(n.data=i.livemode?e.data.live:e.data.test);const r=[n],a={params:[e.key]};o.logCode(gt.GOT_ELEMENT_RESPONSE,{elements:r,info:a});const c=d.get(e.key);return c&&c.length?g(c,{elements:r}).then(()=>{d.delete(e.key),l.forEach(e=>e({elements:r},a))}):(l.forEach(e=>e({elements:r},a)),Promise.resolve())}),f=e=>{const t=i.deviceData.isMobileOrTablet;p.length||(p=e);const n=e.filter(e=>{const n=function(e,t){if(function(e){return-1!==Zt.indexOf(e.type)}(e)){if(e.config.deviceRestriction===Qt.DESKTOP_ONLY&&t)return!1;if(e.config.deviceRestriction===Qt.MOBILE_ONLY&&!t)return!1}return!0}(e,t),i=function(e,t=[],n=[]){const i=tn(e),o=0===t.length||t.some(e=>Rt(tn(e)).test(i)),r=n.some(e=>Rt(tn(e)).test(i));return o&&!r}(window.location.href,e.config.urlAllow,e.config.urlBlock),o=function(e){if(function(e){return-1!==nn.indexOf(e.type)}(e)){const{displayStartDate:t,displayEndDate:n}=e.data.live;if(!t&&!n)return!0;const i=Date.now(),o=t?Date.parse(t):null,r=n?Date.parse(n):null;if(o&&!r)return i>=o;if(!o&&r)return i<=r;if(o&&r)return i>=o&&i<r}return!0}(e),r=n&&i&&o;return r&&u.set(e.key,e),r}).map(e=>Object.assign(Object.assign({},e),{data:i.livemode?e.data.live:e.data.test}));return o.logCode(gt.GOT_GLOBAL_ELEMENTS_RESPONSE,{globalElements:n}),i.livemode||n.push(Object.assign(Object.assign({},N()),{data:null})),l.forEach(e=>e({elements:[],globalElements:n})),g([],{elements:[],globalElements:n})},_=()=>dn(this,void 0,void 0,function*(){try{if(!p.length)return;const e=p.filter(e=>!u.has(e.key));if(!e.length)return;return o.logCode(gt.TRY_TO_RENDER_NON_RENDERED_GLOBAL_ELEMENTS,{globalElements:e}),f(e)}catch(e){}}),v=e=>{-1!==e.indexOf(rn)&&T({key:rn,type:_e.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}});const n=e.filter(e=>t.exists("ELEMENT",e)&&e!==rn).map(e=>({key:e,type:t.getElementType(e)}));return!!n.length&&(n.forEach(({key:e})=>y(e)),!0)},y=e=>{on(`${c}elements/${e}.js`)},S=e=>{-1!==e.map(({key:e})=>e).indexOf(rn)&&T({key:rn,type:_e.DEBUG_PANEL,name:"",config:{},data:{live:null,test:null}}),e.forEach(({type:e,key:t})=>{e!==_e.LINK&&e!==_e.FUNDRAISING_PAGE_LINK&&e!==_e.FUNDRAISING_PAGE_INVITE_LINK||T({key:t,type:e,name:"",config:{},data:{live:null,test:null}})})},N=()=>({type:_e.TEST_MODE_PANEL,key:"test-panel",name:"test-panel",config:{}});return{elementsUrl:c,initialize:()=>((()=>{let e=null,t=[],n=0;const i=e=>{[].forEach.call(e,e=>{const i=r(e);if(i&&i.length){if(t.push(...i),n)return;n=window.setTimeout(()=>{var e,i;n=0,null===(e=window.FUN.splitTesting)||void 0===e||e.init(),o.logCode(gt.DOM_OBSERVER_INIT),E(),null===(i=window.FUN.splitTesting)||void 0===i||i.reset(),t=[]},50)}})},r=e=>{const t=[];return e.addedNodes?([].forEach.call(e.addedNodes,e=>{if("A"===e.tagName)return void t.push(e);if(e.classList&&e.classList.contains("fun-widget"))return void t.push(e);if(!e.querySelectorAll)return;const n=e.querySelectorAll(".fun-widget, [href]");n&&[].forEach.call(n,e=>t.push(e))}),t):t};return{run:()=>{try{e=new MutationObserver(i),e.observe(document.documentElement,{childList:!0,subtree:!0})}catch(e){console.error(e)}}}})().run(),window.FUN_DISABLE_GLOBAL_ELEMENTS||on(`${c}elements-global/${i.currentCompanyKey}.js`),Jt().then(()=>h()).then(()=>E()).catch(e=>console.error(e))),createElement:(e,t,n,...i)=>dn(this,[e,t,n,...i],void 0,function*(e,t,n,i=!0){return(yield cn()).createElementByType(e,t,i,n)}),onElementsLoad:e=>{l.push(e)},addElementContent:T,addGlobalElementsContent:f,getElements:v,getElementInstance:e=>cn().then(t=>t.getElementInstance(e)),getRenderedElementsByType:e=>cn().then(t=>t.getRenderedElementsByType(e)),checkWasOpenedByDirectUrl:()=>a().wasOpenedByDirectUrl}}const pn=window.FUN_HOST||"https://api.fundraiseup.com",hn=window.FUN_STATIC,En=window.FUN_STATIC_S3||"https://static.fundraiseup.com";var mn,gn,Tn;function fn(e,t){return`${e}/elements${t}`}function _n(e,t,n){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url),i.withCredentials=!("withCredentials"in e)||Boolean(e.withCredentials),i.onload=function(){if(this.status>=200&&this.status<300){const e=i.getResponseHeader("content-type");if(e&&-1!==e.indexOf("application/json"))try{return t(JSON.parse(i.response))}catch(e){n(e)}t(i.response)}else{if(e.validStatuses&&-1!==e.validStatuses.indexOf(this.status))return t();n(new Error(`[Shared]: Server ${e.method} response status ${this.status} for url ${e.url}, ${i.statusText}`))}},i.onerror=function(){n({status:this.status,statusText:i.statusText})};const o=e.headers;o&&Object.keys(o).forEach(function(e){i.setRequestHeader(e,o[e])});let r=e.params;return r&&"object"==typeof r&&(r=JSON.stringify(r)),i.send(r),{abort(){i.abort()}}}s.p=hn||s.p,function(e){e.DATA="/data",e.DONATION_FORM_PRESETS="/default/predict_default_amounts/v4",e.DONATION_FORM_PRESETS_V5="/donationFormPresets/v5",e.DEFAULT_FREQUENCY="/getDefaultFrequency/v3",e.GOALS="/goals"}(mn||(mn={})),function(e){e.ONCE="once",e.DAILY="daily",e.WEEKLY="weekly",e.BIWEEKLY="biweekly",e.EVERY_4_WEEKS="every4weeks",e.MONTHLY="monthly",e.BIMONTHLY="bimonthly",e.QUARTERLY="quarterly",e.SEMIANNUAL="semiannual",e.ANNUAL="annual"}(gn||(gn={})),function(e){e.ELEMENT_ID="elementId",e.ELEMENT_KEY="elementKey",e.FORM="form",e.AMOUNT="amount",e.CURRENCY="currency",e.RECURRING="recurring",e.MODIFY_DESIGNATION="modifyDesignation",e.FIRST_NAME="firstName",e.LAST_NAME="lastName",e.EMAIL="email",e.DESIGNATION="designationId",e.TRIBUTE="tributeHonoree"}(Tn||(Tn={}));const vn=[_e.DONATION_FORM];_e.DONATION_FORM;const yn=/\/-\/(X[\dA-Z]{7})/,Sn=/^X[\dA-Z]{7}/,Nn=new RegExp("\\/-\\/(N[\\dA-Z]{7})"),wn=new RegExp(`${Nn.source}(?!\\/join)`),An=new RegExp(`${Nn.source}\\/join`),On=/^N[\dA-Z]{7}/i,In=/^[\dA-Z_-]{1,25}$/i,Cn=/#?(FUN.{8})/i;var Rn;!function(e){e.P2P="p2p"}(Rn||(Rn={}));var Pn=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})};function bn(e){return(0,qt.U)(window.location.search.substring(1))[e]}var Ln=s("../murmur/dist/murmur.js");function Dn({elementKey:e,elementType:t,widgetKey:n,queryParams:i}){return e&&t?Object.assign(Object.assign({},i),{type:t,elementKey:e,key:n}):Object.assign(Object.assign({},i),{type:_e.DIRECT_LINK,elementKey:"",key:n})}function Mn(e){const t={elementType:_e.DIRECT_LINK,splitTestName:"",splitTestVariant:"",widgetKey:""};return e.elementKey&&e.type?Object.assign(Object.assign(Object.assign({},t),e),{elementType:e.type,widgetKey:e.key}):t}const kn=/#([\da-z_-]{1,25})(\?|&|$)/i;function xn(e){const t=kn.exec(e);return t&&t[1]?t[1]:""}class Un extends Je{constructor(e){super(),this.payload={duration:e.duration,eventComment:{widgets:e.widgets}}}get eventType(){return"checkoutResolve"}}class Fn extends Je{get eventType(){return je}}function Gn(e,t=!0){if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,s]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(s):i[r]=s}catch(e){console.error(e)}}return i}class Kn extends Je{constructor(e){super();const t=Gn(location.href);t[ze]&&(this.payload.splitTestName=t[ze]),t.fun_variant&&(this.payload.splitTestVariant=t[ze]),e&&(this.payload.eventComment=Object.assign(Object.assign({},this.payload.eventComment),e))}get eventType(){return He}}class Bn extends Je{constructor(e,t){super(),this.payload={splitTestName:e,splitTestVariant:t}}get eventType(){return"testVariantSelected"}}const Vn=(e,t,n,i,o,r,a,c,l,d,u,p,h,E)=>{let m,g=!1,T=!1;const f=o.fromDonorPortal,_=()=>{l.logCode(gt.INIT,gt.TRY_TO_OPEN_BY_DIRECT_LINK);const t=[window.location.href];window.FundraiseUp.h&&window.FundraiseUp.h.match(/^https?:\/\/.+\..+\//)&&t.push(window.FundraiseUp.h);for(let i=0;i<t.length;i++){const o=t[i];l.logCode(gt.INIT,gt.TRY_TO_OPEN_BY_URL,o);const s=(0,qt.U)(o),a=s.form,d=xn(o),u={queryParams:s},p=c.exists("WIDGET",a),h=c.exists("WIDGET",d),E=p&&a||h&&d;if(E){const t=Dn({elementType:c.getElementType(s.element),elementKey:s.element,widgetKey:E,queryParams:s}),n=Mn(t);nt({tracker:r,widgetKey:E,keysKeeper:c,elementType:t.type,elementKey:t.elementKey,splitTestName:"",splitTestVariant:""});const i=Object.assign(Object.assign({},u),{launcher:{element:{key:n.elementKey,type:n.elementType}}});return T=!0,e.open(E,i)}const m=c.getElementType(a);if(m===_e.P2P_BUTTON||m===_e.P2P_LINK)return l.logCode(gt.INIT,gt.TRY_TO_OPEN_BY_ELEMENT_KEY_URL),T=!0,n.open(a);if(On.test(a))return l.logCode(gt.INIT,gt.TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL),T=!0,n.open(a);if(a&&In.test(a))return l.logCode(gt.INIT,gt.TRY_TO_OPEN_BY_FUNDRAISER_KEY_URL),T=!0,n.openByFundraiserSlug(a)}return Promise.resolve()},v=()=>{!function(e,t){if(t.get()||t.set({disableIsFundraiseupVisitor:!1,elements:{showAllGlobalElementsInTestEnv:!1},settings:{}},{path:e.location.pathname}),e.querySelector(`iframe#${rn}`))return;const n="#"+rn,i=e.createElement("a");i.setAttribute("href",n),i.style.display="none",e.body.appendChild(i)}(document,d)},y=()=>{return e=void 0,t=void 0,i=function*(){if(!o.abTestMode)return;const{SplitTesting:e}=yield s.e(707).then(s.bind(s,"./src/splitTesting/SplitTesting.ts"));m=new e({keysKeeper:c,clientId:r.clientId,api:window.FundraiseUp,companyKey:o.currentCompanyKey,demoMode:o.abTestDemoMode,onVariantSelect:({testName:e,variantName:t})=>{r.track(new Bn(e,t))},onReset:()=>{m.allVariantNodes.forEach(e=>{const t=[].slice.call(e.querySelectorAll('a[href^="#X"],a[href^="#x"]')).some(e=>c.exists("ELEMENT",e.hash.replace("#","")));if(t)return void l.log("Split Testing: on reset",{hasElement:t});const n=u.getNodeParams(e),i=u.extractNodeParams(e)||n,o=null==i?void 0:i.key;o&&c.exists(["WIDGET","ELEMENT"],o)?l.log("Split Testing: known key",{key:o}):cn().then(t=>t.createElementByType(_e.SPLIT_TESTING,{elementKey:"",elementType:_e.SPLIT_TESTING,elementName:_e.SPLIT_TESTING,config:{},elementFoundTimestamp:Date.now()},!1,e).catch(e=>console.error(e)))})}}),m.init()},new((n=void 0)||(n=Promise))(function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())});var e,t,n,i},S={get experiments(){return h},get splitTesting(){return m},get livemode(){return o.livemode},get version(){return o.version},get initialized(){return g},get wasOpenedByDirectUrl(){return T},init:()=>g?(l.logCode(gt.INTERNAL_API_INITIALIZED),Promise.resolve()):(p.incrementSession(),document.head.insertAdjacentHTML("beforeend",'<link href="https://ucarecdn.com/" rel="dns-prefetch">'),function(e){if(window.FUN_WIDGET_KEYS){e.addWidgetKeys(window.FUN_WIDGET_KEYS);const t=window.FUN_WIDGET_KEYS.push;window.FUN_WIDGET_KEYS.push=function(...n){return e.addWidgetKeys(n),t.apply(window.FUN_WIDGET_KEYS,n)}}}(c),function(e){window.FUN_ELEMENT_KEYS={add(t,n){e.addElementKeys(t,n)}}}(c),(()=>{const e=function(e){return{gaDetectResult:{gtag:Boolean(e.gtag),ga:Boolean(e.ga&&e.ga.create),ga4:Boolean(e.dataLayer)}}}(window),t=function(e){return e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches}(window);r.track(new Kn(Object.assign(Object.assign({},e),{darkMode:t}))),window.addEventListener("beforeunload",()=>{r.track(new Fn)}),a.onResolve((e,t)=>{r.track(new Un({widgets:[e.campaign.key],fundraisingPages:e.fundraisingPage?[e.fundraisingPage.key]:[],duration:t.duration}))})})(),function(e,t){const n=(e,n)=>"string"!=typeof e?e[0](t):t[e](...[].slice.call(n));return{init:()=>{e.l.forEach(e=>{n(...e)}),e.l.push=e=>(n(...e),e.length)}}}(window.FundraiseUp,e).init(),Promise.all([y(),t.initialize(),_(),f?Promise.resolve():function(){if("yes"===bn("fundraiseupDebug")){const e=prompt("");if(e)return 1648622467===(0,Ln.A)(e)}return"yes"===bn("fundraiseupABTestDebug")}()?Jt().then(()=>v()):Promise.resolve()]).then(()=>{g=!0,window.FUN_STARTUP_HOOK&&window.FUN_STARTUP_HOOK(),null==m||m.reset()})),checkout:e,elements:t,forms:n,services:i,config:o,tracker:r,debug:function(){const e=new Date;e.setFullYear(e.getFullYear()+5),E.set(!0,{expires:e})}};return f||(S.showDebugPanel=v),S};function Hn(e){return e.map(e=>({...e,key:e.name}))}const jn={experimentId:o[i.CHECKOUT_BUNDLE_EXPERIMENT],name:i.CHECKOUT_BUNDLE_EXPERIMENT,enabled:!1,scope:r.EMBED,variants:[{name:c.CONTROL,weight:33},{name:c.TEST_1,weight:33},{name:c.TEST_2,weight:33},{name:c.TEST_3,weight:1}]},Xn={experimentId:o[i.EMBED_TEST_EXPERIMENT],name:i.EMBED_TEST_EXPERIMENT,enabled:!1,scope:r.EMBED,variants:[{name:p.CONTROL,weight:1},{name:p.TEST,weight:1}]},Yn={experimentId:o[i.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT],name:i.STEPLESS_MOBILE_CHECKOUT_EXPERIMENT,enabled:!1,scope:r.EMBED,variants:[{name:C.CONTROL,weight:1},{name:C.TEST,weight:1}]},zn={experimentId:o[i.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT],name:i.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT,enabled:!1,scope:r.EMBED,variants:[{name:H.CONTROL,weight:1},{name:H.TEST_1,weight:1},{name:H.TEST_2,weight:1},{name:H.TEST_3,weight:1},{name:H.TEST_4,weight:1}]};const Wn=function(e){return[jn,Xn,Yn,zn].map(e=>({...e,variants:Hn(e.variants)})).map(t=>{const n=e.find(e=>e.experimentId===t.experimentId);return n?{experimentId:n.experimentId,enabledWidgets:n.enabledWidgets,disabledWidgets:n.disabledWidgets,scope:n.scope,name:n.name,enabled:n.enabled,variants:Hn(n.variants),disabledAccounts:n.disabledAccounts,enabledAccounts:n.enabledAccounts}:t})};class $n{constructor({distributionId:e,name:t,variants:n,sentry:i}){this.variants=new Map,this.distributionId=e,this.name=t,this.sentry=i,n.forEach(e=>{this.variants.set(e.name,{name:e.name,key:e.key,weight:e.weight})}),this.variantSelectors=this.getDistributedSelectors()}get currentVariantName(){return this._currentVariantName}get currentVariantKey(){var e;return this._currentVariantName?null===(e=this.variants.get(this._currentVariantName))||void 0===e?void 0:e.key:void 0}get previousVariantName(){return this._previousVariantName}initCurrentVariantName(){var e;const t=this.getSelection(),n=[];this.variantSelectors.forEach((e,t)=>{n.push([t,e])}),this.currentVariantName=null===(e=n.find(([,[e,n]])=>t>=e&&t<n))||void 0===e?void 0:e[0]}setVariant(e){this.variants.has(e)?this.currentVariantName=e:this.sentry.captureException(new Ce(this.name))}set currentVariantName(e){this._previousVariantName=this._currentVariantName,this._currentVariantName=e}getSelection(){const e=this.getMaxDistributionValue();return Number((0,Ln.A)(`${this.distributionId}:${this.name}`)%e)}getDistributedSelectors(){let e=0;const t=new Map;return this.assertVariantsWithWeight(this.variants),this.variants.forEach(({weight:n},i)=>{const o=this.getWeightSum(),r=this.getMaxDistributionValue()/o;t.set(i,[e,e+r*n]),e+=r*n}),t}getWeightSum(){let e=0;return this.assertVariantsWithWeight(this.variants),this.variants.forEach(({weight:t})=>e+=t),e}getMaxDistributionValue(){return 100*this.variants.size}assertVariantsWithWeight(e){if(![...e.entries()].every(([,{weight:e}])=>void 0!==e))throw new Error("Every variant should have weight")}}class qn{constructor(e){this.experiments=new Map;const{experimentsSettings:t,tracker:n,funStorage:i,companyKey:o,widgetKey:r,user:s,parentCompanyKey:a,infrastructureParams:c,sentry:l,distributionId:d,isDebugMode:u,isFundraiseupVisitor:p,isAbTestMode:h=!1}=e;if(this.experimentsSettings=t,this.tracker=n,this.funStorage=i,this.companyKey=o,this.parentCompanyKey=a,this.widgetKey=r,this.user=s,this.infrastructureParams=c,this.sentry=l,this.distributionId=d,this.isDebugMode=u,this.isFundraiseupVisitor=p,this.isAbTestMode=h,!this.distributionId)throw new Error("ExperimentController: Distribution ID is required")}get allowExperiments(){return!!this.isDebugMode||!this.isFundraiseupVisitor&&!this.isAbTestMode}register(e,t){if(this.experiments.has(e))return;const n=this.createExperiment(e,t);n&&this.experiments.set(e,n)}get(e){if(!this.experiments.has(e)){const t=new Re(e);throw this.sentry.captureException(t),t}return this.experiments.get(e)}registerAndGet(e,t){return this.register(e,t),this.get(e)}has(e){return this.experiments.has(e)}createExperiment(e,t){const n=o[e];if(!n)throw new Error(`ExperimentController: Experiment ID not found for experiment ${e}`);const i=this.experimentsSettings.find(e=>e.experimentId===n);if(!i)return this.sentry.captureException(new Ie(e)),null;const r=this.getDistributionExperimentName(i),s=new $n({distributionId:this.distributionId,name:r,variants:i.variants,sentry:this.sentry});return new t({settings:i,companyKey:this.companyKey,parentCompanyKey:this.parentCompanyKey,tracker:this.tracker,funStorage:this.funStorage,user:this.user,widgetKey:this.widgetKey,infrastructureParams:this.infrastructureParams,sentry:this.sentry,distribution:s,allowExperiments:this.allowExperiments})}getDistributionExperimentName(e){return e.experimentId===o[i.AMOUNT_PRESETS_DONATION_FORM_V_5_EXPERIMENT]?i.AMOUNT_PRESETS_CHECKOUT_V_5_EXPERIMENT:e.name}}class Jn extends qn{register(e,t,n){const i=this.getExperimentKey(e,n),o=this.createExperiment(e,t);o&&this.experiments.set(i,o)}get(e,t){const n=this.getExperimentKey(e,t);return super.get(n)}registerAndGet(e,t,n){return this.register(e,t,n),this.get(e,n)}has(e,t){const n=this.getExperimentKey(e,t);return super.has(n)}getExperimentKey(e,t){return t?`${e}_${t}`:e}}function Zn(e){return null!=e}var Qn=s("./src/helpers/parseHref.ts");const ei=(e,t)=>{const n=new WeakMap,i=i=>{if("fun"===i.getAttribute("data-ignore"))return null;const o=i.getAttribute("href")||"";let r=(0,Qn.d)(o);const s=(0,qt.U)(o);if(yn.test(o)){const e=yn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=_e.TEXT_LINK}}if(wn.test(o)){const e=wn.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=_e.FUNDRAISING_PAGE_LINK}}if(An.test(o)){const e=An.exec(o);if(e&&e[1]){const t=e[1];r||(r={}),r.key=t,r.type=_e.FUNDRAISING_PAGE_INVITE_LINK}}o==="#"+rn&&(r||(r={}),r.key=rn,r.type=_e.DEBUG_PANEL),s.form&&(r||(r={}),r.key=s.form,Object.assign(r,s));const a={type:_e.LINK,key:"",elementFoundTimestamp:0};if(r){const t=r.type||function(e,t,n){if(/^[#?]/.test(n))return!0;const i=e.split("#")[0],o=t.split("#")[0],r=t.split("?")[0];return i===o||i===r||e.split("?")[0]===r}(i.href,window.location.href,o);if(!t)return null;a.key=r.key;const n=r.type||e.getElementType(a.key);a.type=n||_e.LINK}else a.key=function(e){if(e.getAttribute)return e.getAttribute("data-key")||void 0}(i)||"";return-1!==[_e.LINK,_e.FUNDRAISING_PAGE_LINK,_e.FUNDRAISING_PAGE_INVITE_LINK,_e.TEXT_LINK].indexOf(a.type)&&(a.queryParams=s),a.key?e.exists("ELEMENT",a.key)&&s.form===a.key?null:a.type!==_e.LINK||e.exists("ELEMENT",a.key)||e.exists("WIDGET",a.key)?(r&&r.designationId&&(c=r.designationId)&&me.test(c)&&(a.designationId=r.designationId),a.key=Ve(e,a.key),a.node=i,a.elementFoundTimestamp=Date.now(),t.logCode(gt.EXTRACT_NODE_PARAMS,{params:a}),n.set(a.node,a),a):null:null;var c};return{getNodeParams:e=>n.get(e),findElements:()=>{const e=document.querySelectorAll(".fun-widget, a[href]");return t.logCode(gt.FIND_ELEMENTS,{primaryNodes:e}),o=[].slice.call(e),t.logCode(gt.CREATE_ELEMENTS_PARAMS,{nodes:o}),o.filter(e=>!n.has(e)).filter(e=>(e=>"function"!=typeof document.contains||document.contains(e))(e)).map(e=>i(e)).filter(Zn);var o},extractNodeParams:i}},ti=e=>e&&"object"==typeof e&&"consent"===e[0],ni=e=>ti(e)&&"default"===e[1],ii=e=>ti(e)&&"update"===e[1],oi=(e,t)=>({checkHasDefaultConsent:()=>{var e;return Boolean((null===(e=t.dataLayer)||void 0===e?void 0:e.length)&&t.dataLayer.some(ni))},initialize:()=>{t.dataLayer=t.dataLayer||[];const n=t.dataLayer.push;t.dataLayer.forEach(t=>{ni(t)&&e.emit("consentDefault",t[2]),ii(t)&&e.emit("consentUpdate",t[2])}),((t,n)=>{t.push=function(...i){return i.forEach(t=>{ii(t)&&e.emit("consentUpdate",t[2])}),n.apply(t,i)}})(t.dataLayer,n)}});var ri;function si(e,t,n,i,o,r){let s=!1;const a=i=>{try{e.logCode(gt.CONSENT_API_UPDATE,{consent:i}),"granted"===i.functionality_storage&&(o.initializeFuncStorage(),r.setupFuncCookie()),"denied"===i.functionality_storage&&o.deniedWriteToFuncStorage(),"granted"===i.analytics_storage&&o.initializeStatStorage(),i.ad_user_data&&(s="granted"===i.ad_user_data,n.emit(ri.UPDATE,{marketingCookieConsent:s}))}catch(n){e.logCode(gt.CONSENT_API_ERROR,{error:n}),t.captureException(new Error(`Consent API error: ${n.message}`))}},c=e=>{e.region||a(e)},l=e=>{a(e)};return{getUserSessionConsent:()=>s,initialize:t=>{i.checkHasDefaultConsent()?(o.topLevelDomain=t,r.topLevelDomain=t,r.initialize(),n.on("consentDefault",c),n.on("consentUpdate",l),i.initialize(),e.logCode(gt.CONSENT_API_INITIALIZED,{dataLayer:window.dataLayer})):(o.allowWriteToFuncStorage(),o.topLevelDomain=t,o.initialize(),r.topLevelDomain=t,r.initialize(),r.setupFuncCookie(),e.logCode(gt.CONSENT_API_DISABLED,{dataLayer:window.dataLayer}))}}}!function(e){e.UPDATE="sessionConsentUpdate"}(ri||(ri={}));class ai{constructor(){this.events=new Map}on(e,t){const n=this.events.get(e)||[];n.push(t),this.events.set(e,n)}off(e,t){const n=(this.events.get(e)||[]).filter(e=>e!==t);this.events.set(e,n)}emit(e,...t){(this.events.get(e)||[]).forEach(e=>e(...t))}}const ci=["APZMZAGU","AZFMPNQE","ARVHGABZ","AGSTXLKM"];var li=s("./src/preloader/backdrop.css"),di=s.n(li);function ui(e,t){if(e.body)return t();setTimeout(ui.bind(null,e,t),10)}const pi="fun-widget-backdrop-spinner";class hi{constructor(e,t,n){this.targetWindow=e,this.scrollLocker=t,this.eventEmitter=n,this.isExists=!1,this.container=null,this.activeSource=null,this.targetWindow=e,this.setStyle()}render({showSpinner:e=!1,source:t}){return this.isExists=!0,this.targetWindow.document.getElementById(hi.styleId)||this.setStyle(),this.activeSource=t,this.container||(this.container=this.targetWindow.document.createElement("div"),this.container.__funIgnoreInViewportTracker=!0,this.container.classList.add("fun-widget-backdrop-holder"),this.container.style.setProperty("background","rgba(57, 58, 63, 0.85)","important"),e&&this.showSpinner(),this.targetWindow.document.body?(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock()):ui(this.targetWindow.document,()=>{this.container&&(this.targetWindow.document.body.appendChild(this.container),this.scrollLocker.lock())}),this.eventEmitter.emit("backdropOpen",void 0)),this}setStyle(){this.targetWindow.document.head.insertAdjacentHTML("afterbegin",`<style id="${hi.styleId}">${di()}</style>`)}remove(e=!1){return this.isExists=!1,this.scrollLocker.unlock(),this.container?e?(this.removeContainer(),this.notifyBackdropClosed(),this):(this.container.style.transition="opacity .2s ease",this.container.addEventListener("transitionend",()=>{this.container&&(this.removeContainer(),this.notifyBackdropClosed())}),this.container.style.opacity="0",this):this}removeContainer(){this.container&&(this.container.remove(),this.container=null)}notifyBackdropClosed(){this.activeSource=null,this.eventEmitter.emit("backdropClose",null)}hideSpinner(){if(!this.container)return console.warn(3),this;const e=this.container.querySelector(`#${pi}`);return e&&e.remove(),this}showSpinner(){return this.container?(this.container.insertAdjacentHTML("afterbegin",`<div id=${pi} class="fun-widget-backdrop" />`),this):(console.warn(3),this)}getActiveSource(){return this.activeSource}}var Ei;hi.styleId="__funBackdropStyles",function(e){e.WITH_ASK_PAGE="withAskPage",e.NO_ASK_PAGE="noAskPage"}(Ei||(Ei={}));const mi=(e,t,n)=>n.indexOf(e)===t,gi=Symbol("CUSTOM_FINGERPRINT");Symbol("EXTRA"),Symbol("TAGS");var Ti=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})};const fi=new Map;function _i(e){return Ti(this,void 0,void 0,function*(){const t=new vi(e),n=fi.get(e.url);e.cancelSimilar&&n&&n(),fi.set(e.url,t.abort.bind(t));try{const n=yield t.send();return fi.delete(e.url),n}catch(t){throw"AbortError"!==(null==t?void 0:t.originalErrorName)&&fi.delete(e.url),t}})}class vi{constructor(e){this.options=e,this.abortController=function(){try{return void 0!==window.AbortController}catch(e){return!1}}()?new AbortController:null}abort(){var e;null===(e=this.abortController)||void 0===e||e.abort()}send(){return Ti(this,void 0,void 0,function*(){var e,t;const n=this.getUrl(),i=this.getHeaders(),o=this.getBody(),r=this.getCredentials();let s;try{s=yield fetch(n,{method:this.options.method,signal:null===(e=this.abortController)||void 0===e?void 0:e.signal,headers:i,credentials:r,body:o})}catch(e){const t=e instanceof Error?e.message:"Network Error";throw new yi(0,t,this.options.method,this.options.url,null==e?void 0:e.name,this.options.setCustomFingerprint)}const a=s.status;let c;const l=s.headers.get("content-type");if(c=(null==l?void 0:l.includes("application/json"))?yield s.json():yield s.text(),a>=500&&this.options.rejectOnInvalid)throw new yi(a,s.statusText,this.options.method,this.options.url,"",this.options.setCustomFingerprint);const d=a>=200&&a<400||(null===(t=this.options.validStatuses)||void 0===t?void 0:t.includes(a));return{data:c,valid:Boolean(d)}})}getHeaders(){const e=new Headers,t=this.options.headers;return t&&Object.keys(t).forEach(n=>{const i=t[n];void 0!==i&&e.append(n,i)}),e}getBody(){return void 0!==this.options.params&&"GET"!==this.options.method?JSON.stringify(this.options.params):null}getUrl(){let e=this.options.url;if("GET"===this.options.method&&this.options.params){const t=new URLSearchParams;for(const e of Object.keys(this.options.params))void 0!==this.options.params[e]&&t.set(e,String(this.options.params[e]));e+=`?${t.toString()}`}return e}getCredentials(){return"withCredentials"in this.options?this.options.withCredentials?"include":"omit":"include"}}class yi extends Error{constructor(e,t,n,i,o,r){super(`[Checkout Shared]: Server ${n} response status ${e}, ${t} for url ${i}`),this.originalErrorName=o,this.isRequestError=!0,r&&(this[gi]=[i,t]),this.statusCode=e}}var Si,Ni,wi;function Ai(e,t,n,i,o){const r=[],s=new Map,a=!0===window.FUN_DASHBOARD,c=c=>{return p=this,h=[c],m=function*({keys:c,livemode:p,externalQueryParams:h}){var E;const m=Object.assign(e.queryParams||{},h),g=((e,t,n,i,o)=>{const r=t.filter(t=>e.exists("WIDGET",t)),s=t.filter(t=>e.itLooksLikeKey("FUNDRAISING_PAGE",t)),a={campaign:r[0],fundraisingPage:void 0,locale:n,pageViewId:i},c=null==o?void 0:o.fundraiser;if(c){const e=(d=l=c,On.test(d)?l.toUpperCase():(e=>In.test(e))(l)?l:"");if(e)return a.fundraisingPage=e,a}var l,d;return s.length&&(a.fundraisingPage=s[0]),a})(t,c,e.locale.code,null===(E=i.page)||void 0===E?void 0:E.pageViewId,m);if(l(g))return n.logCode(gt.EMPTY_RESOLVE_REQUEST),Promise.resolve();n.logCode(gt.SEND_RESOLVE_REQUEST,g);const T=u(p),f=Date.now();let _;const v=d(g),y=s.get(v);y&&!a?_=y:(_=yield _i({method:"POST",url:T,headers:{"content-type":"text/plain; charset=utf-8"},params:g}).then(e=>e.data).catch(e=>{throw o.captureException(e),e}),s.set(v,_));const S={params:c,duration:Date.now()-f};return r.forEach(e=>e(_,S)),n.logCode(gt.GOT_RESOLVE_RESPONSE,{data:_,info:S}),_},new((E=void 0)||(E=Promise))(function(e,t){function n(e){try{o(m.next(e))}catch(e){t(e)}}function i(e){try{o(m.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof E?o:new E(function(e){e(o)})).then(n,i)}o((m=m.apply(p,h||[])).next())});var p,h,E,m},l=e=>!e.campaign&&!e.fundraisingPage,d=e=>{const t=[];return e.campaign&&t.push(e.campaign),e.fundraisingPage&&t.push(e.fundraisingPage),t.join("_")},u=t=>{const n=null!=t?t:e.livemode;return`${e.server.resolveUrl}&livemode=${n?"true":"false"}`};return{resolveFundraisingPages:e=>(n.logCode(gt.RESOLVE_FUNDRAISING_PAGE,e),c({keys:e})),resolveKeys:({keys:e,livemode:i,externalQueryParams:o})=>{const r=e.filter(mi).filter(e=>(e=>t.exists("WIDGET",e)||t.itLooksLikeKey("FUNDRAISING_PAGE",e))(e));return r.length?(n.logCode(gt.RESOLVE_KEYS,{keys:e}),c({keys:r,livemode:i,externalQueryParams:o})):Promise.resolve()},onResolve:e=>{r.push(e)},needResolve:e=>!s.has(e.join("_"))}}function Oi(e,t){return function(e){return e!==Si.TESTING}(e)?{domain:t,sameSite:"None",secure:!0}:{domain:t}}!function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(Si||(Si={})),function(e){e.STRING="string",e.OBJECT="object"}(Ni||(Ni={})),function(e){e.ENABLED="1"}(wi||(wi={}));class Ii{constructor(e,t,n,i){this.funSessionStorage=e,this.funStatStorage=t,this.env=n,this.disableNewCookies=i,this.topLevelDomain=""}initialize(){if(this.disableNewCookies)return;const e=Oi(this.env,this.topLevelDomain);this.isStatStorageInitialized||this.funStatStorage.set(e),this.isFuncStorageInitialized||this.funSessionStorage.initialize(this.topLevelDomain,e)}initializeStatStorage(){const e=Oi(this.env,this.topLevelDomain);this.isStatStorageInitialized||this.funStatStorage.set(e)}initializeFuncStorage(){this.allowWriteToFuncStorage(),this.funSessionStorage.setInMemoryDataToStorage()}allowWriteToFuncStorage(){this.funSessionStorage.allowWrite=!0}deniedWriteToFuncStorage(){this.funSessionStorage.allowWrite=!1}get isStatStorageInitialized(){return null!==this.funStatStorage.get()}get isFuncStorageInitialized(){return this.funSessionStorage.isFuncStorageInitialized}}class Ci{constructor(e,t,n){this.env=e,this.storage=t,this.options=n,this.topLevelDomain=""}initialize(){this.cookieAttributes=Oi(this.env,this.topLevelDomain)}setupFuncCookie(){var e,t;if(null===(e=this.options)||void 0===e?void 0:e.disableNewCookies)return;const n=this.getCookie($t.e.FUNC),i=this.getCookie($t.e.SESSION);!n&&i&&(this.setCookie($t.e.FUNC,i),(null===(t=this.options)||void 0===t?void 0:t.removeLegacyCookies)&&this.removeLegacyCookie())}removeLegacyCookie(){this.removeCookie($t.e.SESSION)}getCookie(e){return this.storage.get(e)}setCookie(e,t){this.storage.set(e,t,this.cookieAttributes)}removeCookie(e){this.storage.remove(e,this.cookieAttributes)}}class Ri{constructor(e,t){this.STORAGE_KEY=e,this.storage=t}get(){return null!==this.storage.get(this.STORAGE_KEY)}set(e,t){e?this.storage.set(this.STORAGE_KEY,"",t):this.remove(t)}remove(e){this.storage.remove(this.STORAGE_KEY,e)}}class Pi extends Ri{constructor(e){super($t.e.DEBUG,e),this.storage=e}}function bi(){const e=[],t=window.location.hostname.split(".");let n=t.splice(-1).join();for(let i=t.length;i>0;i--)n=t.splice(-1).join()+"."+n,e.push(n);return e}const Li=(e,t=Wt.A)=>{function n(e,n){t.remove(e,n)}function i(e){return!!window.FUN_DO_NOT_TRACK||!!window.FUN_ONLY_STRICTLY_NECESSARY_COOKIES&&e!==$t.e.CID}return window.FUN_DO_NOT_TRACK&&bi().forEach(e=>{n($t.e.CID,{domain:e}),n($t.e.SESSION,{domain:e}),n($t.e.FUNC,{domain:e}),n($t.e.PERFORMANCE,{domain:e})}),window.FUN_ONLY_STRICTLY_NECESSARY_COOKIES&&bi().forEach(e=>{n($t.e.SESSION,{domain:e}),n($t.e.FUNC,{domain:e}),n($t.e.PERFORMANCE,{domain:e})}),{get:function(n){if(i(n))return null;const o=t.get(n);if(!o)return null;if(e===Ni.OBJECT){let e=null;return e=JSON.parse(o),e}return o},set:function(n,o,r){i(n)||(e===Ni.OBJECT&&(o=JSON.stringify(o)),t.set(n,o,r))},remove:n}};class Di{constructor(e,t){this.field=e,this.storage=t}get(){return this.storage.get(this.field)}set(e,t){this.storage.set(this.field,e,t)}remove(e){this.storage.remove(this.field,e)}}var Mi;function ki(e,t){if(!Object.keys(Mi).find(e=>Mi[e]===t))throw new Error(`UNSUPPORTED_TYPE_OF_STORAGE ${t}`);return new Di(e,Li(t))}!function(e){e.STRING="string",e.OBJECT="object"}(Mi||(Mi={}));class xi{constructor(){this.storage=ki($t.e.PERFORMANCE,Mi.STRING)}get(){return this.storage.get()}set(e={}){this.storage.set(wi.ENABLED,e)}}class Ui{constructor(e){this.dictionary=new Map,this.reverseDictionary=new Map;for(const t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;const n=e[t];this.dictionary.set(t,n),this.reverseDictionary.set(n,t)}}zip(e){return this.zipKeys(this.toFlatData(e))}unzip(e){return this.fromFlatData(this.unzipKeys(e))}unzipKeys(e){const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.dictionary.get(n);i?t[i]=e[n]:console.error(`The key for the "${n}" field was not found`)}return t}zipKeys(e){const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.reverseDictionary.get(n);i?t[i]=e[n]:console.error(`The minification key for the "${n}" field was not found`)}return t}toFlatData(e){const t={};for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=e[n];if(Fi(i)){t[n]=i;continue}const o=this.toFlatData(i);for(const i in o)Object.prototype.hasOwnProperty.call(e,n)&&(t[n+"."+i]=o[i])}return t}fromFlatData(e){let t={};return Object.keys(e).forEach(n=>{const i=e[n],o=n.split("."),r={};let s;o.forEach((e,n)=>{if(o.length===n+1)return s?void(s[e]=i):void(r[e]=i);const a=e;if(t[a])s=t[a];else{if(s)return s[e]||(s[e]={}),void(s=s[e]);r[e]={},s=r[e]}}),t=Object.assign({},t,r)}),t}}function Fi(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e||Array.isArray(e)}class Gi{constructor(e,t,n){this.storage=e,this.zipper=t,this.disableNewCookies=n}getData(){const e=this.storage.get(this.key);return e?this.zipper.unzip(e):{}}setData(e,t){const n=this.zipper.zip(e);this.storage.set(this.key,n,t)}removeData(e){this.storage.remove(this.key,e)}}class Ki extends Gi{constructor(){super(...arguments),this.key=$t.e.FUNC}get available(){if(this.disableNewCookies)return!1;const e=Boolean(this.storage.get($t.e.CID));return!e||e&&Boolean(this.storage.get(this.key))}}class Bi extends Gi{constructor(){super(...arguments),this.key=$t.e.SESSION}get available(){return!!this.disableNewCookies||Boolean(this.storage.get($t.e.CID))&&Boolean(this.storage.get(this.key))}}const Vi={topLevelDomain:"topLevelDomain",t:"topLevelDomain",ida:"intent.donation.amount",idc:"intent.donation.currency",idr:"intent.donation.recurring",idf:"intent.donation.frequency",idh:"intent.donation.selectedHintId",idi:"intent.donation.donationItems",isf:"intent.supporter.firstName",isl:"intent.supporter.lastName",ise:"intent.supporter.email",ici:"intent.campaign.id",iek:"intent.element.key",iet:"intent.element.type",ic:"intent.comment",it:"intent.tribute",itt:"intent.tribute.type",iti:"intent.tribute.inHonorOf",itl:"intent.tribute.labelType",icd:"intent.checkoutSettings.designation",icc:"intent.checkoutSettings.customFields",icma:"intent.checkoutSettings.modifyAmount",icmd:"intent.checkoutSettings.modifyDesignation",ift:"intent.flowType",ifk:"intent.fundraisingPage.key",ifc:"intent.fundraisingPage.customerKey",ife:"intent.feeCovered",mm:"messageBar.manuallyClosed",pi:"popup.interactionAt",fbp:"floatingButtonPopupShown",sl:"socialProof.lastChargeAt",si:"socialProof.interactionAt",sls:"socialProof.lastShownCharge",nsa:"socialProof.nextShowAt",li:"lightbox.interactionAt",lsda:"lastSuccessDonationAt",s:"sessionAt",sp:"sessionPage",x:"xFactor"};class Hi{constructor(e,t,n){this.funLegacyStorage=e,this.funFuncStorage=t,this.disableNewCookies=n}get available(){return this.disableNewCookies?this.funLegacyStorage.available:this.funFuncStorage.available}get isFuncStorageInitialized(){const e=this.funFuncStorage.getData();return!!Object.keys(e).length}getData(){return this.funFuncStorage.available&&this.isFuncStorageInitialized?this.funFuncStorage.getData():this.funLegacyStorage.getData()}getPersistedData(){if(this.funFuncStorage.available){const e=this.funFuncStorage.getData();if(Object.keys(e).length>0)return e}return this.funLegacyStorage.getData()}initialize(e,t){this.funFuncStorage.setData(e,t)}setData(e,t){this.funFuncStorage.available&&this.funFuncStorage.setData(e,t),this.funLegacyStorage.available&&this.funLegacyStorage.setData(e,t)}initFuncStorage(e,t){this.funFuncStorage.setData(e,t)}removeData(e){this.funFuncStorage.available&&this.funFuncStorage.removeData(e),this.funLegacyStorage.available&&this.funLegacyStorage.removeData(e)}}class ji{constructor(e){this.topLevelDomain="",this.storage=ki($t.e.CID,Mi.STRING),this.topLevelDomain=e||""}get(){return this.storage.get()}set(e,t={}){this.storage.set(e,t)}remove(e){this.storage.remove({domain:e})}}var Xi=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})};class Yi{constructor(e){this.apiUrl=e,this.data={}}load(e){return Xi(this,void 0,void 0,function*(){const{source:t,widgetKey:n,locale:i}=e,o=`${n}-${i}`;if(this.data[o])return this.data[o];const r=t===fe.ELEMENTS?yield this.downloadFromElements(e):yield this.downloadFromCheckout(e);return this.data[o]=r,r})}downloadFromElements(e){return Xi(this,arguments,void 0,function*({widgetKey:e,locale:t}){const n=new URL(fn(this.apiUrl,mn.GOALS));n.searchParams.set("widgetKey",e),n.searchParams.set("locale",t);const i=n.toString();let o;try{o=yield fetch(i,{method:"GET"})}catch(e){const t=e instanceof Error?e.message:"Network Error";throw new yi(0,t,"GET",i,e instanceof Error?e.name:void 0)}if(!o.ok)throw new yi(o.status,o.statusText,"GET",i);return o.json()})}downloadFromCheckout(e){return Xi(this,arguments,void 0,function*({widgetKey:e,locale:t}){return(yield _i({method:"POST",url:`${this.apiUrl}/checkout/getGoals`,params:{widgetKey:e,locale:t}})).data})}}const zi="dataLayerEventTracked",Wi="pageViewed";class $i{constructor(e){this.name=Wi,this.properties={},e&&(this.properties={legacy:{event:{comment:JSON.stringify(e)}}})}}class qi{constructor(e,t,n){this.window=e,this.newTracker=t,this.localeCode=n,this.isPingAvailable=!1,this.ping=()=>{},this.debug=void 0,this.page=void 0,this.source=void 0}get clientId(){return this.newTracker.clientId}get companyKey(){return this.newTracker.companyKey}get livemode(){return this.newTracker.livemode}get clientLocale(){return this.localeCode}track(e,t){var n;const i=e,o=i.getPayload?i.getPayload():{};if("pageView"===i.eventType){const e=null===(n=null==o?void 0:o.event)||void 0===n?void 0:n.comment;this.newTracker.track(new $i(e?JSON.parse(e):void 0))}}initializePointerUsageTracking(e){this.newTracker.initializePointerUsageTracking(e||this.window)}subscribe(e,t){this.newTracker.subscribe(t=>e(t),t)}removeEventTags(){}customTrack(){}getTags(){return[]}getTLD(){return""}setEventTags(){}}class Ji extends Je{get eventType(){return"ping"}}class Zi{constructor(e){this.tags=new Set,this.tracker=e}get companyKey(){return this.tracker.companyKey}get clientId(){return this.tracker.clientId}get livemode(){return this.tracker.livemode}get clientLocale(){return this.tracker.clientLocale}get debug(){return this.tracker.debug}get page(){return this.tracker.page}get isPingAvailable(){return this.tracker.isPingAvailable}getTLD(){return this.tracker.getTLD()}getTags(){return Array.from(this.tags)}customTrack(e){return this.tracker.customTrack(e)}track(e,t){return this.tracker.track(e,t)}ping(e,t){const n=e||new Ji;this.tracker.ping(n,t)}initializePointerUsageTracking(){this.tracker.initializePointerUsageTracking()}subscribe(e,t){return this.tracker.subscribe(e,t)}setEventTags(e){e.forEach(e=>this.tags.add(e))}removeEventTags(e){this.tags.forEach(t=>{e.some(e=>t.substring(0,e.length)===e)&&this.tags.delete(t)})}mergeEventTags(e){let t=[];e.payload.eventTags&&(t=e.payload.eventTags.slice()),this.tags.forEach(e=>{-1===t.indexOf(e)&&t.push(e)}),e.payload.eventTags=t}}class Qi extends Zi{constructor(e,{funEmbedRelease:t,isFundraiseupVisitor:n}){super(e),this.funEmbedRelease=t,this.isFundraiseupVisitor=n}track(e,t){this.addTrackerData(e),this.tracker.track(e,t)}addTrackerData(e){e.merge({funEmbedRelease:this.funEmbedRelease,isFundraiseupVisitor:this.isFundraiseupVisitor}),this.mergeEventTags(e)}customTrack(e){this.track(new tt({customEventType:e.type,customEventData:e.data}))}}class eo extends Error{constructor(e){super(e),this.name=this.constructor.name}}class to extends eo{constructor(e){super(`Invalid client ID: ${e}`),this.name="InvalidClientIdError"}}class no extends eo{constructor(e){super(`Event validation failed: ${e}`),this.name="EventValidationError"}}function io(e=19){const t=window.crypto||window.msCrypto;let n="";if(t&&"function"==typeof t.getRandomValues){const i=new Uint8Array(e);t.getRandomValues(i),n=[].slice.call(i).map(e=>e%10).join("")}else for(let t=0;t<e;t++)n+=Math.floor(10*Math.random()).toString();return"0"!==n[0]?n:io(e)}function oo(e){return!!e&&20===e.length&&!/[^\d]/.test(e)}function ro(){return(Date.now().toString()+io(20)).slice(0,20)}class so{constructor(e,t,n){this.clientId="",this.storage=e,this.window=t,this.serverClientId=n}initialize(){this.clientId=this.readClientId()}getClientId(){if(!oo(this.clientId))throw new to(this.clientId);return this.clientId}readClientId(){const e=function(e,t=!0){if(!e)return{};const n=/([^=&#?]+)=([^=&#?]+)/gi,i={};for(;;){const o=n.exec(e);if(!o)break;const[,r,s]=o;try{t?i[decodeURIComponent(r)]=decodeURIComponent(s):i[r]=s}catch(e){console.error(e)}}return i}(this.window.location.href).clientId||"";if(oo(e))return this.storage.set(e),e;const t=this.storage.get()||"";if(oo(t))return this.storage.set(t),t;if(oo(this.serverClientId))return this.storage.set(this.serverClientId),this.serverClientId;const n=ro();return this.storage.set(n),n}}var ao;!function(e){e[e.FOUR_HUNDRED_DAYS=400]="FOUR_HUNDRED_DAYS"}(ao||(ao={}));class co{constructor(e){this.funTrackerStorage=e}get(){return this.funTrackerStorage.get()}set(e){this.funTrackerStorage.set(e,{expires:ao.FOUR_HUNDRED_DAYS,domain:this.funTrackerStorage.topLevelDomain,sameSite:"Lax"})}}const lo=[/^gtm\..*$/,/^__cmp.*$/,/^optimize\..*$/,/^setPromo$/,/^trackOptanonEvent$/,/^consentDataForTheRecord$/,/^optanonConsentUpdated$/,/^nextroll-consent$/,/^FundraiseUp\./,/^youtube/i];class uo{constructor(){this.ignoredEventPatterns=lo,this.isInitialized=!1,this.isABTestMode=!1}initializeTracking(e,t){this.isInitialized||(this.isABTestMode=t,this.isInitialized=!0,this.setupDataLayer(e))}shouldTrackEvent(e){return!(!this.isABTestMode||!e||this.ignoredEventPatterns.some(t=>t.test(e)))}trackEvent(e,t){this.shouldTrackEvent(e)&&this.onEventCallback&&this.onEventCallback(e,t)}getIgnoredEventPatterns(){return[...this.ignoredEventPatterns]}setEventCallback(e){this.onEventCallback=e}setupDataLayer(e){if(e.dataLayer||(e.dataLayer=[]),!Array.isArray(e.dataLayer))return;const t=e.dataLayer;t.forEach(e=>{this.processDataLayerItem(e)});const n=t.push;t.push=(...e)=>(e.length>0&&this.processDataLayerItem(e[0]),n.apply(t,e))}processDataLayerItem(e){const t=this.extractEventName(e);t&&this.trackEvent(t,e)}extractEventName(e){return(Array.isArray(e)||e&&"object"==typeof e&&"number"==typeof e.length)&&e.length>=3&&"event"===e[0]&&"string"==typeof e[1]?e[1]:"object"!=typeof e||Array.isArray(e)||"string"!=typeof e.event?null:e.event}}class po{constructor(){this._isPointingDeviceUsed=!1}isPointingDeviceUsed(){return this._isPointingDeviceUsed}initializeTracking(e){if(this._isPointingDeviceUsed)return;const t=()=>{this.setPointingDeviceUsed(),e.removeEventListener("pointermove",t),e.removeEventListener("pointerdown",t),e.removeEventListener("pointerup",t)};e.addEventListener("pointermove",t),e.addEventListener("pointerdown",t),e.addEventListener("pointerup",t)}setPointingDeviceUsed(){this._isPointingDeviceUsed=!0}reset(){this._isPointingDeviceUsed=!1}}class ho{constructor(){this.subscribers=new Map}subscribe(e,t){this.subscribers.set(t,e)}publish(e){this.subscribers.forEach(t=>{try{t(e)}catch(e){console.error("Error in subscriber callback",e)}})}}function Eo(){return function(){if(!function(){try{return void 0!==window.Intl&&window.Intl&&"object"==typeof window.Intl&&"function"==typeof window.Intl.DateTimeFormat}catch(e){return!1}}())return;const e=new window.Intl.DateTimeFormat("en-US");if("object"!=typeof e)return;const t="function"==typeof e.resolvedOptions&&e.resolvedOptions();if("object"!=typeof t)return;return t.timeZone||void 0}()||function(){const e=-(new Date).getTimezoneOffset()/60;return e>=0?`UTC+${e}`:`UTC${e}`}()}class mo{constructor(e){this.window=e}build(){const{navigator:e}=this.window;return{language:e.language,timezone:Eo(),userAgent:e.userAgent,doNotTrack:"1"===e.doNotTrack,history:{length:this.window.history.length},webdriver:!!e.webdriver,window:{inner:{width:this.window.innerWidth,height:this.window.innerHeight},scroll:{scrollX:Math.max(this.window.scrollX||this.window.pageXOffset||0,0),scrollY:Math.max(this.window.scrollY||this.window.pageYOffset||0,0)}}}}}class go{constructor(e,t){this.clientIdManager=e,this.clientConsentService=t}build(){return{id:this.clientIdManager.getClientId(),consents:this.clientConsentService.getConsents()}}}class To{constructor(e,t,n){this.window=e,this.connectionFormatter=t,this.batteryInfoService=n}build(){var e;const{screen:t,navigator:n}=this.window,i=n.connection||n.mozConnection||n.webkitConnection,o=this.batteryInfoService.getBatteryInfo();return{dateTime:(new Date).toISOString(),memory:n.deviceMemory,cores:"number"==typeof n.hardwareConcurrency?n.hardwareConcurrency:void 0,screen:{orientation:(null===(e=t.orientation)||void 0===e?void 0:e.type)||"unknown",width:t.width,height:t.height,pixelRatio:this.window.devicePixelRatio||1},battery:o,connection:i?{online:n.onLine,type:i.type,downlink:this.connectionFormatter.formatDownlink(i.downlink),effectiveType:i.effectiveType,roundTripTime:i.rtt}:void 0}}}class fo{constructor(e,t){this.window=e,this.pageViewId=t}buildPage(){return{url:this.window.location.href,title:this.window.document.title}}buildPageView(e){return{id:this.pageViewId,referrer:e&&this.window.document.referrer||void 0}}}class _o{formatDownlink(e){if(void 0===e)return;const t=e||0;return"string"==typeof t?parseFloat(t)||0:t}}class vo{constructor(e){this.window=e,this.updateBatteryInfo()}getBatteryInfo(){return this.batteryInfo}updateBatteryInfo(){const e=this.window.navigator;"function"==typeof e.getBattery&&e.getBattery().then(e=>{this.batteryInfo={charging:e.charging,chargingTime:e.chargingTime!==1/0?e.chargingTime:void 0,dischargingTime:e.dischargingTime!==1/0?e.dischargingTime:void 0,level:"number"==typeof e.level?e.level:void 0}}).catch(()=>{this.batteryInfo=void 0})}}class yo{constructor(e){this.window=e}getConsents(){return this.window.document.cookie.split(";").filter(e=>-1!==e.indexOf("fundraiseup_")).map(e=>e.split("=")[0].trim())}}let So;const No=new Uint8Array(16);function wo(){if(!So){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");So=crypto.getRandomValues.bind(crypto)}return So(No)}const Ao=[];for(let e=0;e<256;++e)Ao.push((e+256).toString(16).slice(1));const Oo={};function Io(e,t,n,i,o=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(o<0||o+16>i.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`)}else i=new Uint8Array(16),o=0;return t??=Date.now(),n??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],i[o++]=t/1099511627776&255,i[o++]=t/4294967296&255,i[o++]=t/16777216&255,i[o++]=t/65536&255,i[o++]=t/256&255,i[o++]=255&t,i[o++]=112|n>>>28&15,i[o++]=n>>>20&255,i[o++]=128|n>>>14&63,i[o++]=n>>>6&255,i[o++]=n<<2&255|3&e[10],i[o++]=e[11],i[o++]=e[12],i[o++]=e[13],i[o++]=e[14],i[o++]=e[15],i}const Co=function(e,t,n){let i;if(e)i=Io(e.random??e.rng?.()??wo(),e.msecs,e.seq,t,n);else{const e=Date.now(),o=wo();!function(e,t,n){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(Oo,e,o),i=Io(o,Oo.msecs,Oo.seq,t,n)}return t??function(e,t=0){return(Ao[e[t+0]]+Ao[e[t+1]]+Ao[e[t+2]]+Ao[e[t+3]]+"-"+Ao[e[t+4]]+Ao[e[t+5]]+"-"+Ao[e[t+6]]+Ao[e[t+7]]+"-"+Ao[e[t+8]]+Ao[e[t+9]]+"-"+Ao[e[t+10]]+Ao[e[t+11]]+Ao[e[t+12]]+Ao[e[t+13]]+Ao[e[t+14]]+Ao[e[t+15]]).toLowerCase()}(i)};class Ro{generate(){return Co()}}class Po{constructor(e,t,n,i,o,r){this.appContext=e,this.browserContextBuilder=t,this.clientContextBuilder=n,this.deviceContextBuilder=i,this.pageContextBuilder=o,this.supporterId=r}setSupporterId(e){this.supporterId=e}getSupporterId(){return this.supporterId}getContext(e){return{app:this.appContext,browser:this.browserContextBuilder.build(),client:this.clientContextBuilder.build(),device:this.deviceContextBuilder.build(),page:this.pageContextBuilder.buildPage(),pageView:this.pageContextBuilder.buildPageView(null==e?void 0:e.withReferrer),supporter:this.supporterId?{id:this.supporterId}:void 0}}getEventContext(){const e=this.getContext();return{app:{id:e.app.id,version:e.app.version,livemode:e.app.livemode},browser:{language:e.browser.language,timezone:e.browser.timezone,userAgent:e.browser.userAgent,doNotTrack:e.browser.doNotTrack,history:e.browser.history,webdriver:e.browser.webdriver,window:{inner:{width:e.browser.window.inner.width,height:e.browser.window.inner.height},scroll:{x:e.browser.window.scroll.scrollX,y:e.browser.window.scroll.scrollY}}},client:{id:e.client.id,consents:e.client.consents},device:{ip:e.device.ip,memory:e.device.memory,cores:e.device.cores,screen:e.device.screen,battery:e.device.battery,connection:e.device.connection},page:{url:e.page.url,title:e.page.title,debugPanel:e.page.debugPanel},pageView:{id:e.pageView.id,referrer:e.pageView.referrer},legacy:{event:{},checkout:{}}}}}class bo{static create(e,t,n,i){const o=new Ro,r=new vo(t),s=new yo(t),a=new _o,c=o.generate(),l=new mo(t),d=new go(e,s),u=new To(t,a,r),p=new fo(t,c);return new Po(n,l,d,u,p,i)}}class Lo{constructor(e){this.timeoutInstance=0,this.items=[],this.timeout=e.timeout||1e3,this.limit=e.limit||30,this.onFlush=e.onFlush,this.resetTimeout()}push(e,t){this.items.push(e),(t||this.items.length>=this.limit)&&this.flush()}flush(){this.items.length?(this.onFlush(this.items),this.items=[],this.resetTimeout()):this.resetTimeout()}resetTimeout(){this.timeoutInstance&&clearTimeout(this.timeoutInstance),this.timeoutInstance=window.setTimeout(()=>{this.flush()},this.timeout)}}const Do=[Wi],Mo=["Failed to fetch","NetworkError when attempting to fetch resource.","Load failed"];function ko(e){return new Promise(function(t,n){!function(e,t,n){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url),i.withCredentials=!("withCredentials"in e)||Boolean(e.withCredentials),i.onload=function(){if(this.status>=200&&this.status<300){const e=i.getResponseHeader("content-type");if(e&&-1!==e.indexOf("application/json"))try{return t(JSON.parse(i.response))}catch(e){n(e)}t(i.response)}else{if(e.validStatuses&&-1!==e.validStatuses.indexOf(this.status))return t();n(new Error(`[Tracker]: Server ${e.method} response status ${this.status} for url ${e.url}, ${i.statusText}`))}},i.onerror=function(){n({status:this.status,statusText:i.statusText})};const o=e.headers;o&&Object.keys(o).forEach(function(e){i.setRequestHeader(e,o[e])});let r=e.params;r&&"object"==typeof r&&(r=JSON.stringify(r)),i.send(r)}(e,t,n)})}const xo={};Object.entries({name:"n",id:"i",accountId:"aid",dateTime:"dt","properties.app.id":"ai","properties.app.version":"av","properties.app.livemode":"al","properties.browser.language":"bl","properties.browser.timezone":"bt","properties.browser.userAgent":"bu","properties.browser.doNotTrack":"bd","properties.browser.history.length":"bh","properties.browser.webdriver":"bw","properties.browser.window.inner.width":"bww","properties.browser.window.inner.height":"bwh","properties.browser.window.scroll.scrollX":"bsx","properties.browser.window.scroll.scrollY":"bsy","properties.client.id":"ci","properties.client.consents":"cc","properties.device.ip":"di","properties.device.dateTime":"ddt","properties.device.memory":"dm","properties.device.cores":"dc","properties.device.screen.orientation":"dso","properties.device.screen.width":"dsw","properties.device.screen.height":"dsh","properties.device.screen.pixelRatio":"dsp","properties.device.battery.charging":"dbc","properties.device.battery.chargingTime":"dbct","properties.device.battery.dischargingTime":"dbdt","properties.device.battery.level":"dbl","properties.device.connection.online":"dco","properties.device.connection.type":"dct","properties.device.connection.downlink":"dcd","properties.device.connection.effectiveType":"dcet","properties.device.connection.roundTripTime":"dcr","properties.page.url":"pu","properties.page.title":"pt","properties.page.debugPanel":"pd","properties.pageView.id":"pvi","properties.pageView.referrer":"pvr","properties.supporter.id":"si"}).forEach(([e,t])=>{xo[t]=e});class Uo{constructor(e,t){this.requestHandler=e,this.possibleAdBlockersErrorMessages=t}sendRequests(e){const t=function(e){const t=new Map;return e.forEach(e=>{t.has(e.url)||t.set(e.url,[]),t.get(e.url).push(e.payload)}),t}(e);t.forEach((e,t)=>{const n=JSON.stringify(e);this.sendRequest(t,n)})}sendRequest(e,t){let n=!1;try{this.sendFetchRequest(e,t)}catch(e){n=!0}n&&this.requestHandler({method:"POST",url:e,params:t}).catch(console.warn)}sendFetchRequest(e,t){fetch(e,{method:"POST",body:t,keepalive:!0}).catch(e=>{if(console.warn(e),!this.possibleAdBlockersErrorMessages.some(t=>e.message.includes(t)))throw e})}}var Fo;!function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(Fo||(Fo={}));class Go{constructor(e){this.window=e.window,this.url=e.url,this.trackingTarget=e.trackingTarget,this.env=e.env,this.bulk=e.bulk}send(e,t){return n=this,i=void 0,r=function*(){if(this.window.FUN_DO_NOT_TRACK||this.isBlockedByDomain())return;let t=!1;e.name&&-1!==Do.indexOf(e.name)&&(t=!0),e.name===zi&&-1!==this.window.location.href.indexOf("alz.org")&&(t=!0),this.bulk.push({url:this.url+this.trackingTarget,payload:e},t)},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(r.next(e))}catch(e){t(e)}}function a(e){try{c(r.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o(function(e){e(n)})).then(s,a)}c((r=r.apply(n,i||[])).next())});var n,i,o,r}getTrackingUrl(){return this.url}isReady(){return!0}isBlockedByDomain(){return this.env===Fo.PRODUCTION&&(!!this.window.location.protocol.includes("file")||/127\.0|192\.168|localhost|localtest\.me/.test(this.window.location.hostname))}}class Ko{constructor(e){this.validatorPromise=e}validate(e){return t=this,n=void 0,o=function*(){const t=yield this.validatorPromise;if(!t)return;const n=t.validate(e);if(n)throw new no(n.message)},new((i=void 0)||(i=Promise))(function(e,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(s,a)}c((o=o.apply(t,n||[])).next())});var t,n,i,o}}class Bo{constructor(e,t){this.name=zi,this.properties={legacy:{dataLayerEventName:e,customEvent:{type:"dataLayer",data:t}}}}}class Vo{constructor(e,t,n,i,o,r,s,a,c){this.window=e,this.trackerPageContext=t,this.client=n,this.companyKey=i,this.subscriberService=o,this.pointerUsageTracker=r,this.isABTestMode=s,this.eventValidator=a,this.dataLayerTracker=c}get clientId(){return this.trackerPageContext.getContext().client.id}get livemode(){return this.trackerPageContext.getContext().app.livemode}track(e){return t=this,n=void 0,o=function*(){const t=this.trackerPageContext.getContext(),n=this.trackerPageContext.getEventContext(),i={name:e.name,id:t.pageView.id,accountId:this.companyKey,dateTime:t.device.dateTime,properties:Object.assign(Object.assign({},n),"object"==typeof e.properties&&null!==e.properties?e.properties:{})};try{yield this.eventValidator.validate(i)}catch(e){if(e instanceof no)return void console.error(e.message);throw e}this.client.send(i),this.publish(i)},new((i=void 0)||(i=Promise))(function(e,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(s,a)}c((o=o.apply(t,n||[])).next())});var t,n,i,o}subscribe(e,t){this.subscriberService.subscribe(e,t)}publish(e){this.subscriberService.publish(e)}initializeTracking(){this.initializeDataLayerTracking(this.window,this.isABTestMode),this.pointerUsageTracker.initializeTracking(this.window)}initializePointerUsageTracking(e){this.pointerUsageTracker.initializeTracking(e)}initializeDataLayerTracking(e,t){this.dataLayerTracker&&(this.dataLayerTracker.setEventCallback((e,t)=>{this.track(new Bo(e,t))}),this.dataLayerTracker.initializeTracking(e,t))}reset(){this.pointerUsageTracker.reset()}setSupporterId(e){this.trackerPageContext.setSupporterId(e)}}function Ho(e){const{companyKey:t,appContext:n,env:i,logger:o,window:r,topLevelDomain:a,isABTestMode:c,trackingConfig:l,serverClientId:d}=e,u=new ji,p=new co(u),h=new so(p,r,d);h.initialize();const E=bo.create(h,r,n),m=function(e){var t,n;const i=new Uo(e.requestHandler||ko,Mo),o=new Lo({limit:(null===(t=e.bulkConfig)||void 0===t?void 0:t.limit)||30,timeout:(null===(n=e.bulkConfig)||void 0===n?void 0:n.timeout)||1e3,onFlush:e=>i.sendRequests(e)});return new Go({window:e.window,url:e.url,trackingTarget:e.trackingTarget,env:e.env,bulk:o})}({window:r,url:l.url,trackingTarget:l.trackingTarget,env:i}),g=new ho,T=new po,f=function(e,t){const n=(()=>{return n=this,i=void 0,r=function*(){if(e!==Fo.PRODUCTION&&e!==Fo.STAGING)try{const{TrackingEventValidator:e}=yield Promise.all([s.e(31),s.e(604)]).then(s.t.bind(s,"../tracking-migration-converter/dist/index.js",23));return new e}catch(e){return void t.error({msg:"Failed to create TrackingEventsValidator",error:e instanceof Error?e.message:String(e)})}},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(r.next(e))}catch(e){t(e)}}function a(e){try{c(r.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o(function(e){e(n)})).then(s,a)}c((r=r.apply(n,i||[])).next())});var n,i,o,r})();return new Ko(n)}(i,o),_=new uo;return new Vo(r,E,m,t,g,T,c,f,_)}class jo extends Je{constructor(e,t){super(),this.payload={dataLayerEventName:e,dataLayerParams:JSON.stringify(t)}}get eventType(){return Ye}}var Xo=s("../../clickhouse/mapper/index.js");function Yo(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):encodeURIComponent(e):e}function zo(e=19){const t=window.crypto||window.msCrypto;let n="";if(t&&"function"==typeof t.getRandomValues){const i=new Uint8Array(e);t.getRandomValues(i),n=[].slice.call(i).map(e=>e%10).join("")}else for(let t=0;t<e;t++)n+=Math.floor(10*Math.random()).toString();return"0"!==n[0]?n:zo(e)}function Wo(e){return!!e&&20===e.length&&!/[^\d]/.test(e)}class $o extends Error{constructor(e){super(`Invalid client ID: ${e}`),this.name="InvalidClientIdError"}}class qo{constructor(){this.subscribers=[]}publish(e){this.subscribers.forEach(t=>{t.callback(e)})}subscribe(e,t){this.subscribers.find(e=>e.name===t)||this.subscribers.push({callback:e,name:t})}}function Jo(){const e=function(){if(!function(){try{return void 0!==window.Intl}catch(e){return!1}}())return;const e=window.Intl;if(e&&"object"==typeof e&&"function"==typeof e.DateTimeFormat){const t=new e.DateTimeFormat("en-US");if("object"!=typeof t)return;const n="function"==typeof t.resolvedOptions&&t.resolvedOptions();if("object"!=typeof n)return;const i=n.timeZone;if(!i)return;return i}}();return e||function(){const e=-(new Date).getTimezoneOffset()/60;return e>=0?`UTC+${e}`:`UTC${e}`}()}class Zo{constructor(e,t){var n;this.window=e,this.publicApi=t,this._pageScripts=[],this.sideLibrariesLookupTries=1,this.launchedSiteScripts=[],this.clientCookieConsent=[],this.pageViewId=zo(),this.pageViewTimeCreate=this.publicApi&&this.publicApi.s||Date.now(),this.resolutionWidth=0,this.resolutionHeight=0,this.window.screen&&(this.resolutionWidth=this.window.screen.width,this.resolutionHeight=this.window.screen.height),this.funSnippetVersion=this.publicApi&&this.publicApi.v||"0",this.pageViewId=`${n=this.pageViewId.slice(0,-1)}${function(e){const t=e.toString().replace(/[^0-9]/g,""),n={0:0,1:2,2:4,3:6,4:8,5:1,6:3,7:5,8:7,9:9};let i=0,o=1;for(let e=t.length-1;e>-1;e-=1)i+=o?n[t[e]]:parseFloat(t[e]),o^=1,i>0xffffffffffff&&(i%=10);return(10-i%10).toString().slice(-1)}(n)}`,this.searchedLibraries={ga:this.getGoogleAnalytics.bind(this),gtm:this.getGoogleTagManager.bind(this),fbpx:this.getFacebookPixel.bind(this),gtag:this.getGlobalSiteTagManager.bind(this),optimizely:this.getOptimizely.bind(this),"adobe.target":this.getAdobeTarget.bind(this),goptimize:this.getGoogleOptimize.bind(this),unbounce:this.getUnbounce.bind(this),hotjar:this.getHotjar.bind(this),nextjs:this.getNextJs.bind(this),wix:this.getWix.bind(this)},this.applyNavigatorVariables(navigator),this.collectPageScripts()}get pageScripts(){return this._pageScripts.length<Object.keys(this.searchedLibraries).length&&this.sideLibrariesLookupTries<=10&&this.collectPageScripts(),this._pageScripts}getSideLibraryByScriptSource(e){return this.launchedSiteScripts.some(({src:t})=>t&&!!t.match(e))}collectFunCookies(){const e=this.window.document.cookie.split(";").filter(e=>-1!==e.indexOf("fundraiseup_"));this.clientCookieConsent=e.map(e=>e.split("=")[0].trim())}collectPageScripts(){this.sideLibrariesLookupTries+=1;const e=this.window.document.querySelectorAll("script");this.launchedSiteScripts=[].slice.call(e),Object.keys(this.searchedLibraries).forEach(e=>{const t=this.searchedLibraries[e];-1===this._pageScripts.indexOf(e)&&t()&&this._pageScripts.push(e)})}toObject(){return this.collectFunCookies(),{pageViewId:this.pageViewId,pageViewTimeCreate:this.pageViewTimeCreate,pageViewLifetime:Math.max(Date.now()-this.pageViewTimeCreate,0),clientTimeZone:Jo(),clientTime:Date.now(),URL:this.window.location.href,referer:this.window.document.referrer||void 0,title:this.window.document.title,uaHistoryLength:this.window.history.length,uaWebdriver:this.window.navigator.webdriver?1:0,resolutionWidth:Math.max(this.resolutionWidth,0),resolutionHeight:Math.max(this.resolutionHeight,0),windowWidth:Math.max(this.window.innerWidth,0),windowHeight:Math.max(this.window.innerHeight,0),windowScrollY:Math.max(this.window.scrollY||this.window.pageYOffset||0,0),windowScrollX:Math.max(this.window.scrollX||this.window.pageXOffset||0,0),pageScripts:this.pageScripts,clientOnLine:this.clientOnLine,clientDoNotTrack:this.clientDoNotTrack,clientDevicePixelRatio:this.clientDevicePixelRatio,clientDeviceMemory:this.clientDeviceMemory,clientHardwareConcurrency:this.clientHardwareConcurrency,clientConnectionType:this.clientConnectionType,clientConnectionDownlink:this.clientConnectionDownlink,clientConnectionRTT:this.clientConnectionRTT,clientConnectionEffectiveType:this.clientConnectionEffectiveType,clientBatteryCharging:this.clientBatteryCharging,clientBatteryChargingTime:this.clientBatteryChargingTime,clientBatteryDischargingTime:this.clientBatteryDischargingTime,clientBatteryLevel:this.clientBatteryLevel,funSnippetVersion:this.funSnippetVersion,funEmbedRelease:window.FUN?window.FUN.version:"",clientCookieConsent:this.clientCookieConsent}}applyNavigatorVariables(e){var t;const n=e.connection||e.mozConnection||e.webkitConnection;window.Navigator&&window.navigator instanceof window.Navigator&&"function"==typeof e.getBattery&&(null===(t=e.getBattery())||void 0===t||t.then(e=>{this.clientBatteryCharging=e.charging?1:0,this.clientBatteryChargingTime=e.chargingTime,this.clientBatteryDischargingTime=e.dischargingTime,this.clientBatteryLevel="number"==typeof e.level?e.level:0}).catch(e=>{console.warn(e),this.clientBatteryCharging=0,this.clientBatteryChargingTime=0,this.clientBatteryDischargingTime=0,this.clientBatteryLevel=0})),this.clientOnLine=e.onLine?1:0,this.clientDoNotTrack="1"===e.doNotTrack?1:0,this.clientDevicePixelRatio=window.devicePixelRatio,this.clientDeviceMemory=e.deviceMemory,this.clientHardwareConcurrency="number"!=typeof e.hardwareConcurrency?0:e.hardwareConcurrency,n&&(this.clientConnectionType=n.type,this.clientConnectionDownlink=this.formatConnectionDownlink(n.downlink),this.clientConnectionRTT=n.rtt,this.clientConnectionEffectiveType=n.effectiveType)}getGoogleAnalytics(){return"function"==typeof this.window.ga}getGoogleTagManager(){return this.getSideLibraryByScriptSource(/gtm.js[?]id=([^=&]*)/)}getFacebookPixel(){return"function"==typeof this.window.fbq}getGlobalSiteTagManager(){return"function"==typeof this.window.gtag}getOptimizely(){return this.window.optimizely}getAdobeTarget(){return this.window.adobe&&this.window.adobe.target}getGoogleOptimize(){return!!this.window.google_optimize}getUnbounce(){return this.window.ube&&this.window.ube.init}getHotjar(){return this.window.hj&&this.window._hjSettings}getNextJs(){var e;return window.next||window.__next_f||(null===(e=this.window.document)||void 0===e?void 0:e.querySelector('[src*="_next/static/"]'))}getWix(){return window.wixCustomElements||window.wixEmbedsAPI||window.wixTagManager}formatConnectionDownlink(e){const t=e||0;return"string"==typeof t?parseFloat(t)||0:t}}const Qo=[/FBAV|FBAN|FBSV|FBID|FBBV\/([0-9.]+)/,/Instagram\s([0-9.]+)/,/Snapchat\/([0-9.]+)/,/MicroMessenger\/([0-9.]+)/,/Twitter for iPhone[/]?([\d.]+)?/,/TikTok[/ ](\d+\.(?:[.\d]+))?/,/bytedance/i,/musical_ly/i,/LinkedInApp/i,/gsa/i,/;\s*wv\)/];class er{constructor(){this.subscribers={}}publish(e,t){this.subscribers[e]&&this.subscribers[e].forEach(e=>new Promise(()=>e(t)))}subscribe(e,t){return this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t),!0}}const tr=[/^gtm\..*$/,/^__cmp.*$/,/^optimize\..*$/,/^setPromo$/,/^trackOptanonEvent$/,/^consentDataForTheRecord$/,/^optanonConsentUpdated$/,/^nextroll-consent$/,/^FundraiseUp\./,/^youtube/i];class nr{constructor({window:e,companyKey:t,storage:n,trackerClient:i,source:o,supporterKey:r,agentKey:s,livemode:a,localeCode:c,isFundraiseupVisitor:l,shadowUserKey:d,shadowAdminId:u,isABTestMode:p,fromDonorPortal:h,serverClientId:E,sessionStorage:m}){var g;this.observer=new er,this.tags=new Set,this.uaIsInApp=!1,this.pointingDeviceIsUsed=!1,this.trackerEventClick=null,this._clientId="",this.eventSent=Date.now(),this.cookiesUnsetable=!1,this.started=!1,this.pingDelay=15e3,this.isTouchDevice=!1,this.window=e,this.trackerClient=i,this.livemode=a,this.companyKey=t,this.CIDStorage=n,this.subscriberStorage=new qo,this.uaIsInApp=(g=e.navigator.userAgent,Qo.some(e=>e.exec(g))),this.source=o,this.supporterKey=r,this.agentKey=s,this.clientLocale=c,this.isFundraiseupVisitor=l,this.shadowUserKey=d,this.shadowAdminId=u,this.isABTestMode=p,this.fromDonorPortal=h,this.serverClientId=E,this.sessionStorage=m}get page(){return this._page}get clientId(){if(this._clientId&&!Wo(this._clientId))throw new $o(this._clientId);return this._clientId}get isPingAvailable(){return Date.now()-this.eventSent>this.pingDelay}start(){if(this.preStartOptionsValidation(),this.started)throw new Error("16");this._page=new Zo(this.window,this.window.FundraiseUp),this.setupCookies(),this.started=!0,this.isTouchDevice="ontouchstart"in window||!!navigator.maxTouchPoints,this.initializeHandleClick(),this.initializeDataLayerTracking(),this.initializePointerUsageTracking()}initializeCidTLD(){if(!this.sessionStorage)throw new Error("Must provide Session Storage");this.read(),this._clientId||this.createOrSetClientId(this.CIDStorage.get());const e=function(e,t,n,i){const o=i.split("."),r=t.getPersistedField($e.TOP_LEVEL_DOMAIN);if(r)return r;let s="";if(1===o.length&&(s=o[0]),2===o.length&&(s="."+o.join(".")),3===o.length&&"www"===o[0]&&(s="."+o.slice(-2).join(".")),s)return e.set(n,{expires:400,domain:s,sameSite:"Lax"}),t.setData({[$e.TOP_LEVEL_DOMAIN]:s},{domain:s}),s;s=o.splice(-1).join();for(let i=o.length;i>0;i--){const i=o.splice(-1).join();if("www"===i)return"."+s;if(s=i+"."+s,e.set(n,{expires:400,domain:s,sameSite:"Lax"}),e.get())return t.setData({[$e.TOP_LEVEL_DOMAIN]:"."+s},{domain:"."+s}),"."+s}}(this.CIDStorage,this.sessionStorage,this.clientId,this.window.location.hostname);this.CIDStorage.topLevelDomain=null!=e?e:""}getTLD(){return this.CIDStorage.topLevelDomain}preStartOptionsValidation(){if(!this.companyKey)throw new Error("15")}setupCookies(){this.cookiesUnsetable||(this.read(),this.refresh())}subscribe(e,t){this.subscriberStorage.subscribe(e,t)}setEventTags(e){e.forEach(e=>this.tags.add(e))}getTags(){return Array.from(this.tags)}removeEventTags(e){this.tags.forEach(t=>{e.some(e=>t.substring(0,e.length)===e)&&this.tags.delete(t)})}ping(e,t){if(!this.isPingAvailable)return;const n=e||new Ji;this.track(n,t)}customTrack(e){this.track(new tt({customEventType:e.type,customEventData:e.data}))}track(e,t){if(!this.started)return;const n=this.page&&this.page.toObject()||{},i=Object.assign({},this.trackerPayloadPartial);if(Object.keys(n).forEach(e=>{i[e]=n[e]}),i.livemode=this.livemode?1:0,e.merge(i),this.mergeEventTags(e),!e.validate())return;const o=e.toObject();o.source=this.source,this.observer.publish(e.eventType,o),this.trackerClient.send(o,t),this.eventSent=Date.now(),this.publishData(o)}initializePointerUsageTracking(e){if(this.pointingDeviceIsUsed)return;const t=e||this.window,n=()=>{this.pointingDeviceIsUsed=!0,t.removeEventListener("pointermove",n),t.removeEventListener("pointerdown",n),t.removeEventListener("pointerup",n)};t.addEventListener("pointermove",n),t.addEventListener("pointerdown",n),t.addEventListener("pointerup",n)}initializeHandleClick(){const e=this.trackerEventClick;e&&this.window.addEventListener("click",t=>{t.target&&this.track(new e(t.target))})}get trackerPayloadPartial(){const e={clientId:this.clientId,companyKey:this.companyKey,supporterKey:this.supporterKey,clientLocale:this.clientLocale,pointingDeviceIsUsed:this.pointingDeviceIsUsed?1:0,isFundraiseupVisitor:this.isFundraiseupVisitor,uaIsInApp:this.uaIsInApp?1:0};return this.fromDonorPortal&&(e.eventComment={fromDonorPortal:1}),e}refresh(){this._clientId||this.createOrSetClientId(this.CIDStorage.get()),this.write()}createOrSetClientId(e){this._clientId=e&&"undefined"!==e&&20===e.length?e:(Date.now().toString()+zo(20)).slice(0,20)}write(){this._clientId&&this.CIDStorage.set(this.clientId,{expires:400,domain:this.CIDStorage.topLevelDomain,sameSite:"Lax"})}read(){const e=Gn(this.window.location.href).clientId||"",t=this.CIDStorage.get()||"";Wo(e)?this._clientId=e:Wo(t)?this._clientId=t:Wo(this.serverClientId)?this._clientId=this.serverClientId:this._clientId=""}initializeDataLayerTracking(){if(this.window.dataLayer||(this.window.dataLayer=[]),!Array.isArray(this.window.dataLayer))return;const e=this.window.dataLayer,t=e=>(Array.isArray(e)||e&&"object"==typeof e&&"number"==typeof e.length)&&e.length>=3&&"event"===e[0]&&"string"==typeof e[1]?e[1]:"object"!=typeof e||Array.isArray(e)||"string"!=typeof e.event?null:e.event,n=e=>{if(!this.isABTestMode)return!1;const n=t(e);return!!n&&!tr.some(e=>e.test(n))},i=e=>{if(n(e)){const n=t(e);this.track(new jo(n,e))}};e.forEach(i);const o=e.push;e.push=function(...t){return i(t[0]),o.apply(e,t)}}publishData(e){this.subscriberStorage.publish(e)}mergeEventTags(e){let t=[];e.payload.eventTags&&(t=e.payload.eventTags.slice()),this.tags.forEach(e=>{-1===t.indexOf(e)&&t.push(e)}),e.payload.eventTags=t}}class ir{constructor(e){this.timeoutInstance=0,this.items=[],this.timeout=e.timeout||1e3,this.limit=e.limit||30,this.onFlush=e.onFlush,this.resetTimeout()}push(e,t){this.items.push(e),(t||this.items.length>=this.limit)&&this.flush()}flush(){this.items.length?(this.onFlush(this.items),this.items=[],this.resetTimeout()):this.resetTimeout()}resetTimeout(){this.timeoutInstance&&clearTimeout(this.timeoutInstance),this.timeoutInstance=window.setTimeout(()=>{this.flush()},this.timeout)}}var or,rr,sr;function ar(e){return new Promise(function(t,n){!function(e,t,n){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url),i.withCredentials=!("withCredentials"in e)||Boolean(e.withCredentials),i.onload=function(){if(this.status>=200&&this.status<300){const e=i.getResponseHeader("content-type");if(e&&-1!==e.indexOf("application/json"))try{return t(JSON.parse(i.response))}catch(e){n(e)}t(i.response)}else{if(e.validStatuses&&-1!==e.validStatuses.indexOf(this.status))return t();n(new Error(`[Shared]: Server ${e.method} response status ${this.status} for url ${e.url}, ${i.statusText}`))}},i.onerror=function(){n({status:this.status,statusText:i.statusText})};const o=e.headers;o&&Object.keys(o).forEach(function(e){i.setRequestHeader(e,o[e])});let r=e.params;r&&"object"==typeof r&&(r=JSON.stringify(r)),i.send(r)}(e,t,n)})}!function(e){e.CHECKOUT="checkout"}(or||(or={})),function(e){e.TOP="top",e.LEFT="left",e.FOREGROUND="foreground"}(rr||(rr={})),function(e){e.DEVELOPMENT="development",e.PRODUCTION="production",e.STAGING="staging",e.TESTING="testing"}(sr||(sr={}));const cr=[je,"click",He,"checkoutClose",Xe];class lr{constructor(e){this.request=ar,this.possibleAdBlockersErrorMessages=["Failed to fetch","NetworkError when attempting to fetch resource.","Load failed"],this.window=e.window,this.url=e.url,this.trackingTarget=e.trackingTarget,this.env=e.env,this.bulk=new ir({limit:30,onFlush:e=>this.sendRequests(e)})}send(e,t){if((window.FUN_DO_NOT_TRACK||this.isBlockedByDomain())&&(!t||t&&t.trackerType!==or.CHECKOUT))return;const n=function(e){return function(e,t={}){const n={encode:!0,strict:!0,arrayFormat:"none"};Object.assign(n,t),!1===n.sort&&(n.sort=function(){});const i=function(e){return function(t,n){return null===n?Yo(t,e):[Yo(t,e),"=",Yo(n,e)].join("")}}(n);return e?Object.keys(e).sort(n.sort).map(function(t){const o=e[t];if(void 0===o)return"";if(null===o)return Yo(t,n);if(Array.isArray(o)){const e=[];return o.slice().forEach(function(n){void 0!==n&&e.push(i(t,n,e.length))}),e.join("&")}return Yo(t,n)+"="+Yo(o,n)}).filter(function(e){return e.length>0}).join("&"):""}((0,Xo.compressPayload)(e))}(e),i=(null==t?void 0:t.url)||this.url;let o=-1!==cr.indexOf(e.eventType);e.eventType===Ye&&-1!==this.window.location.href.indexOf("alz.org")&&(o=!0),this.bulk.push({url:i+this.trackingTarget,payload:n},o)}isBlockedByDomain(){return this.env===sr.PRODUCTION&&(!!window.location.protocol.includes("file")||/127\.0|192\.168|localhost|localtest\.me/.test(window.location.hostname))}sendRequests(e){const t=function(e){const t=new Map;return e.forEach(({url:e,payload:n})=>{const i=t.get(e)||[];i.push(n),t.set(e,i)}),t}(e);t.forEach((e,t)=>{const n=JSON.stringify(e);this.sendRequest(t,n)})}sendRequest(e,t){let n=!1;try{this.sendFetchRequest(e,t)}catch(e){n=!0}n&&this.request({method:"POST",url:e,params:t}).catch(console.warn)}sendFetchRequest(e,t){fetch(e,{method:"POST",body:t,keepalive:!0}).catch(e=>{if(console.warn(e),!this.possibleAdBlockersErrorMessages.some(t=>e.message.includes(t)))throw e})}}let dr;function ur(e){return void 0===dr&&(dr=!1),dr&&window.FUN_DEV_NEW_TRACKING?function(e){let t;if(e.funTracker)t=e.funTracker;else{const n=e.funTrackerStorage.topLevelDomain;t=Ho({companyKey:e.embedConfig.currentCompanyKey,appContext:{id:"embed",version:e.embedConfig.version,livemode:e.embedConfig.livemode},env:e.env,logger:{error:e.debug.log},window:e.window,topLevelDomain:n,isABTestMode:e.embedConfig.abTestMode,trackingConfig:{url:e.globalURL,trackingTarget:"/api/session"},serverClientId:e.embedConfig.clientId}),t.subscribe(t=>e.debug.log(t.name||"",t),"debug"),t.initializeTracking()}const n=new qi(window,t,e.embedConfig.locale.code);return new Qi(n,{funEmbedRelease:e.funEmbedRelease,isFundraiseupVisitor:e.isFundraiseupVisitor})}(e):function(e){let t;if(e.funTracker)t=e.funTracker;else{const n=new lr({window:e.window,url:e.globalURL,trackingTarget:"/tb",env:e.env});t=new nr({trackerClient:n,window:e.window,companyKey:e.embedConfig.currentCompanyKey,storage:e.funTrackerStorage,localeCode:e.embedConfig.locale.code,livemode:e.embedConfig.livemode,isABTestMode:e.embedConfig.abTestMode,source:e.source,serverClientId:e.embedConfig.clientId,sessionStorage:e.sessionStorage}),t.initializeCidTLD(),t.subscribe(t=>e.debug.log(t.eventType||"",t),"debug"),t.start()}return new Qi(t,{funEmbedRelease:e.funEmbedRelease,isFundraiseupVisitor:e.isFundraiseupVisitor})}(e)}var pr,hr,Er;!function(e){e[e.CHECKOUT=13]="CHECKOUT"}(pr||(pr={})),function(e){e.EMBED="embed"}(hr||(hr={}));class mr{constructor(e,t,n,i,o,r){this.requester=e,this.apiKey=t,this.scope=n,this.release=i,this.environment=o,this.url=`https://sentry.fundraiseup.com/api/${r}/envelope/?sentry_key=${this.apiKey}`}captureException(e,t){this.isIgnoredException(e)||this.requester(this.url,{method:"POST",body:this.getBody(e,t),headers:{"content-type":"text/plain; charset=utf-8"}}),console.error(e)}getEnrichData(e,t={}){return{exception:{values:[{type:"Error",value:e.message,stacktrace:{frames:[]}}]},level:"error",platform:"javascript",timestamp:Date.now()/1e3,environment:this.environment,release:this.release,tags:Object.assign(Object.assign({},t),{scope:this.scope})}}getBody(e,t){return JSON.stringify(this.getInfo())+"\n"+JSON.stringify(this.getType())+"\n"+JSON.stringify(this.getEnrichData(e,t))}getInfo(){return{sent_at:(new Date).toISOString()}}getType(){return{type:"event"}}isIgnoredException(e){return 0===e.statusCode}}class gr extends mr{constructor(e,t,n,i,o,r,s){super(e,t,n,i,o,r),this.embedConfig=s,this.ignoreErrors=[/Failed to fetch$/,/Loading chunk \d{3,5} failed/,/The operation is insecure\.$/,/parameter 1 is not of type ['"]?Element['"]?/,/Maximum call stack size exceeded/,/2 is not provided/,/elm.events.push is not a function/,/Load failed/]}getTagsFromConfig(){var e,t,n,i,o,r;return{userCountry:null===(t=null===(e=this.embedConfig.meta)||void 0===e?void 0:e.user.location)||void 0===t?void 0:t.country,isFundraiseupVisitor:this.embedConfig.isFundraiseupVisitor,isMobile:this.embedConfig.deviceData.isMobile,isMobileOrTablet:this.embedConfig.deviceData.isMobileOrTablet,osName:null===(i=null===(n=this.embedConfig.browserData)||void 0===n?void 0:n.os)||void 0===i?void 0:i.name,osVersion:null===(r=null===(o=this.embedConfig.browserData)||void 0===o?void 0:o.os)||void 0===r?void 0:r.version,companyKey:this.embedConfig.currentCompanyKey,isInAppBrowser:this.embedConfig.browserData.isInAppBrowser}}getBrowserTags(){var e,t;return{server_name:window.location.origin,platform:window.navigator.platform,cookieEnabled:window.navigator.cookieEnabled,language:window.navigator.language,connectionType:null===(e=window.navigator.connection)||void 0===e?void 0:e.effectiveType,downlink:null===(t=window.navigator.connection)||void 0===t?void 0:t.downlink}}getBrowserExtra(){return{userAgent:window.navigator.userAgent,href:window.location.href}}getEnrichData(e,t={}){const n=super.getEnrichData(e);return Object.assign(Object.assign({},n),{tags:Object.assign(Object.assign(Object.assign(Object.assign({},n.tags),this.getTagsFromConfig()),this.getBrowserTags()),t),extra:Object.assign(Object.assign(Object.assign({},n.extra||{}),this.getBrowserExtra()),{stacktrace:e.stack})})}isIgnoredException(e){const t=!this.embedConfig.browserData.isSupported,n=""===window.navigator.userAgent||0===(null===(i=window.navigator.languages)||void 0===i?void 0:i.length)||window.navigator.webdriver;var i;const o=this.ignoreErrors.some(t=>t.test(e.message)),r=window.location.origin.includes("hubspotpreview");return t||n||o||r||super.isIgnoredException(e)}}class Tr{constructor(e,t){this.funStorageAdapter=e,this._inMemoryStorage={},this.env=t.env,this._allowWrite=t.allowWrite,this.inMemoryStorage=this.funStorageAdapter.getData()}get available(){return this.funStorageAdapter.available}get isFuncStorageInitialized(){return this.funStorageAdapter.isFuncStorageInitialized}get allowWrite(){return this._allowWrite}set allowWrite(e){this._allowWrite=e}getData(){return this.inMemoryStorage}setData(e,t){this.inMemoryStorage=e,this.allowWrite&&this.funStorageAdapter.setData(e,t)}removeData(e){}initialize(e,t){this.funStorageAdapter.initialize({[$e.TOP_LEVEL_DOMAIN]:e},t)}getField(e){const t=this.getData();return t&&e in t?t[e]:null}getPersistedField(e){const t=this.funStorageAdapter.getPersistedData();return t&&e in t?t[e]:null}setField(e,t){const n=this.getData()||{};n[e]=t;const i=Oi(this.env,n[$e.TOP_LEVEL_DOMAIN]);this.setData(n,i)}removeField(e){const t=this.getData();delete t[e];const n=Oi(this.env,t[$e.TOP_LEVEL_DOMAIN]);this.setData(t,n)}setInMemoryDataToStorage(){if(!this.allowWrite)throw new Error("Session Storage error - Cannot save data to storage when write is not allowed");if(!this.inMemoryStorage[$e.TOP_LEVEL_DOMAIN])return void console.error("Session Storage error: Top level domain is not set");const e=Oi(this.env,this.inMemoryStorage[$e.TOP_LEVEL_DOMAIN]);this.funStorageAdapter.initFuncStorage(this.inMemoryStorage,e)}get inMemoryStorage(){return Object.assign({},this._inMemoryStorage)}set inMemoryStorage(e){this._inMemoryStorage=e}}class fr{constructor(e,t){this.storage=e,this.initAt=t||(new Date).getTime(),this.read()}incrementSession(){this.sessionPage++,this.refresh()}refresh(){this.sessionAt||this.addSession(),this.write()}addSession(){this.sessionAt=this.initAt}write(){this.storage.setField($e.SESSION_AT,this.sessionAt.toString(10)),this.storage.setField($e.SESSION_PAGE,this.sessionPage)}read(){this.sessionAt=Number(this.storage.getField($e.SESSION_AT))||0,this.sessionPage=Number(this.storage.getField($e.SESSION_PAGE))||0}}!function(e){e.DONOR_PORTAL="donorPortal",e.DASHBOARD="dashboard",e.DASHBOARD_USER="dashboardUser"}(Er||(Er={}));class _r{constructor(e){this.window=e}saveDocumentOriginalStyles(){const e=()=>{this.saveOriginalStyles(this.window.document.body),this.saveOriginalStyles(this.window.document.documentElement)};if(this.window.document.body)return e();ui(this.window.document,e)}setStyle(e,t){t.setAttribute("style",e)}appendStyle(e,t){const n=(t.getAttribute("style")||"")+e;t.setAttribute("style",n)}restoreOriginalStyles(e){let t="";this.originalStyles.has(e)&&(t=this.originalStyles.get(e)),e.setAttribute("style",t),this.originalStyles.delete(e)}saveOriginalStyles(e){if(this.originalStyles.has(e))return;const t=e.getAttribute("style")||"";this.originalStyles.set(e,t)}get originalStyles(){return this._originalStyles||(this._originalStyles=new WeakMap),this._originalStyles}}class vr{constructor(e,t){this.window=e,this.isMobile=t,this.isLocked=!1}lock(){this.isLocked||(this.saveDefaultStyles(),this.bodyStyle.setProperty(vr.overflowStyleProp,"hidden","important"),this.isMobile||(this.bodyStyle.setProperty(vr.heightStyleProp,"auto","important"),this.bodyStyle.setProperty(vr.minHeightStyleProp,"100%","important")),this.isLocked=!0)}unlock(){this.isLocked&&this.overflow&&(this.restoreDefaultStyles(),this.isLocked=!1)}get bodyStyle(){return this.window.document.body.style}saveDefaultStyles(){this.overflow={value:this.bodyStyle.getPropertyValue(vr.overflowStyleProp),priority:this.bodyStyle.getPropertyPriority(vr.overflowStyleProp)},this.isMobile||(this.height={value:this.bodyStyle.getPropertyValue(vr.heightStyleProp),priority:this.bodyStyle.getPropertyPriority(vr.heightStyleProp)},this.minHeight={value:this.bodyStyle.getPropertyValue(vr.minHeightStyleProp),priority:this.bodyStyle.getPropertyPriority(vr.minHeightStyleProp)})}restoreDefaultStyles(){var e,t,n;(null===(e=this.overflow)||void 0===e?void 0:e.value)?this.bodyStyle.setProperty(vr.overflowStyleProp,this.overflow.value,this.overflow.priority):this.bodyStyle.removeProperty(vr.overflowStyleProp),this.isMobile||((null===(t=this.height)||void 0===t?void 0:t.value)?this.bodyStyle.setProperty(vr.heightStyleProp,this.height.value,this.height.priority):this.bodyStyle.removeProperty(vr.heightStyleProp),(null===(n=this.minHeight)||void 0===n?void 0:n.value)?this.bodyStyle.setProperty(vr.minHeightStyleProp,this.minHeight.value,this.minHeight.priority):this.bodyStyle.removeProperty(vr.minHeightStyleProp))}}vr.overflowStyleProp="overflow",vr.heightStyleProp="height",vr.minHeightStyleProp="min-height";class yr{constructor(e){var t;this.customHashToKeyIndex=new Map,this.keyToCustomHashIndex=new Map,this.originalKeyIndex=new Map,this.elementsMap=new Map,this.fundraisersMap=new Map,this.campaignGroupMap=new Map,this.campaignSubGroupMap=new Map,this.index=new Map,this.processCampaignsKeys([...(t=e.campaignKeyGroups,Object.values(t).map(e=>Object.values(e)).flatMap(e=>e).flatMap(e=>e)),...e.inactiveWidgets]),this.processCampaignsKeyGroups(e.campaignKeyGroups),this.processElementKeys(e.elements)}processCampaignsKeys(e=[]){e.forEach(e=>{const[t,n]=e,i=this.normalize(t);if(this.index.set(i,"WIDGET"),this.originalKeyIndex.set(i,t),n){const e=this.normalize(n);this.index.set(e,"WIDGET"),this.customHashToKeyIndex.set(e,t),this.keyToCustomHashIndex.set(i,n),this.originalKeyIndex.set(e,n)}})}processCampaignsKeyGroups(e){Object.entries(e).forEach(([e,t])=>{Object.entries(t).forEach(([t,n])=>{n.forEach(n=>{const[i]=n,o=this.normalize(i);this.campaignGroupMap.set(o,e),this.campaignSubGroupMap.set(o,t)})})})}processElementKeys(e){Object.keys(e).forEach(t=>{e[t].forEach(e=>{this.index.set(this.normalize(e),"ELEMENT"),this.elementsMap.set(this.normalize(e),t)})}),this.index.set(this.normalize(rn),"ELEMENT"),this.elementsMap.set(this.normalize(rn),_e.DEBUG_PANEL)}exists(e,t){return("string"==typeof e?[e]:e).some(e=>this.index.get(this.normalize(t))===e)}itLooksLikeKey(e,t){return"WIDGET"===e?Cn.test(this.normalize(t)):"ELEMENT"===e?Sn.test(t):On.test(t)}normalize(e){if(!e)return"";const t=e.slice("#"===e[0]?1:0);return Cn.test(t)||Sn.test(t)||On.test(t)?t.toUpperCase():t.toLowerCase()}getElementType(e){return this.elementsMap.get(e)}checkElementType(e,t){return this.getElementType(t)===e}addWidgetKeys(e){e.forEach(e=>{if(this.exists("WIDGET",e))return;const t=this.normalize(e);this.index.set(e,"WIDGET"),this.originalKeyIndex.set(t,t)})}addFundraisersKeys(e){e.filter(e=>On.test(e)).forEach(e=>{if(this.exists("FUNDRAISING_PAGE",e))return;const t=this.normalize(e);this.exists("WIDGET",t)||(this.index.set(t,"FUNDRAISING_PAGE"),this.fundraisersMap.set(t,t))})}getFundraisersKeys(){return[...this.fundraisersMap.keys()]}addElementKeys(e,t){this.index.set(this.normalize(t),"ELEMENT"),this.elementsMap.set(this.normalize(t),e)}getWidgetCustomHash(e){return this.keyToCustomHashIndex.get(this.normalize(e))}isWidgetCustomHash(e){return this.customHashToKeyIndex.has(this.normalize(e))}getOriginalWidgetKey(e){return this.originalKeyIndex.get(this.normalize(e))}getWidgetKeyByCustomHash(e){return this.customHashToKeyIndex.get(this.normalize(e))}getCheckoutType(e){return this.campaignGroupMap.get(this.normalize(e))}getAskPageType(e){return this.campaignSubGroupMap.get(this.normalize(e))}}function Sr(t){const n=(0,sn.w)(),i=function({trackingUrls:e,isAbTestMode:t,donorPortalUrl:n,companyKey:i}){if(t){const e=ci.includes(i)?"https://fundraiseupobjects.com":n;return{checkout:e,global:e}}return e}({trackingUrls:t.trackingUrls,isAbTestMode:t.staticConfig.abTestMode,donorPortalUrl:t.staticConfig.donorPortalUrl,companyKey:t.company.key});return n.provide(ye.i.STATIC_CONFIG,()=>Object.freeze(t.staticConfig)).provide(ye.i.TRACKING_URLS,()=>Object.freeze(i)).provide(ye.i.HTML_ELEMENT_STYLE_MANAGER,()=>new _r(window)).provide(ye.i.EMBED_CONFIG,()=>function(e,t,n,i,o,r,s,a,c,l){const d=(0,qt.U)(window.FundraiseUp.h||window.location.href),u=Be(d),p=void 0!==Wt.A.get($t.e.DEBUG),h=a.get(),E=(null==h?void 0:h.disableIsFundraiseupVisitor)||!1,m=n.clientId,g={version:o,livemode:u,locale:new zt({window,queryParams:d,companyLocalizationSettings:t.localization,companyKey:t.key}).getConfig(),currentCompanyKey:t.key,currentCompany:t,loadedTimestamp:i,meta:c,queryParams:d,staticConfig:n,inactiveWidgets:l,clientId:m,get isMobile(){return window.FUN_FORCE_MOBILE||g.deviceData.isMobile},get deviceData(){const e=n.deviceData;return{isMobile:e.isMobile,isMobileOrTablet:e.isMobileOrTablet,isMobileSafari16:e.isMobileSafari16}},get fontsAssets(){return n.fontsAssets},get browserData(){return n.browserData},get paymentMethods(){return{stripePublicKey:Object.assign({},n.stripePublicKey),paypalClientId:n.paypalClientId,googlePayInfo:Object.assign({},n.googlePayInfo)}},get integrations(){return{uploadcareKey:n.uploadcareKey,dtdEnabled:n.integrations.dtd,sentryUri:n.sentryUri}},get server(){return{mainDomain:n.mainDomain,env:n.env,elementsApiScriptUrl:n.elementsApiScriptUrl,trackingUrls:Object.assign({},e),resolveUrl:`${r}/checkout/resolve?key=${t.key}`,checkoutAssets:n.checkoutAssets,checkoutSteplessAssets:n.checkoutSteplessAssets,elementsUrl:`${s}/embed-data/`}},get data(){return{currencyRates:Object.assign({},n.currencyRates)}},get isDebugMode(){return p},get isFundraiseupVisitor(){return Boolean(n.isFundraiseupVisitor&&!E)},get disablePreloading(){return n.disablePreloading},get experimentsConfig(){return{experiments:n.experimentsConfig.experiments||[]}},get abTestMode(){return n.abTestMode},get abTestDemoMode(){return window.FUN_AB_TEST_DEMO_MODE||!1},get fromDonorPortal(){return n.fromDonorPortal}};return g}(n.get(ye.i.TRACKING_URLS),t.company,n.get(ye.i.STATIC_CONFIG),t.loadedTimestamp,t.version,pn,En,n.get(ye.i.FUN_EXPERIMENTS_STORAGE),t.meta,t.knownKeys.inactiveWidgets)).provide(ye.i.BACKDROP,()=>new hi(window,new vr(window,t.staticConfig.deviceData.isMobile),n.get(ye.i.EVENT_EMITTER))).provide(ye.i.CHECKOUT_SKELETON,()=>((e,t)=>{let n;const i=e=>e?'<div class="fru-wmb">\n    <div class="fru-sg"></div>\n\n    <div class="fru-ch" data-qa="msh">\n    <div class="fru-sm" style="width: 121px !important; height: 32px !important; margin: 0 auto !important"></div>\n  </div>\n    <div data-qa="msa">\n    <div class="fru-cim"></div>\n    <div class="fru-cbm">\n      <div class="fru-fcm">\n        <div class="fru-sm" style="width: 251px !important; height: 24px !important; margin: 0 auto !important"></div>\n        <div class="fru-sm" style="height: 40px !important; margin-top: 16px !important"></div>\n      </div>\n    </div>\n  </div>\n    <div class="fru-wfm" data-qa="msf">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 187px; height: 28px; margin: 0 auto"></div>\n      <div class="fru-sm" style="height: 44px !important; margin-top: 28px !important"></div>\n      <div class="fru-sm" style="height: 160px !important; margin-top: 16px !important"></div>\n      <div class="fru-sm" style="height: 66px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="height: 20px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="width: 121px !important; height: 20px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 48px !important; margin-top: 24px !important"></div>\n    </div>\n  </div>\n  <div class="fru-wftm">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 212px !important; height: 24px !important"></div>\n      <div class="fru-sm" style="width: 271px !important; height: 76px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 46px !important; margin-top: 12px !important"></div>\n    </div>\n  </div>\n  </div>':'<div class="fru-wmb">\n    <div class="fru-sg"></div>\n\n    <div class="fru-ch" data-qa="msh">\n    <div class="fru-sm" style="width: 121px !important; height: 32px !important; margin: 0 auto !important"></div>\n  </div>\n    <div class="fru-wfm" data-qa="msf">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 187px; height: 28px; margin: 0 auto"></div>\n      <div class="fru-sm" style="height: 44px !important; margin-top: 28px !important"></div>\n      <div class="fru-sm" style="height: 160px !important; margin-top: 16px !important"></div>\n      <div class="fru-sm" style="height: 66px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="height: 20px !important; margin-top: 24px !important"></div>\n      <div class="fru-sm" style="width: 121px !important; height: 20px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 48px !important; margin-top: 24px !important"></div>\n    </div>\n  </div>\n  <div class="fru-wftm">\n    <div class="fru-fcm">\n      <div class="fru-sm" style="width: 212px !important; height: 24px !important"></div>\n      <div class="fru-sm" style="width: 271px !important; height: 76px !important; margin-top: 12px !important"></div>\n      <div class="fru-sm" style="height: 46px !important; margin-top: 12px !important"></div>\n    </div>\n  </div>\n  </div>',o=e=>e?'<div class="fru-wd">\n    <div class="fru-wmd">\n      <div class="fru-wcd" data-qa="dsa">\n    <div class="fru-sg fru-sgc"></div>\n\n    <div class="fru-cid"></div>\n    <div class="fru-cbd">\n      <div class="fru-sd" style="width: 116px !important; height: 50px !important"></div>\n      <div class="fru-sd" style="height: 24px !important; margin-top: 16px !important"></div>\n      <div class="fru-sd" style="height: 120px !important; margin-top: 12px !important"></div>\n      <div class="fru-sd" style="width: 206px !important; height: 16px !important; margin-top: auto !important"></div>\n    </div>\n  </div>\n      <div class="fru-wfd" data-qa="dsf">\n    <div class="fru-sg fru-sgf"></div>\n\n    <div class="fru-fcd">\n      <div class="fru-sd" style="width: 188px !important; height: 32px !important; margin: 0 auto !important"></div>\n      <div class="fru-sd" style="height: 40px !important; margin-top: 22px !important"></div>\n      <div class="fru-sd" style="height: 90px !important; margin-top: 12px !important"></div>\n      <div class="fru-sd" style="height: 52px !important; margin-top: 10px !important"></div>\n      <div class="fru-sd" style="width: 189px !important; height: 18px !important; margin-top: 25px !important"></div>\n      <div class="fru-sd" style="width: 221px !important; height: 18px !important; margin-top: auto !important"></div>\n      <div class="fru-sd" style="width: 89px !important; height: 18px !important; margin-top: 13px !important"></div>\n      <div class="fru-sd" style="height: 48px !important; margin-top: 21px !important"></div>\n    </div>\n  </div>\n    </div>\n  </div>':'<div class="fru-wd">\n    <div class="fru-wmd">\n      <div class="fru-wfd" data-qa="dsf">\n    <div class="fru-sg fru-sgf"></div>\n\n    <div class="fru-fcd">\n      <div class="fru-sd" style="width: 188px !important; height: 32px !important; margin: 0 auto !important"></div>\n      <div class="fru-sd" style="height: 40px !important; margin-top: 22px !important"></div>\n      <div class="fru-sd" style="height: 90px !important; margin-top: 12px !important"></div>\n      <div class="fru-sd" style="height: 52px !important; margin-top: 10px !important"></div>\n      <div class="fru-sd" style="width: 189px !important; height: 18px !important; margin-top: 25px !important"></div>\n      <div class="fru-sd" style="width: 221px !important; height: 18px !important; margin-top: auto !important"></div>\n      <div class="fru-sd" style="width: 89px !important; height: 18px !important; margin-top: 13px !important"></div>\n      <div class="fru-sd" style="height: 48px !important; margin-top: 21px !important"></div>\n    </div>\n  </div>\n    </div>\n  </div>';return{render:r=>{const s=(a=r.campaignKey,t.getAskPageType(a)===Ei.WITH_ASK_PAGE);var a;n=e.document.createElement("div"),n.classList.add("fru-m"),s&&n.classList.add("fru-hc"),r.isLivemode||n.classList.add("fru-nlm"),r.isRtl&&n.setAttribute("dir","rtl"),e.document.body?e.document.body.appendChild(n):ui(e.document,()=>{e.document.body.appendChild(n)}),n.innerHTML=(({isMobile:e,showAskPage:t})=>e?i(t):o(t))({isMobile:r.isMobile,showAskPage:s}),(()=>{if(!n)return;const t=e.document.createElement("style");t.appendChild(e.document.createTextNode("\n  [class^='fru-'] {\n    all: initial;\n    display: block !important;\n    box-sizing: border-box !important;\n  }\n\n  .fru-sd {\n    width: 100% !important;\n    background: #f3f4fa !important; /* gray-10 */\n    border-radius: 6px !important;\n  }\n\n  .fru-sm {\n    width: 100% !important;\n    background: #f3f4fa !important; /* gray-10 */\n    border-radius: 4px !important;\n  }\n\n  .fru-sg {\n    position: absolute !important;\n    inset: 0 !important;\n    z-index: 1 !important;\n\n    background: linear-gradient(90deg, #FFFFFF00 35%, #FFFFFFE6 50%, #FFFFFF00 65%) 0 0 / 300% 100%;\n    animation: fru-ld 1s linear infinite !important;\n  }\n\n  [dir='rtl'] .fru-sg {\n    animation-name: fru-ld-rtl !important;\n  }\n\n  @keyframes fru-ld {\n    0% {\n      background-position: 100% 50%;\n    }\n    30% {\n      background-position: 0 50%;\n    }\n    100% {\n      background-position: 0 50%;\n    }\n  }\n\n  @keyframes fru-ld-rtl {\n    0% {\n      background-position: 0 50%;\n    }\n    30% {\n      background-position: 100% 50%;\n    }\n    100% {\n      background-position: 100% 50%;\n    }\n  }\n\n  .fru-m {\n    position: fixed !important;\n    inset: 0 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    align-items: flex-start !important;\n    overflow-x: hidden !important;\n    overflow-y: auto !important;\n    z-index: 2147483647 !important;\n    translate: 0 0 100px !important;\n    overscroll-behavior-y: none !important;\n  }\n\n  .fru-m-a {\n    animation: fru-fade-out 0.15s forwards !important;\n  }\n\n  @keyframes fru-fade-out {\n    to {\n      opacity: 0 !important;\n    }\n  }\n\n  .fru-wd {\n    display: flex !important;\n    flex-direction: column !important;\n    width: 100% !important;\n    max-width: 376px !important;\n    padding: 16px 8px !important;\n    margin: auto !important;\n  }\n\n  .fru-wmb {\n    flex-grow: 1 !important;\n    width: 100% !important;\n    position: relative !important;\n    background: #fff !important;\n  }\n\n  .fru-wmd {\n    min-height: 0 !important;\n    flex-grow: 1 !important;\n    flex-shrink: 0 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    border-radius: 16px !important;\n    box-shadow: 0 8px 16px #393A3F38, 0 0 4px #393A3F0A !important;\n    margin-bottom: 60px !important;\n  }\n\n  .fru-wcd {\n    flex-shrink: 0 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    position: relative !important;\n    width: 100% !important;\n    height: 640px !important;\n    background: #fff !important;\n    border-radius: 16px 16px 0 0 !important;\n    overflow: hidden !important;\n  }\n\n  .fru-ch {\n    padding: 8px 44px !important;\n  }\n\n  .fru-cid {\n    width: 100% !important;\n    height: 202px !important;\n    background: #f3f4fa !important; /* gray-10 */\n    border-radius: 16px 16px 0 0 !important;\n  }\n\n  .fru-cim {\n    width: 100% !important;\n    height: 59vw !important;\n    background: #f3f4fa !important; /* gray-10 */\n  }\n\n  .fru-cbd {\n    flex-grow: 1 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    padding: 20px 28px 28px !important;\n  }\n\n  .fru-cbm {\n    padding: 24px 20px !important;\n  }\n\n  .fru-wfd {\n    flex-shrink: 0 !important;\n    flex-grow: 1 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    position: relative !important;\n    height: 640px !important;\n    background: #fff !important;\n    padding: 28px 32px !important;\n    border-radius: 16px !important;\n    border-top: 1px solid #c7cdd6 !important;\n    overflow: hidden !important;\n  }\n\n  .fru-hc .fru-wfd {\n    border-radius: 0 0 16px 16px !important;\n  }\n\n  .fru-wfm {\n    padding: 32px 20px 40px !important;\n    border-top: 1px solid #c7cdd6 !important;\n  }\n\n  .fru-wftm {\n    background: #fff !important;\n    padding: 24px 20px 60px !important;\n    border-top: 1px solid #c7cdd6 !important;\n  }\n\n  .fru-fcd {\n    min-height: 0 !important;\n    flex-grow: 1 !important;\n    display: flex !important;\n    flex-direction: column !important;\n    width: 100% !important;\n    max-width: 296px !important;\n    margin: auto !important;\n  }\n\n  .fru-fcm {\n    width: 100% !important;\n    max-width: 390px !important;\n    margin: auto !important;\n  }\n\n  .fru-nlm {\n    margin-bottom: 40pxpx !important;\n  }\n\n  @media (min-width: 536px) {\n    .fru-wd {\n      width: 360px !important;\n      max-width: none !important;\n      padding-inline-start: 0 !important;\n      padding-inline-end: 0 !important;\n    }\n\n    .fru-hc .fru-wd {\n      width: 516px !important;\n    }\n\n    .fru-cid {\n      height: 289px !important;\n    }\n  }\n\n  @media (min-width: 916px) {\n    .fru-hc .fru-wd {\n      width: calc(516px + 20px + 360px) !important;\n    }\n\n    .fru-sgc {\n      animation-delay: 0.1s !important;\n    }\n\n    .fru-sgf {\n      animation-delay: 0.25s !important;\n    }\n\n    .fru-wmd {\n      flex-direction: row !important;\n      border-radius: 0 !important;\n      box-shadow: none !important;\n    }\n\n    .fru-hc .fru-wmd {\n      margin-bottom: 34px !important;\n    }\n\n    .fru-wcd {\n      width: 516px !important;\n      border-radius: 16px !important;\n      box-shadow: 0 8px 16px #393A3F38, 0 0 4px #393A3F0A !important;\n      margin-inline-end: 20px !important;\n    }\n\n    .fru-wfd {\n      border-top: 0 !important;\n      box-shadow: 0 8px 16px #393A3F38, 0 0 4px #393A3F0A !important;\n    }\n\n    .fru-hc .fru-wfd {\n      width: 360px !important;\n      border-radius: 16px !important;\n    }\n  }\n")),n.prepend(t)})()},hide:()=>{n&&(n.classList.add("fru-m-a"),n.remove())}}})(window,n.get(ye.i.KEYS_KEEPER))).provide(ye.i.SENTRY_CLIENT,()=>{return e=n.get(ye.i.STATIC_CONFIG),i=n.get(ye.i.EMBED_CONFIG),o=t.version,new gr((e,t)=>fetch(e,t),e.sentryApiKey,hr.EMBED,o,e.env,pr.CHECKOUT,i);var e,i,o}).provide(ye.i.DEBUG,()=>new e.y("embed",t.debugLogCodes)).provide(ye.i.KEYS_KEEPER,()=>new yr(t.knownKeys)).provide(ye.i.FUN_SESSION_STORAGE,()=>new Tr(function(){const e=Li(Ni.OBJECT),t=new Ui(Vi),n=new Bi(e,t,window.FUN_DISABLE_NEW_COOKIES),i=new Ki(e,t,window.FUN_DISABLE_NEW_COOKIES);return new Hi(n,i,window.FUN_DISABLE_NEW_COOKIES)}(),{env:t.staticConfig.env,allowWrite:!1})).provide(ye.i.USER_SESSION,()=>new fr(n.get(ye.i.FUN_SESSION_STORAGE))).provide(ye.i.FUN_COOKIES_MANAGER,()=>{return e=n.get(ye.i.FUN_SESSION_STORAGE),i=n.get(ye.i.FUN_STAT_STORAGE),o=t.staticConfig.env,r=window.FUN_DISABLE_NEW_COOKIES,new Ii(e,i,o,r);var e,i,o,r}).provide(ye.i.FUN_STAT_STORAGE,()=>new xi).provide(ye.i.FUN_TRACKER_STORAGE,()=>new ji).provide(ye.i.FUN_COOKIES_MIGRATOR,()=>{return e=t.staticConfig.env,n=window.FUN_DISABLE_NEW_COOKIES,new Ci(e,Wt.A,{disableNewCookies:n});var e,n}).provide(ye.i.EMBED_TRACKER,()=>ur({window,funEmbedRelease:t.version,embedConfig:n.get(ye.i.EMBED_CONFIG),debug:n.get(ye.i.DEBUG).createInstance("Tracking"),globalURL:i.global,funTracker:window.FUN_TRACKER,isFundraiseupVisitor:t.staticConfig.isFundraiseupVisitor?1:0,funTrackerStorage:n.get(ye.i.FUN_TRACKER_STORAGE),source:t.staticConfig.fromDonorPortal?Er.DONOR_PORTAL:void 0,env:t.staticConfig.env,sessionStorage:n.get(ye.i.FUN_SESSION_STORAGE)})).provide(ye.i.EXPERIMENTS_CONTROLLER,()=>{return e=n.get(ye.i.EMBED_CONFIG),t=n.get(ye.i.EMBED_TRACKER),i=n.get(ye.i.FUN_EXPERIMENTS_STORAGE),new Jn({companyKey:e.currentCompanyKey,parentCompanyKey:(null===(o=e.currentCompany)||void 0===o?void 0:o.parentKey)||null,tracker:t,experimentsSettings:Wn(e.experimentsConfig.experiments),funStorage:i,sentry:{captureException:e=>console.error(e),getCurrentScope:()=>null},isDebugMode:e.isDebugMode,isFundraiseupVisitor:e.isFundraiseupVisitor,isAbTestMode:e.abTestMode,distributionId:t.clientId});var e,t,i,o}).provide(ye.i.COLLECTOR,()=>ei(n.get(ye.i.KEYS_KEEPER),n.get(ye.i.DEBUG).createInstance("Collector"))).provide(ye.i.RESOLVER,()=>Ai(n.get(ye.i.EMBED_CONFIG),n.get(ye.i.KEYS_KEEPER),n.get(ye.i.DEBUG).createInstance("CommonResolver"),n.get(ye.i.EMBED_TRACKER),n.get(ye.i.SENTRY_CLIENT))).provide(ye.i.EMBED_ELEMENTS_API,()=>un(n.get(ye.i.COLLECTOR),n.get(ye.i.KEYS_KEEPER),n.get(ye.i.EMBED_CHECKOUT_API),n.get(ye.i.EMBED_CONFIG),n.get(ye.i.DEBUG),n.get(ye.i.EMBED_TRACKER),n.get(ye.i.EMBED_ELEMENTS_URL_API),()=>n.get(ye.i.EMBED_INTERNAL_API))).provide(ye.i.EMBED_ELEMENTS_URL_API,()=>function(e){const t=function(e){const t=e.get(Tn.ELEMENT_KEY),n=e.get(Tn.ELEMENT_ID),i=e.get(Tn.FORM);if(!t&&!n||i)return null;const o=Number(e.get(Tn.AMOUNT)),r=o?100*o:null,s=(e.get(Tn.CURRENCY)||"").toUpperCase(),a=e.get(Tn.RECURRING),c=e.get(Tn.MODIFY_DESIGNATION),l="yes"===c||"no"===c,d=Object.values(gn);return{elementKey:t||n,amount:r,currency:s,recurring:a&&d.includes(a)?a:null,modifyDesignation:l?"yes"===c:null,firstName:e.get(Tn.FIRST_NAME),lastName:e.get(Tn.LAST_NAME),email:e.get(Tn.EMAIL),designationId:e.get(Tn.DESIGNATION),tributeHonoree:e.get(Tn.TRIBUTE)}}(new URLSearchParams(e.location.search)),n=(e,n)=>vn.includes(n)&&e===(null==t?void 0:t.elementKey);return{getUrlParamsForElement:e=>n(e.key,e.type)?t:null,checkAmountInUrlApiForElement:(e,i)=>n(e,i)&&Boolean(null==t?void 0:t.amount)}}(window)).provide(ye.i.EMBED_ELEMENTS_SERVICE,()=>function(e){let t=null;const n=(n,i)=>(i&&t&&t(),new Promise((i,o)=>{const{abort:r}=_n({method:"POST",url:`${fn(pn,mn.DATA)}?key=${e.currentCompanyKey}&livemode=${e.livemode}`,headers:{"content-type":"text/plain; charset=utf-8"},params:n},e=>{e&&i(e)},o);t=r}));return{config:e,getData:(e,t=!0)=>{const i=e.map(e=>({key:e}));return n(i,t)},searchData:(e,t,i=!0)=>n([{key:e,params:t}],i)}}(n.get(ye.i.EMBED_CONFIG))).provide(ye.i.EMBED_CHECKOUT_API,()=>yt(n.get(ye.i.RESOLVER),n.get(ye.i.DEBUG),n.get(ye.i.EMBED_CONFIG),n.get(ye.i.BACKDROP),n.get(ye.i.CHECKOUT_SKELETON),n.get(ye.i.KEYS_KEEPER),n.get(ye.i.EMBED_TRACKER),n.get(ye.i.EVENT_EMITTER),n.get(ye.i.HTML_ELEMENT_STYLE_MANAGER),n.get(ye.i.FUN_SESSION_STORAGE),n.get(ye.i.EXPERIMENTS_CONTROLLER),()=>n.get(ye.i.CHECKOUT),()=>n.get(ye.i.CHECKOUT_STEPLESS),()=>n.get(ye.i.GOALS_LOADER),n.get(ye.i.CONSENT_MANAGER_API))).provide(ye.i.EMBED_FORMS_API,()=>((e,t)=>{const n=e=>Pn(void 0,void 0,void 0,function*(){const t=yield cn(),n=yield i(e);if(n){const e=(0,sn.w)().get(ye.i.KEYS_KEEPER),t=n.widgetKey;if(!e.exists("WIDGET",t))return}t.emitEvent("backdropWillOpen"),yield t.formOpener.openForm(e,Rn.P2P,{fundraisingPage:n})}),i=e=>Pn(void 0,void 0,void 0,function*(){return new Promise((n,i)=>{_n({method:"POST",url:`${pn}/p2p/fundraiser/${e}/resolve`,headers:{"content-type":"application/json"},params:JSON.stringify({companyKey:t.currentCompanyKey})},e=>{e&&n(e)},i)})});return{open:t=>On.test(t)?n(t):(t=>cn().then(n=>{e.getElements([t]),n.emitEvent("backdropWillOpen"),e.onElementsLoad(e=>{const i=e.elements.find(e=>e.key===t);if(i)return n.addElements({nodes:[],elements:[i],globalElements:e.globalElements}),n.formOpener.openForm(t,Rn.P2P,{fundraisingPage:null})})}))(t),openByFundraiserSlug:e=>n(e)}})(n.get(ye.i.EMBED_ELEMENTS_API),n.get(ye.i.EMBED_CONFIG))).provide(ye.i.EMBED_INTERNAL_API,()=>Vn(n.get(ye.i.EMBED_CHECKOUT_API),n.get(ye.i.EMBED_ELEMENTS_API),n.get(ye.i.EMBED_FORMS_API),n,n.get(ye.i.EMBED_CONFIG),n.get(ye.i.EMBED_TRACKER),n.get(ye.i.RESOLVER),n.get(ye.i.KEYS_KEEPER),n.get(ye.i.DEBUG).createInstance("InternalApi"),n.get(ye.i.FUN_EXPERIMENTS_STORAGE),n.get(ye.i.COLLECTOR),n.get(ye.i.USER_SESSION),n.get(ye.i.EXPERIMENTS_CONTROLLER),n.get(ye.i.FUN_DEBUG_STORAGE))).provide(ye.i.FUN_EXPERIMENTS_STORAGE,()=>ki($t.e.EXPERIMENTS,Mi.OBJECT)).provide(ye.i.EVENT_EMITTER,()=>new ai).provide(ye.i.FUN_DEBUG_STORAGE,()=>function(){const e=Li(Ni.STRING);return new Pi(e)}()).provide(ye.i.CONSENT_MANAGER_API,()=>((e,t,n,i,o,r)=>si(t,n,i,oi(i,e),o,r))(window,n.get(ye.i.DEBUG).createInstance("Consent API Manager"),n.get(ye.i.SENTRY_CLIENT),n.get(ye.i.EVENT_EMITTER),n.get(ye.i.FUN_COOKIES_MANAGER),n.get(ye.i.FUN_COOKIES_MIGRATOR))).provide(ye.i.GOALS_LOADER,()=>new Yi(n.get(ye.i.STATIC_CONFIG).apiUrl))}function Nr(e){return t=this,n=void 0,o=function*(){return new Promise(t=>{const n=e.document.createElement("iframe");n.style.display="none",ui(e.document,()=>{const i=(()=>{try{e.document.body.appendChild(n);const t=n.contentWindow;if(!t)return!1;const i=t.Date.now,o=t.Array.prototype.push,r=t.Object.keys,s=t.Map.prototype.set,a=t.String.prototype.replace;document.body.removeChild(n);const c=o.toString()===Array.prototype.push.toString(),l=r.toString()===Object.keys.toString(),d=s.toString()===Map.prototype.set.toString(),u=i.toString()===Date.now.toString(),p=a.toString()===String.prototype.replace.toString();return!(c&&l&&d&&u&&p)}catch(e){return!0}})();t(i)})})},new((i=void 0)||(i=Promise))(function(e,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i(function(e){e(n)})).then(s,a)}c((o=o.apply(t,n||[])).next())});var t,n,i,o}const wr=new e.y("Embed");!function(){var e,t;if(Nr(window).then(e=>{window.FUN_IS_MALFORMED_ENV=e}),!window.Set||!window.WeakMap)return void(window.console&&window.console.warn&&window.console.warn("init","legacy browser, skip processing"));if(null===(e=window.FUN)||void 0===e?void 0:e.initialized)return void wr.log("init","already initialized, skip processing");wr.log("init","initialization has started"),function(e,t){const n=function(e){return"function"==typeof e?n.l.push([arguments])&&n:function(){return n.l.push([e,arguments])&&n}};n.h=e.location.href,n.s=Date.now(),n.v="0",n.l=[];const i="call,catch,on,once,set,then,track,openCheckout".split(",");for(let e=0;e<8;e++)n[i[e]]=n(i[e]);e[t]=e[t]||n}(window,"FundraiseUp");const n=Sr({loadedTimestamp:Date.now(),trackingUrls:{"global":"https://fndrsp.net","checkout":"https://fndrsp-checkout.net"},staticConfig:{"elementsApiScriptUrl":"https://static.fundraiseup.com/28ab916c2636.elementsApi.js","checkoutAssets":{"scripts":["https://static.fundraiseup.com/checkout.9273de4ee0bb3ec3b1ec.js","https://static.fundraiseup.com/checkout-vendors.3a1a9f18362eef998f58.js","https://static.fundraiseup.com/checkout-rtl-styles.e914883d4d4123c947cd.js","https://static.fundraiseup.com/checkout-styles.5cd33c22db12ea0d3949.js","https://static.fundraiseup.com/checkout-sentry-vendor.af84ed23f4646061ab38.js","https://static.fundraiseup.com/sentry.194f85710f2414ba7466.js"]},"checkoutSteplessAssets":{"scripts":["https://static.fundraiseup.com/checkout-stepless.f179bc351ae4aa3d2bee.js","https://static.fundraiseup.com/checkout-stepless-vendors.937b8d7a5c12c054270e.js","https://static.fundraiseup.com/cs.checkout-stepless-rtl-styles.7410a892017d7f6cf234.js","https://static.fundraiseup.com/cs.checkout-stepless-styles.2014debe7b02ddda10f9.js","https://static.fundraiseup.com/cs.checkout-stepless-sentry-vendor.2e7d49a89d1167561aa0.js","https://static.fundraiseup.com/sentry.194f85710f2414ba7466.js"]},"currencyRates":{"rates":{"SHP":0.750259,"EUR":0.86073,"AED":3.672498,"AFN":66.270354,"XCD":2.70255,"ALL":83.251128,"AMD":381.835256,"AOA":916.999964,"ARS":1483.012911,"USD":1,"AUD":1.535226,"ANG":1.789982,"AWG":1.8025,"AZN":1.700677,"BAM":1.68501,"BBD":2.010778,"INR":87.77955,"PKR":280.999931,"BDT":122.322209,"XOF":564.4985,"BGN":1.68349,"BHD":0.376987,"BIF":2943.310072,"BMD":1,"MYR":4.223026,"BND":1.297924,"BOB":6.898453,"BRL":5.3832,"BSD":0.998354,"BTN":87.687118,"NOK":9.971475,"ZAR":17.329105,"BWP":13.38583,"BYN":3.40253,"BZD":2.007935,"CAD":1.39875,"CDF":2209.999817,"XAF":565.136706,"CHF":0.795135,"NZD":1.737212,"CLP":947.439601,"CNY":7.12645,"COP":3880.3,"CRC":501.593866,"CVE":94.999117,"CZK":20.931203,"DJF":177.78065,"DKK":6.429315,"DOP":64.049833,"DZD":130.337962,"EGP":47.593197,"MAD":9.235998,"ETB":151.160765,"FJD":2.2707,"FKP":0.747867,"JPY":152.631004,"GBP":0.75018,"GEL":2.714986,"GHS":10.807318,"GIP":0.747867,"GMD":72.497914,"GNF":8664.598949,"GTQ":7.649628,"GYD":208.840393,"HKD":7.771435,"HNL":26.149937,"HRK":6.484604,"HTG":130.636685,"HUF":335.810499,"IDR":16600,"ILS":3.28799,"ISK":122.397088,"JMD":160.195743,"JOD":0.709044,"KES":128.990103,"KGS":87.449766,"KHR":4036.000115,"KMF":424.999593,"KRW":1434.730443,"KWD":0.30657,"KYD":0.832002,"KZT":537.212618,"LAK":21674.0832,"LBP":89402.814693,"LKR":302.999496,"LRD":182.700882,"LSL":17.350214,"MDL":16.942435,"MGA":4520.000095,"MKD":53.036368,"MMK":2099.545458,"MNT":3595.326053,"MOP":7.991764,"MUR":45.53014,"MVR":15.310129,"MWK":1736.507539,"MXN":18.399455,"MZN":63.910364,"NAD":17.350118,"XPF":103.250006,"NGN":1461.250095,"NIO":36.609614,"SEK":9.37751,"NPR":140.298958,"OMR":0.384499,"PAB":0.998363,"PEN":3.394949,"PGK":4.202636,"PHP":58.619786,"PLN":3.641918,"PYG":7061.286557,"QAR":3.641249,"RON":4.375011,"RSD":100.905018,"RUB":81.425719,"RWF":1449.5,"SAR":3.75028,"SBD":8.223823,"SCR":13.996987,"SGD":1.298355,"SLL":20969.499529,"SLE":23.180221,"SOS":569.567633,"SRD":39.6985,"STD":20697.981008,"SVC":8.735284,"SZL":17.349943,"THB":32.789888,"TJS":9.244806,"TND":2.9376,"TOP":2.3421,"TRY":42.065105,"TTD":6.775251,"TWD":30.777497,"TZS":2488.681999,"UAH":41.837332,"UYU":39.751531,"UZS":12134.999836,"VND":26332,"VUV":121.816349,"WST":2.80505,"YER":238.950482,"ZMW":22.08849},"id":"68facf90bbb20dc8d0553c82"},"campaignPageAssets":{"scripts":{"main":"https://static.fundraiseup.com/campaignPages.0cfebc10834afb5183d7.js","vendors":"https://static.fundraiseup.com/campaignPagesVendors.dda690304395f020a4a0.js"},"css":{"ltr":"https://static.fundraiseup.com/campaignPages.e13a0f77167c8230b9bc.css","rtl":"https://static.fundraiseup.com/campaignPages.e13a0f77167c8230b9bc.rtl.css"},"fonts":{"ibmPlexSans400":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-400.woff2","ibmPlexSans500":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-500.woff2","ibmPlexSans600":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-600.woff2","ibmPlexSans700":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-700.woff2","ibmPlexSansArabic600":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans-arabic/ibmplexsans-arabic-v12-600.woff2","ibmPlexSansArabic700":"https://static.fundraiseup.com/common-fonts/ibm-plex-sans-arabic/ibmplexsans-arabic-v12-700.woff2","verveine400":"https://static.fundraiseup.com/common-fonts/verveine/verveine-400.woff2"}},"apiUrl":"https://api.fundraiseup.com","staticUrl":"https://static.fundraiseup.com","trackingUrl":"https://fndrsp.net","donorPortalUrl":"https://prtnrshipendhomelessness.donorsupport.co","stripePublicKey":{"live":"pk_live_9RzCojmneCvL31GhYTknluXp","test":"pk_test_PIcNaumXzkrpufsvKlKULLIZ"},"paypalClientId":"Afbm69ig8nMRLmZKS-QoONq7qIHPqlpYJ1l3vyxE_la-UZPU_eEkKH2HRpHFkl7SNJ8a_eKvDkcT9-My","googlePayInfo":{"stripeAPIVersion":"2023-10-16","allowedCardNetworks":["AMEX","DISCOVER","JCB","MASTERCARD","VISA"],"allowedAuthMethods":["PAN_ONLY","CRYPTOGRAM_3DS"],"merchantId":"BCR2DN6T7OI7T6IH"},"env":"production","sentryUri":"https://029bbf62e26bb7f41266caac0259d41b@sentry.fundraiseup.com/13","uploadcareKey":"5a1e3737b731e848bee9","mainDomain":"fundraiseup.com","integrations":{"dtd":true},"sentryApiKey":"029bbf62e26bb7f41266caac0259d41b","isFundraiseupVisitor":false,"disablePreloading":false,"deviceData":{"isMobile":false,"isMobileOrTablet":false,"isMobileSafari16":false},"experimentsConfig":{"experiments":[{"name":"DummyExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"33802","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"LessPaymentOptionsExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1},{"name":"test-3","key":"test-3","weight":1},{"name":"test-4","key":"test-4","weight":1}],"experimentId":"40193","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutModalVsCampaignPagesExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"58415","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MatchDonationInSocialProofExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"59325","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SteplessMobileCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"60395","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellScreenV3Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"65613","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlPostDonationUpsellCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"70084","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AGSTXLKM","APZMZAGU","ARVHGABZ","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutWithoutPreDonationUpsellExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"73814","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AGSTXLKM","APZMZAGU","ARVHGABZ","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlPresetsInDonationFormV2Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"82987","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SendBeaconVsFetchKeepAliveExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":80},{"name":"test","key":"test","weight":20}],"experimentId":"87177","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PresetsInDonationFormV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"92387","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PresetsInDonationFormV31Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"107996","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DonateByVoiceExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"133232","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"PreDonationAmounts100200USDModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"135267-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV5Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":1},{"name":"test-3","key":"test-3","weight":0},{"name":"test-4","key":"test-4","weight":0}],"experimentId":"115114-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AKVYFUBL","ARNXLWYU","ASPUXQFL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsDonationFormV5Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":1},{"name":"test-3","key":"test-3","weight":0},{"name":"test-4","key":"test-4","weight":0}],"experimentId":"115114-DF","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AKVYFUBL","ARNXLWYU","ASPUXQFL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutStepsCheckoutModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"133620-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FeeCoverageSelectionModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"101219-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"StripeLinkCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"115596-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARNXLWYU","ASPUXQFL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MultipleRecurringPlanCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"114635-modal","enabledAccounts":[],"disabledAccounts":["AALSWZAG","AAMRKAJS","AATLURDD","ABLAYHFK","ABXQVBCC","ACACYXKN","ACHHVGHA","ACYYCJSS","ADVFEVBX","AERPMFNV","AFHDMWFQ","AFHQHUFB","AFKFMCXG","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJEJDSBJ","AJQQEYDC","AJVWXWBG","AJZSDMZE","AKEVJHVM","AKVYFUBL","ALGWNCES","ALJRVDPY","ALNSLQRP","AMUMMYDJ","ANCBYMWS","ANKNPFPV","APKJZMBK","APZLZNWC","AQEGFEES","ARHVGWAD","ARNXLWYU","ARPSFYJG","ASPUXQFL","ASPZKMDK","ASQMJVUY","AUPRPMUE","AUVYPFTF","AVCYLAJJ","AVLMPSRU","AVPGEGCH","AVRUAVBN","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AXTLMAMD","AYSXGFLA","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FastTrackCheckoutExperiment_fixed","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"101284-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARNXLWYU","ASPUXQFL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartCoveringFeeCheckoutV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"113277-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":9},{"name":"test","key":"test","weight":1}],"experimentId":"126493-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsDonationFormV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":9},{"name":"test","key":"test","weight":1}],"experimentId":"126493-DF","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU","AYXSFGEE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AverageDonationHintExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":0},{"name":"test-3","key":"test-3","weight":1}],"experimentId":"101523-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJGEZYBE","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU","AYXSFGEE","ASNVRJLX"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountsOnUpsellV2CheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":0},{"name":"test-2","key":"test-2","weight":1},{"name":"test-3","key":"test-3","weight":0}],"experimentId":"104387-modal","enabledAccounts":[],"disabledAccounts":[],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsDonationFormV4Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"110192-DF","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellScreenDataCollectCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":70},{"name":"test","key":"test","weight":29}],"experimentId":"112996-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AJZSDMZE","AKVYFUBL","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DefaultFrequencyV3ModalExperiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"103991-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"MlDefaultFrequencyInDonationFormV3Experiment","enabled":true,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"103991-df","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV31Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"108741-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutWithoutPresetsExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"59097-modal","enabledAccounts":[],"disabledAccounts":["ABLAYHFK","ABXQVBCC","ACACYXKN","ACYYCJSS","AERPMFNV","AFHDMWFQ","AGNTWTBJ","AGSVAXHS","AHLNTGLT","AJQQEYDC","ALGWNCES","ALJRVDPY","ALNSLQRP","ANCBYMWS","APKJZMBK","AQEGFEES","ARHVGWAD","ARPSFYJG","ASQMJVUY","AUVYPFTF","AVCYLAJJ","AVRUAVBN","AWFXWKCB","AWPTDYZS","AWWXMPZR","AXLVWKZF","AXLWVTGK","AYSXGFLA"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CheckoutStepsCheckoutModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"59119-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"DonorRatingCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":0}],"experimentId":"99706-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"RecurringFrequencyHintCheckoutDesktopExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"59392-desktop","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","ADQRERLU","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARMPCVPV","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"RecurringFrequencyHintCheckoutMobileExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"59392-mobile","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","ADQRERLU","AFHQHUFB","AJZSDMZE","AKVYFUBL","ARMPCVPV","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartPDUCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"89260-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmazonPayCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"87699-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"BirthdayDonationCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"84301-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU","AVYLHELK"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellAmountsSuggestionModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"89701-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"CollectDatasetPostDonationUpsellAmountCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"89924-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"UpsellAmountsDatasetModalExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":0},{"name":"test","key":"test","weight":1}],"experimentId":"87159-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"AmountPresetsCheckoutV3Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"107649-modal","enabledAccounts":[],"disabledAccounts":["AAMRKAJS","AFHQHUFB","AUPRPMUE","AVLMPSRU"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"SmartPostDonationUpsellCheckoutV2Experiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test","key":"test","weight":1}],"experimentId":"79870-modal","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"},{"name":"FloatingLabelsCheckoutExperiment","enabled":false,"variants":[{"name":"control","key":"control","weight":1},{"name":"test-1","key":"test-1","weight":1},{"name":"test-2","key":"test-2","weight":1}],"experimentId":"60368-modal","enabledAccounts":[],"disabledAccounts":["AEJGNVQN","AFHQHUFB","AGSTXLKM","AJGERPHC","ALCUDRVC","APZMZAGU","ARVHGABZ","AUPRPMUE","AVALTECL","AVLMPSRU","AZFMPNQE"],"enabledWidgets":[],"disabledWidgets":[],"scope":"embed"}]},"abTestMode":false,"browserData":{"browser":{"name":"Chrome","version":"42.0.2311.90","major":"42"},"device":{},"engine":{"name":"Blink","version":"42.0.2311.90"},"os":{"name":"Windows","version":"7"},"isSupported":false,"isCommonBrowser":true,"isInAppBrowser":false},"fontsAssets":["https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-400.woff2","https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-500.woff2","https://static.fundraiseup.com/common-fonts/ibm-plex-sans/ibmplexsans-v19-600.woff2"],"fromDonorPortal":false,"currentCompanyKey":"AYWFHBBZ","clientId":"17615447101042620376"},knownKeys:{campaignKeyGroups:{"onlyCampaignPages":{"withAskPage":[["FUNLQGKWKYU"],["FUNHGRPSAFE"]],"noAskPage":[]},"onlyCheckoutModal":{"withAskPage":[["FUNJULDJRZQ","donate"],["FUNKLNMNRBY"],["FUNNQDLETXM","rentassist"],["FUNGVFZSNSS"],["FUNKYLEKXHS"],["FUNFABVCASN","holidays"],["FUNJKULADZE"],["FUNEEDSWQWF"]],"noAskPage":[]},"bothTypes":{"withAskPage":[],"noAskPage":[]}},elements:{"reminder":["XGJULKYZ"],"socialProof":["XVHNGUHX"],"donateButton":["XVPBSWNM","XVJSKRHS","XQCYXNRK","XWVLSTES","XKZWLXUG"],"donationForm":["XJWTBUSM","XGXDCQKE","XEEWRWHC","XUFDTDAM"],"p2pLink":["XRRSNLHF","XDYPJXDL"],"qrCode":["XXPNSTXB","XCLXBYRV","XZXXSDUS","XLACCJVU","XKHGVUCL"],"goalMeter":["XUXYWFVB"],"p2pButton":["XCFBDGZT","XNYSVJVM"],"textLink":["XPQPMREK","XJKESMLC"],"impactSlider":["XGPTJWMK"]},inactiveWidgets:[["FUNXMAJCJPA","winetasting2024"],["FUNPRYWAZLG","winetasting2024donations"],["FUNULFNFDSS","winetastingauction"],["FUNUVNQNUDJ"],["FUNEEVVKFHF"]]},company:{"key":"AYWFHBBZ","disabledWidgets":{"redirectTo":"nowhere","url":"","widgetKey":"FUNJULDJRZQ"},"localization":{"defaultLocale":"en-US","interfaceLocales":["en-US","es","es-US"],"matchBrowserLocale":true,"matchURL":false,"urlRules":[]},"parentKey":null,"country":"US"},version:'251024-0804',meta:null}),i=n.get(ye.i.EMBED_TRACKER).getTLD();n.get(ye.i.CONSENT_MANAGER_API).initialize(i);const o=n.get(ye.i.EMBED_CONFIG),r=n.get(ye.i.EMBED_INTERNAL_API);o.fromDonorPortal&&(null===(t=window.FUN)||void 0===t?void 0:t.showDebugPanel)&&(r.showDebugPanel=window.FUN.showDebugPanel),window.FUN=r,window.FUN.init().then(()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"FundraiseUp.optimize.activate"}),wr.log("initialized")}).catch(e=>{console.error(e)})}()})()})();
