1/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */ 2/*! @drupal/once - v1.0.1 - 2021-06-12 */ 3var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}(); 4 5; 6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 7(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();; 8window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(drupalTranslations?.strings?.[options.context]?.[str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');urlParsingNode.setAttribute('href',url);return urlParsingNode.href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
8if(drupalTranslations?.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&console?.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(typeof Drupal.theme?.[func]==='function')return Drupal.theme[func](...args);Drupal.throwError(new TypeError(`Drupal.theme.${func} must be function type.`));};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);; 9if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);; 10/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 11/*! 12* tabbable 6.3.0 13* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 14*/ 15!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;
15if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}})); 16 17; 18/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 19(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 20/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 21loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
21function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 22/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 23Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};; 24(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 25((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>
25{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; 26(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl.hasOwnProperty(originalUrl))drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url))if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
26$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url)&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
26d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
26$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; 27(function(Drupal){Drupal.theme.ajaxProgressBar=function($element){return $element.addClass('ajax-progress ajax-progress-bar');};})(Drupal);; 28(function($,Drupal,once){Drupal.behaviors.block_ajax={attach:function(context,drupalSettings){let ajaxBlockHandler=function($block){let blockId=$block.data('block-ajax-id');let pluginId=$block.data('block-ajax-plugin-id');if(!pluginId)return;let $blockParent=$block.parent();let ajaxUrl='block/ajax/'+blockId;if(drupalSettings.block_ajax.blocks[blockId].block_ajax.context&&drupalSettings.block_ajax.blocks[blockId].block_ajax.context.context_type){let contextType=drupalSettings.block_ajax.blocks[blockId].block_ajax.context.context_type;let contextArgument=NULL;if(contextType==='node')contextArgument=drupalSettings.block_ajax.blocks[blockId].current_node;if(contextType==='taxonomy_term')contextArgument=drupalSettings.block_ajax.blocks[blockId].current_term;if(contextType==='user')contextArgument=drupalSettings.block_ajax.blocks[blockId].current_user;if(contextArgument)ajaxUrl+='/'+contextType+'/'+contextArgument;}let request=$.ajax({type:drupalSettings.block_ajax.config['type'],url:Drupal.url(ajaxUrl),data:{plugin_id:pluginId,config:drupalSettings.block_ajax.blocks[blockId]},timeout:drupalSettings.block_ajax.config['timeout'],cache:drupalSettings.block_ajax.config['cache'],async:drupalSettings.block_ajax.config['async'],dataType:drupalSettings.block_ajax.config['dataType'],beforeSend:function(){if(drupalSettings.block_ajax.blocks[blockId].block_ajax.show_spinner)if(drupalSettings.block_ajax.blocks[blockId].block_ajax.placeholder)$block.after(Drupal.theme.ajaxProgressThrobber(Drupal.t(drupalSettings.block_ajax.blocks[blockId].block_ajax.placeholder)));else $block.after(Drupal.theme.ajaxProgressThrobber());}});request.done(function(data){if(typeof data.content!=='string'||!data.content.length)return;$blockParent.addClass('block-ajax-processed').removeClass('contextual-region');$block.html(data.content);$('.contextual',$blockParent).prependTo($('.block-ajax-block',$blockParent));$('.block-ajax-block',$blockParent).addClass('contextual-region');$block.each(function(){Drupal.attachBehaviors(this,window.drupalSettings);});if(drupalSettings.block_ajax.blocks[blockId].block_ajax.show_spinner)$('.ajax-progress-throbber',$blockParent).remove();});request.fail(function(jqXHR,textStatus){if(drupalSettings.block_ajax.blocks[blockId].block_ajax.show_spinner)$('.ajax-progress-throbber',$blockParent).remove();console.log("Ajax Block: "+blockId+" request failed: "+textStatus);});};$(once('block_ajax','[data-block-ajax-id]',context)).each(function(){let $block=$(this);let blockId=$block.data('block-ajax-id');if(blockId&&drupalSettings.block_ajax.blocks[blockId]!==undefined)if(drupalSettings.block_ajax.blocks[blockId].block_ajax.load_button)$('#block-ajax-button-'+blockId).on('click',function(){ajaxBlockHandler($block);});else if(drupalSettings.block_ajax.blocks[blockId].block_ajax.refresh_block){ajaxBlockHandler($block);let refreshInterval=drupalSettings.block_ajax.blocks[blockId].block_ajax.refresh_interval;setInterval(ajaxBlockHandler,refreshInterval,$block);}else{ajaxBlockHandler($block);$block.on('RefreshAjaxBlock',function(){ajaxBlockHandler($(this));});}});},detach:function(context){}}
28;Drupal.AjaxCommands.prototype.AjaxBlockRefreshCommand=function(ajax,response,status){$(response.selector).trigger('RefreshAjaxBlock');};})(jQuery,Drupal,once);; 29(function drupalJquery($,Drupal){Drupal.behaviors.activeCampaign={formData:{},attach:function initForm(context){const that=this;if(window.location.search.search('excludeform')!==-1)return false;const node=once('active-campaign','article.node div.field--name-body',context);node.forEach((element)=>{const startHeight=element.offsetHeight/4;const $form=$('#ac-form').removeClass('hidden');$(element).append($form);const form_to_submit=$form.find('#_form_31_')[0];if(!form_to_submit)return;that.formData={element,$form,startHeight,lastKnownSizes:new Map()};that.positionForm();that.setupDynamicRepositioning();addEvent(form_to_submit,'submit',form_submit);});},positionForm:function(){const {element,$form,startHeight}=this.formData;const targetElement=this.calculatePos(element,startHeight,$form.height());if(targetElement)$(targetElement).after($form);},setupDynamicRepositioning:function(){const that=this;let repositionTimeout;const debouncedReposition=function(){clearTimeout(repositionTimeout);repositionTimeout=setTimeout(()=>{if(that.shouldReposition()){that.positionForm();that.updateKnownSizes();}},250);};if(window.ResizeObserver){const windowResizeObserver=new ResizeObserver(debouncedReposition);windowResizeObserver.observe(document.body);}that.observeMediaElements();},observeMediaElements:function(){const that=this;const {element}=this.formData;if(window.ResizeObserver){const resizeObserver=new ResizeObserver((entries)=>{let shouldReposition=false;entries.forEach((entry)=>{const el=entry.target;if(el.dataset.oembedUrl||el.nodeName==='FIGURE')shouldReposition=true;});if(shouldReposition){that.positionForm();that.updateKnownSizes();}});const mediaElements=element.querySelectorAll('figure, [data-oembed-url]');mediaElements.forEach((el)=>resizeObserver.observe(el));}const images=element.querySelectorAll('img');images.forEach((img)=>{if(!img.complete)addEvent(img,'load',()=>{setTimeout(()=>{that.positionForm();that.updateKnownSizes();},100);});});const iframes=element.querySelectorAll('iframe');iframes.forEach((iframe)=>{addEvent(iframe,'load',()=>{setTimeout(()=>{that.positionForm();that.updateKnownSizes();},500);});});},shouldReposition:function(){const {element,lastKnownSizes}=this.formData;const mediaElements=element.querySelectorAll('figure, [data-oembed-url]');for(let el of mediaElements){const currentSize={width:el.offsetWidth,height:el.offsetHeight,top:el.offsetTop};const knownSize=lastKnownSizes.get(el);if(!knownSize||knownSize.width!==currentSize.width||knownSize.height!==currentSize.height||knownSize.top!==currentSize.top)return true;}return false;},updateKnownSizes:function(){const {element,lastKnownSizes}=this.formData;const mediaElements=element.querySelectorAll('figure, [data-oembed-url]');mediaElements.forEach((el)=>{lastKnownSizes.set(el,{width:el.offsetWidth,height:el.offsetHeight,top:el.offsetTop});});},calculatePos:function calculatePos(element,startHeight,height){if(!element||!element.children||element.children.length===0)return false;const containerRect=element.getBoundingClientRect();const getRelativeTop=(el)=>el.getBoundingClientRect().top-containerRect.top;const getRelativeBottom=(el)=>{const rect=el.getBoundingClientRect();return (rect.top-containerRect.top)+rect.height;};let targetElement=element.children[0];const formHeightWithMargin=height*1.2;while(targetElement&&getRelativeTop(targetElement)<startHeight)targetElement=targetElement.nextElementSibling;let bestPosition=targetElement;let largestGap=0;let lastMediaComponent=null;let currentComponent=targetElement;while(currentComponent){if(currentComponent.dataset.oembedUrl||currentComponent.nodeName==='FIGURE'){if(lastMediaComponent){const gap=getRelativeTop(currentComponent)-getRelativeBottom(lastMediaComponent);if(gap>formHeightWithMargin&&gap>largestGap){bestPosition=lastMediaComponent;largestGap=gap;}}lastMediaComponent=currentComponent;}currentComponent=currentComponent.nextElementSibling;}if(lastMediaComponent&&lastMediaComponent.nextElementSibling){const remainingSpace=containerRect.height-getRelativeBottom(lastMediaComponent);if(remainingSpace>formHeightWithMargin&&remainingSpace>largestGap)bestPosition=lastMediaComponent;}if(bestPosition===element.children[0]&&element.children.length>1)bestPosition=element.children[element.children.length-1];return bestPosition;}};})(jQuery,Drupal);window.cfields=[];window._show_thank_you=function(id,message,trackcmp_url,email){var form=document.getElementById('_form_'+id+'_'),thank_you=form.querySelector('._form-thank-you');form.querySelector('._form-content').style.display='none';thank_you.innerHTML=message;thank_you.style.display='block';const vgoAlias=typeof visitorGlobalObjectAlias==='undefined'?'vgo':visitorGlobalObjectAlias;var visitorObject=window[vgoAlias];if(email&&typeof visitorObject!=='undefined'){visitorObject('setEmail',email);visitorObject('update');}else{if(typeof trackcmp_url!='undefined'&&trackcmp_url)_load_script(trackcmp_url);}if(typeof window._form_callback!=='undefined')window._form_callback(id);};window._show_unsubscribe=function(id,message,trackcmp_url,email){var form=document.getElementById('_form_'+id+'_'),unsub=form.querySelector('._form-thank-you');var branding=form.querySelector('._form-branding');if(branding)branding.style.display='none';form.querySelector('._form-content').style.display='none';unsub.style.display='block';form.insertAdjacentHTML('afterend',message);const vgoAlias=typeof visitorGlobalObjectAlias==='undefined'?'vgo':visitorGlobalObjectAlias;var visitorObject=window[vgoAlias];if(email&&typeof visitorObject!=='undefined'){visitorObject('setEmail',email);visitorObject('update');}else{if(typeof trackcmp_url!='undefined'&&trackcmp_url)_load_script(trackcmp_url);}if(typeof window._form_callback!=='undefined')window._form_callback(id);};window._show_error=function(id,message,html){var form=document.getElementById('_form_'+id+'_'),err=document.createElement('div'),button=form.querySelector('button[type="submit"]'),old_error=form.querySelector('._form_error');if(old_error)old_error.parentNode.removeChild(old_error);err.innerHTML=message;err.className='_error-inner _form_error _no_arrow';var wrapper=document.createElement('div');wrapper.className='_form-inner _show_be_error';wrapper.appendChild(err);button.parentNode.insertBefore(wrapper,button);var submitButton=form.querySelector('[id^="_form"][id$="_submit"]');submitButton.disabled=false;submitButton.classList.remove('processing');if(html){var div=document.createElement('div');div.className='_error-html';div.innerHTML=html;err.appendChild(div);}};window._show_pc_confirmation=function(id,header,detail,show,email){var form=document.getElementById('_form_'+id+'_'),pc_confirmation=form.querySelector('._form-pc-confirmation');if(pc_confirmation.style.display==='none'){form.querySelector('._form-content').style.display='none';pc_confirmation.innerHTML="<div class='_form-title'>"+header+'</div>'+'<p>'+detail+'</p>'+"<button class='_submit' id='hideButton'>Manage preferences</button>";pc_confirmation.style.display='block';var mp=document.querySelector('input[name="mp"]');mp.value='0';}else{form.querySelector('._form-content').style.display='inline';pc_confirmation.style.display='none';}var hideButton=document.getElementById('hideButton');hideButton.addEventListener('click',function(){var submitButton=document.querySelector('#_form_31_submit');submitButton.disabled=false;submitButton.classList.remove('processing');var mp=document.querySelector('input[name="mp"]');mp.value='1';
29const cacheBuster=new URL(window.location.href);cacheBuster.searchParams.set('v',new Date().getTime());window.location.href=cacheBuster.toString();});const vgoAlias=typeof visitorGlobalObjectAlias==='undefined'?'vgo':visitorGlobalObjectAlias;var visitorObject=window[vgoAlias];if(email&&typeof visitorObject!=='undefined'){visitorObject('setEmail',email);visitorObject('update');}else{if(typeof trackcmp_url!='undefined'&&trackcmp_url)_load_script(trackcmp_url);}if(typeof window._form_callback!=='undefined')window._form_callback(id);};window._load_script=function(url,callback,isSubmit){var head=document.querySelector('head'),script=document.createElement('script'),r=false;var submitButton=document.querySelector('#_form_31_submit');script.charset='utf-8';script.src=url;if(callback)script.onload=script.onreadystatechange=function(){if(!r&&(!this.readyState||this.readyState=='complete')){r=true;callback();}};script.onerror=function(){if(isSubmit){if(script.src.length>10000)_show_error('31','Sorry, your submission failed. Please shorten your responses and try again.');else _show_error('31','Sorry, your submission failed. Please try again.');submitButton.disabled=false;submitButton.classList.remove('processing');}};head.appendChild(script);};var iti;var getCookie=function(name){var match=document.cookie.match(new RegExp('(^|; )'+name+'=([^;]+)'));return match?match[2]:null;};var setCookie=function(name,value){var now=new Date();var time=now.getTime();var expireTime=time+1000*60*60*24*365;now.setTime(expireTime);document.cookie=name+'='+value+'; expires='+now+';path=/; Secure; SameSite=Lax;';};var addEvent=function(element,event,func){if(element.addEventListener)element.addEventListener(event,func);else{var oldFunc=element['on'+event];element['on'+event]=function(){oldFunc.apply(this,arguments);func.apply(this,arguments);};}};var _removed=false;var form_to_submit=document.getElementById('_form_31_');var allInputs=form_to_submit.querySelectorAll('input, select, textarea'),tooltips=[],submitted=false;var getUrlParam=function(name){if(name.toLowerCase()!=='email'){var params=new URLSearchParams(window.location.search);return params.get(name)||false;}var qString=window.location.search;if(!qString)return false;var parameters=qString.substr(1).split('&');for(var i=0;i<parameters.length;i++){var parameter=parameters[i].split('=');if(parameter[0].toLowerCase()==='email')return parameter[1]===undefined?true:decodeURIComponent(parameter[1]);}return false;};var acctDateFormat="%m/%d/%Y";var getNormalizedDate=function(date,acctFormat){var decodedDate=decodeURIComponent(date);if(acctFormat&&acctFormat.match(/(%d|%e).*%m/gi)!==null)return decodedDate.replace(/(\d{2}).*(\d{2}).*(\d{4})/g,'$3-$2-$1');else{if(Date.parse(decodedDate)){var dateObj=new Date(decodedDate);var year=dateObj.getFullYear();var month=dateObj.getMonth()+1;var day=dateObj.getDate();return `${year}-${month<10?`0${month}`:month}-${day<10?`0${day}`:day}`;}}return false;};var getNormalizedTime=function(time){var hour,minutes;var decodedTime=decodeURIComponent(time);var timeParts=Array.from(decodedTime.matchAll(/(\d{1,2}):(\d{1,2})\W*([AaPp][Mm])?/gm))[0];if(timeParts[3]){var isPM=timeParts[3].toLowerCase()==='pm';if(isPM)hour=parseInt(timeParts[1])===12?'12':`${parseInt(timeParts[1])+12}`;else hour=parseInt(timeParts[1])===12?'0':timeParts[1];}else hour=timeParts[1];var normalizedHour=parseInt(hour)<10?`0${parseInt(hour)}`:hour;var minutes=timeParts[2];return `${normalizedHour}:${minutes}`;};for(var i=0;i<allInputs.length;i++){var regexStr="field\\[(\\d+)\\]";var results=new RegExp(regexStr).exec(allInputs[i].name);if(results!=undefined)allInputs[i].dataset.name=allInputs[i].name.match(/\[time\]$/)?`${window.cfields[results[1]]}_time`:window.cfields[results[1]];else allInputs[i].dataset.name=allInputs[i].name;var fieldVal=getUrlParam(allInputs[i].dataset.name);if(fieldVal){if(allInputs[i].dataset.autofill==="false")continue;if(allInputs[i].type=="radio"||allInputs[i].type=="checkbox"){if(allInputs[i].value==fieldVal)allInputs[i].checked=true;}else if(allInputs[i].type=="date")allInputs[i].value=getNormalizedDate(fieldVal,acctDateFormat);else if(allInputs[i].type=="time")allInputs[i].value=getNormalizedTime(fieldVal);else allInputs[i].value=fieldVal;}}var remove_tooltips=function(){for(var i=0;i<tooltips.length;i++)tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);tooltips=[];};var remove_tooltip=function(elem){for(var i=0;i<tooltips.length;i++)if(tooltips[i].elem===elem){tooltips[i].tip.parentNode.removeChild(tooltips[i].tip);tooltips.splice(i,1);return;}};var create_tooltip=function(elem,text){var tooltip=document.createElement('div'),arrow=document.createElement('div'),inner=document.createElement('div'),new_tooltip={};if(elem.type!='radio'&&(elem.type!='checkbox'||elem.name==='sms_consent')){tooltip.className='_error';arrow.className='_error-arrow';inner.className='_error-inner';inner.innerHTML=text;tooltip.appendChild(arrow);tooltip.appendChild(inner);elem.parentNode.appendChild(tooltip);}else{tooltip.className='_error-inner _no_arrow';tooltip.innerHTML=text;elem.parentNode.insertBefore(tooltip,elem);new_tooltip.no_arrow=true;}new_tooltip.tip=tooltip;new_tooltip.elem=elem;tooltips.push(new_tooltip);return new_tooltip;};var resize_tooltip=function(tooltip){var rect=tooltip.elem.getBoundingClientRect();var doc=document.documentElement,scrollPosition=rect.top-((window.pageYOffset||doc.scrollTop)-(doc.clientTop||0));if(scrollPosition<40)tooltip.tip.className=tooltip.tip.className.replace(/ ?(_above|_below) ?/g,'')+' _below';else tooltip.tip.className=tooltip.tip.className.replace(/ ?(_above|_below) ?/g,'')+' _above';};var resize_tooltips=function(){if(_removed)return;for(var i=0;i<tooltips.length;i++)if(!tooltips[i].no_arrow)resize_tooltip(tooltips[i]);};var validate_field=function(elem,remove){var tooltip=null,value=elem.value,no_error=true;remove?remove_tooltip(elem):false;if(elem.type!='checkbox')elem.className=elem.className.replace(/ ?_has_error ?/g,'');if(elem.getAttribute('required')!==null)if(elem.type=='radio'||(elem.type=='checkbox'&&/any/.test(elem.className))){var elems=form_to_submit.elements[elem.name];if(!(elems instanceof NodeList||elems instanceof HTMLCollection)||elems.length<=1)no_error=elem.checked;else{no_error=false;for(var i=0;i<elems.length;i++)if(elems[i].checked)no_error=true;}if(!no_error)tooltip=create_tooltip(elem,"Please select an option.");}else if(elem.type=='checkbox'){var elems=form_to_submit.elements[elem.name],found=false,err=[];no_error=true;for(var i=0;i<elems.length;i++){if(elems[i].getAttribute('required')===null)continue;if(!found&&elems[i]!==elem)return true;found=true;elems[i].className=elems[i].className.replace(/ ?_has_error ?/g,'');if(!elems[i].checked){no_error=false;elems[i].className=elems[i].className+' _has_error';err.push("Checking %s is required".replace("%s",elems[i].value));}}if(!no_error)tooltip=create_tooltip(elem,err.join('<br/>'));}else if(elem.tagName=='SELECT'){var selected=true;if(elem.multiple){selected=false;for(var i=0;i<elem.options.length;i++)if(elem.options[i].selected){selected=true;break;}}else{for(var i=0;i<elem.options.length;i++)if(elem.options[i].selected&&(!elem.options[i].value||(elem.options[i].value.match(/\n/g))))selected=false;}if(!selected){elem.className=elem.className+' _has_error';no_error=false;tooltip=create_tooltip(elem,"Please select an option.");}}else{if(value===undefined||value===null||value===''){elem.className=elem.className+' _has_error';no_error=false;tooltip=create_tooltip(elem,"This field is required.");}}if(no_error&&elem.name=='email')if(!value.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)){elem.className=elem.className+' _has_error';no_error=false;tooltip=create_tooltip(elem,"Enter a valid email address.");}if(no_error&&(elem.id=='phone'))if(elem.value.trim()&&typeof iti!='undefined'&&!iti.isValidNumber()){elem.className=elem.className+' _has_error';no_error=false;tooltip=create_tooltip(elem,"Enter a valid phone number.");}if(no_error&&/date_field/.test(elem.className))if(!value.match(/^\d\d\d\d-\d\d-\d\d$/)){elem.className=elem.className+' _has_error';no_error=false;tooltip=create_tooltip(elem,"Enter a valid date.");}if(no_error&&elem.name==='sms_consent'){const elemShouldBeChecked=(!!elem.attributes.required&&!elem.checked);if(elemShouldBeChecked){elem.className=elem.className+' _has_error';no_error=false;tooltip=create_tooltip(elem,"Please check this box to continue");}else elem.className=elem.className.replace(/ ?_has_error ?/g,'');}tooltip?resize_tooltip(tooltip):false;return no_error;};var needs_validate=function(el){if(el.getAttribute('required')!==null)return true;if((el.name==='email'||el.id==='phone')&&el.value!=="")return true;return false;};var validate_form=function(e){var err=form_to_submit.querySelector('._form_error'),no_error=true;if(!submitted){submitted=true;for(var i=0,len=allInputs.length;i<len;i++){var input=allInputs[i];if(needs_validate(input))if(input.type=='text'||input.type=='number'||input.type=='time'||input.type=='tel'){addEvent(input,'blur',function(){this.value=this.value.trim();validate_field(this,true);});addEvent(input,'input',function(){validate_field(this,true);});}else if(input.type=='radio'||input.type=='checkbox')(function(el){function getElementsArray(name){const value=form_to_submit.elements[name];if(Array.isArray(value))return value;return [value];}var radios=getElementsArray(el.name);for(var i=0;i<radios.length;i++)addEvent(radios[i],'change',function(){validate_field(el,true);});})(input);else if(input.tagName=='SELECT')addEvent(input,'change',function(){validate_field(this,true);});else{if(input.type=='textarea')addEvent(input,'input',function(){validate_field(this,true);});}}}remove_tooltips();for(var i=0,len=allInputs.length;i<len;i++){var elem=allInputs[i];if(needs_validate(elem)){if(elem.tagName.toLowerCase()!=="select")elem.value=elem.value.trim();validate_field(elem)?true:no_error=false;}}if(!no_error&&e)e.preventDefault();resize_tooltips();return no_error;};addEvent(window,'resize',resize_tooltips);addEvent(window,'scroll',resize_tooltips);var _form_serialize=function(form){if(!form||form.nodeName!=="FORM")return;var i,j,q=[];for(i=0;i<form.elements.length;i++){if(form.elements[i].name==="")continue;switch(form.elements[i].nodeName){case "INPUT":switch(form.elements[i].type){case "tel":q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].previousSibling.querySelector('div.iti__selected-dial-code').innerText)+encodeURIComponent(" ")+encodeURIComponent(form.elements[i].value));break;case "text":case "number":case "date":case "time":case "hidden":case "password":case "button":case "reset":case "submit":q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].value));break;case "checkbox":case "radio":if(form.elements[i].checked)q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].value));break;case "file":break;}break;case "TEXTAREA":q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].value));break;case "SELECT":switch(form.elements[i].type){case "select-one":q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].value));break;case "select-multiple":for(j=0;j<form.elements[i].options.length;j++)if(form.elements[i].options[j].selected)q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].options[j].value));break;}break;case "BUTTON":switch(form.elements[i].type){case "reset":case "submit":case "button":q.push(form.elements[i].name+"="+encodeURIComponent(form.elements[i].value));break;}break;}}return q.join("&");};const formSupportsPost=false;var form_submit=function(e){e.preventDefault();if(validate_form()){if(form_to_submit.querySelector('input[name="phone"]')&&typeof iti!='undefined')form_to_submit.querySelector('input[name="phone"]').value=iti.getNumber();var submitButton=e.target.querySelector('#_form_31_submit');submitButton.disabled=true;submitButton.classList.add('processing');var serialized=_form_serialize(document.getElementById('_form_31_')).replace(/%0A/g,'\\n');var err=form_to_submit.querySelector('._form_error');err?err.parentNode.removeChild(err):false;
29async function submitForm(){var formData=new FormData();const searchParams=new URLSearchParams(serialized);searchParams.forEach((value,key)=>{if(key!=='hideButton')formData.append(key,value);});let request={headers:{"Accept":"application/json"},body:formData,method:"POST"};let pageUrlParams=new URLSearchParams(window.location.search);if(pageUrlParams.has('t'))request.headers.Authorization='Bearer '+pageUrlParams.get('t');const response=await fetch('https://diginomica61516.activehosted.com/proc.php?jsonp=true',request);return response.json();}if(formSupportsPost)submitForm().then((data)=>{eval(data.js);}).catch(()=>{_show_error("31","Sorry, your submission failed. Please try again.");});else _load_script('https://diginomica61516.activehosted.com/proc.php?'+serialized+'&jsonp=true',null,true);}return false;};; 30(function($,Drupal,once){"use strict";Drupal.behaviors.diginomicaCategorySelector={attach:function(){const formSelector="#category-select-form";const selectSelector="select#edit-category";$(once("diginomicaCategorySelector",formSelector)).on("submit",(function(event){if($(selectSelector).val()==="undefined")event.preventDefault();}));$(once("diginomicaCategorySelector",selectSelector)).change(function(){$(formSelector).submit();});}};})(jQuery,Drupal,once);;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.