PageSourceSearch

https://www.parenteam.com.ph/sites/default/files/js/js_dlRqMqlbSDc…YtS5Zp_U-u6W_lXLszXoYurlr-csOZLswfX9F-gMoIM

js parenteam.com.ph collected 2026-10-10 01:27:34 UTC 744,805 bytes, 2,709 lines download raw bytes

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://raw.githubusercontent.com/jquery-form/form/master/LICENSE */
7(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;
7if(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;
7try{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;
7if(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;}}
7);};$.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);}}}));;
8/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
9window.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,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');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');try{url=decodeURIComponent(url);}catch(e){}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;if(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);;
10if(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);;
11!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.1"});
12
13/*!
14 * jQuery UI :data 1.14.1
15 * https://jqueryui.com
16 *
17 * Copyright OpenJS Foundation and other contributors
18 * Released under the MIT license.
19 * https://jquery.org/license
20 */
21!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)}})})});
22
23/*!
24 * jQuery UI Disable Selection 1.14.1
25 * https://jqueryui.com
26 *
27 * Copyright OpenJS Foundation and other contributors
28 * Released under the MIT license.
29 * https://jquery.org/license
30 */
31!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});
32
33/*!
34 * jQuery UI Legacy jQuery Core patches 1.14.1
35 * https://jqueryui.com
36 *
37 * Copyright OpenJS Foundation and other contributors
38 * Released under the MIT license.
39 * https://jquery.org/license
40 *
41 */
42!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}
42)},odd:function(){return this.filter(function(e){return e%2==1})}})});
43
44/*!
45 * jQuery UI Scroll Parent 1.14.1
46 * https://jqueryui.com
47 *
48 * Copyright OpenJS Foundation and other contributors
49 * Released under the MIT license.
50 * https://jquery.org/license
51 */
52!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)}});
53
54/*!
55 * jQuery UI Unique ID 1.14.1
56 * https://jqueryui.com
57 *
58 * Copyright OpenJS Foundation and other contributors
59 * Released under the MIT license.
60 * https://jquery.org/license
61 */
62!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)&&i(this).removeAttr("id")})}});var e});
63
64/*!
65 * jQuery UI Focusable 1.14.1
66 * https://jqueryui.com
67 *
68 * Copyright OpenJS Foundation and other contributors
69 * Released under the MIT license.
70 * https://jquery.org/license
71 */
72!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});
73
74/*!
75 * jQuery UI Keycode 1.14.1
76 * https://jqueryui.com
77 *
78 * Copyright OpenJS Foundation and other contributors
79 * Released under the MIT license.
80 * https://jquery.org/license
81 */
82!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}});
83
84!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)}}});
85
86/*!
87 * jQuery UI Widget 1.14.1
88 * https://jqueryui.com
89 *
90 * Copyright OpenJS Foundation and other contributors
91 * Released under the MIT license.
92 * https://jquery.org/license
93 */
94!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}
vendor: 4,414 bytes, line 94
94,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(),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))}
vendor: 9,887 bytes, lines 94-134
94,_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});
95
96/*!
97 * jQuery UI Labels 1.14.1
98 * https://jqueryui.com
99 *
100 * Copyright OpenJS Foundation and other contributors
101 * Released under the MIT license.
102 * https://jquery.org/license
103 */
104!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([])}});
105
106/*!
107 * jQuery UI Controlgroup 1.14.1
108 * https://jqueryui.com
109 *
110 * Copyright OpenJS Foundation and other contributors
111 * Released under the MIT license.
112 * https://jquery.org/license
113 */
114!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}(function(t){"use strict";var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,o){var s,l={};if(o)return"controlgroupLabel"===n?((s=e.element.find(o)).each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(l=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each(function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},l);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var u=o[n]("widget");t.data(u[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(u[0])}})))}),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return t.each(i,function(t){var s=n.options.classes[t]||"";s=String.prototype.trim.call(s.replace(e,"")),o[t]=(s+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}})});
115
116/*!
117 * jQuery UI Form Reset Mixin 1.14.1
118 * https://jqueryui.com
119 *
120 * Copyright OpenJS Foundation and other contributors
121 * Released under the MIT license.
122 * https://jquery.org/license
123 */
124!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var r=t.data("ui-form-reset-instances");e.each(r,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=e(this.element.prop("form")),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}});
125
126/*!
127 * jQuery UI Mouse 1.14.1
128 * https://jqueryui.com
129 *
130 * Copyright OpenJS Foundation and other contributors
131 * Released under the MIT license.
132 * https://jquery.org/license
133 */
134!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(s){if(!0===e.data(s.target,t.widgetName+".preventClickEvent"))return e.removeData(s.target,t.widgetName+".preventClickEvent"),s.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(s){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(s),this._mouseDownEvent=s;var i=this,o=1===s.which,n="string"==typeof this.options.cancel&&e(s.target).closest(this.options.cancel).length;
vendor: 4,220 bytes, lines 134-144
134return!(o&&!n&&this._mouseCapture(s))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(s)&&this._mouseDelayMet(s)&&(this._mouseStarted=!1!==this._mouseStart(s),!this._mouseStarted)?(s.preventDefault(),!0):(!0===e.data(s.target,this.widgetName+".preventClickEvent")&&e.removeData(s.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),s.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(s){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,s.target===this._mouseDownEvent.target&&e.data(s.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(s)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,s.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
135
136/*!
137 * jQuery UI Autocomplete 1.14.1
138 * https://jqueryui.com
139 *
140 * Copyright OpenJS Foundation and other contributors
141 * Released under the MIT license.
142 * https://jquery.org/license
143 */
144!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.1",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(
vendor: 6,726 bytes, lines 144-154
144)},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(),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});
145
146/*!
147 * jQuery UI Menu 1.14.1
148 * https://jqueryui.com
149 *
150 * Copyright OpenJS Foundation and other contributors
151 * Released under the MIT license.
152 * https://jquery.org/license
153 */
154!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.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"}
vendor: 7,080 bytes, line 154
154,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)})},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
154se")},_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()))})}})});
155
156/*!
157 * jQuery UI Checkboxradio 1.14.1
158 * https://jqueryui.com
159 *
160 * Copyright OpenJS Foundation and other contributors
161 * Released under the MIT license.
162 * https://jquery.org/license
163 */
164!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var i,t,s,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(s=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=s.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(i=this.element[0].disabled)&&(n.disabled=i),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var i=this.element[0].nodeName.toLowerCase();
vendor: 8,163 bytes, lines 164-174
164this.type=this.element[0].type,"input"===i&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+i+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var i=this.element[0].name,t="input[name='"+CSS.escape(i)+"']";return i?(this.form.length?e(this.form[0].elements).filter(t):e(t).filter(function(){return 0===e(e(this).prop("form")).length})).not(this.element):e([])},_toggleClasses:function(){var i=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",i),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",i)._toggleClass(this.icon,null,"ui-icon-blank",!i),"radio"===this.type&&this._getRadioGroup().each(function(){var i=e(this).checkboxradio("instance");i&&i._removeClass(i.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(i){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=i?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,i?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),i||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),e.ui.checkboxradio});
165
166/*!
167 * jQuery UI Draggable 1.14.1
168 * https://jqueryui.com
169 *
170 * Copyright OpenJS Foundation and other contributors
171 * Released under the MIT license.
172 * https://jquery.org/license
173 */
174!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=this.document[0].activeElement;t(e.target).closest(s).length||t(s).trigger("blur")},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==s._trigger("stop",e)&&s._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i="function"==typeof s.helper,o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}
vendor: 4,612 bytes, line 174
174),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)
vendor: 4,883 bytes, line 174
174/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))})},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))})},drag:function(e,s,i){t.each(i.sortables,function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o})),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t
vendor: 4,192 bytes, lines 174-184
174(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})})},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort(function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)});r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",o+e)}),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable});
175
176/*!
177 * jQuery UI Resizable 1.14.1
178 * https://jqueryui.com
179 *
180 * Copyright OpenJS Foundation and other contributors
181 * Released under the MIT license.
182 * https://jquery.org/license
183 */
184!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){var s,h=!1,n=t(e).css("overflow");if("hidden"===n)return!1;if("scroll"===n)return!0;
vendor: 38,206 bytes, lines 184-209
184if(e[s=i&&"left"===i?"scrollLeft":"scrollTop"]>0)return!0;try{e[s]=1,h=e[s]>0,e[s]=0}catch(t){}return h},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)h="ui-resizable-"+(e=String.prototype.trim.call(s[i])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(e){var i,s,h,n;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,s,h=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(e){var i,s,h,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this._helper||(n=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width,height:n.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:n.width,height:n.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,h=this.originalMousePosition,n=this.axis,o=e.pageX-h.left||0,a=e.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,i=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),s>n.minHeight&&(n.minHeight=s),i<n.maxWidth&&(n.maxWidth=i),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,h=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,n=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(i),p=/nw|ne|n/.test(i);return n&&(t.width=e.minWidth),o&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),h&&(t.height=e.maxHeight),n&&r&&(t.left=a-e.minWidth),s&&r&&(t.left=a-e.maxWidth),o&&p&&(t.top=l-e.minHeight),h&&p&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(h[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(t){var e,i,s,h=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(h)&&!this._hasScroll(h,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(h.style.width),i=parseFloat(h.style.height),s=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,s,"width"):e,{height:i=isNaN(i)?this._getElementTheoreticalSize(t,s,"height"):i,width:e})},_getElementTheoreticalSize:function(t,e,i){return Math.max(0,Math.ceil(t.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-e[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,h=i._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&i._hasScroll(h[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,p=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(g),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(e){var i,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||e.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,h=e.containerPosition,n=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,r=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),e._helper&&!i.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var i=t(this),s=e._calculateAdjustedElementDimensions(i);i.data("ui-resizable-alsoresize",{width:s.width,height:s.height,left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0};t(h.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(h[e]=i||null)}),e.css(h)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,h=i.size,n=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,c=n.height+g,f=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<c,z=s.minWidth&&s.minWidth>u,_=s.minHeight&&s.minHeight>c;s.grid=l,z&&(u+=r),_&&(c+=p),f&&(u-=r),m&&(c-=p),/^(se|s|e)$/.test(a)?(i.size.width=u,i.size.height=c):/^(ne)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.top=o.top-g):/^(sw)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.left=o.left-d):((c-p<=0||u-r<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),c-p>0?(i.size.height=c,i.position.top=o.top-g):(c=p-e.height,i.size.height=c,i.position.top=o.top+n.height-c),u-r>0?(i.size.width=u,i.position.left=o.left-d):(u=r-e.width,i.size.width=u,i.position.left=o.left+n.width-u))}}),t.ui.resizable});
185
186/*!
187 * jQuery UI Button 1.14.1
188 * https://jqueryui.com
189 *
190 * Copyright OpenJS Foundation and other contributors
191 * Released under the MIT license.
192 * https://jquery.org/license
193 */
194!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}(function(t){"use strict";var i;return t.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(i){i.keyCode===t.ui.keyCode.SPACE&&(i.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(i,o){var s="iconPosition"!==i,n=s?this.options.iconPosition:o,e="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,o),this._attachIcon(n),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=void 0===t.showLabel?this.options.showLabel:t.showLabel,o=void 0===t.icon?this.options.icon:t.icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i,i&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"!==t?("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",i)}}),t.fn.button=(i=t.fn.button,function(o){var s="string"==typeof o,n=Array.prototype.slice.call(arguments,1),e=this;return s?this.length||"instance"!==o?this.each(function(){var i,s=t(this).attr("type"),h="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",a=t.data(this,"ui-"+h);return"instance"===o?(e=a,!1):a?"function"!=typeof a[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for button widget instance"):(i=a[o].apply(a,n))!==a&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):e=void 0:(n.length&&(o=t.widget.extend.apply(null,[o].concat(n))),this.each(function(){var s=t(this).attr("type"),n="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",e=t.data(this,"ui-"+n);if(e)e.option(o||{}),e._init&&e._init();else{if("button"===n)return void i.call(t(this),o);t(this).checkboxradio(t.extend({icon:!1},o))}})),e}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button});
195
196/*!
197 * jQuery UI Dialog 1.14.1
198 * https://jqueryui.com
199 *
200 * Copyright OpenJS Foundation and other contributors
201 * Released under the MIT license.
202 * https://jquery.org/license
203 */
204!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../tabbable","../unique-id","../version","../widget"],i):i(jQuery)}(function(i){"use strict";return i.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=i(this).css(t).offset().top;e<0&&i(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+i(this).css("z-index")}).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),o=!0),o&&!e&&this._trigger("focus",t),o},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=i(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;i||(i=this.element.find("[autofocus]")),i.length||(i=this.element.find(":tabbable")),i.length||(i=this.uiDialogButtonPane.find(":tabbable")),i.length||(i=this.uiDialogTitlebarClose.filter(":tabbable")),i.length||(i=this.uiDialog),i.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||i.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),o=e.first(),s=e.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==o[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){o.trigger("focus")}),t.preventDefault())}},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){i(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}});var e=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span";t=i("<"+e+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||Array.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,function(e,o){var s,n;o="function"==typeof o?{click:o,text:e}:o,o=i.extend({type:"button"},o),s=o.click,n={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,i("<button></button>",o).button(n).appendTo(t.uiButtonSet).on("click",function(){s.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,e=this.options;function o(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,s){t._addClass(i(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",e,o(s))},drag:function(i,e){t._trigger("drag",i,o(e))},stop:function(s,n){var a=n.offset.left-t.document.scrollLeft(),l=n.offset.top-t.document.scrollTop();e.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(i(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,o(n))}})},_makeResizable:function(){var t=this,e=this.options,o=e.resizable,s=this.uiDialog.css("position"),n="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,o){t._addClass(i(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",e,a(o))},resize:function(i,e){t._trigger("resize",i,a(e))},stop:function(o,s){var n=t.uiDialog.offset(),l=n.left-t.document.scrollLeft(),h=n.top-t.document.scrollTop();e.height=t.uiDialog.height(),e.width=t.uiDialog.width(),e.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:t.window},t._removeClass(i(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,a(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||(i=[],this.document.data("ui-dialog-instances",i)),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(t){var e=this,o=!1,s={};i.each(t,function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var o,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((o=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!o&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t&&n.attr("aria-modal",e?"true":null))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=i(this);return i("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!i(t.target).closest(".ui-dialog").length||!!i(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){if(!t){var e=this._trackingInstances()[0];e._allowInteraction(i)||(i.preventDefault(),e._focusTabbable())}}.bind(this)),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var i=this.document.data("ui-dialog-overlays")-1;i?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),i.ui.dialog});
205
206/* @license Public Domain https://raw.githubusercontent.com/jquery/jquery-ui/1.13.2/LICENSE.txt */
207!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.13.2"}));
208
209/*!
210 * jQuery UI Keycode 1.13.2
211 * http://jqueryui.com
212 *
213 * Copyright jQuery Foundation and other contributors
214 * Released under the MIT license.
215 * http://jquery.org/license
216 */
217!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}}));
218
219/* eslint-disable max-len, camelcase */
220/*!
221 * jQuery UI Datepicker 1.13.2
222 * http://jqueryui.com
223 *
224 * Copyright jQuery Foundation and other contributors
225 * Released under the MIT license.
226 * http://jquery.org/license
227 */
228
229//>>label: Datepicker
230//>>group: Widgets
231//>>description: Displays a calendar from an input or inline for selecting dates.
232//>>docs: http://api.jqueryui.com/datepicker/
233//>>demos: http://jqueryui.com/datepicker/
234//>>css.structure: ../../themes/base/core.css
235//>>css.structure: ../../themes/base/datepicker.css
236//>>css.theme: ../../themes/base/theme.css
237
238( function( factory ) {
239	"use strict";
240
241	if ( typeof define === "function" && define.amd ) {
242
243		// AMD. Register as an anonymous module.
244		define( [
245			"jquery",
246			"../version",
247			"../keycode"
248		], factory );
249	} else {
250
251		// Browser globals
252		factory( jQuery );
253	}
254} )( function( $ ) {
255"use strict";
256
257$.extend( $.ui, { datepicker: { version: "1.13
vendor: 14,164 bytes, lines 257-574
257.2" } } );
258
259var datepicker_instActive;
260
261function datepicker_getZindex( elem ) {
262	var position, value;
263	while ( elem.length && elem[ 0 ] !== document ) {
264
265		// Ignore z-index if position is set to a value where z-index is ignored by the browser
266		// This makes behavior of this function consistent across browsers
267		// WebKit always returns auto if the element is positioned
268		position = elem.css( "position" );
269		if ( position === "absolute" || position === "relative" || position === "fixed" ) {
270
271			// IE returns 0 when zIndex is not specified
272			// other browsers return a string
273			// we ignore the case of nested elements with an explicit value of 0
274			// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
275			value = parseInt( elem.css( "zIndex" ), 10 );
276			if ( !isNaN( value ) && value !== 0 ) {
277				return value;
278			}
279		}
280		elem = elem.parent();
281	}
282
283	return 0;
284}
285
286/* Date picker manager.
287   Use the singleton instance of this class, $.datepicker, to interact with the date picker.
288   Settings for (groups of) date pickers are maintained in an instance object,
289   allowing multiple different settings on the same page. */
290
291function Datepicker() {
292	this._curInst = null; // The current instance in use
293	this._keyEvent = false; // If the last event was a key event
294	this._disabledInputs = []; // List of date picker inputs that have been disabled
295	this._datepickerShowing = false; // True if the popup picker is showing , false if not
296	this._inDialog = false; // True if showing within a "dialog", false if not
297	this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
298	this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
299	this._appendClass = "ui-datepicker-append"; // The name of the append marker class
300	this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
301	this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
302	this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
303	this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
304	this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
305	this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
306	this.regional = []; // Available regional settings, indexed by language code
307	this.regional[ "" ] = { // Default regional settings
308		closeText: "Done", // Display text for close link
309		prevText: "Prev", // Display text for previous month link
310		nextText: "Next", // Display text for next month link
311		currentText: "Today", // Display text for current month link
312		monthNames: [ "January", "February", "March", "April", "May", "June",
313			"July", "August", "September", "October", "November", "December" ], // Names of months for drop-down and formatting
314		monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting
315		dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting
316		dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting
317		dayNamesMin: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], // Column headings for days starting at Sunday
318		weekHeader: "Wk", // Column header for week of the year
319		dateFormat: "mm/dd/yy", // See format options on parseDate
320		firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
321		isRTL: false, // True if right-to-left language, false if left-to-right
322		showMonthAfterYear: false, // True if the year select precedes month, false for month then year
323		yearSuffix: "", // Additional text to append to the year in the month headers,
324		selectMonthLabel: "Select month", // Invisible label for month selector
325		selectYearLabel: "Select year" // Invisible label for year selector
326	};
327	this._defaults = { // Global defaults for all the date picker instances
328		showOn: "focus", // "focus" for popup on focus,
329			// "button" for trigger button, or "both" for either
330		showAnim: "fadeIn", // Name of jQuery animation for popup
331		showOptions: {}, // Options for enhanced animations
332		defaultDate: null, // Used when field is blank: actual date,
333			// +/-number for offset from today, null for today
334		appendText: "", // Display text following the input box, e.g. showing the format
335		buttonText: "...", // Text for trigger button
336		buttonImage: "", // URL for trigger button image
337		buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
338		hideIfNoPrevNext: false, // True to hide next/previous month links
339			// if not applicable, false to just disable them
340		navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
341		gotoCurrent: false, // True if today link goes back to current selection instead
342		changeMonth: false, // True if month can be selected directly, false if only prev/next
343		changeYear: false, // True if year can be selected directly, false if only prev/next
344		yearRange: "c-10:c+10", // Range of years to display in drop-down,
345			// either relative to today's year (-nn:+nn), relative to currently displayed year
346			// (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
347		showOtherMonths: false, // True to show dates in other months, false to leave blank
348		selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
349		showWeek: false, // True to show week of the year, false to not show it
350		calculateWeek: this.iso8601Week, // How to calculate the week of the year,
351			// takes a Date and returns the number of the week for it
352		shortYearCutoff: "+10", // Short year values < this are in the current century,
353			// > this are in the previous century,
354			// string value starting with "+" for current year + value
355		minDate: null, // The earliest selectable date, or null for no limit
356		maxDate: null, // The latest selectable date, or null for no limit
357		duration: "fast", // Duration of display/closure
358		beforeShowDay: null, // Function that takes a date and returns an array with
359			// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
360			// [2] = cell title (optional), e.g. $.datepicker.noWeekends
361		beforeShow: null, // Function that takes an input field and
362			// returns a set of custom settings for the date picker
363		onSelect: null, // Define a callback function when a date is selected
364		onChangeMonthYear: null, // Define a callback function when the month or year is changed
365		onClose: null, // Define a callback function when the datepicker is closed
366		onUpdateDatepicker: null, // Define a callback function when the datepicker is updated
367		numberOfMonths: 1, // Number of months to show at a time
368		showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
369		stepMonths: 1, // Number of months to step back/forward
370		stepBigMonths: 12, // Number of months to step back/forward for the big links
371		altField: "", // Selector for an alternate field to store selected dates into
372		altFormat: "", // The date format to use for the alternate field
373		constrainInput: true, // The input is constrained by the current date format
374		showButtonPanel: false, // True to show button panel, false to not show it
375		autoSize: false, // True to size the input for the date format, false to leave as is
376		disabled: false // The initial disabled state
377	};
378	$.extend( this._defaults, this.regional[ "" ] );
379	this.regional.en = $.extend( true, {}, this.regional[ "" ] );
380	this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
381	this.dpDiv = datepicker_bindHover( $( "<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) );
382}
383
384$.extend( Datepicker.prototype, {
385
386	/* Class name added to elements to indicate already configured with a date picker. */
387	markerClassName: "hasDatepicker",
388
389	//Keep track of the maximum number of rows displayed (see #7043)
390	maxRows: 4,
391
392	// TODO rename to "widget" when switching to widget factory
393	_widgetDatepicker: function() {
394		return this.dpDiv;
395	},
396
397	/* Override the default settings for all instances of the date picker.
398	 * @param  settings  object - the new settings to use as defaults (anonymous object)
399	 * @return the manager object
400	 */
401	setDefaults: function( settings ) {
402		datepicker_extendRemove( this._defaults, settings || {} );
403		return this;
404	},
405
406	/* Attach the date picker to a jQuery selection.
407	 * @param  target	element - the target input field or division or span
408	 * @param  settings  object - the new settings to use for this date picker instance (anonymous)
409	 */
410	_attachDatepicker: function( target, settings ) {
411		var nodeName, inline, inst;
412		nodeName = target.nodeName.toLowerCase();
413		inline = ( nodeName === "div" || nodeName === "span" );
414		if ( !target.id ) {
415			this.uuid += 1;
416			target.id = "dp" + this.uuid;
417		}
418		inst = this._newInst( $( target ), inline );
419		inst.settings = $.extend( {}, settings || {} );
420		if ( nodeName === "input" ) {
421			this._connectDatepicker( target, inst );
422		} else if ( inline ) {
423			this._inlineDatepicker( target, inst );
424		}
425	},
426
427	/* Create a new instance object. */
428	_newInst: function( target, inline ) {
429		var id = target[ 0 ].id.replace( /([^A-Za-z0-9_\-])/g, "\\\\$1" ); // escape jQuery meta chars
430		return { id: id, input: target, // associated target
431			selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
432			drawMonth: 0, drawYear: 0, // month being drawn
433			inline: inline, // is datepicker inline or not
434			dpDiv: ( !inline ? this.dpDiv : // presentation div
435			datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };
436	},
437
438	/* Attach the date picker to an input field. */
439	_connectDatepicker: function( target, inst ) {
440		var input = $( target );
441		inst.append = $( [] );
442		inst.trigger = $( [] );
443		if ( input.hasClass( this.markerClassName ) ) {
444			return;
445		}
446		this._attachments( input, inst );
447		input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ).
448			on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
449		this._autoSize( inst );
450		$.data( target, "datepicker", inst );
451
452		//If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
453		if ( inst.settings.disabled ) {
454			this._disableDatepicker( target );
455		}
456	},
457
458	/* Make attachments based on settings. */
459	_attachments: function( input, inst ) {
460		var showOn, buttonText, buttonImage,
461			appendText = this._get( inst, "appendText" ),
462			isRTL = this._get( inst, "isRTL" );
463
464		if ( inst.append ) {
465			inst.append.remove();
466		}
467		if ( appendText ) {
468			inst.append = $( "<span>" )
469				.addClass( this._appendClass )
470				.text( appendText );
471			input[ isRTL ? "before" : "after" ]( inst.append );
472		}
473
474		input.off( "focus", this._showDatepicker );
475
476		if ( inst.trigger ) {
477			inst.trigger.remove();
478		}
479
480		showOn = this._get( inst, "showOn" );
481		if ( showOn === "focus" || showOn === "both" ) { // pop-up date picker when in the marked field
482			input.on( "focus", this._showDatepicker );
483		}
484		if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked
485			buttonText = this._get( inst, "buttonText" );
486			buttonImage = this._get( inst, "buttonImage" );
487
488			if ( this._get( inst, "buttonImageOnly" ) ) {
489				inst.trigger = $( "<img>" )
490					.addClass( this._triggerClass )
491					.attr( {
492						src: buttonImage,
493						alt: buttonText,
494						title: buttonText
495					} );
496			} else {
497				inst.trigger = $( "<button type='button'>" )
498					.addClass( this._triggerClass );
499				if ( buttonImage ) {
500					inst.trigger.html(
501						$( "<img>" )
502							.attr( {
503								src: buttonImage,
504								alt: buttonText,
505								title: buttonText
506							} )
507					);
508				} else {
509					inst.trigger.text( buttonText );
510				}
511			}
512
513			input[ isRTL ? "before" : "after" ]( inst.trigger );
514			inst.trigger.on( "click", function() {
515				if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) {
516					$.datepicker._hideDatepicker();
517				} else if ( $.datepicker._datepickerShowing && $.datepicker._lastInput !== input[ 0 ] ) {
518					$.datepicker._hideDatepicker();
519					$.datepicker._showDatepicker( input[ 0 ] );
520				} else {
521					$.datepicker._showDatepicker( input[ 0 ] );
522				}
523				return false;
524			} );
525		}
526	},
527
528	/* Apply the maximum length for the date format. */
529	_autoSize: function( inst ) {
530		if ( this._get( inst, "autoSize" ) && !inst.inline ) {
531			var findMax, max, maxI, i,
532				date = new Date( 2009, 12 - 1, 20 ), // Ensure double digits
533				dateFormat = this._get( inst, "dateFormat" );
534
535			if ( dateFormat.match( /[DM]/ ) ) {
536				findMax = function( names ) {
537					max = 0;
538					maxI = 0;
539					for ( i = 0; i < names.length; i++ ) {
540						if ( names[ i ].length > max ) {
541							max = names[ i ].length;
542							maxI = i;
543						}
544					}
545					return maxI;
546				};
547				date.setMonth( findMax( this._get( inst, ( dateFormat.match( /MM/ ) ?
548					"monthNames" : "monthNamesShort" ) ) ) );
549				date.setDate( findMax( this._get( inst, ( dateFormat.match( /DD/ ) ?
550					"dayNames" : "dayNamesShort" ) ) ) + 20 - date.getDay() );
551			}
552			inst.input.attr( "size", this._formatDate( inst, date ).length );
553		}
554	},
555
556	/* Attach an inline date picker to a div. */
557	_inlineDatepicker: function( target, inst ) {
558		var divSpan = $( target );
559		if ( divSpan.hasClass( this.markerClassName ) ) {
560			return;
561		}
562		divSpan.addClass( this.markerClassName ).append( inst.dpDiv );
563		$.data( target, "datepicker", inst );
564		this._setDate( inst, this._getDefaultDate( inst ), true );
565		this._updateDatepicker( inst );
566		this._updateAlternate( inst );
567
568		//If disabled option is true, disable the datepicker before showing it (see ticket #5665)
569		if ( inst.settings.disabled ) {
570			this._disableDatepicker( target );
571		}
572
573		// Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
574		// http
vendor: 14,693 bytes, lines 574-996
574://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
575		inst.dpDiv.css( "display", "block" );
576	},
577
578	/* Pop-up the date picker in a "dialog" box.
579	 * @param  input element - ignored
580	 * @param  date	string or Date - the initial date to display
581	 * @param  onSelect  function - the function to call when a date is selected
582	 * @param  settings  object - update the dialog date picker instance's settings (anonymous object)
583	 * @param  pos int[2] - coordinates for the dialog's position within the screen or
584	 *					event - with x/y coordinates or
585	 *					leave empty for default (screen centre)
586	 * @return the manager object
587	 */
588	_dialogDatepicker: function( input, date, onSelect, settings, pos ) {
589		var id, browserWidth, browserHeight, scrollX, scrollY,
590			inst = this._dialogInst; // internal instance
591
592		if ( !inst ) {
593			this.uuid += 1;
594			id = "dp" + this.uuid;
595			this._dialogInput = $( "<input type='text' id='" + id +
596				"' style='position: absolute; top: -100px; width: 0px;'/>" );
597			this._dialogInput.on( "keydown", this._doKeyDown );
598			$( "body" ).append( this._dialogInput );
599			inst = this._dialogInst = this._newInst( this._dialogInput, false );
600			inst.settings = {};
601			$.data( this._dialogInput[ 0 ], "datepicker", inst );
602		}
603		datepicker_extendRemove( inst.settings, settings || {} );
604		date = ( date && date.constructor === Date ? this._formatDate( inst, date ) : date );
605		this._dialogInput.val( date );
606
607		this._pos = ( pos ? ( pos.length ? pos : [ pos.pageX, pos.pageY ] ) : null );
608		if ( !this._pos ) {
609			browserWidth = document.documentElement.clientWidth;
610			browserHeight = document.documentElement.clientHeight;
611			scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
612			scrollY = document.documentElement.scrollTop || document.body.scrollTop;
613			this._pos = // should use actual width/height below
614				[ ( browserWidth / 2 ) - 100 + scrollX, ( browserHeight / 2 ) - 150 + scrollY ];
615		}
616
617		// Move input on screen for focus, but hidden behind dialog
618		this._dialogInput.css( "left", ( this._pos[ 0 ] + 20 ) + "px" ).css( "top", this._pos[ 1 ] + "px" );
619		inst.settings.onSelect = onSelect;
620		this._inDialog = true;
621		this.dpDiv.addClass( this._dialogClass );
622		this._showDatepicker( this._dialogInput[ 0 ] );
623		if ( $.blockUI ) {
624			$.blockUI( this.dpDiv );
625		}
626		$.data( this._dialogInput[ 0 ], "datepicker", inst );
627		return this;
628	},
629
630	/* Detach a datepicker from its control.
631	 * @param  target	element - the target input field or division or span
632	 */
633	_destroyDatepicker: function( target ) {
634		var nodeName,
635			$target = $( target ),
636			inst = $.data( target, "datepicker" );
637
638		if ( !$target.hasClass( this.markerClassName ) ) {
639			return;
640		}
641
642		nodeName = target.nodeName.toLowerCase();
643		$.removeData( target, "datepicker" );
644		if ( nodeName === "input" ) {
645			inst.append.remove();
646			inst.trigger.remove();
647			$target.removeClass( this.markerClassName ).
648				off( "focus", this._showDatepicker ).
649				off( "keydown", this._doKeyDown ).
650				off( "keypress", this._doKeyPress ).
651				off( "keyup", this._doKeyUp );
652		} else if ( nodeName === "div" || nodeName === "span" ) {
653			$target.removeClass( this.markerClassName ).empty();
654		}
655
656		if ( datepicker_instActive === inst ) {
657			datepicker_instActive = null;
658			this._curInst = null;
659		}
660	},
661
662	/* Enable the date picker to a jQuery selection.
663	 * @param  target	element - the target input field or division or span
664	 */
665	_enableDatepicker: function( target ) {
666		var nodeName, inline,
667			$target = $( target ),
668			inst = $.data( target, "datepicker" );
669
670		if ( !$target.hasClass( this.markerClassName ) ) {
671			return;
672		}
673
674		nodeName = target.nodeName.toLowerCase();
675		if ( nodeName === "input" ) {
676			target.disabled = false;
677			inst.trigger.filter( "button" ).
678				each( function() {
679					this.disabled = false;
680				} ).end().
681				filter( "img" ).css( { opacity: "1.0", cursor: "" } );
682		} else if ( nodeName === "div" || nodeName === "span" ) {
683			inline = $target.children( "." + this._inlineClass );
684			inline.children().removeClass( "ui-state-disabled" );
685			inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
686				prop( "disabled", false );
687		}
688		this._disabledInputs = $.map( this._disabledInputs,
689
690			// Delete entry
691			function( value ) {
692				return ( value === target ? null : value );
693			} );
694	},
695
696	/* Disable the date picker to a jQuery selection.
697	 * @param  target	element - the target input field or division or span
698	 */
699	_disableDatepicker: function( target ) {
700		var nodeName, inline,
701			$target = $( target ),
702			inst = $.data( target, "datepicker" );
703
704		if ( !$target.hasClass( this.markerClassName ) ) {
705			return;
706		}
707
708		nodeName = target.nodeName.toLowerCase();
709		if ( nodeName === "input" ) {
710			target.disabled = true;
711			inst.trigger.filter( "button" ).
712				each( function() {
713					this.disabled = true;
714				} ).end().
715				filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
716		} else if ( nodeName === "div" || nodeName === "span" ) {
717			inline = $target.children( "." + this._inlineClass );
718			inline.children().addClass( "ui-state-disabled" );
719			inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
720				prop( "disabled", true );
721		}
722		this._disabledInputs = $.map( this._disabledInputs,
723
724			// Delete entry
725			function( value ) {
726				return ( value === target ? null : value );
727			} );
728		this._disabledInputs[ this._disabledInputs.length ] = target;
729	},
730
731	/* Is the first field in a jQuery collection disabled as a datepicker?
732	 * @param  target	element - the target input field or division or span
733	 * @return boolean - true if disabled, false if enabled
734	 */
735	_isDisabledDatepicker: function( target ) {
736		if ( !target ) {
737			return false;
738		}
739		for ( var i = 0; i < this._disabledInputs.length; i++ ) {
740			if ( this._disabledInputs[ i ] === target ) {
741				return true;
742			}
743		}
744		return false;
745	},
746
747	/* Retrieve the instance data for the target control.
748	 * @param  target  element - the target input field or division or span
749	 * @return  object - the associated instance data
750	 * @throws  error if a jQuery problem getting data
751	 */
752	_getInst: function( target ) {
753		try {
754			return $.data( target, "datepicker" );
755		} catch ( err ) {
756			throw "Missing instance data for this datepicker";
757		}
758	},
759
760	/* Update or retrieve the settings for a date picker attached to an input field or division.
761	 * @param  target  element - the target input field or division or span
762	 * @param  name	object - the new settings to update or
763	 *				string - the name of the setting to change or retrieve,
764	 *				when retrieving also "all" for all instance settings or
765	 *				"defaults" for all global defaults
766	 * @param  value   any - the new value for the setting
767	 *				(omit if above is an object or to retrieve a value)
768	 */
769	_optionDatepicker: function( target, name, value ) {
770		var settings, date, minDate, maxDate,
771			inst = this._getInst( target );
772
773		if ( arguments.length === 2 && typeof name === "string" ) {
774			return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) :
775				( inst ? ( name === "all" ? $.extend( {}, inst.settings ) :
776				this._get( inst, name ) ) : null ) );
777		}
778
779		settings = name || {};
780		if ( typeof name === "string" ) {
781			settings = {};
782			settings[ name ] = value;
783		}
784
785		if ( inst ) {
786			if ( this._curInst === inst ) {
787				this._hideDatepicker();
788			}
789
790			date = this._getDateDatepicker( target, true );
791			minDate = this._getMinMaxDate( inst, "min" );
792			maxDate = this._getMinMaxDate( inst, "max" );
793			datepicker_extendRemove( inst.settings, settings );
794
795			// reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
796			if ( minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined ) {
797				inst.settings.minDate = this._formatDate( inst, minDate );
798			}
799			if ( maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined ) {
800				inst.settings.maxDate = this._formatDate( inst, maxDate );
801			}
802			if ( "disabled" in settings ) {
803				if ( settings.disabled ) {
804					this._disableDatepicker( target );
805				} else {
806					this._enableDatepicker( target );
807				}
808			}
809			this._attachments( $( target ), inst );
810			this._autoSize( inst );
811			this._setDate( inst, date );
812			this._updateAlternate( inst );
813			this._updateDatepicker( inst );
814		}
815	},
816
817	// Change method deprecated
818	_changeDatepicker: function( target, name, value ) {
819		this._optionDatepicker( target, name, value );
820	},
821
822	/* Redraw the date picker attached to an input field or division.
823	 * @param  target  element - the target input field or division or span
824	 */
825	_refreshDatepicker: function( target ) {
826		var inst = this._getInst( target );
827		if ( inst ) {
828			this._updateDatepicker( inst );
829		}
830	},
831
832	/* Set the dates for a jQuery selection.
833	 * @param  target element - the target input field or division or span
834	 * @param  date	Date - the new date
835	 */
836	_setDateDatepicker: function( target, date ) {
837		var inst = this._getInst( target );
838		if ( inst ) {
839			this._setDate( inst, date );
840			this._updateDatepicker( inst );
841			this._updateAlternate( inst );
842		}
843	},
844
845	/* Get the date(s) for the first entry in a jQuery selection.
846	 * @param  target element - the target input field or division or span
847	 * @param  noDefault boolean - true if no default date is to be used
848	 * @return Date - the current date
849	 */
850	_getDateDatepicker: function( target, noDefault ) {
851		var inst = this._getInst( target );
852		if ( inst && !inst.inline ) {
853			this._setDateFromField( inst, noDefault );
854		}
855		return ( inst ? this._getDate( inst ) : null );
856	},
857
858	/* Handle keystrokes. */
859	_doKeyDown: function( event ) {
860		var onSelect, dateStr, sel,
861			inst = $.datepicker._getInst( event.target ),
862			handled = true,
863			isRTL = inst.dpDiv.is( ".ui-datepicker-rtl" );
864
865		inst._keyEvent = true;
866		if ( $.datepicker._datepickerShowing ) {
867			switch ( event.keyCode ) {
868				case 9: $.datepicker._hideDatepicker();
869						handled = false;
870						break; // hide on tab out
871				case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." +
872									$.datepicker._currentClass + ")", inst.dpDiv );
873						if ( sel[ 0 ] ) {
874							$.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
875						}
876
877						onSelect = $.datepicker._get( inst, "onSelect" );
878						if ( onSelect ) {
879							dateStr = $.datepicker._formatDate( inst );
880
881							// Trigger custom callback
882							onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
883						} else {
884							$.datepicker._hideDatepicker();
885						}
886
887						return false; // don't submit the form
888				case 27: $.datepicker._hideDatepicker();
889						break; // hide on escape
890				case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
891							-$.datepicker._get( inst, "stepBigMonths" ) :
892							-$.datepicker._get( inst, "stepMonths" ) ), "M" );
893						break; // previous month/year on page up/+ ctrl
894				case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
895							+$.datepicker._get( inst, "stepBigMonths" ) :
896							+$.datepicker._get( inst, "stepMonths" ) ), "M" );
897						break; // next month/year on page down/+ ctrl
898				case 35: if ( event.ctrlKey || event.metaKey ) {
899							$.datepicker._clearDate( event.target );
900						}
901						handled = event.ctrlKey || event.metaKey;
902						break; // clear on ctrl or command +end
903				case 36: if ( event.ctrlKey || event.metaKey ) {
904							$.datepicker._gotoToday( event.target );
905						}
906						handled = event.ctrlKey || event.metaKey;
907						break; // current on ctrl or command +home
908				case 37: if ( event.ctrlKey || event.metaKey ) {
909							$.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
910						}
911						handled = event.ctrlKey || event.metaKey;
912
913						// -1 day on ctrl or command +left
914						if ( event.originalEvent.altKey ) {
915							$.datepicker._adjustDate( event.target, ( event.ctrlKey ?
916								-$.datepicker._get( inst, "stepBigMonths" ) :
917								-$.datepicker._get( inst, "stepMonths" ) ), "M" );
918						}
919
920						// next month/year on alt +left on Mac
921						break;
922				case 38: if ( event.ctrlKey || event.metaKey ) {
923							$.datepicker._adjustDate( event.target, -7, "D" );
924						}
925						handled = event.ctrlKey || event.metaKey;
926						break; // -1 week on ctrl or command +up
927				case 39: if ( event.ctrlKey || event.metaKey ) {
928							$.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
929						}
930						handled = event.ctrlKey || event.metaKey;
931
932						// +1 day on ctrl or command +right
933						if ( event.originalEvent.altKey ) {
934							$.datepicker._adjustDate( event.target, ( event.ctrlKey ?
935								+$.datepicker._get( inst, "stepBigMonths" ) :
936								+$.datepicker._get( inst, "stepMonths" ) ), "M" );
937						}
938
939						// next month/year on alt +right
940						break;
941				case 40: if ( event.ctrlKey || event.metaKey ) {
942							$.datepicker._adjustDate( event.target, +7, "D" );
943						}
944						handled = event.ctrlKey || event.metaKey;
945						break; // +1 week on ctrl or command +down
946				default: handled = false;
947			}
948		} else if ( event.keyCode === 36 && event.ctrlKey ) { // display the date picker on ctrl+home
949			$.datepicker._showDatepicker( this );
950		} else {
951			handled = false;
952		}
953
954		if ( handled ) {
955			event.preventDefault();
956			event.stopPropagation();
957		}
958	},
959
960	/* Filter entered characters - based on date format. */
961	_doKeyPress: function( event ) {
962		var chars, chr,
963			inst = $.datepicker._getInst( event.target );
964
965		if ( $.datepicker._get( inst, "constrainInput" ) ) {
966			chars = $.datepicker._possibleChars( $.datepicker._get( inst, "dateFormat" ) );
967			chr = String.fromCharCode( event.charCode == null ? event.keyCode : event.charCode );
968			return event.ctrlKey || event.metaKey || ( chr < " " || !chars || chars.indexOf( chr ) > -1 );
969		}
970	},
971
972	/* Synchronise manual entry and field/alternate field. */
973	_doKeyUp: function( event ) {
974		var date,
975			inst = $.datepicker._getInst( event.target );
976
977		if ( inst.input.val() !== inst.lastVal ) {
978			try {
979				date = $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
980					( inst.input ? inst.input.val() : null ),
981					$.datepicker._getFormatConfig( inst ) );
982
983				if ( date ) { // only if valid
984					$.datepicker._setDateFromField( inst );
985					$.datepicker._updateAlternate( inst );
986					$.datepicker._updateDatepicker( inst );
987				}
988			} catch ( err ) {
989			}
990		}
991		return true;
992	},
993
994	/* Pop-up the date picker for a given input field.
995	 * If false returned from beforeShow event handler do not show.
996	 * @param  input  element - the input field attached to the date picker or
vendor: 4,332 bytes, lines 997-1119
997	 *					event - if triggered by focus
998	 */
999	_showDatepicker: function( input ) {
1000		input = input.target || input;
1001		if ( input.nodeName.toLowerCase() !== "input" ) { // find from button/image trigger
1002			input = $( "input", input.parentNode )[ 0 ];
1003		}
1004
1005		if ( $.datepicker._isDisabledDatepicker( input ) || $.datepicker._lastInput === input ) { // already here
1006			return;
1007		}
1008
1009		var inst, beforeShow, beforeShowSettings, isFixed,
1010			offset, showAnim, duration;
1011
1012		inst = $.datepicker._getInst( input );
1013		if ( $.datepicker._curInst && $.datepicker._curInst !== inst ) {
1014			$.datepicker._curInst.dpDiv.stop( true, true );
1015			if ( inst && $.datepicker._datepickerShowing ) {
1016				$.datepicker._hideDatepicker( $.datepicker._curInst.input[ 0 ] );
1017			}
1018		}
1019
1020		beforeShow = $.datepicker._get( inst, "beforeShow" );
1021		beforeShowSettings = beforeShow ? beforeShow.apply( input, [ input, inst ] ) : {};
1022		if ( beforeShowSettings === false ) {
1023			return;
1024		}
1025		datepicker_extendRemove( inst.settings, beforeShowSettings );
1026
1027		inst.lastVal = null;
1028		$.datepicker._lastInput = input;
1029		$.datepicker._setDateFromField( inst );
1030
1031		if ( $.datepicker._inDialog ) { // hide cursor
1032			input.value = "";
1033		}
1034		if ( !$.datepicker._pos ) { // position below input
1035			$.datepicker._pos = $.datepicker._findPos( input );
1036			$.datepicker._pos[ 1 ] += input.offsetHeight; // add the height
1037		}
1038
1039		isFixed = false;
1040		$( input ).parents().each( function() {
1041			isFixed |= $( this ).css( "position" ) === "fixed";
1042			return !isFixed;
1043		} );
1044
1045		offset = { left: $.datepicker._pos[ 0 ], top: $.datepicker._pos[ 1 ] };
1046		$.datepicker._pos = null;
1047
1048		//to avoid flashes on Firefox
1049		inst.dpDiv.empty();
1050
1051		// determine sizing offscreen
1052		inst.dpDiv.css( { position: "absolute", display: "block", top: "-1000px" } );
1053		$.datepicker._updateDatepicker( inst );
1054
1055		// fix width for dynamic number of date pickers
1056		// and adjust position before showing
1057		offset = $.datepicker._checkOffset( inst, offset, isFixed );
1058		inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ?
1059			"static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
1060			left: offset.left + "px", top: offset.top + "px" } );
1061
1062		if ( !inst.inline ) {
1063			showAnim = $.datepicker._get( inst, "showAnim" );
1064			duration = $.datepicker._get( inst, "duration" );
1065			inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
1066			$.datepicker._datepickerShowing = true;
1067
1068			if ( $.effects && $.effects.effect[ showAnim ] ) {
1069				inst.dpDiv.show( showAnim, $.datepicker._get( inst, "showOptions" ), duration );
1070			} else {
1071				inst.dpDiv[ showAnim || "show" ]( showAnim ? duration : null );
1072			}
1073
1074			if ( $.datepicker._shouldFocusInput( inst ) ) {
1075				inst.input.trigger( "focus" );
1076			}
1077
1078			$.datepicker._curInst = inst;
1079		}
1080	},
1081
1082	/* Generate the date picker content. */
1083	_updateDatepicker: function( inst ) {
1084		this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
1085		datepicker_instActive = inst; // for delegate hover events
1086		inst.dpDiv.empty().append( this._generateHTML( inst ) );
1087		this._attachHandlers( inst );
1088
1089		var origyearshtml,
1090			numMonths = this._getNumberOfMonths( inst ),
1091			cols = numMonths[ 1 ],
1092			width = 17,
1093			activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ),
1094			onUpdateDatepicker = $.datepicker._get( inst, "onUpdateDatepicker" );
1095
1096		if ( activeCell.length > 0 ) {
1097			datepicker_handleMouseover.apply( activeCell.get( 0 ) );
1098		}
1099
1100		inst.dpDiv.removeClass( "ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4" ).width( "" );
1101		if ( cols > 1 ) {
1102			inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" );
1103		}
1104		inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) +
1105			"Class" ]( "ui-datepicker-multi" );
1106		inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) +
1107			"Class" ]( "ui-datepicker-rtl" );
1108
1109		if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
1110			inst.input.trigger( "focus" );
1111		}
1112
1113		// Deffered render of the years select (to avoid flashes on Firefox)
1114		if ( inst.yearshtml ) {
1115			origyearshtml = inst.yearshtml;
1116			setTimeout( function() {
1117
1118				//assure that inst.yearshtml didn't change.
1119				if ( origyearshtml === inst.yearshtml && inst.yearshtml ) {
vendor: 5,508 bytes, lines 1120-1278
1120					inst.dpDiv.find( "select.ui-datepicker-year" ).first().replaceWith( inst.yearshtml );
1121				}
1122				origyearshtml = inst.yearshtml = null;
1123			}, 0 );
1124		}
1125
1126		if ( onUpdateDatepicker ) {
1127			onUpdateDatepicker.apply( ( inst.input ? inst.input[ 0 ] : null ), [ inst ] );
1128		}
1129	},
1130
1131	// #6694 - don't focus the input if it's already focused
1132	// this breaks the change event in IE
1133	// Support: IE and jQuery <1.9
1134	_shouldFocusInput: function( inst ) {
1135		return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
1136	},
1137
1138	/* Check positioning to remain on screen. */
1139	_checkOffset: function( inst, offset, isFixed ) {
1140		var dpWidth = inst.dpDiv.outerWidth(),
1141			dpHeight = inst.dpDiv.outerHeight(),
1142			inputWidth = inst.input ? inst.input.outerWidth() : 0,
1143			inputHeight = inst.input ? inst.input.outerHeight() : 0,
1144			viewWidth = document.documentElement.clientWidth + ( isFixed ? 0 : $( document ).scrollLeft() ),
1145			viewHeight = document.documentElement.clientHeight + ( isFixed ? 0 : $( document ).scrollTop() );
1146
1147		offset.left -= ( this._get( inst, "isRTL" ) ? ( dpWidth - inputWidth ) : 0 );
1148		offset.left -= ( isFixed && offset.left === inst.input.offset().left ) ? $( document ).scrollLeft() : 0;
1149		offset.top -= ( isFixed && offset.top === ( inst.input.offset().top + inputHeight ) ) ? $( document ).scrollTop() : 0;
1150
1151		// Now check if datepicker is showing outside window viewport - move to a better place if so.
1152		offset.left -= Math.min( offset.left, ( offset.left + dpWidth > viewWidth && viewWidth > dpWidth ) ?
1153			Math.abs( offset.left + dpWidth - viewWidth ) : 0 );
1154		offset.top -= Math.min( offset.top, ( offset.top + dpHeight > viewHeight && viewHeight > dpHeight ) ?
1155			Math.abs( dpHeight + inputHeight ) : 0 );
1156
1157		return offset;
1158	},
1159
1160	/* Find an object's position on the screen. */
1161	_findPos: function( obj ) {
1162		var position,
1163			inst = this._getInst( obj ),
1164			isRTL = this._get( inst, "isRTL" );
1165
1166		while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.pseudos.hidden( obj ) ) ) {
1167			obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
1168		}
1169
1170		position = $( obj ).offset();
1171		return [ position.left, position.top ];
1172	},
1173
1174	/* Hide the date picker from view.
1175	 * @param  input  element - the input field attached to the date picker
1176	 */
1177	_hideDatepicker: function( input ) {
1178		var showAnim, duration, postProcess, onClose,
1179			inst = this._curInst;
1180
1181		if ( !inst || ( input && inst !== $.data( input, "datepicker" ) ) ) {
1182			return;
1183		}
1184
1185		if ( this._datepickerShowing ) {
1186			showAnim = this._get( inst, "showAnim" );
1187			duration = this._get( inst, "duration" );
1188			postProcess = function() {
1189				$.datepicker._tidyDialog( inst );
1190			};
1191
1192			// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
1193			if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
1194				inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
1195			} else {
1196				inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
1197					( showAnim === "fadeIn" ? "fadeOut" : "hide" ) ) ]( ( showAnim ? duration : null ), postProcess );
1198			}
1199
1200			if ( !showAnim ) {
1201				postProcess();
1202			}
1203			this._datepickerShowing = false;
1204
1205			onClose = this._get( inst, "onClose" );
1206			if ( onClose ) {
1207				onClose.apply( ( inst.input ? inst.input[ 0 ] : null ), [ ( inst.input ? inst.input.val() : "" ), inst ] );
1208			}
1209
1210			this._lastInput = null;
1211			if ( this._inDialog ) {
1212				this._dialogInput.css( { position: "absolute", left: "0", top: "-100px" } );
1213				if ( $.blockUI ) {
1214					$.unblockUI();
1215					$( "body" ).append( this.dpDiv );
1216				}
1217			}
1218			this._inDialog = false;
1219		}
1220	},
1221
1222	/* Tidy up after a dialog display. */
1223	_tidyDialog: function( inst ) {
1224		inst.dpDiv.removeClass( this._dialogClass ).off( ".ui-datepicker-calendar" );
1225	},
1226
1227	/* Close date picker if clicked elsewhere. */
1228	_checkExternalClick: function( event ) {
1229		if ( !$.datepicker._curInst ) {
1230			return;
1231		}
1232
1233		var $target = $( event.target ),
1234			inst = $.datepicker._getInst( $target[ 0 ] );
1235
1236		if ( ( ( $target[ 0 ].id !== $.datepicker._mainDivId &&
1237				$target.parents( "#" + $.datepicker._mainDivId ).length === 0 &&
1238				!$target.hasClass( $.datepicker.markerClassName ) &&
1239				!$target.closest( "." + $.datepicker._triggerClass ).length &&
1240				$.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) ||
1241			( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) {
1242				$.datepicker._hideDatepicker();
1243		}
1244	},
1245
1246	/* Adjust one of the date sub-fields. */
1247	_adjustDate: function( id, offset, period ) {
1248		var target = $( id ),
1249			inst = this._getInst( target[ 0 ] );
1250
1251		if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
1252			return;
1253		}
1254		this._adjustInstDate( inst, offset, period );
1255		this._updateDatepicker( inst );
1256	},
1257
1258	/* Action for current link. */
1259	_gotoToday: function( id ) {
1260		var date,
1261			target = $( id ),
1262			inst = this._getInst( target[ 0 ] );
1263
1264		if ( this._get( inst, "gotoCurrent" ) && inst.currentDay ) {
1265			inst.selectedDay = inst.currentDay;
1266			inst.drawMonth = inst.selectedMonth = inst.currentMonth;
1267			inst.drawYear = inst.selectedYear = inst.currentYear;
1268		} else {
1269			date = new Date();
1270			inst.selectedDay = date.getDate();
1271			inst.drawMonth = inst.selectedMonth = date.getMonth();
1272			inst.drawYear = inst.selectedYear = date.getFullYear();
1273		}
1274		this._notifyChange( inst );
1275		this._adjustDate( target );
1276	},
1277
1278	/* Action for selecting a new month/year. */
vendor: 4,615 bytes, lines 1279-1410
1279	_selectMonthYear: function( id, select, period ) {
1280		var target = $( id ),
1281			inst = this._getInst( target[ 0 ] );
1282
1283		inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] =
1284		inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
1285			parseInt( select.options[ select.selectedIndex ].value, 10 );
1286
1287		this._notifyChange( inst );
1288		this._adjustDate( target );
1289	},
1290
1291	/* Action for selecting a day. */
1292	_selectDay: function( id, month, year, td ) {
1293		var inst,
1294			target = $( id );
1295
1296		if ( $( td ).hasClass( this._unselectableClass ) || this._isDisabledDatepicker( target[ 0 ] ) ) {
1297			return;
1298		}
1299
1300		inst = this._getInst( target[ 0 ] );
1301		inst.selectedDay = inst.currentDay = parseInt( $( "a", td ).attr( "data-date" ) );
1302		inst.selectedMonth = inst.currentMonth = month;
1303		inst.selectedYear = inst.currentYear = year;
1304		this._selectDate( id, this._formatDate( inst,
1305			inst.currentDay, inst.currentMonth, inst.currentYear ) );
1306	},
1307
1308	/* Erase the input field and hide the date picker. */
1309	_clearDate: function( id ) {
1310		var target = $( id );
1311		this._selectDate( target, "" );
1312	},
1313
1314	/* Update the input field with the selected date. */
1315	_selectDate: function( id, dateStr ) {
1316		var onSelect,
1317			target = $( id ),
1318			inst = this._getInst( target[ 0 ] );
1319
1320		dateStr = ( dateStr != null ? dateStr : this._formatDate( inst ) );
1321		if ( inst.input ) {
1322			inst.input.val( dateStr );
1323		}
1324		this._updateAlternate( inst );
1325
1326		onSelect = this._get( inst, "onSelect" );
1327		if ( onSelect ) {
1328			onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );  // trigger custom callback
1329		} else if ( inst.input ) {
1330			inst.input.trigger( "change" ); // fire the change event
1331		}
1332
1333		if ( inst.inline ) {
1334			this._updateDatepicker( inst );
1335		} else {
1336			this._hideDatepicker();
1337			this._lastInput = inst.input[ 0 ];
1338			if ( typeof( inst.input[ 0 ] ) !== "object" ) {
1339				inst.input.trigger( "focus" ); // restore focus
1340			}
1341			this._lastInput = null;
1342		}
1343	},
1344
1345	/* Update any alternate field to synchronise with the main field. */
1346	_updateAlternate: function( inst ) {
1347		var altFormat, date, dateStr,
1348			altField = this._get( inst, "altField" );
1349
1350		if ( altField ) { // update alternate field too
1351			altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" );
1352			date = this._getDate( inst );
1353			dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) );
1354			$( document ).find( altField ).val( dateStr );
1355		}
1356	},
1357
1358	/* Set as beforeShowDay function to prevent selection of weekends.
1359	 * @param  date  Date - the date to customise
1360	 * @return [boolean, string] - is this date selectable?, what is its CSS class?
1361	 */
1362	noWeekends: function( date ) {
1363		var day = date.getDay();
1364		return [ ( day > 0 && day < 6 ), "" ];
1365	},
1366
1367	/* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
1368	 * @param  date  Date - the date to get the week for
1369	 * @return  number - the number of the week within the year that contains this date
1370	 */
1371	iso8601Week: function( date ) {
1372		var time,
1373			checkDate = new Date( date.getTime() );
1374
1375		// Find Thursday of this week starting on Monday
1376		checkDate.setDate( checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ) );
1377
1378		time = checkDate.getTime();
1379		checkDate.setMonth( 0 ); // Compare with Jan 1
1380		checkDate.setDate( 1 );
1381		return Math.floor( Math.round( ( time - checkDate ) / 86400000 ) / 7 ) + 1;
1382	},
1383
1384	/* Parse a string value into a date object.
1385	 * See formatDate below for the possible formats.
1386	 *
1387	 * @param  format string - the expected format of the date
1388	 * @param  value string - the date in the above format
1389	 * @param  settings Object - attributes include:
1390	 *					shortYearCutoff  number - the cutoff year for determining the century (optional)
1391	 *					dayNamesShort	string[7] - abbreviated names of the days from Sunday (optional)
1392	 *					dayNames		string[7] - names of the days from Sunday (optional)
1393	 *					monthNamesShort string[12] - abbreviated names of the months (optional)
1394	 *					monthNames		string[12] - names of the months (optional)
1395	 * @return  Date - the extracted date value or null if value is blank
1396	 */
1397	parseDate: function( format, value, settings ) {
1398		if ( format == null || value == null ) {
1399			throw "Invalid arguments";
1400		}
1401
1402		value = ( typeof value === "object" ? value.toString() : value + "" );
1403		if ( value === "" ) {
1404			return null;
1405		}
1406
1407		var iFormat, dim, extra,
1408			iValue = 0,
1409			shortYearCutoffTemp = ( settings ? settings.shortYearCutoff : null ) || this._defaults.shortYearCutoff,
1410			shortYearCutoff = ( typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp 
vendor: 5,431 bytes, lines 1410-1600
1410:
1411				new Date().getFullYear() % 100 + parseInt( shortYearCutoffTemp, 10 ) ),
1412			dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort,
1413			dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames,
1414			monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort,
1415			monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames,
1416			year = -1,
1417			month = -1,
1418			day = -1,
1419			doy = -1,
1420			literal = false,
1421			date,
1422
1423			// Check whether a format character is doubled
1424			lookAhead = function( match ) {
1425				var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
1426				if ( matches ) {
1427					iFormat++;
1428				}
1429				return matches;
1430			},
1431
1432			// Extract a number from the string value
1433			getNumber = function( match ) {
1434				var isDoubled = lookAhead( match ),
1435					size = ( match === "@" ? 14 : ( match === "!" ? 20 :
1436					( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
1437					minSize = ( match === "y" ? size : 1 ),
1438					digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
1439					num = value.substring( iValue ).match( digits );
1440				if ( !num ) {
1441					throw "Missing number at position " + iValue;
1442				}
1443				iValue += num[ 0 ].length;
1444				return parseInt( num[ 0 ], 10 );
1445			},
1446
1447			// Extract a name from the string value and convert to an index
1448			getName = function( match, shortNames, longNames ) {
1449				var index = -1,
1450					names = $.map( lookAhead( match ) ? longNames : shortNames, function( v, k ) {
1451						return [ [ k, v ] ];
1452					} ).sort( function( a, b ) {
1453						return -( a[ 1 ].length - b[ 1 ].length );
1454					} );
1455
1456				$.each( names, function( i, pair ) {
1457					var name = pair[ 1 ];
1458					if ( value.substr( iValue, name.length ).toLowerCase() === name.toLowerCase() ) {
1459						index = pair[ 0 ];
1460						iValue += name.length;
1461						return false;
1462					}
1463				} );
1464				if ( index !== -1 ) {
1465					return index + 1;
1466				} else {
1467					throw "Unknown name at position " + iValue;
1468				}
1469			},
1470
1471			// Confirm that a literal character matches the string value
1472			checkLiteral = function() {
1473				if ( value.charAt( iValue ) !== format.charAt( iFormat ) ) {
1474					throw "Unexpected literal at position " + iValue;
1475				}
1476				iValue++;
1477			};
1478
1479		for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
1480			if ( literal ) {
1481				if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
1482					literal = false;
1483				} else {
1484					checkLiteral();
1485				}
1486			} else {
1487				switch ( format.charAt( iFormat ) ) {
1488					case "d":
1489						day = getNumber( "d" );
1490						break;
1491					case "D":
1492						getName( "D", dayNamesShort, dayNames );
1493						break;
1494					case "o":
1495						doy = getNumber( "o" );
1496						break;
1497					case "m":
1498						month = getNumber( "m" );
1499						break;
1500					case "M":
1501						month = getName( "M", monthNamesShort, monthNames );
1502						break;
1503					case "y":
1504						year = getNumber( "y" );
1505						break;
1506					case "@":
1507						date = new Date( getNumber( "@" ) );
1508						year = date.getFullYear();
1509						month = date.getMonth() + 1;
1510						day = date.getDate();
1511						break;
1512					case "!":
1513						date = new Date( ( getNumber( "!" ) - this._ticksTo1970 ) / 10000 );
1514						year = date.getFullYear();
1515						month = date.getMonth() + 1;
1516						day = date.getDate();
1517						break;
1518					case "'":
1519						if ( lookAhead( "'" ) ) {
1520							checkLiteral();
1521						} else {
1522							literal = true;
1523						}
1524						break;
1525					default:
1526						checkLiteral();
1527				}
1528			}
1529		}
1530
1531		if ( iValue < value.length ) {
1532			extra = value.substr( iValue );
1533			if ( !/^\s+/.test( extra ) ) {
1534				throw "Extra/unparsed characters found in date: " + extra;
1535			}
1536		}
1537
1538		if ( year === -1 ) {
1539			year = new Date().getFullYear();
1540		} else if ( year < 100 ) {
1541			year += new Date().getFullYear() - new Date().getFullYear() % 100 +
1542				( year <= shortYearCutoff ? 0 : -100 );
1543		}
1544
1545		if ( doy > -1 ) {
1546			month = 1;
1547			day = doy;
1548			do {
1549				dim = this._getDaysInMonth( year, month - 1 );
1550				if ( day <= dim ) {
1551					break;
1552				}
1553				month++;
1554				day -= dim;
1555			} while ( true );
1556		}
1557
1558		date = this._daylightSavingAdjust( new Date( year, month - 1, day ) );
1559		if ( date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day ) {
1560			throw "Invalid date"; // E.g. 31/02/00
1561		}
1562		return date;
1563	},
1564
1565	/* Standard date formats. */
1566	ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
1567	COOKIE: "D, dd M yy",
1568	ISO_8601: "yy-mm-dd",
1569	RFC_822: "D, d M y",
1570	RFC_850: "DD, dd-M-y",
1571	RFC_1036: "D, d M y",
1572	RFC_1123: "D, d M yy",
1573	RFC_2822: "D, d M yy",
1574	RSS: "D, d M y", // RFC 822
1575	TICKS: "!",
1576	TIMESTAMP: "@",
1577	W3C: "yy-mm-dd", // ISO 8601
1578
1579	_ticksTo1970: ( ( ( 1970 - 1 ) * 365 + Math.floor( 1970 / 4 ) - Math.floor( 1970 / 100 ) +
1580		Math.floor( 1970 / 400 ) ) * 24 * 60 * 60 * 10000000 ),
1581
1582	/* Format a date object into a string value.
1583	 * The format can be combinations of the following:
1584	 * d  - day of month (no leading zero)
1585	 * dd - day of month (two digit)
1586	 * o  - day of year (no leading zeros)
1587	 * oo - day of year (three digit)
1588	 * D  - day name short
1589	 * DD - day name long
1590	 * m  - month of year (no leading zero)
1591	 * mm - month of year (two digit)
1592	 * M  - month name short
1593	 * MM - month name long
1594	 * y  - year (two digit)
1595	 * yy - year (four digit)
1596	 * @ - Unix timestamp (ms since 01/01/1970)
1597	 * ! - Windows ticks (100ns since 01/01/0001)
1598	 * "..." - literal text
1599	 * '' - single quote
1600	 *
vendor: 9,422 bytes, lines 1601-1890
1601	 * @param  format string - the desired format of the date
1602	 * @param  date Date - the date value to format
1603	 * @param  settings Object - attributes include:
1604	 *					dayNamesShort	string[7] - abbreviated names of the days from Sunday (optional)
1605	 *					dayNames		string[7] - names of the days from Sunday (optional)
1606	 *					monthNamesShort string[12] - abbreviated names of the months (optional)
1607	 *					monthNames		string[12] - names of the months (optional)
1608	 * @return  string - the date in the above format
1609	 */
1610	formatDate: function( format, date, settings ) {
1611		if ( !date ) {
1612			return "";
1613		}
1614
1615		var iFormat,
1616			dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort,
1617			dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames,
1618			monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort,
1619			monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames,
1620
1621			// Check whether a format character is doubled
1622			lookAhead = function( match ) {
1623				var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
1624				if ( matches ) {
1625					iFormat++;
1626				}
1627				return matches;
1628			},
1629
1630			// Format a number, with leading zero if necessary
1631			formatNumber = function( match, value, len ) {
1632				var num = "" + value;
1633				if ( lookAhead( match ) ) {
1634					while ( num.length < len ) {
1635						num = "0" + num;
1636					}
1637				}
1638				return num;
1639			},
1640
1641			// Format a name, short or long as requested
1642			formatName = function( match, value, shortNames, longNames ) {
1643				return ( lookAhead( match ) ? longNames[ value ] : shortNames[ value ] );
1644			},
1645			output = "",
1646			literal = false;
1647
1648		if ( date ) {
1649			for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
1650				if ( literal ) {
1651					if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
1652						literal = false;
1653					} else {
1654						output += format.charAt( iFormat );
1655					}
1656				} else {
1657					switch ( format.charAt( iFormat ) ) {
1658						case "d":
1659							output += formatNumber( "d", date.getDate(), 2 );
1660							break;
1661						case "D":
1662							output += formatName( "D", date.getDay(), dayNamesShort, dayNames );
1663							break;
1664						case "o":
1665							output += formatNumber( "o",
1666								Math.round( ( new Date( date.getFullYear(), date.getMonth(), date.getDate() ).getTime() - new Date( date.getFullYear(), 0, 0 ).getTime() ) / 86400000 ), 3 );
1667							break;
1668						case "m":
1669							output += formatNumber( "m", date.getMonth() + 1, 2 );
1670							break;
1671						case "M":
1672							output += formatName( "M", date.getMonth(), monthNamesShort, monthNames );
1673							break;
1674						case "y":
1675							output += ( lookAhead( "y" ) ? date.getFullYear() :
1676								( date.getFullYear() % 100 < 10 ? "0" : "" ) + date.getFullYear() % 100 );
1677							break;
1678						case "@":
1679							output += date.getTime();
1680							break;
1681						case "!":
1682							output += date.getTime() * 10000 + this._ticksTo1970;
1683							break;
1684						case "'":
1685							if ( lookAhead( "'" ) ) {
1686								output += "'";
1687							} else {
1688								literal = true;
1689							}
1690							break;
1691						default:
1692							output += format.charAt( iFormat );
1693					}
1694				}
1695			}
1696		}
1697		return output;
1698	},
1699
1700	/* Extract all possible characters from the date format. */
1701	_possibleChars: function( format ) {
1702		var iFormat,
1703			chars = "",
1704			literal = false,
1705
1706			// Check whether a format character is doubled
1707			lookAhead = function( match ) {
1708				var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
1709				if ( matches ) {
1710					iFormat++;
1711				}
1712				return matches;
1713			};
1714
1715		for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
1716			if ( literal ) {
1717				if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
1718					literal = false;
1719				} else {
1720					chars += format.charAt( iFormat );
1721				}
1722			} else {
1723				switch ( format.charAt( iFormat ) ) {
1724					case "d": case "m": case "y": case "@":
1725						chars += "0123456789";
1726						break;
1727					case "D": case "M":
1728						return null; // Accept anything
1729					case "'":
1730						if ( lookAhead( "'" ) ) {
1731							chars += "'";
1732						} else {
1733							literal = true;
1734						}
1735						break;
1736					default:
1737						chars += format.charAt( iFormat );
1738				}
1739			}
1740		}
1741		return chars;
1742	},
1743
1744	/* Get a setting value, defaulting if necessary. */
1745	_get: function( inst, name ) {
1746		return inst.settings[ name ] !== undefined ?
1747			inst.settings[ name ] : this._defaults[ name ];
1748	},
1749
1750	/* Parse existing date and initialise date picker. */
1751	_setDateFromField: function( inst, noDefault ) {
1752		if ( inst.input.val() === inst.lastVal ) {
1753			return;
1754		}
1755
1756		var dateFormat = this._get( inst, "dateFormat" ),
1757			dates = inst.lastVal = inst.input ? inst.input.val() : null,
1758			defaultDate = this._getDefaultDate( inst ),
1759			date = defaultDate,
1760			settings = this._getFormatConfig( inst );
1761
1762		try {
1763			date = this.parseDate( dateFormat, dates, settings ) || defaultDate;
1764		} catch ( event ) {
1765			dates = ( noDefault ? "" : dates );
1766		}
1767		inst.selectedDay = date.getDate();
1768		inst.drawMonth = inst.selectedMonth = date.getMonth();
1769		inst.drawYear = inst.selectedYear = date.getFullYear();
1770		inst.currentDay = ( dates ? date.getDate() : 0 );
1771		inst.currentMonth = ( dates ? date.getMonth() : 0 );
1772		inst.currentYear = ( dates ? date.getFullYear() : 0 );
1773		this._adjustInstDate( inst );
1774	},
1775
1776	/* Retrieve the default date shown on opening. */
1777	_getDefaultDate: function( inst ) {
1778		return this._restrictMinMax( inst,
1779			this._determineDate( inst, this._get( inst, "defaultDate" ), new Date() ) );
1780	},
1781
1782	/* A date may be specified as an exact value or a relative one. */
1783	_determineDate: function( inst, date, defaultDate ) {
1784		var offsetNumeric = function( offset ) {
1785				var date = new Date();
1786				date.setDate( date.getDate() + offset );
1787				return date;
1788			},
1789			offsetString = function( offset ) {
1790				try {
1791					return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
1792						offset, $.datepicker._getFormatConfig( inst ) );
1793				} catch ( e ) {
1794
1795					// Ignore
1796				}
1797
1798				var date = ( offset.toLowerCase().match( /^c/ ) ?
1799					$.datepicker._getDate( inst ) : null ) || new Date(),
1800					year = date.getFullYear(),
1801					month = date.getMonth(),
1802					day = date.getDate(),
1803					pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
1804					matches = pattern.exec( offset );
1805
1806				while ( matches ) {
1807					switch ( matches[ 2 ] || "d" ) {
1808						case "d" : case "D" :
1809							day += parseInt( matches[ 1 ], 10 ); break;
1810						case "w" : case "W" :
1811							day += parseInt( matches[ 1 ], 10 ) * 7; break;
1812						case "m" : case "M" :
1813							month += parseInt( matches[ 1 ], 10 );
1814							day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
1815							break;
1816						case "y": case "Y" :
1817							year += parseInt( matches[ 1 ], 10 );
1818							day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
1819							break;
1820					}
1821					matches = pattern.exec( offset );
1822				}
1823				return new Date( year, month, day );
1824			},
1825			newDate = ( date == null || date === "" ? defaultDate : ( typeof date === "string" ? offsetString( date ) :
1826				( typeof date === "number" ? ( isNaN( date ) ? defaultDate : offsetNumeric( date ) ) : new Date( date.getTime() ) ) ) );
1827
1828		newDate = ( newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate );
1829		if ( newDate ) {
1830			newDate.setHours( 0 );
1831			newDate.setMinutes( 0 );
1832			newDate.setSeconds( 0 );
1833			newDate.setMilliseconds( 0 );
1834		}
1835		return this._daylightSavingAdjust( newDate );
1836	},
1837
1838	/* Handle switch to/from daylight saving.
1839	 * Hours may be non-zero on daylight saving cut-over:
1840	 * > 12 when midnight changeover, but then cannot generate
1841	 * midnight datetime, so jump to 1AM, otherwise reset.
1842	 * @param  date  (Date) the date to check
1843	 * @return  (Date) the corrected date
1844	 */
1845	_daylightSavingAdjust: function( date ) {
1846		if ( !date ) {
1847			return null;
1848		}
1849		date.setHours( date.getHours() > 12 ? date.getHours() + 2 : 0 );
1850		return date;
1851	},
1852
1853	/* Set the date(s) directly. */
1854	_setDate: function( inst, date, noChange ) {
1855		var clear = !date,
1856			origMonth = inst.selectedMonth,
1857			origYear = inst.selectedYear,
1858			newDate = this._restrictMinMax( inst, this._determineDate( inst, date, new Date() ) );
1859
1860		inst.selectedDay = inst.currentDay = newDate.getDate();
1861		inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
1862		inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
1863		if ( ( origMonth !== inst.selectedMonth || origYear !== inst.selectedYear ) && !noChange ) {
1864			this._notifyChange( inst );
1865		}
1866		this._adjustInstDate( inst );
1867		if ( inst.input ) {
1868			inst.input.val( clear ? "" : this._formatDate( inst ) );
1869		}
1870	},
1871
1872	/* Retrieve the date(s) directly. */
1873	_getDate: function( inst ) {
1874		var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
1875			this._daylightSavingAdjust( new Date(
1876			inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
1877			return startDate;
1878	},
1879
1880	/* Attach the onxxx handlers.  These are declared statically so
1881	 * they work with static code transformers like Caja.
1882	 */
1883	_attachHandlers: function( inst ) {
1884		var stepMonths = this._get( inst, "stepMonths" ),
1885			id = "#" + inst.id.replace( /\\\\/g, "\\" );
1886		inst.dpDiv.find( "[data-handler]" ).map( function() {
1887			var handler = {
1888				prev: function() {
1889					$.datepicker._adjustDate( id, -stepMonths, "M" );
1890				
vendor: 12,227 bytes, lines 1890-2159
1890	return false;
1891				},
1892				next: function() {
1893					$.datepicker._adjustDate( id, +stepMonths, "M" );
1894					return false;
1895				},
1896				hide: function() {
1897					$.datepicker._hideDatepicker();
1898				},
1899				today: function() {
1900					$.datepicker._gotoToday( id );
1901				},
1902				selectDay: function() {
1903					$.datepicker._selectDay( id, +this.getAttribute( "data-month" ), +this.getAttribute( "data-year" ), this );
1904					return false;
1905				},
1906				selectMonth: function() {
1907					$.datepicker._selectMonthYear( id, this, "M" );
1908					return false;
1909				},
1910				selectYear: function() {
1911					$.datepicker._selectMonthYear( id, this, "Y" );
1912					return false;
1913				}
1914			};
1915			$( this ).on( this.getAttribute( "data-event" ), handler[ this.getAttribute( "data-handler" ) ] );
1916		} );
1917	},
1918
1919	/* Generate the HTML for the current state of the date picker. */
1920	_generateHTML: function( inst ) {
1921		var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
1922			controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
1923			monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
1924			selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
1925			cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
1926			printDate, dRow, tbody, daySettings, otherMonth, unselectable,
1927			tempDate = new Date(),
1928			today = this._daylightSavingAdjust(
1929				new Date( tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate() ) ), // clear time
1930			isRTL = this._get( inst, "isRTL" ),
1931			showButtonPanel = this._get( inst, "showButtonPanel" ),
1932			hideIfNoPrevNext = this._get( inst, "hideIfNoPrevNext" ),
1933			navigationAsDateFormat = this._get( inst, "navigationAsDateFormat" ),
1934			numMonths = this._getNumberOfMonths( inst ),
1935			showCurrentAtPos = this._get( inst, "showCurrentAtPos" ),
1936			stepMonths = this._get( inst, "stepMonths" ),
1937			isMultiMonth = ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ),
1938			currentDate = this._daylightSavingAdjust( ( !inst.currentDay ? new Date( 9999, 9, 9 ) :
1939				new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ),
1940			minDate = this._getMinMaxDate( inst, "min" ),
1941			maxDate = this._getMinMaxDate( inst, "max" ),
1942			drawMonth = inst.drawMonth - showCurrentAtPos,
1943			drawYear = inst.drawYear;
1944
1945		if ( drawMonth < 0 ) {
1946			drawMonth += 12;
1947			drawYear--;
1948		}
1949		if ( maxDate ) {
1950			maxDraw = this._daylightSavingAdjust( new Date( maxDate.getFullYear(),
1951				maxDate.getMonth() - ( numMonths[ 0 ] * numMonths[ 1 ] ) + 1, maxDate.getDate() ) );
1952			maxDraw = ( minDate && maxDraw < minDate ? minDate : maxDraw );
1953			while ( this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 ) ) > maxDraw ) {
1954				drawMonth--;
1955				if ( drawMonth < 0 ) {
1956					drawMonth = 11;
1957					drawYear--;
1958				}
1959			}
1960		}
1961		inst.drawMonth = drawMonth;
1962		inst.drawYear = drawYear;
1963
1964		prevText = this._get( inst, "prevText" );
1965		prevText = ( !navigationAsDateFormat ? prevText : this.formatDate( prevText,
1966			this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ),
1967			this._getFormatConfig( inst ) ) );
1968
1969		if ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ) {
1970			prev = $( "<button>" )
1971				.attr( {
1972					"class": "ui-datepicker-prev ui-corner-all",
1973					"data-handler": "prev",
1974					"data-event": "click",
1975          "type": "button",
1976					title: prevText
1977				} )
1978				.append(
1979					$( "<span>" )
1980						.addClass( "ui-icon ui-icon-circle-triangle-" +
1981							( isRTL ? "e" : "w" ) )
1982						.text( prevText )
1983				)[ 0 ].outerHTML;
1984		} else if ( hideIfNoPrevNext ) {
1985			prev = "";
1986		} else {
1987			prev = $( "<a>" )
1988				.attr( {
1989					"class": "ui-datepicker-prev ui-corner-all ui-state-disabled",
1990					title: prevText
1991				} )
1992				.append(
1993					$( "<span>" )
1994						.addClass( "ui-icon ui-icon-circle-triangle-" +
1995							( isRTL ? "e" : "w" ) )
1996						.text( prevText )
1997				)[ 0 ].outerHTML;
1998		}
1999
2000		nextText = this._get( inst, "nextText" );
2001		nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText,
2002			this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ),
2003			this._getFormatConfig( inst ) ) );
2004
2005		if ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ) {
2006			next = $( "<button>" )
2007				.attr( {
2008					"class": "ui-datepicker-next ui-corner-all",
2009					"data-handler": "next",
2010					"data-event": "click",
2011          "type": "button",
2012					title: nextText
2013				} )
2014				.append(
2015					$( "<span>" )
2016						.addClass( "ui-icon ui-icon-circle-triangle-" +
2017							( isRTL ? "w" : "e" ) )
2018						.text( nextText )
2019				)[ 0 ].outerHTML;
2020		} else if ( hideIfNoPrevNext ) {
2021			next = "";
2022		} else {
2023			next = $( "<a>" )
2024				.attr( {
2025					"class": "ui-datepicker-next ui-corner-all ui-state-disabled",
2026					title: nextText
2027				} )
2028				.append(
2029					$( "<span>" )
2030						.attr( "class", "ui-icon ui-icon-circle-triangle-" +
2031							( isRTL ? "w" : "e" ) )
2032						.text( nextText )
2033				)[ 0 ].outerHTML;
2034		}
2035
2036		currentText = this._get( inst, "currentText" );
2037		gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today );
2038		currentText = ( !navigationAsDateFormat ? currentText :
2039			this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) );
2040
2041		controls = "";
2042		if ( !inst.inline ) {
2043			controls = $( "<button>" )
2044				.attr( {
2045					type: "button",
2046					"class": "ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all",
2047					"data-handler": "hide",
2048					"data-event": "click"
2049				} )
2050				.text( this._get( inst, "closeText" ) )[ 0 ].outerHTML;
2051		}
2052
2053		buttonPanel = "";
2054		if ( showButtonPanel ) {
2055			buttonPanel = $( "<div class='ui-datepicker-buttonpane ui-widget-content'>" )
2056				.append( isRTL ? controls : "" )
2057				.append( this._isInRange( inst, gotoDate ) ?
2058					$( "<button>" )
2059						.attr( {
2060							type: "button",
2061							"class": "ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all",
2062							"data-handler": "today",
2063							"data-event": "click"
2064						} )
2065						.text( currentText ) :
2066					"" )
2067				.append( isRTL ? "" : controls )[ 0 ].outerHTML;
2068		}
2069
2070		firstDay = parseInt( this._get( inst, "firstDay" ), 10 );
2071		firstDay = ( isNaN( firstDay ) ? 0 : firstDay );
2072
2073		showWeek = this._get( inst, "showWeek" );
2074		dayNames = this._get( inst, "dayNames" );
2075		dayNamesMin = this._get( inst, "dayNamesMin" );
2076		monthNames = this._get( inst, "monthNames" );
2077		monthNamesShort = this._get( inst, "monthNamesShort" );
2078		beforeShowDay = this._get( inst, "beforeShowDay" );
2079		showOtherMonths = this._get( inst, "showOtherMonths" );
2080		selectOtherMonths = this._get( inst, "selectOtherMonths" );
2081		defaultDate = this._getDefaultDate( inst );
2082		html = "";
2083
2084		for ( row = 0; row < numMonths[ 0 ]; row++ ) {
2085			group = "";
2086			this.maxRows = 4;
2087			for ( col = 0; col < numMonths[ 1 ]; col++ ) {
2088				selectedDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, inst.selectedDay ) );
2089				cornerClass = " ui-corner-all";
2090				calender = "";
2091				if ( isMultiMonth ) {
2092					calender += "<div class='ui-datepicker-group";
2093					if ( numMonths[ 1 ] > 1 ) {
2094						switch ( col ) {
2095							case 0: calender += " ui-datepicker-group-first";
2096								cornerClass = " ui-corner-" + ( isRTL ? "right" : "left" ); break;
2097							case numMonths[ 1 ] - 1: calender += " ui-datepicker-group-last";
2098								cornerClass = " ui-corner-" + ( isRTL ? "left" : "right" ); break;
2099							default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
2100						}
2101					}
2102					calender += "'>";
2103				}
2104				calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
2105					( /all|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) +
2106					( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
2107					this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate,
2108					row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
2109					"</div><table role='grid' class='ui-datepicker-calendar'><thead>" +
2110					"<tr>";
2111				thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" );
2112				for ( dow = 0; dow < 7; dow++ ) { // days of the week
2113					day = ( dow + firstDay ) % 7;
2114					thead += "<th scope='col'" + ( ( dow + firstDay + 6 ) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "" ) + ">" +
2115						"<span title='" + dayNames[ day ] + "'>" + dayNamesMin[ day ] + "</span></th>";
2116				}
2117				calender += thead + "</tr></thead><tbody>";
2118				daysInMonth = this._getDaysInMonth( drawYear, drawMonth );
2119				if ( drawYear === inst.selectedYear && drawMonth === inst.selectedMonth ) {
2120					inst.selectedDay = Math.min( inst.selectedDay, daysInMonth );
2121				}
2122				leadDays = ( this._getFirstDayOfMonth( drawYear, drawMonth ) - firstDay + 7 ) % 7;
2123				curRows = Math.ceil( ( leadDays + daysInMonth ) / 7 ); // calculate the number of rows to generate
2124				numRows = ( isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows ); //If multiple months, use the higher number of rows (see #7043)
2125				this.maxRows = numRows;
2126				printDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 - leadDays ) );
2127				for ( dRow = 0; dRow < numRows; dRow++ ) { // create date picker rows
2128					calender += "<tr role='row'>";
2129					tbody = ( !showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
2130						this._get( inst, "calculateWeek" )( printDate ) + "</td>" );
2131					for ( dow = 0; dow < 7; dow++ ) { // create date picker days
2132						daySettings = ( beforeShowDay ?
2133							beforeShowDay.apply( ( inst.input ? inst.input[ 0 ] : null ), [ printDate ] ) : [ true, "" ] );
2134						otherMonth = ( printDate.getMonth() !== drawMonth );
2135						unselectable = ( otherMonth && !selectOtherMonths ) || !daySettings[ 0 ] ||
2136							( minDate && printDate < minDate ) || ( maxDate && printDate > maxDate );
2137						tbody += "<td role='gridcell' class='" +
2138							( ( dow + firstDay + 6 ) % 7 >= 5 ? " ui-datepicker-week-end" : "" ) + // highlight weekends
2139							( otherMonth ? " ui-datepicker-other-month" : "" ) + // highlight days from other months
2140							( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key
2141							( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
2142
2143							// or defaultDate is current printedDate and defaultDate is selectedDate
2144							" " + this._dayOverClass : "" ) + // highlight selected day
2145							( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) +  // highlight unselectable days
2146							( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
2147							( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
2148							( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
2149							( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "&#39;" ) + "'" : "" ) + // cell title
2150							( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) +
2151             "' aria-selected='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + "'" + ">" + // mark date as selected for screen reader
2152							( otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
2153							( unselectable ? "<span class='ui-state-default' aria-disabled='true'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
2154							( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
2155							( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
2156							( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
2157							"' href='#' aria-current='" + ( printDate.getTime() === today.getTime() ? "true" : "false" ) + // mark date as selected for screen reader
2158              "' data-date='" + printDate.getDate() + // store date as data
2159              "' aria-label='" + printDate.getDate() + " " + monthNames[ drawMonth ] + " " + drawYear + // aria-label
vendor: 11,592 bytes, lines 2159-2460
2159
2160							"'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
2161						printDate.setDate( printDate.getDate() + 1 );
2162						printDate = this._daylightSavingAdjust( printDate );
2163					}
2164					calender += tbody + "</tr>";
2165				}
2166				drawMonth++;
2167				if ( drawMonth > 11 ) {
2168					drawMonth = 0;
2169					drawYear++;
2170				}
2171				calender += "</tbody></table>" + ( isMultiMonth ? "</div>" +
2172							( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
2173				group += calender;
2174			}
2175			html += group;
2176		}
2177		html += buttonPanel;
2178		inst._keyEvent = false;
2179		return html;
2180	},
2181
2182	/* Generate the month and year header. */
2183	_generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate,
2184			secondary, monthNames, monthNamesShort ) {
2185
2186		var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
2187			changeMonth = this._get( inst, "changeMonth" ),
2188			changeYear = this._get( inst, "changeYear" ),
2189			showMonthAfterYear = this._get( inst, "showMonthAfterYear" ),
2190			selectMonthLabel = this._get( inst, "selectMonthLabel" ),
2191			selectYearLabel = this._get( inst, "selectYearLabel" ),
2192			html = "<div class='ui-datepicker-title'>",
2193			monthHtml = "";
2194
2195		// Month selection
2196		if ( secondary || !changeMonth ) {
2197			monthHtml += "<span class='ui-datepicker-month'>" + monthNames[ drawMonth ] + "</span>";
2198		} else {
2199			inMinYear = ( minDate && minDate.getFullYear() === drawYear );
2200			inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear );
2201			monthHtml += "<select class='ui-datepicker-month' aria-label='" + selectMonthLabel + "' data-handler='selectMonth' data-event='change'>";
2202			for ( month = 0; month < 12; month++ ) {
2203				if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) {
2204					monthHtml += "<option value='" + month + "'" +
2205						( month === drawMonth ? " selected='selected'" : "" ) +
2206						">" + monthNamesShort[ month ] + "</option>";
2207				}
2208			}
2209			monthHtml += "</select>";
2210		}
2211
2212		if ( !showMonthAfterYear ) {
2213			html += monthHtml + ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" );
2214		}
2215
2216		// Year selection
2217		if ( !inst.yearshtml ) {
2218			inst.yearshtml = "";
2219			if ( secondary || !changeYear ) {
2220				html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
2221			} else {
2222
2223				// determine range of years to display
2224				years = this._get( inst, "yearRange" ).split( ":" );
2225				thisYear = new Date().getFullYear();
2226				determineYear = function( value ) {
2227					var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) :
2228						( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) :
2229						parseInt( value, 10 ) ) );
2230					return ( isNaN( year ) ? thisYear : year );
2231				};
2232				year = determineYear( years[ 0 ] );
2233				endYear = Math.max( year, determineYear( years[ 1 ] || "" ) );
2234				year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year );
2235				endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear );
2236				inst.yearshtml += "<select class='ui-datepicker-year' aria-label='" + selectYearLabel + "' data-handler='selectYear' data-event='change'>";
2237				for ( ; year <= endYear; year++ ) {
2238					inst.yearshtml += "<option value='" + year + "'" +
2239						( year === drawYear ? " selected='selected'" : "" ) +
2240						">" + year + "</option>";
2241				}
2242				inst.yearshtml += "</select>";
2243
2244				html += inst.yearshtml;
2245				inst.yearshtml = null;
2246			}
2247		}
2248
2249		html += this._get( inst, "yearSuffix" );
2250		if ( showMonthAfterYear ) {
2251			html += ( secondary || !( changeMonth && changeYear ) ? "&#xa0;" : "" ) + monthHtml;
2252		}
2253		html += "</div>"; // Close datepicker_header
2254		return html;
2255	},
2256
2257	/* Adjust one of the date sub-fields. */
2258	_adjustInstDate: function( inst, offset, period ) {
2259		var year = inst.selectedYear + ( period === "Y" ? offset : 0 ),
2260			month = inst.selectedMonth + ( period === "M" ? offset : 0 ),
2261			day = Math.min( inst.selectedDay, this._getDaysInMonth( year, month ) ) + ( period === "D" ? offset : 0 ),
2262			date = this._restrictMinMax( inst, this._daylightSavingAdjust( new Date( year, month, day ) ) );
2263
2264		inst.selectedDay = date.getDate();
2265		inst.drawMonth = inst.selectedMonth = date.getMonth();
2266		inst.drawYear = inst.selectedYear = date.getFullYear();
2267		if ( period === "M" || period === "Y" ) {
2268			this._notifyChange( inst );
2269		}
2270	},
2271
2272	/* Ensure a date is within any min/max bounds. */
2273	_restrictMinMax: function( inst, date ) {
2274		var minDate = this._getMinMaxDate( inst, "min" ),
2275			maxDate = this._getMinMaxDate( inst, "max" ),
2276			newDate = ( minDate && date < minDate ? minDate : date );
2277		return ( maxDate && newDate > maxDate ? maxDate : newDate );
2278	},
2279
2280	/* Notify change of month/year. */
2281	_notifyChange: function( inst ) {
2282		var onChange = this._get( inst, "onChangeMonthYear" );
2283		if ( onChange ) {
2284			onChange.apply( ( inst.input ? inst.input[ 0 ] : null ),
2285				[ inst.selectedYear, inst.selectedMonth + 1, inst ] );
2286		}
2287	},
2288
2289	/* Determine the number of months to show. */
2290	_getNumberOfMonths: function( inst ) {
2291		var numMonths = this._get( inst, "numberOfMonths" );
2292		return ( numMonths == null ? [ 1, 1 ] : ( typeof numMonths === "number" ? [ 1, numMonths ] : numMonths ) );
2293	},
2294
2295	/* Determine the current maximum date - ensure no time components are set. */
2296	_getMinMaxDate: function( inst, minMax ) {
2297		return this._determineDate( inst, this._get( inst, minMax + "Date" ), null );
2298	},
2299
2300	/* Find the number of days in a given month. */
2301	_getDaysInMonth: function( year, month ) {
2302		return 32 - this._daylightSavingAdjust( new Date( year, month, 32 ) ).getDate();
2303	},
2304
2305	/* Find the day of the week of the first of a month. */
2306	_getFirstDayOfMonth: function( year, month ) {
2307		return new Date( year, month, 1 ).getDay();
2308	},
2309
2310	/* Determines if we should allow a "next/prev" month display change. */
2311	_canAdjustMonth: function( inst, offset, curYear, curMonth ) {
2312		var numMonths = this._getNumberOfMonths( inst ),
2313			date = this._daylightSavingAdjust( new Date( curYear,
2314			curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) );
2315
2316		if ( offset < 0 ) {
2317			date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) );
2318		}
2319		return this._isInRange( inst, date );
2320	},
2321
2322	/* Is the given date in the accepted range? */
2323	_isInRange: function( inst, date ) {
2324		var yearSplit, currentYear,
2325			minDate = this._getMinMaxDate( inst, "min" ),
2326			maxDate = this._getMinMaxDate( inst, "max" ),
2327			minYear = null,
2328			maxYear = null,
2329			years = this._get( inst, "yearRange" );
2330			if ( years ) {
2331				yearSplit = years.split( ":" );
2332				currentYear = new Date().getFullYear();
2333				minYear = parseInt( yearSplit[ 0 ], 10 );
2334				maxYear = parseInt( yearSplit[ 1 ], 10 );
2335				if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
2336					minYear += currentYear;
2337				}
2338				if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
2339					maxYear += currentYear;
2340				}
2341			}
2342
2343		return ( ( !minDate || date.getTime() >= minDate.getTime() ) &&
2344			( !maxDate || date.getTime() <= maxDate.getTime() ) &&
2345			( !minYear || date.getFullYear() >= minYear ) &&
2346			( !maxYear || date.getFullYear() <= maxYear ) );
2347	},
2348
2349	/* Provide the configuration settings for formatting/parsing. */
2350	_getFormatConfig: function( inst ) {
2351		var shortYearCutoff = this._get( inst, "shortYearCutoff" );
2352		shortYearCutoff = ( typeof shortYearCutoff !== "string" ? shortYearCutoff :
2353			new Date().getFullYear() % 100 + parseInt( shortYearCutoff, 10 ) );
2354		return { shortYearCutoff: shortYearCutoff,
2355			dayNamesShort: this._get( inst, "dayNamesShort" ), dayNames: this._get( inst, "dayNames" ),
2356			monthNamesShort: this._get( inst, "monthNamesShort" ), monthNames: this._get( inst, "monthNames" ) };
2357	},
2358
2359	/* Format the given date for display. */
2360	_formatDate: function( inst, day, month, year ) {
2361		if ( !day ) {
2362			inst.currentDay = inst.selectedDay;
2363			inst.currentMonth = inst.selectedMonth;
2364			inst.currentYear = inst.selectedYear;
2365		}
2366		var date = ( day ? ( typeof day === "object" ? day :
2367			this._daylightSavingAdjust( new Date( year, month, day ) ) ) :
2368			this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
2369		return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) );
2370	}
2371} );
2372
2373/*
2374 * Bind hover events for datepicker elements.
2375 * Done via delegate so the binding only occurs once in the lifetime of the parent div.
2376 * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
2377 */
2378function datepicker_bindHover( dpDiv ) {
2379	var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
2380	return dpDiv.on( "mouseout", selector, function() {
2381			$( this ).removeClass( "ui-state-hover" );
2382			if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
2383				$( this ).removeClass( "ui-datepicker-prev-hover" );
2384			}
2385			if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
2386				$( this ).removeClass( "ui-datepicker-next-hover" );
2387			}
2388		} )
2389		.on( "mouseover", selector, datepicker_handleMouseover );
2390}
2391
2392function datepicker_handleMouseover() {
2393	if ( !$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? datepicker_instActive.dpDiv.parent()[ 0 ] : datepicker_instActive.input[ 0 ] ) ) {
2394		$( this ).parents( ".ui-datepicker-calendar" ).find( "a" ).removeClass( "ui-state-hover" );
2395		$( this ).addClass( "ui-state-hover" );
2396		if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
2397			$( this ).addClass( "ui-datepicker-prev-hover" );
2398		}
2399		if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
2400			$( this ).addClass( "ui-datepicker-next-hover" );
2401		}
2402	}
2403}
2404
2405/* jQuery extend now ignores nulls! */
2406function datepicker_extendRemove( target, props ) {
2407	$.extend( target, props );
2408	for ( var name in props ) {
2409		if ( props[ name ] == null ) {
2410			target[ name ] = props[ name ];
2411		}
2412	}
2413	return target;
2414}
2415
2416/* Invoke the datepicker functionality.
2417   @param  options  string - a command, optionally followed by additional parameters or
2418					Object - settings for attaching new datepicker functionality
2419   @return  jQuery object */
2420$.fn.datepicker = function( options ) {
2421
2422	/* Verify an empty collection wasn't passed - Fixes #6976 */
2423	if ( !this.length ) {
2424		return this;
2425	}
2426
2427	/* Initialise the date picker. */
2428	if ( !$.datepicker.initialized ) {
2429		$( document ).on( "mousedown", $.datepicker._checkExternalClick );
2430		$.datepicker.initialized = true;
2431	}
2432
2433	/* Append datepicker main container to body if not exist. */
2434	if ( $( "#" + $.datepicker._mainDivId ).length === 0 ) {
2435		$( "body" ).append( $.datepicker.dpDiv );
2436	}
2437
2438	var otherArgs = Array.prototype.slice.call( arguments, 1 );
2439	if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) {
2440		return $.datepicker[ "_" + options + "Datepicker" ].
2441			apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
2442	}
2443	if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) {
2444		return $.datepicker[ "_" + options + "Datepicker" ].
2445			apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
2446	}
2447	return this.each( function() {
2448		if ( typeof options === "string" ) {
2449			$.datepicker[ "_" + options + "Datepicker" ]
2450				.apply( $.datepicker, [ this ].concat( otherArgs ) );
2451		} else {
2452			$.datepicker._attachDatepicker( this, options );
2453		}
2454	} );
2455};
2456
2457$.datepicker = new Datepicker(); // singleton instance
2458$.datepicker.initialized = false;
2459$.datepicker.uuid = new Date().getTime();
2460$.datepicker.version = "1.1
24603.2";
2461
2462// Custom keyboard navigation for Datepicker
2463const originalUpdateDatepicker = $.datepicker._updateDatepicker;
2464
2465$.datepicker._updateDatepicker = function (inst) {
2466  const activeElement = document.activeElement;
2467  const activeClass = activeElement?.className;
2468  const activeDate = activeElement?.getAttribute("data-date");
2469
2470  originalUpdateDatepicker.call(this, inst);
2471
2472  switch (true) {
2473		case !!activeDate:
2474			inst.dpDiv.find(`[data-date="${activeDate}"]`).focus();
2475			break;
2476		case activeClass?.includes("ui-datepicker-prev"):
2477			inst.dpDiv.find(".ui-datepicker-prev").focus();
2478			break;
2479		case activeClass?.includes("ui-datepicker-next"):
2480			inst.dpDiv.find(".ui-datepicker-next").focus();
2481			break;
2482	}
2483};
2484
2485const originalAttachHandlers = $.datepicker._attachHandlers;
2486
2487$.datepicker._attachHandlers = function (inst) {
2488  originalAttachHandlers.call(this, inst);
2489
2490  const $calendar = inst.dpDiv.find(".ui-datepicker-calendar");
2491	let focusSet = false;
2492
2493  $calendar.off("keydown").on("keydown", "td a", function (e) {
2494    const $current = $(this);
2495    let $target;
2496
2497    switch (e.key) {
2498      case "ArrowRight":
2499        $target = document.dir === 'rtl' ? $current.closest("td").prev().find("a") : $current.closest("td").next().find("a");
2500        break;
2501      case "ArrowLeft":
2502        $target = document.dir === 'rtl' ? $current.closest("td").next().find("a") : $current.closest("td").prev().find("a");
2503        break;
2504      case "ArrowDown":
2505        $target = $current
2506          .closest("tr")
2507          .next()
2508          .find(`td:eq(${$current.closest("td").index()}) a`);
2509        break;
2510      case "ArrowUp":
2511        $target = $current
2512          .closest("tr")
2513          .prev()
2514          .find(`td:eq(${$current.closest("td").index()}) a`);
2515        break;
2516      case " ": //Space
2517        e.preventDefault();
2518        $current.click();
2519        break;
2520      case "Tab":
2521        $target = $current
2522          .closest(".hasDatepicker");
2523
2524        if(e.shiftKey) {
2525          $target = document.dir === 'rtl' ? $target.find('.ui-datepicker-prev') : $target.find('.ui-datepicker-next');
2526        } else {
2527          $target = $target.next().find('select');
2528        }
2529    }
2530
2531    if ($target?.length) {
2532      $target.focus();
2533      e.preventDefault();
2534    }
2535  });
2536
2537	$calendar.on("focusin", "td a", function () {
2538    const $current = $(this);
2539    const activeDate = inst.dpDiv.find(".ui-datepicker-current-day a").attr("data-date");
2540
2541    if (focusSet) return;
2542
2543    if (!$current.hasClass("ui-datepicker-current-day") && activeDate) {
2544      inst.dpDiv.find(`[data-date="${activeDate}"]`).focus();
2545      focusSet = true;
2546    }
2547  });
2548
2549	$calendar.on("focusout", function (e) {
2550    if (!inst.dpDiv[0].querySelector('.ui-datepicker-calendar').contains(e.relatedTarget)) {
2551      focusSet = false;
2552    }
2553  });
2554};
2555
2556return $.datepicker;
2557
2558} );
2559;
2560/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */
2561/*!
2562* tabbable 6.3.0
2563* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2564*/
2565!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)}
vendor: 5,583 bytes, lines 2565-2574
2565,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;if(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)}}));
2566
2567;
2568/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2569/**
2570 * tua-body-scroll-lock v1.6.0
2571 * (c) 2025 Evinma, BuptStEve
2572 * @license MIT
2573 */
2574!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bodyScrollLock={})}(this,(function(e){"use strict";var t=function(){return"undefined"==typeof window},n=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}};function o(e){if(t())return!1;if(!e)throw new Error("options must be provided");
2574var n=!1,o={get passive(){n=!0}},i=function(){},l="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(l,i,o),window.removeEventListener(l,i,o);var c=e.capture;return n?e:void 0!==c&&c}function i(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function l(e){return e?Array.isArray(e)?e:[e]:[]}var c={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function r(e){if(t())return c;if(!(null==e?void 0:e.useGlobalLockState))return r.lockState;var n="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},c),window.__BSL_LOCK_STATE__):c;return window.__BSL_LOCK_STATE__=n,n}function d(e){var t=document.documentElement,n=Object.assign({},t.style),o=(void 0,!0);if(t.style.overflow="hidden",t.style.boxSizing="border-box",o){var i=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);t.style.paddingRight="".concat(i+l,"px")}return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){t.style[e]=n[e]||""}))}}function s(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!1)}r.lockState=c,e.clearBodyLocks=function(e){var o;if(!t()){var i=r(e);if(i.lockedNum=0,null===(o=i.unLockCallback)||void 0===o||o.call(i),n().ios){if(i.lockedElements.length)for(var l=i.lockedElements.pop();l;)l.ontouchmove=null,l.ontouchstart=null,l=i.lockedElements.pop();s(i)}}},e.getLockState=r,e.lock=function(e,c){if(!t()){var s=n(),u=r(c);s.ios?(l(e).filter((function(e){return e&&-1===u.lockedElements.indexOf(e)})).forEach((function(e){e.ontouchstart=function(e){var t=e.targetTouches[0],n=t.clientX,o=t.clientY;u.initialClientPos={clientX:n,clientY:o}},e.ontouchmove=function(t){!function(e,t,n){if(t){var o=t.scrollTop,l=t.scrollLeft,c=t.scrollWidth,r=t.scrollHeight,d=t.clientWidth,s=t.clientHeight,u=e.targetTouches[0].clientX-n.clientX,a=e.targetTouches[0].clientY-n.clientY,f=Math.abs(a)>Math.abs(u);if(f&&(a>0&&0===o||a<0&&o+s+1>=r)||!f&&(u>0&&0===l||u<0&&l+d+1>=c))return i()(e)}e.stopPropagation()}(t,e,u.initialClientPos)},u.lockedElements.push(e)})),function(e){if(!n().ios)return;if(e.documentListenerAdded)return;document.addEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!0}(u),(null==c?void 0:c.setOverflowForIOS)&&(u.unLockCallback=d())):u.lockedNum<=0&&(u.unLockCallback=s.android?function(e){var t=document.documentElement,n=document.body,o=t.scrollTop||n.scrollTop,i=Object.assign({},t.style),l=Object.assign({},n.style);return t.style.height="100%",t.style.overflow="hidden",n.style.top="-".concat(o,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow=(null==e?void 0:e.overflowType)||"hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(e){n.style[e]=l[e]||""})),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}}(c):d()),u.lockedNum+=1}},e.unlock=function(e,o){var i;if(!t()){var c=r(o);c.lockedNum-=1,c.lockedNum>0||(null===(i=c.unLockCallback)||void 0===i||i.call(c),n().ios&&(l(e).forEach((function(e){var t=c.lockedElements.indexOf(e);e&&-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,c.lockedElements.splice(t,1))})),s(c)))}}}));
2575;
2576(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>
25760&&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 in 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);;
2577(function(Drupal,once){'use strict';Drupal.behaviors.aiGlobal={attach:function(context){const popoverShowDelay=500;once('ai-tooltip','[data-ai-tooltip]',context).forEach((popoverTrigger)=>{let pendingShowTimer=null;let pendingHideTimer=null;const popoverId='ai-tooltip-'+Math.random().toString(36).substring(2,15);popoverTrigger.setAttribute('popovertarget',popoverId);popoverTrigger.setAttribute('tabindex','0');popoverTrigger.setAttribute('aria-describedby',popoverId);const popover=document.createElement('div');popover.classList.add('ai-tooltip');popover.setAttribute('popover','hint');popover.setAttribute('id',popoverId);popover.innerHTML=popoverTrigger.dataset.aiTooltip;document.body.appendChild(popover);const showTooltip=()=>{if(pendingHideTimer){clearTimeout(pendingHideTimer);pendingHideTimer=null;}if(pendingShowTimer)clearTimeout(pendingShowTimer);pendingShowTimer=setTimeout(()=>{popover.showPopover({source:popoverTrigger});pendingShowTimer=null;},popoverShowDelay);};const hideTooltip=()=>{if(pendingShowTimer){clearTimeout(pendingShowTimer);pendingShowTimer=null;}if(pendingHideTimer)clearTimeout(pendingHideTimer);pendingHideTimer=setTimeout(()=>{popover.hidePopover();pendingHideTimer=null;},popoverShowDelay);};popoverTrigger.addEventListener('mouseenter',showTooltip);popoverTrigger.addEventListener('mouseleave',hideTooltip);popoverTrigger.addEventListener('focusin',showTooltip);popoverTrigger.addEventListener('focusout',hideTooltip);});}};})(Drupal,once);;
2578(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
vendor: 3,483 bytes, lines 2578-2580
2578" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</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);;
2579/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
2580loadjs=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;
2580for(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}();;
2581/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2582Drupal.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;};};;
2583(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);;
2584((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);;
2585((Drupal)=>{Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress--fullscreen">
2585<div class="ajax-progress__throbber ajax-progress__throbber--fullscreen">&nbsp;</div></div>';Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="ajax-progress__throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress--throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressMessage=(message)=>`<div class="ajax-progress__message">${message}</div>`;})(Drupal);;
2586(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;let statusCodeNumeric=0;if(xmlhttp.status){statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;statusCodeNumeric=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();const errorMessages={400:Drupal.t('The request could not be processed.'),401:Drupal.t('Please log in to continue.'),403:Drupal.t('You do not have permission to perform this action.'),404:Drupal.t('The requested content could not be found.'),413:Drupal.t('The submitted data is too large. Please try again with less data.'),429:Drupal.t('Too many requests. Please wait a moment and try again.'),500:Drupal.t('Something went wrong on our server. Please try again later.'),503:Drupal.t('The service is temporarily unavailable. Please try again later.')};const errorMessage=errorMessages[statusCodeNumeric]||Drupal.t('Oops, something went wrong.');Drupal.AjaxError.messages.add(errorMessage,{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)=>
2586{function bindAjaxLinks(){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';}Drupal.ajax(elementSettings);});}bindAjaxLinks();const observer=new MutationObserver(bindAjaxLinks);observer.observe(element,{childList:true,subtree:true});};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[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[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;$(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[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">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</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
2586d}`,$.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));
2586$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);;
2587(function($,Drupal,debounce){$.fn.drupalGetSummary=function(){const callback=this.data('summaryCallback');if(!this[0]||!callback)return '';const result=callback(this[0]);return result?result.trim():'';};$.fn.drupalSetSummary=function(callback){const self=this;if(typeof callback!=='function'){const val=callback;callback=function(){return val;};}return (this.data('summaryCallback',callback).off('formUpdated.summary').on('formUpdated.summary',()=>{self.trigger('summaryUpdated');}).trigger('summaryUpdated'));};Drupal.behaviors.formSingleSubmit={attach(){function onFormSubmit(e){const $form=$(e.currentTarget);const formValues=new URLSearchParams(new FormData(e.target)).toString();const previousValues=$form.attr('data-drupal-form-submit-last');
2587if(previousValues===formValues)e.preventDefault();else $form.attr('data-drupal-form-submit-last',formValues);}$(once('form-single-submit','body')).on('submit.singleSubmit','form:not([method~="GET"])',onFormSubmit);}};function triggerFormUpdated(element){$(element).trigger('formUpdated');}function fieldsList(form){return [].map.call(form.querySelectorAll('[name][id]'),(el)=>el.id);}Drupal.behaviors.formUpdated={attach(context){const $context=$(context);const contextIsForm=context.tagName==='FORM';const $forms=$(once('form-updated',contextIsForm?$context:$context.find('form')));let formFields;if($forms.length)$.makeArray($forms).forEach((form)=>{const events='change.formUpdated input.formUpdated ';const eventHandler=debounce((event)=>{triggerFormUpdated(event.target);},300);formFields=fieldsList(form).join(',');form.setAttribute('data-drupal-form-fields',formFields);$(form).on(events,eventHandler);});if(contextIsForm){formFields=fieldsList(context).join(',');const currentFields=$(context).attr('data-drupal-form-fields');if(formFields!==currentFields)triggerFormUpdated(context);}},detach(context,settings,trigger){const $context=$(context);const contextIsForm=context.tagName==='FORM';if(trigger==='unload')once.remove('form-updated',contextIsForm?$context:$context.find('form')).forEac
2587h((form)=>{form.removeAttribute('data-drupal-form-fields');$(form).off('.formUpdated');});}};Drupal.behaviors.fillUserInfoFromBrowser={attach(context,settings){const userInfo=['name','mail','homepage'];const $forms=$(once('user-info-from-browser','[data-user-info-from-browser]'));if($forms.length)userInfo.forEach((info)=>{const $element=$forms.find(`[name=${info}]`);const browserData=localStorage.getItem(`Drupal.visitor.${info}`);if(!$element.length)return;const emptyValue=$element[0].value==='';const defaultValue=$element.attr('data-drupal-default-value')===$element[0].value;if(browserData&&(emptyValue||defaultValue))$element.each(function(index,item){item.value=browserData;});});$forms.on('submit',()=>{userInfo.forEach((info)=>{const $element=$forms.find(`[name=${info}]`);if($element.length)localStorage.setItem(`Drupal.visitor.${info}`,$element[0].value);});});}};const handleFragmentLinkClickOrHashChange=(e)=>{let url;if(e.type==='click')url=e.currentTarget.location?e.currentTarget.location:e.currentTarget;else url=window.location;const hash=url.hash.substring(1);if(hash){const $target=$(`#${hash}`);$('body').trigger('formFragmentLinkClickOrHashChange',[$target]);setTimeout(()=>$target.trigger('focus'),300);}};const debouncedHandleFragmentLinkClickOrHashChange=debounce(handleFragmentLinkClickOrHashChange,300,true);$(window).on('hashchange.form-fragment',debouncedHandleFragmentLinkClickOrHashChange);
2587$(document).on('click.form-fragment','a[href*="#"]',debouncedHandleFragmentLinkClickOrHashChange);})(jQuery,Drupal,Drupal.debounce);;
2588(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;document.querySelectorAll(`[data-offset-${edge}]`).forEach((el)=>{if(el.style.display==='none')return;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);});return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);;
2589(($)=>{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>0&&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;
2589else 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(' ');
2589if(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);;
2590(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));window.addEventListener('dialog:beforecreate',(event)=>{const dialog=event.target;$(dialog).on('dialogButtonsChange.dialogDeprecation',(e)=>{if(!e?.originalEvent){Drupal.deprecationError({message:`jQuery event dialogButtonsChange is deprecated 
2590in 11.2.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3464202`});dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));}});});window.addEventListener('dialog:beforeclose',(event)=>{const dialog=event.target;$(dialog).off(`dialogButtonsChange.dialogDeprecation`);});}})(jQuery,Drupal,once);;
2591class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);if(settings.dialogClass)Drupal.deprecationError({message:'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.'});const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false,uiDialogTitleHeadingLevel:2});};dialog.showModal=()=>{openDialog({modal:true,uiDialogTitleHeadingLevel:1});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);;
2592(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,resetSize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,resetSize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);;
2593(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary'},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++)if(opts.buttons[index].primary&&opts.buttons[index].primary===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_createWrapper(){this.uiDialog=$('<div>
2593').hide().attr({tabIndex:-1,role:'dialog','aria-modal':this.options.modal?'true':null}).appendTo(this._appendTo());this._addClass(this.uiDialog,'ui-dialog','ui-widget ui-widget-content ui-front');this._on(this.uiDialog,{keydown(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return;}if(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented())return;const tabbableElements=tabbable(this.uiDialog[0]);if(tabbableElements.length){const first=tabbableElements[0];const last=tabbableElements[tabbableElements.length-1];if((event.target===last||event.target===this.uiDialog[0])&&!event.shiftKey){this._delay(function(){$(first).trigger('focus');});event.preventDefault();}else{if((event.target===first||event.target===this.uiDialog[0])&&event.shiftKey){this._delay(function(){$(last).trigger('focus');});event.preventDefault();}}}},mousedown(event){if(this._moveToTop(event))this._focusTabbable();}});if(!this.element.find('[aria-describedby]').length)this.uiDialog.attr({'aria-describedby':this.element.uniqueId().attr('id')});},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);;
2594(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);;
2595(function($,Drupal,{focusable}){Drupal.behaviors.dialog={attach(context,settings){if(!document.querySelector('#drupal-modal'))document.body.insertAdjacentHTML('beforeend','<div id="drupal-modal" class="ui-front" style="display:none"></div>');if(context!==document){const dialog=context.closest('.ui-dialog-content');if(dialog){if($(dialog).dialog('option','drupalAutoButtons'))dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));setTimeout(function(){if(!dialog.contains(document.activeElement)){$(dialog).dialog('instance')._focusedElement=null;$(dialog).dialog('instance')._focusTabbable();}},0);}}const originalClose=settings.dialog.close;settings.dialog.close=function(event,...args){originalClose.apply(settings.dialog,[event,...args]);const $element=$(event.target);const ajaxContainer=$element.data('uiDialog')?$element.data('uiDialog').opener.closest('[data-drupal-ajax-container]'):[];if(ajaxContainer.length&&(document.activeElement===document.body||$(document.activeElement).not(':visible'))){const focusableChildren=focusable(ajaxContainer[0]);if(focusableChildren.length>0)setTimeout(()=>{focusableChildren[0].focus();},0);}$(event.target).remove();};},prepareDialogButtons($dialog){const buttons=[];const buttonSelectors='.form-actions input[type=submit], .form-actions a.button, .form-actions a.action-link';const buttonElements=$dialog[0].querySelectorAll(buttonSelectors);buttonElements.forEach((button)=>{button.style.display='none';buttons.push({text:button.innerHTML||button.getAttribute('value'),class:button.getAttribute('class'),'data-once':button.dataset.once,click(e){if(button.tagName==='A')button.click();else ['mousedown','mouseup','click'].forEach((event)=>button.dispatchEvent(new MouseEvent(event)));e.preventDefault();}});});return buttons;}};Drupal.AjaxCommands.prototype.openDialog=function(ajax,response,status){if(!response.selector)return false;let dialog=document.querySelector(response.selector);if(!dialog){dialog=document.createElement('div');dialog.id=response.selector.replace(/^#/,'');dialog.classList.add('ui-front');document.body.appendChild(dialog);}if(!ajax.wrapper)ajax.wrapper=dialog.id;response.command='insert';response.method='html';ajax.commands.insert(ajax,response,status);response.dialogOptions=response.dialogOptions||{};if(typeof response.dialogOptions.drupalAutoButtons==='undefined')response.dialogOptions.drupalAutoButtons=true;else if(response.dialogOptions.drupalAutoButtons==='false')response.dialogOptions.drupalAutoButtons=false;else response.dialogOptions.drupalAutoButtons=!!response.dialogOptions.drupalAutoButtons;if(!response.dialogOptions.buttons&&response.dialogOptions.drupalAutoButtons)response.dialogOptions.buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));const dialogButtonsChange=()=>{const buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));$(dialog).dialog('option','buttons',buttons);};dialog.addEventListener('dialogButtonsChange',dialogButtonsChange);dialog.addEventListener('dialog:beforeclose',(event)=>{dialog.removeEventListener('dialogButtonsChange',dialogButtonsChange);});const createdDialog=Drupal.dialog(dialog,response.dialogOptions);if(response.dialogOptions.modal)createdDialog.showModal();else createdDialog.show();dialog.parentElement?.querySelector('.ui-dialog-buttonset')?.classList.add('form-actions');};Drupal.AjaxCommands.prototype.closeDialog=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog){Drupal.dialog(dialog).close();if(!response.persist)dialog.remove();}};Drupal.AjaxCommands.prototype.setDialogOption=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog)$(dialog).dialog('option',response.optionName,response.optionValue);};window.addEventListener('dialog:aftercreate',(event)=>{const dialog=event.dialog;const cancelButton=event.target.querySelector('.dialog-cancel');const cancelClick=(e)=>{dialog.close('cancel');e.preventDefault();e.stopPropagation();};cancelButton?.removeEventListener('click',cancelClick);cancelButton?.addEventListener('click',cancelClick);});Drupal.AjaxCommands.prototype.openModalDialogWithUrl=function(ajax,response){const dialogOptions=response.dialogOptions||{};const elementSettings={progress:{type:'throbber'},dialogType:'modal',dialog:dialogOptions,url:response.url,httpMethod:'GET'};Drupal.ajax(elementSettings).execute();};})(jQuery,Drupal,window.tabbable);;
2596(function($,window,Drupal,drupalSettings){Drupal.AjaxCommands.prototype.ajaxCommentsScrollToElement=function(ajax,response,status){try{const pos=$(response.selector).offset();window.scrollTo({top:pos.top,behavior:'smooth'});}catch(e){console.log(`ajaxComments-ScrollToElementError: ${e.name}`);}};Drupal.AjaxCommands.prototype.ajaxCommentsAddDummyDivAfter=function(ajax,response,status){try{if(!$(response.selector).next().hasClass(response.class))$(`<div class="${response.class}"></div>`).insertAfter(response.selector);}catch(e){console.log(`ajaxComments-AddDummyDivAfter: ${e.name}`);}};(function(beforeSerialize){Drupal.Ajax.prototype.beforeSerialize=function(element,options){beforeSerialize.call(this,element,options);const wrapperHtmlId=$(element).data('wrapper-html-id')||null;if(wrapperHtmlId)options.data.wrapper_html_id=wrapperHtmlId;};})(Drupal.Ajax.prototype.beforeSerialize);})(jQuery,this,Drupal,drupalSettings);;
2597window.addEventListener('beforeinstallprompt',(e)=>{e.prompt();});;
2598jQuery(function(){jQuery("#PrenatalMemberKeyBenefits .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Prenatal|MemberKeyBenefits|JoinNow',eventLabel:''});});jQuery("#PrenatalMemberDetailedBenefits .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Prenatal|MemberDetailedBenefits|JoinNow',eventLabel:''});});jQuery("#PrenatalEmpoweringParents .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Prenatal|EmpoweringParents|JoinNow',eventLabel:''});});jQuery("#PrenatalParentingPressure .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Prenatal|ParentingPressure|JoinNow',eventLabel:''});});jQuery("#PostnatalMemberKeyBenefits .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Postnatal|MemberKeyBenefits|JoinNow',eventLabel:''});});jQuery("#PostnatalMemberDetailedBenefits .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Postnatal|MemberDetailedBenefits|JoinNow',eventLabel:''});});jQuery("#PostnatalEmpoweringParents .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Postnatal|EmpoweringParents|JoinNow',eventLabel:''});});jQuery("#PostnatalParentingPressure .button").on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Content|RGP',eventAction:'RGP|Postnatal|ParentingPressure|JoinNow',eventLabel:''});});});;
2599(function($,Drupal,once){'use strict';Drupal.behaviors.facetsFilter={attach:function(context){$(once('js-facet-filter','.js-facets-widget',context)).on('facets_filter.facets',function(event,url){$('.js-facets-widget').trigger('facets_filtering');window.location=url;});}};})(jQuery,Drupal,once);;
2600(function($,Drupal,once){'use strict';Drupal.facets=Drupal.facets||{};Drupal.behaviors.facetsObfuscatedCheckboxWidget={attach:function(context){Drupal.facets.makeCheckboxes(context);}};Drupal.facets.makeCheckboxes=function(context){var $checkboxWidgets=$(once('facets-checkbox-transform','.js-facets-obfuscated-checkbox-links',context));if($checkboxWidgets.length>0)$checkboxWidgets.each(function(index,widget){var $widget=$(widget);var $widgetLinks=$widget.find('.facet-item > span');$widget.addClass('js-facets-widget');$widgetLinks.each(Drupal.facets.makeCheckbox);Drupal.attachBehaviors(this.parentNode,Drupal.settings);});$('.facet-item--expanded.facet-item--active-trail > input').prop('indeterminate',true);};Drupal.facets.makeCheckbox=function(){var $link=$(this);var active=$link.hasClass('is-active');var description=$link.html();var href=decodeURIComponent(atob($link.attr('data-link-hash')).split('').map(function(c){return '%'+('00'+c.charCodeAt(0).toString(16)).slice(-2);}).join(''));var id=$link.data('drupal-facet-item-id');var checkbox=$('<input type="checkbox" class="facets-checkbox">').attr('id',id).data($link.data()).data('facetsredir',href);var label=$('<label for="'+id+'">'+description+'</label>');checkbox.on('change.facets',function(e){e.preventDefault();var $widget=$(this).closest('.js-facets-widget');Drupal.facets.disableFacet($widget);$widget.trigger('facets_filter',[$link.attr('href',href)]);});if(active){checkbox.attr('checked',true);label.find('.js-facet-deactivate').remove();}$link.before(checkbox).before(label).hide();};Drupal.facets.disableFacet=function($facet){$facet.addClass('facets-disabled');$('input.facets-checkbox').click(Drupal.facets.preventDefault).attr('disabled',true);};Drupal.facets.preventDefault=function(e){e.preventDefault();};})(jQuery,Drupal,once);;
2601(function($,Drupal,drupalSettings){Drupal.behaviors.linkObfuscator={attach:function(context,settings){$.each($('[data-link-hash]'),function(index,value){var target=$(this).attr("target")?'_blank':'_self';$(this).css("cursor","pointer").click(function(){window.open(atob($(value).data('link-hash')),target);});});}};})(jQuery,Drupal,drupalSettings);;
2602/* @license MIT https://github.com/Canop/JSON.prune/blob/master/LICENSE */
2603(function(){'use strict';var DEFAULT_MAX_DEPTH=6;var DEFAULT_ARRAY_MAX_LENGTH=50;var DEFAULT_PRUNED_VALUE='"-pruned-"';var seen;var iterator;var forEachEnumerableOwnProperty=function(obj,callback){for(var k in obj)if(Object.prototype.hasOwnProperty.call(obj,k))callback(k);};var forEachEnumerableProperty=function(obj,callback){for(var k in obj)callback(k);};var forEachProperty=function(obj,callback,excluded){if(obj==null)return;excluded=excluded||{};Object.getOwnPropertyNames(obj).forEach(function(k){if(!excluded[k]){callback(k);excluded[k]=true;}});forEachProperty(Object.getPrototypeOf(obj),callback,excluded);};Object.defineProperty(Date.prototype,"toPrunedJSON",{value:Date.prototype.toJSON});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'};function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}var prune=function(value,depthDecr,arrayMaxLength){var prunedString=DEFAULT_PRUNED_VALUE;var replacer;if(typeof depthDecr=="object"){var options=depthDecr;depthDecr=options.depthDecr;arrayMaxLength=options.arrayMaxLength;iterator=options.iterator||forEachEnumerableOwnProperty;if(options.allProperties)iterator=forEachProperty;else{if(options.inheritedProperties)iterator=forEachEnumerableProperty;}if("prunedString" in options)prunedString=options.prunedString;if(options.replacer)replacer=options.replacer;}else iterator=forEachEnumerableOwnProperty;seen=[];depthDecr=depthDecr||DEFAULT_MAX_DEPTH;arrayMaxLength=arrayMaxLength||DEFAULT_ARRAY_MAX_LENGTH;function str(key,holder,depthDecr){var i,k,v,length,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toPrunedJSON==='function')value=value.toPrunedJSON(key);if(value&&typeof value.toJSON==='function')value=value.toJSON();switch(typeof value){case 'string':return quote(value);case 'number':return isFinite(value)?String(value):'null';case 'boolean':case 'null':return String(value);case 'object':if(!value)return 'null';if(depthDecr<=0||seen.indexOf(value)!==-1){if(replacer){var replacement=replacer(value,prunedString,true);return replacement===undefined?undefined:''+replacement;}return prunedString;}seen.push(value);partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=Math.min(value.length,arrayMaxLength);for(i=0;i<length;i+=1)partial[i]=str(i,value,depthDecr-1)||'null';v='['+partial.join(',')+']';if(replacer&&value.length>arrayMaxLength)return replacer(value,v,false);return v;}if(value instanceof RegExp)return quote(value.toString());iterator(value,function(k){try{v=str(k,value,depthDecr-1);if(v)partial.push(quote(k)+':'+v);}catch(e){}});return '{'+partial.join(',')+'}';case 'function':case 'undefined':return replacer?replacer(value,undefined,false):undefined;}}return str('',{'':value},depthDecr);};prune.log=function(){console.log.apply(console,Array.prototype.map.call(arguments,function(v){return JSON.parse(JSON.prune(v));}));};prune.forEachProperty=forEachProperty;if(typeof module!=="undefined")module.exports=prune;else JSON.prune=prune;}());;
2604/* @license MIT https://github.com/brix/crypto-js/blob/4.0.0/LICENSE */
2605;(function(root,factory){if(typeof exports==="object")module.exports=exports=factory();else if(typeof define==="function"&&define.amd)define([],factory);else root.CryptoJS=factory();}(this,function(){var CryptoJS=CryptoJS||(function(Math,undefined){var crypto;if(typeof window!=='undefined'&&window.crypto)crypto=window.crypto;if(!crypto&&typeof window!=='undefined'&&window.msCrypto)crypto=window.msCrypto;if(!crypto&&typeof global!=='undefined'&&global.crypto)crypto=global.crypto;if(!crypto&&typeof require==='function')try{crypto=require('crypto');}catch(err){}var cryptoSecureRandomInt=function(){if(crypto){if(typeof crypto.getRandomValues==='function')try{return crypto.getRandomValues(new Uint32Array(1))[0];}catch(err){}if(typeof crypto.randomBytes==='function')try{return crypto.randomBytes(4).readInt32LE();}catch(err){}}throw new Error('Native crypto module could not be used to get secure random number.');};var create=Object.create||(function(){function F(){}return function(obj){var subtype;F.prototype=obj;subtype=new F();F.prototype=null;return subtype;};}());var C={};var C_lib=C.lib={};var Base=C_lib.Base=(function(){return {extend:function(overrides){var subtype=create(this);if(overrides)subtype.mixIn(overrides);if(!subtype.hasOwnProperty('init')||this.init===subtype.init)subtype.init=function(){subtype.$super.init.a
2605pply(this,arguments);};subtype.init.prototype=subtype;subtype.$super=this;return subtype;},create:function(){var instance=this.extend();instance.init.apply(instance,arguments);return instance;},init:function(){},mixIn:function(properties){for(var propertyName in properties)if(properties.hasOwnProperty(propertyName))this[propertyName]=properties[propertyName];if(properties.hasOwnProperty('toString'))this.toString=properties.toString;},clone:function(){return this.init.prototype.extend(this);}};}());var WordArray=C_lib.WordArray=Base.extend({init:function(words,sigBytes){words=this.words=words||[];if(sigBytes!=undefined)this.sigBytes=sigBytes;else this.sigBytes=words.length*4;},toString:function(encoder){return (encoder||Hex).stringify(this);},concat:function(wordArray){var thisWords=this.words;var thatWords=wordArray.words;var thisSigBytes=this.sigBytes;var thatSigBytes=wordArray.sigBytes;this.clamp();if(thisSigBytes%4)for(var i=0;i<thatSigBytes;i++){var thatByte=(thatWords[i>>>2]>>>(24-(i%4)*8))&0xff;thisWords[(thisSigBytes+i)>>>2]|=thatByte<<(24-((thisSigBytes+i)%4)*8);}else for(var i=0;i<thatSigBytes;i+=4)thisWords[(thisSigBytes+i)>>>2]=thatWords[i>>>2];this.sigBytes+=thatSigBytes;return this;},clamp:function(){var words=this.words;var sigBytes=this.sigBytes;words[sigBytes>>>2]&=0xffffffff<<(32-(sigBytes%4)*8);words.length=Math.ceil(sigBytes/4);},clone:function(){var clone=Base.clone.call(this);clone.words=this.words.slice(0);return clone;},random:function(nBytes){var words=[];for(var i=0;i<nBytes;i+=4)words.push(cryptoSecureRandomInt());return new WordArray.init(words,nBytes);}});var C_enc=C.enc={};var Hex=C_enc.Hex={stringify:function(wordArray){var words=wordArray.words;var sigBytes=wordArray.sigBytes;var hexChars=[];for(var i=0;i<sigBytes;i++){var bite=(words[i>>>2]>>>(24-(i%4)*8))&0xff;hexChars.push((bite>>>4).toString(16));hexChars.push((bite&0x0f).toString(16));}return hexChars.join('');},parse:function(hexStr){var hexStrLength=hexStr.length;var words=[];for(var i=0;i<hexStrLength;i+=2)words[i>>>3]|=parseInt(hexStr.substr(i,2),16)<<(24-(i%8)*4);return new WordArray.init(words,hexStrLength/2);}};var Latin1=C_enc.Latin1={stringify:function(wordArray){var words=wordArray.words;var sigBytes=wordArray.sigBytes;var latin1Chars=[];for(var i=0;i<sigBytes;i++){var bite=(words[i>>>2]>>>(24-(i%4)*8))&0xff;latin1Chars.push(String.fromCharCode(bite));}return latin1Chars.join('');},parse:function(latin1Str){var latin1StrLength=latin1Str.length;var words=[];for(var i=0;i<latin1StrLength;i++)words[i>>>2]|=(latin1Str.charCodeAt(i)&0xff)<<(24-(i%4)*8);return new WordArray.init(words,latin1StrLength);}};var Utf8=C_enc.Utf8={stringify:function(wordArray){try{return decodeURIComponent(escape(Latin1.stringify(wordArray)));}catch(e){throw new Error('Malformed UTF-8 data');}},parse:function(utf8Str){return Latin1.parse(unescape(encodeURIComponent(utf8Str)));}};var BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm=Base.extend({reset:function(){this._data=new WordArray.init();this._nDataBytes=0;},_append:function(data){if(typeof data=='string')data=Utf8.parse(data);this._data.concat(data);this._nDataBytes+=data.sigBytes;},_process:function(doFlush){var processedWords;var data=this._data;var dataWords=data.words;var dataSigBytes=data.sigBytes;var blockSize=this.blockSize;var blockSizeBytes=blockSize*4;var nBlocksReady=dataSigBytes/blockSizeBytes;if(doFlush)nBlocksReady=Math.ceil(nBlocksReady);else nBlocksReady=Math.max((nBlocksReady|0)-this._minBufferSize,0);var nWordsReady=nBlocksReady*blockSize;var nBytesReady=Math.min(nWordsReady*4,dataSigBytes);if(nWordsReady){for(var offset=0;offset<nWordsReady;offset+=blockSize)this._doProcessBlock(dataWords,offset);processedWords=dataWords.splice(0,nWordsReady);data.sigBytes-=nBytesReady;}return new WordArray.init(processedWords,nBytesReady);},clone:function(){var clone=Base.clone.call(this);clone._data=this._data.clone();return clone;},_minBufferSize:0});var Hasher=C_lib.Hasher=BufferedBlockAlgorithm.extend({cfg:Base.extend(),init:function(cfg){this.cfg=this.cfg.extend(cfg);this.reset();},reset:function(){BufferedBlockAlgorithm.reset.call(this);this._doReset();},update:function(messageUpdate){this._append(messageUpdate);this._process();return this;},finalize:function(messageUpdate){if(messageUpdate)this._append(messageUpdate);var hash=this._doFinalize();return hash;},blockSize:512/32,_createHelper:function(hasher){return function(message,cfg){return new hasher.init(cfg).finalize(message);};},_createHmacHelper:function(hasher){return function(message,key){return new C_algo.HMAC.init(hasher,key).finalize(message);};}});var C_algo=C.algo={};return C;}(Math));return CryptoJS;}));;
2606;(function(root,factory){if(typeof exports==="object")module.exports=exports=factory(require("./core"));else if(typeof define==="function"&&define.amd)define(["./core"],factory);else factory(root.CryptoJS);}(this,function(CryptoJS){(function(Math){var C=CryptoJS;var C_lib=C.lib;var WordArray=C_lib.WordArray;var Hasher=C_lib.Hasher;var C_algo=C.algo;var T=[];(function(){for(var i=0;i<64;i++)T[i]=(Math.abs(Math.sin(i+1))*0x100000000)|0;}());var MD5=C_algo.MD5=Hasher.extend({_doReset:function(){this._hash=new WordArray.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_doProcessBlock:function(M,offset){for(var i=0;i<16;i++){var offset_i=offset+i;var M_offset_i=M[offset_i];M[offset_i]=((((M_offset_i<<8)|(M_offset_i>>>24))&0x00ff00ff)|(((M_offset_i<<24)|(M_offset_i>>>8))&0xff00ff00));}var H=this._hash.words;var M_offset_0=M[offset+0];var M_offset_1=M[offset+1];var M_offset_2=M[offset+2];var M_offset_3=M[offset+3];var M_offset_4=M[offset+4];var M_offset_5=M[offset+5];var M_offset_6=M[offset+6];var M_offset_7=M[offset+7];var M_offset_8=M[offset+8];var M_offset_9=M[offset+9];var M_offset_10=M[offset+10];var M_offset_11=M[offset+11];var M_offset_12=M[offset+12];var M_offset_13=M[offset+13];var M_offset_14=M[offset+14];var M_offset_15=M[offset+15];var a=H[0];var b=H[1];var c=H[2];var d=H[3];a=FF(a,b,c,d,M_offset_0,7,T[0]);d=FF(d,a,b,c,M_offset_1,12,T[1]);c=FF(c,d,a,b,M_offset_2,17,T[2]);b=FF(b,c,d,a,M_offset_3,22,T[3]);a=FF(a,b,c,d,M_offset_4,7,T[4]);d=FF(d,a,b,c,M_offset_5,12,T[5]);c=FF(c,d,a,b,M_offset_6,17,T[6]);b=FF(b,c,d,a,M_offset_7,22,T[7]);a=FF(a,b,c,d,M_offset_8,7,T[8]);d=FF(d,a,b,c,M_offset_9,12,T[9]);c=FF(c,d,a,b,M_offset_10,17,T[10]);b=FF(b,c,d,a,M_offset_11,22,T[11]);a=FF(a,b,c,d,M_offset_12,7,T[12]);d=FF(d,a,b,c,M_offset_13,12,T[13]);c=FF(c,d,a,b,M_offset_14,17,T[14]);b=FF(b,c,d,a,M_offset_15,22,T[15]);a=GG(a,b,c,d,M_offset_1,5,T[16]);d=GG(d,a,b,c,M_offset_6,9,T[17]);c=GG(c,d,a,b,M_offset_11,14,T[18]);b=GG(b,c,d,a,M_offset_0,20,T[19]);a=GG(a,b,c,d,M_offset_5,5,T[20]);d=GG(d,a,b,c,M_offset_10,9,T[21]);c=GG(c,d,a,b,M_offset_15,14,T[22]);b=GG(b,c,d,a,M_offset_4,20,T[23]);a=GG(a,b,c,d,M_offset_9,5,T[24]);d=GG(d,a,b,c,M_offset_14,9,T[25]);c=GG(c,d,a,b,M_offset_3,14,T[26]);b=GG(b,c,d,a,M_offset_8,20,T[27]);a=GG(a,b,c,d,M_offset_13,5,T[28]);d=GG(d,a,b,c,M_offset_2,9,T[29]);c=GG(c,d,a,b,M_offset_7,14,T[30]);b=GG(b,c,d,a,M_offset_12,20,T[31]);a=HH(a,b,c,d,M_offset_5,4,T[32]);d=HH(d,a,b,c,M_offset_8,11,T[33]);c=HH(c,d,a,b,M_offset_11,16,T[34]);b=HH(b,c,d,a,M_offset_14,23,T[35]);a=HH(a,b,c,d,M_offset_1,4,T[36]);d=HH(d,a,b,c,M_offset_4,11,T[37]);c=HH(c,d,a,b,M_offset_7,16,T[38]);b=HH(b,c,d,a,M_offset_10,23,T[39]);a=HH(a,b,c,d,M_offset_13,4,T[40]);d=HH(d,a,b,c,M_offset_0,11,T[41]);c=HH(c,d,a,b,M_offset_3,16,T[42]);b=HH(b,c,d,a,M_offset_6,23,T[43]);a=HH(a,b,c,d,M_offset_9,4,T[44]);d=HH(d,a,b,c,M_offset_12,11,T[45]);c=HH(c,d,a,b,M_offset_15,16,T[46]);b=HH(b,c,d,a,M_offset_2,23,T[47]);a=II(a,b,c,d,M_offset_0,6,T[48]);d=II(d,a,b,c,M_offset_7,10,T[49]);c=II(c,d,a,b,M_offset_14,15,T[50]);b=II(b,c,d,a,M_offset_5,21,T[51]);a=II(a,b,c,d,M_offset_12,6,T[52]);d=II(d,a,b,c,M_offset_3,10,T[53]);c=II(c,d,a,b,M_offset_10,15,T[54]);b=II(b,c,d,a,M_offset_1,21,T[55]);a=II(a,b,c,d,M_offset_8,6,T[56]);d=II(d,a,b,c,M_offset_15,10,T[57]);c=II(c,d,a,b,M_offset_6,15,T[58]);b=II(b,c,d,a,M_offset_13,21,T[59]);a=II(a,b,c,d,M_offset_4,6,T[60]);d=II(d,a,b,c,M_offset_11,10,T[61]);c=II(c,d,a,b,M_offset_2,15,T[62]);b=II(b,c,d,a,M_offset_9,21,T[63]);H[0]=(H[0]+a)|0;H[1]=(H[1]+b)|0;H[2]=(H[2]+c)|0;H[3]=(H[3]+d)|0;},_doFinalize:function(){var data=this._data;var dataWords=data.words;var nBitsTotal=this._nDataBytes*8;var nBitsLeft=data.sigBytes*8;dataWords[nBitsLeft>>>5]|=0x80<<(24-nBitsLeft%32);var nBitsTotalH=Math.floor(nBitsTotal/0x100000000);var nBitsTotalL=nBitsTotal;dataWords[(((nBitsLeft+64)>>>9)<<4)+15]=((((nBitsTotalH<<8)|(nBitsTotalH>>>24))&0x00ff00ff)|(((nBitsTotalH<<24)|(nBitsTotalH>>>8))&0xff00ff00));dataWords[(((nBitsLeft+64)>>>9)<<4)+14]=((((nBitsTotalL<<8)|(nBitsTotalL>>>24))&0x00ff00ff)|(((nBitsTotalL<<24)|(nBitsTotalL>>>8))&0xff00ff00));data.sigBytes=(dataWords.length+1)*4;this._process();var hash=this._hash;var H=hash.words;for(var i=0;i<4;i++){var H_i=H[i];H[i]=(((H_i<<8)|(H_i>>>24))&0x00ff00ff)|(((H_i<<24)|(H_i>>>8))&0xff00ff00);}return hash;},clone:function(){var clone=Hasher.clone.call(this);clone._hash=this._hash.clone();return clone;}});function FF(a,b,c,d,x,s,t){var n=a+((b&c)|(~b&d))+x+t;return ((n<<s)|(n>>>(32-s)))+b;}function GG(a,b,c,d,x,s,t){var n=a+((b&d)|(c&~d))+x+t;return ((n<<s)|(n>>>(32-s)))+b;}function HH(a,b,c,d,x,s,t){var n=a+(b^c^d)+x+t;return ((n<<s)|(n>>>(32-s)))+b;}function II(a,b,c,d,x,s,t){var n=a+(c^(b|~d))+x+t;return ((n<<s)|(n>>>(32-s)))+b;}C.MD5=Hasher._createHelper(MD5);C.HmacMD5=Hasher._createHmacHelper(MD5);}(Math));return CryptoJS.MD5;}));;
2607/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2608(function($,Drupal,drupalSettings,navigator,document,storageLocal,once){'use strict';var ajaxBeforeSendOriginal=Drupal.Ajax.prototype.beforeSend;$(document).ready(function(){if(drupalSettings.babyme_supersession){const fpPromise=import('https://openfpcdn.io/fingerprintjs/v4').then((FingerprintJS)=>FingerprintJS.load());fpPromise.then((fp)=>fp.get()).then((result)=>{var visitorId=result.visitorId;var nameServer=drupalSettings.babyme_supersession.name_server;var hash=storageLocal.getItem(nameServer);if(hash&&hash!==visitorId)storageLocal.setItem(nameServer+'_old',visitorId);storageLocal.setItem(nameServer,visitorId);});}});Drupal.Ajax.prototype.beforeSend=function(xhr,options){if(drupalSettings.babyme_supersession&&storageLocal){var nameServer=drupalSettings.babyme_supersession.name_server;var nameHeader=drupalSettings.babyme_supersession.name_header;var hash=storageLocal.getItem(nameServer);if(nameServer&&nameHeader&&hash){xhr.setRequestHeader(nameHeader,hash);if(!options.headers)options.headers=[];options.headers[nameHeader]=hash;var oldHash=storageLocal.getItem(nameServer);if(oldHash&&oldHash!==hash)options.headers[nameHeader+'_old']=oldHash;}}ajaxBeforeSendOriginal.call(this,xhr,options);};Drupal.behaviors.babymeSupersession={attach:function(context,settings){if(once('babyme-supersession','html'))document.addEventListener('np-na-notifications-ajax',function(event){const ajaxSettings=event.detail.ajaxSettings;if(!storageLocal.getItem(drupalSettings.babyme_supersession.name_server)){let timerId=setTimeout(function tick(){if(storageLocal.getItem(drupalSettings.babyme_supersession.name_server))Drupal.ajax(ajaxSettings).execute();else timerId=setTimeout(tick,1000);},1000);event.preventDefault();}});}};})(jQuery,Drupal,drupalSettings,window.navigator,document,window.localStorage,once);;
2609(function($,Drupal,once){Drupal.behaviors.betterExposedFiltersAutoSubmit={attach:function(context,settings){let selectors='';if(drupalSettings.better_exposed_filters&&drupalSettings.better_exposed_filters.auto_
2609submit_sort_only)selectors='form[data-bef-auto-submit-sort-only] .form-item-sort-order';else selectors='form[data-bef-auto-submit-full-form], [data-bef-auto-submit-full-form] form, [data-bef-auto-submit]';$(selectors,context).addBack(selectors).find('input:text:not(.hasDatepicker), textarea, select, input:radio, input:checkbox').each(function(){const $el=$(this);const $tagName=$el[0].tagName;if($tagName==='SELECT')setFocus($el);else if(['radio','checkbox'].includes($el.attr('type')))setFocus($el);else setFocus($el);});function setFocus($el){const observer=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){const lastTriggeredSelector=settings.bef_autosubmit_triggered_selector;const lastCursorPosition=settings.bef_autosubmit_cursor_position;const currentSelector=$el.attr('data-drupal-selector');if(lastTriggeredSelector&&currentSelector){const lastTriggeredBase=lastTriggeredSelector.replace(/-[a-z0-9]{11}$/,'');const currentBase=currentSelector.replace(/-[a-z0-9]{11}$/,'');if(currentBase===lastTriggeredBase||currentSelector.startsWith(lastTriggeredBase+'-')){$el.focus();if($el.is(':text, textarea')&&typeof lastCursorPosition==='number')try{$el[0].setSelectionRange(lastCursorPosition,lastCursorPosition);}catch(e){}}}observer.disconnect();}});});observer.observe($el.get(0));}$(selectors,context).addBack(selectors).each(function(i,e){const $e=$(e);let $needsAutoSubmit=$e;let autoSubmitDelay=500;if(e.hasAttribute('data-bef-auto-submit-delay'))autoSubmitDelay=$e.data('bef-auto-submit-delay');else{if(!e.hasAttribute('data-bef-auto-submit-full-form')){const $container=$e.closest('[data-bef-auto-submit-full-form]');if($container.length&&$container.get(0).hasAttribute('data-bef-auto-submit-delay')){$needsAutoSubmit=$container;autoSubmitDelay=$container.data('bef-auto-submit-delay');}}}autoSubmitDelay=autoSubmitDelay||500;let dateInputChangeDebounce=Drupal.debounce(triggerSubmit,autoSubmitDelay,false);$(once('bef-auto-submit',$needsAutoSubmit)).on('change',function(e){return e.target.type==='date'?dateInputChangeDebounce(e):triggerSubmit(e);}).on('keyup',Drupal.debounce(triggerSubmit,autoSubmitDelay,false));});function triggerSubmit(e){const ignoredKeyCodes=[16,17,18,20,33,34,35,36,37,38,39,40,9,13,27,32];const $target=$(e.target);const $form=e.target.form?$(e.target.form):$target.closest('form');const $submit=$form.find('[data-bef-auto-submit-click]').first();const mediaQuery=$target.closest('form').data('bef-auto-submit-media-query');if(mediaQuery&&!matchMedia(mediaQuery).matches)return true;if($target.is('[data-bef-auto-submit-exclude], :submit, .select2-search__field, .chosen-search-input'))return true;let textfieldMinimumLength=$target.closest('form').data('bef-auto-submit-minimum-length')||1;let inputTextLength=$target.val().length;let textfieldHasMinimumLength=($target.is(':text:not(.hasDatepicker), textarea')&&inputTextLength>=textfieldMinimumLength)||$target.is('[type="checkbox"], [type="radio"]');if((textfieldHasMinimumLength||inputTextLength===0)&&$.inArray(e.keyCode,ignoredKeyCodes)===-1&&!e.altKey&&!e.ctrlKey&&!e.shiftKey)$submit.click();else{if(e.type==='change'){let target=$target.is(':text:not(.hasDatepicker), textarea');if(target&&textfieldHasMinimumLength)$submit.click();else{if(!target)$submit.click();}}}settings.bef_autosubmit_triggered_selector=$target.attr('data-drupal-selector');if($target.is(':text, textarea'))try{settings.bef_autosubmit_cursor_position=$target[0].selectionStart;}catch(e){settings.bef_autosubmit_cursor_position=$target.val().length;}}}};}(jQuery,Drupal,once));;
2610(function($,Drupal,once){Drupal.behaviors.betterExposedFilters={attach:function(context){$('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){_bef_highlight(this,context);}).filter(':checked').closest('.form-item',context).addClass('highlight');}};function _bef_highlight(elem,context){$elem=$(elem,context);$elem.attr('checked')?$elem.closest('.form-item',context).addClass('highlight'):$elem.closest('.form-item',context).removeClass('highlight');}Drupal.behaviors.autosubmitExcludeTextfield={attach:function(context,settings){if(!settings.better_exposed_filters?.autosubmit_exclude_textfield)return;$(once('autosubmit-exclude-textfield','.bef-exposed-form',context)).each(function(){$(this).find('*[type="text"]').attr('data-bef-auto-submit-exclude','');});}};Drupal.behaviors.befSingleCheckboxFix={attach:function(context,settings){once('befSingleCheckboxFix','form.views-exposed-form',context).forEach((form)=>{const $form=$(form);const $checkboxes=$form.find('input[type="checkbox"].single-checkbox');$form.on('submit',function(){$checkboxes.each(function(){const $checkbox=$(this);const name=$checkbox.attr('name');$form.find('input[type="hidden"][name="'+name+'"]').remove();if(!$checkbox.is(':checked'))$('<input>').attr({type:'hidden',name,value:0}).appendTo($form);});});});}};})(jQuery,Drupal,once);;
2611/* @license MIT https://github.com/jquery-validation/jquery-validation/blob/master/LICENSE.md */
vendor: 26,446 bytes, lines 2612-2615
2612/*! jQuery Validation Plugin - v1.22.1 - 2/18/2026
2613 * https://jqueryvalidation.org/
2614 * Copyright (c) 2026 Jörn Zaefferer; Licensed MIT */
2615!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.submitButton=b.currentTarget,a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return c.submitButton&&(c.settings.submitHandler||c.formSubmitted)&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),!(c.settings.submitHandler&&!c.settings.debug)||(e=c.settings.submitHandler.call(c,c.currentForm,b),d&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0],k="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=j&&(!j.form&&k&&(j.form=this.closest("form")[0],j.name=this.attr("name")),null!=j.form)){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(a,b){i[b]=f[b],delete f[b]}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g)),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}});var b=function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};a.extend(a.expr.pseudos||a.expr[":"],{blank:function(c){return!b(""+a(c).val())},filled:function(c){var d=a(c).val();return null!==d&&!!b(""+d)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,ariaDescribedByCleanup:!1,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,customElements:[],onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");if(!this.form&&c&&(this.form=a(this).closest("form")[0],this.name=a(this).attr("name")),d===this.form){var e=a.data(this.form,"validator"),f="on"+b.type.replace(/^validate/,""),g=e.settings;g[f]&&!a(this).is(g.ignore)&&g[f].call(e,this,b)}}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.currentForm,e=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){e[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)});var f=[":text","[type='password']","[type='file']","select","textarea","[type='number']","[type='search']","[type='tel']","[type='url']","[type='email']","[type='datetime']","[type='date']","[type='month']","[type='week']","[type='time']","[type='datetime-local']","[type='range']","[type='color']","[type='radio']","[type='checkbox']","[contenteditable]","[type='button']"],g=["select","option","[type='radio']","[type='checkbox']"];a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",f.concat(this.settings.customElements).join(", "),b).on("click.validate",g.concat(this.settings.customElements).join(", "),b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.pushStack(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)void 0!==a[b]&&null!==a[b]&&a[b]!==!1&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},addErrorAriaDescribedBy:function(b,c,d){d=void 0!==d&&d;var e,f,g,h=a(b).attr("aria-describedby");e=c.attr("id"),h?h.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(h+=" "+e):h=e,a(b).attr("aria-describedby",h),d&&(g=this.groups[b.name],g&&(f=this,a.each(f.groups,function(b,d){d===g&&f.addErrorAriaDescribedBy(a("[name='"+f.escapeCssMeta(b)+"']",f.currentForm),c,!1)})))},removeErrorAriaDescribedBy:function(b,c){var d=a(b).attr("aria-describedby"),e=d.split(" "),f=c.attr("id"),g=e.indexOf(f);g>-1&&e.splice(g,1),e.length?a(b).attr("aria-describedby",e.join(" ")):a(b).removeAttr("aria-describedby")},hideThese:function(b){for(var c=0;b[c];c++){var d=a(b[c]),e=d.attr("id")?this.escapeCssMeta(d.attr("id")):void 0,f=e?this.elements().filter('[aria-describedby~="'+e+'"]'):[];this.settings.ariaDescribedByCleanup&&f.length&&this.removeErrorAriaDescribedBy(f,d),d.is(this.containers)||d.text(""),this.addWrapper(d).hide()}},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b,c=this,d={},e=["input","select","textarea","[contenteditable]"],f=this.currentForm.getAttribute("id");return b=a(this.currentForm).find(e.concat(this.settings.customElements).join(", ")).not(":submit, :reset, :image, :disabled").not(this.settings.ignore),f&&(b=b.add(a(e.concat(this.settings.customElements).join(", ")).filter("[form='"+c.escapeCssMeta(f)+"']").not(":submit, :reset, :image, :disabled").not(this.settings.ignore))),b.filter(function(){var b=this.name||a(this).attr("name"),e="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");return!b&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this),e&&(this.form=a(this).closest("form")[0],this.name=b),this.form===c.currentForm&&(!(b in d||!c.objectLength(a(this).rules()))&&(d[b]=!0,!0))})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type,g="undefined"!=typeof e.attr("contenteditable")&&"false"!==e.attr("contenteditable");return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=g?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f,g=a(b).rules(),h=a.map(g,function(a,b){return b}).length,i=!1,j=this.elementValue(b);this.abortRequest(b),"function"==typeof g.normalizer?f=g.normalizer:"function"==typeof this.settings.normalizer&&(f=this.settings.normalizer),f&&(j=f.call(b,j),delete g.normalizer);for(d in g){e={method:d,parameters:g[d]};try{if(c=a.validator.methods[d].call(this,j,b,e.parameters),"dependency-mismatch"===c&&1===h){i=!0;continue}if(i=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(k){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",k),k instanceof TypeError&&(k.message+=".  Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),k}}if(!i)return this.objectLength(g)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e=this.errorsFor(b),f=this.idOrName(b),g=a(b).attr("aria-describedby");e.length?(0!==e.closest("label[for='"+this.escapeCssMeta(f)+"']").length||void 0!==g&&g.split(" ").indexOf(e.attr("id"))!==-1||this.addErrorAriaDescribedBy(b,e,!0),e.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?e.text(c||""):e.html(c||"")):(e=a("<"+this.settings.errorElement+">").attr("id",f+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?e.text(c||""):e.html(c||""),d=e,this.settings.wrapper&&(d=e.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),e.is("label")?e.attr("for",f):0===e.parents("label[for='"+this.escapeCssMeta(f)+"']").length&&this.addErrorAriaDescribedBy(b,e,!0)),!c&&this.settings.success&&(e.text(""),"string"==typeof this.settings.success?e.addClass(this.settings.success):this.settings.success(e,b)),this.toShow=this.toShow.add(e)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),e=e+", #"+c+"-error",this.errors().filter(e)},escapeCssMeta:function(a){return void 0===a?"":a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){var c=this.currentForm.getAttribute("id"),d="[name='"+this.escapeCssMeta(b)+"']",e=a(this.currentForm).find(d);return c&&(e=e.add(a(d).filter("[form='"+this.escapeCssMeta(c)+"']"))),e},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},elementAjaxPort:function(a){return"validate"+a.name},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(a(this.currentForm).trigger("submit"),this.submitButton&&a("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(b){var c;this.pending[b.name]&&(c=this.elementAjaxPort(b),a.ajaxAbort(c),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass))},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a["date"===b?"dateISO":c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),""===d&&(d=!0),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(a,d){b[a]="function"==typeof d&&"normalizer"!==a?d(c):d}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var a;b[this]&&(Array.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(a=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(a[0]),Number(a[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:void 0!==b&&null!==b&&b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(){var a=!1;return function(b,c){return a||(a=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(c)||!/Invalid|NaN/.test(new Date(b).toString())}}(),dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:-?\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(a,b,c){var d=Array.isArray(a)?a.length:this.getLength(a,b);return this.optional(b)||d>=c},maxlength:function(a,b,c){var d=Array.isArray(a)?a.length:this.getLength(a,b);return this.optional(b)||d<=c},rangelength:function(a,b,c){var d=Array.isArray(a)?a.length:this.getLength(a,b);return this.optional(b)||d>=c[0]&&d<=c[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),null!==i.valid&&i.old===h?i.valid:(i.old=h,i.valid=null,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:this.elementAjaxPort(c),dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var c,d={};return a.ajaxPrefilter?a.ajaxPrefilter(function(b,c,e){var f=b.port;"abort"===b.mode&&(a.ajaxAbort(f),d[f]=e)}):(c=a.ajax,a.ajax=function(b){var e=("mode"in b?b:a.ajaxSettings).mode,f=("port"in b?b:a.ajaxSettings).port;return"abort"===e?(a.ajaxAbort(f),d[f]=c.apply(this,arguments),d[f]):c.apply(this,arguments)}),a.ajaxAbort=function(a){d[a]&&(d[a].abort(),delete d[a])},a});
2615;
2616/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2617(function($,once){if(!once('cvjquery','html').length)return;$(document).on('cv-jquery-validate-options-update',function(event,options){options.errorElement='strong';options.showErrors=function(errorMap,errorList){for(var i in errorList)$(errorList[i].element).parent().find('.form-item--error-message').remove();this.defaultShowErrors();$(this.currentForm).find('strong.error').each(function(){if(!$(this).parent().hasClass('form-item--error-message'))$(this).wrap('<div class="form-item--error-message" role="alert"/>');});};if(!options.hasOwnProperty('errorPlacement'))options.errorPlacement=function(error,element){if($(element).attr('type')==='radio'||$(element).attr('type')==='checkbox')return error.insertAfter(element.parent().parent());error.insertAfter(element);};});})(jQuery,once);;
2618(function($,Drupal,once,drupalSettings){'use strict';if(typeof drupalSettings.cvJqueryValidateOptions==='undefined')drupalSettings.cvJqueryValidateOptions={};if(drupalSettings.clientside_validation_jquery.force_validate_on_blur)drupalSettings.cvJqueryValidateOptions.onfocusout=function(element){this.element(element);};$.extend($.validator.messages,drupalSettings.clientside_validation_jquery.messages);var _urlValidation=$.validator.methods.url;$.validator.methods.url=function(value,element){return _urlValidation.call(this,value,element)||/^(public|private):\/\//.test(value);};Drupal.behaviors.cvJqueryValidate={attach:function(context){if(typeof Drupal.Ajax!=='undefined')if(typeof Drupal.Ajax.prototype.beforeSubmitCVOriginal==='undefined'){var validateAll=2;try{validateAll=drupalSettings.clientside_validation_jquery.validate_all_ajax_forms;}catch(e){}Drupal.Ajax.prototype.beforeSubmitCVOriginal=Drupal.Ajax.prototype.beforeSubmit;Drupal.Ajax.prototype.beforeSubmit=function(form_values,element_settings,options){if(typeof this.$form!=='undefined'&&(validateAll===1||$(this.element).hasClass('cv-validate-before-ajax'))&&$(this.element).attr("formnovalidate")==undefined){$(this.$form).removeClass('ajax-submit-prevented');$(this.$form).validate();if(!($(this.$form).valid())){this.ajaxing=false;$(this.$form).addClass('ajax-submit-prevented');return false;}}return this.beforeSubmitCVOriginal.apply(this,arguments);};}$(document).trigger('cv-jquery-validate-options-update',drupalSettings.cvJqueryValidateOptions);once('cvJqueryValidate','body form').forEach(function(element){$(element).validate(drupalSettings.cvJqueryValidateOptions);});}};})(jQuery,Drupal,once,drupalSettings);;
2619/* @license MIT License https://github.com/nolimits4web/swiper/blob/master/LICENSE */
2620/**
2621 * Swiper 11.2.10
2622 * Most modern mobile touch slider and framework with hardware accelerated transitions
2623 * https://swiperjs.com
2624 *
2625 * Copyright 2014-2025 Vladimir Kharlampidi
2626 *
2627 * Released under the MIT License
2628 *
2629 * Released on: June 28, 2025
2630 */
2631
2632var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={});const i=["__proto__","constructor","prototype"];Object.keys(a).filter((e=>i.indexOf(e)<0)).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
vendor: 5,848 bytes, line 2632
2632,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;a<arguments.length;a+=1){const i=a<0||arguments.length<=a?void 0:arguments[a];if(null!=i&&(s=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,a=s.length;t<a;t+=1){const a=s[t],r=Object.getOwnPropertyDescriptor(i,a);void 0!==r&&r.enumerable&&(c(e[a])&&c(i[a])?i[a].__swiper__?e[a]=i[a]:p(e[a],i[a]):!c(e[a])&&c(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:p(e[a],i[a])):e[a]=i[a])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){void 0===t&&(t="");const s=r(),a=[...e.children];return s.HTMLSlotElement&&e instanceof HTMLSlotElement&&a.push(...e.assignedElements()),t?a.filter((e=>e.matches(t))):a}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function T(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}function M(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function C(e,t){void 0===t&&(t=""),"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let P,L,I;function z(){return P||(P=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),P}function A(e){return void 0===e&&(e={}),L||(L=function(e){let{userAgent:t}=void 0===e?{}:e;const s=z(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!h&&(l.os="android",l.android=!0),(p||m||u)&&(l.os="ios",l.ios=!0),l}(e)),L}function $(){return I||(I=function(){const e=r(),t=A();let s=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,a]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));
vendor: 8,938 bytes, line 2632
2632s=e<16||16===e&&a<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=a();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||i&&t.ios,isWebView:i}}()),I}var k={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};const O=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const D=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const G=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},X=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},Y=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map(((e,t)=>s+a+t))),void e.slides.forEach(((t,s)=>{r.includes(t.column)&&X(e,s)}))}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(t<i||t>r)&&X(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a<i)&&X(e,a)};var B={updateSize:function(){const e=this;let t,s;const a=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a.clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a.clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(b(a,"padding-left")||0,10)-parseInt(b(a,"padding-right")||0,10),s=s-parseInt(b(a,"padding-top")||0,10)-parseInt(b(a,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t,s){return parseFloat(t.getPropertyValue(e.getDirectionLabel(s))||0)}const s=e.params,{wrapperEl:a,slidesEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&s.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=f(i,`.${e.params.slideClass}, swiper-slide`),p=o?e.virtual.slides.length:c.length;let m=[];const h=[],g=[];let v=s.slidesOffsetBefore;"function"==typeof v&&(v=s.slidesOffsetBefore.call(e));let w=s.slidesOffsetAfter;"function"==typeof w&&(w=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length,E=e.slidesGrid.length;let x=s.spaceBetween,T=-v,M=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*r:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,c.forEach((e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(u(a,"--swiper-centered-offset-before",""),u(a,"--swiper-centered-offset-after",""));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let a=0;a<p;a+=1){let i;if(L=0,c[a]&&(i=c[a]),P&&e.grid.updateSlide(a,i,c),!c[a]||"none"!==b(i,"display")){if("auto"===s.slidesPerView){I&&(c[a].style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),n=i.style.transform,l=i.style.webkitTransform;if(n&&(i.style.transform="none"),l&&(i.style.webkitTransform="none"),s.roundLengths)L=e.isHorizontal()?S(i,"width",!0):S(i,"height",!0);else{const e=t(r,"width"),s=t(r,"padding-left"),a=t(r,"padding-right"),n=t(r,"margin-left"),l=t(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)L=e+n+l;else{const{clientWidth:t,offsetWidth:r}=i;L=e+s+a+n+l+(r-t)}}n&&(i.style.transform=n),l&&(i.style.webkitTransform=l),s.roundLengths&&(L=Math.floor(L))}else L=(r-(s.slidesPerView-1)*x)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),c[a]&&(c[a].style[e.getDirectionLabel("width")]=`${L}px`);c[a]&&(c[a].swiperSlideSize=L),g.push(L),s.centeredSlides?(T=T+L/2+M/2+x,0===M&&0!==a&&(T=T-r/2-x),0===a&&(T=T-r/2-x),Math.abs(T)<.001&&(T=0),s.roundLengths&&(T=Math.floor(T)),C%s.slidesPerGroup==0&&m.push(T),h.push(T)):(s.roundLengths&&(T=Math.floor(T)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&m.push(T),h.push(T),T=T+L+x),e.virtualSize+=L+x,M=L,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+w,n&&l&&("slide"===s.effect||"coverflow"===s.effect)&&(a.style.width=`${e.virtualSize+x}px`),s.setWrapperSize&&(a.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),P&&e.grid.updateWrapperSize(L,m),!s.centeredSlides){const t=[];for(let a=0;a<m.length;a+=1){let i=m[a];s.roundLengths&&(i=Math.floor(i)),m[a]<=e.virtualSize-r&&t.push(i)}m=t,Math.floor(e.virtualSize-r)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-r)}if(o&&s.loop){const t=g[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e<a;e+=1)m.push(m[m.length-1]+i)}for(let a=0;a<e.virtual.slidesBefore+e.virtual.slidesAfter;a+=1)1===s.slidesPerGroup&&m.push(m[m.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===m.length&&(m=[0]),0!==x){const t=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${x}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=e>r?e-r:0;m=m.map((e=>e<=0?-v:e>t?t+w:e))}if(s.centerInsufficientSlides){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(e+t<r){const s=(r-e-t)/2;m.forEach(((e,t)=>{m[t]=e-s})),h.forEach(((e,t)=>{h[t]=e+s}))}}if(Object.assign(e,{slides:c,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){u(a,"--swiper-centered-offset-before",-m[0]+"px"),u(a,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),m.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==E&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>
vendor: 5,327 bytes, line 2632
26321)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a<t.length;a+=1)t[a].swiperSlideOffset=(e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop)-s-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<a.length;e+=1){const o=a[e];let d=o.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=a[0].swiperSlideOffset);const c=(n+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),p=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),u=-(n-d),m=u+t.slidesSizesGrid[e],h=u>=0&&u<=t.size-t.slidesSizesGrid[e],f=u>=0&&u<t.size-1||m>1&&m<=t.size||u<=0&&m>=t.size;f&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),O(o,f,s.slideVisibleClass),O(o,h,s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>f(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.find((e=>e.column===i)),c=t.find((e=>e.column===i+1)),d=t.find((e=>e.column===i-1))):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach((e=>{D(e,e===o,s.slideActiveClass),D(e,e===c,s.slideNextClass),D(e,e===d,s.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?a>=t[e]&&a<t[e+1]-(t[e+1]-t[e])/2?i=e:a>=t[e]&&a<t[e+1]&&(i=e+1):a>=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.find((e=>e.column===d));let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&Y(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>
vendor: 4,410 bytes, line 2632
26321&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)}));let r,n=!1;if(i)for(let e=0;e<s.slides.length;e+=1)if(s.slides[e]===i){n=!0,r=e;break}if(!i||!n)return s.clickedSlide=void 0,void(s.clickedIndex=void 0);s.clickedSlide=i,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=r,a.slideToClickedSlide&&void 0!==s.clickedIndex&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}};var H={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=d(i,e);return r+=this.cssOverflowAdjustment(),s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,wrapperEl:r,progress:n}=s;let l,o=0,d=0;s.isHorizontal()?o=a?-e:e:d=e,i.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d,i.cssMode?r[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-d:i.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();l=0===c?0:(e-s.minTranslate())/c,l!==n&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,s&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function N(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&"reset"===l?t.emit(`slideResetTransition${i}`):s&&r!==n&&(t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}var R={slideTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:f}=r;if(!f&&!a&&!i||r.destroyed||r.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,n);let v=g+Math.floor((n-g)/r.params.slidesPerGroup);v>=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate()))return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n<p?"prev":"reset";const y=r.virtual&&r.params.virtual.enabled;if(!(y&&i)&&(u&&-w===r.translate||!u&&w===r.translate))return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;
vendor: 6,463 bytes, line 2632
2632if(l.cssMode){const e=r.isHorizontal(),s=u?w:-w;if(0===t)y&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),y&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=s}))):h[e?"scrollLeft":"scrollTop"]=s,y&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}));else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}const E=$().isSafari;return y&&!i&&E&&r.isElement&&r.virtual.update(!1,!1,n),r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s}=i.params;let l=i.params.slidesPerView;"auto"===l?l=i.slidesPerViewDynamic():(l=Math.ceil(parseFloat(i.params.slidesPerView,10)),s&&l%2==0&&(l+=1));let o=t-e<l;if(s&&(o=o||e<Math.ceil(l/2)),a&&s&&"auto"!==i.params.slidesPerView&&!r&&(o=!1),o){const a=s?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:a,slideTo:!0,activeSlideIndex:"next"===a?e+1:e-t+1,slideRealIndex:"next"===a?i.realIndex:void 0})}if(r){const e=n*i.params.grid.rows;n=i.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame((()=>{i.slideTo(n,t,s,a)})),i},slideNext:function(e,t,s){void 0===t&&(t=!0);const a=this,{enabled:i,params:r,animating:n}=a;if(!i||a.destroyed)return a;void 0===e&&(e=a.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<r.slidesPerGroupSkip?1:l,d=a.virtual&&r.virtual.enabled;if(r.loop){if(n&&!d&&r.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{a.slideTo(a.activeIndex+o,e,t,s)})),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===t&&(t=!0);const a=this,{params:i,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=a;if(!o||a.destroyed)return a;void 0===e&&(e=a.params.speed);const c=a.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?a.translate:-a.translate),m=r.map((e=>p(e))),h=i.freeMode&&i.freeMode.enabled;let f=r[m.indexOf(u)-1];if(void 0===f&&(i.cssMode||h)){let e;r.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(f=h?r[e]:r[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=n.indexOf(f),g<0&&(g=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=g-a.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return i.loop&&0===a.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{a.slideTo(g,e,t,s)})),!0):a.slideTo(g,e,t,s)},slideReset:function(e,t,s){void 0===t&&(t=!0);const a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.getSlideIndexWhenGrid(e.clickedIndex);const n=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):r>(o?(e.slides.length-a)/2-(e.params.grid.rows-1):e.slides.length-a)?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var _={loopCreate:function(e,t){const s=this,{params:a,slidesEl:i}=s;if(!a.loop||s.virtual&&s.params.virtual.enabled)return;const r=()=>{f(i,`.${a.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},n=s.grid&&a.grid&&a.grid.rows>1;a.loopAddBlankSlides&&(a.slidesPerGroup>1||n)&&(()=>{const e=f(i,`.${a.slideBlankClass}`);e.forEach((e=>{e.remove()})),e.length>0&&(s.recalcSlides(),s.updateSlides())})();const l=a.slidesPerGroup*(n?a.grid.rows:1),o=s.slides.length%l!=0,d=n&&s.slides.length%a.grid.rows!=0,c=e=>{for(let t=0;t<e;t+=1){const e=s.isElement?v("swiper-slide",[a.slideBlankClass]):v("div",[a.slideClass,a.slideBlankClass]);s.slidesEl.append(e)}};if(o){if(a.loopAddBlankSlides){c(l-s.slides.length%l),s.recalcSlides(),s.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
2632not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(d){if(a.loopAddBlankSlides){c(a.grid.rows-s.slides.length%a.grid.rows),s.recalcSlides(),s.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();s.loopFix({slideRealIndex:e,direction:a.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:s=!0,direction:a,setTranslate:i,activeSlideIndex:r,initial:n,byController:l,byMousewheel:o}=void 0===e?{}:e;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:c,allowSlidePrev:p,allowSlideNext:u,slidesEl:m,params:h}=d,{centeredSlides:f,initialSlide:v}=h;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&h.virtual.enabled)return s&&(h.centeredSlides||0!==d.snapIndex?h.centeredSlides&&d.snapIndex<h.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0):d.slideTo(d.virtual.slides.length,0,!1,!0)),d.allowSlidePrev=p,d.allowSlideNext=u,void d.emit("loopFix");let w=h.slidesPerView;"auto"===w?w=d.slidesPerViewDynamic():(w=Math.ceil(parseFloat(h.slidesPerView,10)),f&&w%2==0&&(w+=1));const b=h.slidesPerGroupAuto?w:h.slidesPerGroup;let y=f?Math.max(b,Math.ceil(w/2)):b;y%b!=0&&(y+=b-y%b),y+=h.loopAdditionalSlides,d.loopedSlides=y;const E=d.grid&&h.grid&&h.grid.rows>1;c.length<w+y||"cards"===d.params.effect&&c.length<w+2*y?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&"row"===h.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const x=[],S=[],T=E?Math.ceil(c.length/h.grid.rows):c.length,M=n&&T-v<w&&!f;let C=M?v:d.activeIndex;void 0===r?r=d.getSlideIndex(c.find((e=>e.classList.contains(h.slideActiveClass)))):C=r;const P="next"===a||!a,L="prev"===a||!a;let I=0,z=0;const A=(E?c[r].column:r)+(f&&void 0===i?-w/2+.5:0);if(A<y){I=Math.max(y-A,b);for(let e=0;e<y-A;e+=1){const t=e-Math.floor(e/T)*T;if(E){const e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&x.push(t)}else x.push(T-t-1)}}else if(A+w>T-y){z=Math.max(A-(T-2*y),b),M&&(z=Math.max(z,w-T+v+1));for(let e=0;e<z;e+=1){const t=e-Math.floor(e/T)*T;E?c.forEach(((e,s)=>{e.column===t&&S.push(s)})):S.push(t)}}if(d.__preventObserver__=!0,requestAnimationFrame((()=>{d.__preventObserver__=!1})),"cards"===d.params.effect&&c.length<w+2*y&&(S.includes(r)&&S.splice(S.indexOf(r),1),x.includes(r)&&x.splice(x.indexOf(r),1)),L&&x.forEach((e=>{c[e].swiperLoopMoveDOM=!0,m.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),P&&S.forEach((e=>{c[e].swiperLoopMoveDOM=!0,m.append(c[e]),c[e].swiperLoopMoveDOM=!1})),d.recalcSlides(),"auto"===h.slidesPerView?d.updateSlides():E&&(x.length>0&&L||S.length>0&&P)&&d.slides.forEach(((e,t)=>{d.grid.updateSlide(t,e,d.slides)})),h.watchSlidesProgress&&d.updateSlidesOffset(),s)if(x.length>0&&L){if(void 0===t){const e=d.slidesGrid[C],t=d.slidesGrid[C+I]-e;o?d.setTranslate(d.translate-t):(d.slideTo(C+Math.ceil(I),0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else if(i){const e=E?x.length/h.grid.rows:x.length;d.slideTo(d.activeIndex+e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(S.length>0&&P)if(void 0===t){const e=d.slidesGrid[C],t=d.slidesGrid[C-z]-e;o?d.setTranslate(d.translate-t):(d.slideTo(C-z,0,!1,!0),i&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-t,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-t))}else{const e=E?S.length/h.grid.rows:S.length;d.slideTo(d.activeIndex-e,0,!1,!0)}if(d.allowSlidePrev=p,d.allowSlideNext=u,d.controller&&d.controller.control&&!l){const e={slideRealIndex:t,direction:a,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&s})})):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...e,slideTo:d.controller.control.params.slidesPerView===h.slidesPerView&&s})}d.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||!s||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];
vendor: 3,381 bytes, line 2632
2632e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),a.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function q(e,t,s){const a=r(),{params:i}=e,n=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return!n||!(s<=l||s>=a.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function V(e){const t=this,s=a();let i=e;i.originalEvent&&(i=i.originalEvent);const n=t.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void q(t,i,i.targetTouches[0].pageX);const{params:l,touches:d,enabled:c}=t;if(!c)return;if(!l.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=i.target;if("wrapper"===l.touchEventsTarget&&!function(e,t){const s=r();let a=t.contains(e);!a&&s.HTMLSlotElement&&t instanceof HTMLSlotElement&&(a=[...t.assignedElements()].includes(e),a||(a=function(e,t){const s=[t];for(;s.length>0;){const t=s.shift();if(e===t)return!0;s.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return a}(p,t.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!l.noSwipingClass&&""!==l.noSwipingClass,m=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&m&&(p=m[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(h,p):p.closest(h)))return void(t.allowClick=!0);if(l.swipeHandler&&!p.closest(l.swipeHandler))return;d.currentX=i.pageX,d.currentY=i.pageY;const g=d.currentX,v=d.currentY;if(!q(t,i,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!p.matches(n.focusableElements))&&s.activeElement.blur();const b=w&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!b||p.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function F(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==i.touchId)return;if(p.pointerId!==i.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].find((e=>e.identifier===i.touchId)
vendor: 5,269 bytes, line 2632
2632),!c||c.identifier!==i.touchId)return}else c=p;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),i.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(l&&(u>n.startX&&-s.translate<=s.maxTranslate()||u<n.startX&&-s.translate>=s.minTranslate()))return;if(!l&&(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==p.target&&"mouse"!==p.pointerType&&t.activeElement.blur(),t.activeElement&&p.target===t.activeElement&&p.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const h=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(h**2+f**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:h*h+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",p),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===p.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?h:f,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),n.diff=g,g*=r.touchRatio,l&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",p),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let E=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+g)**x))):g<0&&(b&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+("auto"!==r.slidesPerView&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-g)**x))),E&&(p.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function 
vendor: 4,379 bytes, line 2632
2632W(e){const t=this,s=t.touchEventsData;let a,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(a=[...i.changedTouches].find((e=>e.identifier===s.touchId)),!a||a.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(i.pointerId!==s.pointerId)return;a=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:n,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=o(),m=u-s.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=o(),l((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===n.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const f=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==c[e+t]?(f||h>=c[e]&&h<c[e+t])&&(g=e,v=c[e+t]-c[e]):(f||h>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let w=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const y=(h-c[g])/v,E=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?w:g+E):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+E):null!==b&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(g+E):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+E),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function j(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function U(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function K(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Z(e){const t=this;G(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 5,575 bytes, line 2632
2632)}function Q(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const J=(e,t)=>{const s=a(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",j,!0):e[c]("observerUpdate",j,!0),r[d]("load",e.onLoad,{capture:!0}))};const ee=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var te={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function se(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in i?("object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),p(t,s)):p(t,s)):p(t,s)}}const ae={eventsEmitter:k,update:B,translate:H,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),N({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),N({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:R,loop:_,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=V.bind(e),e.onTouchMove=F.bind(e),e.onTouchEnd=W.bind(e),e.onDocumentTouchStart=Q.bind(e),t.cssMode&&(e.onScroll=K.bind(e)),e.onClick=U.bind(e),e.onLoad=Z.bind(e),J(e,"on")},detachEvents:function(){J(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:i,el:r}=e,n=i.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const l=a(),o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,d=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:l.querySelector(i.breakpointsBase),c=e.getBreakp
vendor: 3,981 bytes, line 2632
2632oint(n,o,d);if(!c||e.currentBreakpoint===c)return;const u=(c in n?n[c]:void 0)||e.originalParams,m=ee(e,i),h=ee(e,u),f=e.params.grabCursor,g=u.grabCursor,v=i.enabled;m&&!h?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!m&&h&&(r.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),f&&!g?e.unsetGrabCursor():!f&&g&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===u[t])return;const s=i[t]&&i[t].enabled,a=u[t]&&u[t].enabled;s&&!a&&e[t].disable(),!s&&a&&e[t].enable()}));const w=u.direction&&u.direction!==i.direction,b=i.loop&&(u.slidesPerView!==i.slidesPerView||w),y=i.loop;w&&s&&e.changeDirection(),p(e.params,u);const E=e.params.enabled,x=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!E?e.disable():!v&&E&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),s&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&x?(e.loopCreate(t),e.updateSlides()):y&&!x&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},ie={};class re{constructor(){let e,t;for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=p({},t),e&&!t.el&&(t.el=e);const n=a();if(t.el&&"string"==typeof t.el&&n.querySelectorAll(t.el).length>1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const a=p({},t,{el:s});e.push(new re(a))})),e}const l=this;l.__swiper__=!0,l.support=z(),l.device=A({userAgent:t.userAgent}),l.browser=$(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:se(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const d=p({},te,o);return l.params=p({},d,ie,t),l.originalParams=p({},l.params),l.passedParams=p({}
vendor: 4,848 bytes, line 2632
2632,t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=y(f(t,`.${s.slideClass}, swiper-slide`)[0]);return y(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=f(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?Math.ceil(a[l].swiperSlideSize):0;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=Math.ceil(a[s].swiperSlideSize),o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&G(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEac
vendor: 4,493 bytes, line 2632
2632h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(a())}return f(s,a())[0]})();return!i&&t.params.createElements&&(i=v("div",t.params.wrapperClass),s.append(i),f(s,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction")),wrongRTL:"-webkit-box"===b(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?G(t,e):e.addEventListener("load",(e=>{G(t,e.target)}))})),Y(t),t.initialized=!0,Y(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),r&&r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){p(ie,e)}static get extendedDefaults(){return ie}static get defaults(){return te}static installModule(e){re.prototype.__modules__||(re.prototype.__modules__=[]);const t=re.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>re.installModule(e))),re):(re.installModule(e),re)}}function ne(e,t,s,a){return e.params.createElements&&Object.keys(a).forEach((i=>{if(!s[i]&&!0===s.auto){let r=f(e.el,`.${a[i]}`)[0];r||(r=v("div",a[i]),r.className=a[i],e.el.append(r)),s[i]=r,t[i]=r}})),s}function le(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function oe(e){const t=this,{params:s,slidesEl:a}=t;s.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");C(t,e),a.append(t.children[0]),C(t,"")}else a.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update()}function de(e){const t=this,{params:s,activeIndex:a,slidesEl:i}=t;s.loop&&t.loopDestroy();let r=a+1;const n=e=>{if("string"==typeof e){const t=document.createElement("div");C(t,e),i.prepend(t.children[0]),C(t,"")}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);r=a+e.length}else n(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(
vendor: 7,243 bytes, line 2632
2632),t.slideTo(r,0,!1)}function ce(e,t){const s=this,{params:a,activeIndex:i,slidesEl:r}=s;let n=i;a.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);o=n>e?n+t.length:n}else r.append(t);for(let e=0;e<d.length;e+=1)r.append(d[e]);s.recalcSlides(),a.loop&&s.loopCreate(),a.observer&&!s.isElement||s.update(),a.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function pe(e){const t=this,{params:s,activeIndex:a}=t;let i=a;s.loop&&(i-=t.loopedSlides,t.loopDestroy());let r,n=i;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1),n=Math.max(n,0);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(),s.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function ue(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function me(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate _virtualUpdated",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function he(e,t){const s=h(t);return s!==t&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function fe(e){let{swiper:t,duration:s,transformElements:a,allSlides:i}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a:a.filter((e=>{const s=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode));return e.parentElement})(e):e;return t.getSlideIndex(s)===r})),e.forEach((e=>{x(e,(()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function ge(e,t,s){const a=`swiper-slide-shadow${s?`-${s}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=h(t);let r=i.querySelector(`.${a.split(" ").join(".")}`);return r||(r=v("div",a.split(" ")),i.append(r)),r}Object.keys(ae).forEach((e=>{Object.keys(ae[e]).forEach((t=>{re.prototype[t]=ae[e][t]}))})),re.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,s){void 0===s&&(s={});const a=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const s=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));a.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:t.isElement||(void 0===s.childList||s).childList,characterData:void 0===s.characterData||s.characterData}),n.push(a)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=E(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const ve=[function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const l=a();s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=l.createElement("div");function d(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];let i;return a.renderSlide?(i=a.renderSlide.call(s,e,t),"string"==typeof i&&(C(o,i),i=o.children[0])):i=s.isElement?v("swiper-slide"):v("div",s.params.slideClass),i.setAttribute("data-swiper-slide-index",t),a.renderSlide||C(i,e),a.cache&&(s.virtual.cache[t]=i),i}function c(e,t,a){const{slidesPerView:i,slidesPerGroup:r,centeredSlides:l,loop:o,initialSlide:c}=s.params;if(t&&!o&&c>0)return;const{addSlidesBefore:p,addSlidesAfter:u}=s.params.virtual,{from:m,to:h,slides:g,slidesGrid:v,offset:w}=s.virtual;s.params.cssMode||s.updateActiveIndex();const b=void 0===a?s.activeIndex||0:a;let y,E,x;y=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",l?(E=Math.floor(i/2)+r+u,x=Math.floor(i/2)+r+p):(E=i+(r-1)+u,x=(o?i:r)+p);let S=b-x,T=b+E;o||(S=Math.max(S,0),T=Math.min(T,g.length-1));let M=(s.slidesGrid[S]||0)-(s.slidesGrid[0]||0);function C(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),n("virtualUpdate")}if(o&&b>=x?(S-=x,l||(M+=s.slidesGrid[0])):o&&b<x&&(S=-x,l&&(M+=s.slidesGrid[0])),Object.assign(s.virtual,{from:S,to:T,offset:M,slidesGrid:s.slidesGrid,slidesBefore:x,slidesAfter:E}),m===S&&h===T&&!e)return s.slidesGrid!==v&&M!==w&&s.slides.forEach((e=>{e.style[y]=M-Math.abs(s.cssOverflowAdjustment())+"px"})),s.updateProgress(),void n("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:M,from:S,to:T,slides:function(){const e=[];for(let t=S;t<=T;t+=1)e.push(g[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?C():n("virtualUpdate"));const P=[],L=[],I=e=>{let t=e;return e<0?t=g.length+e:t>=g.length&&(t-=g.length),t};if(e)s.slides.filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=m;e<=h;e+=1)if(e<S||e>T){const t=I(e);s.slides.filter((e=>e.matches(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}
2632"]`))).forEach((e=>{e.remove()}))}const z=o?-g.length:0,A=o?2*g.length:g.length;for(let t=z;t<A;t+=1)if(t>=S&&t<=T){const s=I(t);void 0===h||e?L.push(s):(t>h&&L.push(s),t<m&&P.push(s))}if(L.forEach((e=>{s.slidesEl.append(d(g[e],e))})),o)for(let e=P.length-1;e>=0;e-=1){const t=P[e];s.slidesEl.prepend(d(g[t],t))}else P.sort(((e,t)=>t-e)),P.forEach((e=>{s.slidesEl.prepend(d(g[e],e))}));f(s.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[y]=M-Math.abs(s.cssOverflowAdjustment())+"px"})),C()}r("beforeInit",(()=>{if(!s.params.virtual.enabled)return;let e;if(void 0===s.passedParams.virtual.slides){const t=[...s.slidesEl.children].filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`)));t&&t.length&&(s.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),s.virtual.cache[t]=e,e.remove()})))}e||(s.virtual.slides=s.params.virtual.slides),s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,c(!1,!0)})),r("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),r("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&u(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}c(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.params.virtual.cache&&(delete s.virtual.cache[e[a]],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e[a],1),e[a]<t&&(t-=1),t=Math.max(t,0);else s.params.virtual.cache&&(delete s.virtual.cache[e],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),c(!0),s.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function d(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,m=38===i,h=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&m||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&(l.activeElement.isContentEditable||l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||m||h)){let e=!1;if(E(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===E(t.el,`.${t.params.slideActiveClass}`).length)return;const a=t.el,i=a.clientWidth,r=a.clientHeight,n=o.innerWidth,l=o.innerHeight,d=w(a);s&&(d.left-=a.scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||m||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&t.slideNext(),(d||m)&&t.slidePrev()),n("keyPress",i)}}function c(){t.keyboard.enabled||(l.addEventListener("keydown",d),t.keyboard.enabled=!0)}function p(){t.keyboard.enabled&&(l.removeEventListener("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&c()})),i("destroy",(()=>{t.keyboard.enabled&&p()})),Object.assign(t.keyboard,{enable:c,disable:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let d;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let c,p=o();const u=[];function m(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&o()-p<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&o()-p<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),p=(new n.Date).getTime(),!1)))}function g(e){let s=e,a=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget));const p=n&&n.contains(s.target);if(!t.mouseEntered&&!p&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let m=0;const h=t.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120
vendor: 4,794 bytes, line 2632
2632),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*h}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*h:-g.pixelY;if(0===m)return!0;r.invert&&(m=-m);let v=t.getTranslate()+m*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:o(),delta:Math.abs(m),direction:Math.sign(m)},a=c&&e.time<c.time+500&&e.delta<=c.delta&&e.direction===c.direction;if(!a){c=void 0;let n=t.getTranslate()+m*r.sensitivity;const o=t.isBeginning,p=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!o&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(d),d=void 0,u.length>=15&&u.shift();const s=u.length?u[u.length-1]:void 0,a=u[0];if(u.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))u.splice(0);else if(u.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=m>0?.8:.2;c=e,u.splice(0),d=l((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}d||(d=l((()=>{if(t.destroyed||!t.params)return;c=e,u.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(n===t.minTranslate()||n===t.maxTranslate()))return!0}}else{const s={time:o(),delta:Math.abs(m),direction:Math.sign(m),raw:e};u.length>=2&&u.shift();const a=u.length?u[u.length-1]:void 0;if(u.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function v(e){let s=t.el;"container"!==t.params.mousewheel.eventsTarget&&(s=document.querySelector(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",h),s[e]("wheel",g)}function w(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&w()})),a("destroy",(()=>{t.params.cssMode&&w(),t.mousewheel.enabled&&b()})),Object.assign(t.mousewheel,{enable:w,disable:b})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&"string"==typeof e&&t.isElement&&(s=t.el.querySelector(e)||t.hostEl.querySelector(e),s)?s:(e&&("string"==typeof e&&(s=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&s&&s.length>1&&1===t.el.querySelectorAll(e).length?s=t.el.querySelector(e):s&&1===s.length&&(s=s[0])),e&&!s?e:s)}function n(e,s){const a=t.params.navigation;(e=T(e)).forEach((e=>{e&&(e.classList[s?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=s),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](a.lockClass))}))}function l(){const{nextEl:e,prevEl:s}=t.navigation;if(t.params.loop)return n(s,!1),void n(e,!1);n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=ne(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=r(e.nextEl),a=r(e.prevEl);Object.assign(t.navigation,{nextEl:s,prevEl:a}),s=T(s),a=T(a);const i=(s,a)=>{s&&s.addEventListener("click","next"===a?d:o),!t.enabled&&s&&s.classList.add(...e.lockClass.split(" "))};
vendor: 4,373 bytes, line 2632
2632s.forEach((e=>i(e,"next"))),a.forEach((e=>i(e,"prev")))}function p(){let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s);const a=(e,s)=>{e.removeEventListener("click","next"===s?d:o),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>a(e,"next"))),s.forEach((e=>a(e,"prev")))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?u():(c(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{p()})),a("enable disable",(()=>{let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s),t.enabled?l():[...e,...s].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),a("click",((e,s)=>{let{nextEl:a,prevEl:r}=t.navigation;a=T(a),r=T(r);const n=s.target;let l=r.includes(n)||a.includes(n);if(t.isElement&&!l){const e=s.path||s.composedPath&&s.composedPath();e&&(l=e.find((e=>a.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!l){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a.length?e=a[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...a,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,s){const{bulletActiveClass:a}=t.params.pagination;e&&(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${a}-${s}`),(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&e.classList.add(`${a}-${s}-${s}`))}function c(e){const s=e.target.closest(le(t.params.pagination.bulletClass));if(!s)return;e.preventDefault();const a=y(s)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===a)return;const e=(i=t.realIndex,r=a,n=t.slides.length,(r%=n)==1+(i%=n)?"next":r===i-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(a)}else t.slideTo(a);var i,r,n}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;let a,r,c=t.pagination.el;c=T(c);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,a=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(a=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,a=t.activeIndex||0),"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let o,p,u;if(s.dynamicBullets&&(n=S(i[0],t.isHorizontal()?"width":"height",!0),c.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=n*(s.dynamicMainBullets+4)+"px"})),s.dynamicMainBullets>1&&void 0!==r&&(l+=a-(r||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),o=Math.max(a-l,0),p=o+(Math.min(i.length,s.dynamicMainBullets)-1),u=(p+o)/2),i.forEac
vendor: 9,756 bytes, line 2632
2632h((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)i.forEach((e=>{const i=y(e);i===a?e.classList.add(...s.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),s.dynamicBullets&&(i>=o&&i<=p&&e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),i===o&&d(e,"prev"),i===p&&d(e,"next"))}));else{const e=i[a];if(e&&e.classList.add(...s.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")})),s.dynamicBullets){const e=i[o],t=i[p];for(let e=o;e<=p;e+=1)i[e]&&i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(s.dynamicBullets){const a=Math.min(i.length,s.dynamicMainBullets+4),r=(n*a-n)/2-u*n,l=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?l:"top"]=`${r}px`}))}}c.forEach(((e,r)=>{if("fraction"===s.type&&(e.querySelectorAll(le(s.currentClass)).forEach((e=>{e.textContent=s.formatFractionCurrent(a+1)})),e.querySelectorAll(le(s.totalClass)).forEach((e=>{e.textContent=s.formatFractionTotal(u)}))),"progressbar"===s.type){let i;i=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(a+1)/u;let n=1,l=1;"horizontal"===i?n=r:l=r,e.querySelectorAll(le(s.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===s.type&&s.renderCustom?(C(e,s.renderCustom(t,a+1,u)),0===r&&i("paginationRender",e)):(0===r&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass)}))}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let a=t.pagination.el;a=T(a);let r="";if("bullets"===e.type){let a=t.params.loop?Math.ceil(s/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&a>s&&(a=s);for(let s=0;s<a;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],a.forEach((s=>{"custom"!==e.type&&C(s,r||""),"bullets"===e.type&&t.pagination.bullets.push(...s.querySelectorAll(le(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",a[0])}function m(){t.params.pagination=ne(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s;"string"==typeof e.el&&t.isElement&&(s=t.el.querySelector(e.el)),s||"string"!=typeof e.el||(s=[...document.querySelectorAll(e.el)]),s||(s=e.el),s&&0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(s)&&s.length>1&&(s=[...t.el.querySelectorAll(e.el)],s.length>1&&(s=s.find((e=>E(e,".swiper")[0]===t.el)))),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(t.pagination,{el:s}),s=T(s),s.forEach((s=>{"bullets"===e.type&&e.clickable&&s.classList.add(...(e.clickableClass||"").split(" ")),s.classList.add(e.modifierClass+e.type),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.classList.add(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.classList.add(e.progressbarOppositeClass),e.clickable&&s.addEventListener("click",c),t.enabled||s.classList.add(e.lockClass)})))}function h(){const e=t.params.pagination;if(o())return;let s=t.pagination.el;s&&(s=T(s),s.forEach((s=>{s.classList.remove(e.hiddenClass),s.classList.remove(e.modifierClass+e.type),s.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(s.classList.remove(...(e.clickableClass||"").split(" ")),s.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}a("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:s}=t.pagination;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),a("init",(()=>{!1===t.params.pagination.enabled?f():(m(),u(),p())})),a("activeIndexChange",(()=>{void 0===t.snapIndex&&p()})),a("snapIndexChange",(()=>{p()})),a("snapGridLengthChange",(()=>{u(),p()})),a("destroy",(()=>{h()})),a("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,r=T(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!a.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),m(),u(),p()},disable:f,render:u,update:p,init:m,destroy:h})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const o=a();let d,c,p,u,m=!1,h=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s}=t,{dragEl:a,el:i}=e,r=t.params.scrollbar,n=t.params.loop?t.progressLoop:t.progress;let l=c,o=(p-c)*n;s?(o=-o,o>0?(l=c-o,o=0):-o+c>p&&(l=p+o)):o<0?(l=c+o,o=0):o+c>p&&(l=p-o),t.isHorizontal()?(a.style.transform=`translate3d(${o}px, 0, 0)`,a.style.width=`${l}px`):(a.style.transform=`translate3d(0px, ${o}px, 0)`,a.style.height=`${l}px`),r.hide&&(clearTimeout(h),i.style.opacity=1,h=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:s,el:a}=e;s.style.width="",s.style.height="",p=t.isHorizontal()?a.offsetWidth:a.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?p*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s.style.width=`${c}px`:s.style.height=`${c}px`,a.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function E(e){const{scrollbar:s,rtlTranslate:a}=t,{el:i}=s;let r;r=(y(e)-w(i)[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(p-c),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n,dragEl:l}=a;m=!0,d=e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.style.transitionDuration="100ms",l.style.transitionDuration="100ms",E(e),clearTimeout(f),n.style.transitionDuration="0ms",s.hide&&(n.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function S(e){const{scrollbar:s,wrapperEl:a}=t,{el:i,dragEl:n}=s;m&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,E(e),a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function M(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n}=a;m&&(m=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",i.style.transitionDuration=""),s.hide&&(clearTimeout(f),f=l((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,params:a}=t,i=s.el;if(!i)return;const r=i,n=!!a.passiveListeners&&{passive:!1,capture:!1},l=!!a.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const d="on"===e?"addEventListener":"removeEventListener";r[d]("pointerdown",x,n),o[d]("pointermove",S,n),o[d]("pointerup",M,l)}function P(){const{scrollbar:e,el:s}=t;t.params.scrollbar=ne(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i,r;if("string"==typeof a.el&&t.isElement&&(i=t.el.querySelector(a.el)),i||"string"!=typeof a.el)i||(i=a.el);else if(i=o.querySelectorAll(a.el),!i.length)return;t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.querySelectorAll(a.el).length&&(i=s.querySelector(a.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?a.horizontalClass:a.verticalClass),i&&(r=i.querySelector(l
vendor: 3,921 bytes, line 2632
2632e(t.params.scrollbar.dragClass)),r||(r=v("div",t.params.scrollbar.dragClass),i.append(r))),Object.assign(e,{el:i,dragEl:r}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))}function L(){const e=t.params.scrollbar,s=t.scrollbar.el;s&&s.classList.remove(...n(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:s}=t.scrollbar;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.scrollbar.enabled?I():(P(),b(),g())})),i("update resize observerUpdate lock unlock changeDirection",(()=>{b()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(s)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))})),i("destroy",(()=>{L()}));const I=()=>{t.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),L()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),P(),b(),g()},disable:I,updateSize:b,setTranslate:g,init:P,destroy:L})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:a}=t,i=a?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}e.style.transform=p},n=()=>{const{el:e,slides:s,progress:a,snapGrid:n,isElement:l}=t,o=f(e,i);t.isElement&&o.push(...f(t.hostEl,i)),o.forEach((e=>{r(e,a)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-a*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&n()})),a("setTranslate",(()=>{t.params.parallax.enabled&&n()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:a}=t,r=[...s.querySelectorAll(i)];t.isElement&&r.push(...a.querySelectorAll(i)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,
vendor: 5,985 bytes, line 2632
2632limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l=1,o=!1,c=!1,p={x:0,y:0};const u=-3;let m,h;const g=[],v={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},b={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},y={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let x,S=1;function T(){if(g.length<2)return 1;const e=g[0].pageX,t=g[0].pageY,s=g[1].pageX,a=g[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function M(){const e=t.params.zoom,s=v.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&v.imageEl&&v.imageEl.naturalWidth){const e=v.imageEl.naturalWidth/v.imageEl.offsetWidth;return Math.min(e,s)}return s}function C(e){const s=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(s)||t.slides.filter((t=>t.contains(e.target))).length>0}function P(e){const s=`.${t.params.zoom.containerClass}`;return!!e.target.matches(s)||[...t.hostEl.querySelectorAll(s)].filter((t=>t.contains(e.target))).length>0}function L(e){if("mouse"===e.pointerType&&g.splice(0,g.length),!C(e))return;const s=t.params.zoom;if(m=!1,h=!1,g.push(e),!(g.length<2)){if(m=!0,v.scaleStart=T(),!v.slideEl){v.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),v.slideEl||(v.slideEl=t.slides[t.activeIndex]);let a=v.slideEl.querySelector(`.${s.containerClass}`);if(a&&(a=a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=a,v.imageWrapEl=a?E(v.imageEl,`.${s.containerClass}`)[0]:void 0,!v.imageWrapEl)return void(v.imageEl=void 0);v.maxRatio=M()}if(v.imageEl){const[e,t]=function(){if(g.length<2)return{x:null,y:null};const e=v.imageEl.getBoundingClientRect();return[(g[0].pageX+(g[1].pageX-g[0].pageX)/2-e.x-n.scrollX)/l,(g[0].pageY+(g[1].pageY-g[0].pageY)/2-e.y-n.scrollY)/l]}();v.originX=e,v.originY=t,v.imageEl.style.transitionDuration="0ms"}o=!0}}function I(e){if(!C(e))return;const s=t.params.zoom,a=t.zoom,i=g.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(g[i]=e),g.length<2||(h=!0,v.scaleMove=T(),v.imageEl&&(a.scale=v.scaleMove/v.scaleStart*l,a.scale>v.maxRatio&&(a.scale=v.maxRatio-1+(a.scale-v.maxRatio+1)**.5),a.scale<s.minRatio&&(a.scale=s.minRatio+1-(s.minRatio-a.scale+1)**.5),v.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`))}function z(e){if(!C(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const s=t.params.zoom,a=t.zoom,i=g.findIndex((t=>t.pointerId===e.pointerId));i>=0&&g.splice(i,1),m&&h&&(m=!1,h=!1,v.imageEl&&(a.scale=Math.max(Math.min(a.scale,v.maxRatio),s.minRatio),v.imageEl.style.transitionDuration=`${t.params.speed}ms`,v.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,l=a.scale,o=!1,a.scale>1&&v.slideEl?v.slideEl.classList.add(`${s.zoomedSlideClass}`):a.scale<=1&&v.slideEl&&v.slideEl.classList.remove(`${s.zoomedSlideClass}`),1===a.scale&&(v.originX=0,v.originY=0,v.slideEl=void 0)))}function A(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function $(e){const s="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!C(e)||!P(e))return;const a=t.zoom;if(!v.imageEl)return;if(!b.isTouched||!v.slideEl)return void(s&&O(e));if(s)return void O(e);b.isMoved||(b.width=v.imageEl.offsetWidth||v.imageEl.clientWidth,b.height=v.imageEl.offsetHeight||v.imageEl.clientHeight,b.startX=d(v.imageWrapEl,"x")||0,b.startY=d(v.imageWrapEl,"y")||0,v.slideWidth=v.slideEl.offsetWidth,v.slideHeight=v.slideEl.offsetHeight,v.imageWrapEl.style.transitionDuration="0ms");const i=b.width*a.scale,r=b.height*a.scale;b.minX=Math.min(v.slideWidth/2-i/2,0),b.maxX=-b.minX,b.minY=Math.min(v.slideHeight/2-r/2,0),b.maxY=-b.minY,b.touchesCurrent.x=g.length>0?g[0].pageX:e.pageX,b.touchesCurrent.y=g.length>0?g[0].pageY:e.pageY;if(Math.max(Math.abs(b.touchesCurrent.x-b.touchesStart.x),Math.abs(b.touchesCurrent.y-b.touchesStart.y))>5&&(t.allowClick=!1),!b.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(b.minX)===Math.floor(b.startX)&&b.touchesCurrent.x<b.touchesStart.x||Math.floor(b.maxX)===Math.floor(b.startX)&&b.touchesCurrent.x>b.touchesStart.x))return b.isTouched=!1,void A();if(!t.isHorizontal()&&(Math.floor(b.minY)===Math.floor(b.startY)&&b.touchesCurrent.y<b.touchesStart.y||Math.floor(b.maxY)===Math.floor(b.startY)&&b.touchesCurrent.y>b.touchesStart.y))return b.isTouched=!1,void A()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(x),t.touchEventsData.preventTouchMoveFromPointerMove=!0,x=setTimeout((()=>{t.destroyed||A()})),b.isMoved=!0;const n=(a.scale-l)/(v.maxRatio-t.params.zoom.minRatio),{originX:c,originY:p}=v;b.currentX=b.touchesCurrent.x-b.touchesStart.x+b.startX+n*(b.width-2*c),b.currentY=b.touchesCurrent.y-b.touchesStart.y+b.startY+n*(b.height-2*p),b.currentX<b.minX&&(b.currentX=b.minX+1-(b.minX-b.currentX+1)**.8),b.currentX>b.maxX&&(b.currentX=b.maxX-1+(b.currentX-b.maxX+1)**.8),b.currentY<b.minY&&(b.currentY=b.minY+1-(b.minY-b.currentY+1)**.8),b.currentY>b.maxY&&(b.currentY=b.maxY-1+(b.currentY-b.maxY+1)**.8),y.prevPositionX||(y.prevPositionX=b.touchesCurrent.x),y.prevPositionY||(y.prevPositionY=b.touchesCurrent.y),y.prevTime||(y.prevTime=Date.now()),y.x=(b.touchesCurrent.x-y.prevPositionX)/(Date.now()-y.prevTime)/2,y.y=(b.touchesCurrent.y-y.prevPositionY)/(Date.now()-y.prevTime)/2,Math.abs(b.touchesCurrent.x-y.prevPositionX)<2&&(y.x=0),Math.abs(b.touchesCurrent.y-y.prevPositionY)<2&&(y.y=0),y.prevPositionX=b.touchesCurrent.x,y.prevPositionY=b.touchesCurrent.y,y.prevTime=Date.now(),v.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}function k(){const e=t.zoom;v.slideEl&&t.activeIndex!==t.slides.indexOf(v.slideEl)&&(v.imageEl&&(v.imageEl.style.transform="translate3d(0,
26320,0) scale(1)"),v.imageWrapEl&&(v.imageWrapEl.style.transform="translate3d(0,0,0)"),v.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,l=1,v.slideEl=void 0,v.imageEl=void 0,v.imageWrapEl=void 0,v.originX=0,v.originY=0)}function O(e){if(l<=1||!v.imageWrapEl)return;if(!C(e)||!P(e))return;const t=n.getComputedStyle(v.imageWrapEl).transform,s=new n.DOMMatrix(t);if(!c)return c=!0,p.x=e.clientX,p.y=e.clientY,b.startX=s.e,b.startY=s.f,b.width=v.imageEl.offsetWidth||v.imageEl.clientWidth,b.height=v.imageEl.offsetHeight||v.imageEl.clientHeight,v.slideWidth=v.slideEl.offsetWidth,void(v.slideHeight=v.slideEl.offsetHeight);const a=(e.clientX-p.x)*u,i=(e.clientY-p.y)*u,r=b.width*l,o=b.height*l,d=v.slideWidth,m=v.slideHeight,h=Math.min(d/2-r/2,0),f=-h,g=Math.min(m/2-o/2,0),w=-g,y=Math.max(Math.min(b.startX+a,f),h),E=Math.max(Math.min(b.startY+i,w),g);v.imageWrapEl.style.transitionDuration="0ms",v.imageWrapEl.style.transform=`translate3d(${y}px, ${E}px, 0)`,p.x=e.clientX,p.y=e.clientY,b.startX=y,b.startY=E,b.currentX=y,b.currentY=E}function D(e){const s=t.zoom,a=t.params.zoom;if(!v.slideEl){e&&e.target&&(v.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),v.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?v.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:v.slideEl=t.slides[t.activeIndex]);let s=v.slideEl.querySelector(`.${a.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=s,v.imageWrapEl=s?E(v.imageEl,`.${a.containerClass}`)[0]:void 0}if(!v.imageEl||!v.imageWrapEl)return;let i,r,o,d,c,p,u,m,h,g,y,x,S,T,C,P,L,I;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),v.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===b.touchesStart.x&&e?(i=e.pageX,r=e.pageY):(i=b.touchesStart.x,r=b.touchesStart.y);const z=l,A="number"==typeof e?e:null;1===l&&A&&(i=void 0,r=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0);const $=M();s.scale=A||$,l=A||$,!e||1===l&&A?(u=0,m=0):(L=v.slideEl.offsetWidth,I=v.slideEl.offsetHeight,o=w(v.slideEl).left+n.scrollX,d=w(v.slideEl).top+n.scrollY,c=o+L/2-i,p=d+I/2-r,h=v.imageEl.offsetWidth||v.imageEl.clientWidth,g=v.imageEl.offsetHeight||v.imageEl.clientHeight,y=h*s.scale,x=g*s.scale,S=Math.min(L/2-y/2,0),T=Math.min(I/2-x/2,0),C=-S,P=-T,z>0&&A&&"number"==typeof b.currentX&&"number"==typeof b.currentY?(u=b.currentX*s.scale/z,m=b.currentY*s.scale/z):(u=c*s.scale,m=p*s.scale),u<S&&(u=S),u>C&&(u=C),m<T&&(m=T),m>P&&(m=P)),A&&1===s.scale&&(v.originX=0,v.originY=0),b.currentX=u,b.currentY=m,v.imageWrapEl.style.transitionDuration="300ms",v.imageWrapEl.style.transform=`translate3d(${u}px, ${m}px,0)`,v.imageEl.style.transitionDuration="300ms",v.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`}function G(){const e=t.zoom,s=t.params.zoom;if(!v.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?v.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:v.slideEl=t.slides[t.activeIndex];let e=v.slideEl.querySelector(`.${s.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),v.imageEl=e,v.imageWrapEl=e?E(v.imageEl,`.${s.containerClass}`)[0]:void 0}v.imageEl&&v.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,l=1,b.currentX=void 0,b.currentY=void 0,b.touchesStart.x=void 0,b.touchesStart.y=void 0,v.imageWrapEl.style.transitionDuration="300ms",v.imageWrapEl.style.transform="translate3d(0,0,0)",v.imageEl.style.transitionDuration="300ms",v.imageEl.style.transform="translate3d(0,0,0) scale(1)",v.slideEl.classList.remove(`${s.zoomedSlideClass}`),v.slideEl=void 0,v.originX=0,v.originY=0,t.params.zoom.panOnMouseMove&&(p={x:0,y:0},c&&(c=!1,b.startX=0,b.startY=0)))}function X(e){const s=t.zoom;s.scale&&1!==s.scale?G():D(e)}function Y(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function B(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:s,activeListenerWithCapture:a}=Y();t.wrapperEl.addEventListener("pointerdown",L,s),t.wrapperEl.addEventListener("pointermove",I,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,z,s)})),t.wrapperEl.addEventListener("pointermove",$,a)}function H(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:s,activeListenerWithCapture:a}=Y();t.wrapperEl.removeEventListener("pointerdown",L,s),t.wrapperEl.removeEventListener("pointermove",I,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,z,s)})),t.wrapperEl.removeEventListener("pointermove",$,a)}Object.defineProperty(t.zoom,"scale",{get:()=>S,set(e){if(S!==e){const t=v.imageEl,s=v.slideEl;i("zoomChange",e,t,s)}S=e}}),a("init",(()=>{t.params.zoom.enabled&&B()})),a("destroy",(()=>{H()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;if(!v.imageEl)return;if(b.isTouched)return;s.android&&e.cancelable&&e.preventDefault(),b.isTouched=!0;const a=g.length>0?g[0]:e;b.touchesStart.x=a.pageX,b.touchesStart.y=a.pageY}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(g.length=0,!v.imageEl)return;if(!b.isTouched||!b.isMoved)return b.isTouched=!1,void(b.isMoved=!1);b.isTouched=!1,b.isMoved=!1;let s=300,a=300;const i=y.x*s,r=b.currentX+i,n=y.y*a,l=b.currentY+n;0!==y.x&&(s=Math.abs((r-b.currentX)/y.x)),0!==y.y&&(a=Math.abs((l-b.currentY)/y.y));const o=Math.max(s,a);b.currentX=r,b.currentY=l;const d=b.width*e.scale,c=b.height*e.scale;b.minX=Math.min(v.slideWidth/2-d/2,0),b.maxX=-b.minX,b.minY=Math.min(v.slideHeight/2-c/2,0),b.maxY=-b.minY,b.currentX=Math.max(Math.min(b.currentX,b.maxX),b.minX),b.currentY=Math.max(Math.min(b.currentY,b.maxY),b.minY),v.imageWrapEl.style.transitionDuration=`${o}ms`,v.imageWrapEl.style.transform=`translate3d(${b.currentX}px, ${b.currentY}px,0)`}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&X(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&k()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&k()})),Object.assign(t.zoom,{enable:B,disable:H,in:D,out:G,toggle:X})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEac
2632h((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const s=`${t.params.eventsPrefix}init`,a=i=>{t.controller.control.push(i.detail[0]),t.update(),e.removeEventListener(s,a)};e.addEventListener(s,a)}}))}else t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){if(e.destroyed)return;const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.destroyed||(s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&l((()=>{s.updateAutoHeight()})),x(s.wrapperEl,(()=>{i&&s.transitionEnd()}))))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let r,n,l=null,o=(new Date).getTime();function d(e){const t=l;0!==t.length&&C(t,e)}function c(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function p(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=T(e)).forEach((e=>{e.setAttribute("role",t)}))}function m(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function g(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function w(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=e.target;if(!t.pagination||!t.pagination.el||a!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(le(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=T(t.navigation.prevEl);T(t.navigation.nextEl).includes(a)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(s.lastSlideMessage):d(s.nextSlideMessage)),e.includes(a)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(s.firstSlideMessage):d(s.prevSlideMessage))}t.pagination&&a.matches(le(t.params.pagination.bulletClass))&&a.click()}}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function E(){return b()&&t.params.pagination.clickable}const x=(e,t,s)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",w)),h(e,s),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},S=e=>{n&&n!==e.target&&!n.contains(e.target)&&(r=!0),t.a11y.clicked=!0},M=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},P=e=>{o=(new Date).getTime()},L=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-o<100)return;const s=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!s||!t.slides.includes(s))return;n=s;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>
vendor: 28,626 bytes, line 2632
2632{r||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(s.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(s)),0),r=!1)})))},I=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&m(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const s=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((a,i)=>{const r=t.params.loop?parseInt(a.getAttribute("data-swiper-slide-index"),10):i;h(a,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))}))},z=()=>{const e=t.params.a11y;t.el.append(l);const s=t.el;e.containerRoleDescriptionMessage&&m(s,e.containerRoleDescriptionMessage),e.containerMessage&&h(s,e.containerMessage),e.containerRole&&u(s,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,T(i).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,o),I();let{nextEl:c,prevEl:p}=t.navigation?t.navigation:{};if(c=T(c),p=T(p),c&&c.forEach((t=>x(t,r,e.nextSlideMessage))),p&&p.forEach((t=>x(t,r,e.prevSlideMessage))),E()){T(t.pagination.el).forEach((e=>{e.addEventListener("keydown",w)}))}a().addEventListener("visibilitychange",P),t.el.addEventListener("focus",L,!0),t.el.addEventListener("focus",L,!0),t.el.addEventListener("pointerdown",S,!0),t.el.addEventListener("pointerup",M,!0)};i("beforeInit",(()=>{l=v("span",t.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&z()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&I()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:s}=t.navigation;s&&(t.isBeginning?(f(s),p(s)):(g(s),c(s))),e&&(t.isEnd?(f(e),p(e)):(g(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;b()&&t.pagination.bullets.forEach((s=>{t.params.pagination.clickable&&(c(s),t.params.pagination.renderBullet||(u(s,"button"),h(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,y(s)+1)))),s.matches(le(t.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){l&&l.remove();let{nextEl:e,prevEl:s}=t.navigation?t.navigation:{};e=T(e),s=T(s),e&&e.forEach((e=>e.removeEventListener("keydown",w))),s&&s.forEach((e=>e.removeEventListener("keydown",w))),E()&&T(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",w)}));a().removeEventListener("visibilitychange",P),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",L,!0),t.el.removeEventListener("pointerdown",S,!0),t.el.removeEventListener("pointerup",M,!0))}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):t.slides[s];let d=l(o.getAttribute("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e?`${e}/`:""}${d}`}else n.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides[i];if(l(r.getAttribute("data-history"))===s){const s=t.getSlideIndex(r);t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),n.key||n.value?(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p)):t.params.history.replaceState||e.addEventListener("popstate",p)}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),d=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,s){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((e=>e.getAttribute("data-hash")===s));if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(f(t.slidesEl,`.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const c=()=>{i("hashChange");const e=o.location.hash.replace("#",""),s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(s?s.getAttribute("data-hash"):"")){const s=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===s||Number.isNaN(s))return;t.slideTo(s)}},p=()=>{if(!l||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],s=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${s}`||""),i("hashSet")):(o.location.hash=s||"",i("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0,a=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(a||0,s,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&p()})),n("slideChange",(()=>{l&&t.params.cssMode&&p()}))},function(e){let t,s,{swiper:i,extendParams:r,on:n,emit:l,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,p,u,m,h,f,g,v=o&&o.autoplay?o.autoplay.delay:3e3,w=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),g||e.detail&&e.detail.bySwiperTouchMove||C())}const E=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(w=d,c=!1);const e=i.autoplay.paused?d:b+w-(new Date).getTime();i.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/v),s=requestAnimationFrame((()=>{E()}))},x=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(s),E();let a=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,w=i.params.autoplay.delay;const r=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.find((e=>e.classList.contains("swiper-slide-active"))):i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(a=r,v=r,w=r),d=a;const n=i.params.speed,o=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,n,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,n,!0,!0),l("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return a>0?(clearTimeout(t),t=setTimeout((()=>{o()}),a)):requestAnimationFrame((()=>{o()})),a},S=()=>{b=(new Date).getTime(),i.autoplay.running=!0,x(),l("autoplayStart")},T=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(s),l("autoplayStop")},M=(e,s)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const a=()=>{l("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):C()};if(i.autoplay.paused=!0,s)return h&&(d=i.params.autoplay.delay),h=!1,void a();const r=d||i.params.autoplay.delay;d=r-((new Date).getTime()-b),i.isEnd&&d<0&&!i.params.loop||(d<0&&(d=0),a())},C=()=>{i.isEnd&&d<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(d)):x(),i.autoplay.paused=!1,l("autoplayResume"))},P=()=>{if(i.destroyed||!i.autoplay.running)return;const e=a();"hidden"===e.visibilityState&&(f=!0,M(!0)),"visible"===e.visibilityState&&C()},L=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,i.animating||i.autoplay.paused||M(!0))},I=e=>{"mouse"===e.pointerType&&(g=!1,i.autoplay.paused&&C())};n("init",(()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",L),i.el.addEventListener("pointerleave",I)),a().addEventListener("visibilitychange",P),S())})),n("destroy",(()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",L),i.el.removeEventListener("pointerleave",I)),a().removeEventListener("visibilitychange",P),i.autoplay.running&&T()})),n("_freeModeStaticRelease",(()=>{(u||f)&&C()})),n("_freeModeNoMomentumRelease",(()=>{i.params.autoplay.disableOnInteraction?T():M(!0,!0)})),n("beforeTransitionStart",((e,t,s)=>{!i.destroyed&&i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?M(!0,!0):T())})),n("sliderFirstMove",(()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?T():(p=!0,u=!1,f=!1,m=setTimeout((()=>{f=!0,u=!0,M(!0)}),200)))})),n("touchEnd",(()=>{if(!i.destroyed&&i.autoplay.running&&p){if(clearTimeout(m),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&i.params.cssMode&&C(),u=!1,p=!1}})),n("slideChange",(()=>{!i.destroyed&&i.autoplay.running&&(h=!0)})),Object.assign(i.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function l(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&a.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function o(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const s=t.constructor;if(e.swiper instanceof s){if(e.swiper.destroyed)return r=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update()}else if(c(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function d(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.forEach((e=>e.classList.remove(r))),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)f(s.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(r)}));else for(let e=0;e<i;e+=1)s.slides[t.realIndex+e]&&s.slides[t.realIndex+e].classList.add(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){const i=s.activeIndex;let r,o;if(s.params.loop){const e=s.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));r=s.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";l&&(r+="next"===o?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(r)<0&&(s.params.centeredSlides?r=r>i?r-Math.floor(a/2)+1:r+Math.floor(a/2)-1:r>i&&s.params.slidesPerGroup,s.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const s=a(),i=()=>{const a="string"==typeof e.swiper?s.querySelector(e.swiper):e.swiper;if(a&&a.swiper)e.swiper=a.swiper,o(),d(!0);else if(a){const s=`${t.params.eventsPrefix}init`,i=r=>{e.swiper=r.detail[0],a.removeEventListener(s,i),o(),d(!0),e.swiper.update(),t.update()};a.addEventListener(s,i)}return a},r=()=>{if(t.destroyed)return;i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),d(!0)})),i("slideChange update resize observerUpdate",(()=>{d()})),i("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:d})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:o()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:n,rtlTranslate:l,snapGrid:d,touchEventsData:c}=t,p=o()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||o()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;l&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(p<t.maxTranslate())r.freeMode.momentumBounce?(p+t.maxTranslate()<-h&&(p=t.maxTranslate()-h),u=t.maxTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(p>t.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<d.length;t+=1)if(d[t]>-p){e=t;break}p=Math.abs(d[e]-p)<Math.abs(d[e-1]-p)||"next"===t.swipeDirection?d[e]:d[e-1],p=-p}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&m?(t.updateProgress(u),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(n,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];i&&(a=Math.floor(a)),s[t]<r.virtualSize+s[0]&&e.push(a)}s.splice(0,s.length),s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:oe.bind(t),prependSlide:de.bind(t),addSlide:ce.bind(t),removeSlide:pe.bind(t),removeAllSlides:ue.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1}}),me({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s<e.length;s+=1){const e=t.slides[s];let a=-e.swiperSlideOffset;t.params.virtualTranslate||(a-=t.translate);let i=0;t.isHorizontal()||(i=a,a=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),n=he(0,e);n.style.opacity=r,n.style.transform=`translate3d(${a}px, ${i}px, 0px)`}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),fe({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};me({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=M(t),p=t.params.cubeEffect,u=t.isHorizontal(),m=t.virtual&&t.params.virtual.enabled;let h,f=0;p.shadow&&(u?(h=t.wrapperEl.querySelector(".swiper-cube-shadow"),h||(h=v("div","swiper-cube-shadow"),t.wrapperEl.append(h)),h.style.height=`${r}px`):(h=e.querySelector(".swiper-cube-shadow"),h||(h=v("div","swiper-cube-shadow"),e.append(h))));for(let e=0;e<a.length;e+=1){const t=a[e];let s=e;m&&(s=parseInt(t.getAttribute("data-swiper-slide-index"),10));let r=90*s,n=Math.floor(r/360);l&&(r=-r,n=Math.floor(-r/360));const d=Math.max(Math.min(t.progress,1),-1);let h=0,g=0,v=0;s%4==0?(h=4*-n*o,v=0):(s-1)%4==0?(h=0,v=4*-n*o):(s-2)%4==0?(h=o+4*n*o,v=o):(s-3)%4==0&&(h=-o,v=3*o+4*o*n),l&&(h=-h),u||(g=h,h=0);const w=`rotateX(${c(u?0:-r)}deg) rotateY(${c(u?r:0)}deg) translate3d(${h}px, ${g}px, ${v}px)`;d<=1&&d>-1&&(f=90*s+90*d,l&&(f=90*-s-90*d)),t.style.transform=w,p.slideShadows&&i(t,d,u)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,p.shadow)if(u)h.style.transform=`translate3d(0px, ${r/2+p.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=p.shadowScale,a=p.shadowScale/t,i=p.shadowOffset;h.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${g}px) rotateX(${c(t.isHorizontal()?0:f)}deg) rotateY(${c(t.isHorizontal()?-f:0)}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=ge("flip",e,t.isHorizontal()?"left":"top")),i||(i=ge("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};me({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect,r=M(t);for(let n=0;n<e.length;n+=1){const l=e[n];let o=l.progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(l.progress,1),-1));const d=l.swiperSlideOffset;let c=-180*o,p=0,u=t.params.cssMode?-d-t.translate:-d,m=0;t.isHorizontal()?s&&(c=-c):(m=u,u=0,p=-c,c=0),l.style.zIndex=-Math.abs(Math.round(o))+e.length,a.slideShadows&&i(l,o);const h=`translate3d(${u}px, ${m}px, 0px) rotateX(${r(p)}deg) rotateY(${r(c)}deg)`;he(0,l).style.transform=h}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),fe({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),me({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth,p=M(t);for(let e=0,t=a.length;e<t;e+=1){const t=a[e],s=i[e],l=(o-t.swiperSlideOffset-s/2)/s,u="function"==typeof r.modifier?r.modifier(l):l*r.modifier;let m=n?d*u:0,h=n?0:d*u,f=-c*Math.abs(u),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*s);let v=n?0:g*u,w=n?g*u:0,b=1-(1-r.scale)*Math.abs(u);Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(b)<.001&&(b=0);const y=`translate3d(${w}px,${v}px,${f}px)  rotateX(${p(h)}deg) rotateY(${p(m)}deg) scale(${b})`;if(he(0,t).style.transform=y,t.style.zIndex=1-Math.abs(Math.round(u)),r.slideShadows){let e=n?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),s=n?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=ge("coverflow",t,n?"left":"top")),s||(s=ge("coverflow",t,n?"right":"bottom")),e&&(e.style.opacity=u>0?u:0),s&&(s.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((e=>h(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;me({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides,o=M(t);if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s<e.length;s+=1){const a=e[s],d=a.progress,c=Math.min(Math.max(a.progress,-r.limitProgress),r.limitProgress);let p=c;l||(p=Math.min(Math.max(a.originalProgress,-r.limitProgress),r.limitProgress));const u=a.swiperSlideOffset,m=[t.params.cssMode?-u-t.translate:-u,0,0],h=[0,0,0];let f=!1;t.isHorizontal()||(m[1]=m[0],m[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};c<0?(g=r.next,f=!0):c>0&&(g=r.prev,f=!0),m.forEach(((e,t)=>{m[t]=`calc(${e}px + (${i(g.translate[t])} * ${Math.abs(c*n)}))`})),h.forEach(((e,t)=>{let s=g.rotate[t]*Math.abs(c*n);h[t]=s})),a.style.zIndex=-Math.abs(Math.round(d))+e.length;const v=m.join(", "),w=`rotateX(${o(h[0])}deg) rotateY(${o(h[1])}deg) rotateZ(${o(h[2])}deg)`,b=p<0?`scale(${1+(1-g.scale)*p*n})`:`scale(${1-(1-g.scale)*p*n}
2632)`,y=p<0?1+(1-g.opacity)*p*n:1-(1-g.opacity)*p*n,E=`translate3d(${v}) ${w} ${b}`;if(f&&g.shadow||!f){let e=a.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=ge("creative",a)),e){const t=r.shadowPerProgress?c*(1/r.limitProgress):c;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=he(0,a);x.style.transform=E,x.style.opacity=y,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),fe({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),me({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o<e.length;o+=1){const d=e[o],c=d.progress,p=Math.min(Math.max(c,-4),4);let u=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(u-=e[0].swiperSlideOffset);let m=t.params.cssMode?-u-t.translate:-u,h=0;const f=-100*Math.abs(p);let g=1,v=-i.perSlideRotate*p,w=i.perSlideOffset-.75*Math.abs(p);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+o:o,y=(b===s||b===s-1)&&p>0&&p<1&&(n||t.params.cssMode)&&l<r,E=(b===s||b===s+1)&&p<0&&p>-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n        translate3d(${m}, ${h}, ${f}px)\n        rotateZ(${i.rotate?a?-v:v:0}deg)\n        scale(${x})\n      `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=ge("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length;he(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),fe({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];return re.use(ve),re}();
2633
2634/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2635!function(){"use strict";var e={2369:function(e,t,o){const r=(e,t)=>Object.values(e).forEach((e)=>e.setAttribute("aria-hidden",t));o.d(t,["PD",0,(e,t)=>{const o={prevEl:e.querySelector(".swiper-controls__prev"),nextEl:e.querySelector(".swiper-controls__next")},c=e.querySelector(".swiper-slide")&&e.querySelector(".swiper-slide").tagName;return new Swiper(e,{slidesPerView:"auto",initialSlide:0,centeredSlides:!1,observer:!0,watchSlidesProgress:!0,watchOverflow:!0,navigation:o,a11y:{slideRole:{LI:"listitem",BUTTON:"tab"}[c]||"group"},on:{lock:()=>{r(o,!0),e.classList.remove("swiper-unlock");},unlock:(t)=>{r(o,!1),e.classList.add("swiper-unlock"),t.slideReset();}},...t});}]);}},t={};function o(r){var c=t[r];if(void 0!==c)return c.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,o),s.exports;}o.d=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;){var c=t[r++],s=t[r++];o.o(e,c)?0===s&&r++:0===s?Object.defineProperty(e,c,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,c,{enumerable:!0,get:s});}else for(var c in t)o.o(t,c)&&!o.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]});},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);};var r=o(2369);!function(e,t){e.behaviors.facetBlock={attach(o){const c=document.querySelector(".filter-drop"),s=window.matchMedia("(min-width: 780px)"),n=(e)=>{const {key:t,target:o}=e;if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();const r=o.closest(".facet-item"),c=o.closest(".filter-one__dropdown").querySelectorAll(".facet-item"),s=[...c].indexOf(r);let n={ArrowDown:1,ArrowUp:-1}[t]+s;n=n<0?c.length-1:n>c.length-1?0:n,c[n].querySelector(".facets-checkbox").focus(),o.closest(".filter-one__dropdown").scrollTo({top:c[n].offsetTop-16});}},l=()=>{document.querySelectorAll(".filter-one__dropdown.opened").forEach((e)=>{e.classList.remove("opened"),e.previousElementSibling.classList.remove("opened"),e.previousElementSibling.setAttribute("aria-expanded","fal
2635se");});},i=(e,t)=>{t.classList.add("opened"),e.classList.add("opened"),e.setAttribute("aria-expanded","true"),setTimeout(()=>t.querySelector(".facets-checkbox,.cp-search-sort-radios label").focus(),100),t.addEventListener("keydown",n);};let a;t("facetBlock",".filter-one__name",o).forEach((e)=>{const t=e.nextElementSibling,o=(e,t)=>{t.classList.remove("opened"),e.classList.remove("opened"),e.setAttribute("aria-expanded","false");};e.addEventListener("click",()=>{t.classList.contains("opened")?o(e,t):(l(),i(e,t));}),e.addEventListener("keyup",(r)=>{"ArrowDown"===r.key&&(t.classList.contains("opened")?o(e,t):(l(),i(e,t)));});}),document.addEventListener("click",(e)=>{s.matches&&!e.target.closest(".filter-one")&&l();}),document.addEventListener("keyup",(e)=>{"Escape"===e.key&&l();}),t("openMobileFilters",".btn-open-filters",o).forEach((e)=>{e.addEventListener("click",()=>{c.classList.add("opened");});}),t("closeMobileFilters",".filter-drop__close",o).forEach((e)=>{e.addEventListener("click",()=>{c.classList.remove("opened"),l();});}),t("referenceInputFiltersOnce",".modal-filter__body .input-find-filters",o).forEach((e)=>{e.addEventListener("input",(e)=>{const t=e.target.value.toUpperCase();e.target.closest(".modal-filter__body").querySelectorAll(".facet-item").forEach((e)=>{const o=e.querySelector("label .facet-item__value").innerText.toUpperCase();e.classList.toggle("hidden",-1===o.indexOf(t));});});});const d=e.Ajax.prototype.beforeSend,f=e.Ajax.prototype.success;let u;e.Ajax.prototype.beforeSend=function(e,t){document.querySelectorAll(".filter-one__name").forEach((e,t)=>{e.classList.contains("opened")&&(a=t);}),d&&d.call(this,e,t);},e.Ajax.prototype.success=function(e,t){f&&f.call(this,e,t),u&&u.disconnect(),u=new MutationObserver(()=>{document.querySelector(".filter-one__name")&&((()=>{if(a){const e=document.querySelectorAll(".filter-one__name")[a],t=e.nextElementSibling;i(e,t),a=void 0;}})(),u.disconnect());}),u.observe(document.body,{childList:!0,subtree:!0});},t("facetBlockCheckboxesAccessibility",".facets-checkbox",o).forEach((e)=>{e.addEventListener("keydown",(t)=>{const {keyCode:o}=t;13===o&&e.click();},!1);}),t("facetSortLabelAccessibility",".cp-search-sort-radios label",o).forEach((e)=>{e.tabIndex=0,e.addEventListener("keydown",(t)=>{const {keyCode:o}=t;13!==o&&32!==o||(t.preventDefault(),e.click());},!1);}),t("facetFilterItemsCarousel",".filter-clear",o).forEach((e)=>(0,r.PD)(e,{spaceBetween:16})),t("facetDefaultCarousel",".facet-default-block .facets-widget-checkbox_obfuscated, .facet-default-block .facets-widget-links",o).forEach((e)=>{(0,r.PD)(e,{spaceBetween:8,freeMode:!0});});}};}(Drupal,once);}();;
2636((Drupal,once)=>{Drupal.behaviors.cpCoreReadMoreButton={attach(context){once('cpCoreReadMoreButtonOnce','.button-read-more__wrapper',context).forEach((wrapper)=>{if(!wrapper)return;const button=wrapper.querySelector('.button-read-more');const content=wrapper.querySelector('.button-read-more__content');const safetyGap=3;if(!button&&!content)return;const hasOverflow=content.scrollHeight>content.offsetHeight+safetyGap;if(!hasOverflow)content.classList.remove('height-clamped');else{button.classList.remove('visually-hidden');content.classList.add('fully-clamped');const btnText=button.querySelector('span');button.addEventListener('click',()=>{content.classList.toggle('fully-clamped');content.classList.toggle('height-clamped');const isClamped=content.classList.contains('fully-clamped');btnText.textContent=isClamped?button.dataset.open:button.dataset.close;button.setAttribute('aria-expanded',isClamped?'false':'true');});}});}};})(Drupal,once);;
2637(function($,Drupal){Drupal.AjaxCommands.prototype.replaceBrowserUrl=function(ajax,response){if(response.url)window.history.replaceState(null,'',response.url);};})(jQuery,Drupal);;
2638(function($,Drupal){Drupal.AjaxCommands.prototype.scrollTopWithHeaderOffset=function(ajax,response){const $element=$(response.selector);if($element.length===0)return;const offset=$element.offset();if(!offset)return;let scrollTarget=response.selector;while($(scrollTarget).scrollTop()===0&&$(scrollTarget).parent())scrollTarget=$(scrollTarget).parent();const headerOffset=$('.header').height()||0;const extraPadding=40;const targetScrollTop=offset.top-headerOffset-extraPadding;if(offset.top-headerOffset-10<$(scrollTarget).scrollTop())$(scrollTarget).animate({scrollTop:targetScrollTop},500);};})(jQuery,Drupal);;
2639(function($,Drupal){Drupal.AjaxCommands.prototype.triggerBehavior=function(ajax,response){const behaviors=Drupal.behaviors;Object.keys(behaviors||{}
2639).forEach((i)=>{if(i===response.behavior&&typeof behaviors[i].attach==='function')try{behaviors[i].attach();}catch(e){Drupal.throwError(e);}});};})(jQuery,Drupal);;
2640(function($,Drupal){Drupal.behaviors.webformScroll={attach:function(context){$(document).on('ajaxComplete',function(){setTimeout(function(){const validationErrors=$('.webform-ajax-form-wrapper .form-item--error');if(validationErrors.length>0){const firstErrorField=validationErrors.first();const label=firstErrorField.find('label');const label_offset=label.length>0?label.height()*2+10:100;$('html, body').animate({scrollTop:firstErrorField.offset().top-label_offset},50);}},50);});}};})(jQuery,Drupal);;
2641(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a;}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r);},p,p.exports,r,e,n,t);}return n[i].exports;}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o;}return r;})()({1:[function(require,module,exports){var FilterCSS=require("cssfilter").FilterCSS;var getDefaultCSSWhiteList=require("cssfilter").getDefaultWhiteList;var _=require("./util");function getDefaultWhiteList(){return {a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]};}var defaultCSSFilter=new FilterCSS();function onTag(tag,html,options){}function onIgnoreTag(tag,html,options){}function onTagAttr(tag,name,value){}function onIgnoreTagAttr(tag,name,value){}function escapeHtml(html){return html.replace(REGEXP_LT,"&lt;").replace(REGEXP_GT,"&gt;");}function safeAttrValue(tag,name,value,cssFilter){value=friendlyAttrValue(value);if(name==="href"||name==="src"){value=_.trim(value);if(value==="#")return "#";if(!(value.substr(0,7)==="http://"||value.substr(0,8)==="https://"||value.substr(0,7)==="mailto:"||value.substr(0,4)==="tel:"||value.substr(0,11)==="data:image/"||value.substr(0,6)==="ftp://"||value.substr(0,2)==="./"||value.substr(0,3)==="../"||value[0]==="#"||value[0]==="/"))return "";}else if(name==="background"){REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex=0;if(REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value))return "";}else{if(name==="style"){REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex=0;if(REGEXP_DEFAULT_ON_TAG_ATTR_7.test(value))return "";REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex=0;if(REGEXP_DEFAULT_ON_TAG_ATTR_8.test(value)){REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex=0;if(REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value))return "";}if(cssFilter!==false){cssFilter=cssFilter||defaultCSSFilter;value=cssFilter.process(value);}}}value=escapeAttrValue(value);return value;}var REGEXP_LT=/</g;var REGEXP_GT=/>/g;var REGEXP_QUOTE=/"/g;var REGEXP_QUOTE_2=/&quot;/g;var REGEXP_ATTR_VALUE_1=/&#([a-zA-Z0-9]*);?/gim;var REGEXP_ATTR_VALUE_COLON=/&colon;?/gim;var REGEXP_ATTR_VALUE_NEWLINE=/&newline;?/gim;var REGEXP_DEFAULT_ON_TAG_ATTR_3=/\/\*|\*\//gm;var REGEXP_DEFAULT_ON_TAG_ATTR_4=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi;var REGEXP_DEFAULT_ON_TAG_ATTR_5=/^[\s"'`]*(d\s*a\s*t\s*a\s*)\:/gi;var REGEXP_DEFAULT_ON_TAG_ATTR_6=/^[\s"'`]*(d\s*a\s*t\s*a\s*)\:\s*image\//gi;
2641var REGEXP_DEFAULT_ON_TAG_ATTR_7=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi;var REGEXP_DEFAULT_ON_TAG_ATTR_8=/u\s*r\s*l\s*\(.*/gi;function escapeQuote(str){return str.replace(REGEXP_QUOTE,"&quot;");}function unescapeQuote(str){return str.replace(REGEXP_QUOTE_2,'"');}function escapeHtmlEntities(str){return str.replace(REGEXP_ATTR_VALUE_1,function replaceUnicode(str,code){return code[0]==="x"||code[0]==="X"?String.fromCharCode(parseInt(code.substr(1),16)):String.fromCharCode(parseInt(code,10));});}function escapeDangerHtml5Entities(str){return str.replace(REGEXP_ATTR_VALUE_COLON,":").replace(REGEXP_ATTR_VALUE_NEWLINE," ");}function clearNonPrintableCharacter(str){var str2="";for(var i=0,len=str.length;i<len;i++)str2+=str.charCodeAt(i)<32?" ":str.charAt(i);return _.trim(str2);}function friendlyAttrValue(str){str=unescapeQuote(str);str=escapeHtmlEntities(str);str=escapeDangerHtml5Entities(str);str=clearNonPrintableCharacter(str);return str;}function escapeAttrValue(str){str=escapeQuote(str);str=escapeHtml(str);return str;}function onIgnoreTagStripAll(){return "";}function StripTagBody(tags,next){if(typeof next!=="function")next=function(){};var isRemoveAllTag=!Array.isArray(tags);function isRemoveTag(tag){if(isRemoveAllTag)return true;return _.indexOf(tags,tag)!==-1;}var removeList=[];var posStart=false;return {onIgnoreTag:function(tag,html,options){if(isRemoveTag(tag))if(options.isClosing){var ret="[/removed]";var end=options.position+ret.length;removeList.push([posStart!==false?posStart:options.position,end]);posStart=false;return ret;}else{if(!posStart)posStart=options.position;return "[removed]";}else return next(tag,html,options);},remove:function(html){var rethtml="";var lastPos=0;_.forEach(removeList,function(pos){rethtml+=html.slice(lastPos,pos[0]);lastPos=pos[1];});rethtml+=html.slice(lastPos);return rethtml;}};}function stripCommentTag(html){return html.replace(STRIP_COMMENT_TAG_REGEXP,"");}var STRIP_COMMENT_TAG_REGEXP=/<!--[\s\S]*?-->/g;function stripBlankChar(html){var chars=html.split("");chars=chars.filter(function(char){var c=char.charCodeAt(0);if(c===127)return false;if(c<=31){if(c===10||c===13)return true;return false;}return true;});return chars.join("");}exports.whiteList=getDefaultWhiteList();exports.getDefaultWhiteList=getDefaultWhiteList;exports.onTag=onTag;exports.onIgnoreTag=onIgnoreTag;exports.onTagAttr=onTagAttr;exports.onIgnoreTagAttr=onIgnoreTagAttr;exports.safeAttrValue=safeAttrValue;exports.escapeHtml=escapeHtml;exports.escapeQuote=escapeQuote;exports.unescapeQuote=unescapeQuote;exports.escapeHtmlEntities=escapeHtmlEntities;exports.escapeDangerHtml5Entities=escapeDangerHtml5Entities;exports.clearNonPrintableCharacter=clearNonPrintableCharacter;exports.friendlyAttrValue=friendlyAttrValue;exports.escapeAttrValue=escapeAttrValue;exports.onIgnoreTagStripAll=onIgnoreTagStripAll;exports.StripTagBody=StripTagBody;exports.stripCommentTag=stripCommentTag;exports.stripBlankChar=stripBlankChar;exports.cssFilter=defaultCSSFilter;exports.getDefaultCSSWhiteList=getDefaultCSSWhiteList;},{"./util":4,"cssfilter":8}],2:[function(require,module,exports){var DEFAULT=require("./default");var parser=require("./parser");var FilterXSS=require("./xss");function filterXSS(html,options){var xss=new FilterXSS(options);return xss.process(html);}exports=module.exports=filterXSS;exports.filterXSS=filterXSS;exports.FilterXSS=FilterXSS;for(var i in DEFAULT)exports[i]=DEFAULT[i];for(var i in parser)exports[i]=parser[i];if(typeof window!=="undefined")window.filterXSS=module.exports;function isWorkerEnv(){return (typeof self!=="undefined"&&typeof DedicatedWorkerGlobalScope!=="undefined"&&self instanceof DedicatedWorkerGlobalScope);}if(isWorkerEnv())self.filterXSS=module.exports;},{"./default":1,"./parser":3,"./xss":5}],3:[function(require,module,exports){var _=require("./util");function getTagName(html){var i=_.spaceIndex(html);if(i===-1)var tagName=html.slice(1,-1);else var tagName=html.slice(1,i+1);tagName=_.trim(tagName).toLowerCase();if(tagName.slice(0,1)==="/")tagName=tagName.slice(1);if(tagName.slice(-1)==="/")tagName=tagName.slice(0,-1);return tagName;}function isClosing(html){return html.slice(0,2)==="</";}function parseTag(html,onTag,escapeHtml){"use strict";var rethtml="";var lastPos=0;var tagStart=false;var quoteStart=false;var currentPos=0;var len=html.length;var currentTagName="";var currentHtml="";chariterator:for(currentPos=0;currentPos<len;currentPos++){var c=html.charAt(currentPos);if(tagStart===false){if(c==="<"){tagStart=currentPos;continue;}}else if(quoteStart===false){if(c==="<"){rethtml+=escapeHtml(html.slice(lastPos,currentPos));tagStart=currentPos;lastPos=currentPos;continue;}if(c===">"){rethtml+=escapeHtml(html.slice(lastPos,tagStart));currentHtml=html.slice(tagStart,currentPos+1);currentTagName=getTagName(currentHtml);rethtml+=onTag(tagStart,rethtml.length,currentTagName,currentHtml,isClosing(currentHtml));lastPos=currentPos+1;tagStart=false;continue;}if(c==='"'||c==="'"){var i=1;var ic=html.charAt(currentPos-i);while(ic.trim()===""||ic==="="){if(ic==="="){quoteStart=c;continue chariterator;}ic=html.charAt(currentPos-++i);}}}else{if(c===quoteStart){quoteStart=false;continue;}}}if(lastPos<html.length)rethtml+=escapeHtml(html.substr(lastPos));return rethtml;}var REGEXP_ILLEGAL_ATTR_NAME=/[^a-zA-Z0-9_:\.\-]/gim;function parseAttr(html,onAttr){"use strict";var lastPos=0;var retAttrs=[];var tmpName=false;var len=html.length;function addAttr(name,value){name=_.trim(name);name=name.replace(REGEXP_ILLEGAL_ATTR_NAME,"").toLowerCase();if(name.length<1)return;var ret=onAttr(name,value||"");if(ret)retAttrs.push(ret);}for(var i=0;i<len;i++){var c=html.charAt(i);var v,j;if(tmpName===false&&c==="="){tmpName=html.slice(lastPos,i);lastPos=i+1;continue;}if(tmpName!==false)if(i===lastPos&&(c==='"'||c==="'")&&html.charAt(i-1)==="="){j=html.indexOf(c,i+1);if(j===-1)break;else{v=_.trim(html.slice(lastPos+1,j));addAttr(tmpName,v);tmpName=false;i=j;lastPos=i+1;continue;}}if(/\s|\n|\t/.test(c)){html=html.replace(/\s|\n|\t/g," ");
2641if(tmpName===false){j=findNextEqual(html,i);if(j===-1){v=_.trim(html.slice(lastPos,i));addAttr(v);tmpName=false;lastPos=i+1;continue;}else{i=j-1;continue;}}else{j=findBeforeEqual(html,i-1);if(j===-1){v=_.trim(html.slice(lastPos,i));v=stripQuoteWrap(v);addAttr(tmpName,v);tmpName=false;lastPos=i+1;continue;}else continue;}}}if(lastPos<html.length)if(tmpName===false)addAttr(html.slice(lastPos));else addAttr(tmpName,stripQuoteWrap(_.trim(html.slice(lastPos))));return _.trim(retAttrs.join(" "));}function findNextEqual(str,i){for(;i<str.length;i++){var c=str[i];if(c===" ")continue;if(c==="=")return i;return -1;}}function findBeforeEqual(str,i){for(;i>0;i--){var c=str[i];if(c===" ")continue;if(c==="=")return i;return -1;}}function isQuoteWrapString(text){if((text[0]==='"'&&text[text.length-1]==='"')||(text[0]==="'"&&text[text.length-1]==="'"))return true;else return false;}function stripQuoteWrap(text){if(isQuoteWrapString(text))return text.substr(1,text.length-2);else return text;}exports.parseTag=parseTag;exports.parseAttr=parseAttr;},{"./util":4}],4:[function(require,module,exports){module.exports={indexOf:function(arr,item){var i,j;if(Array.prototype.indexOf)return arr.indexOf(item);for(i=0,j=arr.length;i<j;i++)if(arr[i]===item)return i;return -1;},forEach:function(arr,fn,scope){var i,j;if(Array.prototype.forEach)return arr.forEach(fn,scope);for(i=0,j=arr.length;i<j;i++)fn.call(scope,arr[i],i,arr);},trim:function(str){if(String.prototype.trim)return str.trim();return str.replace(/(^\s*)|(\s*$)/g,"");},spaceIndex:function(str){var reg=/\s|\n|\t/;var match=reg.exec(str);return match?match.index:-1;}};},{}],5:[function(require,module,exports){var FilterCSS=require("cssfilter").FilterCSS;var DEFAULT=require("./default");var parser=require("./parser");var parseTag=parser.parseTag;var parseAttr=parser.parseAttr;var _=require("./util");function isNull(obj){return obj===undefined||obj===null;}function getAttrs(html){var i=_.spaceIndex(html);if(i===-1)return {html:"",closing:html[html.length-2]==="/"};html=_.trim(html.slice(i+1,-1));var isClosing=html[html.length-1]==="/";if(isClosing)html=_.trim(html.slice(0,-1));return {html,closing:isClosing};}function shallowCopyObject(obj){var ret={};for(var i in obj)ret[i]=obj[i];return ret;}function FilterXSS(options){options=shallowCopyObject(options||{});if(options.stripIgnoreTag){if(options.onIgnoreTag)console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time');options.onIgnoreTag=DEFAULT.onIgnoreTagStripAll;}options.whiteList=options.whiteList||DEFAULT.whiteList;options.onTag=options.onTag||DEFAULT.onTag;options.onTagAttr=options.onTagAttr||DEFAULT.onTagAttr;options.onIgnoreTag=options.onIgnoreTag||DEFAULT.onIgnoreTag;options.onIgnoreTagAttr=options.onIgnoreTagAttr||DEFAULT.onIgnoreTagAttr;options.safeAttrValue=options.safeAttrValue||DEFAULT.safeAttrValue;options.escapeHtml=options.escapeHtml||DEFAULT.escapeHtml;this.options=options;if(options.css===false)this.cssFilter=false;else{options.css=options.css||{};this.cssFilter=new FilterCSS(options.css);}}FilterXSS.prototype.process=function(html){html=html||"";html=html.toString();if(!html)return "";var me=this;var options=me.options;var whiteList=options.whiteList;var onTag=options.onTag;var onIgnoreTag=options.onIgnoreTag;var onTagAttr=options.onTagAttr;var onIgnoreTagAttr=options.onIgnoreTagAttr;var safeAttrValue=options.safeAttrValue;var escapeHtml=options.escapeHtml;var cssFilter=me.cssFilter;if(options.stripBlankChar)html=DEFAULT.stripBlankChar(html);if(!options.allowCommentTag)html=DEFAULT.stripCommentTag(html);var stripIgnoreTagBody=false;if(options.stripIgnoreTagBody){var stripIgnoreTagBody=DEFAULT.StripTagBody(options.stripIgnoreTagBody,onIgnoreTag);onIgnoreTag=stripIgnoreTagBody.onIgnoreTag;}var retHtml=parseTag(html,function(sourcePosition,position,tag,html,isClosing){var info={sourcePosition,position,isClosing,isWhite:whiteList.hasOwnProperty(tag)};var ret=onTag(tag,html,info);if(!isNull(ret))return ret;if(info.isWhite){if(info.isClosing)return "</"+tag+">";var attrs=getAttrs(html);var whiteAttrList=whiteList[tag];var attrsHtml=parseAttr(attrs.html,function(name,value){var isWhiteAttr=_.indexOf(whiteAttrList,name)!==-1;var ret=onTagAttr(tag,name,value,isWhiteAttr);if(!isNull(ret))return ret;if(isWhiteAttr){value=safeAttrValue(tag,name,value,cssFilter);if(value)return name+'="'+value+'"';else return name;}else{var ret=onIgnoreTagAttr(tag,name,value,isWhiteAttr);if(!isNull(ret))return ret;return;}});var html="<"+tag;if(attrsHtml)html+=" "+attrsHtml;if(attrs.closing)html+=" /";html+=">";return html;}else{var ret=onIgnoreTag(tag,html,info);if(!isNull(ret))return ret;return escapeHtml(html);}},escapeHtml);
2641if(stripIgnoreTagBody)retHtml=stripIgnoreTagBody.remove(retHtml);return retHtml;};module.exports=FilterXSS;},{"./default":1,"./parser":3,"./util":4,"cssfilter":8}],6:[function(require,module,exports){var DEFAULT=require('./default');var parseStyle=require('./parser');var _=require('./util');function isNull(obj){return (obj===undefined||obj===null);}function shallowCopyObject(obj){var ret={};for(var i in obj)ret[i]=obj[i];return ret;}function FilterCSS(options){options=shallowCopyObject(options||{});options.whiteList=options.whiteList||DEFAULT.whiteList;options.onAttr=options.onAttr||DEFAULT.onAttr;options.onIgnoreAttr=options.onIgnoreAttr||DEFAULT.onIgnoreAttr;options.safeAttrValue=options.safeAttrValue||DEFAULT.safeAttrValue;this.options=options;}FilterCSS.prototype.process=function(css){css=css||'';css=css.toString();if(!css)return '';var me=this;var options=me.options;var whiteList=options.whiteList;var onAttr=options.onAttr;var onIgnoreAttr=options.onIgnoreAttr;var safeAttrValue=options.safeAttrValue;var retCSS=parseStyle(css,function(sourcePosition,position,name,value,source){var check=whiteList[name];var isWhite=false;if(check===true)isWhite=check;else if(typeof check==='function')isWhite=check(value);else{if(check instanceof RegExp)isWhite=check.test(value);}if(isWhite!==true)isWhite=false;value=safeAttrValue(name,value);if(!value)return;var opts={position,sourcePosition,source,isWhite};if(isWhite){var ret=onAttr(name,value,opts);if(isNull(ret))return name+':'+value;else return ret;}else{var ret=onIgnoreAttr(name,value,opts);if(!isNull(ret))return ret;}});return retCSS;};module.exports=FilterCSS;},{"./default":7,"./parser":9,"./util":10}],7:[function(require,module,exports){function getDefaultWhiteList(){var whiteList={};whiteList['align-content']=false;whiteList['align-items']=false;whiteList['align-self']=false;whiteList['alignment-adjust']=false;whiteList['alignment-baseline']=false;whiteList['all']=false;whiteList['anchor-point']=false;whiteList['animation']=false;whiteList['animation-delay']=false;whiteList['animation-direction']=false;whiteList['animation-duration']=false;whiteList['animation-fill-mode']=false;whiteList['animation-iteration-count']=false;whiteList['animation-name']=false;whiteList['animation-play-state']=false;whiteList['animation-timing-function']=false;whiteList['azimuth']=false;whiteList['backface-visibility']=false;whiteList['background']=true;whiteList['background-attachment']=true;whiteList['background-clip']=true;whiteList['background-color']=true;whiteList['background-image']=true;whiteList['background-origin']=true;whiteList['background-position']=true;whiteList['background-repeat']=true;whiteList['background-size']=true;whiteList['baseline-shift']=false;whiteList['binding']=false;whiteList['bleed']=false;whiteList['bookmark-label']=false;whiteList['bookmark-level']=false;whiteList['bookmark-state']=false;whiteList['border']=true;whiteList['border-bottom']=true;whiteList['border-bottom-color']=true;whiteList['border-bottom-left-radius']=true;whiteList['border-bottom-right-radius']=true;whiteList['border-bottom-style']=true;whiteList['border-bottom-width']=true;whiteList['border-collapse']=true;whiteList['border-color']=true;whiteList['border-image']=true;whiteList['border-image-outset']=true;whiteList['border-image-repeat']=true;whiteList['border-image-slice']=true;whiteList['border-image-source']=true;whiteList['border-image-width']=true;whiteList['border-left']=true;whiteList['border-left-color']=true;whiteList['border-left-style']=true;whiteList['border-left-width']=true;whiteList['border-radius']=true;whiteList['border-right']=true;whiteList['border-right-color']=true;whiteList['border-right-style']=true;whiteList['border-right-width']=true;whiteList['border-spacing']=true;whiteList['border-style']=true;whiteList['border-top']=true;whiteList['border-top-color']=true;whiteList['border-top-left-radius']=true;whiteList['border-top-right-radius']=true;whiteList['border-top-style']=true;whiteList['border-top-width']=true;whiteList['border-width']=true;whiteList['bottom']=false;whiteList['box-decoration-break']=true;whiteList['box-shadow']=true;whiteList['box-sizing']=true;whiteList['box-snap']=true;whiteList['box-suppress']=true;whiteList['break-after']=true;whiteList['break-before']=true;whiteList['break-inside']=true;whiteList['caption-side']=false;whiteList['chains']=false;whiteList['clear']=true;whiteList['clip']=false;whiteList['clip-path']=false;whiteList['clip-rule']=false;whiteList['color']=true;whiteList['color-interpolation-filters']=true;whiteList['column-count']=false;whiteList['column-fill']=false;whiteList['column-gap']=false;whiteList['column-rule']=false;whiteList['column-rule-color']=false;whiteList['column-rule-style']=false;whiteList['column-rule-width']=false;whiteList['column-span']=false;whiteList['column-width']=false;whiteList['columns']=false;whiteList['contain']=false;whiteList['content']=false;whiteList['counter-increment']=false;whiteList['counter-reset']=false;whiteList['counter-set']=false;whiteList['crop']=false;whiteList['cue']=false;whiteList['cue-after']=false;whiteList['cue-before']=false;whiteList['cursor']=false;whiteList['direction']=false;whiteList['display']=true;whiteList['display-inside']=true;whiteList['display-list']=true;whiteList['display-outside']=true;whiteList['dominant-baseline']=false;whiteList['elevation']=false;whiteList['empty-cells']=false;whiteList['filter']=false;whiteList['flex']=false;whiteList['flex-basis']=false;whiteList['flex-direction']=false;whiteList['flex-flow']=false;whiteList['flex-grow']=false;whiteList['flex-shrink']=false;whiteList['flex-wrap']=false;whiteList['float']=false;whiteList['float-offset']=false;whiteList['flood-color']=false;whiteList['flood-opacity']=false;whiteList['flow-from']=false;whiteList['flow-into']=false;whiteList['font']=true;whiteList['font-family']=true;whiteList['font-feature-settings']=true;whiteList['font-kerning']=true;whiteList['font-language-override']=true;whiteList['font-size']=true;whiteList['font-size-adjust']=true;whiteList['font-stretch']=true;whiteList['font-style']=true;whiteList['font-synthesis']=true;whiteList['font-variant']=true;whiteList['font-variant-alternates']=true;whiteList['font-variant-caps']=true;whiteList['font-variant-east-asian']=true;whiteList['font-variant-ligatures']=true;whiteList['font-variant-numeric']=true;whiteList['font-variant-position']=true;whiteList['font-weight']=true;whiteList['grid']=false;whiteList['grid-area']=false;whiteList['grid-auto-columns']=false;whiteList['grid-auto-flow']=false;whiteList['grid-auto-rows']=false;whiteList['grid-column']=false;whiteList['grid-column-end']=false;whiteList['grid-column-start']=false;whiteList['grid-row']=false;whiteList['grid-row-end']=false;whiteList['grid-row-start']=false;whiteList['grid-template']=false;whiteList['grid-template-areas']=false;whiteList['grid-template-columns']=false;whiteList['grid-template-rows']=false;whiteList['hanging-punctuation']=false;whiteList['height']=true;whiteList['hyphens']=false;whiteList['icon']=false;whiteList['image-orientation']=false;whiteList['image-resolution']=false;whiteList['ime-mode']=false;whiteList['initial-letters']=false;whiteList['inline-box-align']=false;whiteList['justify-content']=false;whiteList['justify-items']=false;whiteList['justify-self']=false;whiteList['left']=false;whiteList['letter-spacing']=true;whiteList['lighting-color']=true;whiteList['line-box-contain']=false;whiteList['line-break']=false;whiteList['line-grid']=false;whiteList['line-height']=false;whiteList['line-snap']=false;whiteList['line-stacking']=false;whiteList['line-stacking-ruby']=false;whiteList['line-stacking-shift']=false;whiteList['line-stacking-strategy']=false;whiteList['list-style']=true;whiteList['list-style-image']=true;whiteList['list-style-position']=true;whiteList['list-style-type']=true;whiteList['margin']=true;whiteList['margin-bottom']=true;whiteList['margin-left']=true;whiteList['margin-right']=true;whiteList['margin-top']=true;whiteList['marker-offset']=false;whiteList['marker-side']=false;whiteList['marks']=false;whiteList['mask']=false;whiteList['mask-box']=false;whiteList['mask-box-outset']=false;whiteList['mask-box-repeat']=false;whiteList['mask-box-slice']=false;whiteList['mask-box-source']=false;whiteList['mask-box-width']=false;whiteList['mask-clip']=false;whiteList['mask-image']=false;whiteList['mask-origin']=false;whiteList['mask-position']=false;whiteList['mask-repeat']=false;whiteList['mask-size']=false;whiteList['mask-source-type']=false;whiteList['mask-type']=false;whiteList['max-height']=true;whiteList['max-lines']=false;whiteList['max-width']=true;whiteList['min-height']=true;whiteList['min-width']=true;whiteList['move-to']=false;whiteList['nav-down']=false;whiteList['nav-index']=false;whiteList['nav-left']=false;whiteList['nav-right']=false;whiteList['nav-up']=false;whiteList['object-fit']=false;whiteList['object-position']=false;whiteList['opacity']=false;whiteList['order']=false;whiteList['orphans']=false;whiteList['outline']=false;whiteList['outline-color']=false;whiteList['outline-offset']=false;whiteList['outline-style']=false;whiteList['outline-width']=false;whiteList['overflow']=false;whiteList['overflow-wrap']=false;whiteList['overflow-x']=false;whiteList['overflow-y']=false;whiteList['padding']=true;whiteList['padding-bottom']=true;whiteList['padding-left']=true;whiteList['padding-right']=true;whiteList['padding-top']=true;whiteList['page']=false;whiteList['page-break-after']=false;whiteList['page-break-before']=false;whiteList['page-break-inside']=false;whiteList['page-policy']=false;whiteList['pause']=false;whiteList['pause-after']=false;whiteList['pause-before']=false;whiteList['perspective']=false;whiteList['perspective-origin']=false;whiteList['pitch']=false;whiteList['pitch-range']=false;whiteList['play-during']=false;whiteList['position']=false;whiteList['presentation-level']=false;whiteList['quotes']=false;whiteList['region-fragment']=false;whiteList['resize']=false;whiteList['rest']=false;whiteList['rest-after']=false;whiteList['rest-before']=false;whiteList['richness']=false;whiteList['right']=false;whiteList['rotation']=false;whiteList['rotation-point']=false;whiteList['ruby-align']=false;whiteList['ruby-merge']=false;whiteList['ruby-position']=false;whiteList['shape-image-threshold']=false;whiteList['shape-outside']=false;whiteList['shape-margin']=false;whiteList['size']=false;whiteList['speak']=false;whiteList['speak-as']=false;whiteList['speak-header']=false;whiteList['speak-numeral']=false;whiteList['speak-punctuation']=false;whiteList['speech-rate']=false;whiteList['stress']=false;whiteList['string-set']=false;whiteList['tab-size']=false;whiteList['table-layout']=false;whiteList['text-align']=true;whiteList['text-align-last']=true;whiteList['text-combine-upright']=true;whiteList['text-decoration']=true;whiteList['text-decoration-color']=true;whiteList['text-decoration-line']=true;whiteList['text-decoration-skip']=true;whiteList['text-decoration-style']=true;whiteList['text-emphasis']=true;whiteList['text-emphasis-color']=true;whiteList['text-emphasis-position']=true;whiteList['text-emphasis-style']=true;whiteList['text-height']=true;whiteList['text-indent']=true;whiteList['text-justify']=true;whiteList['text-orientation']=true;whiteList['text-overflow']=true;whiteList['text-shadow']=true;whiteList['text-space-collapse']=true;whiteList['text-transform']=true;whiteList['text-underline-position']=true;whiteList['text-wrap']=true;whiteList['top']=false;whiteList['transform']=false;whiteList['transform-origin']=false;whiteList['transform-style']=false;whiteList['transition']=false;whiteList['transition-delay']=false;whiteList['transition-duration']=false;whiteList['transition-property']=false;whiteList['transition-timing-function']=false;
2641whiteList['unicode-bidi']=false;whiteList['vertical-align']=false;whiteList['visibility']=false;whiteList['voice-balance']=false;whiteList['voice-duration']=false;whiteList['voice-family']=false;whiteList['voice-pitch']=false;whiteList['voice-range']=false;whiteList['voice-rate']=false;whiteList['voice-stress']=false;whiteList['voice-volume']=false;whiteList['volume']=false;whiteList['white-space']=false;whiteList['widows']=false;whiteList['width']=true;whiteList['will-change']=false;whiteList['word-break']=true;whiteList['word-spacing']=true;whiteList['word-wrap']=true;whiteList['wrap-flow']=false;whiteList['wrap-through']=false;whiteList['writing-mode']=false;whiteList['z-index']=false;return whiteList;}function onAttr(name,value,options){}function onIgnoreAttr(name,value,options){}var REGEXP_URL_JAVASCRIPT=/javascript\s*\:/img;function safeAttrValue(name,value){if(REGEXP_URL_JAVASCRIPT.test(value))return '';return value;}exports.whiteList=getDefaultWhiteList();exports.getDefaultWhiteList=getDefaultWhiteList;exports.onAttr=onAttr;exports.onIgnoreAttr=onIgnoreAttr;exports.safeAttrValue=safeAttrValue;},{}],8:[function(require,module,exports){var DEFAULT=require('./default');var FilterCSS=require('./css');function filterCSS(html,options){var xss=new FilterCSS(options);return xss.process(html);}exports=module.exports=filterCSS;exports.FilterCSS=FilterCSS;for(var i in DEFAULT)exports[i]=DEFAULT[i];if(typeof window!=='undefined')window.filterCSS=module.exports;},{"./css":6,"./default":7}],9:[function(require,module,exports){var _=require('./util');function parseStyle(css,onAttr){css=_.trimRight(css);if(css[css.length-1]!==';')css+=';';var cssLength=css.length;var isParenthesisOpen=false;var lastPos=0;var i=0;var retCSS='';function addNewAttr(){if(!isParenthesisOpen){var source=_.trim(css.slice(lastPos,i));var j=source.indexOf(':');if(j!==-1){var name=_.trim(source.slice(0,j));var value=_.trim(source.slice(j+1));if(name){var ret=onAttr(lastPos,retCSS.length,name,value,source);if(ret)retCSS+=ret+'; ';}}}lastPos=i+1;}for(;i<cssLength;i++){var c=css[i];if(c==='/'&&css[i+1]==='*'){var j=css.indexOf('*/',i+2);if(j===-1)break;i=j+1;lastPos=i+1;isParenthesisOpen=false;}else if(c==='(')isParenthesisOpen=true;else if(c===')')isParenthesisOpen=false;else if(c===';')if(isParenthesisOpen){}else addNewAttr();else{if(c==='\n')addNewAttr();}}return _.trim(retCSS);}module.exports=parseStyle;},{"./util":10}],10:[function(require,module,exports){module.exports={indexOf:function(arr,item){var i,j;if(Array.prototype.indexOf)return arr.indexOf(item);for(i=0,j=arr.length;i<j;i++)if(arr[i]===item)return i;return -1;},forEach:function(arr,fn,scope){var i,j;if(Array.prototype.forEach)return arr.forEach(fn,scope);for(i=0,j=arr.length;i<j;i++)fn.call(scope,arr[i],i,arr);},trim:function(str){if(String.prototype.trim)return str.trim();return str.replace(/(^\s*)|(\s*$)/g,'');},trimRight:function(str){if(String.prototype.trimRight)return str.trimRight();return str.replace(/(\s*$)/g,'');}};},{}]},{},[2]);;
2642(($,Drupal,drupalSettings,once)=>{function shareEvent(){if(this.tagName&&this.tagName==='A'&&this.href){window.dataLayer=window.dataLayer||[];var data={event:'share',event_name:'share',social_network:this.getAttribute('title'),content_id:drupalSettings.ln_datalayer?.data?.content_id,content_name:drupalSettings.ln_datalayer?.data?.content_name,content_type:drupalSettings.ln_datalayer?.data?.content_type,item_id:drupalSettings.ln_datalayer?.data?.content_id,item_name:drupalSettings.ln_datalayer?.data?.content_name,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version};if(data.content_type==='recipe'){data.recipe_id=data.content_id;data.recipe_name=data.content_name;}window.dataLayer.push(data);}}function downloadRecipe(){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'recipe_event',event_name:'recipe_download',recipe_id:drupalSettings.cp_datalayer?.data?.recipe_id,recipe_name:drupalSettings.cp_datalayer?.data?.recipe_name,recipe_course:drupalSettings.cp_datalayer?.data?.recipe_course,recipe_total_time:drupalSettings.cp_datalayer?.data?.recipe_total_time,recipe_brand:drupalSettings.cp_datalayer?.data?.recipe_brand,recipe_chef:drupalSettings.cp_datalayer?.data?.recipe_chef,recipe_servings:drupalSettings.cp_datalayer?.data?.recipe_servings,recipe_difficulty:drupalSettings.cp_datalayer?.data?.recipe_difficulty,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}function reviewViewedEvent(entry){const stars=entry.target.querySelectorAll('.star .on').length;const reviewId=entry.target.getAttribute('data-review-id');window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'review_main',event_name:'review_viewed',review_rating:stars,review_id:reviewId,content_id:drupalSettings.ln_datalayer?.data?.content_id,content_name:drupalSettings.ln_datalayer?.data?.content_name,item_id:drupalSettings.ln_datalayer?.data?.content_id,item_name:drupalSettings.ln_datalayer?.data?.content_name,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}function tintViewedEvent(){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'ugc_content_visibility',event_name:'ugc_content_visibility',module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}
2642function topicChangedEvent(){const form=this.closest('form');window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'contact_interaction',event_name:'contactus_topic_changed',topic:this.value,form_id:form.id,form_name:form.id,form_type:'webform',module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}function startQuizEvent(){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'quiz_events',event_name:'quiz_start',quiz_name:this.title,quiz_step_name:'quiz start',module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}function ctaClickGtmEvent(e){if(this.tagName&&(this.tagName==="A"&&this.href)||this.tagName==="BUTTON"||this.tagName==="SPAN"||(this.tagName==="INPUT"&&this.type==="submit")){const hrefAttr=this.getAttribute('href');const videoUrlAttr=this.getAttribute('data-video-url');const link_url=hrefAttr||videoUrlAttr||'';let domain='';try{const urlForDomain=(this.tagName==="A"&&this.href)?this.href:link_url;if(urlForDomain)domain=new URL(urlForDomain).hostname;}catch(e){}window.dataLayer=window.dataLayer||[];let link_text=this.innerText||'';if(this.tagName==="INPUT"&&this.type==="submit")link_text=this.value||'';window.dataLayer.push({event:'cta_click',event_name:'cta_click',link_classes:this.className,link_domain:domain,link_id:this.getAttribute('id')||'',link_text,link_url,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}}function ctaFileDownloadGtmEvent(e){if(this.tagName&&this.tagName==="A"&&this.href){const link_url=this.getAttribute('href')||'';let domain='';try{const urlForDomain=(this.tagName==="A"&&this.href)?this.href:link_url;if(urlForDomain)domain=new URL(urlForDomain).hostname;}catch(e){}const url=new URL(link_url,window.location.origin);const file_path=url.pathname;const file_name=file_path.substring(file_path.lastIndexOf('/')+1);const file_extension=file_name.substring(file_name.lastIndexOf('.')+1);window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'cta_file_download',event_name:'cta_file_download',file_extension,file_name:file_path,link_classes:this.className,link_domain:domain,link_id:this.getAttribute('id')||'',link_text:this.innerText||'',link_url,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}}function buyNowClickGtmEvent(e){window.dataLayer=window.dataLayer||[];let params={event:'buynow_onsite_button_click',event_name:'buynow_onsite_button_click',item_brand:'',item_category:'',item_variant:'',item_subcategory:'',item_range:'',link_classes:this.className,link_id:this.getAttribute('id')||'',link_text:this.innerText,content_id:drupalSettings.ln_datalayer?.data?.content_id,content_name:drupalSettings.ln_datalayer?.data?.content_name,item_id:drupalSettings.ln_datalayer?.data?.content_id,item_name:drupalSettings.ln_datalayer?.data?.content_name,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version,vendor_name:this.getAttribute('data-vendor-name')||''};if(this.tagName&&this.tagName==="A"){let domain='';try{domain=new URL(this.href).hostname;}catch(e){}params.link_domain=domain;params.link_url=this.getAttribute('href');}if(this.classList&&this.classList.contains('buy-now-custom-link')){const cardContent=this.closest('.card__content');if(cardContent){const titleEl=cardContent.querySelector('.card__title');if(titleEl)params.item_name=titleEl.innerText?.trim()??'';}const providerClass=[...this.classList].find((cls)=>cls?.startsWith('buy-now-provider-'));if(providerClass)params.buynow_store=providerClass.replace('buy-now-provider-','');params.component_type='card_paragraph';}window.dataLayer.push(params);}function pushCiamEvent(event,action){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'my_profile',event_name:'my_profile',action,user_account_type:drupalSettings.user?.user_account_type,user_type:drupalSettings.user?.user_type,user_id:drupalSettings.user?.uuid,module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}function pushToolNavigationEvent(event,event_name,action,param_location){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'tool',event_name,action,param_location:param_location||'content'});}function pushCtaClickCustomEvent(event,event_name,link_text,link_classes,link_id,link_url,param_location){window.dataLayer=window.dataLayer||[];let domain='';if(link_url)domain=new URL(link_url).hostname;window.dataLayer.push({event:'cta_click',event_name,link_classes,link_domain:domain,link_id:link_id||'',link_text,link_url,param_location:param_location||'content',location_id:drupalSettings.ln_datalayer?.data?.content_id});}function pushToolNavigationContentEvent(event,event_name,action,param_location){window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'content_events',event_name:'content_events',action,content_type:drupalSettings.cp_datalayer?.data?.content_type,content_name:drupalSettings.cp_datalayer?.data?.content_name,content_id:drupalSettings.cp_datalayer?.data?.content_id,param_location:param_location||'content'});}const observer=new IntersectionObserver((entries,observer)=>
2642{for(const entry of entries)if(entry.isIntersecting){const event=entry.target.getAttribute('data-cp-datalayer-event');switch(event){case 'ugc-content-visibility':tintViewedEvent();break;case 'review-viewed':reviewViewedEvent(entry);break;default:break;}observer.unobserve(entry.target);}},{root:null,rootMargin:"0px",threshold:0.1});Drupal.behaviors.cpDatalayerEvents={attach(context){once('cp-datalayer-share-event','a.data-cp-datalayer-event--share').forEach((element)=>{element.addEventListener('click',shareEvent);});once('cp-datalayer-download-recipe-event','[data-cp-datalayer-event="recipe-download"] a').forEach((element)=>{element.addEventListener('click',downloadRecipe);});once('cp-datalayer-review-viewed-event','[data-cp-datalayer-event="review-viewed"]').forEach((element)=>{observer.observe(element);});once('cp-datalayer-ugc-content-visibility-event','[data-cp-datalayer-event="ugc-content-visibility"]').forEach((element)=>{observer.observe(element);});once('cp-datalayer-contactus-topic-changed-event','select[data-cp-datalayer-event="contactus-topic-changed"]').forEach((element)=>{element.addEventListener('change',topicChangedEvent);});once('cp-datalayer-quiz-start-event','a[data-cp-datalayer-event="quiz-start"]').forEach((element)=>{element.addEventListener('click',startQuizEvent);});once('gtm-cta-click','[data-gtm-event-cta-click]',context).forEach(function(element,index){element.addEventListener('click',ctaClickGtmEvent);});once('gtm-cta-file-download','[data-gtm-event-cta-file-download]',context).forEach(function(element){element.addEventListener('click',ctaFileDownloadGtmEvent);});once('gtm-buynow-button-init','[data-gtm-event-container="buynow_onsite_button_click"] button,[data-gtm-event-buynow-click], .buy-now-custom-link',context).forEach(function(element,index){element.addEventListener('click',buyNowClickGtmEvent);});if(once('ciam-events-ga4','html').length){$(document).on('click','.gigya-update-profile-screen input.gigya-input-submit[data-screenset-roles=instance]',(event)=>{pushCiamEvent(event,"save_click");});$(document).on('click','form.gigya-profile-form input.gigya-input-submit',(event)=>{pushCiamEvent(event,"save_click");});$(document).on('click','.ciam-form-builder-modal .ciam-main-form-submit-button',(event)=>{pushCiamEvent(event,"save_click");});$(document).on('click','a.family.np-gigya-raas-popoup-link',(event)=>{pushCiamEvent(event,"user adds a family member");});$(document).on('click','.profile-block-profile_family a.family.np-gigya-raas-popoup-link',(event)=>{pushCiamEvent(event,"user adds a family member");});}once('cp-datalayer-unflag-favorite','.favorites__results-content .flag-bookmark.action-unflag a',context).forEach(function(element,index){element.addEventListener('click',(event)=>{pushCiamEvent(event,"delete_card_click");});});Drupal.cpDatalayer=Drupal.cpDatalayer||{};Drupal.cpDatalayer.pushCiamEvent=pushCiamEvent;Drupal.cpDatalayer.pushToolNavigationEvent=pushToolNavigationEvent;Drupal.cpDatalayer.pushToolNavigationContentEvent=pushToolNavigationContentEvent;Drupal.cpDatalayer.pushCtaClickCustomEvent=pushCtaClickCustomEvent;}};})(jQuery,Drupal,drupalSettings,once);;
2643(($,Drupal,drupalSettings,once)=>{Drupal.behaviors.cpDatalayerCtaClickEvents={attach(context){var events=[{'selector':'.call-contact-card .contact-card__button a','link_text':'call_us_click','event_name':'contact_us_click_cta'},{'selector':'.email-contact-card .contact-card__button a','link_text':'write_email_click','event_name':'contact_us_click_cta'},{'selector':'.chat-contact-card .contact-card__button a','link_text':'chat_now_click','event_name':'contact_us_click_cta'},{'selector':'.paragraph--type--faqs-block .paragraph-buttons a.btn','link_text':'more_info_click','event_name':'contact_us_click_cta'},{'selector':'.product .main-info-block__button .btn-buynow','link_text':'buynow_click_cta','event_name':'buynow_click_cta'}];events.forEach(function(eventDescription){var selector=eventDescription.selector;var link_text=eventDescription.link_text;var event_name=eventDescription.event_name;once('cp-datalayer-cta-click-events',selector,context).forEach(function(element){element.addEventListener('click',(event)=>{Drupal.cpDatalayer.pushCtaClickCustomEvent(event,event_name,link_text,event.currentTarget.className,event.currentTarget.getAttribute("id"),event.currentTarget.href,'');});});});}};})(jQuery,Drupal,drupalSettings,once);;
2644(($,Drupal,drupalSettings,once)=>{Drupal.behaviors.cpDatalayerToolNavigationEvents={attach(context){var events=[{'selector':'.flag-apply-to-mama-class.action-flag a','event_name':'mama_class_tool','action':'register_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.cp-myfeed-my-feed fieldset[data-drupal-selector="edit-stages-container"] .form-checkbox','event_name':'myfeed_setup_tool','action':'stages_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.cp-myfeed-my-feed fieldset[data-drupal-selector="edit-topics-container"] .form-checkbox','event_name':'myfeed_setup_tool','action':'topics_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.store-locator__tabs-content input.geolocation-geocoder-a
2644ddress','event_name':'store_locator_tool','action':'search_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.store-locator__list div.views-field-field-location-destination-link a','event_name':'store_locator_tool','action':'get_directions_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.main-info-block__action-bar .action-bar__item.favorite .flag-bookmark.action-flag>a','event_name':'content_events','action':'favorite_content','eventFunction':Drupal.cpDatalayer.pushToolNavigationContentEvent},{'selector':'.main-info-block__action-bar .action-bar__item.social-share #social-share','event_name':'content_events','action':'share_content','eventFunction':Drupal.cpDatalayer.pushToolNavigationContentEvent},{'selector':'.main-info-block__action-bar .action-bar__item .print__wrapper--pdf>a','event_name':'content_events','action':'download_content_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationContentEvent},{'selector':'.paragraph-faq p.h2','event_name':'faq_tool','action':'category_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.faq-simple .faq-simple__controls','event_name':'faq_tool','action':'question_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.faq-simple__answer-flags button.btn-flat:first-child','event_name':'faq_tool','action':'helpful_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.faq-simple__answer-flags button.btn-flat:last-child','event_name':'faq_tool','action':'not_helpful_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-button','event_name':'assistant_tool','action':'open_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-button-close','event_name':'assistant_tool','action':'close_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-personalize','event_name':'assistant_tool','action':'personalization_menu_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-product-finder','event_name':'assistant_tool','action':'product_finder_menu_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-contact-us','event_name':'assistant_tool','action':'support_menu_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-open-feedback','event_name':'assistant_tool','action':'open_feedback_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-open-cookie','event_name':'assistant_tool','action':'open_cookie_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-open-live-chat','event_name':'assistant_tool','action':'open_crisp_live_chat_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.navigation-assistant-links-list .na-open-sticky-button','event_name':'assistant_tool','action':'open_sticky_button_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.filter-drop__body #facet-block-recipe-stage','event_name':'recipes_tool','action':'article_filtering_system_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.filter-drop__body #facet-block-recipe-meal-type','event_name':'recipes_tool','action':'article_filtering_system_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.filter-drop__body #facet-block-recipe-total-time','event_name':'recipes_tool','action':'article_filtering_system_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.views-exposed-form-finders-all-recipes','event_name':'recipes_tool','action':'article_search_display_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'#block-views-block-finders-all-recipes .card-grid .card a','event_name':'recipes_tool','action':'tool_recipes_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.header__additional-menu .need-help-menu','event_name':'assistant_tool','action':'need_help_menu_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent},{'selector':'.cp-myfeed-my-feed .save-preferences','event_name':'myfeed_setup_tool','action':'save_click','eventFunction':Drupal.cpDatalayer.pushToolNavigationEvent}];
2644events.forEach(function(eventDescription){var selector=eventDescription.selector;var action=eventDescription.action;var event_name=eventDescription.event_name;var eventFunction=eventDescription.eventFunction;once('cp-datalayer-tools-nav-events',selector,context).forEach(function(element){element.addEventListener('click',(event)=>{eventFunction(event,event_name,action,'');});});});}};})(jQuery,Drupal,drupalSettings,once);;
2645((Drupal,drupalSettings,once)=>{const pendingPlayers=[];const playerStates=new WeakMap();function pushDatalayerInfo(player,eventName,progress=null){let videoData;let duration;let currentTime;let videoUrl;try{videoData=player.getVideoData();duration=player.getDuration();currentTime=player.getCurrentTime();videoUrl=player.getVideoUrl();}catch(e){return;}let videoPercent=(duration>0)?(currentTime/duration)*100:0;if(progress!==null)videoPercent=progress;window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:'video_event',event_name:eventName,video_current_time:currentTime,video_duration:duration,video_percent:videoPercent,video_provider:'YouTube',video_title:videoData?.title||'Unknown',video_url:videoUrl,visible:'',video_category:'',video_subcategory:'',video_type:'',module_id:drupalSettings.cp_datalayer?.data?.module_id,module_name:drupalSettings.cp_datalayer?.data?.module_name,module_version:drupalSettings.cp_datalayer?.data?.module_version});}function onPlayerStateChange(event){const player=event.target;let state=playerStates.get(player)||{started:false,completed:false,milestones:new Set()};if(event.data===YT.PlayerState.PLAYING){if(!state.started){state.started=true;pushDatalayerInfo(player,'video_start');}if(state.progressInterval)clearInterval(state.progressInterval);state.progressInterval=setInterval(()=>{let duration=0;let currentTime=0;try{duration=player.getDuration();currentTime=player.getCurrentTime();}catch(e){}if(duration>0){const percent=(currentTime/duration)*100;const milestones=[10,25,50,75,90];milestones.forEach((milestone)=>{if(percent>=milestone&&!state.milestones.has(milestone)){state.milestones.add(milestone);pushDatalayerInfo(player,'video_progress',milestone);}});}},1000);}else{if(state.progressInterval)clearInterval(state.progressInterval);if(event.data===YT.PlayerState.ENDED)if(!state.completed){state.completed=true;pushDatalayerInfo(player,'video_complete',100);}}playerStates.set(player,state);}const createYouTubePlayer=(element)=>{const el=(typeof element==='string')?document.getElementById(element):element;if(!el||!el.id)return;if(window.YT&&window.YT.Player){if(YT.get&&YT.get(el.id))return;try{new YT.Player(el.id,{events:{'onReady':(event)=>{const player=event.target;if(player.getPlayerState&&player.getPlayerState()===YT.PlayerState.PLAYING)onPlayerStateChange({target:player,data:YT.PlayerState.PLAYING});},'onStateChange':onPlayerStateChange}});}catch(e){}}else{if(!pendingPlayers.includes(el.id))pendingPlayers.push(el.id);if(!document.querySelector('script[src*="youtube.com/iframe_api"]')){const tag=document.createElement('script');tag.src='https://www.youtube.com/iframe_api';document.head.appendChild(tag);}}};Drupal.cpDatalayerVideoEvents={createYouTubePlayer};window.onYouTubeIframeAPIReady=function(){while(pendingPlayers.length>0){const id=pendingPlayers.shift();Drupal.cpDatalayerVideoEvents.createYouTubePlayer(id);}};const processIframe=(iframe)=>{if(!iframe.src||(!iframe.src.includes('youtube.com')&&!iframe.src.includes('youtu.be')))return;if(!iframe.id)iframe.id='yt-player-'+Math.random().toString(36).substr(2,9);let url;try{url=new URL(iframe.src,window.location.origin);}catch(e){return;}let changed=false;if(url.hostname==='youtube.com'||url.hostname==='youtu.be'){url.hostname='www.youtube.com';changed=true;}if(url.searchParams.get('enablejsapi')!=='1'){url.searchParams.set('enablejsapi','1');changed=true;}const hostOrigin=window.location.protocol+'//'+window.location.hostname+(window.location.port?':'+window.location.port:'');if(url.searchParams.get('origin')!==hostOrigin){url.searchParams.set('origin',hostOrigin);changed=true;}const doInit=()=>{Drupal.cpDatalayerVideoEvents.createYouTubePlayer(iframe);};if(changed){iframe.addEventListener('load',doInit,{once:true});
2645iframe.src=url.toString();}else{let initDone=false;const initWrapper=()=>{if(!initDone){initDone=true;doInit();}};iframe.addEventListener('load',initWrapper,{once:true});setTimeout(initWrapper,1000);}};const observeNewVideos=(context)=>{const observer=new MutationObserver((mutations)=>{mutations.forEach((mutation)=>{mutation.addedNodes.forEach((node)=>{if(node.nodeType!==Node.ELEMENT_NODE)return;const iframes=(node.nodeName==='IFRAME')?[node]:(node.querySelectorAll?node.querySelectorAll('iframe'):[]);iframes.forEach((iframe)=>{once('cp-video-init',iframe).forEach((el)=>processIframe(el));});});});});observer.observe(context,{childList:true,subtree:true});};Drupal.behaviors.cpDatalayerVideoEvents={attach(context){once('cp-video-init','iframe',context).forEach((el)=>processIframe(el));if(context===document)observeNewVideos(document.body);}};})(Drupal,drupalSettings,once);;
2646(function($,drupalSettings,once){Drupal.AjaxCommands.prototype.QuestionnaireDatalayer=function(ajax,response,status){window.dataLayer=window.dataLayer||[];let stepsData=response.results;if(stepsData.current.id===0)window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_questionnaire_start','param_location':'content','multistep_name':stepsData.multistep.name,'multistep_type':stepsData.multistep.type,'step_name':stepsData.current.name});if(stepsData.current.id==='finished')window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_questionnaire_complete','param_location':'content','multistep_name':stepsData.multistep.name,'multistep_type':stepsData.multistep.type,'step_name':'Finished'});if(stepsData.prev!==undefined&&stepsData.prev.id!=='finished')window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_questionnaire_progress','param_location':'content','multistep_name':stepsData.multistep.name,'multistep_type':stepsData.multistep.type,'step_name':stepsData.prev.name,'step_number':stepsData.progress,'step_result':stepsData.prev.value});};Drupal.AjaxCommands.prototype.InfoBoxDatalayer=function(ajax,response,status){window.dataLayer=window.dataLayer||[];let tips=Object.values(response.results);if(tips.length)tips.forEach(function(tip){window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_content_events','param_location':'content','content_type':'tip','content_name':tip?.settings?.tip_title||'','content_id':tip.id});});};Drupal.behaviors.dsuDataLayer={attach:function(context,settings){window.dataLayer=window.dataLayer||[];let dsuUrls=drupalSettings?.cp_dsu_datalayer?.drh_urls||[];
2646dsuUrls.forEach(function(url){$(once('dsuDataLayerLinkClick','a[href$="/'+url+'"]')).on('click',function(e){window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_click','param_location':'content'});});});$(window).on('dsu_filter_apply',function(label,value){window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_filters_applied','param_location':'content','filters_used':{'filter':label,'value':value}});});let recipe=drupalSettings?.cp_dsu_recipe_hub?.recipe||null;let recipeDatalayer=drupalSettings?.cp_dsu_datalayer?.recipe||{};if(recipe!==null)window.dataLayer.push({'event':'recipe_t_interaction','event_name':'recipe_tool_products','param_location':'content','recipe_id_srh':recipe.id,'recipe_name':recipe.name,'recipe_total_time':recipe?.time||'','recipe_brand':recipe?.brand?.displayName||'','recipe_servings':recipe?.servings?.displayName||'','recipe_difficulty':recipe?.difficulty?.localizedDisplayName||'','recipe_allergie':recipeDatalayer?.recipe_allergie||'','cuisine_type':recipeDatalayer?.cuisine_type||'','meal_type':recipeDatalayer?.meal_type||'','main_dish_type':recipeDatalayer?.main_dish_type||'','special_recipes':recipeDatalayer?.special_recipes||'','stage':recipeDatalayer?.special_recipes||'','trimester':recipeDatalayer?.trimester||''});}};})(jQuery,drupalSettings,once);;
2647(function($,Drupal){'use strict';Drupal.behaviors.cpGigyaRedirect={attach:function(context,settings){var redirectionLink=$('a.auto-redirect-button');if(redirectionLink.length>0&&redirectionLink.first().attr('href')!=='undefined'){var redirectionDelay=redirectionLink.first().data('auto-redirect-time');if(redirectionDelay==='undefined')redirectionDelay=3000;setTimeout(function(){window.location.href=redirectionLink.first().attr('href');},redirectionDelay);}}};}(jQuery,Drupal));;
2648(($,Drupal,drupalSettings,once)=>{Drupal.behaviors.cpGigyaDatalayerEvents={attach:function(context){var events=[{'selector':'.page-user .profile-block-profile_data a','action':'edit_profile_click'},{'selector':'.page-user .profile-block-profile_family .status-child a','action':'my_profile_click'},{'selector':'.page-user .container-children a[class^="family_members"]','action':'family_member_edition_click'},{'selector':'.header-popup__content a[href$="/profile/me"]','action':'my_profile_click'},{'selector':'.header-popup__content a[href$="/profile/contact"]','action':'communication_pref_click'},{'selector':'.header-popup__content a[href$="/profile/family"]','action':'family_member_click'},{'selector':'.header-popup__content a[href$="/my-favorites"]','action':'my_favorites_click'},{'selector':'.header-popup__content a[href$="/my-dashboard"]','action':'my_dashboard_click'},{'selector':'.header-popup__content a[href$="/my-rewards"]','action':'my_rewards_click'},{'selector':'.header-popup__content a[href$="/my-support"]','action':'my_support_click'},{'selector':'.header-popup__content a[href$="lazada.com/"]','action':'nan_refill_replenish_click'},{'selector':'.favorites__results-content a.card__link','action':'favorite_click'},{'selector':'.support-page__content .datalayer-baby-me-support a.card__link','action':'baby_me_click'},{'selector':'.support-page__content .datalayer-check-our-faq a.card__link','action':'check_our_faq_click'},{'selector':'.support-page__content .datalayer-my-nutrition-expert a.card__link','action':'my_nutrition_expert_click'},{'selector':'.support-page__content .datalayer-phone-contact a.card__link','action':'phone_contact_click'},{'selector':'.support-page__content .datalayer-my-pregnancy-expert a.card__link','action':'my_pregnancy_expert_click'},{'selector':'.support-page__content .datalayer-customer-care a.card__link','action':'customer_care_click'},{'selector':'.support-page__content .datalayer-contact-by-email a.card__link','action':'contact_us_email_click'},{'selector':'.page-dashboard__widgets .card-dashboard__action a.btn-primary','action':'try_it_widget_click'}];events.forEach(function(eventDescription){var selector=eventDescription.selector;var action=eventDescription.action;once('cp-gigya-datalayer-events',selector,context).forEach(function(element){element.addEventListener('click',(event)=>{Drupal.cpDatalayer.pushCiamEvent(event,action);});});});$(once('deleteChildProfileFormOnceMyProfile','.path-profile')).on("mousedown",'#d8-profile-family-form .gigya-array-remove-btn',(event)=>
2648{Drupal.cpDatalayer.pushCiamEvent(event,'family_member_edition_click');});$(once('discardProfileChangesOnceMyProfile','.path-profile')).on("mousedown",'a.d8g-discard',(event)=>{Drupal.cpDatalayer.pushCiamEvent(event,'discard_click');});$(once('clickEmailOnceMyProfile','.path-profile')).on("change",'input[name$="SBmktemail.email.isSubscribed"][data-screenset-roles="instance"],input[name$="SBcrossnl.email.isSubscribed"][data-screenset-roles="instance"]',(event)=>{Drupal.cpDatalayer.pushCiamEvent(event,'email_notification_click');});$(once('clickBrandsEmailOnceMyProfile','.path-profile')).on("change",'.gg-brands_checkbox-validity input[name$="SBmktprogram.email.isSubscribed"][data-screenset-roles="instance"]',(event)=>{Drupal.cpDatalayer.pushCiamEvent(event,'communication_email_click');});$(once('clickPhoneCommunicationOnceMyProfile','.path-profile')).on("change",'input[name$="SBsmspromo.email.isSubscribed"][data-screenset-roles="instance"]',(event)=>{Drupal.cpDatalayer.pushCiamEvent(event,'phone_communication_click');});$(once('clickGetSampleOnceMyProfile',context)).on('click','.flag-coupon-print.action-flag a',(event)=>{Drupal.cpDatalayer.pushCiamEvent(event,'get_sample_click');});}};})(jQuery,Drupal,drupalSettings,once);;
2649((Drupal,window)=>{Drupal.behaviors.gigyaPrefetchScreenSet={attach:(context,settings)=>{if(context!==window.document)return;const screenSetName=settings?.gigya?.raas?.login?.screenSet;if(!screenSetName){console.log('Gigya Prefetch Screenset: screen set name is not set.');return;}const prefetchScreenSet=()=>{const handleGigyaResponse=(result)=>{if(result&&result.status==='success')console.log('Gigya Prefetch Screenset: successfully pre-loaded ',screenSetName);else console.warn('Gigya Prefetch Screenset: failed to pre-load ',screenSetName);};window.gigya.accounts.loadScreenSet({screenSet:screenSetName,callback:handleGigyaResponse});};if(window.gigya?.accounts)prefetchScreenSet();else{console.log('Gigya Prefetch Screenset: waiting for SDK via polling...');const gigyaCheckInterval=setInterval(()=>{if(window.gigya?.accounts){clearInterval(gigyaCheckInterval);prefetchScreenSet();}},100);setTimeout(()=>{clearInterval(gigyaCheckInterval);},10000);}}};})(Drupal,window);;
2650((Drupal,once)=>{Drupal.behaviors.initCiamLogin={attach(context){once('login-button-click','.header__account button',context).forEach((element)=>{element.addEventListener('click',()=>{let placeholder=context.getElementById('gigya-raas-login-div-placeholder');if(placeholder){placeholder.id='gigya-raas-login-div';Drupal.gigyaRaasInit();}});});}};})(Drupal,once);;
2651!function(_,u,l){"use strict";var t,p=void 0===l.eu_cookie_compliance.cookie_value_disagreed||""===l.eu_cookie_compliance.cookie_value_disagreed?"0":l.eu_cookie_compliance.cookie_value_disagreed,r=void 0===l.eu_cookie_compliance.cookie_value_agreed_show_thank_you||""===l.eu_cookie_compliance.cookie_value_agreed_show_thank_you?"1":l.eu_cookie_compliance.cookie_value_agreed_show_thank_you,s=void 0===l.eu_cookie_compliance.cookie_value_agreed||""===l.eu_cookie_compliance.cookie_value_agreed?"2":l.eu_cookie_compliance.cookie_value_agreed;function m(e,o,i){var c="",n=(void 0!==i.expires&&("number"==typeof i.expires&&(n=new Date,i.expires=n.setTime(n.getTime()+24*i.expires*60*60*1e3)),c="; expires="+i.expires.toUTCString()),void 0===i.path?"/":i.path),a="";void 0!==i.domain&&(a="; domain="+i.domain),document.cookie=e+"="+(o||"")+c+"; path="+n+a+"; SameSite=Strict"}function a(e){var o=document.cookie.split(";");if(void 0===e)return o;for(var i=e+"=",c=0;c<o.length;c++){for(var n=o[c];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(i))return n.substring(i.length,n.length)}return null}function k(e){document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}u.behaviors.euCookieCompliancePopup={attach:function(e){if(void 0!==l.eu_cookie_compliance){const i=document.querySelector(l.eu_cookie_compliance.containing_element);var o;i.getAttribute("data-eu-cookie-compliance-once")||(i.setAttribute("data-eu-cookie-compliance-once","true"),g=d.getCurrentStatus(),h=d.getAcceptedCategories(),l.eu_cookie_compliance.popup_eu_only_js?u.eu_cookie_compliance.showBanner()&&(o=l.path.baseUrl+l.path.pathPrefix+"eu-cookie-compliance-check",_.getJSON(o,{},function(e){e.in_eu?u.eu_cookie_compliance.execute():(u.eu_cookie_compliance.setStatus(s),l.eu_cookie_compliance.geoip_match=!1,c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),"categories"===l.eu_cookie_compliance.method&&(e=l.eu_cookie_compliance.cookie_categories,u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e)))})):l.eu_cookie_compliance.hide_the_banner||u.eu_cookie_compliance.execute(),_(i).addClass("eu-cookie-compliance-status-"+u.eu_cookie_compliance.getCurrentStatus()))}}},u.eu_cookie_compliance=u.eu_cookie_compliance||function(){(u.eu_cookie_compliance.queue=u.eu_cookie_compliance.queue||[]).push(arguments)},u.eu_cookie_compliance.a=+new Date;var d=u.eu_cookie_compliance,h=[],g=null,c=(d.updateSelectedCategories=function(e){h=e},d.updateCurrentStatus=function(e){g=e},u.eu_cookie_compliance.execute=function(){try{var e,o,i;l.eu_cookie_compliance.popup_enabled&&u.eu_cookie_compliance.cookiesEnabled()&&l.eu_cookie_compliance.modules_allow_popup&&(g=u.eu_cookie_compliance.getCurrentStatus(),void 0===u.eu_cookie_compliance.getVersion()&&u.eu_cookie_compliance.setVersion("unknown"),!0===l.eu_cookie_compliance.popup_eu_only&&!0!==l.eu_cookie_compliance.geoip_match||(e=u.eu_cookie_compliance.getVersion()!==l.eu_cookie_compliance.cookie_policy_version,o=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name,i=!l.eu_cookie_compliance.open_by_default||null!==g&&!e||"null"===a(o)&&l.eu_cookie_compliance.settings_tab_enabled,g!==p||!l.eu_cookie_compliance.settings_tab_enabled||"opt_in"!==l.eu_cookie_compliance.method&&"categories"!==l.eu_cookie_compliance.method?g===p&&"default"===l.eu_cookie_compliance.method||null===g||g!==p&&l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup||g!==p&&e?!l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.disagree_do_not_show_popup&&null!==g||(window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.mobile_popup_html_info,i):u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_info,i),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener()):g===r&&l.eu_cookie_compliance.popup_agreed_enabled?(u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_agreed),u.eu_cookie_compliance.attachHideEvents()):g===s&&l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&(u.eu_cookie_compliance.createWithdrawBanner(l.eu_cookie_compliance.withdraw_markup),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener()):(u.eu_cookie_compliance.createPopup(l.eu_cookie_compliance.popup_html_info,null!==g),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner),u.eu_cookie_compliance.attachAgreeEvents())))}catch(e){}},u.eu_cookie_compliance.initPopup=function(){u.eu_cookie_compliance.attachAgreeEvents(),"categories"===l.eu_cookie_compliance.method&&(u.eu_cookie_compliance.setPreferenceCheckboxes(h),u.eu_cookie_compliance.attachSavePreferencesEvents()),l.eu_cookie_compliance.withdraw_enabled&&(u.eu_cookie_compliance.attachWithdrawEvents(),g!==r&&g!==s||(_(".eu-cookie-withdraw-button").removeClass("visually-hidden"),_(".eu-cookie-compliance-reject-button").addClass("visually-hidden")))},u.eu_cookie_compliance.positionTab=function(){if(l.eu_cookie_compliance.popup_position){let e=_(".eu-cookie-withdraw-tab").outerHeight();_("#sliding-popup").length&&(e+=_("#sliding-popup").outerHeight()),_(".eu-cookie-withdraw-wrapper").length?_(".eu-cookie-withdraw-tab").css("margin-top","0"):_(".eu-cookie-withdraw-tab").css("margin-top",e+"px")}},u.eu_cookie_compliance.createWithdrawBanner=function(e){var o=_("<div></div>").html(e),e=_(".eu-cookie-withdraw-banner",o),i=(o.attr({id:"sliding-popup",role:"alertdialog","aria-describedby":"popup-text","aria-label":u.t("Cookie compliance banner")}),o.addClass("eu-cookie-withdraw-wrapper"),o.trigger("eu_cookie_compliance_popup_close"),l.eu_cookie_compliance.popup_use_bare_css||l.eu_cookie_compliance.popup_use_olivero_css||e.height(l.eu_cookie_compliance.popup_height).width(l.eu_cookie_compliance.popup_width),o.hide(),0);l.eu_cookie_compliance.popup_position?(o.prependTo(l.eu_cookie_compliance.containing_element),i=parseInt(o.outerHeight()),o.show().addClass("sliding-popup-top").addClass("clearfix").css({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(i)}),setTimeout(function(){var e=o.outerHeight();o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"})}.bind(o),0)):(l.eu_cookie_compliance.better_support_for_screen_readers?o.prependTo(l.eu_cookie_compliance.containing_element):o.appendTo(l.eu_cookie_compliance.containing_element),i=o.outerHeight(),o.show().addClass("sliding-popup-bottom").css({bottom:-1*i}),setTimeout(function(){var e=o.outerHeight();o.animate({bottom:-1*e},l.eu_cookie_compliance.popup_delay,null)}.bind(o),0)),_("body").removeClass("eu-cookie-compliance-popup-open"),e.attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)},u.eu_cookie_compliance.getBannerTopPosition=function(e){let o;return l.eu_cookie_compliance.fixed_top_position?(o=0,_(".toolbar-tray-horizontal.is-active").length&&(o+=parseInt(_(".toolbar-tray-horizontal.is-active").css("height"))),_(".toolbar-bar").length&&!_("#gin-toolbar-bar").length&&(o+=parseInt(_(".toolbar-bar").css("height"))),o+"px"):0},u.eu_cookie_compliance.getBannerTopHiddenPosition=function(e){let o=0;return l.eu_cookie_compliance.fixed_top_position?o=-e:(_(".toolbar-tray-horizontal.is-active").length&&(o=-parseInt(_(".toolbar-tray-horizontal.is-active").css("height"))),_(".toolbar-bar").length&&!_("#gin-toolbar-bar").length&&(o-=parseInt(_(".toolbar-bar").css("height")))),o+"px"},u.eu_cookie_compliance.getBannerBottomHiddenPosition=function(){return-_("#sliding-popup").outerHeight()+"px"},u.eu_cookie_compliance.toggleWithdrawBanner=function(){var e,o,i,c=_("#sliding-popup"),n=parseInt(c.outerHeight()),a=c.find(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").is(":visible");a&&(e=parseInt(c.css("top")),o=parseInt(_(l.eu_cookie_compliance.containing_element).css("padding-top")),i=parseInt(_(l.eu_cookie_compliance.containing_element).css("margin-top")),a=l.eu_cookie_compliance.popup_position?l.eu_cookie_compliance.fixed_top_position?!(e===-n):!(e===-(o+i+n)):0===parseInt(c.css("bottom"))),l.eu_cookie_compliance.popup_position?a?(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-n+"px"},l.eu_cookie_compliance.popup_delay),c.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(n)},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_close")):(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":"0px"},l.eu_cookie_compliance.popup_delay),c.find(".eu-cookie-compliance-banner").show(),c.animate({top:u.eu_cookie_compliance.getBannerTopPosition(n)},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_open")):a?c.animate({bottom:-1*n},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_close"):(c.find(".eu-cookie-compliance-banner").show(),c.animate({bottom:0},l.eu_cookie_compliance.popup_delay).trigger("eu_cookie_compliance_popup_open")),a?(_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(_("body").addClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!1).find("a, button, input").attr("tabindex",0))},u.eu_cookie_compliance.resizeListener=function(){var e,o,i,c=_("#sliding-popup"),n=(e=function(){var e=c.outerHeight();l.eu_cookie_compliance.popup_position?(parseFloat(c.css("top"))<0&&(_("body").hasClass("eu-cookie-compliance-popup-open")?(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":"0px"}),c.css("top",u.eu_cookie_compliance.getBannerTopPosition(e))):(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":-e+"px"}),c.css("top",u.eu_cookie_compliance.getBannerTopHiddenPosition(e)))),u.eu_cookie_compliance.positionTab()):0!==parseFloat(c.css("bottom"))&&c.css("bottom",-1*e),u.eu_cookie_compliance.positionTab()},o=50,function(){clearTimeout(i),i=setTimeout(function(){clearTimeout(i),e()},o)});setTimeout(function(){n()}),window.addEventListener("resize",n)},u.eu_cookie_compliance.createPopup=function(e,o){var i=_("<div></div>").html(e),e=(i.attr({id:"sliding-popup",role:"alertdialog","aria-describedby":"popup-text","aria-label":u.t("Cookie compliance banner")}),l.eu_cookie_compliance.popup_use_bare_css||l.eu_cookie_compliance.popup_use_olivero_css||i.height(l.eu_cookie_compliance.popup_height).width(l.eu_cookie_compliance.popup_width),i.hide(),0);l.eu_cookie_compliance.popup_position?(i.prependTo(l.eu_cookie_compliance.containing_element),e=i.outerHeight(),i.addClass("sliding-popup-top clearfix").css({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)}),!0!==o?(i.show(),i.animate({top:u.eu_cookie_compliance.getBannerTopPosition(e)},l.eu_cookie_compliance.popup_delay,null,function(){i.trigger("eu_cookie_compliance_popup_open"),u.eu_cookie_compliance.positionTab()})):(l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":-e+"px"}),setTimeout(function(){i.show(),u.eu_cookie_compliance.positionTab()},0))):(l.eu_cookie_compliance.better_support_for_screen_readers?i.prependTo(l.eu_cookie_compliance.containing_element):i.appendTo(l.eu_cookie_compliance.containing_element),e=i.outerHeight(),i.show().addClass("sliding-popup-bottom").css({bottom:-1*e}),!0!==o&&i.animate({bottom:0},l.eu_cookie_compliance.popup_delay,null,function(){i.trigger("eu_cookie_compliance_popup_open")})),!0!==o?(_("body").addClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!1).find("a, button, input").attr("tabindex",0)):(_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1))},u.eu_cookie_compliance.attachAgreeEvents=function(){var e,o,i=l.eu_cookie_compliance.popup_clicking_confirmation,c=l.eu_cookie_compliance.popup_scrolling_confirmation;"categories"===l.eu_cookie_compliance.method&&l.eu_cookie_compliance.enable_save_preferences_button?_(".agree-button").click(u.eu_cookie_compliance.acceptAllAction):_(".agree-button").click(u.eu_cookie_compliance.acceptAction),_(".decline-button").click(u.eu_cookie_compliance.declineAction),_(".eu-cookie-compliance-close-button").click(u.eu_cookie_compliance.closeAction),_(".eu-cookie-compliance-reject-button").click(u.eu_cookie_compliance.rejectAllAction),i&&_("a, input[type=submit], button[type=submit]").not(".popup-content *").bind("click.euCookieCompliance",u.eu_cookie_compliance.acceptAction),c&&(e=!1,o=function(){e?(u.eu_cookie_compliance.acceptAction(),_(window).off("scroll",o)):e=!0},_(window).bind("scroll",o)),_(".find-more-button").not(".find-more-button-processed").addClass("find-more-button-processed").click(u.eu_cookie_compliance.moreInfoAction)},u.eu_cookie_compliance.closeAction=function(){switch(l.eu_cookie_compliance.close_button_action){case"close_banner":u.eu_cookie_compliance.toggleWithdrawBanner();break;case"save_preferences":u.eu_cookie_compliance.savePreferencesAction();break;case"reject_all_cookies":u.eu_cookie_compliance.rejectAllAction();break;case"accept_all_cookies":u.eu_cookie_compliance.acceptAllAction()}},u.eu_cookie_compliance.attachSavePreferencesEvents=function(){_(".eu-cookie-compliance-save-preferences-button").click(u.eu_cookie_compliance.savePreferencesAction)},u.eu_
2651cookie_compliance.attachHideEvents=function(){var e=l.eu_cookie_compliance.popup_hide_agreed,o=l.eu_cookie_compliance.popup_clicking_confirmation;_(".hide-popup-button").click(function(){u.eu_cookie_compliance.changeStatus(s)}),o&&_("a, input[type=submit], button[type=submit]").unbind("click.euCookieCompliance"),e&&_("a, input[type=submit], button[type=submit]").bind("click.euCookieComplianceHideAgreed",function(){u.eu_cookie_compliance.changeStatus(s)}),_(".find-more-button").not(".find-more-button-processed").addClass("find-more-button-processed").click(u.eu_cookie_compliance.moreInfoAction)},u.eu_cookie_compliance.attachWithdrawEvents=function(){_(".eu-cookie-withdraw-button").click(u.eu_cookie_compliance.withdrawAction),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)},u.eu_cookie_compliance.acceptAction=function(){var e=l.eu_cookie_compliance.popup_agreed_enabled,o=r;e||(u.eu_cookie_compliance.setStatus(r),o=s),c||"function"!=typeof euCookieComplianceLoadScripts||euCookieComplianceLoadScripts(),void 0!==t&&clearInterval(t),"categories"===l.eu_cookie_compliance.method&&(e=_("#eu-cookie-compliance-categories input:checkbox:checked").map(function(){return _(this).val()}).get(),u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e),e.length||(o=p)),u.eu_cookie_compliance.changeStatus(o),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup&&(u.eu_cookie_compliance.attachWithdrawEvents(),g!==r&&g!==s||(_(".eu-cookie-withdraw-button").removeClass("visually-hidden"),_(".eu-cookie-compliance-reject-button").addClass("visually-hidden")))},u.eu_cookie_compliance.acceptAllAction=function(){var e=l.eu_cookie_compliance.cookie_categories;u.eu_cookie_compliance.setPreferenceCheckboxes(e),u.eu_cookie_compliance.acceptAction()},u.eu_cookie_compliance.rejectAllAction=function(){u.eu_cookie_compliance.setStatus(p),u.eu_cookie_compliance.setPreferenceCheckboxes([]),u.eu_cookie_compliance.acceptAction()},u.eu_cookie_compliance.savePreferencesAction=function(){var e=_("#eu-cookie-compliance-categories input:checkbox:checked").map(function(){return _(this).val()}).get(),o=l.eu_cookie_compliance.popup_agreed_enabled,i=r;o||(u.eu_cookie_compliance.setStatus(r),i=s),u.eu_cookie_compliance.setAcceptedCategories(e),u.eu_cookie_compliance.loadCategoryScripts(e),e.length||(i=p),u.eu_cookie_compliance.changeStatus(i)},u.eu_cookie_compliance.loadCategoryScripts=function(e){for(var o in e)!0!==i[e[o]]&&"function"==typeof euCookieComplianceLoadScripts&&(euCookieComplianceLoadScripts(e[o]),i[e[o]]=!0)},u.eu_cookie_compliance.declineAction=function(){parseInt(l.eu_cookie_compliance.set_cookie_session_zero_on_disagree)&&(l.eu_cookie_compliance.cookie_session=1),u.eu_cookie_compliance.setStatus(p);var e,o=_("#sliding-popup");o.hasClass("sliding-popup-top")?(e=o.outerHeight(),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),l.eu_cookie_compliance.settings_tab_enabled?(o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null).trigger("eu_cookie_compliance_popup_close"),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)):o.animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,null,function(){l.eu_cookie_compliance.fixed_top_position||_("body").css({"margin-top":0}),o.hide()}).trigger("eu_cookie_compliance_popup_close")):l.eu_cookie_compliance.settings_tab_enabled?(o.animate({bottom:-1*o.outerHeight()},l.eu_cookie_compliance.popup_delay,null).trigger("eu_cookie_compliance_popup_close"),_(".eu-cookie-withdraw-tab").click(u.eu_cookie_compliance.toggleWithdrawBanner)):o.animate({bottom:-1*o.outerHeight()},l.eu_cookie_compliance.popup_delay,null,function(){o.hide()}).trigger("eu_cookie_compliance_popup_close"),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)},u.eu_cookie_compliance.withdrawAction=function(){parseInt(l.eu_cookie_compliance.set_cookie_session_zero_on_disagree)&&(l.eu_cookie_compliance.cookie_session=1),u.eu_cookie_compliance.setStatus(null),u.eu_cookie_compliance.setAcceptedCategories([]),location.reload()},u.eu_cookie_compliance.moreInfoAction=function(){l.eu_cookie_compliance.disagree_do_not_show_popup?(u.eu_cookie_compliance.setStatus(p),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?_("#sliding-popup .eu-cookie-compliance-banner").trigger("eu_cookie_compliance_popup_close").hide():_("#sliding-popup").trigger("eu_cookie_compliance_popup_close").remove(),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):l.eu_cookie_compliance.popup_link_new_window?window.open(l.eu_cookie_compliance.popup_link):window.location.href=l.eu_cookie_compliance.popup_link},u.eu_cookie_compliance.getCookieStatus=function(){var e=a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name);return e=void 0!==e&&"null"!==e?e:null},u.eu_cookie_compliance.getCurrentStatus=function(){var e=new o,e=(d.handleEvent("preStatusLoad",e),g=u.eu_cookie_compliance.getCookieStatus(),new n);return d.handleEvent("postStatusLoad",e),g},u.eu_cookie_compliance.setPreferenceCheckboxes=function(e){for(var o in null===u.eu_cookie_compliance.getCookieStatus()&&u.eu_cookie_compliance.getCookieStatus()!==p||_("#eu-cookie-compliance-categories input:checkbox").not(":disabled").prop("checked",!1),e){o=document.getElementById("cookie-category-"+e[o]);null!==o&&(o.checked=!0)}},u.eu_cookie_compliance.getAcceptedCategories=function(){var e=new C;d.handleEvent("prePreferencesLoad",e);var o,e=a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories");for(o in h=null!=e?(-1!==e.indexOf("%")&&(e=decodeURI(e).replaceAll(/%2C/g,",")),JSON.parse(e)):[],l.eu_cookie_compliance.cookie_categories_details){var i=l.eu_cookie_compliance.cookie_categories_details[o];"required"===i.checkbox_default_state&&-1===_.inArray(i.id,h)&&h.push(i.id)}e=new S;return d.handleEvent("postPreferencesLoad",e),h},u.eu_cookie_compliance.changeStatus=function(o){var e,i=l.eu_cookie_compliance.reload_page,c=g;if(g!==parseInt(o)){if(l.eu_cookie_compliance.popup_position){let e=_("#sliding-popup").outerHeight();l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").animate({top:u.eu_cookie_compliance.getBannerTopHiddenPosition(e)},l.eu_cookie_compliance.popup_delay,function(){o!==r||null!==c||i?c===r&&(l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?(_("#sliding-popup").hide(),window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.mobile_popup_html_info):_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_info),e=_("#sliding-popup").outerHeight(),l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":-e+"px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").css("top",u.eu_cookie_compliance.getBannerTopHiddenPosition(e)),_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close"),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener(),_("#sliding-popup").show()):(_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close").remove(),_("body").css({"margin-top":"0px"})),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(l.eu_cookie_compliance.fixed_top_position||_("body").animate({"margin-top":"0px"},l.eu_cookie_compliance.popup_delay),_(".sliding-popup-top").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_agreed).animate({top:u.eu_cookie_compliance.getBannerTopPosition(e)},l.eu_cookie_compliance.popup_delay),u.eu_cookie_compliance.attachHideEvents()),l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&u.eu_cookie_compliance.showWithdrawBanner(o)})}else _(".sliding-popup-bottom").animate({bottom:-1*_("#sliding-popup").outerHeight()},l.eu_cookie_compliance.popup_delay,function(){o!==r||null!==c||i?c===r&&(_("#sliding-popup").css("display","none"),l.eu_cookie_compliance.withdraw_enabled&&l.eu_cookie_compliance.withdraw_button_on_info_popup?(window.matchMedia("(max-width: "+l.eu_cookie_compliance.mobile_breakpoint+"px)").matches&&l.eu_cookie_compliance.use_mobile_message?_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.mobile_popup_html_info):_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_info),_(".sliding-popup-bottom").css("bottom",u.eu_cookie_compliance.getBannerBottomHiddenPosition()),_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close"),u.eu_cookie_compliance.initPopup(),u.eu_cookie_compliance.resizeListener(),_("#sliding-popup").css("display","block")):_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").trigger("eu_cookie_compliance_popup_close").remove(),_("body").removeClass("eu-cookie-compliance-popup-open"),_(".eu-cookie-compliance-banner, .eu-cookie-withdraw-banner").attr("aria-hidden",!0).find("a, button, input").attr("tabindex",-1)):(_(".sliding-popup-bottom").not(".eu-cookie-withdraw-wrapper").html(l.eu_cookie_compliance.popup_html_agreed).animate({bottom:0},l.eu_cookie_compliance.popup_delay),u.eu_cookie_compliance.attachHideEvents()),l.eu_cookie_compliance.withdraw_enabled&&!l.eu_cookie_compliance.withdraw_button_on_info_popup&&u.eu_cookie_compliance.showWithdrawBanner(o)});if(l.eu_cookie_compliance.reload_page)if(0!==(e=l.eu_cookie_compliance.reload_routes_list).length){for(var n=l.path.currentPath,a=!1,t=0;!a&&t<e.length;t++)var p=new RegExp(e[t],"g"),a=null!==n.match(p);(a&&!l.eu_cookie_compliance.reload_options||!a&&l.eu_cookie_compliance.reload_options)&&location.reload()}else location.reload();u.eu_cookie_compliance.setStatus(o)}},u.eu_cookie_compliance.showWithdrawBanner=function(e){e===s&&l.eu_cookie_compliance.withdraw_enabled&&(l.eu_cookie_compliance.withdraw_button_on_info_popup||(u.eu_cookie_compliance.createWithdrawBanner(l.eu_cookie_compliance.withdraw_markup),u.eu_cookie_compliance.resizeListener()),u.eu_cookie_compliance.attachWithdrawEvents(),l.eu_cookie_compliance.popup_position&&u.eu_cookie_compliance.positionTab())},u.eu_cookie_compliance.setStatus=function(e){var o=new b,o=(d.handleEvent("preStatusSave",o),new Date),i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name;1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a)));parseInt(l.eu_cookie_compliance.cookie_session)?m(n,e,{path:c,domain:i,sameSite:"strict"}):(a=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+a),m(n,e,{expires:o,path:c,domain:i,sameSite:"strict"}));var a="eu-cookie-compliance-status-"+g,n="eu-cookie-compliance-status-"+e,c=(_("."+a).removeClass(a).addClass(n),g=e,_(document).trigger("eu_cookie_compliance.changeStatus",[e]),u.eu_cookie_compliance.setVersion(),l.eu_cookie_compliance.store_consent&&(e===r&&l.eu_cookie_compliance.popup_agreed_enabled||e===s&&!l.eu_cookie_compliance.popup_agreed_enabled)&&(o=l.path.baseUrl+l.path.pathPrefix+"eu-cookie-compliance/store_consent/banner",_.post(o,{},function(e){})),new v);d.handleEvent("postStatusSave",c),e===p&&"opt_out"===l.eu_cookie_compliance.method&&(t=setInterval(u.eu_cookie_compliance.BlockCookies,5e3))},u.eu_cookie_compliance.setAcceptedCategories=function(e){var o=new P,o=(d.handleEvent("prePreferencesSave",o),new Date),i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories",a=(1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a))),JSON.stringify(e)),t=(parseInt(l.eu_cookie_compliance.cookie_session)?m(n,a,{path:c,domain:i,sameSite:"strict"}):(t=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+t),m(n,a,{expires:o,path:c,domain:i,sameSite:"strict"}
2651)),h=e,_(document).trigger("eu_cookie_compliance.changePreferences",[e]),new B);d.handleEvent("postPreferencesSave",t)},u.eu_cookie_compliance.hasAgreed=function(e){var o=g===r||g===s;return o=void 0!==e&&o&&"categories"===l.eu_cookie_compliance.method?u.eu_cookie_compliance.hasAgreedWithCategory(e):o},u.eu_cookie_compliance.hasAgreedWithCategory=function(e){return-1!==_.inArray(e,h)},u.eu_cookie_compliance.showBanner=function(){var e=!1;return g===p&&"default"===l.eu_cookie_compliance.method||null===g?l.eu_cookie_compliance.disagree_do_not_show_popup&&null!==g||(e=!0):(g===r&&l.eu_cookie_compliance.popup_agreed_enabled||g===s&&l.eu_cookie_compliance.withdraw_enabled)&&(e=!0),e},u.eu_cookie_compliance.cookiesEnabled=function(){var e=navigator.cookieEnabled;return void 0!==navigator.cookieEnabled||e||(date.setDate(date.getDate()+100),m("testcookie","testcookie",{expires:date,sameSite:"strict"}),e=-1!==a("testcookie").indexOf("testcookie")),e},u.eu_cookie_compliance.cookieMatches=function(e,o){if(e===o)return!0;if(o.indexOf("*")<0)return!1;try{return new RegExp("^"+o.replace(/\./g,"\\.").replace(/\*/g,".+")+"$","g").test(e)}catch(e){return!1}},u.eu_cookie_compliance.isAllowed=function(e){if(0===e.indexOf("SESS")||0===e.indexOf("SSESS"))return!0;var o,i=l.eu_cookie_compliance.allowed_cookies.split(/\r\n|\n|\r/g);for(o in i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed":l.eu_cookie_compliance.cookie_name),i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-categories":l.eu_cookie_compliance.cookie_name+"-categories"),i.push(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version"),i)if("string"==typeof i[o]){if(u.eu_cookie_compliance.cookieMatches(e,i[o]))return!0;if("categories"===l.eu_cookie_compliance.method){var c=i[o].indexOf(":");if(-1!==c){var n=i[o].substr(0,c),c=i[o].substr(c+1);if(u.eu_cookie_compliance.cookieMatches(e,c)&&u.eu_cookie_compliance.hasAgreedWithCategory(n))return!0}}}return!1},u.eu_cookie_compliance.getVersion=function(){return!!u.eu_cookie_compliance.hasAgreed()&&a(void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version")},!(u.eu_cookie_compliance.setVersion=function(e){if(!u.eu_cookie_compliance.hasAgreed())return!1;var o=new Date,i=l.eu_cookie_compliance.domain||"",c=l.eu_cookie_compliance.domain_all_sites?"/":l.path.baseUrl,n=void 0===l.eu_cookie_compliance.cookie_name||""===l.eu_cookie_compliance.cookie_name?"cookie-agreed-version":l.eu_cookie_compliance.cookie_name+"-version",a=(1<c.length&&(a=c.length-1,c.lastIndexOf("/")===a&&(c=c.substring(0,a))),void 0!==e?e:l.eu_cookie_compliance.cookie_policy_version);parseInt(l.eu_cookie_compliance.cookie_session)?m(n,a,{path:c,domain:i,sameSite:"strict"}):(e=parseInt(l.eu_cookie_compliance.cookie_lifetime),o.setDate(o.getDate()+e),m(n,a,{expires:o,path:c,domain:i,sameSite:"strict"}))})),i={},o=(_(function(){void 0!==l.eu_cookie_compliance&&(u.eu_cookie_compliance.hasAgreed()||null===g&&"opt_in"!==l.eu_cookie_compliance.method&&"categories"!==l.eu_cookie_compliance.method)&&("function"==typeof euCookieComplianceLoadScripts&&euCookieComplianceLoadScripts(),c=!0,"categories"===l.eu_cookie_compliance.method&&u.eu_cookie_compliance.loadCategoryScripts(h))}),u.eu_cookie_compliance.BlockCookies=function(){var e,o=u.eu_cookie_compliance.getCookieStatus();if(o!==r&&o!==s||"categories"===l.eu_cookie_compliance.method||void 0===t)for(e in a()){var i,c=window.location.hostname,n=!1;if(!u.eu_cookie_compliance.isAllowed(e)){for(;!n&&""!==c;)k(e),(n=!a(e))||(k(e),n=!a(e)),c=-1===(i=c.indexOf("."))?"":c.substring(i+1);n||(document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;")}}else clearInterval(t)},void 0===l.eu_cookie_compliance||!l.eu_cookie_compliance.automatic_cookies_removal||("opt_in"!==l.eu_cookie_compliance.method||null!==g&&u.eu_cookie_compliance.hasAgreed())&&("opt_out"!==l.eu_cookie_compliance.method||u.eu_cookie_compliance.hasAgreed()||null===g)&&"categories"!==l.eu_cookie_compliance.method||(t=setInterval(u.eu_cookie_compliance.BlockCookies,5e3)),d.handleEvent=function(e,o){for(var i=function(e){var o=[];if(void 0!==u.eu_cookie_compliance&&void 0!==u.eu_cookie_compliance.queue&&u.eu_cookie_compliance.queue.length)for(var i,c,n=0;n<u.eu_cookie_compliance.queue.length;n++)u.eu_cookie_compliance.queue[n].length&&(i=(c=u.eu_cookie_compliance.queue[n])[0],c=c[1],"string"==typeof i&&"function"==typeof c&&i===e&&o.push(c));return o}(e),c=0;c<i.length;c++)void 0!==i[c]&&(o.subscribe(i[c]),o.fire({currentStatus:g,currentCategories:h}),o.unsubscribe(i[c]))},(T=e.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;
2651this.handlers.forEach(function(e){e.call(i,o)})},e);function e(){this.handlers=[]}(T=f.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var n=f;function f(){this.handlers=[]}(T=w.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var b=w;function w(){this.handlers=[]}(T=y.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var v=y;function y(){this.handlers=[]}(T=x.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var C=x;function x(){this.handlers=[]}(T=A.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var S=A;function A(){this.handlers=[]}(T=E.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var P=E;function E(){this.handlers=[]}(T=H.prototype).subscribe=function(e){this.handlers.push(e)},T.unsubscribe=function(o){this.handlers=this.handlers.filter(function(e){if(e!==o)return e})},T.fire=function(o,e){var i=e||window;this.handlers.forEach(function(e){e.call(i,o)})};var T,B=H;function H(){this.handlers=[]}}(jQuery,Drupal,drupalSettings,window.Cookies);;
2652((Drupal,drupalSettings)=>{Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=(context,drupalSettings)=>{if(typeof drupalSettings.data==='undefined'||!drupalSettings.data.hasOwnProperty('extlink'))return;let extIconPlacement='append';if(drupalSettings.data.extlink.extIconPlacement&&drupalSettings.data.extlink.extIconPlacement!=='0')extIconPlacement=drupalSettings.data.extlink.extIconPlacement;const pattern=/^(([^:]+?\.)*)([^.:]+)((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;const host=window.location.host.replace(pattern,'$2$3$6');const subdomain=window.location.host.replace(host,'');let subdomains;if(drupalSettings.data.extlink.extSubdomains)subdomains='([^/]*\\.)?';else if(subdomain==='www.'||subdomain==='')subdomains='(www\\.)?';else subdomains=subdomain.replace('.','\\.');let whitelistedDomains=false;if(drupalSettings.data.extlink.whitelistedDomains){whitelistedDomains=[];for(let i=0;i<drupalSettings.data.extlink.whitelistedDomains.length;i++)whitelistedDomains.push(new RegExp(`^https?:\\/\\/${drupalSettings.data.extlink.whitelistedDomains[i].replace(/(\r\n|\n|\r)/gm,'')}.*$`,'i'));}const internalLink=new RegExp(`^https?://([^@]*@)?${subdomains}${host}`,'i');let extInclude=false;if(drupalSettings.data.extlink.extInclude)extInclude=new RegExp(drupalSettings.data.extlink.extInclude.replace(/\\/,'\\'),'i');let extExclude=false;if(drupalSettings.data.extlink.extExclude)extExclude=new RegExp(drupalSettings.data.extlink.extExclude.replace(/\\/,'\\'),'i');let extExcludeNoreferrer=false;if(drupalSettings.data.extlink.extExcludeNoreferrer)extExcludeNoreferrer=new RegExp(drupalSettings.data.extlink.extExcludeNoreferrer.replace(/\\/,'\\'),'i');let extCssExclude=false;if(drupalSettings.data.extlink.extCssExclude)extCssExclude=drupalSettings.data.extlink.extCssExclude;let extCssInclude=false;if(drupalSettings.data.extlink.extCssInclude)extCssInclude=drupalSettings.data.extlink.extCssInclude;let extCssExplicit=false;if(drupalSettings.data.extlink.extCssExplicit)extCssExplicit=drupalSettings.data.extlink.extCssExplicit;const externalLinks=[];const mailtoLinks=[];const telLinks=[];const extlinks=context.querySelectorAll('a:not([data-extlink]), area:not([data-extlink])');extlinks.forEach((el)=>{try{let url='';if(typeof el.href==='string')url=el.href.toLowerCase();else{if(typeof el.href==='object')url=el.href.baseVal;}
2652const isExtCssIncluded=extCssInclude&&(el.matches(extCssInclude)||el.closest(extCssInclude));if(url.indexOf('http')===0&&((!internalLink.test(url)&&!(extExclude&&extExclude.test(url)))||(extInclude&&extInclude.test(url))||isExtCssIncluded)&&!(extCssExclude&&el.matches(extCssExclude))&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit))){let match=false;if(!isExtCssIncluded&&whitelistedDomains){for(let i=0;i<whitelistedDomains.length;i++)if(whitelistedDomains[i].test(url)){match=true;break;}}if(!match)externalLinks.push(el);}else{if(el.tagName!=='AREA'&&!(extCssExclude&&el.closest(extCssExclude))&&!(extCssExplicit&&!el.closest(extCssExplicit)))if(url.indexOf('mailto:')===0)mailtoLinks.push(el);else{if(url.indexOf('tel:')===0)telLinks.push(el);}}}catch(error){return false;}});const hasExtIcon=drupalSettings.data.extlink.extClass!=='0'&&drupalSettings.data.extlink.extClass!=='';const hasAdditionalExtClasses=drupalSettings.data.extlink.extAdditionalLinkClasses!=='';Drupal.extlink.applyClassAndSpan(externalLinks,'ext',hasExtIcon?extIconPlacement:null);if(hasAdditionalExtClasses)Drupal.extlink.applyClassAndSpan(externalLinks,drupalSettings.data.extlink.extAdditionalLinkClasses,null);const hasMailtoClass=drupalSettings.data.extlink.mailtoClass!=='0'&&drupalSettings.data.extlink.mailtoClass!=='';const hasAdditionalMailtoClasses=drupalSettings.data.extlink.extAdditionalMailtoClasses!=='';if(hasMailtoClass)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.mailtoClass,extIconPlacement);if(hasAdditionalMailtoClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalMailtoClasses,null);const hasTelClass=drupalSettings.data.extlink.telClass!=='0'&&drupalSettings.data.extlink.telClass!=='';const hasAdditionalTelClasses=drupalSettings.data.extlink.extAdditionalTelClasses!=='0'&&drupalSettings.data.extlink.extAdditionalTelClasses!=='';if(hasTelClass)Drupal.extlink.applyClassAndSpan(telLinks,drupalSettings.data.extlink.telClass,extIconPlacement);if(hasAdditionalTelClasses)Drupal.extlink.applyClassAndSpan(mailtoLinks,drupalSettings.data.extlink.extAdditionalTelClasses,null);if(drupalSettings.data.extlink.extTarget){externalLinks.forEach((link,i)=>{if(!(drupalSettings.data.extlink.extTargetNoOverride&&link.matches('a[target]')))externalLinks[i].setAttribute('target','_blank');});externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noopener');return;}if(val.indexOf('noopener')>-1)if(val.indexOf('noopener')===-1)externalLinks[i].setAttribute('rel',`${val} noopener`);else{}else externalLinks[i].setAttribute('rel',`${val} noopener`);});}if(drupalSettings.data.extlink.extNofollow)externalLinks.forEach((link,i)=>{const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','nofollow');return;}let target='nofollow';if(drupalSettings.data.extlink.extFollowNoOverride)target='follow';if(val.indexOf(target)===-1)externalLinks[i].setAttribute('rel',`${val} nofollow`);});if(drupalSettings.data.extlink.extTitleNoOverride===false)externalLinks.forEach((link,i)=>{if(drupalSettings.data.extlink.extTargetNoOverride&&link.getAttribute('target')!=='_blank')return;const oldTitle=link.getAttribute('title');let newTitle=drupalSettings.data.extlink.extTarget?drupalSettings.data.extlink.extTargetAppendNewWindowLabel:'';if(newTitle){if(oldTitle!==null){if(Drupal.extlink.hasNewWindowText(oldTitle))return;newTitle=newTitle?Drupal.extlink.combineLabels(oldTitle,newTitle):oldTitle;}externalLinks[i].setAttribute('title',newTitle);}});if(drupalSettings.data.extlink.extNoreferrer)externalLinks.forEach((link,i)=>{if(drupalSettings.data.extlink.extExcludeNoreferrer&&extExcludeNoreferrer.test(link.getAttribute('href')))return;const val=link.getAttribute('rel');if(val===null||typeof val==='undefined'){externalLinks[i].setAttribute('rel','noreferrer');return;}externalLinks[i].setAttribute('rel',`${val} noreferrer`);});Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||(()=>{if(drupalSettings.data.extlink.extAlert)return confirm(drupalSettings.data.extlink.extAlertText);});const _that=this;Drupal.extlink.handleClick=function(event){const shouldNavigate=Drupal.extlink.popupClickHandler.call(_that,event);if(typeof shouldNavigate!=='undefined'&&!shouldNavigate)event.preventDefault();};externalLinks.forEach((val,i)=>{externalLinks[i].removeEventListener('click',Drupal.extlink.handleClick);externalLinks[i].addEventListener('click',Drupal.extlink.handleClick);});};Drupal.extlink.hasNewWindowText=function(label){return label.toLowerCase().indexOf(Drupal.t('new window'))!==-1;};Drupal.extlink.combineLabels=function(labelA,labelB){labelA=labelA||'';labelB=labelB||'';const labelANoParens=labelA.trim().replace('(','').replace(')','');const labelBNoParens=labelB.trim().replace('(','').replace(')','');if(labelA===labelANoParens){if(labelB===labelBNoParens)return `${labelA}, ${labelB}`;return `${labelA} ${labelB}`;}if(labelB===labelBNoParens)return `${labelB} ${labelA}`;return `(${labelANoParens}, ${labelBNoParens})`;};Drupal.extlink.applyClassAndSpan=(links,className,iconPlacement)=>{let linksToProcess;if(drupalSettings.data.extlink.extImgClass)linksToProcess=links;else linksToProcess=links.filter((link)=>{return link.querySelector('img, svg')===null;});for(let i=0;i<linksToProcess.length;i++){if(className!=='0')linksToProcess[i].classList.add(className);if(className===drupalSettings.data.extlink.mailtoClass&&drupalSettings.data.extlink.extAdditionalMailtoClasse
2652s)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalMailtoClasses);else if(className===drupalSettings.data.extlink.telClass&&drupalSettings.data.extlink.extAdditionalTelClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalTelClasses);else{if(drupalSettings.data.extlink.extAdditionalLinkClasses)linksToProcess[i].classList.add(drupalSettings.data.extlink.extAdditionalLinkClasses);}linksToProcess[i].setAttribute('data-extlink','');if(iconPlacement){let link=linksToProcess[i];if(drupalSettings.data.extlink.extPreventOrphan&&iconPlacement==='append'){let lastTextNode=link.lastChild;let trailingWhitespace=null;let parentNode=link;while(lastTextNode)if(lastTextNode.lastChild){parentNode=lastTextNode;lastTextNode=lastTextNode.lastChild;}else if(lastTextNode.nodeName==='#text'&&parentNode.lastElementChild&&lastTextNode.textContent.trim().length===0){trailingWhitespace=lastTextNode;parentNode=parentNode.lastElementChild;lastTextNode=parentNode.lastChild;}else break;if(lastTextNode&&lastTextNode.nodeName==='#text'&&lastTextNode.textContent.length>0){const lastText=lastTextNode.textContent;const lastWordRegex=new RegExp(/\S+\s*$/,'g');const lastWord=lastText.match(lastWordRegex);if(lastWord!==null){const breakPreventer=document.createElement('span');breakPreventer.classList.add('extlink-nobreak');breakPreventer.textContent=lastWord[0];if(trailingWhitespace){trailingWhitespace.textContent='';breakPreventer.append(trailingWhitespace.textContent);}lastTextNode.textContent=lastText.substring(0,lastText.length-lastWord[0].length);lastTextNode.parentNode.append(breakPreventer);link=breakPreventer;}}}let iconElement;if(drupalSettings.data.extlink.extUseFontAwesome){iconElement=document.createElement('span');iconElement.setAttribute('class',`fa-${className} extlink`);if(className===drupalSettings.data.extlink.mailtoClass){if(drupalSettings.data.extlink.mailtoLabel)link.ariaLabel=drupalSettings.data.extlink.mailtoLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_mailto',drupalSettings,iconPlacement);}else if(className===drupalSettings.data.extlink.extClass){if(drupalSettings.data.extlink.extLabel)link.ariaLabel=drupalSettings.data.extlink.extLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_extlink',drupalSettings,iconPlacement);}else{if(className===drupalSettings.data.extlink.telClass){if(drupalSettings.data.extlink.telLabel)link.ariaLabel=drupalSettings.data.extlink.telLabel;iconElement.innerHTML=Drupal.theme('extlink_fa_tel',drupalSettings,iconPlacement);}}}else{iconElement=document.createElementNS('http://www.w3.org/2000/svg','svg');iconElement.setAttribute('focusable','false');iconElement.classList.add(className);iconElement.setAttribute('data-extlink-placement',iconPlacement);if(className===drupalSettings.data.extlink.mailtoClass)iconElement=Drupal.theme('extlink_mailto',iconElement,drupalSettings);else if(className===drupalSettings.data.extlink.extClass)iconElement=Drupal.theme('extlink_extlink',iconElement,drupalSettings);else{if(className===drupalSettings.data.extlink.telClass)iconElement=Drupal.theme('extlink_tel',iconElement,drupalSettings);}}iconElement.setAttribute('role','img');iconElement.setAttribute('aria-hidden',drupalSettings.data.extlink.extHideIcons);link[iconPlacement](iconElement);}}};Drupal.theme.extlink_fa_mailto=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaMailtoClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_extlink=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaLinkClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_fa_tel=function(drupalSettings,iconPlacement){return `<span class="${drupalSettings.data.extlink.extFaLinkClasses}" data-extlink-placement="${iconPlacement}"></span>`;};Drupal.theme.extlink_mailto=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.mailtoLabel);iconElement.setAttribute('viewBox','0 10 70 20');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.mailtoLabel}</title><path d="M56 14H8c-1.1 0-2 0.9-2 2v32c0 1.1 0.9 2 2 2h48c1.1 0 2-0.9 2-2V16C58 14.9 57.1 14 56 14zM50.5 18L32 33.4 13.5 18H50.5zM10 46V20.3l20.7 17.3C31.1 37.8 31.5 38 32 38s0.9-0.2 1.3-0.5L54 20.3V46H10z"/>`;return iconElement;};Drupal.theme.extlink_extlink=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.extLabel);iconElement.setAttribute('viewBox','0 0 80 40');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.extLabel}</title><path d="M48 26c-1.1 0-2 0.9-2 2v26H10V18h26c1.1 0 2-0.9 2-2s-0.9-2-2-2H8c-1.1 0-2 0.9-2 2v40c0 1.1 0.9 2 2 2h40c1.1 0 2-0.9 2-2V28C50 26.9 49.1 26 48 26z"/><path d="M56 6H44c-1.1 0-2 0.9-2 2s0.9 2 2 2h7.2L30.6 30.6c-0.8 0.8-0.8 2 0 2.8C31 33.8 31.5 34 32 34s1-0.2 1.4-0.6L54 12.8V20c0 1.1 0.9 2 2 2s2-0.9 2-2V8C58 6.9 57.1 6 56 6z"/>`;return iconElement;};Drupal.theme.extlink_tel=function(iconElement,drupalSettings){iconElement.setAttribute('aria-label',drupalSettings.data.extlink.telLabel);iconElement.setAttribute('viewBox','0 0 181.352 181.352');iconElement.innerHTML=`<title>${drupalSettings.data.extlink.telLabel}</title><path xmlns="http://www.w3.org/2000/svg" d="M169.393,167.37l-14.919,9.848c-9.604,6.614-50.531,14.049-106.211-53.404C-5.415,58.873,9.934,22.86,17.134,14.555L29.523,1.678c2.921-2.491,7.328-2.198,9.839,0.811l32.583,38.543l0.02,0.02c2.384,2.824,2.306,7.22-0.83,9.868v0.029l-14.44,10.415c-5.716,5.667-0.733,14.587,5.11,23.204l27.786,32.808c12.926,12.477,20.009,18.241,26.194,14.118l12.008-13.395c2.941-2.472,7.328-2.169,9.839,0.821l32.603,38.543v0.02C172.607,160.316,172.519,164.703,169.393,167.37z"/>`;return iconElement;};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=(context,drupalSettings)=>{if(typeof extlinkAttach==='function')extlinkAttach(context);else Drupal.extlink.attach(context,drupalSettings);};})(Drupal,drupalSettings);;
2653(function(Drupal){'use strict';Drupal.npSearch=Drupal.npSearch||{};Drupal.npSearch.normalizeInternalPath=function(path){if(!path)return '';try{var url=new URL(path,window.location.origin);if(url.origin===window.location.origin)return url.pathname+url.search+url.hash;}catch{}return path;};})(Drupal);;
2654(function($,Drupal){'use strict';var beforeSend=Drupal.Ajax.prototype.beforeSend;var beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.behaviors.facetsViewsAjax={attach:function(context,settings){$(once('facetsBlockType','.facets-block')).addClass('default-facet-block');$(once('facetsViewsAjaxPopstate','body')).each(function(){window.addEventListener('popstate',function(e){if(window.historyInitiated)if(e.state&&e.state.view_path&&e.state.current_dom_id&&Drupal.views.instances['views_dom_id:'+e.state.current_dom_id]!==undefined)updateFacetsView(e.state.view_href+this.window.location.search,e.state.current_dom_id,e.state.view_path,false);else{if(window.location.hash.length===0)window.history.go();}});});$.each(settings.facets_views_ajax,function(facetId,facetSettings){var view,current_dom_id,view_path;if(settings.views&&settings.views.ajaxViews){$.each(settings.views.ajaxViews,function(domId,viewSettings){if(facetSettings.view_id==viewSettings.view_name&&facetSettings.current_display_id==viewSettings.view_display_id)if($('.js-view-dom-id-'+viewSettings.view_dom_id).length>0){view=$('.js-view-dom-id-'+viewSettings.view_dom_id);current_dom_id=viewSettings.view_dom_id;view_path=facetSettings.ajax_path;window.historyInitiated=true;$(once('facetsViewsAjaxHistoryInit','body')).each(function(){const view_state={view_href:window.location.pathname,current_dom_id,view_path};window.history.replaceState(view_state,document.title);});}});$(once('facetsViewsAjaxButtonInit','.facets-reset-link, .filter-clear button.chips')).unbind().click(function(e){$(this).unbind();e.preventDefault();e.stopPropagation();var hrefObf=$(this).attr('data-reset-link-hash');if(!hrefObf){hrefObf=$(this).attr('data-link-hash');$(this).attr('data-reset-link-hash',hrefObf);$(this).removeAttr('data-link-hash');}var href=decodeURIComponent(atob(hrefObf).split('').map(function(c){return '%'+('00'+c.charCodeAt(0).toString(16)).slice(-2);}).join(''));var currentQuery=location.search;if(currentQuery&&!href.includes(currentQuery)){var urlParts=href.split('?');
2654if(urlParts.length>=2)href=urlParts[0];var currentQueryParts=currentQuery.split('?');var params=currentQueryParts[1].split(/[&;]/g);for(var i=params.length;i-->0;)if(params[i].lastIndexOf('page=',0)!==-1)params.splice(i,1);currentQuery='?'+params.join('&');href+=currentQuery;}updateFacetsView(href,current_dom_id,view_path);$('.filter-drop__close').click();});}if(!view||view.length!=1)return;if(typeof settings.facets!=='undefined'&&settings.facets.sliders&&settings.facets.sliders[facetId])settings.facets.sliders[facetId].change=function(values,handle,unencoded,tap,positions,noUiSlider){const sliderSettings=settings.facets.sliders[facetId];var href=sliderSettings.url.replace('__range_slider_min__',Math.round(unencoded[0])).replace('__range_slider_max__',Math.round(unencoded[1]));var currentHref=window.location.href;var currentQueryParams=Drupal.Views.parseQueryString(currentHref);var newQueryParams=Drupal.Views.parseQueryString(href);var queryParams={};var facetPositions=[];var fCount=0;var value='';var facetKey='';for(var paramName in currentQueryParams)if(paramName.substr(0,1)==='f'){value=currentQueryParams[paramName];facetKey=value.substr(0,value.indexOf(':'));facetPositions[facetKey]=fCount;queryParams['f['+fCount+']']=value;fCount++;}else queryParams[paramName]=currentQueryParams[paramName];var paramKey='';for(let paramName in newQueryParams)if(paramName.substr(0,1)==='f'){value=newQueryParams[paramName];facetKey=value.substr(0,value.indexOf(':'));if(typeof facetPositions[facetKey]!=='undefined')paramKey='f['+facetPositions[facetKey]+']';else{paramKey='f['+fCount+']';fCount++;}queryParams[paramKey]=newQueryParams[paramName];}else queryParams[paramName]=newQueryParams[paramName];href='/'+Drupal.Views.getPath(href)+'?'+$.param(queryParams);updateFacetsView(href,current_dom_id,view_path);};else $('[data-drupal-facet-id |= '+facetId+']').each(function(index,facet_item){if($(facet_item).hasClass('js-facets-widget')){$(facet_item).unbind('facets_filter.facets');$(facet_item).on('facets_filter.facets',function(event,url){$('.js-facets-widget').trigger('facets_filtering');if(typeof url!=='string')if(url['0'].hasAttribute('data-link-hash'))url=decodeURIComponent(atob(url.data('link-hash')).split('').map(function(c){return '%'+('00'+c.charCodeAt(0).toString(16)).slice(-2);}).join(''));else{if(url['0'].hasAttribute('href'))url=url.attr('href');}updateFacetsView(url,current_dom_id,view_path);});}});});}};var updateFacetsView=function(href,current_dom_id,view_path,pushstate=true){href=Drupal.npSearch.normalizeInternalPath(href);view_path=Drupal.npSearch.normalizeInternalPath(view_path);var views_parameters=Drupal.Views.parseQueryString(href);var views_arguments=Drupal.Views.parseViewArgs(href,'search');if('f[]' in views_parameters){delete views_parameters['f[]'];let coupons_href;if(href.includes('?'))coupons_href=href.substring(href.indexOf('?')+1);let weeks=coupons_href.split('&').filter((e)=>e.includes('f[]'));weeks.forEach((week,index)=>{views_parameters['f['+index+']']=week.split('=')[1];});}var views_settings=$.extend({},Drupal.views.instances['views_dom_id:'+current_dom_id].settings,views_arguments,views_parameters);views_settings.view_path=href;var views_ajax_settings=Drupal.views.instances['views_dom_id:'+current_dom_id].element_settings;views_ajax_settings.submit=views_settings;views_ajax_settings.submit.q=href;views_ajax_settings.submit.page='0';views_ajax_settings.url=view_path+'?q='+href;Drupal.ajax(views_ajax_settings).execute();if(pushstate){window.historyInitiated=true;const url=new URL(href,window.location.origin);if(url){const view_state={view_href:url.pathname,current_dom_id,view_path};window.history.pushState(view_state,document.title,window.location.origin+url.pathname+url.search);}}updateFacetsBlocks(href,current_dom_id);};var updateFacetsBlocks=function(href,current_dom_id){href=Drupal.npSearch.normalizeInternalPath(href);var settings=drupalSettings;var facets_blocks=facetsBlocks();if(settings.facets&&settings.facets.rangeInput)$.each(settings.facets.rangeInput,function(index,value){delete facets_blocks[value.facetId];});var facet_settings={url:Drupal.url('facets-block-ajax'),submit:{facet_link:href,facets_blocks}};if(updateFacetsSummaryBlock(current_dom_id)){facet_settings.submit.update_summary_block=true;facet_settings.submit.facet_summary_plugin_ids={};let summary_selector='[data-drupal-facets-summary-id='+settings.facets_views_ajax.facets_summary_ajax_summary.facets_summary_id+']';if(settings.facets_views_ajax.facets_summary_ajax_summary_count!==undefined)summary_selector+=', [data-drupal-facets-summary-id='+settings.facets_views_ajax.facets_summary_ajax_summary_count.facets_summary_id+']';$(summary_selector).each(function(index,summaryWrapper){let summaryPluginId=$(summaryWrapper).attr('data-drupal-facets-summary-plugin-id');let summaryPluginIdWrapper=$(summaryWrapper).attr('id');facet_settings.submit.facet_summary_plugin_ids[summaryPluginIdWrapper]=summaryPluginId;});}Drupal.ajax(facet_settings).execute();};var updateFacetsSummaryBlock=function(current_dom_id){var settings=drupalSettings;var update_summary=false;if(settings.facets_views_ajax.facets_summary_ajax_summary||settings.facets_views_ajax.facets_summary_ajax_summary_count)update_summary=true;
2654$('.facet-summary__items').each(function(index){if($.contains($('.js-view-dom-id-'+current_dom_id).get(0),this))update_summary=false;});return update_summary;};var facetsBlocks=function(){var facets_blocks={};$('.block-facets-ajax').each(function(index){var block_id_start='js-facet-block-id-';var block_id=$.map($(this).attr('class').split(' '),function(v,i){if(v.indexOf(block_id_start)>-1)return v.slice(block_id_start.length,v.length);}).join();var block_selector=$(this).attr('id');facets_blocks[block_selector]=block_id;});return facets_blocks;};Drupal.Ajax.prototype.beforeSerialize=function(element,options){var isFacetsView=false;if(element&&options.data&&options.data.view_name&&options.data.view_display_id)$.each(drupalSettings.facets_views_ajax||{},function(facetId,facetSettings){if(facetSettings.view_id==options.data.view_name&&facetSettings.current_display_id==options.data.view_display_id){isFacetsView=true;return false;}});if(isFacetsView)options.data.q=window.location.pathname+window.location.search;beforeSerialize.apply(this,arguments);};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(typeof options.extraData!=='undefined'&&typeof options.extraData.view_name!=='undefined'){var href=window.location.href;var settings=drupalSettings;var reload=false;$.each(settings.facets_views_ajax,function(facetId,facetSettings){if(facetSettings.view_id==options.extraData.view_name&&facetSettings.current_display_id==options.extraData.view_display_id)reload=true;});if(reload){href=addExposedFiltersToFacetsUrl(href,options.extraData.view_name,options.extraData.view_display_id);updateFacetsBlocks(href,options.extraData.view_dom_id);}}beforeSend.apply(this,arguments);};var addExposedFiltersToFacetsUrl=function(href,view_name,view_display_id){var $exposed_form=$('form#views-exposed-form-'+view_name.replace(/_/g,'-')+'-'+view_display_id.replace(/_/g,'-'));var params=Drupal.Views.parseQueryString(href);$.each($exposed_form.serializeArray(),function(){params[this.name]=this.value;});return href.split('?')[0]+'?'+$.param(params);};})(jQuery,Drupal);;
2655(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
2656/* @license MIT https://github.com/js-cookie/js-cookie/blob/main/LICENSE */
2657/*! js-cookie v3.0.5 | MIT */
2658!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
2659;
2660/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2661window.dataLayer=window.dataLayer||[];(function($,Drupal,once,drupalSettings,cookies){'use strict';drupalSettings.google_tag_events=drupalSettings.google_tag_events||{};drupalSettings.google_tag_events.gtmEvents=drupalSettings.google_tag_events.gtmEvents||{};drupalSettings.google_tag_events.enabled=drupalSettings.google_tag_events.enabled||false;function pushQueuedEvents(){var enabled=drupalSettings.google_tag_events.enabled;if(!enabled||enabled.length===0)return;var weights=drupalSettings.google_tag_events.weights||{},eventsOrder=[];for(var index in drupalSettings.google_tag_events.gtmEvents){if(!Object.prototype.hasOwnProperty.call(drupalSettings.google_tag_events.gtmEvents,index))continue;eventsOrder.push({'weight':weights[index]||0,'name':index});}eventsOrder.sort(function(a,b){return a.weight-b.weight;});for(var i=0;i<eventsOrder.length;i++){var name=eventsOrder[i].name,event=drupalSettings.google_tag_events.gtmEvents[name];window.dataLayer.push(event);delete drupalSettings.google_tag_events.gtmEvents[name];}
2661if(cookies)cookies.remove('STYXKEY_gte_ptsc_google_tag_events',{path:"/",domain:window.location.host});}Drupal.behaviors.google_tag_events={attach:function(context,settings){once('processed',"[data-selector='google_tag_events']").forEach(function(el){var $el=$(el),events=JSON.parse($el.html());$.extend(drupalSettings.google_tag_events.gtmEvents,events);});pushQueuedEvents();}};if(Drupal.AjaxCommands)Drupal.AjaxCommands.prototype.googleTagEventsSettings=function(ajax,response){if(response.merge)$.extend(true,drupalSettings,response.settings);else{if(ajax)ajax.settings=response.settings;}Drupal.attachBehaviors(document,drupalSettings);};}(jQuery,Drupal,once,drupalSettings,window.Cookies));;
2662(function () {var f={};var g=/iPhone/i,i=/iPod/i,j=/iPad/i,k=/\biOS-universal(?:.+)Mac\b/i,h=/\bAndroid(?:.+)Mobile\b/i,m=/Android/i,c=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,d=/Silk/i,b=/Windows Phone/i,n=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,q=/BB10/i,s=/Opera Mini/i,t=/\b(CriOS|Chrome)(?:.+)Mobile/i,u=/Mobile(?:.+)Firefox\b/i,v=function(l){return void 0!==l&&"MacIntel"===l.platform&&"number"==typeof l.maxTouchPoints&&l.maxTouchPoints>1&&"undefined"==typeof MSStream};function w(l){return function($){return $.test(l)}}function x(l){var $={userAgent:"",platform:"",maxTouchPoints:0};l||"undefined"==typeof navigator?"string"==typeof l?$.userAgent=l:l&&l.userAgent&&($={userAgent:l.userAgent,platform:l.platform,maxTouchPoints:l.maxTouchPoints||0}):$={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var a=$.userAgent,e=a.split("[FBAN");void 0!==e[1]&&(a=e[0]),void 0!==(e=a.split("Twitter"))[1]&&(a=e[0]);var r=w(a),o={apple:{phone:r(g)&&!r(b),ipod:r(i),tablet:!r(g)&&(r(j)||v($))&&!r(b),universal:r(k),device:(r(g)||r(i)||r(j)||r(k)||v($))&&!r(b)},amazon:{phone:r(c),tablet:!r(c)&&r(d),device:r(c)||r(d)},android:{phone:!r(b)&&r(c)||!r(b)&&r(h),tablet:!r(b)&&!r(c)&&!r(h)&&(r(d)||r(m)),device:!r(b)&&(r(c)||r(d)||r(h)||r(m))||r(/\bokhttp\b/i)},windows:{phone:r(b),tablet:r(n),device:r(b)||r(n)},other:{blackberry:r(p),blackberry10:r(q),opera:r(s),firefox:r(u),chrome:r(t),device:r(p)||r(q)||r(s)||r(u)||r(t)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}f=x();if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f}else if(typeof define==="function"&&define.amd){define(function(){return f})}else{this["isMobile"]=f}})();;
2663function getCookie(cname){'use strict';var name=cname+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' ')c=c.substring(1);if(c.indexOf(name)===0)return c.substring(name.length,c.length);}return '';}if(typeof dataLayer_tags!=='undefined'&&dataLayer_tags.userInformation){if(typeof dataLayer_tags.userInformation.gaClientID!=='undefined')dataLayer_tags.userInformation.gaClientID=getCookie('_ga');if(typeof dataLayer_tags.userInformation.deviceType!=='undefined')if(typeof isMobile!==undefined){var deviceType='Desktop';if(isMobile.tablet)deviceType='Tablet';if(isMobile.phone)deviceType='Mobile';dataLayer_tags.userInformation.deviceType=deviceType;}};
2664(function($,Drupal,once,drupalSettings){'use strict';Drupal.behaviors.ln_datalayer_api_events={attach:function(context,settings){if(drupalSettings.ln_datalayer&&drupalSettings.ln_datalayer.events){for(let event_name in drupalSettings.ln_datalayer.events){let event=drupalSettings.ln_datalayer.events[event_name];if(event.hasOwnProperty('event')){if(!event.hasOwnProperty('module_name'))event.module_name=drupalSettings.ln_datalayer.data.module_name;if(!event.hasOwnProperty('module_version'))event.module_version=drupalSettings.ln_datalayer.data.module_version;if(event.hasOwnProperty('content_id')&&event.content_id=='')event.content_id=drupalSettings.ln_datalayer.data.content_id;if(event.hasOwnProperty('content_name')&&event.content_name=='')event.content_name=drupalSettings.ln_datalayer.data.content_name;if(event.hasOwnProperty('recipe_id')&&event.recipe_id=='')event.recipe_id=drupalSettings.ln_datalayer.data.content_id;if(event.hasOwnProperty('recipe_name')&&event.recipe_name=='')event.recipe_name=drupalSettings.ln_datalayer.data.content_name;if(event.hasOwnProperty('item_id')&&event.item_id=='')event.item_id=drupalSettings.ln_datalayer.data.content_id;if(event.hasOwnProperty('item_name')&&event.item_name=='')event.item_name=drupalSettings.ln_datalayer.data.content_name;window.dataLayer=window.dataLayer||[];window.dataLayer.push(event);}}delete drupalSettings.ln_datalayer.events;}}};Drupal.behaviors.ln_datalayer_global_events={attach:function(context,settings){$(once('ln_datalayer_cta_click','.field--name-field-c-link a')).click(function(ev){let $link=$(this);let domain='';try{let url=$link.attr('href');if(url.startsWith('/'))url=document.location.origin+url;domain=new URL(url).hostname;}catch(e){}window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'cta_click','event_name':'cta_click','link_classes':$link.attr('class'),'link_domain':domain,'link_id':$link.attr('id'),'link_text':$link.text(),'link_url':$link.attr('href'),'module_name':drupalSettings.ln_datalayer.data.module_name,'module_version':drupalSettings.ln_datalayer.data.module_version});});$(once('ln_datalayer_outbound_link',"a[target='_blank']")).click(function(ev){let $link=$(this);let domain='';try{let url=$link.attr('href');if(url.startsWith('/'))url=document.location.origin+url;domain=new URL(url).hostname;}catch(e){}window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'outbound_link','event_name':'outbound_link','link_classes':$link.attr('class'),'link_domain':domain,'link_id':$link.attr('id'),'link_url':$link.attr('href'),'outbound (boolean)':true,'module_name':drupalSettings.ln_datalayer.data.module_name,'module_version':drupalSettings.ln_datalayer.data.module_version});});$(once('ln_datalayer_input','.form-managed-file')).click(function(ev){window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'drupal_upload_submit','event_name':'drupal_upload_submit','module_name':drupalSettings.ln_datalayer.data.module_name,'module_version':drupalSettings.ln_datalayer.data.module_version});});if($('.form-type-managed-file').siblings(".alert-wrapper").length){window.dataLayer=window.dataLayer||[];window.dataLayer.push({'event':'drupal_upload_error','event_name':'drupal_upload_error','error_name':$(".alert-wrapper .item-list").text(),'module_name':drupalSettings.ln_datalayer.data.module_name,'module_version':drupalSettings.ln_datalayer.data.module_version});}}};})(jQuery,Drupal,once,drupalSettings);;
2665/* @license MIT https://raw.githubusercontent.com/js-cookie/js-cookie/v3.0.5/LICENSE */
2666!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o;};}());}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o];}return e;}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof (i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c;}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break;}catch(e){}}return e?o[e]:o;}},remove:function(t,n){r(t,"",e({},n,{expires:-1}));},withAttributes:function(n){return t(this.converter,e({},this.attributes,n));},withConverter:function(n){return t(e({},this.converter,n),this.attributes);}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}});}({read:function(e){return '"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);}},{path:"/"});return t;}));;
2667/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2668(function($,Drupal,drupalSettings,cookies){'use strict';if(once('chooseCountryOnce','html').length){$(document).on('click','.country-selector .country-selector__popup-btn',function(e){Drupal.ajax({url:drupalSettings.np_country_selector.url}).execute();});$(document).on('click','.country-wrapper a',function(e){e.preventDefault();const targetHref=$(this).attr('href');const targetElem=$(this).closest('.country-wrapper').data('country-code');const cookieName=drupalSettings.npGeolocation.cookieNameCountry;if(cookieName){let expires=new Date();expires.setFullYear(expires.getFullYear()+1);cookies.set(cookieName,targetElem,{expires,path:'/'});window.location.href=targetHref;}});}}(jQuery,Drupal,drupalSettings,window.Cookies));;
2669!function(){"use strict";var e={2369:function(e,r,t){const o=(e,r)=>Object.values(e).forEach((e)=>e.setAttribute("aria-hidden",r));t.d(r,["PD",0,(e,r)=>{const t={prevEl:e.querySelector(".swiper-controls__prev"),nextEl:e.querySelector(".swiper-controls__next")},s=e.querySelector(".swiper-slide")&&e.querySelector(".swiper-slide").tagName;return new Swiper(e,{slidesPerView:"auto",initialSlide:0,centeredSlides:!1,observer:!0,watchSlidesProgress:!0,watchOverflow:!0,navigation:t,a11y:{slideRole:{LI:"listitem",BUTTON:"tab"}[s]||"group"},on:{lock:()=>{o(t,!0),e.classList.remove("swiper-unlock");},unlock:(r)=>{o(t,!1),e.classList.add("swiper-unlock"),r.slideReset();}},...r});}]);}},r={};function t(o){var s=r[o];if(void 0!==s)return s.exports;var i=r[o]={exports:{}};return e[o](i,i.exports,t),i.exports;}t.d=function(e,r){if(Array.isArray(r))for(var o=0;o<r.length;){var s=r[o++],i=r[o++];t.o(e,s)?0===i&&o++:0===i?Object.defineProperty(e,s,{enumerable:!0,value:r[o++]}):Object.defineProperty(e,s,{enumerable:!0,get:i});}else for(var s in r)t.o(r,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:r[s]});},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r);};var o=t(2369);!function(e,r){e.behaviors.breadcrumbs={attach(e){r("breadcrumbsOnce",".js-breadcrumbs",e).forEach((e)=>{(0,o.PD)(e);});}};}(Drupal,once);}();;
2670!function(t,e){var o;t.behaviors.dropdown={attach(t){e("dropdown",".dropdown",t).forEach((t)=>{const e=[...t.querySelectorAll(".dropdown-title")],o=(t)=>{const e=t.target.closest(".dropdown-item"),o=e.querySelector(".dropdown-content");e.classList.toggle("active"),o.ariaHidden=!e.classList.contains("active");const a=e.querySelector(".dropdown-title"),r="true"===a.getAttribute("aria-expanded");a.setAttribute("aria-expanded",r?"false":"true"),o.setAttribute("aria-hidden",r?"true":"false");};e.forEach((t)=>{t.addEventListener("click",o,!1);}),e.forEach((t)=>{t.addEventListener("keyup",(t)=>{13===t.keyCode&&o(t);});});});}},t.AjaxCommands&&(t.AjaxCommands.prototype.insert=(o=t.AjaxCommands.prototype.insert,function(e,a,r){o.call(this,e,a,r),t.attachBehaviors(document,t.settings);}));}(Drupal,once);;
2671!function(){"use strict";var e={2369:function(e,t,r){const o=(e,t)=>Object.values(e).forEach((e)=>e.setAttribute("aria-hidden",t));r.d(t,["PD",0,(e,t)=>
2671{const r={prevEl:e.querySelector(".swiper-controls__prev"),nextEl:e.querySelector(".swiper-controls__next")},n=e.querySelector(".swiper-slide")&&e.querySelector(".swiper-slide").tagName;return new Swiper(e,{slidesPerView:"auto",initialSlide:0,centeredSlides:!1,observer:!0,watchSlidesProgress:!0,watchOverflow:!0,navigation:r,a11y:{slideRole:{LI:"listitem",BUTTON:"tab"}[n]||"group"},on:{lock:()=>{o(r,!0),e.classList.remove("swiper-unlock");},unlock:(t)=>{o(r,!1),e.classList.add("swiper-unlock"),t.slideReset();}},...t});}]);}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports;}r.d=function(e,t){if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],a=t[o++];r.o(e,n)?0===a&&o++:0===a?Object.defineProperty(e,n,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,n,{enumerable:!0,get:a});}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]});},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);};var o=r(2369);const n='\n    a[href],\n    [role=button],\n    button:not([disabled]):not(.btn-back),\n    input:not([disabled]):not([type="hidden"]),\n    select:not([disabled]),\n    textarea:not([disabled]),\n    [tabindex]:not([tabindex="-1"])\n  ',a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const r=e.querySelectorAll(t);r&&r.forEach((e)=>{e.setAttribute("tabindex","-1");});};!function(e,t){e.behaviors.footer={attach(e){t("footerAccordion",".footer [data-expandable]",e).forEach((e)=>{if(e){const t=e.querySelector(".footer__expand-label"),r=e.querySelector(".footer__expand-menu"),o=".footer__expand-menu a";let i="true"===t.getAttribute("aria-expanded");a(r,o);const s=()=>{e.classList.add("open"),r.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true"),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const r=e.querySelectorAll(t);r&&r.forEach((e)=>{e.removeAttribute("tabindex");});}(r,o),i=!0;},l=()=>{e.classList.remove("open"),t.setAttribute("aria-expanded","false"),r.setAttribute("aria-hidden","true"),a(r,o),i=!1;};t.addEventListener("click",(e)=>{e.preventDefault(),i?l():s();},!1),t.addEventListener("keyup",(e)=>{"Enter"===e.key&&(e.preventDefault(),i?l():s());},!1);}}),t("footerCookie",".footer .footer-cookie",e).forEach((e)=>{e&&e.addEventListener("click",()=>OneTrust.ToggleInfoDisplay(),!1);}),t("footerCarousel","div.footer__brands-swiper",e).forEach((e)=>(0,o.PD)(e,{spaceBetween:8})),t("footerScrollTop",'a[href="#top"]',e).forEach((e)=>e.addEventListener("click",(e)=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"});}));}};}(Drupal,once);}();;
2672!function(){const a=[".paragraph-cards",".paragraph-cards .card-grid",".paragraph-cards .cards-grid > .views-row",".paragraph-cards .cards-grid > .views-infinite-scroll-content-wrapper > .views-row",".paragraph-tabs",".paragraph-quote",".paragraph-authors",".paragraph--type--faqs-block",".paragraph-dropdown"];!function(r,s){r.behaviors.checkViewport={attach(r){s("checkViewportOnce",a.join(","),r).forEach((a)=>{const r={root:null,rootMargin:"0px 0px -10% 0px",threshold:0},s=new IntersectionObserver((a)=>{a.forEach((a)=>{const {isIntersecting:r,target:t}=a;r&&(t.classList.add("start-animation"),s.unobserve(t));});},r);a.querySelector(".cards-grid")&&a.classList.contains("paragraph-cards")||a.closest(".modal__content")||(a.classList.add("animation-item"),s.observe(a,r));});}};}(Drupal,once);}();;
2673!function(){"use strict";const e="(min-width: 740px)",t=(e,t)=>Object.values(e).forEach((e)=>e.setAttribute("aria-hidden",t));!function(n,s){n.behaviors.linksMenu={attach(n){s("linksMenu",".paragraph-links-menu",n).forEach((s)=>{const i=n.querySelectorAll(".links-menu-item a.np-secion-menu--link");let r=window.matchMedia(e).matches?200:80;const l=window.innerHeight;i.forEach((e)=>{const t=`#${e.href.split("#")[1]}`,s=t.match(/(#\d)|([^\S])/g)?null:document.querySelector(t)||null,a={root:null,rootMargin:`-${r+1}px 0% -${l-r-10}px 0%`,threshold:0},c=new IntersectionObserver((e)=>{e.forEach((e)=>{const {isIntersecting:t,target:s}=e,r=n.querySelector(`.links-menu-item a.np-secion-menu--link[href*="#${s.id}"]`);t?(r&&r.classList.add("active"),o.slideTo([...i].indexOf(r))):r&&r.classList.remove("active");});},a);s&&c.observe(s,a);});const o=((e,n)=>
2673{const s={prevEl:e.querySelector(".swiper-controls__prev"),nextEl:e.querySelector(".swiper-controls__next")},i=e.querySelector(".swiper-slide")&&"LI"===e.querySelector(".swiper-slide").tagName?"listitem":"group";return new Swiper(e,{slidesPerView:"auto",observer:!0,watchSlidesProgress:!0,watchOverflow:!0,navigation:s,a11y:{slideRole:i},on:{lock:()=>{t(s,!0),e.classList.remove("swiper-unlock");},unlock:(n)=>{t(s,!1),e.classList.add("swiper-unlock"),n.slideReset();}},...n});})(s.querySelector(".swiper-links-menu"),{spaceBetween:8,freeMode:!0});}),s("linksMenuAccordion",".links-menu-item[data-expandable]",n).forEach((e)=>{if(e){const t=document.querySelectorAll(".links-menu-item[data-expandable]"),n=(e)=>{t.forEach((t)=>{t!==e&&t.classList.remove("open");});};e.addEventListener("click",(t)=>{t.target.closest(".links-menu-block__list-inner")||(t.preventDefault(),n(e),e.classList.toggle("open"));},!1),document.addEventListener("click",(e)=>{(e.target.classList.contains("notification-bar--close")||e.target.parentElement.classList.contains("notification-bar--close"))&&(heightAlertElement=alertElement?alertElement.offsetHeight:0),e.target.closest(".links-menu-item[data-expandable]")||n(e.target);});}});}};}(Drupal,once);}();;
2674!function(t,e){t.behaviors.snackbarClose={attach(t){e("snackbarOnce",".snackbar",t).forEach((t)=>{const e=t.querySelector(".btn-close, .icon-close");if(!e)return;const n=()=>{t.classList.add("snackbar-hidden");};if(e.classList.contains("icon-close")){const s=t.querySelector(".sr-only")?.textContent?.trim();e.setAttribute("role","button"),e.setAttribute("tabindex","0"),s&&e.setAttribute("aria-label",s),e.addEventListener("keydown",(t)=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),n());});}e.addEventListener("click",n);});}};}(Drupal,once);;
2675!function(e,c){e.behaviors.formSelectAccessibility={attach(e){c("formSelectAccessibility",".form-select",e).forEach((e)=>{e.addEventListener("keydown",(c)=>{const {keyCode:o}=c;[13,38,40].includes(o)&&(c.preventDefault(),e.showPicker());},!1);});}},e.behaviors.formBoxesAccessibility={attach(e){c("formBoxesAccessibility",'.form-item [type="checkbox"], .form-item [type="radio"]',e).forEach((e)=>{e.addEventListener("keydown",(c)=>{const {keyCode:o}=c;13===o&&(e.checked=!e.checked);},!1);});}};}(Drupal,once);;
2676!function(){"use strict";const e='\n    a[href],\n    [role=button],\n    button:not([disabled]):not(.btn-back),\n    input:not([disabled]):not([type="hidden"]),\n    select:not([disabled]),\n    textarea:not([disabled]),\n    [tabindex]:not([tabindex="-1"])\n  ';!function(t,o){let a=null;const n=(e)=>{var t;l(),t=e,a=(e)=>{const o=t[0],a=t[t.length-1];"Tab"===e.key&&(e.shiftKey?document.activeElement===o&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),o.focus()));},document.addEventListener("keydown",a);},l=()=>{a&&(document.removeEventListener("keydown",a),a=null);};t.behaviors.modalFocusButton={attach(e){o("modalFocusButtonOnce",".js-modal-focus, .ui-button.button--primary",e).forEach((e)=>{e&&e.focus();});}},t.behaviors.modalReBehavior={attach(a){o("modalReBehaviorOnce","body",a).forEach(()=>{window.addEventListener("platform_modal:aftercreate",(o)=>{const {element:a,settings:l}=o.detail;n(a.querySelectorAll(e)),l.isAjax||([...a.querySelectorAll("[data-once]")].forEach((e)=>{delete e.dataset.once;}),t.attachBehaviors(a,t.settings));}),window.addEventListener("platform_modal:afterclose",(t)=>{const {element:o}=t.detail;if([...o.querySelectorAll("iframe")].forEach((e)=>{e.remove();}),[...o.querySelectorAll("video.video-playing")].forEach((e)=>{e.pause();}),"drupal-platform-modal-confirmation"===o.id&&a.querySelector("#drupal-platform-modal.platform_modal-visible")){const t=a.getElementById("drupal-platform-modal");t.querySelector(".js-modal-focus, .ui-button.button--primary").focus(),n(t.querySelectorAll(e));}else l();});});}},t.behaviors.modalStepByStep={attach(t){o("modalStepByStepOnce",".platform_modal .step-by-step",t).forEach((t)=>{const o=new MutationObserver(function(t,o){for(let o of t)if("childList"===o.type&&o.target.classList.contains("np-tools-step-by-step-render-form")){const t=o.target.closest(".platform_modal").querySelectorAll(e);l(),n(t),setTimeout(()=>t[0].focus(),1);}});o.observe(t,{attributes:!0,childList:!0,subtree:!0}),window.addEventListener("platform_modal:afterclose",()=>{o&&o.disconnect();});});}};}(Drupal,once);}();;
2677var youtubeApiInitialized=false;var vimeoApiInitialized=false;var youtube_iframes_ids=[];var iframes_vimeo=[];function isYoutubeIframe(iframe_url){if((/^https?:\/\/www\.youtube(?:-nocookie)?\.com\/embed\//).test(iframe_url))return true;}function isVimeoIframe(iframe_url){if((/^https?:\/\/player\.vimeo\.com/).test(iframe_url))return true;}function iframeDetector(){let $videos=jQuery(once('video_tag--Handle','video'));$videos.each(function(){let $video=jQuery(this);$video.on('play',function(){$video.addClass('video-playing');});$video.on('pause',function(){$video.removeClass('video-playing');});});let $iframes=jQuery(once('iframe_tag--Handle','iframe'));$iframes.each(function(){var iframe=this;if(this.src===undefined)return;if(isYoutubeIframe(iframe.src)){if(!youtubeApiInitialized){let tag=document.createElement('script');tag.src="https://www.youtube.com/iframe_api";let firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);
2677youtubeApiInitialized=true;}let iframe_id;if(jQuery(this).attr('id'))iframe_id=jQuery(this).attr('id');else{let src_parsed=iframe.src.match(/youtube(?:-nocookie)?\.com\/embed\/([0-9A-Za-z_]*)/i);iframe_id='youtube_'+src_parsed[1];jQuery(this).attr('id',iframe_id);}youtube_iframes_ids.push(iframe_id);}else{if(isVimeoIframe(iframe.src)){if(!vimeoApiInitialized){let tag=document.createElement('script');tag.addEventListener("load",window.onVimeoIframeAPIReady);tag.src="https://player.vimeo.com/api/player.js";let firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);vimeoApiInitialized=true;}iframes_vimeo.push(iframe);}}});}window.onVimeoIframeAPIReady=function(event){iframes_vimeo.forEach((iframe_vimeo)=>{let playerVimeo=new Vimeo.Player(iframe_vimeo);playerVimeo.on('play',function(){jQuery(iframe_vimeo).addClass('video-playing');});playerVimeo.on('pause',function(){jQuery(iframe_vimeo).removeClass('video-playing');});});};window.onYouTubeIframeAPIReady=function(){youtube_iframes_ids.forEach((youtube_iframe_id)=>{new YT.Player(youtube_iframe_id,{events:{'onStateChange':function(event){if(event.data===YT.PlayerState.PLAYING)jQuery('#'+youtube_iframe_id).addClass('video-playing');else jQuery('#'+youtube_iframe_id).removeClass('video-playing');}}});});};Drupal.behaviors.npCoreDetectVideoPlaying={attach:function(context,settings){iframeDetector();}};;
2678(function($,Drupal,once,drupalSettings){'use strict';Drupal.behaviors.swiperSlider={attach:function(context){if(typeof drupalSettings.swiperSlider==='undefined')return;var npSliders=drupalSettings.swiperSlider;for(var id in npSliders)if(id)$(once('swiperSlider','.swiper-slider-'+id+':not(.swiper-initialized)',context)).each(function(){_swiper_slider_init(id,drupalSettings.swiperSlider[id]);});}};function _swiper_slider_init(id,optionset,context){for(var prop in optionset)if(optionset[prop]===null)delete optionset[prop];if(typeof optionset.breakpoints!=='undefined'&&optionset.breakpoints.enabled){var desktop_breakpoint=optionset.breakpoints.desktop.desktop_breakpoints;var desktop_slidesPerView=optionset.breakpoints.desktop.slidesPerView;var desktop_slidesPerGroup=optionset.breakpoints.desktop.slidesPerGroup;var desktop_spaceBetween=optionset.breakpoints.desktop.spaceBetween;var desktop_grid_rows=optionset.breakpoints.desktop.grid_rows;var tablet_breakpoint=optionset.breakpoints.tablet.tablet_breakpoints;var tablet_slidesPerView=optionset.breakpoints.tablet.slidesPerView;var tablet_slidesPerGroup=optionset.breakpoints.tablet.slidesPerGroup;var tablet_spaceBetween=optionset.breakpoints.tablet.spaceBetween;var tablet_grid_rows=optionset.breakpoints.tablet.grid_rows;var mobile_breakpoint=optionset.breakpoints.mobile.mobile_breakpoints;var mobile_slidesPerView=optionset.breakpoints.mobile.slidesPerView;var mobile_slidesPerGroup=optionset.breakpoints.mobile.slidesPerGroup;var mobile_spaceBetween=optionset.breakpoints.mobile.spaceBetween;var mobile_grid_rows=optionset.breakpoints.mobile.grid_rows;delete optionset.breakpoints;optionset.breakpoints={[desktop_breakpoint]:{'slidesPerView':desktop_slidesPerView,'slidesPerGroup':desktop_slidesPerGroup,'spaceBetween':desktop_spaceBetween},[tablet_breakpoint]:{'slidesPerView':tablet_slidesPerView,'slidesPerGroup':tablet_slidesPerGroup,'spaceBetween':tablet_spaceBetween},[mobile_breakpoint]:{'slidesPerView':mobile_slidesPerView,'slidesPerGroup':mobile_slidesPerGroup,'spaceBetween':mobile_spaceBetween}};if(typeof optionset.grid!=='undefined'&&optionset.grid.enabled){optionset.breakpoints[desktop_breakpoint]['grid']={'rows':desktop_grid_rows};optionset.breakpoints[tablet_breakpoint]['grid']={'rows':tablet_grid_rows};optionset.breakpoints[mobile_breakpoint]['grid']={'rows':mobile_grid_rows};}}else delete optionset.breakpoints;if(typeof optionset.navigation!=='undefined'&&optionset.navigation.enabled){optionset.navigation.nextEl='.swiper-button-next';optionset.navigation.prevEl='.swiper-button-prev';}if(typeof optionset.pagination!=='undefined'&&optionset.pagination.enabled)optionset.pagination.el='.swiper-pagination';if(typeof optionset.scrollbar!=='undefined'&&optionset.scrollbar.enabled)optionset.scrollbar.el='.swiper-scrollbar';if(typeof optionset.pagination.type!=='undefined'&&optionset.pagination.type==='thumbs'){var thumbs_optionset=optionset.pagination.thumbs_settings;var thumbs_swiper=new Swiper('#swiper-slider-'+id+'-thumbs',thumbs_optionset);delete optionset.pagination;optionset.thumbs={swiper:thumbs_swiper};}var swiper=new Swiper('#swiper-slider-'+id,optionset);}}(jQuery,Drupal,once,drupalSettings));;
2679!function(){"use strict";const e="(min-width: 740px)";!function(t,s){t.behaviors.header={attach(a){s("header","header.header",a).forEac
2679h((s)=>{if(s){const a=window.matchMedia(e);let d=a.matches?100:0;document.documentElement.style.setProperty("--header-height",`${s.offsetHeight}px`),window.addEventListener("resize",t.debounce(()=>document.documentElement.style.setProperty("--header-height",`${s.offsetHeight}px`),250));const n=()=>{s.querySelectorAll(".header-popup.opened").length>0||(document.body.classList.contains("hidden-main-nav")&&window.pageYOffset<=100?s.classList.add("hidden"):document.body.classList.contains("hidden-main-nav")&&window.pageYOffset>100&&s.classList.remove("hidden"),window.pageYOffset>100?s.classList.add("scrolled-header"):s.classList.remove("scrolled-header"),window.pageYOffset>d?s.classList.add("move-header"):s.classList.remove("move-header"),d=a.matches?window.pageYOffset<=100?100:window.pageYOffset:window.pageYOffset<=0?0:window.pageYOffset);};(()=>{window.location.href.toLowerCase().includes("?main_nav=false")&&document.body.classList.add("hidden-main-nav");})(),n(),window.addEventListener("scroll",()=>{(Math.abs(d-window.pageYOffset)>100&&a.matches||Math.abs(d-window.pageYOffset)>0&&!a.matches)&&n();});}});}};}(Drupal,once);}();;
2680!function(){"use strict";const e="(min-width: 740px)";!function(t,i){t.behaviors.headerSwiper={attach(t){i("headerSwiperOnce","header .header-swiper",t).forEach((t)=>{if(t){let i;const r=t.querySelectorAll(".swiper-slide").length-1,s={prev:t.querySelector(".swiper-controls__prev"),next:t.querySelector(".swiper-controls__next")},o=window.matchMedia(e),a=()=>{s.prev&&s.prev.setAttribute("aria-hidden",s.prev.classList.contains("swiper-button-disabled")?"true":"false"),s.next&&s.next.setAttribute("aria-hidden",s.next.classList.contains("swiper-button-disabled")?"true":"false");},l=(e)=>{e.allowTouchMove=!e.isLocked;},n=(e)=>{a(),l(e);},c=()=>!!t.querySelector(".btn-open-popup.active");i=new Swiper(t,{spaceBetween:16,slidesPerView:"auto",threshold:5,preventClicks:!1,preventClicksPropagation:!1,freeMode:!0,watchSlidesProgress:!0,watchOverflow:!0,a11y:{slideRole:"listitem"},navigation:{nextEl:s.next,prevEl:s.prev},on:{init(e){setTimeout(()=>{t.classList.remove("loading");},500),n(e);},touchStart(e){e.allowSlideNext=!c(),e.allowSlidePrev=!c();},slideChange:a,resize(e){e.slideTo(o.matches?r:0),n(e);}}});}});}};}(Drupal,once);}();;
2681!function(){"use strict";const e='\n    a[href],\n    [role=button],\n    button:not([disabled]):not(.btn-back),\n    input:not([disabled]):not([type="hidden"]),\n    select:not([disabled]),\n    textarea:not([disabled]),\n    [tabindex]:not([tabindex="-1"])\n  ',t=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t.querySelectorAll(n);o.length>0&&o[0].focus();},n="(min-width: 740px)",o=(e,t)=>{e&&e.forEach((e)=>{e.classList.contains(t)&&e.classList.remove(t);});};!function(r,l){r.behaviors.headerMenu={attach(r){l("headerMenuOnce","header.header",r).forEach((r)=>{if(r){const l=r.querySelector(".header__main-menu"),c=[...r.querySelectorAll(".menu-level-0 > li.menu-item")],a=[...l.querySelectorAll(".menu-level-0 > li.menu-item .menu-dropdown")],s=[...r.querySelectorAll(".header-popup")],d=l.querySelector(".header__social-footer"),i=[...d?.querySelectorAll(e)??[]],u=r.querySelector(".btn-burger-open"),p=r.querySelectorAll(".btn-burger-close"),m=[...l.querySelectorAll(".menu .menu-item--expanded > .menu-link")],v=[...r.querySelectorAll(".btn-close-submenu, .btn-back-submenu")],h=[...r.querySelectorAll(".btn-open-popup")],b=[...r.querySelectorAll(".btn-close")],y=window.matchMedia(n);let f=null,E=null,g=!1;const L=8,A=(t)=>{t.setAttribute("aria-hidden","true"),function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t.querySelectorAll(n);o&&o.forEach((e)=>{e.setAttribute("tabindex","-1");});}(t);},q=(t)=>{t.setAttribute("aria-hidden","false"),function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const o=t.querySelectorAll(n);o&&o.forEach((e)=>{e.removeAttribute("tabindex");});}(t);},S=()=>{r.classList.add("menu-opened"),q(l),t(l),a&&a.forEach((e)=>{A(e);}),dataLayer.push({event:"customEvent",eventCategory:"Header|Burger",eventAction:"Open",eventLabel:"Header-Burger-Open"});},k=()=>
2681{r.classList.remove("menu-opened"),A(l),o(c,"opened"),c.forEach((e)=>{A(e);}),C(),dataLayer.push({event:"customEvent",eventCategory:"Header|Burger",eventAction:"Close",eventLabel:"Header-Burger-Close"});},w=(e)=>{var t;C(),t=e,f=(e)=>{const n=t[0],o=t[t.length-1];"Tab"===e.key&&(e.shiftKey?document.activeElement===n&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),n.focus()));},document.addEventListener("keydown",f);},C=()=>{f&&(document.removeEventListener("keydown",f),f=null);},_=()=>{const e=[p[0],...c,...i??[]];w(e);},x=()=>{o(s,"opened"),o(h,"active"),s.forEach((e)=>{A(e);}),C();},H=()=>{o(h,"active"),k(),x(),g=!1;},B=()=>{if(r.getBoundingClientRect().top>0){const e=r.getBoundingClientRect().top+window.scrollY-L;window.scrollTo({top:e,behavior:"smooth"});}},O=(e)=>{let t=e.closest(".menu-item--expanded"),n=[];n.push(t),o(n,"opened");};s&&s.forEach((e)=>{A(e);}),l&&A(l),u&&u.addEventListener("click",()=>{x(),S(),B(),E=u,g=!0,_();},!1),p&&p.forEach((e)=>{e.addEventListener("click",()=>{k(),E&&(E.focus(),E=null),g=!1;},!1);}),h&&h.forEach((n)=>{n.addEventListener("click",()=>{const r=document.getElementById(n.getAttribute("aria-controls"));if(n.classList.contains("active"))n.classList.remove("active"),r?.classList.remove("opened"),x(),g=!1;else{if(o(h,"active"),o(s,"opened"),k(),n.classList.add("active"),E=n,g=!0,r){r.classList.add("opened"),q(r),t(r);let n=[...r.querySelectorAll(e)];"header_popup__account_block"===r.id?setTimeout(()=>{n=[...r.querySelectorAll(e)],n.forEach((e,t)=>{e.closest(".gg-hidden")&&n.splice(t,1);}),w(n);},5e3):w(n);}}B();});}),b&&b.forEach((e)=>{e.addEventListener("click",()=>{o(h,"active"),x(),E&&(E.focus(),E=null),g=!1;},!1);}),m&&m.forEach((n)=>{n.addEventListener("click",()=>{const o=n.parentElement,r=o.querySelector(".menu-dropdown");if(o.classList.contains("opened"))o.classList.remove("opened");else{E=n,O(n),o.classList.add("opened"),q(o);const l=[...r.querySelectorAll(e)];w(l),r&&t(r);}},!1);}),v&&v.forEach((e)=>{e.addEventListener("click",()=>{O(e),E=e.closest(".menu-item--expanded")?.querySelector(":scope > .menu-link");const t=e.closest(".menu-item--expanded .menu-dropdown");t&&A(t),C(),_(),E&&(E.focus(),E=null);},!1);});const D=document.querySelector(".country-selector span");D&&D.addEventListener("click",()=>{dataLayer.push({event:"customEvent",eventCategory:"Header|Countries",eventAction:"Open",eventLabel:"Header-Countries-Open"});}),window.addEventListener("platform_modal:afterclose",(e)=>{const {dialog:t,element:n}=event.detail;n.querySelector(".header__languages-modal")&&dataLayer.push({event:"customEvent",eventCategory:"Header|Countries",eventAction:"Close",eventLabel:"Header-Countries-Close"});}),document.addEventListener("click",(e)=>{!y.matches||!g||e.target.closest(".header__main-menu")||e.target.closest(".btn-open-popup")||e.target.closest(".btn-burger-open")||e.target.closest(".header-popup")||e.target.closest(".ui-datepicker")||"A"===e.target.tagName||H();}),document.addEventListener("keydown",(e)=>{"Escape"===e.key&&g&&H();});}});}};}(Drupal,once);}();;
2682!function(e,t){e.behaviors.inputSearch={attach(e){t("inputSearch",".ui-autocomplete-input",e).forEach((e)=>{e.removeAttribute("readonly");const t=e.parentElement.querySelector(".btn-clear-search"),n=t.parentElement.parentElement,a=(e)=>{e.value?e.parentElement.classList.add("has-input-full"):e.parentElement.classList.remove("has-input-full");},r=()=>{e.value="",e.parentElement.classList.remove("has-input-full");};a(e),e&&e.addEventListener("input",(e)=>{a(e.target);}),t&&t.addEventListener("click",(e)=>{e.preventDefault(),r();}),n.addEventListener("keypress",(e)=>{"Enter"===e.key&&(e.preventDefault(),t&&t.matches(":focus")?r():n.submit());});});}};}(Drupal,once);;
2683!function(e,t,n){e.behaviors.navigationAssistantButtons={attach(e){t("navigationAssistantInit",".navigation-assistant-container",e).forEach((e)=>{const t=new Date();let s={animated:!1,step:0,interval:null,timeout:null,observer:null,time:3e3,expire:new Date(t.setHours(t.getHours()+240)),countAnimation:n.get("countAnimation")?Number(n.get("countAnimation")):0};const a=(e)=>{s={...s,...e};},i=(e)=>{l[0===e.step?0:e.step-1].classList.remove("show"),document.body.style.setProperty("--nav-assistant-width",(window.innerWidth>1200?64:48)+"px"),clearInterval(e.interval),clearTimeout(e.timeout),a({step:0,animated:!1});},o=[{button:e.querySelector(".na-open-feedback button"),action:()=>document.querySelector("iframe.usabilla-live-button")?document.querySelector("iframe.usabilla-live-button").contentWindow.document.querySelector("body img"):document.querySelector("#QSIFeedbackButton-btn")},{button:e.querySelector(".na-open-cookie button"),callback:()=>OneTrust.ToggleInfoDisplay()}
2683,{button:e.querySelector(".na-open-live-chat button"),action:()=>document.querySelector("#crisp-chatbox>div>a>span")}],c=e.querySelector(".na-open-feedback"),r=(e.querySelector(".na-open-cookie"),e.querySelector(".na-open-live-chat")),l=e.querySelector(".navigation-assistant-links-list__main").querySelectorAll(":scope > .navigation-assistant-item--show-all-time"),d=e.querySelector(".navigation-assistant"),u=e.querySelector(".navigation-assistant-button"),m=e.querySelector(".navigation-assistant-notification"),v=e.querySelector(".navigation-assistant__count-new-items");let p=0;const b=(t)=>{if(n.get("disableAnimatedAssistant"))return;let o=[...t];document.body.classList.contains("accept-cookies")?(r&&o.push(r),c&&o.push(c)):o=l,a({animated:!0}),s.observer||(s.observer=new MutationObserver((e)=>{e[0].target.classList.contains("expanded")?i(s):s.timeout=setTimeout(()=>b(o),15e3);}),s.observer.observe(d,{childList:!1,subtree:!1,attributeOldValue:!0,attributes:!0,attributeFilter:["class"]}));const {time:u}=s;e.classList.add("animated"),o[0].classList.add("show"),document.body.style.setProperty("--nav-assistant-width",`${o[0].clientWidth+8}px`),a({animated:!0,step:1}),s.interval=setInterval(()=>{const {step:e}=s;e>0&&o[e-1].classList.remove("show"),o[e]&&(o[e].classList.add("show"),document.body.style.setProperty("--nav-assistant-width",`${o[e].clientWidth+8}px`)),e<o.length?a({step:e+1}):(o[o.length-1].classList.remove("show"),y());},u);},y=()=>{document.body.style.setProperty("--nav-assistant-width",(window.innerWidth>1200?64:48)+"px"),e.classList.remove("animated"),clearInterval(s.interval),s.countAnimation<2&&s.animated&&(a({animated:!1,step:0,countAnimation:s.countAnimation+1}),n.set("countAnimation",s.countAnimation,{expires:s.expire,secure:!0})),s.countAnimation>=2?(s.observer&&s.observer.disconnect(),n.set("disableAnimatedAssistant",!0,{expires:s.expire,secure:!0})):s.timeout=setTimeout(()=>b(l),15e3);};if(l.length){const t=localStorage.hasOwnProperty("itemsAssistant")?JSON.parse(localStorage.getItem("itemsAssistant")):[];setTimeout(()=>b(l),1e3),l.forEach((e)=>{if(e.hasAttribute("data-drupal-menu-link-key")){const n=e.getAttribute("data-drupal-menu-link-key").replace("menu_link_content:","");t.indexOf(n,0)<0&&p++;}}),p>0&&(v.innerText=p,v.classList.add("show")),l.forEach((t)=>{t.addEventListener("click",()=>{if(t.classList.contains("na-open-cookie")||t.classList.contains("na-open-feedback")||t.classList.contains("na-open-live-chat")||(i(s),e.classList.remove("animated"),e.classList.remove("animated-repeat")),t.classList.contains("below")&&!t.classList.contains("inactive")){m.classList.remove("active"),d.classList.add("expanded"),u.classList.add("expanded");const n=t.getAttribute("data-drupal-menu-link-key"),s=t.querySelector(`.navigation-assistant-submenu[data-drupal-menu-link-key="${n}"]`).cloneNode();if(s.length>0){s.classList.remove("hidden"),s.classList.add("clone");const n=document.querySelector(".navigation-assistant-content ul.current");n.length>0&&n.classList.remove("current"),s.classList.add("current");const a=t.parentElement;a.style.display="none",a.insertAfter(s);const i=t.getAttribute("data-description")||0;i.length>0&&e.querySelector(".navigation-assistant-header").innerText(i),e.querySelector(".navigation-assistant-back").classList.remove("hidden"),e.querySelector(".navigation-assistant-header").classList.remove("no-arrow");}}},!1);}),o.map((t)=>{const {action:n,button:s,callback:a}=t;s&&s.addEventListener("click",()=>{const t=n&&n();(t||a)&&(m.classList.remove("active"),e.classList.add("show"),d.classList.remove("expanded"),u.classList.remove("expanded"),document.querySelector(".menu-link.btn-close").click(),t&&t.click(),a&&a());});});const n=(t)=>{const n=document.querySelector(".embeddedServiceHelpButton .helpButtonEnabled, .embeddedMessagingConversationButton");t.preventDefault(),m.classList.remove("active"),e.classList.add("show"),d.classList.remove("expanded"),u.classList.remove("expanded"),document.body.classList.add("chat-is-clicked"),document.querySelector(".menu-link.btn-close").click(),n&&document.querySelector(".embeddedServiceHelpButton .helpButtonEnabled, .embeddedMessagingConversationButton").click();};document.querySelectorAll('a[href="#chat-with-us"]').forEach((e)=>e.addEventListener("click",n)),e.addEventListener("click",(e)=>{const {target:t}=e;t.classList.contains("na-chat")&&n(e);}),window.addEventListener("consent.onetrust",(e)=>{e.detail.includes("C0004")?document.body.classList.add("accept-cookies"):document.body.classList.remove("accept-cookies");});}});}};}(Drupal,once,Cookies);;
2684!function(){"use strict";!function(t,e){t.behaviors.navigationAssistantFocusLock={attach(t){e("navigationAssistantFocusLockOnce",".navigation-assistant-container",t).forEach((t)=>{if(t){const e=t.querySelector(".navigation-assistant-button"),n=t.querySelector(".navigation-assistant-back .btn"),a=t.querySelector(".navigation-assistant-button-close"),o=[...t.querySelectorAll(".below >button")];let s=[],i=!1;const c=(e)=>{const o=`.navigation-assistant-links-list${e?":not(.hidden):not(.clone) > li >":".clone.current"} `,i=`\n            ${o} a[href],\n            ${o} [role=button],\n            ${o} button:not([disabled]):not(.btn-back),\n            ${o} [tabindex]:not([tabindex="-1"])\n          `;s.length=0,n.closest(".navigation-assistant-back.hidden")||s.push(n),s.push(...t.querySelectorAll(i)),a&&s.push(a),s[0].focus();},r=()=>{i&&document.removeEventListener("keydown",i);},d=(t)=>{setTimeout(()=>{var e;r(),c(t),e=s,i=(t)=>{const n=e[0],a=e[e.length-1];"Tab"===t.key&&(t.shiftKey?document.activeElement===n&&(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),n.focus()));},document.addEventListener("keydown",i);},501);};e&&(e.addEventListener("click",()=>{e.classList.contains("expanded")&&d(!0);}),e.addEventListener("keyup",(t)=>{"Enter"===t.key&&d(!0);})),a&&(a.addEventListener("click",()=>{r();}),a.addEventListener("keydown",(t)=>{"Enter"===t.key&&r();})),n&&(n.addEventListener("click",()=>{d(!0);}),n.addEventListener("keydown",(t)=>{"Enter"===t.key&&d(!0);})),o.length>0&&(jQuery(t).on("click",".below >button",()=>{d(!1);}),o.forEach((t)=>{t.addEventListener("click",()=>{d(!1);}),t.addEventListener("keydown",(t)=>{"Enter"===t.key&&d(!1);});}));}});}};}(Drupal,once);}();;
2685!function(e,t){e.behaviors.pager={attach(e){t("pager",".btn-open-pager",e).forEach((e)=>{const t=e.parentElement,o=t.querySelector(".pager__dropdown");e.addEventListener("click",()=>{const e=t.querySelector(".pager__item.is-active").offsetTop;t.classList.toggle("opened"),o.scrollTop=e;}),document.addEventListener("click",(e)=>{!t.classList.contains("opened")||e.target.closest(".pager__dropdown")||e.target.closest(".btn-open-pager")||t.classList.remove("opened");});});}};}(Drupal,once);;
2686!function(){"use strict";var e={2420:function(e,r,t){function a(e){if(!e)return;if(e.querySelectorAll(".swiper-slide").length<=1)return;const r=e.closest(".paragraph-cards__content"),t={prev:r.querySelector(".swiper-controls__prev"),next:r.querySelector(".swiper-controls__next")},a=(e)=>{const {visibleSlides:r,slides:t}=e;t.forEach((e)=>{e.querySelectorAll("a:not(.ignore), button:not(.ignore)").forEach((t)=>{t.setAttribute("tabIndex",r.includes(e)?0:-1);});});};return new Swiper(e,{spaceBetween:24,slidesPerView:"auto",freeMode:!0,watchSlidesProgress:!0,watchOverflow:!0,pagination:{el:r.querySelector(".swiper-controls__pagination"),type:"progressbar",clickable:!0,clickableClass:"active"},navigation:{nextEl:t.next,prevEl:t.prev},breakpoints:{1201:{spaceBetween:32}},on:{lock(){r.classList.remove("has-controls"),t.prev?.setAttribute("aria-hidden","true"),t.next?.setAttribute("aria-hidden","true");},unlock(){r.classList.add("has-controls"),t.prev?.setAttribute("aria-hidden","false"),t.next?.setAttribute("aria-hidden","false");},init:(e)=>{const r=e.el.querySelectorAll('*[tabIndex="-1"]');r?.forEach((e)=>e.classList.add("ignore")),a(e);},slideChange:a}});}t.d(r,{E:function(){return a;}}),Drupal.paragraphCards=Drupal.paragraphCards||{},Drupal.paragraphCards.initParagraphCardsSwiper=a;}},r={};function t(a){var n=r[a];if(void 0!==n)return n.exports;var o=r[a]={exports:{}};return e[a](o,o.exports,t),o.exports;}t.d=function(e,r){if(Array.isArray(r))for(var a=0;a<r.length;){var n=r[a++],o=r[a++];t.o(e,n)?0===o&&a++:0===o?Object.defineProperty(e,n,{enumerable:!0,value:r[a++]}):Object.defineProperty(e,n,{enumerable:!0,get:o});}else for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]});},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r);};var a=t(2420);!function(e,r){e.behaviors.paragraphCards={attach(e){r("paragraphCardsOnce",".paragraph-cards .cards-swiper",e).forEach((e)=>{(0,a.E)(e);});}};}(Drupal,once);}();;
2687(function(Drupal){Drupal.platformUiProcessTemplate=function(target,data){const template=target.content;let clonedContent=document.importNode(template,true);clonedContent.querySelectorAll("[data-bool]").forEach((item)=>{const key=item.dataset.bool;if(data[key])item.removeAttribute('data-bool');else item.remove();});clonedContent.querySelectorAll("[data-text]").forEach((item)=>{const key=item.dataset.text;if(data[key]){item.textContent=data[key];item.removeAttribute('data-text');}else item.remove();});clonedContent.querySelectorAll("[data-html]").forEach((item)=>{const key=item.dataset.html;if(data[key]){item.innerHTML=data[key];item.removeAttribute('data-html');}else item.remove();});clonedContent.querySelectorAll("a[data-url]").forEach((item)=>{const key=item.dataset.url;if(data[key]){item.href=data[key];item.removeAttribute('data-url');}else item.remove();});clonedContent.querySelectorAll("img[data-img]").forEach((item)=>{const key=item.dataset.img;if(data[key]){item.src=data[key];item.alt=data['title']??'';item.removeAttribute('data-img');}else item.remove();});clonedContent.querySelectorAll("[data-json]").forEach((item)=>{const key=item.dataset.json;
2687if(data[key]){Object.entries(data[key]).forEach(([idx,value])=>item.dataset[idx]=value);item.removeAttribute('data-json');}else item.remove();});clonedContent.querySelectorAll("[data-actions]").forEach((item)=>{const key=item.dataset.actions;if(data[key]){data[key]&&data[key].forEach((el)=>{const {label,url,action,type,modifiers}=el;let output=``;if(label&&(url||action)){const classes=`btn btn-md btn-${type||'primary'}${modifiers?` ${modifiers}`:``}`;if(action){output=document.createElement('button');output.addEventListener('click',action);}else{output=document.createElement('a');output.setAttribute('href',url);}output.className+=classes;output.setAttribute('aria-label',label);output.innerText=label;}item.append(output);});item.removeAttribute('data-actions');}else item.remove();});return clonedContent;};})(Drupal);;
2688(function(Drupal,drupalSettings,once){Drupal.createCustomModal=(data)=>{return Drupal.platformUiProcessTemplate(document.getElementById('platform_ui__custom_modal_template'),data);};Drupal.platformModal=function(elementTemplate,options={}){let dialog={open:false,returnValue:undefined};let dialogElement=elementTemplate;let dialogElementWrapper;function clearDialog(isAjax){if(!isAjax&&dialogElementWrapper)dialogElementWrapper.innerHTML='';if(options.dialogOffCanvas)dialogElement.classList.remove('platform_modal-of-canvas-open');else dialogElement.className='platform_modal';}function openDialog(settings){settings=Object.assign({},options,settings);const extraClasses=[].concat(settings.dialogClass||[]).concat((settings.classes&&settings.classes['ui-dialog'])||[]);const dialogClass=extraClasses.join(' ').split(/\s+/).filter(Boolean);if(settings.isAjax)clearDialog(true);else{dialogElement=options['idModal']?document.getElementById(options['idModal']):document.getElementById('drupal-platform-modal');dialogElementWrapper=dialogElement.querySelector('.platform_modal-wrapper');clearDialog(false);dialogElementWrapper.appendChild(elementTemplate);}let element=dialogElement;window.dispatchEvent(new CustomEvent('platform_modal:beforecreate',{detail:{dialog,element,settings}}));if(settings.modal){document.body.classList.add('platform_modal-body-hidden');dialogElement.classList.add('platform_modal-visible',...dialogClass);}else switch(true){case settings.dialogOffCanvas:if(!dialogElement.classList.contains('platform_modal-of-canvas'))Promise.resolve(dialogElement.classList.add('platform_modal-of-canvas','platform_modal-visible',...dialogClass)).then(()=>dialogElement.classList.add('platform_modal-of-canvas-open',...dialogClass));else dialogElement.classList.add('platform_modal-of-canvas-open',...dialogClass);break;default:dialogElement.classList.add('platform_modal-non-modal','platform_modal-visible',...dialogClass);break;}window.dispatchEvent(new CustomEvent('platform_modal:aftercreate',{detail:{dialog,element,settings}}));}function closeDialog(value){dialogElement.classList.remove('platform_modal-visible');dialog.returnValue=value;document.body.classList.remove('platform_modal-body-hidden');Drupal.detachBehaviors(dialogElement,null,'unload');window.dispatchEvent(new CustomEvent('platform_modal:destroyevents',{detail:{dialog,element:dialogElement}}));}dialog.show=function(isAjax=false){openDialog({modal:false,isAjax});};dialog.showModal=function(isAjax=false){openDialog({modal:true,isAjax});};dialog.close=function(){let element=dialogElement;window.dispatchEvent(new CustomEvent('platform_modal:beforeclose',{detail:{dialog,element,options}}));if(options.confirmation==='1'||options.confirmation==='true'){const modal=Drupal.createCustomModal({content:options.confirmationData&&options.confirmationData.content?options.confirmationData.content:'',title:options.confirmationData&&options.confirmationData.text?options.confirmationData.text:Drupal.t('Are you sure?'),content:options.confirmationData&&options.confirmationData.content?options.confirmationData.content:'',buttons:[{label:options.confirmationData&&options.confirmationData.closeButtonText?options.confirmationData.closeButtonText:Drupal.t('Close'),action:()=>{window.dispatchEvent(new CustomEvent('platform_modal:beforeclose',{detail:{dialog,element}}));let returnValue=options.closeReturnValue?options.closeReturnValue:{};closeDialog(returnValue);window.dispatchEvent(new CustomEvent('platform_modal:afterclose',{detail:{dialog,element}}));},type:'primary',modifiers:'platform_modal-close'},{label:options.confirmationData&&options.confirmationData.backButtonText?options.confirmationData.backButtonText:Drupal.t('Back'),action:()=>{},type:'secondary',modifiers:'platform_modal-close js-modal-focus'}]});Drupal.platformModal(modal,{idModal:'drupal-platform-modal-confirmation'}).show();return;}closeDialog({});window.dispatchEvent(new CustomEvent('platform_modal:afterclose',{detail:{dialog,element,options}}));};return dialog;};Drupal.behaviors.jsCustomModal={attach:function(context,settings){once('jsCustomModal','.js-custom-modal',context).forEach((modal)=>{const dialogOptions=JSON.parse(modal.dataset.dialogOptions);modal.addEventListener('click',()=>Drupal.platformModal(Drupal.createCustomModal(dialogOptions.customModal),{...dialogOptions,customModal:null}).show());});}};})(Drupal,drupalSettings,once);;
2689const setupCloseHandlers=(modal)=>{const {dialog,element}=modal.detail;const handlerClickCloseEvent=(e)=>{const isCloseButton=e.target.closest('.platform_modal-close')||(!e.target.closest('.platform_modal-button')&&!e.target.closest('.platform_modal-wrapper'));if(isCloseButton){e.preventDefault();e.stopPropagation();dialog.close();}};element.addEventListener('click',handlerClickCloseEvent);const handlerEscButton=(e)=>e.key==='Escape'&&dialog.close();document.body.addEventListener('keydown',handlerEscButton);const removeHandlers=(e)=>{if(e.detail.element===element){element.removeEventListener('click',handlerClickCloseEvent);document.body.removeEventListener('keydown',handlerEscButton);window.removeEventListener('platform_modal:destroyevents',removeHandlers);}};window.addEventListener('platform_modal:destroyevents',removeHandlers);};(function(Drupal){function createDialog(dialogType){const dialog=document.createElement('dialog');dialog.id=`drupal-platform-modal${dialogType?`-${dialogType}`:``}`;dialog.className='platform_modal';const wrapper=document.createElement('div');wrapper.className='platform_modal-wrapper';dialog.appendChild(wrapper);document.body.appendChild(dialog);}createDialog();createDialog('confirmation');Drupal.AjaxCommands.prototype.openPlatformDialog=function(ajax,response,status){if(!response.selector)return false;let dialog=document.querySelector(response.selector);function openDialog(){if(!ajax.wrapper&&!response.selector.includes('platform_modal-wrapper'))response.selector=response.selector.toString()+' .platform_modal-wrapper';response.command='insert';response.method='html';if(Drupal.autocomplete!==undefined&&Drupal.autocomplete.options!==undefined)Drupal.autocomplete.options.appendTo=response.selector;Promise.resolve(ajax.commands.insert(ajax,response,status)).then(()=>{const platformModal=Drupal.platformModal(dialog,response.dialogOptions||{});response.dialogOptions&&response.dialogOptions.modal?platformModal.showModal(true):platformModal.show(true);});}openDialog();};Drupal.AjaxCommands.prototype.closePlatformDialog=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog)Drupal.platformModal(dialog).close();};window.addEventListener('platform_modal:aftercreate',setupCloseHandlers);})(Drupal);;
2690!function(){"use strict";!function(a,t){a.behaviors.iframePlayNowBtn={attach(e){t("iframePlayNowBtnOnce",".js-play-now-btn",e).forEach((t)=>{t.addEventListener("click",()=>{const e=a.platformUiProcessTemplate(document.getElementById("platform_ui__custom_modal_template"),{title:t.dataset.videoTitle,hasClose:!0,iframe:`<iframe src="${t.dataset.videoUrl}${t.dataset.videoUrl.indexOf("?")>-1?"&":"?"}autoplay=1&mute=1" frameborder="0" allowtransparency="" width="" height="" allow="autoplay" class="video-playing"/>`});a.platformModal(e,{idModal:"drupal-platform-modal-confirmation"}).show();});});}};}(Drupal,once);}();;
2691(function($,Drupal,drupalSettings){Drupal.behaviors.jqueryUiDatepickerLocale={attach:function attach(context,settings){$.datepicker.regional['drupal-locale']=$.extend({closeText:Drupal.t('Done'),prevText:Drupal.t('Prev'),nextText:Drupal.t('Next'),currentText:Drupal.t('Today'),monthNames:[Drupal.t('January',{},{context:'Long month name'}),Drupal.t('February',{},{context:'Long month name'}),Drupal.t('March',{},{context:'Long month name'}),Drupal.t('April',{},{context:'Long month name'}),Drupal.t('May',{},{context:'Long month name'}),Drupal.t('June',{},{context:'Long month name'}),Drupal.t('July',{},{context:'Long month name'}),Drupal.t('August',{},{context:'Long month name'}),Drupal.t('September',{},{context:'Long month name'}),Drupal.t('October',{},{context:'Long month name'}),Drupal.t('November',{},{context:'Long month name'}),Drupal.t('December',{},{context:'Long month name'})],monthNamesShort:[Drupal.t('Jan'),Drupal.t('Feb'),Drupal.t('Mar'),Drupal.t('Apr'),Drupal.t('May'),Drupal.t('Jun'),Drupal.t('Jul'),Drupal.t('Aug'),Drupal.t('Sep'),Drupal.t('Oct'),Drupal.t('Nov'),Drupal.t('Dec')],dayNames:[Drupal.t('Sunday'),Drupal.t('Monday'),Drupal.t('Tuesday'),Drupal.t('Wednesday'),Drupal.t('Thursday'),Drupal.t('Friday'),Drupal.t('Saturday')],dayNamesShort:[Drupal.t('Sun'),Drupal.t('Mon'),Drupal.t('Tue'),Drupal.t('Wed'),Drupal.t('Thu'),Drupal.t('Fri'),Drupal.t('Sat')],dayNamesMin:[Drupal.t('Su'),Drupal.t('Mo'),Drupal.t('Tu'),Drupal.t('We'),Drupal.t('Th'),Drupal.t('Fr'),Drupal.t('Sa')],dateFormat:Drupal.t('mm/dd/yy'),firstDay:0,isRTL:0},drupalSettings.jquery.ui.datepicker);$.datepicker.setDefaults($.datepicker.regional[settings.jquery.ui.datepicker.langCode]);}};})(jQuery,Drupal,drupalSettings);;
2692var gigyaHelper={addGigyaScript:function(apiKey,lang,apiDomain){var gig=document.createElement('script');gig.type='text/javascript';gig.async=true;gig.src=('https:'===document.location.protocol?'https://cdns':'http://cdn')+'.'+apiDomain+'/js/gigya.js?apiKey='+apiKey+'&lang='+lang;document.getElementsByTagName('head')[0].appendChild(gig);},addGigyaFunctionCall:function(method,params){window.gigyaCmsInit=window.gigyaCmsInit||[];var func={function:method,parameters:params};window.gigyaCmsInit.push(func);},onLoginHandler:function(res){var data={"uid":res.UID,"uigSig":res.UIDSignature,"sigTimestamp":res.signatureTimestamp},serverSideUrl="edit this to point to the url that would receive the the info";jQuery.ajax(serverSideUrl,{data,dataType:"text",type:"POST",async:false,global:false}).done(function(res){var response=JSON.parse(res);if(response.success==="success"){}else gigya.accounts.logout();}).fail(function(){gigya.accounts.logout();});},runGigyaCmsInit:function(){if(window.gigyaCmsInit){var length=window.gigyaCmsInit.length,element=null;if(length>0)for(var i=0;i<length;i++){element=window.gigyaCmsInit[i];func=element.function;var parts=func.split("\.");var f=gigya[parts[0]][parts[1]];if(typeof f==="function")f(element.parameters);}}}};;
2693(function($,Drupal,drupalSettings){'use strict';var init=function(){window.__gigyaConf=drupalSettings.gigya.globalParameters;gigyaHelper.addGigyaScript(drupalSettings.gigya.apiKey,drupalSettings.gigya.lang,drupalSettings.gigya.dataCenter);drupalSettings.gigya.isInit=true;};Drupal.behaviors.gigyaInit={attach:function(context,settings){if(!('isInit' in drupalSettings.gigya))init();}};})(jQuery,Drupal,drupalSettings);;
2694var getUrlPrefix=function(){return drupalSettings.path.pathPrefix?(drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix):drupalSettings.path.baseUrl;};(function($,Drupal,drupalSettings){'use strict';if(!String.prototype.startsWith)String.prototype.startsWith=function(searchString,position){position=position||0;return this.indexOf(searchString,position)===position;};jQuery.fn.loginRedirect=function(redirectTarget){if(!redirectTarget.startsWith('http')){if(redirectTarget.startsWith(drupalSettings.path.baseUrl))redirectTarget=redirectTarget.substring(drupalSettings.path.baseUrl.length);redirectTarget=drupalSettings.gigya.raas.origin+drupalSettings.path.baseUrl+redirectTarget;}if(typeof sendSetSSOToken==='undefined'||sendSetSSOToken===false)location.replace(redirectTarget);else{if(sendSetSSOToken===true)gigya.setSSOToken({redirectURL:redirectTarget});}};jQuery.fn.logoutRedirect=function(redirectTarget){if(redirectTarget.startsWith(drupalSettings.gigya.raas.origin))redirectTarget=redirectTarget.substring(drupalSettings.gigya.raas.origin.length);if(redirectTarget.startsWith(drupalSettings.path.baseUrl))redirectTarget=redirectTarget.substring(drupalSettings.path.baseUrl.length);redirectTarget=drupalSettings.gigya.raas.origin+drupalSettings.path.baseUrl+redirectTarget;document.location=redirectTarget;};var initLoginUI=function(){if(typeof drupalSettings.gigya.loginUIParams!=='undefined')$.each(drupalSettings.gigya.loginUIParams,function(index,value){value.context={id:value.containerID};gigya.services.socialize.showLoginUI(value);});};var getRememberMeStatus=function(res){var remember=false;if(typeof res.groupContext!=='undefined'){var groupRemember=JSON.parse(res.groupContext).remember;if(typeof groupRemember!=='undefined')remember=groupRemember;}if(typeof res.remember!=='undefined')remember=res.remember;return remember;};var onLoginHandler=function(res){var remember=getRememberMeStatus(res);gigya.setGroupContext({"remember":remember});var url=new URL(window.location.href);var destination='';if(url.searchParams.get('destination'))destination='?destination='+url.searchParams.get('destination');else destination='?destination='+url.pathname;var data={"uid":res.UID,"uid_sig":res.UIDSignature,"sig_timestamp":res.signatureTimestamp,"id_token":res.id_token,"remember":remember};var ajaxSettings={url:getUrlPrefix()+'gigya/raas-login'+destination,submit:data};var myAjaxObject=Drupal.ajax(ajaxSettings);myAjaxObject.execute();};var profileUpdated=function(data){if(data.response.errorCode===0){var gigyaData={UID:data.response.UID,UIDSignature:data.response.UIDSignature,signatureTimestamp:data.response.signatureTimestamp,id_token:data.response.id_token};var ajaxSettings={url:getUrlPrefix()+'gigya/raas-profile-update',submit:{gigyaData},success:function(response,status){$(document).trigger('onGigyaProfileUpdate');}};var myAjaxObject=Drupal.ajax(ajaxSettings);myAjaxObject.execute();}else $(document).trigger('onGigyaProfileUpdateFail');};var checkLogout=function(){var logoutCookie=gigya.utils.cookie.get('Drupal.visitor.gigya');if(logoutCookie==='gigyaLogOut'){gigya.accounts.logout();gigya.utils.cookie.remove('Drupal.visitor.gigya');}};var onLogoutHandler=function(){var data={};var ajaxSettings={url:getUrlPrefix()+'gigya/raas-logout',submit:data};var myAjaxObject=Drupal.ajax(ajaxSettings);myAjaxObject.execute();};
2694var validateSessionAndCreateUbcCookie=function(response){if(response['errorCode']===0){var data={"uid":response.UID,"uid_sig":response.UIDSignature,"sig_timestamp":response.signatureTimestamp,"id_token":response.id_token,"is_session_validation_process":true};var ajaxSettings={url:getUrlPrefix()+'gigya/raas-login',submit:data};var myAjaxObject=Drupal.ajax(ajaxSettings);myAjaxObject.execute();}else gigya.accounts.logout();};var initRaaS=function(){if(drupalSettings.gigya.enableRaaS){var id;if(drupalSettings.gigya.shouldValidateSession)if(drupalSettings.gigya.atype===1)gigya.accounts.getAccountInfo({callback:validateSessionAndCreateUbcCookie});else gigya.accounts.getAccountInfo({include:'id_token'},{callback:validateSessionAndCreateUbcCookie});$(once('gigya-raas','.gigya-raas-login')).each(function(){$(this).on('click',function(e){e.preventDefault();gigya.accounts.showScreenSet(drupalSettings.gigya.raas.login);drupalSettings.gigya.raas.linkId=$(this).attr('id');});});$(once('gigya-raas','.gigya-raas-reg')).each(function(){$(this).on('click',function(e){e.preventDefault();gigya.accounts.showScreenSet(drupalSettings.gigya.raas.register);drupalSettings.gigya.raas.linkId=$(this).attr('id');});});$(once('gigya-raas','.gigya-raas-prof, a[href="/user"]')).each(function(){$(this).on('click',function(e){e.preventDefault();drupalSettings.gigya.raas.profile.onAfterSubmit=profileUpdated;gigya.accounts.showScreenSet(drupalSettings.gigya.raas.profile);});});var loginDiv=$('#gigya-raas-login-div');if(loginDiv.length>0&&(typeof drupalSettings.gigya.raas.login!=='undefined')){id=loginDiv.eq(0).attr('id');drupalSettings.gigya.raas.login.containerID=id;drupalSettings.gigya.raas.linkId=id;gigya.accounts.showScreenSet(drupalSettings.gigya.raas.login);}var regDiv=$('#gigya-raas-register-div');if(regDiv.length>0&&(typeof drupalSettings.gigya.raas.register!=='undefined')){id=regDiv.eq(0).attr('id');drupalSettings.gigya.raas.register.containerID=id;drupalSettings.gigya.raas.linkId=id;gigya.accounts.showScreenSet(drupalSettings.gigya.raas.register);}var profDiv=$('#gigya-raas-profile-div');if((profDiv.length>0)&&(typeof drupalSettings.gigya.raas.profile!=='undefined')){drupalSettings.gigya.raas.profile.containerID=profDiv.eq(0).attr('id');drupalSettings.gigya.raas.profile.onAfterSubmit=profileUpdated;gigya.accounts.showScreenSet(drupalSettings.gigya.raas.profile);}}};var initCustomScreenSet=function(){if(drupalSettings.gigya.enableRaaS){var customScreenSets=drupalSettings.gigya.raas.customScreenSets;customScreenSets.forEach(function(custom_screenset){if(typeof custom_screenset.display_type!=='undefined'){var screenset_params={screenSet:custom_screenset.desktop_screenset,mobileScreenSet:custom_screenset.mobile_screenset,startScreen:custom_screenset.container_id};if(parseInt(custom_screenset.sync_data)===1)screenset_params['onAfterSubmit']=processFieldMapping;if(custom_screenset.display_type==='popup')$('#'+custom_screenset.link_id).click(function(e){e.preventDefault();gigya.accounts.showScreenSet(screenset_params);drupalSettings.gigya.raas.linkId=$(this).attr('id');});else{if(custom_screenset.display_type==='embed'){screenset_params['containerID']=custom_screenset.container_id;gigya.accounts.showScreenSet(screenset_params);}}}});}};const linkDataForMenuLinkScreen=[{hashLink:"#gigya-login",screen:drupalSettings.gigya.raas.login},{hashLink:"#gigya-register",screen:drupalSettings.gigya.raas.register},{hashLink:"#gigya-editProfile",screen:drupalSettings.gigya.raas.profile}];var findTheRightScreenAndShowIt=function(){linkDataForMenuLinkScreen.forEac
2694h(showMenuLinkScreen);};var showMenuLinkScreen=function(linkData){if($(location).attr('hash')===linkData.hashLink)if(typeof gigya!=='undefined'){if(linkData.hashLink==='#gigya-editProfile')drupalSettings.gigya.raas.profile.onAfterSubmit=profileUpdated;gigya.accounts.showScreenSet(linkData.screen);drupalSettings.gigya.raas.linkId=$(this).attr('id');}else setTimeout(showMenuLinkScreen,200);};addEventListener('hashChange',findTheRightScreenAndShowIt);$('.menu a').click(function(){findTheRightScreenAndShowIt();});var processFieldMapping=function(data){var gigyaData={UID:data.response.UID,UIDSignature:data.response.UIDSignature,signatureTimestamp:data.response.signatureTimestamp};var ajaxSettings={url:getUrlPrefix()+'gigya/raas-process-fieldmapping',submit:{gigyaData}};var myAjaxObject=Drupal.ajax(ajaxSettings);myAjaxObject.execute();};var init=function(){if(drupalSettings.gigya.enableRaaS)gigyaHelper.addGigyaFunctionCall('accounts.addEventHandlers',{onLogin:onLoginHandler,onLogout:onLogoutHandler});drupalSettings.gigya.isRaasInit=true;};Drupal.behaviors.gigyaRaasInit={attach:function(context,settings){if(!('isRaasInit' in drupalSettings.gigya)){window.onGigyaServiceReady=function(serviceName){checkLogout();gigyaHelper.runGigyaCmsInit();initLoginUI();initRaaS();initCustomScreenSet();};init();}}};Drupal.gigyaRaasInit=function(){if('isRaasInit' in drupalSettings.gigya){checkLogout();gigyaHelper.runGigyaCmsInit();initLoginUI();initRaaS();initCustomScreenSet();init();}};})(jQuery,Drupal,drupalSettings);;
2695(function($,Drupal,drupalSettings,once){window.ciamProfileAjaxCallback=function(data){$('.profile-block-'+drupalSettings.gigya.raas.linkId).addClass('profile-block-ajax-processing');var gigyaBlockData={plugin:drupalSettings.gigya.raas.linkId,page_id:drupalSettings.np_gigya.np_gigya_page.page_id};if(typeof (data.response)!='undefined'&&data.response.errorCode===0){gigyaBlockData.UID=data.response.UID;gigyaBlockData.UIDSignature=data.response.UIDSignature;gigyaBlockData.signatureTimestamp=data.response.signatureTimestamp;gigyaBlockData.status=data.response.status;}var ajaxSettings={url:Drupal.url('np-gigya/np-block-update-callback'),submit:{gigyaBlockData}};Drupal.ajax(ajaxSettings).execute();};var initResetScreenset=function(){if(drupalSettings.gigya.enableRaaS){var passResetDiv=$('#gigya-raas-password-reset-div');if((passResetDiv.length>0)&&(typeof drupalSettings.gigya.raas.resetPassword!=='undefined')){drupalSettings.gigya.raas.resetPassword.containerID=passResetDiv.eq(0).attr('id');gigya.accounts.showScreenSet(drupalSettings.gigya.raas.resetPassword);}}};var initCustomScreenSets=function(){if(drupalSettings.gigya.enableRaaS)$(once('initCustomScreenSets','div[data-type="customscreenset"]')).each(function(){var display_type=$(this).data('display-type');if(typeof display_type!=='undefined'){var desktop=$(this).data('desktop');var mobile=$(this).data('mobile');var container_id=$(this).data('container-id');var link_id=$(this).data('link-id');var sync=$(this).data('sync');var start_screen=$(this).data('start-screen');var screenset_params={screenSet:desktop,mobileScreenSet:mobile};if(start_screen)screenset_params['startScreen']=start_screen;if(typeof drupalSettings.gigya.raas.assetsOverrides!=='undefined'&&typeof drupalSettings.gigya.raas.assetsOverrides[desktop]!=='undefined'){let custom_js=drupalSettings.gigya.raas.assetsOverrides[desktop]['js']||'';let js_hooks=window.gigya.utils.JSON.deserialize(custom_js);for(const js_key in js_hooks)if(js_hooks.hasOwnProperty(js_key))screenset_params[js_key]=js_hooks[js_key];}if(parseInt(sync)===1)screenset_params['onAfterSubmit']=function(data){var gigyaData={UID:data.response.UID,UIDSignature:data.response.UIDSignature,signatureTimestamp:data.response.signatureTimestamp};var ajaxSettings={url:getUrlPrefix()+'gigya/raas-process-fieldmapping',submit:{gigyaData}};var myAjaxObject=Drupal.ajax(ajaxSettings);myAjaxObject.execute();};if(display_type==='popup')$(once('gigya-raas','#'+link_id)).click(function(e){e.preventDefault();gigya.accounts.showScreenSet(screenset_params);drupalSettings.gigya.raas.linkId=$(this).attr('id');});else{if(display_type==='embed'){screenset_params['containerID']=container_id;gigya.accounts.showScreenSet(screenset_params);}}}});};var setSettings=function(){if(drupalSettings.gigya.enableRaaS){for(const key in drupalSettings.gigya.raas)if(drupalSettings.gigya.raas.hasOwnProperty(key)){let screenSetId=drupalSettings.gigya.raas[key]['screenSet'];if(typeof screenSetId!=='undefined'&&typeof drupalSettings.gigya.raas.assetsOverrides!=='undefined'&&typeof drupalSettings.gigya.raas.assetsOverrides[screenSetId]!=='undefined')if(typeof drupalSettings.gigya.raas.assetsOverrides[screenSetId]['js']!=='undefined'){let custom_js=drupalSettings.gigya.raas.assetsOverrides[screenSetId]['js']||'';let js_hooks=window.gigya.utils.JSON.deserialize(custom_js);for(const js_key in js_hooks)if(js_hooks.hasOwnProperty(js_key))drupalSettings.gigya.raas[key][js_key]=js_hooks[js_key];}}let css_overrides=[];if(typeof drupalSettings.gigya.raas.assetsOverrides!=='undefined'){for(const screenSetId in drupalSettings.gigya.raas.assetsOverrides)if(drupalSettings.gigya.raas.assetsOverrides.hasOwnProperty(screenSetId)&&typeof drupalSettings.gigya.raas.assetsOverrides[screenSetId]['css']!=='undefined')css_overrides.push(screenSetId);}
2695css_overrides.forEach(function(css_override_id){const observer=new MutationObserver(function(mutations,observer){for(const mutation of mutations)mutation.addedNodes.forEach(function(node){if(node.id===css_override_id){let screenSetDiv=document.getElementById(css_override_id);let styles_added=screenSetDiv.getAttribute('data-styles-added');if(styles_added!=='1'){const style=document.createElement("style");style.textContent=drupalSettings.gigya.raas.assetsOverrides[css_override_id]['css'];document.head.appendChild(style);screenSetDiv.setAttribute('data-styles-added','1');observer.disconnect();}}});});observer.observe(document,{childList:true,subtree:true});});}};Drupal.behaviors.gigyaExtraRaasInit={attach:function(context,settings){var onGigyaExtraServiceReady=window.onGigyaServiceReady;window.onGigyaServiceReady=function(serviceName){setSettings();onGigyaExtraServiceReady();initResetScreenset();initCustomScreenSets();};}};Drupal.behaviors.npGigyaAjaxScreenLinks={attach:function(context,settings){if(typeof (settings.np_gigya)!='undefined'){var customScreenLinks=settings.np_gigya.np_gigya_links;Object.keys(customScreenLinks).forEach(function(key){var custom_screenset=customScreenLinks[key];$(once('gigya-popup','.'+custom_screenset.link_id)).addClass('popup-processed').click(function(e){e.preventDefault();var callFunctions=custom_screenset.callbacks;Object.keys(callFunctions).forEach(function(key){if(window[callFunctions[key]])custom_screenset[key]=window[callFunctions[key]];else delete custom_screenset[key];});gigya.accounts.showScreenSet(custom_screenset);drupalSettings.gigya.raas.linkId=$(this).attr('data-plugin');});});}}};})(jQuery,Drupal,drupalSettings,once);;
2696((Drupal,drupalSettings,once)=>{function ctaClickGtmEvent(event,data=''){const el=(data&&event&&event.currentTarget)||this;if(el.tagName&&(el.tagName==="A"&&el.href)||el.tagName==="BUTTON"||el.tagName==="SPAN"||(el.tagName==="INPUT"&&el.type==="submit")){let domain='';try{domain=new URL(el.href).hostname;}catch(e){}window.dataLayer=window.dataLayer||[];let link_text=el.innerText||'';if(el.tagName==="INPUT"&&el.type==="submit")link_text=el.value||'';let param={event:'cta_click',event_name:'cta_click',link_classes:el.className,link_domain:domain,link_id:el.getAttribute('id')||'',link_text,link_url:el.getAttribute('href'),'module_id':drupalSettings.np_datalayer.data.module_id,'module_name':drupalSettings.np_datalayer.data.module_name,'module_version':drupalSettings.np_datalayer.data.module_version};if(data){param.data=data;param.param_location='content';param.location_id=drupalSettings.ln_datalayer?.data?.content_id;}window.dataLayer.push(param);}}function buyNowClickGtmEvent(e){window.dataLayer=window.dataLayer||[];let params={event:'buynow_onsite_button_click',event_name:'buynow_onsite_button_click',item_brand:'',item_category:'',item_variant:'',item_subcategory:'',item_range:'',link_classes:this.className,link_id:this.getAttribute('id')||'',link_text:this.innerText,content_id:drupalSettings.ln_datalayer?.data?.content_id,content_name:drupalSettings.ln_datalayer?.data?.content_name,item_id:drupalSettings.ln_datalayer?.data?.content_id,item_name:drupalSettings.ln_datalayer?.data?.content_name,'module_id':drupalSettings.np_datalayer.data.module_id,'module_name':drupalSettings.np_datalayer.data.module_name,'module_version':drupalSettings.np_datalayer.data.module_version,vendor_name:this.getAttribute('data-vendor-name')||''};if(this.tagName&&this.tagName==="A"){let domain='';try{domain=new URL(this.href).hostname;}catch(e){}params.link_domain=domain;params.link_url=this.getAttribute('href');}window.dataLayer.push(params);}function addEventSelectorsFromSettings(eventType,baseSelector){let selector=baseSelector||'';if(drupalSettings.np_datalayer.eventsByCss[eventType].length!==0&&typeof drupalSettings.np_datalayer.eventsByCss[eventType]==='object'){selector=selector?selector+',':'';selector+=drupalSettings.np_datalayer.eventsByCss[eventType].join(',');}return selector;}Drupal.behaviors.npDatalayerEvents={attach(context){const ctaClickBaseSelector='[data-gtm-event-cta-click]';const ctaClickSelector=addEventSelectorsFromSettings('cta',ctaClickBaseSelector);
2696once('gtm-cta-click',ctaClickSelector,context).forEach(function(element,index){element.addEventListener('click',ctaClickGtmEvent);});const buyNowClickBaseSelector='[data-gtm-event-container="buynow_onsite_button_click"] button,[data-gtm-event-buynow-click]';const buyNowClickSelector=addEventSelectorsFromSettings('buy_now',buyNowClickBaseSelector);once('gtm-buynow-button-init',buyNowClickSelector,context).forEach(function(element,index){element.addEventListener('click',buyNowClickGtmEvent);});Drupal.npDatalayer=Drupal.npDatalayer||{};Drupal.npDatalayer.ctaGtmEventHandler=ctaClickGtmEvent;}};})(Drupal,drupalSettings,once);;
2697(function($,Drupal,drupalSettings,storageLocal,cookies,once){'use strict';const closeFAB=()=>{$('.navigation-assistant-notification').removeClass('active');$('.navigation-assistant').removeClass('expanded');$('.navigation-assistant-button').removeClass('expanded');$('.navigation-assistant-links-list__main').show();$('.navigation-assistant-links-list.clone').remove();document.removeEventListener('keyup',insideFAB);setTimeout(()=>{$('.navigation-assistant-back:not(.hidden) button').click();document.querySelector('.navigation-assistant-button').focus();},501);};const insideFAB=(e)=>{if(e.keyCode===27)closeFAB();};Drupal.behaviors.npNavigationAssistant={attach:function(context,settings){$(once('navigationAssistantOpenOnce','.navigation-assistant-button')).on('click',function(e){const elementCountNewItems=$('.navigation-assistant__count-new-items');const itemsNavAssistant=$('.navigation-assistant-links-list__main > .navigation-assistant-item[data-drupal-menu-link-key]');$('.navigation-assistant-notification').removeClass('active');$('.navigation-assistant-container').removeClass('animated');$('.navigation-assistant-container').removeClass('animated-repeat');$('.navigation-assistant').addClass('expanded');$('.navigation-assistant-button').addClass('expanded');if($(elementCountNewItems).hasClass('show')){$(elementCountNewItems).removeClass('show');const itemsAssistant=localStorage.hasOwnProperty('itemsAssistant')?JSON.parse(localStorage.getItem('itemsAssistant')):[];itemsNavAssistant.each((id,item)=>{const idElement=$(item).attr('data-drupal-menu-link-key').replace('menu_link_content:','');if(itemsAssistant.indexOf(idElement,0)<0){itemsAssistant.push(idElement);localStorage.setItem('itemsAssistant',JSON.stringify(itemsAssistant));}});}document.addEventListener('keyup',insideFAB);$(once('navigationAssistantCloseOutsideOnce','.navigation-assistant.expanded')).on('click',function(e){if($(e.target).hasClass('expanded')){$('.navigation-assistant-notification').removeClass('active');$('.navigation-assistant').removeClass('expanded');$('.navigation-assistant-button').removeClass('expanded');closeFAB();}});});$(once('navigationNotificationCloseOutsideOnce','.navigation-assistant-notification')).on('click',function(e){if($(e.target).hasClass('active')){$(e.target).removeClass('active');$('.navigation-assistant-button').removeClass('expanded');closeFAB();}});$(once('navigationAssistantCloseOnce','.navigation-assistant-button-close')).on('click',function(e){e.stopPropagation();$('.navigation-assistant-back:not(.hidden) button').click();$('.navigation-assistant-container').addClass('animated-repeat');$('.navigation-assistant-notification').removeClass('active');$('.navigation-assistant').removeClass('expanded');$('.navigation-assistant-button').removeClass('expanded');closeFAB();});$(once('navigationAssistantClickOnce','.navigation-assistant-content')).on('click','li.below:not(.inactive)',function(){$('.navigation-assistant-container').addClass('show');let key=$(this).attr('data-drupal-menu-link-key');let subMenu=$(this).children('.navigation-assistant-submenu[data-drupal-menu-link-key="'+key+'"]').clone();if(subMenu.length>0){subMenu.removeClass('hidden');subMenu.addClass('clone');let currentSubMenu=$('.navigation-assistant-content ul.current');if(currentSubMenu.length>0)currentSubMenu.removeClass('current');subMenu.addClass('current');let parentMenu=$(this).parent();parentMenu.hide();parentMenu.after(subMenu);let headerTitle=$(this).attr('data-description')||0;if(headerTitle.length>0)$('.navigation-assistant-header').text(headerTitle);$('.navigation-assistant-back').removeClass('hidden');$('.navigation-assistant-header').removeClass('no-arrow');}});$(once('navigationAssistantBackOnce','.navigation-assistant-back')).on('click','button',function(){let currentMenu=$('.navigation-assistant-content .current');let previousMenu=currentMenu.prev('ul');let lastMenu=previousMenu.prev('ul');currentMenu.remove();previousMenu.addClass('current');previousMenu.show();if(lastMenu.length<=0){$('.navigation-assistant-back').addClass('hidden');let headerElem=$('.navigation-assistant-header');headerElem.text(drupalSettings.np_navigation_assistant.assistantMenuTitle);headerElem.addClass('no-arrow');}});}};$(document).mouseup(function(event){$(document).trigger("assistantOutsideClick",[event]);});Drupal.behaviors.npNavigationAssistant.storage_get=function(plugin_id,key,styxkey=false){let cookie_name=styxkey?'STYXKEY_NavigationAssistant':'NavigationAssistant';
2697let cookie=cookies.get(cookie_name);let storage={};if(!cookie)return false;else storage=JSON.parse(cookie);if(storage[plugin_id])return storage[plugin_id][key];return false;};Drupal.behaviors.npNavigationAssistant.storage_set=function(plugin_id,key,value,styxkey=false){let storage={};let cookie_name=styxkey?'STYXKEY_NavigationAssistant':'NavigationAssistant';let cookie=cookies.get(cookie_name);if(cookie)storage=JSON.parse(cookie);if(storage[plugin_id])storage[plugin_id][key]=value;else storage[plugin_id]={[key]:value};cookies.set(cookie_name,JSON.stringify(storage),{path:'/',domain:document.domain,secure:true,expires:365,sameSite:'Lax'});};let pages_total=parseInt(Drupal.behaviors.npNavigationAssistant.storage_get('shared','pages_total'));if(pages_total>0)Drupal.behaviors.npNavigationAssistant.storage_set('shared','pages_total',pages_total+1);else Drupal.behaviors.npNavigationAssistant.storage_set('shared','pages_total',1);let visits=parseInt(Drupal.behaviors.npNavigationAssistant.storage_get('shared','visits'))||0;let pages_current=parseInt(Drupal.behaviors.npNavigationAssistant.storage_get('shared','pages_current'))||0;if(!cookies.get('session_timestamp')){cookies.set('session_timestamp',Math.round(new Date()/1000),{path:'/',domain:document.domain,secure:true,sameSite:'Lax'});pages_current=0;visits=visits>0?visits+1:1;}pages_current=pages_current>0?pages_current+1:1;Drupal.behaviors.npNavigationAssistant.storage_set('shared','visits',visits);Drupal.behaviors.npNavigationAssistant.storage_set('shared','pages_current',pages_current);Drupal.behaviors.npNavigationAssistant.storage_set('shared','current_path',encodeURI(location.pathname.replace('/','')));Drupal.AjaxCommands.prototype.NaShowNotification=function(ajax,response,status){Drupal.behaviors.npNavigationAssistant.checkTriggers(response.results);};Drupal.behaviors.npNavigationAssistant.checkTriggers=function(ajax_check_results=[]){if(drupalSettings.np_na_notifications&&once('np-na-notification-show','html').length){for(let [delta,trigger] of Object.entries(drupalSettings.np_na_notifications)){let pages_total=parseInt(Drupal.behaviors.npNavigationAssistant.storage_get('shared','pages_total'))||0,visits=parseInt(Drupal.behaviors.npNavigationAssistant.storage_get('shared','visits'))||1,session_timestamp=parseInt(cookies.get('session_timestamp')),current_time=Math.round(new Date()/1000),time_passed=current_time-session_timestamp,ajax_delay=ajax_check_results[trigger.id]?ajax_check_results[trigger.id].delay:null,ajax_check=ajax_check_results[trigger.id]?ajax_check_results[trigger.id].result:true,delay=ajax_delay?ajax_delay:trigger.delay;let static_check=true;if(trigger.behavior&&Drupal.behaviors[trigger.behavior].check)static_check=Drupal.behaviors[trigger.behavior].check();if(time_passed<(trigger.time-delay))delay=trigger.time-time_passed;if(delay<0)delay=0;delay=delay*1000;if(drupalSettings.np_navigation_assistant.delay!==0)delay=parseInt(drupalSettings.np_navigation_assistant.delay)+delay;if(trigger.expire&&!Drupal.behaviors.npNavigationAssistant.storage_get(trigger.id,'expire')){let endOfDay=new Date();endOfDay.setUTCHours(23,59,59,999);Drupal.behaviors.npNavigationAssistant.storage_set(trigger.id,'expire',endOfDay);}if(trigger.expire&&Drupal.behaviors.npNavigationAssistant.storage_get(trigger.id,'expire')&&current_time>Drupal.behaviors.npNavigationAssistant.storage_get(trigger.id,'expire')){Drupal.behaviors.npNavigationAssistant.storage_set(trigger.id,'expire',null);Drupal.behaviors.npNavigationAssistant.storage_set(trigger.id,'shown',false);}if(Drupal.behaviors.npNavigationAssistant.notShown(trigger.id)&&pages_total>=trigger.pages_total&&visits>=trigger.visits&&static_check&&ajax_check){setTimeout(function(){$('.navigation-assistant-notification').addClass('active');$(`[data-babyme-na-notification=${trigger.id}]`).show();Drupal.behaviors.npNavigationAssistant.storage_set(trigger.id,'shown',true);$('html').trigger('na:notification',{plugin:trigger.plugin,id:trigger.id});},delay);break;}}}};if(once('notificationNa','html').length)$(document).on('na:notification',function(event,data){$('.navigation-assistant-button').addClass('expanded');});Drupal.behaviors.npNavigationAssistant.notShown=function(id){return !Drupal.behaviors.npNavigationAssistant.storage_get(id,'shown');};
2697$(document).ready(function(){if(drupalSettings.np_na_notifications&&once('np-na-notification-track','html').length){for(let [delta,behavior] of Object.entries(drupalSettings.np_na_notifications_tracking))if(Drupal.behaviors[behavior].track)Drupal.behaviors[behavior].track();}if(drupalSettings.np_na_notifications_ajax&&drupalSettings.np_na_notifications_ajax.length&&once('np-na-notification-check','html').length){let remainingIds=drupalSettings.np_na_notifications_ajax.filter(Drupal.behaviors.npNavigationAssistant.notShown);if(remainingIds.length){let ajaxSettings={url:drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+'navigation-assistant/notification-check',submit:{ids:remainingIds}};const naNotificationsAjaxEvent=new CustomEvent('np-na-notifications-ajax',{detail:{ajaxSettings},cancelable:true});document.dispatchEvent(naNotificationsAjaxEvent);if(!naNotificationsAjaxEvent.defaultPrevented)Drupal.ajax(ajaxSettings).execute();}}else{if(drupalSettings.np_na_notifications&&once('np-na-notification-check','html').length)Drupal.behaviors.npNavigationAssistant.checkTriggers();}});})(jQuery,Drupal,drupalSettings,window.localStorage,window.Cookies,once);;
2698(function($,Drupal){Drupal.behaviors.eventDataLayerNavigationAssistant={attach:function(context,settings){window.dataLayer=window.dataLayer||[];$(once('openNavigationAssistantOnce','.navigation-assistant-button:not(.expanded)')).on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Open',eventLabel:'Navigation-Assistant-Open'});window.dataLayer.push({event:'cta_click',event_name:'cta_click',link_classes:this.className,link_domain:window.location.host,link_id:this.getAttribute('id')||'',link_text:'Navigation Assistant Open',link_url:'',module_id:'np_datalayer',module_name:'NP Datalayer',module_version:null});});$(once('closeNavigationAssistantOnce','.navigation-assistant-button-close')).on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Close',eventLabel:'Navigation-Assistant-Close'});});$(once('clickNavigationAssistantPersonalizationOnce','.navigation-assistant-links-list .na-personalize')).on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Personalization',eventLabel:'Navigation-Assistant-Personalization'});});$(once('clickNavigationAssistantProductFinder','.navigation-assistant-links-list .na-product-finder')).on("click",function(){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'ProductFinder',eventLabel:'Navigation-Assistant-ProductFinder'});});$(once('openChatOnce','.navigation-assistant-links-list .na-contact-us')).on("click",function(e){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Assistant-Support',eventLabel:'Navigation-Assistant-Support'});});$(once('assistantContactClick','.navigation-assistant-content')).on("click",".navigation-assistant-submenu li a",function(){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Support-SubMenu',eventLabel:$(this).text()});});$(once('assistantContactChatClick','.navigation-assistant-content')).on("click",".navigation-assistant-submenu li a.na-chat",function(){dataLayer.push({event:'tool',event_name:'assistant_tool',action:'sub_menu_chat_click',param_location:'content'});});$(once('assistantContactCallClick','.navigation-assistant-content')).on("click",".navigation-assistant-submenu li a.na-call",function(){dataLayer.push({event:'tool',event_name:'assistant_tool',action:'sub_menu_call_us_click',param_location:'content'});});$(once('assistantContactEmailClick','.navigation-assistant-content')).on("click",".navigation-assistant-submenu li a.na-email",function(){dataLayer.push({event:'tool',event_name:'assistant_tool',action:'sub_menu_email_click',param_location:'content'});});$(once('assistantSubMenuClickOnceCta','.navigation-assistant-content')).on("click",".navigation-assistant-submenu li a, .navigation-assistant-submenu li button",Drupal.npDatalayer.ctaGtmEventHandler);if(once('naNotificationOnce','html').length)$(window).on("na:notification",function(event,data){dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Trigger-Viewed',eventLabel:data.plugin});$(once('naNotificationClickOnce','.navigation-assistant-notification a')).on("click",function(){var value=data.plugin+"-"+drupalSettings.np_na_page_data.type+"-"+drupalSettings.np_na_page_data.title;dataLayer.push({event:'customEvent',eventCategory:'Navigation|Assistant',eventAction:'Trigger-Clicks',eventLabel:value});dataLayer.push({event:'tool',event_name:'assistant_tool',action:'proactive_trigger_click',param_location:'content'});});});}};})(jQuery,Drupal);;
2699(function($,Drupal,drupalSettings,cookies,once){Drupal.theme.npNotificationBarTop=function(){return ('<div data-js-el="notification-bar--top"></div>');};Drupal.theme.npNotificationBarTopSticky=function(){return ('<div data-js-el="notification-bar--top-sticky"></div>');};Drupal.theme.npNotificationBarBottom=function(){return ('<div data-js-el="notification-bar--bottom"></div>');};Drupal.theme.npNotificationBarBottomSticky=function(){return ('<div data-js-el="notification-bar--bottom-sticky"></div>');};Drupal.npNotificationBar=function(np_notification_bar,plugin_theme){this.id=np_notification_bar.id;this.plugin_theme=plugin_theme;this.use_ajax=np_notification_bar.use_ajax;this.settings=np_notification_bar;var npNotificationBar=this;if(this.use_ajax!==true){var template=document.createElement('div');template.innerHTML=np_notification_bar.rendered_content;this.template=template;this.displayNotificationBase().then(function(){npNotificationBar.setCloseEvent();});}else{var ajaxObject=Drupal.ajax({url:Drupal.url('np-notification-bar/ajax/get_content/'+this.id
2699)});ajaxObject.commands.destroyObject=function(ajax,response,status){Drupal.ajax.instances[this.instanceIndex]=null;};ajaxObject.execute().done(function(response){npNotificationBar.element=response.data.trim();var template=document.createElement('div');template.innerHTML=npNotificationBar.element;npNotificationBar.template=template;npNotificationBar.displayNotificationBase().then(function(){npNotificationBar.setCloseEvent();});});}};$.extend(Drupal.npNotificationBar.prototype,{setCloseEvent:function(){var npNotificationBar=this;var close_button=$(this.template).find('.notification-bar--close');$(close_button).on('click',function(event){event.preventDefault();npNotificationBar.closeNotificationBase();});},displayNotificationBase:function(){var npNotificationBar=this;var displayPluginFunction='display'+camelize(this.plugin_theme);if(this[displayPluginFunction]!==undefined)return new Promise(function(resolve){npNotificationBar[displayPluginFunction]();resolve();});},closeNotificationBase:function(){var settings=this.settings;if(settings.cookie.active!==undefined&&settings.cookie.active==='1'){var lifetime=parseInt(settings.cookie.lifetime);var date=new Date();date.setDate(date.getDate()+lifetime);var cookie_prefix=drupalSettings.np_notification_bar.cookie_prefix;var cookieName=cookie_prefix+'np_notification_bar_'+this.id;cookies.set(cookieName,1,{expires:date,path:settings.cookie.path,domain:settings.cookie.domain,secure:settings.cookie.secure});}var closePluginFunction='close'+camelize(this.plugin_theme);if(this[closePluginFunction]!==undefined)this[closePluginFunction]();}});Drupal.behaviors.npNotificationBar={attach:function(context,settings){$(once('npNotificationBar','html',context)).each(function(){if(settings.np_notification_bar!==undefined&&settings.np_notification_bar.entities!==undefined){var notification_bars=settings.np_notification_bar.entities;var cookie_prefix=settings.np_notification_bar.cookie_prefix;$('body',context).prepend(Drupal.theme('npNotificationBarTop'));$('body',context).prepend(Drupal.theme('npNotificationBarTopSticky'));$('body',context).append(Drupal.theme('npNotificationBarBottom'));$('body',context).append(Drupal.theme('npNotificationBarBottomSticky'));var skip_delayed_popup=cookies.get('np_notification_bar_skip_delayed_popup');$.each(notification_bars,function(plugin_theme,items){$.each(items,function(key,item){var is_closed;if(item.cookie.active!==undefined&&item.cookie.active==='1'){var cookie_name=cookie_prefix+'np_notification_bar_'+item.id;is_closed=cookies.get(cookie_name);}if(is_closed)return;if(skip_delayed_popup&&plugin_theme==='popup'&&item.delay>0)return;if(!availableForDevice(item.device_type))return;if(plugin_theme==='app_banner'&&getDeviceType()!=='android')return;if(item.display_periods!==undefined&&!availableByDisplayPeriod(item.display_periods))return;var notificationBar=new Drupal.npNotificationBar(item,plugin_theme,item.id);});});}});}};function camelize(str){str=str.replaceAll('_',' ');return str.replace(/(?:^\w|[A-Z]|\b\w)/g,function(word,index){return word.toUpperCase();}).replace(/\s+/g,'');}function availableForDevice(deviceTypes){if(Object.entries(deviceTypes).length===0)return true;const visitorDeviceType=getDeviceType();let deviceTypeCondition=false;$.each(deviceTypes,function(key,value){if(value&&key===visitorDeviceType)deviceTypeCondition=true;});return deviceTypeCondition;}function availableByDisplayPeriod(displayPeriods){if(displayPeriods.length===0)return true;const now=new Date().getTime();for(let $i=0;$i<displayPeriods.length;$i++){const period=displayPeriods[$i];if(period.start_date===undefined||period.end_date===undefined)continue;const startDate=period.start_date*1000;const endDate=period.end_date*1000;if(now>=startDate&&now<=endDate)return true;}return false;}function getDeviceType(){const userAgent=navigator.userAgent||navigator.vendor||window.opera;if(/android/i.test(userAgent))return 'android';if(/iPad|iPhone|iPod/.test(userAgent)&&!window.MSStream)return 'ios';return 'unknown';}})(jQuery,Drupal,drupalSettings,window.Cookies,once);;
2700(function($,Drupal,drupalSettings,cookies,once){$.extend(Drupal.npNotificationBar.prototype,{displayAlert:function(){if(this.settings.position==='top')if(this.settings.sticky)$('[data-js-el="notification-bar--top-sticky"]').append(this.template);else $('[data-js-el="notification-bar--top"]').append(this.template);else if(this.settings.sticky)$('[data-js-el="notification-bar--bottom-sticky"]')[0].append(this.template);else $('[data-js-el="notification-bar--bottom"]').append(this.template);var notificationBar=this;let data={id:notificationBar.settings.id,plugin_id:notificationBar.settings.plugin_id,name:notificationBar.settings.name};$('.notification-bar--alert .notification-bar__text a').on('click',function(event){data.type='link';Drupal.npDatalayer.ctaGtmEventHandler(event,data);});$('.notification-bar--alert .notification-bar__button').on('click',function(event){data.type='button';Drupal.npDatalayer.ctaGtmEventHandler(event,data);});$('.notification-bar--alert .notification-bar--close').on('click',function(event){data.type='close';Drupal.npDatalayer.ctaGtmEventHandler(event,data);});},closeAlert:function(){$(this.template).hide();}});})(jQuery,Drupal,drupalSettings,window.Cookies,once);;
2701(($,Drupal,drupalSettings,once)=>{if(!Drupal.autocomplete)return;const autocomplete={};autocomplete.getSettings=(input,globalSettings)=>{globalSettings=globalSettings||drupalSettings||{};const settings={auto_submit:false,delay:0,min_length:1,selector:':submit'};const search=$(input).data('search-api-autocomplete-search');if(search&&globalSettings.search_api_autocomplete&&globalSettings.search_api_autocomplete[search])$.extend(settings,globalSettings.search_api_autocomplete[search]);return settings;};Drupal.behaviors.searchApiAutocomplete={attach(context,settings){const s='.ui-autocomplete-input[data-search-api-autocomplete-search]';$(once('search-api-autocomplete',s,context)).each(function foreach(){const uiAutocomplete=$(this).data('ui-autocomplete');if(!uiAutocomplete)return;const $element=uiAutocomplete.menu.element;$element.data('search-api-autocomplete-input-id',this.id);$element.addClass('search-api-autocomplete-search');$element.attr('tabindex','-1');const elementSettings=autocomplete.getSettings(this,settings);if(elementSettings.delay)uiAutocomplete.options.delay=elementSettings.delay;if(elementSettings.min_length)uiAutocomplete.options.minLength=elementSettings.min_length;const oldSelect=uiAutocomplete.options.select;uiAutocomplete.options.select=function select(event,ui,...args){if(ui.item.url){if(event.keyCode===9)return false;window.location.href=ui.item.url;return false;}if(!ui.item.markup){const ret=oldSelect.apply(this,[event,ui,...args]);if(elementSettings.auto_submit&&elementSettings.selector)$(elementSettings.selector,this.form).trigger('click');return ret;}return false;};});}};Drupal.SearchApiAutocomplete=autocomplete;})(jQuery,Drupal,drupalSettings,once);;
2702(function($,Drupal,drupalSettings){'use strict';if(!Drupal.autocomplete)return;Drupal.behaviors.customSearchChangeDomain={attach:function(context){const domainSelector=once('cp-search-ch
2702ange-domain','.header-popup__content [data-drupal-selector="edit-domain"], .search-block [data-drupal-selector="edit-domain"]',context);if(!domainSelector.length)return;window.addEventListener('pageshow',()=>{domainSelector.forEach((item)=>{const checked=$(item).find("input[type=radio]").filter(":checked")[0];if(checked)checked.click();});});domainSelector.forEach((item)=>{domainClickHandler($(item).find("input[type=radio]").filter(":checked")[0]);$(item).find("input[type=radio]").on('click',function(){domainClickHandler(this);});});}};function domainClickHandler(element){if(!element)return;let autocomplete=$(element).parents('form').find('.ui-autocomplete-input');let path=$(autocomplete).attr('data-autocomplete-path');let searchParams=new URLSearchParams(path);searchParams.delete("domain");searchParams.append("domain",element.value);$(autocomplete).attr('data-autocomplete-path',decodeURIComponent(searchParams.toString()));Drupal.autocomplete.cache[$(autocomplete).attr('id')]={};}Drupal.behaviors.customSearchApiAutocomplete={attach:function(context,settings){$(once('custom-search-api-autocomplete','.header-popup__content .ui-autocomplete-input[data-search-api-autocomplete-search]',context)).each(function(){var uiAutocomplete=$(this).data('ui-autocomplete');if(!uiAutocomplete)return;$(this).autocomplete('option','appendTo','#search-results-container');uiAutocomplete._create=function(){this._super();this.widget().menu("option","items","> :not(.ui-autocomplete-sidebar)");};uiAutocomplete._resizeMenu=function(){var ul=this.menu.element;ul.css('height','auto');ul.css('min-height','auto');ul.outerWidth(this.element.outerWidth());var sidebar_height=ul.prop('scrollHeight');var mobile=window.matchMedia('(min-width: 1025px)');if(mobile.matches){var documentHeight=$(document).outerHeight();var autocompleteHeight=uiAutocomplete.element.offset().top+uiAutocomplete.element.height();var heightAutocomplete=autocompleteHeight+sidebar_height+40;if(documentHeight>heightAutocomplete)ul.css('min-height',sidebar_height);else{var heightAutocompleteMax=documentHeight-autocompleteHeight-40;ul.css('height',heightAutocompleteMax);}}};});}};})(jQuery,Drupal,drupalSettings);;
2703(function($,Drupal){'use strict';Drupal.behaviors.npSearchFacetsResetButton={attach:function(context,settings){$(document).ajaxComplete(function(event,xhr,settings){if($(".block-facets-ajax").hasClass('default-facet-block')){var checkedFacets=$(".block-facets-ajax input:checked");var resetButton=$('.facets-reset-link');if(checkedFacets.length!==0)resetButton.show();else resetButton.hide();}});}};})(jQuery,Drupal);;
2704((Drupal,once)=>{function triggerViewSort(){let input=document.querySelector('.views-sort form .form-radios input[value='+this.value+']');input.click();}Drupal.behaviors.sort={attach:()=>{once('cp-search-sort-input','.cp-search-sort-radios .form-radios input').forEach((element)=>{element.addEventListener('click',triggerViewSort);});}};})(Drupal,once);;
2705(function(Drupal,once){Drupal.behaviors.npTooltip={attach:function(context,settings){const idTooltipModal='drupal-platform-modal-tooltip';function createTooltip(){if(document.getElementById(idTooltipModal))return;dialog=document.createElement('dialog');dialog.id=idTooltipModal;dialog.className='platform_modal';let wrapper=document.createElement('div');wrapper.className='platform_modal-wrapper';dialog.appendChild(wrapper);document.body.appendChild(dialog);}createTooltip();function openTooltipModal(key,customTitle,customText){let text=customText;if(!text&&key&&drupalSettings.np_tooltip&&drupalSettings.np_tooltip.tooltip_words)text=drupalSettings.np_tooltip.tooltip_words[key];if(text){let title=customTitle?customTitle:key;let content=`<p class="tooltip-content">${text}</p>`;let template=drupalSettings.np_tooltip.tooltip_template;let divContainer=document.createElement('div');divContainer.innerHTML=template;divContainer.querySelector('.modal__content-title').innerHTML=title;divContainer.querySelector('.modal__text').innerHTML=content;Drupal.platformModal(divContainer,{idModal:idTooltipModal}).show();}}once('npTooltipTransform','.np-tp',context).forEach(function(el){let key=el.getAttribute('data-k');let word=el.innerHTML;let wrapper=document.createElement('span');wrapper.className='tooltip-wrapper whitespace-nowrap cursor-pointer';wrapper.style.position='relative';wrapper.style.zIndex='50';wrapper.innerHTML=word+'<span class="tooltip" data-tooltip="" data-tooltip-title="'+key+'" data-tooltip-key="'+key+'"></span>';wrapper.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();openTooltipModal(key,key,null);});el.replaceWith(wrapper);});window.addEventListener('click',function(e){if(e.target.classList.contains('tooltip')){if(e.target.closest('.tooltip-wrapper'))return;e.preventDefault();e.stopPropagation();let dataTooltip=e.target.getAttribute('data-tooltip');let dataTooltipTitle=e.target.getAttribute('data-tooltip-title');let dataTooltipKey=e.target.getAttribute('data-tooltip-key');openTooltipModal(dataTooltipKey,dataTooltipTitle,dataTooltip);}},true);}};})(Drupal,once);;
2706(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);;
2707(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings?.views?.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}
2707).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}`;$(selector,context).ajaxComplete(()=>{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[id^="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;if(once('exposed-form',this.$exposed_form).length)this.attachExposedFormAjax();once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEach(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;const pendingForms=once('exposed-form-attach',this.$exposed_form);if(!pendingForms.length)return;this.exposedFormAjax=this.exposedFormAjax||[];$(pendingForms).find('input[type=submit], button[type=submit], input[type=image]').not('[data-drupal-selector=edit-reset]').each(function(){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax.push(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);;
2708(function($,Drupal){'use strict';Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;const pendingForms=once('exposed-form-attach',this.$exposed_form);if(!pendingForms.length)return;that.element_settings.url=that.element_settings.url.replace(/&page=[\d]+/,'&').replace(/\?page=[\d]+/,'?');this.exposedFormAjax=this.exposedFormAjax||[];$(pendingForms).find('input[type=submit], button[type=submit], input[type=image]').not('[data-drupal-selector=edit-reset]').each(function(){const selfSettings=$.extend({},that.element_settings,{base:$(this).attr('id'),element:this});that.exposedFormAjax.push(Drupal.ajax(selfSettings));});};})(jQuery,Drupal);;
2709(function($,Drupal,drupalSettings){var original={path:window.location.protocol+"//"+window.location.hostname+(window.location.port?':'+window.location.port:'')+window.location.pathname,query:window.location.search||''};window.onpageshow=function(event){if(event.persisted)window.location.reload();};Drupal.ViewsAjaxHistory=Drupal.ViewsAjaxHistory||{};var previousLocation=null;Drupal.ViewsAjaxHistory.beforeSubmit=Drupal.Ajax.prototype.beforeSubmit;Drupal.ViewsAjaxHistory.beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.ViewsAjaxHistory.beforeSend=Drupal.Ajax.prototype.beforeSend;Drupal.behaviors.viewsAjaxHistory={attach:function(context,drupalSettings){if(once('views-ajax-history-first-page-load','body').length)drupalSettings.viewsAjaxHistory.onloadPageItem=drupalSettings.viewsAjaxHistory.renderPageItem;}};var parseQueryString=function(query,depth){depth=depth||0;var args={};var nestedArgs={};var pos=query.indexOf('?');
2709if(pos!=-1)query=query.substring(pos+1);var pairs=query.split('&');var pair,key,value;for(var i in pairs)if(typeof (pairs[i])=='string'){pair=pairs[i].split('=');if(pair[0]=='q'&&pair[1]&&depth<5)nestedArgs=parseQueryString(decodeURIComponent(pair[1].replace(/\+/g,' ')),depth+1);else{if(pair[1]){key=decodeURIComponent(pair[0].replace(/\+/g,' '));value=decodeURIComponent(pair[1].replace(/\+/g,' '));if(/\[\]$/.test(key))if(!(key in args))args[key]=[value];else{if(!$.inArray(value,args[key])!==-1)args[key].push(value);}else args[key]=value;}}}return $.extend(nestedArgs,args);};var extractAnchor=function(url){var posAnchor=url.indexOf('#');var anchor="";if(posAnchor!==-1){anchor=url.substring(posAnchor);url=url.substring(0,posAnchor);}var result={url,anchor};if(posAnchor!==-1)result.url=url.substring(0,posAnchor);return result;};var cleanURL=function(url,viewArgs){var anchorExtraction=extractAnchor(url);var args=('reset' in viewArgs)?{}:parseQueryString(anchorExtraction.url);var query=[];if(/\?/.test(drupalSettings.views.ajax_path))query.push('q='+Drupal.Views.getPath(url));$.each(args,function(name,value){if(name in viewArgs)value=viewArgs[name];if(Array.isArray(value))$.merge(query,$.map($.unique(value),function(sub){return name+'='+encodeURIComponent(sub);}));else query.push(name+'='+encodeURIComponent(value));});url=window.location.origin+window.location.pathname;return url+(query.length?'?'+query.join('&'):'')+anchorExtraction.anchor;};var cleanStateForHistory=function(state){var stateWithNoFunctions={};for(var key in state)if(typeof state[key]!=="function")stateWithNoFunctions[key]=state[key];return stateWithNoFunctions;};var parseQuery=function(queryString){var query={};$.map(queryString.split('&'),function(val){var s=val.split('=');query[s[0]]=s[1];});return query;};var addState=function(options,url){var historyOptions=$.extend({},options);drupalSettings.viewsAjaxHistory.lastViewDomID=options.data.view_dom_id;$(window).unbind('popstate',loadView);history.pushState(cleanStateForHistory(historyOptions),document.title,cleanURL(url,options.data));$(window).bind('popstate',loadView);previousLocation=$.extend({},window.location);};var loadView=function(){var options;if(history.state===null){var viewsAjaxSettingsKey='views_dom_id:'+drupalSettings.viewsAjaxHistory.lastViewDomID;if(drupalSettings.views.ajaxViews.hasOwnProperty(viewsAjaxSettingsKey)){var viewsAjaxSettings=drupalSettings.views.ajaxViews[viewsAjaxSettingsKey];var initialExposedInput=drupalSettings.viewsAjaxHistory.initialExposedInput[viewsAjaxSettingsKey];$.extend(viewsAjaxSettings,initialExposedInput);viewsAjaxSettings.page=drupalSettings.viewsAjaxHistory.onloadPageItem;options={data:viewsAjaxSettings,url:window.location.search?drupalSettings.views.ajax_path+'?q='+window.location.pathname+window.location.search:drupalSettings.views.ajax_path};}}else options=history.state;var isSameRoute=previousLocation.href.replace(previousLocation.hash,'')===window.location.href.replace(window.location.hash,'');previousLocation=$.extend({},window.location);if(isSameRoute)return;var settings=$.extend({submit:options.data,setClick:true,event:'click',selector:'.view-dom-id-'+options.data.view_dom_id,progress:{type:'throbber'},httpMethod:'GET'},options);var viewsAjaxSubmit=Drupal.ajax(settings);viewsAjaxSubmit.execute();};var hasFacets=function(viewName){var hasFacets=false;if(drupalSettings.facets_views_ajax)$.each(drupalSettings.facets_views_ajax,function(facetId,facetSettings){if(facetSettings.view_id===viewName)hasFacets=true;});return hasFacets;};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(options.data.view_name&&element&&$(element).is('a')){let params=new URLSearchParams($(element).attr('href'));if(!$.isEmptyObject(drupalSettings.viewsAjaxHistory.excludeArgs)){var keysToRemove=[];$.each(drupalSettings.viewsAjaxHistory.excludeArgs,function(index,pathToExclude){params.forEach(function(value,key,parent){if(key.startsWith(pathToExclude))keysToRemove.push(key);});});keysToRemove.forEach(function(key){params.delete(key);});}addState(options,'?'+params.toString()+window.location.hash);}else{if(options&&options.data&&options.data.view_name){var currentQuery=parseQueryString(window.location.href);$.each(options.data,function(key,value){if(currentQuery[key])delete options.data[key];});}}Drupal.ViewsAjaxHistory.beforeSerialize.apply(this,arguments);};Drupal.Ajax.prototype.beforeSubmit=function(form_values,element,options){if(options&&options.data&&options.data.view_name){var form_data=new FormData(element.get(0));if(drupalSettings.viewsAjaxHistory.exclude_url_params)$.each(drupalSettings.viewsAjaxHistory.exclude_url_params,function(param,val){if(form_data.has(param)){var value=form_data.get(param);if(val===value)form_data.delete(param);}});var url=original.path+'?'+new URLSearchParams(form_data).toString();var anchorExtraction=extractAnchor(window.location.href);var currentQuery=parseQueryString(anchorExtraction.url);var ajaxUrl=options.url.split('?')[0];var ajaxQuery=parseQueryString(options.url);if($.inArray("page",Object.keys(currentQuery))!==-1){delete currentQuery.page;delete ajaxQuery.page;}$.each(form_values,function(){if(/\[\]$/.test(this.name)){if(!options.data[this.name])options.data[this.name]=[];options.data[this.name].push(this.value);}else options.data[this.name]=this.value;});element.find('[name]').each(function(){if(currentQuery[this.name]){delete currentQuery[this.name];delete ajaxQuery[this.name];}});element.find('input[type="checkbox"]').each(function(key,value){let name=this.name.replace(/\[.*?\]/,'')??this.name;if(!form_values[name]){if(currentQuery[name])delete currentQuery[name];else{if(options.data[name])delete options.data[name];}if(ajaxQuery[name])delete ajaxQuery[name];}});let removeMultiValueQueryKeys=function(multiValueParamToRemove,queryParams){Object.getOwnPropertyNames(queryParams).forEac
2709h(function(queryKey){let queryKeyWithoutBracket=queryKey.replace(/\[\d+]$/,'');if(multiValueParamToRemove===queryKeyWithoutBracket)delete queryParams[queryKey];});return queryParams;};element.find('select[multiple]').each(function(key,value){if($(value).val().length===0){delete options.data[this.name];delete currentQuery[this.name];delete ajaxQuery[this.name];}let nameWithoutBracket=this.name.replace(/\[]$/,'');currentQuery=removeMultiValueQueryKeys(nameWithoutBracket,currentQuery);ajaxQuery=removeMultiValueQueryKeys(nameWithoutBracket,ajaxQuery);});options.method='POST';this.httpMethod=options.method;options.data.q=options.data.view_path;url+=(/\?/.test(url)?'&':'?')+$.param(currentQuery)+anchorExtraction.anchor;options.url=ajaxUrl+'?'+$.param(ajaxQuery);addState(options,url);}Drupal.ViewsAjaxHistory.beforeSubmit.apply(this,arguments);};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(options.extraData&&options.extraData.view_name&&options.type!=='GET'){let has_facet=hasFacets(options.extraData.view_name);if(has_facet===false){let ajaxUrl=options.url.split('?')[0];let query=parseQueryString(options.url);let updated=false;$.each(query,function(index,value){if(options.extraData[index]===undefined&&index!==Drupal.ajax.WRAPPER_FORMAT){delete query[index];updated=true;}});if(updated)options.url=ajaxUrl+'?'+$.param(query);}}Drupal.ViewsAjaxHistory.beforeSend.apply(this,arguments);};})(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.