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 */ 7window.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;
7if(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);; 8if(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);; 9!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.2"}); 10 11/*! 12 * jQuery UI :data 1.14.2 13 * https://jqueryui.com 14 * 15 * Copyright OpenJS Foundation and other contributors 16 * Released under the MIT license. 17 * https://jquery.org/license 18 */ 19!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})}); 20 21/*! 22 * jQuery UI Disable Selection 1.14.2 23 * https://jqueryui.com 24 * 25 * Copyright OpenJS Foundation and other contributors 26 * Released under the MIT license. 27 * https://jquery.org/license 28 */ 29!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n}); 30 31/*! 32 * jQuery UI Legacy jQuery Core patches 1.14.2 33 * https://jqueryui.com 34 * 35 * Copyright OpenJS Foundation and other contributors 36 * Released under the MIT license. 37 * https://jquery.org/license 38 * 39 */ 40!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0})},odd:function(){return this.filter(function(e){return e%2==1})}})}); 41 42/*! 43 * jQuery UI Scroll Parent 1.14.2 44 * https://jqueryui.com 45 * 46 * Copyright OpenJS Foundation and other contributors 47 * Released under the MIT license. 48 * https://jquery.org/license 49 */ 50!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}}); 51 52/*! 53 * jQuery UI Unique ID 1.14.2 54 * https://jqueryui.com 55 * 56 * Copyright OpenJS Foundation and other contributors 57 * Released under the MIT license. 58 * https://jquery.org/license 59 */ 60!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
vendor: 5,005 bytes, lines 60-92
60)&&i(this).removeAttr("id")})}});var e}); 61 62/*! 63 * jQuery UI Focusable 1.14.2 64 * https://jqueryui.com 65 * 66 * Copyright OpenJS Foundation and other contributors 67 * Released under the MIT license. 68 * https://jquery.org/license 69 */ 70!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable}); 71 72/*! 73 * jQuery UI Keycode 1.14.2 74 * https://jqueryui.com 75 * 76 * Copyright OpenJS Foundation and other contributors 77 * Released under the MIT license. 78 * https://jquery.org/license 79 */ 80!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}); 81 82!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}}); 83 84/*! 85 * jQuery UI Widget 1.14.2 86 * https://jqueryui.com 87 * 88 * Copyright OpenJS Foundation and other contributors 89 * Released under the MIT license. 90 * https://jquery.org/license 91 */ 92!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 11,142 bytes, lines 92-112
92(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget}); 93 94/*! 95 * jQuery UI Labels 1.14.2 96 * https://jqueryui.com 97 * 98 * Copyright OpenJS Foundation and other contributors 99 * Released under the MIT license. 100 * https://jquery.org/license 101 */ 102!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}}); 103 104/*! 105 * jQuery UI Autocomplete 1.14.2 106 * https://jqueryui.com 107 * 108 * Copyright OpenJS Foundation and other contributors 109 * Released under the MIT license. 110 * https://jquery.org/license 111 */ 112!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.autocomplete",{version:"1.14.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,u="input"===n;this.isMultiLine=o||!u&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[o||u?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,void(i=!0);t=!1,s=!1,i=!1;var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case o.UP:t=!0,this._keyEvent("previous",n);break;case o.DOWN:t=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||s.preventDefault());if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var s,n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(s=i.item.attr("aria-label")||n.value)&&String.prototype.trim.call(s).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(e("<div>").text(s))},100))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=s),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(
vendor: 5,098 bytes, lines 112-122
112),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||s)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(e("<div>").text(i))},100))}}),e.ui.autocomplete}); 113 114/*! 115 * jQuery UI Menu 1.14.2 116 * https://jqueryui.com 117 * 118 * Copyright OpenJS Foundation and other contributors 119 * Released under the MIT license. 120 * https://jquery.org/license 121 */ 122!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.menu",{version:"1.14.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),s=e(this.document[0].activeElement);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay(function(){!e.contains(this.element[0],this.document[0].activeElement)&&this.collapseAll(t)}
vendor: 5,933 bytes, line 122
122)},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),s=e(t.currentTarget);i[0]===s[0]&&(s.is(".ui-state-active")||(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,s)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,s,n,a,u=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=!1,s=this.previousFilter||"",a=!1,n=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===s?a=!0:n=s+n,i=this._filterMenuItems(n),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}u&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,s,n,a=this,u=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),i=t.prev(),s=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+u),i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")}),n=(s=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,s,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,a,u,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),u=this.activeMenu.height(),o=t.outerHeight(),n<0?this.activeMenu.scrollTop(a+n):n+o>u&&this.activeMenu.scrollTop(a+n-u+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
vendor: 6,272 bytes, lines 122-129
122se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),s&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;this.active?this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(i=e(this)).offset().top-s-n<0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,s,n;this.active?this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return(i=e(this)).offset().top-s+n>0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))})}})}); 123 124/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 125/*! 126* tabbable 6.3.0 127* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 128*/ 129!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;
129if(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)}})); 130 131; 132/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 133(function($,Drupal){let autocomplete;function autocompleteSplitValues(value){const result=[];let quote=false;let current='';const valueLength=value.length;let character;for(let i=0;i<valueLength;i++){character=value.charAt(i);if(character==='"'){current+=character;quote=!quote;}else if(character===','&&!quote){result.push(current.trim());current='';}else current+=character;}if(value.length>0)result.push(current.trim());return result;}function extractLastTerm(terms){return autocomplete.splitValues(terms).pop();}function searchHandler(event){const options=autocomplete.options;if(options.isComposing)return false;const term=autocomplete.extractLastTerm(event.target.value);if(term.length>0&&options.firstCharacterDenyList.includes(term[0]))return false;return term.length>=options.minLength;}function sourceData(request,response){const elementId=this.element.attr('id');if(!(elementId in autocomplete.cache))autocomplete.cache[elementId]={};function showSuggestions(suggestions){const tagged=autocomplete.splitValues(request.term);const il=tagged.length;for(let i=0;i<il;i++)if(suggestions.includes(tagged[i]))suggestions.splice(suggestions.indexOf(tagged[i]),1);response(suggestions);}const term=autocomplete.extractLastTerm(request.term);function sourceCallbackHandler(data){autocomplete.cache[elementId][term]=data;showSuggestions(data);}if(autocomplete.cache[elementId].hasOwnProperty(term))showSuggestions(autocomplete.cache[elementId][term]);else{const options=$.extend({success:sourceCallbackHandler,data:{q:term}},autocomplete.ajax);$.ajax(this.element.attr('data-autocomplete-path'),options);}}function focusHandler(){return false;}function selectHandler(event,ui){const terms=autocomplete.splitValues(event.target.value);terms.pop();terms.push(ui.item.value);event.target.value=terms.join(', ');return false;}function renderItem(ul,item){return $('<li>').append($('<a>').html(item.label)).appendTo(ul);}Drupal.behaviors.autocomplete={attach(context){once('autocomplete','input.form-autocomplete',context).forEach((element)=>{const $autocomplete=$(element);const blacklist=$autocomplete.attr('data-autocomplete-first-character-blacklist');if(blacklist!==undefined)Drupal.deprecationError({message:'The data-autocomplete-first-character-blocklist attribute is deprecated
133in drupal:11.2.0 and is removed from drupal:12.0.0. Use firstCharacterDenyList instead. See https://www.drupal.org/node/3472016.'});const denyList=$autocomplete.attr('data-autocomplete-first-character-denylist');Drupal.deprecatedProperty({target:autocomplete.options,deprecatedProperty:'firstCharacterBlacklist',message:'The firstCharacterBlacklist property is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use firstCharacterDenyList instead. See https://www.drupal.org/node/3472016.'});$.extend(autocomplete.options,{firstCharacterDenyList:denyList||blacklist});$autocomplete.autocomplete(autocomplete.options).each(function(){$(this).data('ui-autocomplete')._renderItem=autocomplete.options.renderItem;});$autocomplete.on('compositionstart.autocomplete',()=>{autocomplete.options.isComposing=true;});$autocomplete.on('compositionend.autocomplete',()=>{autocomplete.options.isComposing=false;});});},detach(context,settings,trigger){if(trigger==='unload')$(once.remove('autocomplete','input.form-autocomplete',context)).autocomplete('destroy');}};autocomplete={cache:{},splitValues:autocompleteSplitValues,extractLastTerm,options:{source:sourceData,focus:focusHandler,search:searchHandler,select:selectHandler,renderItem,minLength:1,firstCharacterDenyList:'',isComposing:false},ajax:{dataType:'json',jsonp:false}};Drupal.autocomplete=autocomplete;})(jQuery,Drupal);;
vendor: 40,677 bytes, line 134
134(function(){class e{constructor(e){this.options_index=0,this.parsed=[],this.copy_data_attributes=e.copy_data_attributes||!1}add_node(e){"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)}add_group(e){const t=this.parsed.length;this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,hidden:e.hidden,classes:e.className});Array.from(e.childNodes).forEach((s=>this.add_option(s,t,e.disabled)))}escape_html(e){const t=document.createElement("div");return t.textContent=null==e?"":String(e),t.innerHTML}add_option(e,t,s){"OPTION"===e.nodeName.toUpperCase()&&(""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({options_index:this.options_index,value:e.value,text:e.text,html:this.escape_html(e.text).trim(),title:e.title?e.title:void 0,selected:e.selected,disabled:!0===s?s:e.disabled,hidden:e.hidden,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText,data:this.parse_data_attributes(e)})):this.parsed.push({options_index:this.options_index,empty:!0,data:this.parse_data_attributes(e)}),this.options_index+=1)}parse_data_attributes(e){const t={"data-option-array-index":this.parsed.length,"data-value":e.value};return this.copy_data_attributes&&e&&Array.from(e.attributes).forEach((e=>{const s=e.nodeName,i=s.toLowerCase();/^data-[\w:.-]+$/i.test(s)&&"data-option-array-index"!==i&&"data-value"!==i&&(t[s]=e.nodeValue)})),t}static select_to_array(t,s){const i=new e(s);return Array.from(t.childNodes).forEach((e=>i.add_node(e))),i.parsed}}class t{constructor(e,s={}){this.label_click_handler=this.label_click_handler.bind(this),this.form_field=e,this.options=s,t.browser_is_supported(s)&&(this.is_multiple=this.form_field.multiple,this.can_select_by_group=null!==this.form_field.getAttribute("select-by-group"),this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}set_default_values(){this.click_test_action=e=>this.test_active_click(e),this.activate_action=e=>this.activate_field(e),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.diacritic_normalization=null==this.options.diacritic_normalization||this.options.diacritic_normalization,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_in_values=this.options.search_in_values||!1,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||Number.POSITIVE_INFINITY,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.inherit_option_classes=this.options.inherit_option_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.parser_config=this.options.parser_config||{},this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select,this.create_option=this.options.create_option||!1,this.persistent_create_option=this.options.persistent_create_option||!1,this.skip_no_results=this.options.skip_no_results||!1}set_default_text(){this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text,this.create_option_text=this.form_field.getAttribute("data-create_option_text")||this.options.create_option_text||t.default_create_option_text}choice_label(e){return this.include_group_label_in_selected&&null!=e.group_label?`<b class='group-name'>${this.escape_html(e.group_label)}</b>${e.html}`:e.html}mouse_enter(){this.mouse_on_container=!0}mouse_leave(){this.mouse_on_container=!1}input_focus(e){this.is_multiple?this.active_field||setTimeout((()=>{this.container_mousedown()}),50):this.active_field||this.activate_field()}input_blur(e){this.mouse_on_container||(this.active_field=!1,setTimeout((()=>{this.blur_test()}),100))}label_click_handler(e){this.is_multiple?this.container_mousedown(e):this.activate_field()}results_option_build(e){let t="",s=0;for(let i of this.results_data){let l="";if(l=i.group?this.result_add_group(i):this.result_add_option(i),""!==l&&(s++,t+=l),(null!=e?e.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(i))),s>=this.max_shown_results)break}return t}result_add_option(e){if(!e.search_match)return"";if(!this.include_option_in_results(e))return"";const t=[];e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes);const s=document.createElement("li");s.className=t.join(" "),e.style&&(s.style.cssText=e.style);for(let t in e.data)Object.prototype.hasOwnProperty.call(e.data,t)&&s.setAttribute(t,e.data[t]);s.setAttribute("role","option"),s.innerHTML=e.highlighted_html||e.html;const i=this.search_results_id_prefix||this.form_field.id;return s.id=`${i}-chosen-search-result-${e.data["data-option-array-index"]}`,e.title&&(s.title=e.title),s.outerHTML}result_add_group(e){if(!e.search_match&&!e.group_match)return"";if(!(e.active_options>0))return"";const t=[];t.push("group-result"),e.classes&&t.push(e.classes);const s=document.createElement("li");return s.className=t.join(" "),s.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(s.title=e.title),s.outerHTML}append_option(e){this.select_append_option(e)}results_update_field(){this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing&&this.winnow_results()}reset_single_select_options(){for(let e of this.results_data)e.selected&&(e.selected=!1)}results_toggle(){this.results_showing?this.results_hide({restore_focus:!this.is_multiple}):this.results_show()}results_search(e){this.results_showing?this.winnow_results():this.results_show();const t=new CustomEvent("chosen:search",{detail:{chosen:this}});this.form_field.dispatchEvent(t)}winnow_results(e){this.no_results_clear();let t=0,s=!1,i=!1;const l=this.escape_special_char(this.get_search_text()),h=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),r=this.get_search_regex(h),a=new RegExp(`^${h}$`);this.get_highlight_regex(h);for(let e of this.results_data){e.search_match=!1;let h=null,o=null;if(e.highlighted_html="",this.include_option_in_results(e)){e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(h=this.results_data[e.group_array_index],0===h.active_options&&h.search_match&&(t+=1),h.active_options+=1);let n=e.group?e.label:e.text;if(!e.group||this.group_search)if(o=this.search_string_match(this.escape_special_char(n),r),e.search_match=null!=o,!e.search_match&&this.search_in_values&&(e.search_match=this.search_string_match(this.escape_special_char(e.value),r),i=!0),e.search_match&&!e.group&&(t+=1),s=s||a.test(e.html),e.search_match){if(l.length&&!i){let t=o.index,s=n.slice(0,t),i=n.slice(t,t+l.length),h=n.slice(t+l.length);e.highlighted_html=`${this.escape_html(s)}<em>${this.escape_html(i)}</em>${this.escape_html(h)}`}null!=h&&(h.group_match=!0)}else null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)}}this.result_clear_highlight(),t<1&&l.length?(this.update_results_content(""),this.fire_search_updated(l),this.create_option&&this.skip_no_results||this.no_results(l)):(this.update_results_content(this.results_option_build()),this.fire_search_updated(l),(null!=e?e.skip_highlight:void 0)||this.winnow_results_set_highlight()),this.create_option&&(t<1||!s&&this.persistent_create_option)&&l.length&&this.show_create_option(l)}get_search_regex(e){let t=this.search_contains?e:`(^|\\s|\\b)${e}[^\\s]*`;this.enable_split_word_search||this.search_contains||(t=`^${t}`);const s=this.case_sensitive_search?"":"i";return new RegExp(t,s)}get_highlight_regex(e){const t=this.search_contains?"":"\\b",s=this.case_sensitive_search?"":"i";return new RegExp(t+e,s)}get_list_special_char(){const e=[];return e.push({val:"a",let:"(ä|æ|ǽ)"}),e.push({val:"o",let:"(ö|Å)"}),e.push({val:"u",let:"(ü)"}),e.push({val:"A",let:"(Ã)"}),e.push({val:"U",let:"(Ã)"}),e.push({val:"O",let:"(Ã)"}),e.push({val:"A",let:"(Ã|Ǽ)"}),e.push({val:"ss",let:"(Ã)"}),e.push({val:"IJ",let:"(IJ)"}),e.push({val:"ij",let:"(ij)"}),e.push({val:"OE",let:"(Å)"}),e.push({val:"A",let:"(Ã|Ã|Ã|Ã|Ã|Ã
|Ǻ|Ä|Ä|Ä|Ç)"}),e.push({val:"a",let:"(à |á|â|ã|Ã¥|Ç»|Ä|Ä|Ä
|Ç|ª)"}),e.push({val:"C",let:"(Ã|Ä|Ä|Ä|Ä)"}),e.push({val:"c",let:"(ç|Ä|Ä|Ä|Ä)"}),e.push({val:"D",let:"(Ã|Ä|Ä)"}),e.push({val:"d",let:"(ð|Ä|Ä)"}),e.push({val:"E",let:"(Ã|Ã|Ã|Ã|Ä|Ä|Ä|Ä|Ä)"}),e.push({val:"e",let:"(è|é|ê|ë|Ä|Ä|Ä|Ä|Ä)"}),e.push({val:"G",let:"(Ä|Ä|Ä |Ä¢)"}),e.push({val:"g",let:"(Ä|Ä|Ä¡|Ä£)"}),e.push({val:"H",let:"(Ĥ|Ħ)"}),e.push({val:"h",let:"(Ä¥|ħ)"}),e.push({val:"I",let:"(Ã|Ã|Ã|Ã|Ĩ|Ī|Ĭ|Ç|Ä®|İ)"}),e.push({val:"i",let:"(ì|Ã|î|ï|Ä©|Ä«|Ä|Ç|į|ı)"}),e.push({val:"J",let:"(Ä´)"}),e.push({val:"j",let:"(ĵ)"}),e.push({val:"K",let:"(Ķ)"}),e.push({val:"k",let:"(Ä·)"}),e.push({val:"L",let:"(Ĺ|Ä»|Ľ|Ä¿|Å)"}),e.push({val:"l",let:"(ĺ|ļ|ľ|Å|Å)"}),e.push({val:"N",let:"(Ã|Å|Å
|Å)"}),e.push({val:"n",let:"(ñ|Å|Å|Å|Å)"}),e.push({val:"O",let:"(Ã|Ã|Ã|Ã|Å|Å|Ç|Å|Æ |Ã|Ǿ)"}),e.push({val:"o",let:"(ò|ó|ô|õ|Å|Å|Ç|Å|Æ¡|ø|Ç¿|º)"}),e.push({val:"R",let:"(Å|Å|Å)"}),e.push({val:"r",let:"(Å|Å|Å)"}),e.push({val:"S",let:"(Å|Å|Å|Å )"}),e.push({val:"s",let:"(Å|Å|Å|Å¡|Å¿)"}),e.push({val:"T",let:"(Å¢|Ť|Ŧ)"}),e.push({val:"t",let:"(Å£|Å¥|ŧ)"}),e.push({val:"U",let:"(Ã|Ã|Ã|Ũ|Ū|Ŭ|Å®|Ű|Ų|Ư|Ç|Ç|Ç|Ç|Ç)"}),e.push({val:"u",let:"(ù|ú|û|Å©|Å«|Å|ů|ű|ų|ư|Ç|Ç|Ç|Ç|Ç)"}),e.push({val:"Y",let:"(Ã|Ÿ|Ŷ)"}),e.push({val:"y",let:"(ý|ÿ|Å·)"}),e.push({val:"W",let:"(Å´)"}),e.push({val:"w",let:"(ŵ)"}),e.push({val:"Z",let:"(Ź|Å»|Ž)"}),e.push({val:"z",let:"(ź|ż|ž)"}),e.push({val:"f",let:"(Æ)"}),e}escape_special_char(e){if(!this.diacritic_normalization)return e;const t=this.get_list_special_char();for(let s of t)e=e.replace(new RegExp(s.let,"g"),s.val);return e}search_string_match(e,t){let s=t.exec(e);return!this.search_contains&&(null!=s?s[1]:void 0)&&(s.index+=1),s}choices_count(){if(null!=this.selected_option_count)return this.selected_option_count;this.selected_option_count=0;for(let e of this.form_field.options)e.selected&&(this.selected_option_count+=1);return this.selected_option_count}choices_click(e){e.preventDefault(),this.activate_field(),this.results_showing||this.is_disabled||this.results_show()}mousedown_checker(e){let t;switch(null==(e=e||window.event).which&&void 0!==e.button?1&e.button?1:2&e.button?3:4&e.button?2:0:e.which||0){case 1:t="left";break;case 2:t="middle";break;case 3:t="right";break;default:t="other"}return t}keydown_checker(e){if(this.is_disabled)return;const t=null!=e.which?e.which:e.keyCode,s=!this.is_multiple&&e.currentTarget===this.selected_item;switch(this.search_field_scale(),8!==t&&this.pending_backstroke&&this.clear_backstroke(),t){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:if(e.shiftKey&&!this.is_multiple){const e=this.selected_item.getAttribute("tabindex");this.selected_item.tabIndex=-1,this.mouse_on_container=!1,this.results_showing&&this.results_hide({keep_focus:!0}),setTimeout((()=>{null==e?this.selected_item.removeAttribute("tabindex"):this.selected_item.setAttribute("tabindex",e)}),0);break}this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:(this.results_showing||s)&&e.preventDefault();break;case 27:this.results_showing&&e.preventDefault();break;case 32:(this.disable_search||s)&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}}keyup_checker(e){if(this.is_disabled)return;const t=null!=e.which?e.which:e.keyCode,s=!this.is_multiple&&e.currentTarget===this.selected_item;switch(this.search_field_scale(),t){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),s?this.results_showing||this.results_show():this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide({restore_focus:!this.is_multiple});break;case 32:s?(e.preventDefault(),this.results_showing||this.results_show()):this.results_search();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}}clipboard_event_checker(e){this.is_disabled||setTimeout((()=>{this.results_search()}),50)}container_width(){if(null!=this.options.width)return this.options.width;if(this.form_field.offsetWidth>0){const e=this.form_field.offsetWidth+this.container_width_extra();return`${Math.max(e,this.container_min_width())}px`}return"auto"}container_width_extra(){return this.is_multiple?8:35}container_min_width(){const e=window.getComputedStyle(this.form_field),t=parseFloat(e.fontSize)||14;return this.has_search_or_create_ui()?Math.ceil(12*t):Math.ceil(8*t)}has_search_or_create_ui(){return!!this.create_option||(!!this.is_multiple||!this.disable_search&&this.form_field.options.length>this.disable_search_threshold)}include_option_in_results(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&(!e.empty&&(!e.hidden&&(null==e.group_array_index||!this.results_data[e.group_array_index].hidden))))}search_results_touchstart(e){this.touch_started=!0,this.search_results_mouseover(e)}search_results_touchmove(e){this.touch_started=!1,this.search_results_mouseout(e)}search_results_touchend(e){if(this.touch_started){e.preventDefault();const t=e.target instanceof Element?e.target:null,s=t&&(t.classList.contains("active-result")||t.classList.contains("group-result")?t:t.closest(".active-result, .group-result"));s&&(this.result_highlight=s,this.result_select(e),this.results_showing&&this.search_field.focus())}}get_single_html(){return`<a class="chosen-single chosen-default" tabindex="0" role="button" aria-expanded="false" aria-haspopup="listbox">\n <span>${this.default_text}</span>\n <div aria-label="Show options"><b aria-hidden="true"></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" role="combobox" aria-expanded="false" aria-haspopup="true" aria-autocomplete="list" />\n </div>\n <ul class="chosen-results" role="listbox"></ul>\n</div>`}get_multi_html(){return`<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" role="combobox" placeholder="${this.default_text}" aria-expanded="false" aria-haspopup="true" aria-autocomplete="list" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results" role="listbox"></ul>\n</div>`}get_no_results_html(e){return`<li class="no-results">\n ${this.escape_html(this.results_none_found)} <span>${this.escape_html(e)}</span>\n</li>`}get_create_option_html(e){return`<li class="create-option active-result" role="option"><a>${this.escape_html(this.create_option_text)}</a> <span>${this.escape_html(e)}</span></li>`}static browser_is_supported(e={}){if(!1!==e.allow_mobile)return!0;const t=window.navigator.userAgent;return!(/iP(od|hone|ad)/i.test(t)||/Android.*Mobile/i.test(t)||/IEMobile/i.test(t)||/Windows Phone/i.test(t)||/BlackBerry/i.test(t)||/BB10/i.test(t))}escape_html(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}}t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results for:",t.default_create_option_text="Add Option:",t.default_remove_item_text="Remove selection";class s extends t{static next_uid=0;setup(){this.current_selectedIndex=this.form_field.selectedIndex}set_up_html(){this._a11y_orig_aria_hidden=this.form_field.getAttribute("aria-hidden"),this._a11y_orig_tabindex=this.form_field.getAttribute("tabindex");let e=["chosen-container"];e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl");const t={class:e.join(" "),title:this.form_field.title};this.form_field.id.length&&(t.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=document.createElement("div");for(let e in t)this.container.setAttribute(e,t[e]);this.container.style.setProperty("--chosen-width",this.container_width()),this.is_multiple?this.container.innerHTML=this.get_multi_html():this.container.innerHTML=this.get_single_html(),this.form_field.classList.add("chosen-original-select"),this.form_field.parentNode.insertBefore(this.container,this.form_field.nextSibling),this.dropdown=this.container.querySelector("div.chosen-drop"),this.dropdown.setAttribute("aria-hidden","true"),this.search_field=this.container.querySelector("input"),this.search_results=this.container.querySelector("ul.chosen-results"),this.search_results_id_prefix=this.form_field.id||"chosen-"+s.next_uid++,this.search_results.setAttribute("id",`${this.search_results_id_prefix}-chosen-search-results`),this.search_field_scale(),this.is_multiple?(this.search_choices=this.container.querySelector("ul.chosen-choices"),this.search_container=this.container.querySelector("li.search-field")):(this.search_container=this.container.querySelector("div.chosen-search"),this.selected_item=this.container.querySelector(".chosen-single")),this.set_aria_labels(),this.results_build(),this.set_tab_index(),this.form_field.setAttribute("aria-hidden","true"),this.form_field.setAttribute("tabindex","-1"),this.set_label_behavior()}on_ready(){const e=new CustomEvent("chosen:ready",{detail:{chosen:this}});this.form_field.dispatchEvent(e)}register_observers(){this.container.addEventListener("touchstart",(e=>this.container_mousedown(e))),this.container.addEventListener("touchend",(e=>this.container_mouseup(e))),this.container.addEventListener("mousedown",(e=>this.container_mousedown(e))),this.container.addEventListener("mouseup",(e=>this.container_mouseup(e))),this.container.addEventListener("mouseenter",(e=>this.mouse_enter(e))),this.container.addEventListener("mouseleave",(e=>this.mouse_leave(e))),this.search_results.addEventListener("mouseup",(e=>this.search_results_mouseup(e))),this.search_results.addEventListener("mouseover",(e=>this.search_results_mouseover(e))),this.search_results.addEventListener("mouseout",(e=>this.search_results_mouseout(e))),this.search_results.addEventListener("wheel",(e=>this.search_results_mousewheel(e))),this.search_results.addEventListener("mousewheel",(e=>this.search_results_mousewheel(e))),this.search_results.addEventListener("DOMMouseScroll",(e=>this.search_results_mousewheel(e))),this.search_results.addEventListener("touchstart",(e=>this.search_results_touchstart(e))),this.search_results.addEventListener("touchmove",(e=>this.search_results_touchmove(e))),this.search_results.addEventListener("touchend",(e=>this.search_results_touchend(e))),this.form_field.addEventListener("chosen:updated",(e=>this.results_update_field(e))),this.form_field.addEventListener("chosen:activate",(e=>this.activate_field(e))),this.form_field.addEventListener("chosen:open",(e=>this.container_mousedown(e))),this.form_field.addEventListener("chosen:close",(e=>this.close_field(e))),this.search_field.addEventListener("blur",(e=>this.input_blur(e))),this.search_field.addEventListener("keyup",(e=>this.keyup_checker(e))),this.search_field.addEventListener("keydown",(e=>this.keydown_checker(e))),this.search_field.addEventListener("focus",(e=>this.input_focus(e))),this.search_field.addEventListener("cut",(e=>this.clipboard_event_checker(e))),this.search_field.addEventListener("paste",(e=>this.clipboard_event_checker(e))),this.is_multiple?this.search_choices.addEventListener("click",(e=>this.choices_click(e))):(this.selected_item.addEventListener("focus",this.activate_action),this.selected_item.addEventListener("blur",(e=>this.input_blur(e))),this.selected_item.addEventListener("keydown",(e=>this.keydown_checker(e))),this.selected_item.addEventListener("keyup",(e=>this.keyup_checker(e))),this.container.addEventListener("click",(e=>e.preventDefault())))}destroy(){(null!=this.container.getRootNode?this.container.getRootNode():this.container.ownerDocument).removeEventListener("click",this.click_test_action),this.form_field_label&&this.form_field_label.removeEventListener("click",this.label_click_handler),this.search_field.tabIndex&&(this.form_field.tabIndex=this.search_field.tabIndex),this.container.parentNode.removeChild(this.container),delete this.form_field.__chosen_instance,this.form_field.classList.remove("chosen-original-select"),null===this._a11y_orig_aria_hidden?this.form_field.removeAttribute("aria-hidden"):this.form_field.setAttribute("aria-hidden",this._a11y_orig_aria_hidden),null===this._a11y_orig_tabindex?this.form_field.removeAttribute("tabindex"):this.form_field.setAttribute("tabindex",this._a11y_orig_tabindex)}set_aria_labels(){const e=this.search_results.getAttribute("id");this.search_field.setAttribute("aria-owns",e),this.search_field.setAttribute("aria-controls",e),!this.is_multiple&&this.selected_item&&(this.selected_item.setAttribute("aria-controls",e),this.selected_item.setAttribute("aria-haspopup","listbox"));let t="",s="";if(this.form_field.getAttribute("aria-label"))t=this.form_field.getAttribute("aria-label"),this.search_field.setAttribute("aria-label",t),this.form_field.getAttribute("aria-labelledby")&&(s=this.form_field.getAttribute("aria-labelledby"),this.search_field.setAttribute("aria-labelledby",s));else if(this.form_field.labels&&this.form_field.labels.length){for(let e=0;e<this.form_field.labels.length;e++){let t=this.form_field.labels[e];""===t.id&&(t.id=`${this.form_field.id}-chosen-label-${e}`),s+=this.form_field.labels[e].id+" "}s=s.trim(),this.search_field.setAttribute("aria-labelledby",s),t=this.form_field.labels[0].textContent.trim()}s?this.container.setAttribute("aria-labelledby",s):t&&this.container.setAttribute("aria-label",t),t&&this.search_results.setAttribute("aria-label",t),this.set_expanded(!1)}set_expanded(e){const t=e?"true":"false";this.search_field&&this.search_field.setAttribute("aria-expanded",t),!this.is_multiple&&this.selected_item&&this.selected_item.setAttribute("aria-expanded",t)}search_field_disabled(){this.is_disabled=this.form_field.disabled||this.form_field.closest("fieldset:disabled"),this.is_disabled?(this.container.classList.add("chosen-disabled"),this.search_field.disabled=!0,this.close_field()):(this.container.classList.remove("chosen-disabled"),this.search_field.disabled=!1)}is_choice_close_target(e){return e&&e.target instanceof Element&&e.target.closest(".search-choice-close")}container_mousedown(e){if(!this.is_disabled&&(e&&"left"===this.mousedown_checker(e)&&e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),!e||"mousedown"!==e.type&&"touchstart"!==e.type||this.results_showing||e.preventDefault(),!this.is_choice_close_target(e))){if(this.active_field)this.is_multiple&&!this.results_showing?(this.search_field.value="",this.results_show()):this.is_multiple||!e||e.target!==this.selected_item&&!e.target.closest("a.chosen-single")||(e.preventDefault(),this.results_toggle());else{this.is_multiple&&(this.search_field.value="");(null!=this.container.getRootNode?this.container.getRootNode():this.container.ownerDocument).addEventListener("click",this.click_test_action),this.results_show()}this.activate_field()}}container_mouseup(e){!this.is_disabled&&this.allow_single_deselect&&e.target.classList.contains("search-choice-close")&&this.results_reset(e)}search_results_mousewheel(e){let t;t=e.wheelDelta?-e.wheelDelta:e.deltaY||e.detail,null!=t&&(e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop+=t)}blur_test(e){!this.active_field&&this.container.classList.contains("chosen-container-active")&&this.close_field()}close_field(){(null!=this.container.getRootNode?this.container.getRootNode():this.container.ownerDocument).removeEventListener("click",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.classList.remove("chosen-container-active"),this.container.classList.remove("chosen-dropup"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.dispatchEvent(new Event("blur"))}should_dropup(){const e=window.innerHeight,t=this.container.getBoundingClientRect().top+this.container.offsetHeight-window.pageYOffset;return this.dropdown.offsetHeight+t>e}activate_field(e){this.is_disabled||(this.container.classList.add("chosen-container-active"),this.should_dropup()&&this.container.classList.add("chosen-dropup"),this.active_field=!0,this.search_field.value=this.search_field.value,this.search_results.setAttribute("aria-busy",!1),e&&e.target===this.selected_item||this.search_field.focus())}test_active_click(e){const t=e.target.closest(".chosen-container");"left"===this.mousedown_checker(e)&&t&&this.container===t?this.active_field=!0:this.close_field()}results_build(){if(this.parsing=!0,this.selected_option_count=null,this.results_data=e.select_to_array(this.form_field,this.parser_config),this.is_multiple){this.search_choices.querySelectorAll("li.search-choice").forEach((e=>e.remove()))}else this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold&&!this.create_option?(this.search_field.readOnly=!0,this.container.classList.add("chosen-container-single-nosearch")):(this.search_field.readOnly=!1,this.container.classList.remove("chosen-container-single-nosearch"));this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.set_expanded(this.results_showing),this.parsing=!1}update_results_content(e){this.search_results.innerHTML=e}fire_search_updated(e){const t=new CustomEvent("chosen:search_updated",{detail:{chosen:this,search_term:e}});this.form_field.dispatchEvent(t)}result_do_highlight(e){if(e){this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.classList.add("highlighted"),this.search_field.setAttribute("aria-activedescendant",this.result_highlight.getAttribute("id"));const t=parseInt(window.getComputedStyle(this.search_results).maxHeight,10),s=this.search_results.scrollTop,i=t+s,l=this.result_highlight.offsetTop,h=l+this.result_highlight.offsetHeight;h>=i?this.search_results.scrollTop=h-t:l<s&&(this.search_results.scrollTop=l)}}result_clear_highlight(){this.result_highlight&&this.result_highlight.classList.remove("highlighted"),this.result_highlight=null}results_show(){if(this.is_multiple&&this.max_selected_options<=this.choices_count()){const e=new CustomEvent("chosen:maxselected",{detail:{chosen:this}});return this.form_field.dispatchEvent(e),!1}this.should_dropup()&&this.container.classList.add("chosen-dropup"),this.container.classList.add("chosen-with-drop");const e=this.container.querySelector(".chosen-single div");e&&e.setAttribute("aria-label","Hide options"),this.dropdown.setAttribute("aria-hidden","false"),this.results_showing=!0,this.set_expanded(!0),this.search_field.focus(),this.search_field.value=this.get_search_field_value(),this.winnow_results();const t=new CustomEvent("chosen:showing_dropdown",{detail:{chosen:this}});this.form_field.dispatchEvent(t)}results_hide(e={}){const t=!this.is_multiple&&e.restore_focus&&!e.keep_focus&&this.selected_item;if(this.results_showing){this.result_clear_highlight(),this.container.classList.remove("chosen-with-drop"),this.container.classList.remove("chosen-dropup");const e=this.container.querySelector(".chosen-single div");e&&e.setAttribute("aria-label","Show options");const t=new CustomEvent("chosen:hiding_dropdown",{detail:{chosen:this}});this.form_field.dispatchEvent(t)}this.dropdown.contains(document.activeElement)&&!e.keep_focus&&document.activeElement.blur(),this.dropdown.setAttribute("aria-hidden","true"),this.set_expanded(!1),this.results_showing=!1,t&&document.activeElement!==this.selected_item&&this.selected_item.focus()}set_tab_index(){const e=this.form_field.getAttribute("tabindex");null!=e?(this.form_field.tabIndex=-1,this.is_multiple?this.search_field.tabIndex=e:(this.selected_item.tabIndex=e,this.search_field.tabIndex=-1)):this.is_multiple||(this.search_field.tabIndex=-1)}set_label_behavior(){this.form_field_label=this.form_field.closest("label"),!this.form_field_label&&this.form_field.id.length&&(this.form_field_label=Array.from(document.querySelectorAll("label")).find((e=>e.getAttribute("for")===this.form_field.id))),this.form_field_label&&this.form_field_label.addEventListener("click",this.label_click_handler)}set_search_field_placeholder(){this.is_multiple&&this.choices_count()<1?this.search_field.setAttribute("placeholder",this.default_text):this.search_field.setAttribute("placeholder","")}show_search_field_default(){this.search_field.value="",this.set_search_field_placeholder(),this.is_multiple&&this.choices_count()<1&&!this.active_field?this.search_field.classList.add("default"):this.search_field.classList.remove("default")}search_results_mouseup(e){if("left"===this.mousedown_checker(e)){let t=e.target.classList.contains("active-result")||e.target.classList.contains("group-result")?e.target:e.target.closest(".active-result");t&&(this.result_highlight=t,this.result_select(e),this.results_showing&&this.search_field.focus())}}search_results_mouseover(e){let t=e.target.classList.contains("active-result")?e.target:e.target.closest(".active-result");t&&this.result_do_highlight(t)}search_results_mouseout(e){(e.target.classList.contains("active-result")||e.target.closest(".active-result"))&&this.result_clear_highlight()}choice_build(e){const s=document.createElement("li");if(s.className="search-choice",s.setAttribute("data-value",e.value),s.innerHTML=`<span>${this.choice_label(e)}</span>`,e.disabled)s.classList.add("search-choice-disabled");else{const i=document.createElement("button");i.type="button",i.tabIndex=-1,i.className="search-choice-close",i.setAttribute("aria-label",t.default_remove_item_text),i.setAttribute("data-option-array-index",e.data["data-option-array-index"]);const l=document.createElement("span");l.className="visually-hidden focusable",l.textContent=t.default_remove_item_text,i.appendChild(l),i.addEventListener("click",(e=>this.choice_destroy_link_click(e))),i.addEventListener("touchend",(e=>this.choice_destroy_link_click(e))),s.appendChild(i)}this.inherit_option_classes&&e.classes&&s.classList.add(e.classes),this.search_container.parentNode.insertBefore(s,this.search_container)}choice_destroy_link_click(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled){const t=e.target instanceof Element?e.target.closest(".search-choice-close"):null;t&&this.choice_destroy(t)}}choice_destroy(e){this.result_deselect(e.getAttribute("data-option-array-index"))&&(this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.hide_results_on_select&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.closest("li").remove(),this.set_search_field_placeholder(),this.search_field_scale())}results_reset(){this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field&&this.results_hide({restore_focus:!this.is_multiple})}results_reset_cleanup(){this.current_selectedIndex=this.form_field.selectedIndex;const e=this.selected_item.querySelector(".search-choice-close");e&&e.remove()}result_select(e){if(e.target.classList.contains("group-result")){if(!this.can_select_by_group)return;let t=e.target.nextElementSibling;for(;t&&!t.classList.contains("group-result");){if(t.classList.contains("active-result")){const s=t.getAttribute("data-option-array-index");let i=!1;if(this.search_choices.querySelectorAll(".search-choice-close").forEach((e=>{e.getAttribute("data-option-array-index")===s&&(i=!0)})),!i){this.result_highlight=t;const s={target:t,selected:!0,metaKey:e.metaKey,ctrlKey:e.ctrlKey,preventDefault:()=>{"function"==typeof e.preventDefault&&e.preventDefault()}};this.result_select(s)}}t=t.nextElementSibling}}else if(this.result_highlight){const t=this.result_highlight;if(t.classList.contains("create-option"))return this.select_create_option(this.search_field.value),void this.results_hide({keep_focus:!this.is_multiple&&e&&"keyup"===e.type});if(this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()){const e=new CustomEvent("chosen:maxselected",{detail:{chosen:this}});return this.form_field.dispatchEvent(e),!1}this.is_multiple?t.classList.remove("active-result"):this.reset_single_select_options(),t.classList.add("result-selected");const s=this.results_data[t.getAttribute("data-option-array-index")];s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(this.choice_label(s)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.value="",this.winnow_results()):(this.results_hide({keep_focus:!this.is_multiple&&e&&"keyup"===e.type,restore_focus:!this.is_multiple}),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale()}}single_set_selected_text(e=this.default_text){e===this.default_text?this.selected_item.classList.add("chosen-default"):(this.single_deselect_control_build(),this.selected_item.classList.remove("chosen-default")),this.selected_item.querySelector("span").innerHTML=e}result_deselect(e){const t=this.results_data[e];return!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)}single_deselect_control_build(){if(this.allow_single_deselect){if(!this.selected_item.querySelector(".search-choice-close")){const e=document.createElement("button");e.type="button",e.tabIndex=-1,e.className="search-choice-close",e.setAttribute("aria-label",t.default_remove_item_text),this.selected_item.querySelector("span").after(e)}this.selected_item.classList.add("chosen-single-with-deselect")}}get_search_field_value(){return this.search_field.value}get_search_text(){return this.get_search_field_value().trim()}winnow_results_set_highlight(){let e;const t=this.is_multiple?null:this.search_results.querySelector(".result-selected.active-result");e=t||this.search_results.querySelector(".active-result"),null!=e&&this.result_do_highlight(e)}no_results(e){const t=this.get_no_results_html(e);this.search_results.insertAdjacentHTML("beforeend",t);const s=new CustomEvent("chosen:no_results",{detail:{chosen:this}});this.form_field.dispatchEvent(s)}show_create_option(e){const t=this.get_create_option_html(e);this.search_results.insertAdjacentHTML("beforeend",t)}create_option_clear(){const e=this.search_results.querySelector(".create-option");e&&e.remove()}select_create_option(e){"function"==typeof this.create_option?this.create_option.call(this,e):this.select_append_option({value:e,text:e})}select_append_option(e){const t=new Option(null==e.text?"":String(e.text),null==e.value?"":String(e.value),!0,!0);this.form_field.add(t);const s=new Event("chosen:updated");this.form_field.dispatchEvent(s);const i=new Event("change",{bubbles:!0});this.form_field.dispatchEvent(i),this.search_field.focus()}no_results_clear(){const e=this.search_results.querySelector(".no-results");e&&e.remove()}keydown_arrow(){let e;if(this.results_showing&&this.result_highlight){for(e=this.result_highlight.nextElementSibling;e&&!e.classList.contains("active-result");)e=e.nextElementSibling;e&&this.result_do_highlight(e)}else if(this.results_showing&&this.create_option){const e=this.search_results.querySelector(".create-option");e&&this.result_do_highlight(e)}else this.results_show()}keyup_arrow(){let e;if(this.results_showing||this.is_multiple){if(this.result_highlight){for(e=this.result_highlight.previousElementSibling;e&&!e.classList.contains("active-result");)e=e.previousElementSibling;e?this.result_do_highlight(e):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())}}else this.results_show()}keydown_backstroke(){if(this.pending_backstroke)this.choice_destroy(this.pending_backstroke.querySelector(".search-choice-close")),this.clear_backstroke();else{const e=this.search_container.previousElementSibling;e&&!e.classList.contains("search-choice-disabled")&&(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.classList.add("search-choice-focus"))}}clear_backstroke(){this.pending_backstroke&&this.pending_backstroke.classList.remove("search-choice-focus"),this.pending_backstroke=null}search_field_scale(){if(!this.is_multiple)return;const e={position:"absolute",left:"-1000px",top:"-1000px",whiteSpace:"pre"};["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"].forEach((t=>{e[t]=window.getComputedStyle(this.search_field)[t]}));const t=document.createElement("div");Object.assign(t.style,e),t.textContent=this.get_search_field_value()||this.search_field.getAttribute("placeholder"),document.body.appendChild(t);let s=t.offsetWidth+25;t.remove(),this.container.offsetWidth>0&&(s=Math.min(this.container.offsetWidth-10,s)),this.search_field.style.setProperty("--chosen-search-width",`${s}px`)}trigger_form_field_change(e){const t=new Event("input"),s=new Event("change",Object.assign({bubbles:!0},e||{}));this.form_field.dispatchEvent(t),this.form_field.dispatchEvent(s)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.chosen=function(e){if(!t.browser_is_supported(e))return this;"destroy"!==e?this.__chosen_instance instanceof s||(this.__chosen_instance=new s(this,e)):this.__chosen_instance instanceof s&&this.__chosen_instance.destroy()},"undefined"!=typeof window)){const e=window.Chosen||{};null==e.init&&(e.init=function(e,t){if(!e||"function"!=typeof e.chosen)throw new TypeError("Chosen.init expects an element with a chosen method");return e.chosen(t),e.__chosen_instance||e}),null==e.destroy&&(e.destroy=function(e){if(!e||"function"!=typeof e.chosen)throw new TypeError("Chosen.destroy expects an element with a chosen method");return e.chosen("destroy"),e}),window.Chosen=e}}).call(this);
134; 135(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
vendor: 3,483 bytes, lines 135-137
135" 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);; 136/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 137loadjs=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}function 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;
137for(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}();; 138/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 139Drupal.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;};};; 140(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);; 141((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})=>{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);; 142((Drupal)=>{Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress--fullscreen">
142<div class="ajax-progress__throbber ajax-progress__throbber--fullscreen"> </div></div>';Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="ajax-progress__throbber"> </div>';return `<div class="ajax-progress ajax-progress--throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressMessage=(message)=>`<div class="ajax-progress__message">${message}</div>`;})(Drupal);; 143(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;
143$(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
143d}`,$.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));
143$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);; 144(function(Drupal){Drupal.theme.ajaxProgressBar=function($element){return $element.addClass('ajax-progress ajax-progress-bar');};})(Drupal);; 145(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
1450&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
145if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);; 146(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.googleCSECustomSearch={attach:function(context,settings){var getWatermarkBackground=function(value){var googleCSEBaseUrl='https://www.google.com/cse/intl/';var googleCSEImageUrl='images/google_custom_search_watermark.gif';var language=drupalSettings.googlePSE.language+'/';return value?'':' url('+googleCSEBaseUrl+language+googleCSEImageUrl+') left no-repeat';};var removeWatermark=function(e){$(e.target).css('background','#ffffff');};var addWatermark=function(e){$(e.target).css('background','#ffffff'+getWatermarkBackground($(e.target).val()));};var googleCSEWatermark=function(context,query){var searchInputs=$(`[data-drupal-selector='${query}']`);if(drupalSettings.googlePSE.displayWatermark===true){searchInputs.on("blur",addWatermark);searchInputs.each(function(){var event={};event.target=this;addWatermark(event);});}else{searchInputs.on("blur",removeWatermark);searchInputs.each(function(){var event={};event.target=this;removeWatermark(event);});}searchInputs.focus(removeWatermark);};googleCSEWatermark('[data-drupal-selector="search-block-form"] [data-drupal-form-fields="edit-keys--2"]','edit-keys');googleCSEWatermark('[data-drupal-selector="search-block-form"] [data-drupal-form-fields="edit-keys"]','edit-keys');googleCSEWatermark('[data-drupal-selector="search-form"]','edit-keys');googleCSEWatermark('[data-drupal-selector="google-cse-search-box-form"]','edit-query');}};})(jQuery,Drupal,drupalSettings);; 147(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);; 148(function($,Drupal,drupalSettings,once){Drupal.meta_conversions_api={};
148Drupal.meta_conversions_api.shouldSend=function(eventName){if(!drupalSettings.hasOwnProperty('meta_conversions_api'))return false;if(!drupalSettings.meta_conversions_api.enabled)return false;if(!Drupal.meta_conversions_api.allowedCallback())return false;return drupalSettings.meta_conversions_api.events[eventName];};Drupal.meta_conversions_api.allowedCallback=function(){return true;};Drupal.behaviors.metaPageView={attach(context){if(!once('meta-conversions-api-page-view','html').length)return;if(Drupal.meta_conversions_api.shouldSend('PageView'))$.ajax({url:'/ajax/page-view',data:{url:window.location.href}});}};})(jQuery,Drupal,drupalSettings,once);; 149/* @license MIT https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html */ 150(function($,Drupal,once){Drupal.behaviors.superfish={attach(context,drupalSettings){$.each(drupalSettings.superfish||{},function(index,options){$(once('superfish',`ul#${options.id}`,context)).each(function(){const $menu=$(this);if(options.plugins)if(options.plugins.supersubs)$menu.supersubs(options.plugins.supersubs);$menu.superfish(options.sf);if(options.plugins){if(options.plugins.touchscreen)$menu.sftouchscreen(options.plugins.touchscreen);if(options.plugins.smallscreen)$menu.sfsmallscreen(options.plugins.smallscreen);if(options.plugins.supposition)$menu.supposition();}});});}};})(jQuery,Drupal,once);; 151/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 152(function($){$.fn.superfish=function(superfish_options){const cssClasses=sf.cssClasses;
152const $arrow=$(`<span class="${cssClasses.arrowClass}"> »</span>`);const over=function(){const $$=$(this);const menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();};const out=function(){const $$=$(this);const menu=getMenu($$);const options=sf.options;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){if($$.children('.sf-clicked').length===0){options.retainPath=($.inArray($$[0],options.$path)>-1);$$.hideSuperfishUl();if(options.$path.length&&$$.parents(`li.${cssClasses.hoverClass}`).length<1)over.call(options.$path);}},options.delay);};const getMenu=function($menu){const menu=$menu.parents(`ul.${cssClasses.menuClass}:first`)[0];sf.options=sf.optionsList[menu.serial];return menu;};const addArrow=function($a){$a.addClass(cssClasses.anchorClass).append($arrow.clone());};return this.each(function(){const s=this.serial=sf.optionsList.length;const options=$.extend({},sf.defaults,superfish_options);options.$path=$(`li.${options.pathClass}`,this).slice(0,options.pathLevels);const path=options.$path;for(let l=0;l<path.length;l++)path.eq(l).addClass(`${cssClasses.hoverClass} ${cssClasses.bcClass}`).filter('li:has(ul)').removeClass(options.pathClass);sf.optionsList[s]=sf.options=options;$('li:has(ul)',this)[($.fn.hoverIntent&&!options.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(options.autoArrows)addArrow($(this).children('a:first-child, span.nolink:first-child'));}).not('.'+cssClasses.bcClass).hideSuperfishUl();const $a=$('a, span.nolink',this);$a.each(function(i){const $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});options.onInit.call(this);}).each(function(){const menuClasses=[cssClasses.menuClass];if(sf.options.dropShadows)menuClasses.push(cssClasses.shadowClass);$(this).addClass(menuClasses.join(' '));});};const sf=$.fn.superfish;sf.optionsList=[];sf.options={};sf.cssClasses={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow',hiddenClass:'sf-hidden',hoverClass:'sfHover'};sf.defaults={pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'fast',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){const options=sf.options;const not=options.retainPath===true?options.$path:'';options.retainPath=false;const $ul=$(`li.${sf.cssClasses.hoverClass}`,this).add(this).not(not).removeClass(sf.cssClasses.hoverClass).children('ul').addClass(sf.cssClasses.hiddenClass);options.onHide.call($ul);return this;},showSuperfishUl:function(){this.removeClass(sf.cssClasses.hiddenClass);const options=sf.options;const $ul=this.addClass(sf.cssClasses.hoverClass).children(`ul.${sf.cssClasses.hiddenClass}`).hide().removeClass(sf.cssClasses.hiddenClass);options.onBeforeShow.call($ul);$ul.animate(options.animation,options.speed,function(){options.onShow.call($ul);});return this;}});})(jQuery);; 153/*! 154 * hoverIntent v1.10.1 // 2019.10.05 // jQuery v1.7.0+ 155 * http://briancherne.github.io/jquery-hoverIntent/ 156 * 157 * You may use hoverIntent under the terms of the MIT license. Basically that 158 * means you are free to use hoverIntent as long as this header is left intact. 159 * Copyright 2007-2019 Brian Cherne 160 */ 161!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";function track(ev){cX=ev.pageX,cY=ev.pageY}var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),(typeof cfg.out==="function")||(cfg.out=cfg.over)):cfg=(typeof handlerOut==="function")?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});function handleHover(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));
161var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){!function(ev,$el,s,out){var data=$el.data("hoverIntent");data&&delete data[s.id],out.apply($el[0],[ev])}(ev,$el,state,cfg.out)},cfg.timeout)}}return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});; 162(function($){$.fn.sfsmallscreen=function(options){options=$.extend({mode:'inactive',type:'accordion',breakpoint:768,breakpointUnit:'px',useragent:'',title:'',addSelected:false,menuClasses:false,hyperlinkClasses:false,excludeClass_menu:'',excludeClass_hyperlink:'',includeClass_menu:'',includeClass_hyperlink:'',accordionButton:1,expandText:'Expand',collapseText:'Collapse'},options);function refine(menu){const refined=menu.clone();const rm=refined.find('span.sf-sub-indicator');const rh=refined.find('.sf-smallscreen-remove');const mm=refined.find('ul.sf-multicolumn');for(let a=0;a<rh.length;a++)rh.eq(a).replaceWith(rh.eq(a).html());if(options.accordionButton===2||options.type==='select'){for(let b=0;b<rm.length;b++)rm.eq(b).remove();}if(mm.length>0){mm.removeClass('sf-multicolumn');const ol=refined.find('div.sf-multicolumn-column > ol');for(let o=0;o<ol.length;o++)ol.eq(o).replaceWith('<ul>'+ol.eq(o).html()+'</ul>');const elements=['div.sf-multicolumn-column','.sf-multicolumn-wrapper > ol','li.sf-multicolumn-wrapper'];for(let i=0;i<elements.length;i++){let obj=refined.find(elements[i]);for(let t=0;t<obj.length;t++)obj.eq(t).replaceWith(obj.eq(t).html());}refined.find('.sf-multicolumn-column').removeClass('sf-multicolumn-column');}refined.add(refined.find('*')).css({width:''});return refined;}function toSelect(menu,level){let items='';const childLI=$(menu).children('li');for(let a=0;a<childLI.length;a++){const list=childLI.eq(a);const parent=list.children('a, span');for(let b=0;b<parent.length;b++){const item=parent.eq(b);const path=(item.is('a')&&!!item.attr('href'))?item.attr('href'):'';const itemClone=item.clone();let classes=(options.hyperlinkClasses)?((options.excludeClass_hyperlink&&itemClone.hasClass(options.excludeClass_hyperlink))?itemClone.removeClass(options.excludeClass_hyperlink).attr('class'):itemClone.attr('class')):'';classes=(options.includeClass_hyperlink&&!itemClone.hasClass(options.includeClass_hyperlink))?((options.hyperlinkClasses)?itemClone.addClass(options.includeClass_hyperlink).attr('class'):options.includeClass_hyperlink):classes;if(options.addSelected&&item.hasClass('active'))classes+=' active';classes=classes?' class="'+classes+'"':'';const disable=path===''||path==='#'?' disabled="disabled"':'';const subIndicator=1<level?Array(level).join('-')+' ':'';items+='<option value="'+path+'"'+classes+disable+'>'+subIndicator+item.text().trim()+'</option>';const childUL=list.find('> ul');for(let u=0;u<childUL.length;u++)items+=toSelect(childUL.eq(u),level+1);}}return items;}function convert(menu){const menuID=menu.attr('id');const refinedMenu=refine(menu);if(options.type==='accordion'){const toggleID=menuID+'-toggle';const accordionID=menuID+'-accordion';if($('#'+accordionID).length!==0)return;const styleClass=menu.attr('class').split(' ').filter(function(item){return item.indexOf('sf-style-')>-1?item:'';});const accordion=$(refinedMenu).attr('id',accordionID);accordion.removeClass('sf-horizontal sf-vertical sf-navbar sf-shadow sf-js-enabled');accordion.addClass('sf-accordion sf-hidden');accordion.find('li').each(function(){$(this).removeAttr('style').removeClass('sfHover').attr('id',$(this).attr('id')+'-accordion');});accordion.children('ul').removeAttr('style').not('.sf-hidden').addClass('sf-hidden');accordion.find('ul').each(function(){$(this).removeAttr('style').not('.sf-hidden').addClass('sf-hidden');});const toggle='<div class="sf-accordion-toggle '+styleClass+'"><a href="#" id="'+toggleID+'"><span>'+options.title+'</span></a></div>';if(options.accordionButton===2){accordion.addClass('sf-accordion-with-buttons');const parent=accordion.find('li.menuparent');for(let i=0;i<parent.length;i++)parent.eq(i).prepend('<a href="#" class="sf-accordion-button">'+options.expandText+'</a>');}menu.before(toggle).before(accordion).hide();const $accordionElement=$('#'+accordionID);const buttonElement=(options.accordionButton<2)?'a.menuparent,span.nolink.menuparent':'a.sf-accordion-button';const $button=$accordionElement.find(buttonElement);$('#'+toggleID).on('click',function(e){e.preventDefault();$(this).toggleClass('sf-expanded');if($accordionElement.hasClass('sf-expanded')){$accordionElement.add($accordionElement.find('li.sf-expanded')).removeClass('sf-expanded').end().children('ul').hide().end().hide().addClass('sf-hidden').show();if(options.accordionButton===2)$accordionElement.find('a.sf-accordion-button').text(options.expandText);}else $accordionElement.addClass('sf-expanded').hide().removeClass('sf-hidden').show();});$button.on('click',function(e){if($(this).closest('li').children('ul').length===0)return;e.preventDefault();const $parent=$(this).closest('li');if(options.accordionButton===1&&$parent.children('a.menuparent,span.nolink.menuparent').length>0&&$parent.children('ul').children('li.sf-clone-parent').length===0){let cloneLink=$parent.children('a.menuparent').clone();cloneLink.removeClass('menuparent sf-with-ul').children('.sf-sub-indicator').remove();cloneLink=$('<li class="sf-clone-parent" />').html(cloneLink);$parent.children('ul').addClass('sf-has-clone-parent').prepend(clone
162Link);}if(options.accordionButton===0||options.accordionButton===1)$accordionElement.find('a.is-active:not(.menuparent)').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden');});if(options.accordionButton===2)$accordionElement.find('a.is-active').on('click',function(e){$accordionElement.removeClass('sf-expanded').addClass('sf-hidden');});if($parent.hasClass('sf-expanded')){$parent.children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').show();});if(options.accordionButton===2&&$parent.children('.sf-accordion-button').length>0)$parent.children('.sf-accordion-button').text(options.expandText);}else $parent.children('ul').hide().removeClass('sf-hidden').slideDown('fast').end().addClass('sf-expanded').children('a.sf-accordion-button').text(options.collapseText).end().siblings('li.sf-expanded').children('ul').slideUp('fast',function(){$(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').show();}).parent().children('a.sf-accordion-button').text(options.expandText);});}else{const menuClone=menu.clone();let classes=options.menuClasses?((options.excludeClass_menu&&menuClone.hasClass(options.excludeClass_menu))?menuClone.removeClass(options.excludeClass_menu).attr('class'):menuClone.attr('class')):'';classes=options.includeClass_menu&&!menuClone.hasClass(options.includeClass_menu)?((options.menuClasses)?menuClone.addClass(options.includeClass_menu).attr('class'):options.includeClass_menu):classes;classes=classes?' class="'+classes+'"':'';if($('#'+menuID+'-select').length!==0)return;const newMenu=toSelect(refinedMenu,1);const selectList=$('<select '+classes+' id="'+menuID+'-select"/>').html('<option>'+options.title+'</option>'+newMenu).change(function(){if($('option:selected',this).index())window.location=selectList.val();});if(options.addSelected)selectList.find('.active').attr('selected',!0);menu.before(selectList).hide();}}function turnBack(menu){const id='#'+menu.attr('id');$(id+'-'+options.type).remove();if(options.type==='accordion')$(id+'-toggle').parent('div').remove();$(id).css('display','');}for(let s=0;s<this.length;s++){const menu=$(this).eq(s);const mode=options.mode;if(menu.children('li').length===0){}else if(mode==='always_active')convert(menu);else if(mode==='window_width'){const breakpoint=options.breakpointUnit==='em'?options.breakpoint*parseFloat($('body').css('font-size')):options.breakpoint;const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;let timer;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else{if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);}$(window).resize(function(){clearTimeout(timer);timer=setTimeout(function(){const windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if((typeof Modernizr==='undefined'||typeof Modernizr.mq!=='function')&&windowWidth<breakpoint)convert(menu);else if(typeof Modernizr!=='undefined'&&typeof Modernizr.mq==='function'&&Modernizr.mq('(max-width:'+(breakpoint-1)+'px)'))convert(menu);else turnBack(menu);},50);});}else if(mode==='useragent_custom'){if(options.useragent!==''){const ua=RegExp(options.useragent,'i');if(navigator.userAgent.match(ua))convert(menu);}}else{if(mode==='useragent_predefined'&&navigator.userAgent.match(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i))convert(menu);}}return this;};})(jQuery);; 163(function($){$.fn.supersubs=function(options){const superfish_options=$.extend({},$.fn.supersubs.defaults,options);let size;let o;for(let a=0;a<this.length;a++){let $$=$(this).eq(a);o=$.meta?$.extend({},superfish_options,$$.data()):superfish_options;if($$.hasClass('sf-navbar'))$$=$$.children('li').children('ul');let $ULs=$$.find('ul');if($ULs.length){let fontsize=$('<li id="menu-fontsize">—</li>');size=fontsize.attr('style','padding:0;position:absolute;top:-99999em;width:auto;').appendTo($$)[0].clientWidth;fontsize.remove();for(let b=0;b<$ULs.length;b++){let $ul=$ULs.eq(b);if(o.multicolumn&&$ul.hasClass('sf-multicolumn')&&$ul.find('.sf-multicolumn-column').length>0){let $column=$ul.find('div.sf-multicolumn-column > ol');let mwWidth=0;for(let d=0;d<$column.length;d++){resize($column.eq(d));let colWidth=Math.ceil($column.width());$column.css({width:colWidth}).parents('.sf-multicolumn-column').css({width:colWidth});mwWidth+=colWidth;}$ul.add($ul.find('li.sf-multicolumn-wrapper, li.sf-multicolumn-wrapper > ol')).css({width:mwWidth});}else resize($ul);}}}function resize($ul){const $LIs=$ul.children();const $As=$LIs.children('a');$LIs.css('white-space','nowrap');$ul.add($LIs).add($As).css({float:'none',width:'auto'});let emWidth=$ul.get(0).clientWidth/size;emWidth+=o.extraWidth;
163if(emWidth>o.maxWidth)emWidth=o.maxWidth;else{if(emWidth<o.minWidth)emWidth=o.minWidth;}emWidth+='em';$ul.css({width:emWidth});$LIs.add($As).css({float:'',width:'',whiteSpace:''});for(let c=0;c<$LIs.length;c++){let $childUl=$LIs.eq(c).children('ul');let offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,'100%');}}return this;};$.fn.supersubs.defaults={multicolumn:true,minWidth:12,maxWidth:27,extraWidth:1};})(jQuery);; 164(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.events={attach:function(context,settings){$(once('uneCalendarFilters','.view-id-events.view-display-id-block_2, .view-id-events.view-display-id-block_calendar')).each(function(){const view=this;const $filters=$(this).find('.view-filters');$filters.prepend('<h3 class="events-filter-title open">Filter Events</h3>');const $filtersTitle=$filters.find('.events-filter-title');const $exposedForm=$filters.find('.views-exposed-form');$filtersTitle.on('click',(ev)=>{$filtersTitle.toggleClass('open closed');$exposedForm.toggle(400);});let audience=view.querySelector('[data-drupal-selector="edit-field-audience-target-id"]');if(audience)audience.children[0].label='Audience';let campus=view.querySelector('[data-drupal-selector="edit-field-campus-target-id"]');if(campus)campus.children[0].label='Campus';let eventTopic=view.querySelector('[data-drupal-selector="edit-field-event-categories-target-id"]');if(eventTopic)eventTopic.children[0].label='Event Topic';let eventType=view.querySelector('[data-drupal-selector="edit-field-event-type-target-id"]');if(eventType)eventType.children[0].label='Event Type';let form=view.querySelector('#views-exposed-form-events-block-2');if(form!==null)form.setAttribute('action',window.location);});once('uneDateRangePicker','input[data-drupal-selector="edit-daterangepicker"]',context).forEach((el)=>{const $dateRangePicker=$(el);$('#views-exposed-form-events-block-2 .form-item-field-start-date-value').hide();$('#views-exposed-form-events-block-2 .form-item-field-start-date-value-1').hide();$('#views-exposed-form-events-block-calendar .form-item-field-start-date-value').hide();$('#views-exposed-form-events-block-calendar .form-item-field-start-date-value-1').hide();$dateRangePicker.show().daterangepicker({opens:'left',autoUpdateInput:false,minDate:new Date(),locale:{cancelLabel:'Clear'}},function(start,end,label){$('input[data-drupal-selector="edit-field-start-date-value"]').val(start.format('YYYY-MM-DD'));$('input[data-drupal-selector="edit-field-start-date-value-1"]').val(end.add(1,'day').format('YYYY-MM-DD'));});$dateRangePicker.on('apply.daterangepicker',function(ev,picker){$(this).val(picker.startDate.format('MM/DD/YYYY')+' - '+picker.endDate.format('MM/DD/YYYY'));});$dateRangePicker.on('cancel.daterangepicker',function(ev,picker){$(this).val('');});});}};})(jQuery,Drupal,drupalSettings);; 165(function(Drupal,drupalSettings){Drupal.behaviors.activeLinks={attach(context){const path=drupalSettings.path;const queryString=JSON.stringify(path.currentQuery);const querySelector=queryString?`[data-drupal-link-query="${CSS.escape(queryString)}"]`:':not([data-drupal-link-query])';const originalSelectors=[`[data-drupal-link-system-path="${CSS.escape(path.currentPath)}"]`];let selectors;if(path.isFront)originalSelectors.push('[data-drupal-link-system-path="<front>"]');selectors=[].concat(originalSelectors.map((selector)=>`${selector}:not([data-drupal-language]):not([hreflang])`),originalSelectors.map((selector)=>`li${selector}[data-drupal-language="${path.currentLanguage}"]`),originalSelectors.map((selector)=>`a${selector}[hreflang="${path.currentLanguage}"]`));selectors=selectors.map((current)=>current+querySelector);context.querySelectorAll(selectors.join(',')).forEach((activeLink)=>{activeLink.classList.add('is-active');activeLink.setAttribute('aria-current','page');});},detach(context,settings,trigger){if(trigger==='unload')context.querySelectorAll('[data-drupal-link-system-path].is-active').forEach((activeLink)=>{activeLink.classList.remove('is-active');activeLink.removeAttribute('aria-current');});}};})(Drupal,drupalSettings);; 166const debounce=(callback,wait)=>{let timeoutId=null;return (...args)=>{window.clearTimeout(timeoutId);timeoutId=window.setTimeout(()=>{callback.apply(null,args);},wait);};};; 167;(function($){$.fn.cardtable=function(options){var $tables=this,defaults={headIndex:0},settings=$.extend({},defaults,options),headIndex;if(options&&options.headIndex)headIndex=options.headIndex;else headIndex=0;return $tables.each(function(){var $table=$(this);if($table.hasClass('stacktable'))return;var table_css=$(this).prop('class');var $stacktable=$('<div></div>');if(typeof settings.myClass!=='undefined')$stacktable.addClass(settings.myClass);var markup='';var $caption,$topRow,headMarkup,bodyMarkup,tr_class;$table.addClass('stacktable large-only');$caption=$table.find(">caption").clone();$topRow=$table.find('>thead>tr,>tbody>tr,>tfoot>tr,>tr').eq(0);$table.siblings().filter('.small-only').remove();$table.find('>tbody>tr').each(function(){headMarkup='';bodyMarkup='';tr_class=$(this).prop('class');$(this).find('>td,>th').each(function(cellIndex){if($(this).html()!==''){bodyMarkup+='<tr class="'+tr_class+'">';
167if($topRow.find('>td,>th').eq(cellIndex).html())bodyMarkup+='<td class="st-key">'+$topRow.find('>td,>th').eq(cellIndex).html()+'</td>';else bodyMarkup+='<td class="st-key"></td>';bodyMarkup+='<td class="st-val '+$(this).prop('class')+'">'+$(this).html()+'</td>';bodyMarkup+='</tr>';}});markup+='<table class=" '+table_css+' stacktable small-only"><tbody>'+headMarkup+bodyMarkup+'</tbody></table>';});$table.find('>tfoot>tr>td').each(function(rowIndex,value){if($.trim($(value).text())!=='')markup+='<table class="'+table_css+' stacktable small-only"><tbody><tr><td>'+$(value).html()+'</td></tr></tbody></table>';});$stacktable.prepend($caption);$stacktable.append($(markup));$table.before($stacktable);});};$.fn.stacktable=function(options){var $tables=this,defaults={headIndex:0,displayHeader:true},settings=$.extend({},defaults,options),headIndex;if(options&&options.headIndex)headIndex=options.headIndex;else headIndex=0;return $tables.each(function(){var table_css=$(this).prop('class');var $stacktable=$('<table class="'+table_css+' stacktable small-only"><tbody></tbody></table>');if(typeof settings.myClass!=='undefined')$stacktable.addClass(settings.myClass);var markup='';var $table,$caption,$topRow,headMarkup,bodyMarkup,tr_class,displayHeader;$table=$(this);$table.addClass('stacktable large-only');$caption=$table.find(">caption").clone();$topRow=$table.find('>thead>tr,>tbody>tr,>tfoot>tr').eq(0);displayHeader=$table.data('display-header')===undefined?settings.displayHeader:$table.data('display-header');$table.find('>tbody>tr, >thead>tr').each(function(rowIndex){headMarkup='';bodyMarkup='';tr_class=$(this).prop('class');if(rowIndex===0){if(displayHeader)markup+='<tr class=" '+tr_class+' "><th class="st-head-row st-head-row-main" colspan="2">'+$(this).find('>th,>td').eq(headIndex).html()+'</th></tr>';}else{$(this).find('>td,>th').each(function(cellIndex){if(cellIndex===headIndex)headMarkup='<tr class="'+tr_class+'"><th class="st-head-row" colspan="2">'+$(this).html()+'</th></tr>';else{if($(this).html()!==''){bodyMarkup+='<tr class="'+tr_class+'">';if($topRow.find('>td,>th').eq(cellIndex).html())bodyMarkup+='<td class="st-key">'+$topRow.find('>td,>th').eq(cellIndex).html()+'</td>';else bodyMarkup+='<td class="st-key"></td>';bodyMarkup+='<td class="st-val '+$(this).prop('class')+'">'+$(this).html()+'</td>';bodyMarkup+='</tr>';}}});markup+=headMarkup+bodyMarkup;}});$stacktable.prepend($caption);$stacktable.append($(markup));$table.before($stacktable);});};$.fn.stackcolumns=function(options){var $tables=this,defaults={},settings=$.extend({},defaults,options);return $tables.each(function(){var $table=$(this);var $caption=$table.find(">caption").clone();var num_cols=$table.find('>thead>tr,>tbody>tr,>tfoot>tr').eq(0).find('>td,>th').length;if(num_cols<3)return;var $stackcolumns=$('<table class="stacktable small-only"></table>');if(typeof settings.myClass!=='undefined')$stackcolumns.addClass(settings.myClass);$table.addClass('stacktable large-only');var tb=$('<tbody></tbody>');var col_i=1;while(col_i<num_cols){$table.find('>thead>tr,>tbody>tr,>tfoot>tr').each(function(index){var tem=$('<tr></tr>');if(index===0)tem.addClass("st-head-row st-head-row-main");var first=$(this).find('>td,>th').eq(0).clone().addClass("st-key");var target=col_i;if($(this).find("*[colspan]").length){var i=0;$(this).find('>td,>th').each(function(){var cs=$(this).attr("colspan");if(cs){cs=parseInt(cs,10);target-=cs-1;if((i+cs)>(col_i))target+=i+cs-col_i-1;i+=cs;}else i++;if(i>col_i)return false;});}var second=$(this).find('>td,>th').eq(target).clone().addClass("st-val").removeAttr("colspan");tem.append(first,second);tb.append(tem);});++col_i;}$stackcolumns.append($(tb));$stackcolumns.prepend($caption);$table.before($stackcolumns);});};}(jQuery));; 168(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.uneMobileMenu={attach:function(context,settings){once('uneMobileMenu','#block-mobile-menu',context).forEach((element)=>{element.querySelector('.menu-toggle-root').addEventListener('click',function(event){$(element.querySelector('.menu-wrapper')).fadeToggle('fast');element.classList.toggle('open');});element.querySelectorAll('.menu-toggle').forEach((toggle)=>{toggle.addEventListener('click',function(event){var menuItem=event.target.closest('.menu-item');$(menuItem.querySelector(':scope > .menu')).slideToggle('fast');menuItem.classList.toggle('open');});});});}};Drupal.behaviors.uneMobileHeader={attach:function(context,settings){once('uneMobileHeader','body',context).forEach(()=>{var moveMobileBlocks=function(isMobile){var mobileMenuWrapper=document.querySelector('#block-mobile-menu .menu-wrapper');if(isMobile){var regionInner=document.querySelector('.region-utility .region-inner');if(regionInner)mobileMenuWrapper.append(regionInner);var blockSearch=document.querySelector('.region-banner .block-search');if(blockSearch){mobileMenuWrapper.prepend(blockSearch);blockSearch.style.display='block';}}else{var wrapperRegionInner=mobileMenuWrapper.querySelector('.region-inner');if(wrapperRegionInner)document.querySelector('.region-utility').append(wrapperRegionInner);var wrapperBlockSearch=mobileMenuWrapper.querySelector('.block-search');if(wrapperBlockSearch){document.querySelector('.region-banner').prepend(wrapperBlockSearch);wrapperBlockSearch.style.display='none';}}};var mobileQuery=window.matchMedia('(max-width: 1149px)');mobileQuery.addEventListener('change',function(event){moveMobileBlocks(event.matches);});moveMobileBlocks(mobileQuery.matches);});}};})(jQuery,Drupal);; 169(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.uneHomepageModal={attach:function(context,settings){once('uneHomepageModal','#block-homepage-banner .config_pages[data-modal-media="true"]',context).forEach((element)=>{$('.field--name-field-text a',element).attr('href',$('a.banner-link',element).attr('href'));$('a.banner-link, .field--name-field-text a',element).click(function(ev){ev.preventDefault();$.get(this.href,{},function(data){var $media=$(data).find('.media--view-mode-homepage-modal');var options={html:$media,open:true,fixed:true,maxWidth:'85%'};
169if($media.hasClass('media--type-remote-video')){options.width='85%';options.maxWidth=1200;}$.colorbox(options);});});});}};})(jQuery,Drupal);; 170(function(Drupal,once){'use strict';Drupal.behaviors.uneAnchorFix={attach(context){once('une-anchor-fix','#block-une-content a[id]',context).forEach((anchor)=>{if(anchor.textContent.trim().length!==0)return;let target=anchor;while(!target.previousElementSibling&&target.parentElement)target=target.parentElement;if(!isHeading(target)&&isHeading(target.previousElementSibling))target.previousElementSibling.prepend(anchor);});}};function isHeading(element){return !!element.nodeName.match(/^H[1-6]$/);}})(Drupal,once);; 171(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.une={attach:function(context,settings){if(context===document){function updateScrollbarWidth(){var scrollbarWidth=window.innerWidth-document.body.clientWidth;document.querySelector(':root').style.setProperty('--scrollbar-width',scrollbarWidth+'px');}updateScrollbarWidth();window.addEventListener('resize',function(){updateScrollbarWidth();});if(typeof $.modal!=='undefined')$.modal.defaults.fadeDuration=200;}const editActions=document.querySelector('.layout-builder-form #edit-actions');if(editActions){let adjustment=78;const fixmeTop=editActions.getBoundingClientRect().top+window.scrollY-adjustment;window.addEventListener('scroll',function(){const currentScroll=window.scrollY;if(currentScroll>=fixmeTop){editActions.style.position='fixed';editActions.style.width=document.querySelector('#layout-builder').offsetWidth+'px';editActions.style.top=adjustment+'px';editActions.style.marginTop='0';}else editActions.style.position='static';});}const video=document.querySelector('#video');const videoAlt=document.querySelector('#video-alt');if(video&&videoAlt){video.style.display='none';videoAlt.style.display='block';if(window.innerWidth>1024)window.onload=(event)=>{video.play();video.style.display='block';videoAlt.style.display='none';};}once('bxSlider','.field-gallery-media',context).forEach((element)=>{var slider=$(element).bxSlider({keyboardEnabled:true});slider.closest('.bx-wrapper').keydown(function(e){if(e.keyCode===39){slider.goToNextSlide();return false;}else{if(e.keyCode===37){slider.goToPrevSlide();return false;}}});});$(once('content-stack','#block-une-content table',context)).not('.js-drupal-fullcalendar table').cardtable();if(window.location.pathname==='/')document.querySelectorAll('.page-node-46125 h1, .page-node-46125 h2, '+'.page-node-46108 h2, .page-node-48336 h1, .page-node-48336 h2, '+'.page-node-48337 h1, .page-node-48337 h2, .page-node-48359 h1, '+'.page-node-48359 h2, .page-node-type-program h1, '+'.page-node-type-program h2').forEach(function(el){let originalText=el.textContent.trim();const text=originalText.split(' ');if(text.length===1)return;const first=text.shift();el.innerHTML=text.length>0?first+" <span class='highlight'>"+text.join(' ')+'</span> ':first;});once('uneSiteSearch','#search-toggle a',context).forEach(function(link){link.addEventListener('click',function(e){e.preventDefault();$('#block-searchform').slideToggle(350);document.querySelector('#search-toggle').classList.toggle('expanded');document.querySelector('#search-block-form input.form-search').focus();});});if($.fn.youtube_background&&!$('body').hasClass('yt-processed')){$('[data-youtube]',context).youtube_background();$('body').addClass('yt-processed');}once('scholarships-table','.view-id-student_financial_aid_scholarships.view-display-id-page_1',context).forEach((element)=>{element.querySelectorAll('.description-wrapper').forEach(function(wrapper){if(wrapper.clientHeight!==wrapper.scrollHeight){let readMoreLink=document.createElement('div');readMoreLink.className='read-more';readMoreLink.innerHTML='<a href="#">Read more</a>';wrapper.insertAdjacentElement('afterend',readMoreLink);readMoreLink.querySelector('a').addEventListener('click',function(ev){ev.preventDefault();let td=this.closest('td.views-field-body');this.textContent=td.classList.contains('description-full')?'Read more':'Read less';td.classList.toggle('description-full');});}});});once('mainNavKeyboard','#superfish-main').forEach((element)=>{element.querySelectorAll('a').forEach((link)=>{link.addEventListener('keydown',function(event){if(link.classList.contains('sf-depth-1'))if(event.key==='ArrowLeft')link.parentElement.previousElementSibling?.querySelector(':scope > a')?.focus();else if(event.key==='ArrowRight')link.parentElement.nextElementSibling?.querySelector(':scope > a')?.focus();else{if(event.key==='ArrowDown'){link.nextElementSibling?.querySelector('a')?.focus();event.preventDefault();}}if(link.classList.contains('sf-depth-2'))if(event.key==='ArrowLeft')link.parentElement.parentElement.previousElementSibling?.querySelector('a')?.focus();else if(event.key==='ArrowRight')link.parentElement.parentElement.nextElementSibling?.querySelector('a')?.focus();else if(event.key==='ArrowUp'){link.closest('li.sf-depth-1')?.querySelector(':scope > a')?.focus();event.preventDefault();}else{if(event.key==='ArrowDown'){link.nextElementSibling?.querySelector('a')?.focus();event.preventDefault();}}if(link.classList.contains('sf-depth-3'))if(event.key==='ArrowLeft'){const parentLi=link.parentElement;const index=Array.prototype.indexOf.call(parentLi.parentElement.children,parentLi);const targetLi=link.closest('li.sf-depth-2')?.previousElementSibling;const links=targetLi?Array.from(targetLi.querySelectorAll('a.sf-depth-3')):[];if(links.length>index)links[index].focus();else{if(links.length)links[links.length-1].focus();}}else if(event.key==='ArrowRight'){const parentLi=link.parentElement;const index=Array.prototype.indexOf.call(parentLi.parentElement.children,parentLi);const targetLi=link.closest('li.sf-depth-2')?.nextElementSibling;const links=targetLi?Array.from(targetLi.querySelectorAll('a.sf-depth-3')):[];if(links.length>index)links[index].focus();else{if(links.length)links[links.length-1].focus();}}else if(event.key==='ArrowUp'){const prevLi=link.parentElement.previousElementSibling;if(prevLi)prevLi.querySelector(':scope > a')?.focus();else link.closest('li.sf-depth-2')?.querySelector('a')?.focus();event.preventDefault();}else{if(event.key==='ArrowDown'){link.parentElement.nextElementSibling?.querySelector(':scope > a')?.focus();event.preventDefault();}}if(event.key==='Escape'){const firstLink=document.querySelector('#superfish-main a');if(firstLink){firstLink.focus();firstLink.blur();}}
171});});});once('social-share-copy','.social-share-btns .copy-link').forEach((copyLink)=>{copyLink.addEventListener('click',(event)=>{event.preventDefault();event.stopPropagation();const url=settings.current_url;if(url)navigator.clipboard.writeText(url).then(()=>{const copyMsg=document.createElement('span');copyMsg.classList.add('social-share-copy-msg');copyMsg.textContent='Link copied!';event.target.insertAdjacentElement('afterend',copyMsg);window.setTimeout(()=>{copyMsg.remove();},5000);});});});},detach:function(context,settings){}};Drupal.behaviors.uneVideoGallery={attach:function(context,settings){once('une-video-gallery','.une-video-gallery',context).forEach((element)=>{$(element).find('.field__items').bxSlider({keyboardEnabled:true});});}};Drupal.behaviors.uneIconsWithLinks={attach:function(context,settings){once('une-icons-with-links','.block-type--icons-with-links',context).forEach((block)=>{block.querySelectorAll('.field__items > .field__item > a.text-link').forEach((link)=>{const content=link.textContent.trim();const lastWord=content.split(' ').toReversed()[0];link.innerHTML=link.innerHTML.trim().replace(lastWord,'<span class="last">'+lastWord+'</span>');});});}};Drupal.behaviors.uneDisclosurePattern={attach:function(context,settings){once('une-disclosure-pattern','[data-pattern="disclosure"]',context).forEach((element)=>{const targetId=element.getAttribute('aria-controls');const targetElement=document.getElementById(targetId);if(!targetElement)return;const show=()=>{$(targetElement).show('fast');element.setAttribute('aria-expanded','true');};const hide=()=>{$(targetElement).hide('fast');element.setAttribute('aria-expanded','false');};if(element.getAttribute('aria-expanded')==='true')show();else hide();element.addEventListener('click',(event)=>{if(element.getAttribute('aria-expanded')==='true')hide();else show();});});}};Drupal.behaviors.uneAutoSubmitFilters={attach:function(context,settings){const autoSubmitForms=['#views-exposed-form-events-custom-grad-admissions'];once('une-auto-submit-filters',autoSubmitForms.join(', '),context).forEach((form)=>{const submitButton=form.querySelector('.form-actions .form-submit');const fieldTypes=['select-one','select-multiple','text','textarea','search','tel','url','email','date','number','checkbox','radio'];Array.from(form.elements).forEach((element)=>{if(fieldTypes.includes(element.type))element.addEventListener('change',(event)=>{submitButton.click();});});});}};Drupal.behaviors.uneDecisionTreeForm={attach:function(context,settings){const form=context instanceof HTMLElement&&context.matches('form.decision-tree-form')?context:context.querySelector('form.decision-tree-form');once('une-decision-tree-form',form).forEach((el)=>{const nextButton=el.querySelector('.webform-button--next');const radios=el.querySelectorAll('.webform-options-display-buttons .form-radio');radios.forEach((radio)=>{radio.addEventListener('change',(ev)=>{nextButton.click();});});});}};})(jQuery,Drupal,drupalSettings);; 172(function(Drupal,once){'use strict';Drupal.behaviors.uneGroupMenu={attach:function(context,settings){once('une-group-menu','.block-une-groups-menu-block',context).forEach((block)=>{block.querySelector('.menu-handler').addEventListener('click',(ev)=>{const button=ev.currentTarget;if(button)button.parentElement.classList.toggle('menu-open');});const openSubmenu=function(ev){const button=ev.currentTarget;if(button){button.parentElement.parentElement.classList.toggle('menu-open');button.textContent=(button.textContent==='+')?'â':'+';}};block.querySelectorAll('.menu-toggle').forEach((el)=>{el.addEventListener('click',openSubmenu);});const activeLink=block.querySelector('a.is-active');if(activeLink){let parent=activeLink.parentElement;while(parent!==block){if(parent.classList.contains('menu-item')){parent.classList.add('menu-open');const toggleButton=parent.querySelector('.menu-toggle');
172if(toggleButton)toggleButton.textContent='â';}parent=parent.parentElement;}}const getElementOffset=(el)=>{return el.offsetTop+(el.offsetParent?getElementOffset(el.offsetParent):0);};let offsetTop=getElementOffset(block);if(Drupal.displace){Drupal.displace();const displaceTop=window.getComputedStyle(document.documentElement).getPropertyValue('--drupal-displace-offset-top');if(displaceTop)offsetTop-=parseInt(displaceTop);}window.addEventListener('scroll',(ev)=>{block.classList.toggle('sticky',window.scrollY>(offsetTop-24));});});}};;})(Drupal,once);; 173(function(Drupal){'use strict';Drupal.behaviors.uneTravelCourses={attach:function(context,settings){const view=context instanceof Element&&context.classList.contains('view-id-travel_courses')&&context.classList.contains('view-display-id-block_with_filters')?context:context.querySelector('.view-id-travel_courses.view-display-id-block_with_filters');once('une-travel-courses',view).forEach((view)=>{const filtersForm=view.querySelector('.views-exposed-form');const termSelect=filtersForm['term[]'];const categorySelect=filtersForm['student_category'];const locationSelect=filtersForm['location'];termSelect.chosen({placeholder_text_multiple:'Term',width:'100%'});const resetButton=filtersForm.querySelector('input[id^="edit-reset"]');if(resetButton)resetButton.addEventListener('click',(event)=>{event.preventDefault();termSelect.selectedIndex=-1;categorySelect.value='All';locationSelect.value='';filtersForm.querySelector('input[id^="edit-submit-travel-courses"]').click();});});}};})(Drupal);; 174(function($,Drupal){'use strict';Drupal.behaviors.uneTestimonialDisclosure={attach:function(context,settings){once('une-testimonial-disclosure','.view-id-testimonial.view-display-id-embed_specific, .view-id-testimonial.view-display-id-embed_random',context).forEach((element)=>{const $block=$(element).closest('.block');const $expandedElements=$block.find('.testimonial-title, .testimonial-programs, .testimonial-body');const $teaserElements=$block.find('.testimonial-quote, .testimonial-programs-bottom');const $togglerLink=$block.find('.testimonial-toggler a');let label=$block.attr('data-testimonial-label');let labelMore='',labelLess='';if(label){if(label.includes('[title]'))label=label.replaceAll('[title]',$togglerLink.text());if(label.includes('/'))[labelMore,labelLess]=label.split('/');else labelMore=labelLess=label;$block.removeAttr('data-testimonial-label');}if(labelMore)$togglerLink.text(labelMore);$togglerLink.click((ev)=>{ev.preventDefault();const isExpanded=$block.hasClass('expanded');if(isExpanded){$block.get(0).scrollIntoView();$expandedElements.slideUp();$teaserElements.slideDown();$block.removeClass('expanded');if(labelMore)$togglerLink.text(labelMore);}else{$expandedElements.slideDown();$teaserElements.slideUp();$block.addClass('expanded');if(labelLess)$togglerLink.text(labelLess);}});});}};Drupal.behaviors.uneTestimonialPlaceholder={attach:function(context,settings){once('une-testimonial-placeholder','.block-type--testimonial-random:not(.layout-builder-block)',context).forEach((element)=>{const id=element.id;const args=element.getAttribute('data-testimonial-args');const ajax=Drupal.ajax({url:Drupal.url('une/testimonial-random?id='+encodeURIComponent(id)+'&args='+encodeURIComponent(args))});ajax.execute();});}};}(jQuery,Drupal));; 175(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.uneTruncatedText={attach:function(context,settings){once('uneTruncatedText','.block-type--truncated-text',context).forEach((element)=>{const classExpanded='truncated-text-expanded';const $block=$(element);const $button=$block.find('.expand-collapse__button');const $body=$block.find('.field--name-field-body');$button.on('click',function(){if(!$block.hasClass(classExpanded))$body.slideDown(400,()=>{$button.text($button.attr('data-label-less'));$block.addClass(classExpanded);});else{$block.removeClass(classExpanded);$body.slideUp(400,()=>{$button.text($button.attr('data-label-more'));});}});});}};})(jQuery,Drupal,drupalSettings);; 176(function($,Drupal,drupalSettings,once){'use strict';Drupal.behaviors.unePrograms={attach:function(context,settings){const views=context instanceof Element&&context.matches('.view-id-programs_cards')?context:context.querySelectorAll('.view-id-programs_cards');
176once('une-programs',views).forEach((view)=>{if(view.matches('.view-display-id-preview'))this.setupProgramsPreview(view);else this.setupProgramsRegular(view);});},setupProgramsRegular:function(view){const keywordsFilter=view.querySelector('.filter-keywords input');const typeFilter=view.querySelector('.filter-type select');const locationFilter=view.querySelector('.filter-location select');const collegeFilter=view.querySelector('.filter-college select');const filtersContent=view.querySelector('.custom-filters .filters-content');const filtersTitle=view.querySelector('.custom-filters .filters-title');filtersTitle.addEventListener('click',(event)=>{$(filtersContent).toggle(400);filtersTitle.classList.toggle('closed');});const keywordsWrapper=view.querySelector('.filter-keywords');let keywordsLastValue='';const keywordsHandler=function(ev){if(keywordsFilter.value!==keywordsLastValue){updateResults(ev);keywordsLastValue=keywordsFilter.value;keywordsWrapper.classList.toggle('non-empty',keywordsFilter.value.length>0);}};keywordsFilter.addEventListener('keyup',debounce(keywordsHandler,500));keywordsFilter.addEventListener('change',keywordsHandler);const keywordsClear=view.querySelector('.filter-keywords .search-clear');keywordsClear.addEventListener('click',(ev)=>{if(keywordsWrapper.classList.contains('non-empty')){keywordsWrapper.classList.remove('non-empty');keywordsFilter.value='';keywordsFilter.focus();updateResults(ev);}});const typeLabel=typeFilter.parentElement.querySelector('label');typeFilter.chosen({placeholder_text_multiple:typeLabel.textContent??'',width:'100%'});typeFilter.addEventListener('change',updateResults);const collegeLabel=collegeFilter.parentElement.querySelector('label');collegeFilter.chosen({placeholder_text_multiple:collegeLabel.textContent??'',width:'100%'});collegeFilter.addEventListener('change',updateResults);locationFilter.addEventListener('change',updateResults);const rows=view.querySelectorAll('.view-content > .views-row');const emptyText=view.querySelector('.view-empty');function updateResults(ev){const keywords=keywordsFilter.value.toLocaleLowerCase();const types=Array.from(typeFilter.selectedOptions,(opt)=>opt.value);const location=locationFilter.value;const college=Array.from(collegeFilter.selectedOptions,(opt)=>opt.value);for(const row of rows){const item=row.children[0];let hide=false;if(keywords.length>0){const itemTitle=item.querySelector('.program-title a').textContent.trim();const itemKeywords=item.getAttribute('data-keywords')??'';const itemTitleAndKeywords=(itemTitle+','+itemKeywords).toLocaleLowerCase();if(!itemTitleAndKeywords.includes(keywords))hide=true;}if(types.length>0){const itemTypes=item.getAttribute('data-types')?.split(',')??[];if(itemTypes.filter((x)=>types.includes(x)).length===0)hide=true;}if(college.length>0){const itemCollege=item.getAttribute('data-college')?.split(',')??[];if(itemCollege.filter((x)=>college.includes(x)).length===0)hide=true;}if(location!=='all')if(item.getAttribute('data-location')?.indexOf(location)===-1)hide=true;row.classList.toggle('hidden',hide);}const itemCount=Array.from(rows).filter((r)=>!r.classList.contains('hidden')).length;emptyText.classList.toggle('hidden',itemCount>0);}updateResults();},setupProgramsPreview:function(view){const filters=view.querySelector('.view-filters');const submitButton=filters.querySelector('.form-actions .js-form-submit');const keywordsFilter=filters.querySelector('input[name="name"]');$.ajaxSetup({beforeSend:function(e,data){if(data.url.includes('/api/program-keywords?q='))data.url=data.url.replace('/api/program-keywords?q=','/api/program-keywords?name=');}});let lastKeyword='';$(keywordsFilter).on('autocompleteselect',(event,ui)=>{lastKeyword=ui.item.value;window.setTimeout(()=>{submitButton.click();},200);});keywordsFilter.addEventListener('change',(event)=>{if(keywordsFilter.value===''||lastKeyword===''){keywordsFilter.value='';submitButton.click();}});const searchClear=document.createElement('button');searchClear.className='search-clear';searchClear.innerHTML='Search';keywordsFilter.parentElement.append(searchClear);searchClear.addEventListener('click',(event)=>{event.preventDefault();if(keywordsFilter.value!==''){keywordsFilter.value='';submitButton.click();}});}};})(jQuery,Drupal,drupalSettings,once);; 177(function(Drupal){Drupal.behaviors.une_alerts={attach:function(context,settings){once('une-alerts','body',context).forEach((el)=>{UNEAlerts();});}};let UNEAlerts=()=>{const refreshDuration=30000;const cookieExpireDays=1;const regEmergencyPage=new RegExp(/^\/emergency(\/?)$/);const regAdminPage=new RegExp(/^\/admin(\/?)/);const dt=new Date();let timeoutIteration;const fetchAlerts=()=>{clearTimeout(timeoutIteration);window.fetch('/emergency/feed/feed.json').then((response)=>
177response.json()).then(processAll).catch(fail);};let processAlert=(theObject,cookieTimestamps)=>{const delta={newItems:false,removedItems:false};if(typeof theObject!=='undefined')if(theObject.items.length>0){let feedTimestamps=[];for(let ii=0;ii<theObject.items.length;ii++)feedTimestamps.push(theObject.items[ii].timestamp);const timestampsUniqueToFeed=new Set(feedTimestamps.filter((a)=>!cookieTimestamps.has(a)));feedTimestamps=new Set(feedTimestamps);const timestampsUniqueToCookies=new Set(Array.from(cookieTimestamps).filter((a)=>!feedTimestamps.has(a)));cookieTimestamps=Array.from(cookieTimestamps);delta.newItems=timestampsUniqueToFeed.size>0;delta.removedItems=timestampsUniqueToCookies.size>0;}else{if(cookieTimestamps.size>0)delta.removedItems=true;}return delta;};const processAll=(jo)=>{if(typeof jo.tier==='undefined')return;const storedEvents=getAllCookies();const responseHasEvents=jo.tier.items.length>0;const storedAlertsEvents=new Set();for(let key in storedEvents['tier'])storedAlertsEvents.add(parseInt(key));const responseChanges=processAlert(jo.tier,storedAlertsEvents);if(responseChanges.removedItems){for(let key in storedEvents['tier'])removeCookie(storedEvents['tier'][key]);storedEvents['tier']={};}for(let ii=0;ii<jo.tier.items.length;ii++)setCookie('UNEAlerts.'+ii.toString(),jo.tier.items[ii].timestamp);if(regEmergencyPage.test(location.pathname)){const content=document.querySelector('.region-content');let esDisplayContainer=content.querySelector('#esdisplay-container');if(!esDisplayContainer){esDisplayContainer=document.createElement('div');esDisplayContainer.textContent='<!-- -->';esDisplayContainer.id='esdisplay-container';content.prepend(esDisplayContainer);}if(responseChanges.removedItems)esDisplayContainer.innerHTML='';const currentAlert='current-alert';if(jo.tier.items.length>0){esDisplayContainer.classList.add(currentAlert);esDisplayContainer.innerHTML=generateItemsHtml(jo.tier.items,'1');}else{if(esDisplayContainer&&esDisplayContainer.classList.contains(currentAlert)){esDisplayContainer.classList.remove(currentAlert);esDisplayContainer.innerHTML=generateAllClearHtml();}}timeoutIteration=setTimeout(function(){fetchAlerts();},refreshDuration);}if(!regAdminPage.test(location.pathname))if(!regEmergencyPage.test(location.pathname)&&responseChanges.newItems)window.location='/emergency#block-une-content';else{let emergencyHeaderContainer=document.getElementById('emergency-header-container');if(responseChanges.removedItems){emergencyHeaderContainer?.remove();emergencyHeaderContainer=document.getElementById('emergency-header-container');}if(!emergencyHeaderContainer&&responseHasEvents){const wrapper=document.createElement('div');wrapper.className='alert-wrapper revealed';const revealer=document.createElement('a');revealer.className='revealer';revealer.href='#';revealer.addEventListener('click',function(ev){ev.preventDefault();this.parentElement.classList.toggle('revealed');});wrapper.append(revealer);const headerDiv=document.createElement('div');headerDiv.id='emergency-header-container';headerDiv.innerHTML=generateItemsBannerHtml(jo.tier.items[0]);headerDiv.addEventListener('click',function(){window.location='/emergency';});wrapper.append(headerDiv);document.querySelector('[data-une-alerts-wrapper="true"]').prepend(wrapper);emergencyHeaderContainer=document.getElementById('emergency-header-container');}if(responseHasEvents)timeoutIteration=setTimeout(function(){fetchAlerts();},refreshDuration);else{if(emergencyHeaderContainer)emergencyHeaderContainer.remove();}}};const generateItemsBannerHtml=(item)=>{const emergencyTitle=item.title;const emDiv=document.createElement('div');emDiv.id='emergency-display';const link=document.createElement('a');link.href='/emergency';link.innerHTML=emergencyTitle;emDiv.append(link);return emDiv.innerHTML;};const generateItemsHtml=(items,alert)=>{const htmlContainer=document.createElement('div');const cDateString=getWeekText(dt.getDay())+', '+getMonthText(dt.getMonth())+' '+dt.getDate()+', '+dt.getFullYear();const alertHeading=document.createElement('h3');alertHeading.textContent='Alert!';htmlContainer.append(alertHeading);const currDateDiv=document.createElement('div');currDateDiv.id='esdisplay-currdate';currDateDiv.textContent='Today is '+cDateString;htmlContainer.append(currDateDiv);const alertContainer=document.createElement('div');alertContainer.id='es-t'+alert+'-events';for(let ii=0;ii<items.length;ii++){const eventContainer=document.createElement('div');eventContainer.classList.add('es-t'+alert+'-event');if(ii===0)eventContainer.classList.add('first-event');const eventLeftContainer=document.createElement('div');eventLeftContainer.classList.add('es-t'+alert+'-event-left');if(items[ii].propperDate!==cDateString){const dowDiv=document.createElement('div');dowDiv.classList.add('event-dow','emergency-date');dowDiv.textContent='Posted: '+items[ii].dow;eventLeftContainer.append(dowDiv);}const eventDateDiv=document.createElement('div');eventDateDiv.classList.add('event-date','emergency-date');eventDateDiv.textContent=items[ii].propperDate;eventLeftContainer.append(eventDateDiv);const eventTimeDiv=document.createElement('div');eventTimeDiv.classList.add('event-time','emergency-date');eventTimeDiv.textContent=items[ii].propperTime+' '+items[ii].timezone;eventLeftContainer.append(eventTimeDiv);const eventRightContainer=document.createElement('div');eventRightContainer.classList.add('es-t'+alert+'-event-right');const eventTitleDiv=document.createElement('div');eventTitleDiv.classList.add('event-title');eventTitleDiv.textContent=items[ii].title;eventRightContainer.append(eventTitleDiv);const eventDescriptionDiv=document.createElement('div');eventDescriptionDiv.classList.add('event-description');eventDescriptionDiv.textContent=items[ii].description;eventRightContainer.append(eventDescriptionDiv);eventContainer.append(eventLeftContainer);eventContainer.append(eventRightContainer);alertContainer.append(eventContainer);}htmlContainer.append(alertContainer);return htmlContainer.innerHTML;};const generateAllClearHtml=()=>{const htmlContainer=document.createElement('div');const statusHeading=document.createElement('h2');statusHeading.textContent='Current Status';htmlContainer.append(statusHeading);const normalConditionsP=document.createElement('p');normalConditionsP.textContent='There is no emergency at the University of New England. The campus is operating under normal conditions.';htmlContainer.append(normalConditionsP);const afterEventP=document.createElement('p');afterEventP.textContent='In the event of an emergency, this site will be updated with information about the nature of the incident, how to remain safe and the point at which safety has been restored ';const afterEventSpan=document.createElement('span');afterEventSpan.textContent='after the event';
177afterEventSpan.style.color='rgb(39, 39, 39)';afterEventSpan.style.fontFamily='Lato, sans-serif';afterEventSpan.style.fontSize='16px';afterEventSpan.style.lineHeight='25.600000381469727px';afterEventSpan.style.backgroundColor='rgb(255, 255, 255)';afterEventP.append(afterEventSpan);afterEventP.append('.');htmlContainer.append(afterEventP);return htmlContainer.innerHTML;};const fail=(e)=>{console.log(e);};const getAllCookies=()=>{const alertLists={tier:{}};const keyValuePairs=document.cookie.split(';');for(let ii=0;ii<keyValuePairs.length;ii++){const keyVal=keyValuePairs[ii].split('=');const cookieKey=keyVal[0].trim();if(!cookieKey.startsWith('UNEAlerts'))continue;const timestamp=keyVal[1].trim();try{parseInt(timestamp);}catch(e){continue;}alertLists['tier'][timestamp]=cookieKey;}return alertLists;};const setCookie=(cKey,cVal)=>{const expiryDate=new Date();expiryDate.setDate(expiryDate.getDate()+cookieExpireDays);cVal=escape(cVal)+(cookieExpireDays==null?'':';expires='+expiryDate.toUTCString()+'; path=/;');document.cookie=cKey+'='+cVal;};const removeCookie=(cookieName)=>{document.cookie=cookieName+'=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;';};const getMonthText=(mn)=>{const rd=['January','February','March','April','May','June','July','August','September','October','November','December'];return rd[mn];};const getWeekText=(wd)=>{const w=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];return w[wd];};fetchAlerts();};})(Drupal);; 178(function(Drupal){'use strict';Drupal.behaviors.unegdpr={attach:function(context,settings){once('une-gdpr','body',context).forEach(()=>{var gdprButton=context.querySelector('.gdpr-button');var gdprContainer=context.querySelector('.gdpr');if(!gdprButton)return;if(gdprButton&&gdprContainer){gdprButton.addEventListener('click',function(event){event.preventDefault();gdprContainer.style.display='none';var d=new Date();d.setTime(d.getTime()+90*24*60*60*1000);var expiry='expires='+d.toUTCString();document.cookie='une_gdpr=1;path=/;'+expiry;Drupal.behaviors.metaPageView.sendPageView();});var cookies=document.cookie.split('; ');if(!cookies.includes('une_gdpr=1'))window.setTimeout(()=>{gdprContainer.style.display='block';},2000);}});}};Drupal.behaviors.metaPageView={attach:function(context){const self=this;once('meta-page-view','body',context).forEach(()=>{if(Drupal.meta_conversions_api){Drupal.meta_conversions_api.allowedCallback=function(){const cookies=document.cookie.split('; ');return cookies.findIndex((item)=>item==='une_gdpr=1')>-1;};self.sendPageView();}});},sendPageView:function(){if(Drupal.meta_conversions_api&&Drupal.meta_conversions_api.shouldSend('PageView'))window.fetch('/ajax/page-view?'+new URLSearchParams({url:window.location.href}));}};})(Drupal);; 179/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */ 180(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
180if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
180try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=JSON.parse(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
180if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
180);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));; 181/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 182(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){const args={};if(query.includes('?'))query=query.substring(query.indexOf('?')+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q')if(pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));else args[decodeURIComponent(pair[0].replace(/\+/g,' '))]='';}return args;};Drupal.Views.parseViewArgs=function(href,viewPath){const returnObj={};const path=Drupal.Views.getPath(href);const viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.startsWith(`${viewHref}/`)){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path;}return returnObj;};Drupal.Views.pathPortion=function(href){const protocol=window.location.protocol;if(href.startsWith(protocol))href=href.substring(href.indexOf('/',protocol.length+2));return href;};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.startsWith('?q='))href=href.substring(3,href.length);const chars=['#','?','&'];for(let i=0;i<chars.length;i++)if(href.includes(chars[i]))href=href.substring(0,href.indexOf(chars[i]));return href;};})(jQuery,Drupal,drupalSettings);; 183(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings?.views?.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i]);});}};Drupal.behaviors.ViewsAjaxView.detach=(context,settings,trigger)=>{if(trigger==='unload')if(settings?.views?.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{const selector=`.js-view-dom-id-${ajaxViews[i].view_dom_id}`;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i];}});}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){const selector=`.js-view-dom-id-${settings.view_dom_id}`;this.$view=$(selector);this.$exposed_form=$(`form#views-exposed-form-${settings.view_name.replace(/_/g,'-')}-${settings.view_display_id.replace(/_/g,'-')}`);let ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().includes('Array'))ajaxPath=ajaxPath[0];let queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1);const params=decodeURI(queryString).split('&').filter((param)=>{const [name,value]=param.split('=');return (this.$exposed_form.find(`input[name="${name}"]`).length===0&&!['page','reset','sort','order','q','render'].includes(name));});queryString=encodeURI(params.join('&'));if(queryString!=='')queryString=(ajaxPath.includes('?')?'&':'?')+queryString;}this.element_settings={url:ajaxPath+queryString,submit:settings,httpMethod:'GET',setClick:true,event:'click',selector,progress:{type:'fullscreen'}};this.settings=settings;once('exposed-form',this.$exposed_form).forEach(this.attachExposedFormAjax.bind(this));once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEac
183h(this.attachPagerAjax.bind(this));const selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,httpMethod:'GET',element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings);};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;this.exposedFormAjax=[];$('input[type=submit], button[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function(index){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax[index]=Drupal.ajax(selfSettings);});};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return !this.$view.parents('.view').length;};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('.js-pager__items a, th.views-field a, .attachment .views-summary a').each(this.attachPagerLinkAjax.bind(this));};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){const $link=$(link);const viewData={};const href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));const selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link,httpMethod:'GET'});this.pagerAjax=Drupal.ajax(selfSettings);};Drupal.AjaxCommands.prototype.setBrowserUrl=(ajax,response)=>{if(ajax.element&&!ajax.element.closest('.ui-dialog-content'))window.history.replaceState(null,'',response.url);};})(jQuery,Drupal,drupalSettings);;
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.